Pawnote
    Preparing search index...

    Function resourcesFromWeek

    • Get the resources from a specific week.

      Parameters

      • session: SessionHandle

        The current session handle.

      • weekNumber: number

        The week number to get resources from.

      • OptionalextendsToWeekNumber: number

        The week number to extend the search to (optional).

      Returns Promise<
          Readonly<
              {
                  assignmentDeadline?: Date;
                  backgroundColor: string;
                  contents: Readonly<
                      {
                          category: ResourceContentCategory;
                          categoryText?: string;
                          description?: string;
                          educativeValue: number;
                          files: Readonly<
                              { id: string; kind: AttachmentKind; name: string; url: string },
                          >[];
                          id: string;
                          themes: Readonly<{ id: string; name: string; subject: Subject }>[];
                          title?: string;
                      },
                  >[];
                  endDate: Date;
                  groups: string[];
                  haveAssignment: boolean;
                  id: string;
                  startDate: Date;
                  subject: Subject;
                  teachers: string[];
              },
          >[],
      >

      A promise that resolves to an array of resources.