@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.
@@ -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: boolean;
257
- syncId: string;
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;
@@ -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: boolean;
257
- syncId: string;
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "1.8.6",
3
+ "version": "1.8.7",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",