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