Pawnote
    Preparing search index...

    Function menus

    • Retrieve the week menu for a specific date.

      Parameters

      • session: SessionHandle

        The current session handle.

      • date: Date = ...

        The date for which to retrieve the menus. Defaults to the current date.

      Returns Promise<
          Readonly<
              {
                  allergens: readonly Readonly<{ color: string; name: string }>[];
                  containsDinner: boolean;
                  containsLunch: boolean;
                  days: readonly Readonly<
                      {
                          date: Date;
                          dinner?: Readonly<
                              {
                                  dessert?: readonly (...)[];
                                  drink?: readonly (...)[];
                                  entry?: readonly (...)[];
                                  fromage?: readonly (...)[];
                                  main?: readonly (...)[];
                                  name?: string;
                                  side?: readonly (...)[];
                              },
                          >;
                          lunch?: Readonly<
                              {
                                  dessert?: readonly (...)[];
                                  drink?: readonly (...)[];
                                  entry?: readonly (...)[];
                                  fromage?: readonly (...)[];
                                  main?: readonly (...)[];
                                  name?: string;
                                  side?: readonly (...)[];
                              },
                          >;
                      },
                  >[];
                  labels: readonly Readonly<{ color: string; name: string }>[];
                  weeks: readonly number[];
              },
          >,
      >

      A promise that resolves to the week menu.