Pawnote
    Preparing search index...

    Function assignmentsFromWeek

    • Fetches assignments for a specific week or range of weeks.

      Parameters

      • session: SessionHandle

        The current session handle.

      • weekNumber: number

        The week number to fetch homework for.

      • OptionalextendsToWeekNumber: number

        Optional, the week number to extend the range to.

      Returns Promise<
          Readonly<
              {
                  attachments: Readonly<
                      { id: string; kind: AttachmentKind; name: string; url: string },
                  >[];
                  backgroundColor: string;
                  deadline: Date;
                  description: string;
                  difficulty: AssignmentDifficulty;
                  done: boolean;
                  id: string;
                  length?: number;
                  resourceID?: string;
                  return: AssignmentReturn;
                  subject: Subject;
                  themes: Readonly<{ id: string; name: string; subject: Subject }>[];
              },
          >[],
      >

      A promise that resolves to the assignments data.