@orderingstack/ordering-types 1.8.6 → 1.8.7
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/index.d.ts +5 -3
- package/dist/esm/index.d.ts +5 -3
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -231,6 +231,7 @@ export interface IOrderCoupon {
|
|
|
231
231
|
productId?: string;
|
|
232
232
|
enableKey?: string;
|
|
233
233
|
userId?: string;
|
|
234
|
+
extra?: IStringKeyRecord<string>;
|
|
234
235
|
};
|
|
235
236
|
}
|
|
236
237
|
export declare enum EOrderStatus {
|
|
@@ -253,8 +254,8 @@ export interface IOrderComment {
|
|
|
253
254
|
}
|
|
254
255
|
export interface IOrderInBucket {
|
|
255
256
|
venue: string;
|
|
256
|
-
sync
|
|
257
|
-
syncId
|
|
257
|
+
sync?: boolean;
|
|
258
|
+
syncId?: string;
|
|
258
259
|
name: string;
|
|
259
260
|
menu: string;
|
|
260
261
|
lines: IOrderLine[];
|
|
@@ -395,11 +396,12 @@ export declare enum EOrderSource {
|
|
|
395
396
|
BOLT = "BOLT",
|
|
396
397
|
TAZZ = "TAZZ"
|
|
397
398
|
}
|
|
399
|
+
export type IOrderGroupProduct = Pick<IOrderProduct, "kind" | "id" | "literals" | "items" | "extra">;
|
|
398
400
|
export interface IOrderProduct {
|
|
399
401
|
id: string;
|
|
400
402
|
kind: EOrderProductKind;
|
|
401
403
|
literals: IProductLiterals;
|
|
402
|
-
items?: IOrderProduct
|
|
404
|
+
items?: Array<IOrderProduct | IOrderGroupProduct>;
|
|
403
405
|
img: string;
|
|
404
406
|
quantity: string;
|
|
405
407
|
price: string;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -231,6 +231,7 @@ export interface IOrderCoupon {
|
|
|
231
231
|
productId?: string;
|
|
232
232
|
enableKey?: string;
|
|
233
233
|
userId?: string;
|
|
234
|
+
extra?: IStringKeyRecord<string>;
|
|
234
235
|
};
|
|
235
236
|
}
|
|
236
237
|
export declare enum EOrderStatus {
|
|
@@ -253,8 +254,8 @@ export interface IOrderComment {
|
|
|
253
254
|
}
|
|
254
255
|
export interface IOrderInBucket {
|
|
255
256
|
venue: string;
|
|
256
|
-
sync
|
|
257
|
-
syncId
|
|
257
|
+
sync?: boolean;
|
|
258
|
+
syncId?: string;
|
|
258
259
|
name: string;
|
|
259
260
|
menu: string;
|
|
260
261
|
lines: IOrderLine[];
|
|
@@ -395,11 +396,12 @@ export declare enum EOrderSource {
|
|
|
395
396
|
BOLT = "BOLT",
|
|
396
397
|
TAZZ = "TAZZ"
|
|
397
398
|
}
|
|
399
|
+
export type IOrderGroupProduct = Pick<IOrderProduct, "kind" | "id" | "literals" | "items" | "extra">;
|
|
398
400
|
export interface IOrderProduct {
|
|
399
401
|
id: string;
|
|
400
402
|
kind: EOrderProductKind;
|
|
401
403
|
literals: IProductLiterals;
|
|
402
|
-
items?: IOrderProduct
|
|
404
|
+
items?: Array<IOrderProduct | IOrderGroupProduct>;
|
|
403
405
|
img: string;
|
|
404
406
|
quantity: string;
|
|
405
407
|
price: string;
|