@open-tender/utils 0.0.63 → 0.0.65
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.
package/dist/cjs/utils/cart.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export declare const calcPrices: (item: Partial<CartItem>) => {
|
|
|
54
54
|
inc?: number | undefined;
|
|
55
55
|
is_size?: boolean | undefined;
|
|
56
56
|
short_name?: string | undefined;
|
|
57
|
+
isPizza?: boolean | undefined;
|
|
57
58
|
}[] | undefined;
|
|
58
59
|
totalPrice: number;
|
|
59
60
|
totalPoints: number | null;
|
|
@@ -135,6 +136,7 @@ export declare const makeOrderItem: (item: MenuItem & CartItem, isEdit?: boolean
|
|
|
135
136
|
inc?: number | undefined;
|
|
136
137
|
is_size?: boolean | undefined;
|
|
137
138
|
short_name?: string | undefined;
|
|
139
|
+
isPizza?: boolean | undefined;
|
|
138
140
|
}[] | undefined;
|
|
139
141
|
totalPrice: number;
|
|
140
142
|
totalPoints: number | null;
|
|
@@ -378,6 +380,7 @@ export declare const validateCart: (cart: OrderCart, categories: MenuCategories,
|
|
|
378
380
|
inc?: number | undefined;
|
|
379
381
|
is_size?: boolean | undefined;
|
|
380
382
|
short_name?: string | undefined;
|
|
383
|
+
isPizza?: boolean | undefined;
|
|
381
384
|
}[] | undefined;
|
|
382
385
|
totalPrice: number;
|
|
383
386
|
totalPoints: number | null;
|
|
@@ -467,6 +470,7 @@ export declare const makeUpsellItems: (itemIds: number[], itemLookup: any) => {
|
|
|
467
470
|
inc?: number | undefined;
|
|
468
471
|
is_size?: boolean | undefined;
|
|
469
472
|
short_name?: string | undefined;
|
|
473
|
+
isPizza?: boolean | undefined;
|
|
470
474
|
}[] | undefined;
|
|
471
475
|
totalPrice: number;
|
|
472
476
|
totalPoints: number | null;
|
package/dist/esm/utils/cart.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export declare const calcPrices: (item: Partial<CartItem>) => {
|
|
|
54
54
|
inc?: number | undefined;
|
|
55
55
|
is_size?: boolean | undefined;
|
|
56
56
|
short_name?: string | undefined;
|
|
57
|
+
isPizza?: boolean | undefined;
|
|
57
58
|
}[] | undefined;
|
|
58
59
|
totalPrice: number;
|
|
59
60
|
totalPoints: number | null;
|
|
@@ -135,6 +136,7 @@ export declare const makeOrderItem: (item: MenuItem & CartItem, isEdit?: boolean
|
|
|
135
136
|
inc?: number | undefined;
|
|
136
137
|
is_size?: boolean | undefined;
|
|
137
138
|
short_name?: string | undefined;
|
|
139
|
+
isPizza?: boolean | undefined;
|
|
138
140
|
}[] | undefined;
|
|
139
141
|
totalPrice: number;
|
|
140
142
|
totalPoints: number | null;
|
|
@@ -378,6 +380,7 @@ export declare const validateCart: (cart: OrderCart, categories: MenuCategories,
|
|
|
378
380
|
inc?: number | undefined;
|
|
379
381
|
is_size?: boolean | undefined;
|
|
380
382
|
short_name?: string | undefined;
|
|
383
|
+
isPizza?: boolean | undefined;
|
|
381
384
|
}[] | undefined;
|
|
382
385
|
totalPrice: number;
|
|
383
386
|
totalPoints: number | null;
|
|
@@ -467,6 +470,7 @@ export declare const makeUpsellItems: (itemIds: number[], itemLookup: any) => {
|
|
|
467
470
|
inc?: number | undefined;
|
|
468
471
|
is_size?: boolean | undefined;
|
|
469
472
|
short_name?: string | undefined;
|
|
473
|
+
isPizza?: boolean | undefined;
|
|
470
474
|
}[] | undefined;
|
|
471
475
|
totalPrice: number;
|
|
472
476
|
totalPoints: number | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.65",
|
|
4
4
|
"description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"react": "^18.2.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@open-tender/types": "^0.0.
|
|
62
|
+
"@open-tender/types": "^0.0.133",
|
|
63
63
|
"date-fns": "^2.29.3",
|
|
64
64
|
"date-fns-tz": "^1.3.7"
|
|
65
65
|
}
|