@compassdigital/sdk.typescript 4.28.0 → 4.30.0

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.
@@ -34,7 +34,6 @@ export interface Menu {
34
34
  item_desc_edit_enabled?: boolean;
35
35
  calories_edit_enabled?: boolean;
36
36
  item_label_edit_enabled?: boolean;
37
- frictionless?: boolean;
38
37
  };
39
38
  meta?: {
40
39
  // User ID
@@ -749,7 +748,6 @@ export interface MenuWorksDTO {
749
748
  portion_unit_name?: FilterFieldDTO;
750
749
  grams?: number;
751
750
  cost?: number;
752
- calories?: number;
753
751
  id?: Record<string, any>;
754
752
  [index: string]: any;
755
753
  }
@@ -835,6 +833,14 @@ export interface BrandStatusDTO {
835
833
  [index: string]: any;
836
834
  }
837
835
 
836
+ export interface SiteGroupDTO {
837
+ site_id: string;
838
+ local_menu_group_id: string;
839
+ created_at?: string;
840
+ updated_at?: string;
841
+ [index: string]: any;
842
+ }
843
+
838
844
  export interface DraftMenuDraftMenuDTO {
839
845
  applied_diff_snapshot?: FilterFieldDTO;
840
846
  parent_id?: FilterFieldDTO;
@@ -1896,6 +1902,8 @@ export interface GetMenuQuery {
1896
1902
  show_unlinked?: boolean;
1897
1903
  // Show items and modifiers with weight
1898
1904
  include_items_with_weight?: boolean;
1905
+ // Show out of stock entities, lower in priority to hidden and disabled
1906
+ show_out_of_stock?: boolean;
1899
1907
  // Graphql query string
1900
1908
  _query?: string;
1901
1909
  nocache?: boolean;
@@ -2706,6 +2714,70 @@ export interface PostMenuV3LocalMenuGroupImportBrandsRequest
2706
2714
  RequestQuery<PostMenuV3LocalMenuGroupImportBrandsQuery>,
2707
2715
  PostMenuV3LocalMenuGroupImportBrandsPath {}
2708
2716
 
2717
+ // GET /menu/v3/local-menu-group/{id}/site
2718
+
2719
+ export interface GetMenuV3LocalMenuGroupSitePath {
2720
+ id: string;
2721
+ }
2722
+
2723
+ export interface GetMenuV3LocalMenuGroupSiteQuery {
2724
+ // Graphql query string
2725
+ _query?: string;
2726
+ }
2727
+
2728
+ export interface GetMenuV3LocalMenuGroupSiteResponse {
2729
+ results?: SiteGroupDTO[];
2730
+ }
2731
+
2732
+ export interface GetMenuV3LocalMenuGroupSiteRequest
2733
+ extends BaseRequest,
2734
+ RequestQuery<GetMenuV3LocalMenuGroupSiteQuery>,
2735
+ GetMenuV3LocalMenuGroupSitePath {}
2736
+
2737
+ // GET /menu/v3/local-menu-group/{id}/menu-group
2738
+
2739
+ export interface GetMenuV3LocalMenuGroupMenuGroupPath {
2740
+ id: string;
2741
+ }
2742
+
2743
+ export interface GetMenuV3LocalMenuGroupMenuGroupQuery {
2744
+ // Graphql query string
2745
+ _query?: string;
2746
+ }
2747
+
2748
+ export interface GetMenuV3LocalMenuGroupMenuGroupResponse {
2749
+ results?: SiteGroupDTO[];
2750
+ }
2751
+
2752
+ export interface GetMenuV3LocalMenuGroupMenuGroupRequest
2753
+ extends BaseRequest,
2754
+ RequestQuery<GetMenuV3LocalMenuGroupMenuGroupQuery>,
2755
+ GetMenuV3LocalMenuGroupMenuGroupPath {}
2756
+
2757
+ // POST /menu/v3/local-menu-groups/site-groups
2758
+
2759
+ export type PostMenuV3LocalMenuGroupsSiteGroupsBody = SiteGroupDTO[];
2760
+
2761
+ export interface PostMenuV3LocalMenuGroupsSiteGroupsResponse {
2762
+ results?: SiteGroupDTO[];
2763
+ }
2764
+
2765
+ export interface PostMenuV3LocalMenuGroupsSiteGroupsRequest extends BaseRequest {
2766
+ body: PostMenuV3LocalMenuGroupsSiteGroupsBody;
2767
+ }
2768
+
2769
+ // DELETE /menu/v3/local-menu-groups/site-groups
2770
+
2771
+ export type DeleteMenuV3LocalMenuGroupsSiteGroupsBody = SiteGroupDTO[];
2772
+
2773
+ export interface DeleteMenuV3LocalMenuGroupsSiteGroupsResponse {
2774
+ results?: SiteGroupDTO[];
2775
+ }
2776
+
2777
+ export interface DeleteMenuV3LocalMenuGroupsSiteGroupsRequest extends BaseRequest {
2778
+ body: DeleteMenuV3LocalMenuGroupsSiteGroupsBody;
2779
+ }
2780
+
2709
2781
  // POST /menu/v3/global-menu-group
2710
2782
 
2711
2783
  export interface PostMenuV3GlobalMenuGroupBody {
@@ -6433,19 +6505,19 @@ export interface GetMenuV3GlobalDiffsCountRequest
6433
6505
 
6434
6506
  export interface GetMenuV3MenuworksQuery {
6435
6507
  unit_id?: string;
6436
- MRN?: string;
6508
+ MRN?: number;
6437
6509
  // Graphql query string
6438
6510
  _query?: string;
6439
6511
  }
6440
6512
 
6441
6513
  export interface GetMenuV3MenuworksResponse {
6514
+ calories?: number;
6442
6515
  MRN?: string;
6443
6516
  unit_id?: string;
6444
6517
  portion_quantity?: number;
6445
6518
  portion_unit_name?: string;
6446
6519
  grams?: number;
6447
6520
  cost?: number;
6448
- calories?: number;
6449
6521
  [index: string]: any;
6450
6522
  }
6451
6523
 
@@ -335,8 +335,8 @@ export interface Location {
335
335
  en?: string;
336
336
  fr?: string;
337
337
  };
338
- hours?: Record<string, any>;
339
- deliveryHours?: Record<string, any>;
338
+ hours?: Hours[];
339
+ deliveryHours?: DeliveryHours[];
340
340
  service_fee?: {
341
341
  type?: string;
342
342
  value?: number;
@@ -574,6 +574,7 @@ export interface Menu {
574
574
  item_desc_edit_enabled?: boolean;
575
575
  calories_edit_enabled?: boolean;
576
576
  item_label_edit_enabled?: boolean;
577
+ frictionless?: boolean;
577
578
  };
578
579
  meta?: {
579
580
  // User ID
@@ -204,7 +204,7 @@ export interface ApplePayMerchantSession {
204
204
  // POST /payment/{id}/transaction
205
205
 
206
206
  export interface PostPaymentTransactionPath {
207
- // TODO: add parameter to swagger.json
207
+ // Payment ID
208
208
  id: string;
209
209
  }
210
210
 
@@ -242,9 +242,9 @@ export interface PostPaymentTransactionRequest extends BaseRequest, PostPaymentT
242
242
  // POST /payment/{id}/transaction/{transaction_id}/refund
243
243
 
244
244
  export interface PostPaymentTransactionRefundPath {
245
- // TODO: add parameter to swagger.json
245
+ // Payment ID
246
246
  id: string;
247
- // TODO: add parameter to swagger.json
247
+ // Transaction ID
248
248
  transaction_id: string;
249
249
  }
250
250
 
@@ -266,7 +266,7 @@ export interface PostPaymentTransactionRefundRequest
266
266
  // GET /payment/{id}/clienttoken
267
267
 
268
268
  export interface GetPaymentClienttokenPath {
269
- // TODO: add parameter to swagger.json
269
+ // Payment ID
270
270
  id: string;
271
271
  }
272
272
 
@@ -287,7 +287,7 @@ export interface GetPaymentClienttokenRequest
287
287
  // POST /payment/{id}/paymenttoken
288
288
 
289
289
  export interface PostPaymentPaymenttokenPath {
290
- // TODO: add parameter to swagger.json
290
+ // Payment ID
291
291
  id: string;
292
292
  }
293
293
 
@@ -345,26 +345,6 @@ export interface PostPaymentMethodRequest extends BaseRequest {
345
345
  body: PostPaymentMethodBody;
346
346
  }
347
347
 
348
- // DELETE /payment/{id}/method/{method_id}
349
-
350
- export interface DeletePaymentMethodPath {
351
- // TODO: add parameter to swagger.json
352
- id: string;
353
- // TODO: add parameter to swagger.json
354
- method_id: string;
355
- }
356
-
357
- export interface DeletePaymentMethodBody {
358
- // The user from where the payment method will be deleted
359
- user: string;
360
- }
361
-
362
- export type DeletePaymentMethodResponse = Success;
363
-
364
- export interface DeletePaymentMethodRequest extends BaseRequest, DeletePaymentMethodPath {
365
- body: DeletePaymentMethodBody;
366
- }
367
-
368
348
  // GET /payment/token
369
349
 
370
350
  export interface GetPaymentTokenQuery {
@@ -462,7 +442,7 @@ export interface GetPaymentHpcRequest extends BaseRequest, RequestQuery<GetPayme
462
442
  // GET /payment/{id}/cashless
463
443
 
464
444
  export interface GetPaymentCashlessPath {
465
- // TODO: add parameter to swagger.json
445
+ // Payment ID
466
446
  id: string;
467
447
  }
468
448
 
@@ -483,7 +463,7 @@ export interface GetPaymentCashlessRequest
483
463
  // POST /payment/{id}/cashless
484
464
 
485
465
  export interface PostPaymentCashlessPath {
486
- // TODO: add parameter to swagger.json
466
+ // Payment ID
487
467
  id: string;
488
468
  }
489
469
 
@@ -503,7 +483,7 @@ export interface PostPaymentCashlessRequest extends BaseRequest, PostPaymentCash
503
483
  // DELETE /payment/{id}/cashless
504
484
 
505
485
  export interface DeletePaymentCashlessPath {
506
- // TODO: add parameter to swagger.json
486
+ // Payment ID
507
487
  id: string;
508
488
  }
509
489
 
@@ -427,7 +427,6 @@ export interface PostPromoVoucherRequest extends BaseRequest {
427
427
  // PUT /promo/voucher/{id} - Update voucher
428
428
 
429
429
  export interface PutPromoVoucherPath {
430
- // TODO: add parameter to swagger.json
431
430
  id: string;
432
431
  }
433
432
 
@@ -442,7 +441,6 @@ export interface PutPromoVoucherRequest extends BaseRequest, PutPromoVoucherPath
442
441
  // DELETE /promo/voucher/{id} - Delete voucher
443
442
 
444
443
  export interface DeletePromoVoucherPath {
445
- // TODO: add parameter to swagger.json
446
444
  id: string;
447
445
  }
448
446
 
@@ -460,7 +458,7 @@ export interface DeletePromoVoucherRequest
460
458
  RequestQuery<DeletePromoVoucherQuery>,
461
459
  DeletePromoVoucherPath {}
462
460
 
463
- // POST /promo/customer/ - Add user to voucherify
461
+ // POST /promo/customer - Add user to voucherify
464
462
 
465
463
  export type PostPromoCustomerBody = VoucherifyCustomer;
466
464
 
@@ -470,7 +468,7 @@ export interface PostPromoCustomerRequest extends BaseRequest {
470
468
  body: PostPromoCustomerBody;
471
469
  }
472
470
 
473
- // DELETE /promo/customer/ - Delete user from voucherify
471
+ // DELETE /promo/customer - Delete user from voucherify
474
472
 
475
473
  export interface DeletePromoCustomerBody {
476
474
  user_id?: string;
@@ -430,7 +430,7 @@ export interface FPValidationData {
430
430
 
431
431
  export type AmountOffExclusion = "discount" | "promo";
432
432
 
433
- // POST /shoppingcart/ - Create a new ShoppingCart
433
+ // POST /shoppingcart - Create a new ShoppingCart
434
434
 
435
435
  export type PostShoppingcartCartBody = ShoppingCartRequest;
436
436
 
@@ -534,7 +534,7 @@ export interface DeleteShoppingcartCartPromoRequest
534
534
  extends BaseRequest,
535
535
  DeleteShoppingcartCartPromoPath {}
536
536
 
537
- // PUT /shoppingcart/{id}/paymentmethod/ - Change payment method used in shopping cart
537
+ // PUT /shoppingcart/{id}/paymentmethod - Change payment method used in shopping cart
538
538
 
539
539
  export interface PutShoppingcartCartPaymentPath {
540
540
  // Shopping cart ID
@@ -570,7 +570,7 @@ export interface GetShoppingcartPaymentMethodsRequest
570
570
  RequestQuery<GetShoppingcartPaymentMethodsQuery>,
571
571
  GetShoppingcartPaymentMethodsPath {}
572
572
 
573
- // PUT /shoppingcart/{id}/order/ - Store information about the order created with this shopping cart
573
+ // PUT /shoppingcart/{id}/order - Store information about the order created with this shopping cart
574
574
 
575
575
  export interface PutShoppingcartCartOrderPath {
576
576
  // Shopping cart ID
@@ -1,5 +0,0 @@
1
- {
2
- "conventionalCommits.scopes": [
3
- "typescript.sdk"
4
- ]
5
- }