|
|
|
@ -14,13 +14,14 @@ export interface Config {
|
|
|
|
|
users: User;
|
|
|
|
|
media: Media;
|
|
|
|
|
'opening-time': OpeningTime;
|
|
|
|
|
announcement: Announcement;
|
|
|
|
|
vacation: Vacation;
|
|
|
|
|
holiday: Holiday;
|
|
|
|
|
'menu-item': MenuItem;
|
|
|
|
|
'menu-category': MenuCategory;
|
|
|
|
|
'menu-item-tag': MenuItemTag;
|
|
|
|
|
'menu-section': MenuSection;
|
|
|
|
|
'food-declaration': FoodDeclaration;
|
|
|
|
|
announcement: Announcement;
|
|
|
|
|
vacation: Vacation;
|
|
|
|
|
holiday: Holiday;
|
|
|
|
|
'payload-preferences': PayloadPreference;
|
|
|
|
|
'payload-migrations': PayloadMigration;
|
|
|
|
|
};
|
|
|
|
@ -30,9 +31,9 @@ export interface Config {
|
|
|
|
|
globals: {
|
|
|
|
|
home: Home;
|
|
|
|
|
gallery: Gallery;
|
|
|
|
|
menu: Menu;
|
|
|
|
|
about: About;
|
|
|
|
|
contact: Contact;
|
|
|
|
|
menu: Menu;
|
|
|
|
|
settings: Setting;
|
|
|
|
|
};
|
|
|
|
|
locale: 'de' | 'fr' | 'it' | 'en';
|
|
|
|
@ -109,11 +110,11 @@ export interface OpeningTime {
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "menu-item".
|
|
|
|
|
* via the `definition` "announcement".
|
|
|
|
|
*/
|
|
|
|
|
export interface MenuItem {
|
|
|
|
|
export interface Announcement {
|
|
|
|
|
id: string;
|
|
|
|
|
name: string;
|
|
|
|
|
title: string;
|
|
|
|
|
description?: {
|
|
|
|
|
root: {
|
|
|
|
|
type: string;
|
|
|
|
@ -129,32 +130,40 @@ export interface MenuItem {
|
|
|
|
|
};
|
|
|
|
|
[k: string]: unknown;
|
|
|
|
|
} | null;
|
|
|
|
|
image?: (string | null) | Media;
|
|
|
|
|
category?: (string | null) | MenuCategory;
|
|
|
|
|
tags?: (string | MenuItemTag)[] | null;
|
|
|
|
|
variants: {
|
|
|
|
|
title?: string | null;
|
|
|
|
|
price: number;
|
|
|
|
|
id?: string | null;
|
|
|
|
|
}[];
|
|
|
|
|
from: string;
|
|
|
|
|
to?: string | null;
|
|
|
|
|
updatedAt: string;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "menu-category".
|
|
|
|
|
* via the `definition` "vacation".
|
|
|
|
|
*/
|
|
|
|
|
export interface MenuCategory {
|
|
|
|
|
export interface Vacation {
|
|
|
|
|
id: string;
|
|
|
|
|
name?: string | null;
|
|
|
|
|
title: string;
|
|
|
|
|
from: string;
|
|
|
|
|
to?: string | null;
|
|
|
|
|
updatedAt: string;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "menu-item-tag".
|
|
|
|
|
* via the `definition` "holiday".
|
|
|
|
|
*/
|
|
|
|
|
export interface MenuItemTag {
|
|
|
|
|
export interface Holiday {
|
|
|
|
|
id: string;
|
|
|
|
|
title: string;
|
|
|
|
|
from: string;
|
|
|
|
|
to?: string | null;
|
|
|
|
|
updatedAt: string;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "menu-item".
|
|
|
|
|
*/
|
|
|
|
|
export interface MenuItem {
|
|
|
|
|
id: string;
|
|
|
|
|
name: string;
|
|
|
|
|
description?: {
|
|
|
|
@ -172,16 +181,23 @@ export interface MenuItemTag {
|
|
|
|
|
};
|
|
|
|
|
[k: string]: unknown;
|
|
|
|
|
} | null;
|
|
|
|
|
image?: (string | null) | Media;
|
|
|
|
|
tags?: (string | MenuItemTag)[] | null;
|
|
|
|
|
variants: {
|
|
|
|
|
title?: string | null;
|
|
|
|
|
price: number;
|
|
|
|
|
id?: string | null;
|
|
|
|
|
}[];
|
|
|
|
|
updatedAt: string;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "food-declaration".
|
|
|
|
|
* via the `definition` "menu-item-tag".
|
|
|
|
|
*/
|
|
|
|
|
export interface FoodDeclaration {
|
|
|
|
|
export interface MenuItemTag {
|
|
|
|
|
id: string;
|
|
|
|
|
title: string;
|
|
|
|
|
name: string;
|
|
|
|
|
description?: {
|
|
|
|
|
root: {
|
|
|
|
|
type: string;
|
|
|
|
@ -202,11 +218,46 @@ export interface FoodDeclaration {
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "announcement".
|
|
|
|
|
* via the `definition` "menu-category".
|
|
|
|
|
*/
|
|
|
|
|
export interface Announcement {
|
|
|
|
|
export interface MenuCategory {
|
|
|
|
|
id: string;
|
|
|
|
|
title: string;
|
|
|
|
|
name?: string | null;
|
|
|
|
|
sections?:
|
|
|
|
|
| {
|
|
|
|
|
name?: string | null;
|
|
|
|
|
description?: {
|
|
|
|
|
root: {
|
|
|
|
|
type: string;
|
|
|
|
|
children: {
|
|
|
|
|
type: string;
|
|
|
|
|
version: number;
|
|
|
|
|
[k: string]: unknown;
|
|
|
|
|
}[];
|
|
|
|
|
direction: ('ltr' | 'rtl') | null;
|
|
|
|
|
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
|
|
|
|
|
indent: number;
|
|
|
|
|
version: number;
|
|
|
|
|
};
|
|
|
|
|
[k: string]: unknown;
|
|
|
|
|
} | null;
|
|
|
|
|
items: {
|
|
|
|
|
item: string | MenuItem;
|
|
|
|
|
id?: string | null;
|
|
|
|
|
}[];
|
|
|
|
|
id?: string | null;
|
|
|
|
|
}[]
|
|
|
|
|
| null;
|
|
|
|
|
updatedAt: string;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "menu-section".
|
|
|
|
|
*/
|
|
|
|
|
export interface MenuSection {
|
|
|
|
|
id: string;
|
|
|
|
|
name: string;
|
|
|
|
|
description?: {
|
|
|
|
|
root: {
|
|
|
|
|
type: string;
|
|
|
|
@ -222,32 +273,31 @@ export interface Announcement {
|
|
|
|
|
};
|
|
|
|
|
[k: string]: unknown;
|
|
|
|
|
} | null;
|
|
|
|
|
from: string;
|
|
|
|
|
to?: string | null;
|
|
|
|
|
updatedAt: string;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "vacation".
|
|
|
|
|
*/
|
|
|
|
|
export interface Vacation {
|
|
|
|
|
id: string;
|
|
|
|
|
title: string;
|
|
|
|
|
from: string;
|
|
|
|
|
to?: string | null;
|
|
|
|
|
updatedAt: string;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "holiday".
|
|
|
|
|
* via the `definition` "food-declaration".
|
|
|
|
|
*/
|
|
|
|
|
export interface Holiday {
|
|
|
|
|
export interface FoodDeclaration {
|
|
|
|
|
id: string;
|
|
|
|
|
title: string;
|
|
|
|
|
from: string;
|
|
|
|
|
to?: string | null;
|
|
|
|
|
description?: {
|
|
|
|
|
root: {
|
|
|
|
|
type: string;
|
|
|
|
|
children: {
|
|
|
|
|
type: string;
|
|
|
|
|
version: number;
|
|
|
|
|
[k: string]: unknown;
|
|
|
|
|
}[];
|
|
|
|
|
direction: ('ltr' | 'rtl') | null;
|
|
|
|
|
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
|
|
|
|
|
indent: number;
|
|
|
|
|
version: number;
|
|
|
|
|
};
|
|
|
|
|
[k: string]: unknown;
|
|
|
|
|
} | null;
|
|
|
|
|
updatedAt: string;
|
|
|
|
|
createdAt: string;
|
|
|
|
|
}
|
|
|
|
@ -324,6 +374,18 @@ export interface Gallery {
|
|
|
|
|
updatedAt?: string | null;
|
|
|
|
|
createdAt?: string | null;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "menu".
|
|
|
|
|
*/
|
|
|
|
|
export interface Menu {
|
|
|
|
|
id: string;
|
|
|
|
|
file?: (string | null) | Media;
|
|
|
|
|
categories: (string | MenuCategory)[];
|
|
|
|
|
specials?: (string | MenuItem)[] | null;
|
|
|
|
|
updatedAt?: string | null;
|
|
|
|
|
createdAt?: string | null;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "about".
|
|
|
|
@ -379,17 +441,6 @@ export interface Contact {
|
|
|
|
|
updatedAt?: string | null;
|
|
|
|
|
createdAt?: string | null;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "menu".
|
|
|
|
|
*/
|
|
|
|
|
export interface Menu {
|
|
|
|
|
id: string;
|
|
|
|
|
file?: (string | null) | Media;
|
|
|
|
|
specials?: (string | MenuItem)[] | null;
|
|
|
|
|
updatedAt?: string | null;
|
|
|
|
|
createdAt?: string | null;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
|
|
|
* via the `definition` "settings".
|
|
|
|
|