@open-tender/types 0.4.56 → 0.4.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NutritionalInfo } from './menu';
|
|
1
|
+
import { MenuItemAllergens, MenuItemTags, NutritionalInfo } from './menu';
|
|
2
2
|
import { OrderItemPoints } from './order';
|
|
3
3
|
export interface BaseItemGroup {
|
|
4
4
|
id: number;
|
|
@@ -16,6 +16,7 @@ export interface BaseItem {
|
|
|
16
16
|
export declare type BaseItems = BaseItem[];
|
|
17
17
|
export interface CartItemOption {
|
|
18
18
|
allergens: string[];
|
|
19
|
+
allergens_list?: MenuItemAllergens;
|
|
19
20
|
cals: number | null;
|
|
20
21
|
description: string | null;
|
|
21
22
|
groups: CartItemGroups;
|
|
@@ -37,6 +38,7 @@ export interface CartItemOption {
|
|
|
37
38
|
shortName: string;
|
|
38
39
|
slug: string;
|
|
39
40
|
tags: string[];
|
|
41
|
+
tags_list?: MenuItemTags;
|
|
40
42
|
totalAllergens: string[];
|
|
41
43
|
totalCals: number | null;
|
|
42
44
|
totalPoints: number | null;
|
|
@@ -63,8 +63,27 @@ export declare type MenuItemGroups = MenuItemGroup[];
|
|
|
63
63
|
export interface MenuItemFavorite {
|
|
64
64
|
item: SimpleCartItem;
|
|
65
65
|
}
|
|
66
|
+
export interface MenuItemAllergen {
|
|
67
|
+
allergen_id: number;
|
|
68
|
+
app_image_url: string | null;
|
|
69
|
+
description: string | null;
|
|
70
|
+
large_image_url: string | null;
|
|
71
|
+
name: string;
|
|
72
|
+
small_image_url: string | null;
|
|
73
|
+
}
|
|
74
|
+
export declare type MenuItemAllergens = MenuItemAllergen[];
|
|
75
|
+
export interface MenuItemTag {
|
|
76
|
+
app_image_url: string | null;
|
|
77
|
+
description: string | null;
|
|
78
|
+
large_image_url: string | null;
|
|
79
|
+
name: string;
|
|
80
|
+
small_image_url: string | null;
|
|
81
|
+
tag_id: number;
|
|
82
|
+
}
|
|
83
|
+
export declare type MenuItemTags = MenuItemTag[];
|
|
66
84
|
export interface MenuItem {
|
|
67
85
|
allergens: string | null;
|
|
86
|
+
allergens_list?: MenuItemAllergens;
|
|
68
87
|
app_image_url: string | null;
|
|
69
88
|
calories: number | null;
|
|
70
89
|
description: string | null;
|
|
@@ -96,6 +115,7 @@ export interface MenuItem {
|
|
|
96
115
|
small_image_url: string | null;
|
|
97
116
|
suspend_until: number | null;
|
|
98
117
|
tags: string | null;
|
|
118
|
+
tags_list?: MenuItemTags;
|
|
99
119
|
taxes: MenuItemTaxes;
|
|
100
120
|
temperature: Temperature;
|
|
101
121
|
upsell_items: number[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NutritionalInfo } from './menu';
|
|
1
|
+
import { MenuItemAllergens, MenuItemTags, NutritionalInfo } from './menu';
|
|
2
2
|
import { OrderItemPoints } from './order';
|
|
3
3
|
export interface BaseItemGroup {
|
|
4
4
|
id: number;
|
|
@@ -16,6 +16,7 @@ export interface BaseItem {
|
|
|
16
16
|
export declare type BaseItems = BaseItem[];
|
|
17
17
|
export interface CartItemOption {
|
|
18
18
|
allergens: string[];
|
|
19
|
+
allergens_list?: MenuItemAllergens;
|
|
19
20
|
cals: number | null;
|
|
20
21
|
description: string | null;
|
|
21
22
|
groups: CartItemGroups;
|
|
@@ -37,6 +38,7 @@ export interface CartItemOption {
|
|
|
37
38
|
shortName: string;
|
|
38
39
|
slug: string;
|
|
39
40
|
tags: string[];
|
|
41
|
+
tags_list?: MenuItemTags;
|
|
40
42
|
totalAllergens: string[];
|
|
41
43
|
totalCals: number | null;
|
|
42
44
|
totalPoints: number | null;
|
|
@@ -63,8 +63,27 @@ export declare type MenuItemGroups = MenuItemGroup[];
|
|
|
63
63
|
export interface MenuItemFavorite {
|
|
64
64
|
item: SimpleCartItem;
|
|
65
65
|
}
|
|
66
|
+
export interface MenuItemAllergen {
|
|
67
|
+
allergen_id: number;
|
|
68
|
+
app_image_url: string | null;
|
|
69
|
+
description: string | null;
|
|
70
|
+
large_image_url: string | null;
|
|
71
|
+
name: string;
|
|
72
|
+
small_image_url: string | null;
|
|
73
|
+
}
|
|
74
|
+
export declare type MenuItemAllergens = MenuItemAllergen[];
|
|
75
|
+
export interface MenuItemTag {
|
|
76
|
+
app_image_url: string | null;
|
|
77
|
+
description: string | null;
|
|
78
|
+
large_image_url: string | null;
|
|
79
|
+
name: string;
|
|
80
|
+
small_image_url: string | null;
|
|
81
|
+
tag_id: number;
|
|
82
|
+
}
|
|
83
|
+
export declare type MenuItemTags = MenuItemTag[];
|
|
66
84
|
export interface MenuItem {
|
|
67
85
|
allergens: string | null;
|
|
86
|
+
allergens_list?: MenuItemAllergens;
|
|
68
87
|
app_image_url: string | null;
|
|
69
88
|
calories: number | null;
|
|
70
89
|
description: string | null;
|
|
@@ -96,6 +115,7 @@ export interface MenuItem {
|
|
|
96
115
|
small_image_url: string | null;
|
|
97
116
|
suspend_until: number | null;
|
|
98
117
|
tags: string | null;
|
|
118
|
+
tags_list?: MenuItemTags;
|
|
99
119
|
taxes: MenuItemTaxes;
|
|
100
120
|
temperature: Temperature;
|
|
101
121
|
upsell_items: number[];
|
package/package.json
CHANGED