@open-tender/types 0.0.15 → 0.0.17
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,6 +17,7 @@ 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
22
|
isDefault: boolean;
|
|
22
23
|
increment: number;
|
|
@@ -24,9 +25,9 @@ export interface CartItemOption {
|
|
|
24
25
|
min: number;
|
|
25
26
|
isSoldOut: boolean;
|
|
26
27
|
points: number;
|
|
27
|
-
totalPrice
|
|
28
|
-
totalPoints
|
|
29
|
-
totalCals
|
|
28
|
+
totalPrice?: number;
|
|
29
|
+
totalPoints?: number | null;
|
|
30
|
+
totalCals?: number | null;
|
|
30
31
|
}
|
|
31
32
|
export declare type CartItemOptions = Array<CartItemOption>;
|
|
32
33
|
export interface CartItemGroup {
|
|
@@ -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;
|
|
@@ -48,6 +48,8 @@ export interface SimpleCartItem {
|
|
|
48
48
|
groups?: Array<SimpleCartGroup>;
|
|
49
49
|
made_for?: string;
|
|
50
50
|
notes?: string;
|
|
51
|
+
cart_guest_id?: number;
|
|
52
|
+
customer_id?: number;
|
|
51
53
|
}
|
|
52
54
|
export declare type SimpleCart = Array<SimpleCartItem>;
|
|
53
55
|
export interface OrderCreateDetails {
|
|
@@ -87,7 +87,7 @@ export interface OrderGroup {
|
|
|
87
87
|
}
|
|
88
88
|
export declare type OrderGroups = Array<OrderGroup>;
|
|
89
89
|
export interface OrderItem {
|
|
90
|
-
allergens?: CustomerAllergens;
|
|
90
|
+
allergens?: CustomerAllergens | string[];
|
|
91
91
|
description: string;
|
|
92
92
|
discount?: Money;
|
|
93
93
|
discount_total?: Money;
|
|
@@ -116,6 +116,7 @@ export interface OrderItem {
|
|
|
116
116
|
tax_total?: Money;
|
|
117
117
|
taxes?: OrderItemTaxes;
|
|
118
118
|
temperature: Temperature;
|
|
119
|
+
cals?: number;
|
|
119
120
|
}
|
|
120
121
|
export declare type OrderCart = Array<OrderItem>;
|
|
121
122
|
export interface ModifiersMetadataOption {
|
|
@@ -178,6 +179,7 @@ export interface OrderSurcharge {
|
|
|
178
179
|
description?: string;
|
|
179
180
|
employee_id: number | null;
|
|
180
181
|
id: number;
|
|
182
|
+
surcharge_id?: number;
|
|
181
183
|
is_optional?: boolean;
|
|
182
184
|
is_taxed: boolean;
|
|
183
185
|
label?: string;
|
|
@@ -17,6 +17,7 @@ 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
22
|
isDefault: boolean;
|
|
22
23
|
increment: number;
|
|
@@ -24,9 +25,9 @@ export interface CartItemOption {
|
|
|
24
25
|
min: number;
|
|
25
26
|
isSoldOut: boolean;
|
|
26
27
|
points: number;
|
|
27
|
-
totalPrice
|
|
28
|
-
totalPoints
|
|
29
|
-
totalCals
|
|
28
|
+
totalPrice?: number;
|
|
29
|
+
totalPoints?: number | null;
|
|
30
|
+
totalCals?: number | null;
|
|
30
31
|
}
|
|
31
32
|
export declare type CartItemOptions = Array<CartItemOption>;
|
|
32
33
|
export interface CartItemGroup {
|
|
@@ -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;
|
|
@@ -48,6 +48,8 @@ export interface SimpleCartItem {
|
|
|
48
48
|
groups?: Array<SimpleCartGroup>;
|
|
49
49
|
made_for?: string;
|
|
50
50
|
notes?: string;
|
|
51
|
+
cart_guest_id?: number;
|
|
52
|
+
customer_id?: number;
|
|
51
53
|
}
|
|
52
54
|
export declare type SimpleCart = Array<SimpleCartItem>;
|
|
53
55
|
export interface OrderCreateDetails {
|
|
@@ -87,7 +87,7 @@ export interface OrderGroup {
|
|
|
87
87
|
}
|
|
88
88
|
export declare type OrderGroups = Array<OrderGroup>;
|
|
89
89
|
export interface OrderItem {
|
|
90
|
-
allergens?: CustomerAllergens;
|
|
90
|
+
allergens?: CustomerAllergens | string[];
|
|
91
91
|
description: string;
|
|
92
92
|
discount?: Money;
|
|
93
93
|
discount_total?: Money;
|
|
@@ -116,6 +116,7 @@ export interface OrderItem {
|
|
|
116
116
|
tax_total?: Money;
|
|
117
117
|
taxes?: OrderItemTaxes;
|
|
118
118
|
temperature: Temperature;
|
|
119
|
+
cals?: number;
|
|
119
120
|
}
|
|
120
121
|
export declare type OrderCart = Array<OrderItem>;
|
|
121
122
|
export interface ModifiersMetadataOption {
|
|
@@ -178,6 +179,7 @@ export interface OrderSurcharge {
|
|
|
178
179
|
description?: string;
|
|
179
180
|
employee_id: number | null;
|
|
180
181
|
id: number;
|
|
182
|
+
surcharge_id?: number;
|
|
181
183
|
is_optional?: boolean;
|
|
182
184
|
is_taxed: boolean;
|
|
183
185
|
label?: string;
|
package/package.json
CHANGED