@open-tender/types 0.0.16 → 0.0.18
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.
|
@@ -17,8 +17,9 @@ export interface CartItemOption {
|
|
|
17
17
|
nutritionalInfo: NutritionalInfo | null;
|
|
18
18
|
cals: number | null;
|
|
19
19
|
price: number;
|
|
20
|
+
price_total?: number;
|
|
20
21
|
quantity: number;
|
|
21
|
-
isDefault: boolean;
|
|
22
|
+
isDefault: boolean | number;
|
|
22
23
|
increment: number;
|
|
23
24
|
max: number;
|
|
24
25
|
min: number;
|
|
@@ -40,7 +41,7 @@ export interface CartItemGroup {
|
|
|
40
41
|
isSize: boolean;
|
|
41
42
|
options: CartItemOptions;
|
|
42
43
|
}
|
|
43
|
-
export declare type CartItemGroups = Array<CartItemGroup
|
|
44
|
+
export declare type CartItemGroups = Array<Partial<CartItemGroup>>;
|
|
44
45
|
export interface CartItem {
|
|
45
46
|
index?: number;
|
|
46
47
|
id: number;
|
|
@@ -72,6 +73,9 @@ export interface CartItem {
|
|
|
72
73
|
totalPoints: number | null;
|
|
73
74
|
totalCals: number | null;
|
|
74
75
|
item_no?: number;
|
|
76
|
+
nutritional_info: NutritionalInfo | null;
|
|
77
|
+
price_total?: number;
|
|
78
|
+
favorite_id?: number;
|
|
75
79
|
}
|
|
76
80
|
export declare type Cart = Array<CartItem>;
|
|
77
81
|
export declare type CartCounts = Record<string, number>;
|
|
@@ -87,8 +87,8 @@ export interface OrderGroup {
|
|
|
87
87
|
}
|
|
88
88
|
export declare type OrderGroups = Array<OrderGroup>;
|
|
89
89
|
export interface OrderItem {
|
|
90
|
-
allergens?: CustomerAllergens;
|
|
91
|
-
description
|
|
90
|
+
allergens?: CustomerAllergens | string[];
|
|
91
|
+
description?: string | null;
|
|
92
92
|
discount?: Money;
|
|
93
93
|
discount_total?: Money;
|
|
94
94
|
discounts?: OrderItemDiscounts;
|
|
@@ -179,6 +179,7 @@ export interface OrderSurcharge {
|
|
|
179
179
|
description?: string;
|
|
180
180
|
employee_id: number | null;
|
|
181
181
|
id: number;
|
|
182
|
+
surcharge_id?: number;
|
|
182
183
|
is_optional?: boolean;
|
|
183
184
|
is_taxed: boolean;
|
|
184
185
|
label?: string;
|
|
@@ -17,8 +17,9 @@ export interface CartItemOption {
|
|
|
17
17
|
nutritionalInfo: NutritionalInfo | null;
|
|
18
18
|
cals: number | null;
|
|
19
19
|
price: number;
|
|
20
|
+
price_total?: number;
|
|
20
21
|
quantity: number;
|
|
21
|
-
isDefault: boolean;
|
|
22
|
+
isDefault: boolean | number;
|
|
22
23
|
increment: number;
|
|
23
24
|
max: number;
|
|
24
25
|
min: number;
|
|
@@ -40,7 +41,7 @@ export interface CartItemGroup {
|
|
|
40
41
|
isSize: boolean;
|
|
41
42
|
options: CartItemOptions;
|
|
42
43
|
}
|
|
43
|
-
export declare type CartItemGroups = Array<CartItemGroup
|
|
44
|
+
export declare type CartItemGroups = Array<Partial<CartItemGroup>>;
|
|
44
45
|
export interface CartItem {
|
|
45
46
|
index?: number;
|
|
46
47
|
id: number;
|
|
@@ -72,6 +73,9 @@ export interface CartItem {
|
|
|
72
73
|
totalPoints: number | null;
|
|
73
74
|
totalCals: number | null;
|
|
74
75
|
item_no?: number;
|
|
76
|
+
nutritional_info: NutritionalInfo | null;
|
|
77
|
+
price_total?: number;
|
|
78
|
+
favorite_id?: number;
|
|
75
79
|
}
|
|
76
80
|
export declare type Cart = Array<CartItem>;
|
|
77
81
|
export declare type CartCounts = Record<string, number>;
|
|
@@ -87,8 +87,8 @@ export interface OrderGroup {
|
|
|
87
87
|
}
|
|
88
88
|
export declare type OrderGroups = Array<OrderGroup>;
|
|
89
89
|
export interface OrderItem {
|
|
90
|
-
allergens?: CustomerAllergens;
|
|
91
|
-
description
|
|
90
|
+
allergens?: CustomerAllergens | string[];
|
|
91
|
+
description?: string | null;
|
|
92
92
|
discount?: Money;
|
|
93
93
|
discount_total?: Money;
|
|
94
94
|
discounts?: OrderItemDiscounts;
|
|
@@ -179,6 +179,7 @@ export interface OrderSurcharge {
|
|
|
179
179
|
description?: string;
|
|
180
180
|
employee_id: number | null;
|
|
181
181
|
id: number;
|
|
182
|
+
surcharge_id?: number;
|
|
182
183
|
is_optional?: boolean;
|
|
183
184
|
is_taxed: boolean;
|
|
184
185
|
label?: string;
|
package/package.json
CHANGED