@compassdigital/sdk.typescript 3.18.0 → 3.20.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.
Files changed (117) hide show
  1. package/lib/index.d.ts +0 -300
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js +0 -334
  4. package/lib/index.js.map +1 -1
  5. package/lib/interface/announcement.d.ts +7 -1
  6. package/lib/interface/announcement.d.ts.map +1 -1
  7. package/lib/interface/calendar.d.ts +9 -2
  8. package/lib/interface/calendar.d.ts.map +1 -1
  9. package/lib/interface/compassconnect.d.ts +2 -1
  10. package/lib/interface/compassconnect.d.ts.map +1 -1
  11. package/lib/interface/config.d.ts +12 -1
  12. package/lib/interface/config.d.ts.map +1 -1
  13. package/lib/interface/datalake.d.ts +5 -1
  14. package/lib/interface/datalake.d.ts.map +1 -1
  15. package/lib/interface/email.d.ts +2 -0
  16. package/lib/interface/email.d.ts.map +1 -1
  17. package/lib/interface/file.d.ts +3 -0
  18. package/lib/interface/file.d.ts.map +1 -1
  19. package/lib/interface/kds.d.ts +9 -2
  20. package/lib/interface/kds.d.ts.map +1 -1
  21. package/lib/interface/location.d.ts +57 -3
  22. package/lib/interface/location.d.ts.map +1 -1
  23. package/lib/interface/mealplan.d.ts +12 -1
  24. package/lib/interface/mealplan.d.ts.map +1 -1
  25. package/lib/interface/menu.d.ts +27 -1
  26. package/lib/interface/menu.d.ts.map +1 -1
  27. package/lib/interface/notification.d.ts +9 -2
  28. package/lib/interface/notification.d.ts.map +1 -1
  29. package/lib/interface/order.d.ts +15 -1
  30. package/lib/interface/order.d.ts.map +1 -1
  31. package/lib/interface/partner.d.ts +16 -4
  32. package/lib/interface/partner.d.ts.map +1 -1
  33. package/lib/interface/payment.d.ts +15 -1
  34. package/lib/interface/payment.d.ts.map +1 -1
  35. package/lib/interface/permission.d.ts +10 -1
  36. package/lib/interface/permission.d.ts.map +1 -1
  37. package/lib/interface/promo.d.ts +19 -2
  38. package/lib/interface/promo.d.ts.map +1 -1
  39. package/lib/interface/report.d.ts +8 -1
  40. package/lib/interface/report.d.ts.map +1 -1
  41. package/lib/interface/shoppingcart.d.ts +15 -0
  42. package/lib/interface/shoppingcart.d.ts.map +1 -1
  43. package/lib/interface/task.d.ts +12 -1
  44. package/lib/interface/task.d.ts.map +1 -1
  45. package/lib/interface/user.d.ts +33 -3
  46. package/lib/interface/user.d.ts.map +1 -1
  47. package/lib/interface/util.d.ts +12 -0
  48. package/lib/interface/util.d.ts.map +1 -1
  49. package/lib/interface/vendor.d.ts +21 -3
  50. package/lib/interface/vendor.d.ts.map +1 -1
  51. package/manifest.json +4 -36
  52. package/package.json +8 -8
  53. package/src/index.ts +0 -733
  54. package/src/interface/announcement.ts +15 -5
  55. package/src/interface/calendar.ts +17 -6
  56. package/src/interface/compassconnect.ts +4 -2
  57. package/src/interface/config.ts +20 -6
  58. package/src/interface/datalake.ts +5 -2
  59. package/src/interface/email.ts +2 -1
  60. package/src/interface/file.ts +3 -1
  61. package/src/interface/kds.ts +15 -5
  62. package/src/interface/location.ts +103 -26
  63. package/src/interface/mealplan.ts +20 -5
  64. package/src/interface/menu.ts +65 -20
  65. package/src/interface/notification.ts +13 -4
  66. package/src/interface/order.ts +33 -10
  67. package/src/interface/partner.ts +18 -6
  68. package/src/interface/payment.ts +25 -6
  69. package/src/interface/permission.ts +18 -5
  70. package/src/interface/promo.ts +29 -7
  71. package/src/interface/report.ts +18 -6
  72. package/src/interface/shoppingcart.ts +23 -5
  73. package/src/interface/sms.ts +1 -1
  74. package/src/interface/task.ts +26 -8
  75. package/src/interface/user.ts +55 -14
  76. package/src/interface/util.ts +14 -1
  77. package/src/interface/vendor.ts +33 -9
  78. package/lib/interface/brand.d.ts +0 -16
  79. package/lib/interface/brand.d.ts.map +0 -1
  80. package/lib/interface/brand.js +0 -4
  81. package/lib/interface/brand.js.map +0 -1
  82. package/lib/interface/delivery.d.ts +0 -34
  83. package/lib/interface/delivery.d.ts.map +0 -1
  84. package/lib/interface/delivery.js +0 -4
  85. package/lib/interface/delivery.js.map +0 -1
  86. package/lib/interface/dh.d.ts +0 -9
  87. package/lib/interface/dh.d.ts.map +0 -1
  88. package/lib/interface/dh.js +0 -4
  89. package/lib/interface/dh.js.map +0 -1
  90. package/lib/interface/logger.d.ts +0 -30
  91. package/lib/interface/logger.d.ts.map +0 -1
  92. package/lib/interface/logger.js +0 -4
  93. package/lib/interface/logger.js.map +0 -1
  94. package/lib/interface/loyalty.d.ts +0 -351
  95. package/lib/interface/loyalty.d.ts.map +0 -1
  96. package/lib/interface/loyalty.js +0 -4
  97. package/lib/interface/loyalty.js.map +0 -1
  98. package/lib/interface/message.d.ts +0 -42
  99. package/lib/interface/message.d.ts.map +0 -1
  100. package/lib/interface/message.js +0 -4
  101. package/lib/interface/message.js.map +0 -1
  102. package/lib/interface/schedule.d.ts +0 -96
  103. package/lib/interface/schedule.d.ts.map +0 -1
  104. package/lib/interface/schedule.js +0 -4
  105. package/lib/interface/schedule.js.map +0 -1
  106. package/lib/interface/vote.d.ts +0 -57
  107. package/lib/interface/vote.d.ts.map +0 -1
  108. package/lib/interface/vote.js +0 -4
  109. package/lib/interface/vote.js.map +0 -1
  110. package/src/interface/brand.ts +0 -29
  111. package/src/interface/delivery.ts +0 -52
  112. package/src/interface/dh.ts +0 -16
  113. package/src/interface/logger.ts +0 -48
  114. package/src/interface/loyalty.ts +0 -545
  115. package/src/interface/message.ts +0 -58
  116. package/src/interface/schedule.ts +0 -139
  117. package/src/interface/vote.ts +0 -75
@@ -1,6 +1,6 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- import { RequestQuery } from "./util";
3
+ import { RequestQuery, RequestContext } from "./util";
4
4
 
5
5
  export interface Menu {
6
6
  // menu
@@ -307,7 +307,9 @@ export interface GetMenuClientPath {
307
307
 
308
308
  export type GetMenuClientResponse = Menus;
309
309
 
310
- export interface GetMenuClientRequest extends GetMenuClientPath {}
310
+ export interface GetMenuClientRequest extends GetMenuClientPath {
311
+ context?: RequestContext;
312
+ }
311
313
 
312
314
  // GET /menu - Get Menus or search for Menus
313
315
 
@@ -317,7 +319,9 @@ export interface GetMenusQuery {
317
319
 
318
320
  export type GetMenusResponse = Menus;
319
321
 
320
- export interface GetMenusRequest extends RequestQuery<GetMenusQuery> {}
322
+ export interface GetMenusRequest extends RequestQuery<GetMenusQuery> {
323
+ context?: RequestContext;
324
+ }
321
325
 
322
326
  // POST /menu - Create a new Menu
323
327
 
@@ -327,6 +331,7 @@ export type PostMenuResponse = Menu;
327
331
 
328
332
  export interface PostMenuRequest {
329
333
  body: PostMenuBody;
334
+ context?: RequestContext;
330
335
  }
331
336
 
332
337
  // HEAD /menu/{id} - Get an individual Menu
@@ -343,7 +348,9 @@ export interface HeadMenuQuery {
343
348
 
344
349
  export type HeadMenuResponse = any;
345
350
 
346
- export interface HeadMenuRequest extends RequestQuery<HeadMenuQuery>, HeadMenuPath {}
351
+ export interface HeadMenuRequest extends RequestQuery<HeadMenuQuery>, HeadMenuPath {
352
+ context?: RequestContext;
353
+ }
347
354
 
348
355
  // GET /menu/{id} - Get an individual Menu
349
356
 
@@ -364,7 +371,9 @@ export interface GetMenuQuery {
364
371
 
365
372
  export type GetMenuResponse = Menu;
366
373
 
367
- export interface GetMenuRequest extends RequestQuery<GetMenuQuery>, GetMenuPath {}
374
+ export interface GetMenuRequest extends RequestQuery<GetMenuQuery>, GetMenuPath {
375
+ context?: RequestContext;
376
+ }
368
377
 
369
378
  // PUT /menu/{id} - Override a complete Menu
370
379
 
@@ -384,6 +393,7 @@ export type PutMenuResponse = Menu;
384
393
 
385
394
  export interface PutMenuRequest extends RequestQuery<PutMenuQuery>, PutMenuPath {
386
395
  body: PutMenuBody;
396
+ context?: RequestContext;
387
397
  }
388
398
 
389
399
  // DELETE /menu/{id} - Delete a Menu
@@ -400,7 +410,9 @@ export interface DeleteMenuQuery {
400
410
 
401
411
  export type DeleteMenuResponse = Success;
402
412
 
403
- export interface DeleteMenuRequest extends RequestQuery<DeleteMenuQuery>, DeleteMenuPath {}
413
+ export interface DeleteMenuRequest extends RequestQuery<DeleteMenuQuery>, DeleteMenuPath {
414
+ context?: RequestContext;
415
+ }
404
416
 
405
417
  // PATCH /menu/{id} - Update a menu
406
418
 
@@ -420,6 +432,7 @@ export type PatchMenuResponse = Menu;
420
432
 
421
433
  export interface PatchMenuRequest extends RequestQuery<PatchMenuQuery>, PatchMenuPath {
422
434
  body: PatchMenuBody;
435
+ context?: RequestContext;
423
436
  }
424
437
 
425
438
  // POST /menu/import - Import an existing Menu
@@ -435,6 +448,7 @@ export type PostMenuImportMenuResponse = Menu;
435
448
 
436
449
  export interface PostMenuImportMenuRequest {
437
450
  body: PostMenuImportMenuBody;
451
+ context?: RequestContext;
438
452
  }
439
453
 
440
454
  // GET /menu/item/{id} - Get menu item
@@ -450,7 +464,9 @@ export interface GetMenuItemQuery {
450
464
 
451
465
  export type GetMenuItemResponse = Item;
452
466
 
453
- export interface GetMenuItemRequest extends RequestQuery<GetMenuItemQuery>, GetMenuItemPath {}
467
+ export interface GetMenuItemRequest extends RequestQuery<GetMenuItemQuery>, GetMenuItemPath {
468
+ context?: RequestContext;
469
+ }
454
470
 
455
471
  // DELETE /menu/item/{id} - Delete a menu item
456
472
 
@@ -461,7 +477,9 @@ export interface DeleteMenuItemPath {
461
477
 
462
478
  export type DeleteMenuItemResponse = Success;
463
479
 
464
- export interface DeleteMenuItemRequest extends DeleteMenuItemPath {}
480
+ export interface DeleteMenuItemRequest extends DeleteMenuItemPath {
481
+ context?: RequestContext;
482
+ }
465
483
 
466
484
  // POST /menu/item - Create a menu item
467
485
 
@@ -471,6 +489,7 @@ export type PostMenuItemResponse = Item;
471
489
 
472
490
  export interface PostMenuItemRequest {
473
491
  body: PostMenuItemBody;
492
+ context?: RequestContext;
474
493
  }
475
494
 
476
495
  // GET /menu/items - Search for menu items
@@ -481,7 +500,9 @@ export interface GetMenuItemsQuery {
481
500
 
482
501
  export type GetMenuItemsResponse = Items;
483
502
 
484
- export interface GetMenuItemsRequest extends RequestQuery<GetMenuItemsQuery> {}
503
+ export interface GetMenuItemsRequest extends RequestQuery<GetMenuItemsQuery> {
504
+ context?: RequestContext;
505
+ }
485
506
 
486
507
  // POST /menu/items/import/{location} - trigger import items
487
508
 
@@ -492,7 +513,9 @@ export interface PostMenuImportItemsCanteenPath {
492
513
 
493
514
  export type PostMenuImportItemsCanteenResponse = Success;
494
515
 
495
- export interface PostMenuImportItemsCanteenRequest extends PostMenuImportItemsCanteenPath {}
516
+ export interface PostMenuImportItemsCanteenRequest extends PostMenuImportItemsCanteenPath {
517
+ context?: RequestContext;
518
+ }
496
519
 
497
520
  // GET /menu/items/location/{location} - Get all menu items for a location
498
521
 
@@ -503,7 +526,9 @@ export interface GetMenuLocationItemsPath {
503
526
 
504
527
  export type GetMenuLocationItemsResponse = Items;
505
528
 
506
- export interface GetMenuLocationItemsRequest extends GetMenuLocationItemsPath {}
529
+ export interface GetMenuLocationItemsRequest extends GetMenuLocationItemsPath {
530
+ context?: RequestContext;
531
+ }
507
532
 
508
533
  // GET /menu/item/random/location/{location} - Get a random item
509
534
 
@@ -525,7 +550,9 @@ export type GetMenuLocationItemRandomResponse = Item;
525
550
 
526
551
  export interface GetMenuLocationItemRandomRequest
527
552
  extends RequestQuery<GetMenuLocationItemRandomQuery>,
528
- GetMenuLocationItemRandomPath {}
553
+ GetMenuLocationItemRandomPath {
554
+ context?: RequestContext;
555
+ }
529
556
 
530
557
  // GET /menu/items/random/location/{location} - Get a set of random items
531
558
 
@@ -549,7 +576,9 @@ export type GetMenuLocationItemsRandomResponse = Items;
549
576
 
550
577
  export interface GetMenuLocationItemsRandomRequest
551
578
  extends RequestQuery<GetMenuLocationItemsRandomQuery>,
552
- GetMenuLocationItemsRandomPath {}
579
+ GetMenuLocationItemsRandomPath {
580
+ context?: RequestContext;
581
+ }
553
582
 
554
583
  // GET /menu/sector/{sector} - Get menus that belong to sector
555
584
 
@@ -560,7 +589,9 @@ export interface GetMenuSectorMenusPath {
560
589
 
561
590
  export type GetMenuSectorMenusResponse = Menus;
562
591
 
563
- export interface GetMenuSectorMenusRequest extends GetMenuSectorMenusPath {}
592
+ export interface GetMenuSectorMenusRequest extends GetMenuSectorMenusPath {
593
+ context?: RequestContext;
594
+ }
564
595
 
565
596
  // GET /menu/company/{company} - Get menus that belong to company
566
597
 
@@ -571,7 +602,9 @@ export interface GetMenuCompanyMenusPath {
571
602
 
572
603
  export type GetMenuCompanyMenusResponse = Menus;
573
604
 
574
- export interface GetMenuCompanyMenusRequest extends GetMenuCompanyMenusPath {}
605
+ export interface GetMenuCompanyMenusRequest extends GetMenuCompanyMenusPath {
606
+ context?: RequestContext;
607
+ }
575
608
 
576
609
  // POST /menu/modifier/group - Create a new Menu Modifier Group
577
610
 
@@ -581,6 +614,7 @@ export type PostMenuModifierGroupResponse = OptionsGroup;
581
614
 
582
615
  export interface PostMenuModifierGroupRequest {
583
616
  body: PostMenuModifierGroupBody;
617
+ context?: RequestContext;
584
618
  }
585
619
 
586
620
  // GET /menu/modifier/group/{id} - Get a Menu Modifier Group
@@ -592,7 +626,9 @@ export interface GetMenuModifierGroupPath {
592
626
 
593
627
  export type GetMenuModifierGroupResponse = OptionsGroup;
594
628
 
595
- export interface GetMenuModifierGroupRequest extends GetMenuModifierGroupPath {}
629
+ export interface GetMenuModifierGroupRequest extends GetMenuModifierGroupPath {
630
+ context?: RequestContext;
631
+ }
596
632
 
597
633
  // PUT /menu/modifier/group/{id} - Update a Menu Modifier Group
598
634
 
@@ -607,6 +643,7 @@ export type PutMenuModifierGroupResponse = OptionsGroup;
607
643
 
608
644
  export interface PutMenuModifierGroupRequest extends PutMenuModifierGroupPath {
609
645
  body: PutMenuModifierGroupBody;
646
+ context?: RequestContext;
610
647
  }
611
648
 
612
649
  // DELETE /menu/modifier/group/{id} - Delete a Menu Modifier Group
@@ -618,7 +655,9 @@ export interface DeleteMenuModifierGroupPath {
618
655
 
619
656
  export type DeleteMenuModifierGroupResponse = Success;
620
657
 
621
- export interface DeleteMenuModifierGroupRequest extends DeleteMenuModifierGroupPath {}
658
+ export interface DeleteMenuModifierGroupRequest extends DeleteMenuModifierGroupPath {
659
+ context?: RequestContext;
660
+ }
622
661
 
623
662
  // GET /menu/modifier/group/company/{company} - Get the modifier groups that belong to company
624
663
 
@@ -629,7 +668,9 @@ export interface GetMenuCompanyModifierGroupsPath {
629
668
 
630
669
  export type GetMenuCompanyModifierGroupsResponse = OptionsGroupList;
631
670
 
632
- export interface GetMenuCompanyModifierGroupsRequest extends GetMenuCompanyModifierGroupsPath {}
671
+ export interface GetMenuCompanyModifierGroupsRequest extends GetMenuCompanyModifierGroupsPath {
672
+ context?: RequestContext;
673
+ }
633
674
 
634
675
  // GET /menu/modifier/group/company/{company}/export - Export company modifier groups to zipped excel file.
635
676
 
@@ -641,7 +682,9 @@ export interface GetMenuCompanyModifierGroupsExportPath {
641
682
  export type GetMenuCompanyModifierGroupsExportResponse = ZippedExcelExport;
642
683
 
643
684
  export interface GetMenuCompanyModifierGroupsExportRequest
644
- extends GetMenuCompanyModifierGroupsExportPath {}
685
+ extends GetMenuCompanyModifierGroupsExportPath {
686
+ context?: RequestContext;
687
+ }
645
688
 
646
689
  // GET /menu/{id}/export - Export menu set to zipped excel file.
647
690
 
@@ -652,4 +695,6 @@ export interface GetMenuExportPath {
652
695
 
653
696
  export type GetMenuExportResponse = ZippedExcelExport;
654
697
 
655
- export interface GetMenuExportRequest extends GetMenuExportPath {}
698
+ export interface GetMenuExportRequest extends GetMenuExportPath {
699
+ context?: RequestContext;
700
+ }
@@ -1,6 +1,6 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- import { RequestQuery } from "./util";
3
+ import { RequestQuery, RequestContext } from "./util";
4
4
 
5
5
  export interface Error {
6
6
  error?: string;
@@ -52,7 +52,9 @@ export interface GetNotificationsResponse {
52
52
  notifications?: Notification[];
53
53
  }
54
54
 
55
- export interface GetNotificationsRequest extends RequestQuery<GetNotificationsQuery> {}
55
+ export interface GetNotificationsRequest extends RequestQuery<GetNotificationsQuery> {
56
+ context?: RequestContext;
57
+ }
56
58
 
57
59
  // POST /notification - Create a notification
58
60
 
@@ -62,6 +64,7 @@ export type PostNotificationResponse = Notification;
62
64
 
63
65
  export interface PostNotificationRequest {
64
66
  body: PostNotificationBody;
67
+ context?: RequestContext;
65
68
  }
66
69
 
67
70
  // PATCH /notification/{id} - Update a notification
@@ -77,6 +80,7 @@ export type PatchNotificationResponse = Notification;
77
80
 
78
81
  export interface PatchNotificationRequest extends PatchNotificationPath {
79
82
  body: PatchNotificationBody;
83
+ context?: RequestContext;
80
84
  }
81
85
 
82
86
  // DELETE /notification/{id} - Delete a notification
@@ -88,7 +92,9 @@ export interface DeleteNotificationPath {
88
92
 
89
93
  export type DeleteNotificationResponse = Success;
90
94
 
91
- export interface DeleteNotificationRequest extends DeleteNotificationPath {}
95
+ export interface DeleteNotificationRequest extends DeleteNotificationPath {
96
+ context?: RequestContext;
97
+ }
92
98
 
93
99
  // POST /notification/{id}/status - Set a notification status for request user
94
100
 
@@ -106,6 +112,7 @@ export type PostNotificationStatusResponse = NotificationStatus;
106
112
 
107
113
  export interface PostNotificationStatusRequest extends PostNotificationStatusPath {
108
114
  body: PostNotificationStatusBody;
115
+ context?: RequestContext;
109
116
  }
110
117
 
111
118
  // GET /notification/swagger.json - Get a swagger for notification service
@@ -114,4 +121,6 @@ export interface GetNotificationSwaggerResponse {
114
121
  [index: string]: any;
115
122
  }
116
123
 
117
- export type GetNotificationSwaggerRequest = {};
124
+ export interface GetNotificationSwaggerRequest {
125
+ context?: RequestContext;
126
+ }
@@ -1,6 +1,6 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- import { RequestQuery } from "./util";
3
+ import { RequestQuery, RequestContext } from "./util";
4
4
 
5
5
  export interface CreateOrder {
6
6
  // brand
@@ -293,6 +293,7 @@ export type PostOrderResponse = Order;
293
293
 
294
294
  export interface PostOrderRequest extends RequestQuery<PostOrderQuery> {
295
295
  body: PostOrderBody;
296
+ context?: RequestContext;
296
297
  }
297
298
 
298
299
  // GET /order/{id} - Get an individual order
@@ -304,7 +305,9 @@ export interface GetOrderPath {
304
305
 
305
306
  export type GetOrderResponse = Order;
306
307
 
307
- export interface GetOrderRequest extends GetOrderPath {}
308
+ export interface GetOrderRequest extends GetOrderPath {
309
+ context?: RequestContext;
310
+ }
308
311
 
309
312
  // PUT /order/{id} - Update an individual order
310
313
 
@@ -315,7 +318,9 @@ export interface PutOrderPath {
315
318
 
316
319
  export type PutOrderResponse = Order;
317
320
 
318
- export interface PutOrderRequest extends PutOrderPath {}
321
+ export interface PutOrderRequest extends PutOrderPath {
322
+ context?: RequestContext;
323
+ }
319
324
 
320
325
  // PATCH /order/{id} - Update an existing order
321
326
 
@@ -330,6 +335,7 @@ export type PatchOrderResponse = Order;
330
335
 
331
336
  export interface PatchOrderRequest extends PatchOrderPath {
332
337
  body: PatchOrderBody;
338
+ context?: RequestContext;
333
339
  }
334
340
 
335
341
  // POST /order/{id}/issue - Create an issue with an order
@@ -345,6 +351,7 @@ export type PostOrderIssueResponse = Issue;
345
351
 
346
352
  export interface PostOrderIssueRequest extends PostOrderIssuePath {
347
353
  body: PostOrderIssueBody;
354
+ context?: RequestContext;
348
355
  }
349
356
 
350
357
  // PATCH /order/{id}/refund - Issue a refund on an existing order
@@ -360,6 +367,7 @@ export type PatchOrderRefundResponse = Order;
360
367
 
361
368
  export interface PatchOrderRefundRequest extends PatchOrderRefundPath {
362
369
  body: PatchOrderRefundBody;
370
+ context?: RequestContext;
363
371
  }
364
372
 
365
373
  // GET /order/customer/{id} - Get all orders for a Customer
@@ -390,7 +398,9 @@ export interface GetOrderCustomerOrdersResponse {
390
398
 
391
399
  export interface GetOrderCustomerOrdersRequest
392
400
  extends RequestQuery<GetOrderCustomerOrdersQuery>,
393
- GetOrderCustomerOrdersPath {}
401
+ GetOrderCustomerOrdersPath {
402
+ context?: RequestContext;
403
+ }
394
404
 
395
405
  // GET /order/customer/{id}/location/brand/{location_brand} - Get all orders for a Customer for a specific Location Brand
396
406
 
@@ -403,7 +413,9 @@ export interface GetOrderCustomerOrdersBrandPath {
403
413
 
404
414
  export type GetOrderCustomerOrdersBrandResponse = Orders;
405
415
 
406
- export interface GetOrderCustomerOrdersBrandRequest extends GetOrderCustomerOrdersBrandPath {}
416
+ export interface GetOrderCustomerOrdersBrandRequest extends GetOrderCustomerOrdersBrandPath {
417
+ context?: RequestContext;
418
+ }
407
419
 
408
420
  // GET /order/location/brand/{id} - Get all orders for a location Brand
409
421
 
@@ -433,7 +445,9 @@ export type GetOrderLocationBrandResponse = Orders;
433
445
 
434
446
  export interface GetOrderLocationBrandRequest
435
447
  extends RequestQuery<GetOrderLocationBrandQuery>,
436
- GetOrderLocationBrandPath {}
448
+ GetOrderLocationBrandPath {
449
+ context?: RequestContext;
450
+ }
437
451
 
438
452
  // GET /order/location/{id} - Get all orders for a location
439
453
 
@@ -463,7 +477,9 @@ export type GetOrderLocationOrdersResponse = Orders;
463
477
 
464
478
  export interface GetOrderLocationOrdersRequest
465
479
  extends RequestQuery<GetOrderLocationOrdersQuery>,
466
- GetOrderLocationOrdersPath {}
480
+ GetOrderLocationOrdersPath {
481
+ context?: RequestContext;
482
+ }
467
483
 
468
484
  // GET /order/location/group/{id} - Get all orders for a location group
469
485
 
@@ -491,7 +507,9 @@ export interface GetOrderGroupOrdersResponse {
491
507
 
492
508
  export interface GetOrderGroupOrdersRequest
493
509
  extends RequestQuery<GetOrderGroupOrdersQuery>,
494
- GetOrderGroupOrdersPath {}
510
+ GetOrderGroupOrdersPath {
511
+ context?: RequestContext;
512
+ }
495
513
 
496
514
  // GET /order/user/{id} - Get all delivery orders for a User related to the order in the details (Runner)
497
515
 
@@ -515,7 +533,9 @@ export interface GetOrderUserOrdersResponse {
515
533
 
516
534
  export interface GetOrderUserOrdersRequest
517
535
  extends RequestQuery<GetOrderUserOrdersQuery>,
518
- GetOrderUserOrdersPath {}
536
+ GetOrderUserOrdersPath {
537
+ context?: RequestContext;
538
+ }
519
539
 
520
540
  // PATCH /order/{id}/checkin - Accept an order by checking in
521
541
 
@@ -526,7 +546,9 @@ export interface PatchOrderCheckinPath {
526
546
 
527
547
  export type PatchOrderCheckinResponse = Order;
528
548
 
529
- export interface PatchOrderCheckinRequest extends PatchOrderCheckinPath {}
549
+ export interface PatchOrderCheckinRequest extends PatchOrderCheckinPath {
550
+ context?: RequestContext;
551
+ }
530
552
 
531
553
  // POST /order/apex/sns - Update apex integrated order
532
554
 
@@ -536,4 +558,5 @@ export type PostOrderApexSnsResponse = ActionResponse;
536
558
 
537
559
  export interface PostOrderApexSnsRequest {
538
560
  body: PostOrderApexSnsBody;
561
+ context?: RequestContext;
539
562
  }
@@ -1,6 +1,6 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- import { RequestQuery } from "./util";
3
+ import { RequestQuery, RequestContext } from "./util";
4
4
 
5
5
  export interface Error {
6
6
  message?: string;
@@ -709,6 +709,7 @@ export type PostPartnerStandardcognitionShoppingcartResponse = ShoppingCart;
709
709
 
710
710
  export interface PostPartnerStandardcognitionShoppingcartRequest {
711
711
  body: PostPartnerStandardcognitionShoppingcartBody;
712
+ context?: RequestContext;
712
713
  }
713
714
 
714
715
  // GET /partner/standardcognition/locations - Gets the locations where Standard Cognition is available
@@ -717,13 +718,17 @@ export interface GetPartnerStandardcognitionLocationsResponse {
717
718
  groups?: LocationGroup;
718
719
  }
719
720
 
720
- export type GetPartnerStandardcognitionLocationsRequest = {};
721
+ export interface GetPartnerStandardcognitionLocationsRequest {
722
+ context?: RequestContext;
723
+ }
721
724
 
722
725
  // GET /partner/standardcognition/stores - Gets the UUID for all the Standard Cognition external locations
723
726
 
724
727
  export type GetPartnerStandardcognitionStoresResponse = CognitionStore;
725
728
 
726
- export type GetPartnerStandardcognitionStoresRequest = {};
729
+ export interface GetPartnerStandardcognitionStoresRequest {
730
+ context?: RequestContext;
731
+ }
727
732
 
728
733
  // POST /partner/standardcognition/menu - Create new Standard Cognition menu from JSON files
729
734
 
@@ -744,6 +749,7 @@ export type PostPartnerStandardcognitionMenuResponse = Menu;
744
749
 
745
750
  export interface PostPartnerStandardcognitionMenuRequest {
746
751
  body: PostPartnerStandardcognitionMenuBody;
752
+ context?: RequestContext;
747
753
  }
748
754
 
749
755
  // GET /partner/coolr/locations - Gets the locations where Coolr is available
@@ -752,7 +758,9 @@ export interface GetPartnerCoolrLocationsResponse {
752
758
  locations?: CoolrLocations[];
753
759
  }
754
760
 
755
- export type GetPartnerCoolrLocationsRequest = {};
761
+ export interface GetPartnerCoolrLocationsRequest {
762
+ context?: RequestContext;
763
+ }
756
764
 
757
765
  // GET /partner/coolr/{id}/images - Gets the latest images for Coolr Location AssetID
758
766
 
@@ -765,7 +773,9 @@ export interface GetPartnerCoolrImagesResponse {
765
773
  images?: CoolrImages;
766
774
  }
767
775
 
768
- export interface GetPartnerCoolrImagesRequest extends GetPartnerCoolrImagesPath {}
776
+ export interface GetPartnerCoolrImagesRequest extends GetPartnerCoolrImagesPath {
777
+ context?: RequestContext;
778
+ }
769
779
 
770
780
  // GET /partner/swagger.json
771
781
 
@@ -773,4 +783,6 @@ export interface GetPartnerSwaggerResponse {
773
783
  [index: string]: any;
774
784
  }
775
785
 
776
- export type GetPartnerSwaggerRequest = {};
786
+ export interface GetPartnerSwaggerRequest {
787
+ context?: RequestContext;
788
+ }
@@ -1,6 +1,6 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- import { RequestQuery } from "./util";
3
+ import { RequestQuery, RequestContext } from "./util";
4
4
 
5
5
  export interface Transaction {
6
6
  success?: boolean;
@@ -147,6 +147,7 @@ export type PostPaymentTransactionResponse = Transaction;
147
147
 
148
148
  export interface PostPaymentTransactionRequest extends PostPaymentTransactionPath {
149
149
  body: PostPaymentTransactionBody;
150
+ context?: RequestContext;
150
151
  }
151
152
 
152
153
  // POST /payment/{id}/transaction/{transaction_id}/refund
@@ -173,6 +174,7 @@ export type PostPaymentTransactionRefundResponse = Refund;
173
174
 
174
175
  export interface PostPaymentTransactionRefundRequest extends PostPaymentTransactionRefundPath {
175
176
  body: PostPaymentTransactionRefundBody;
177
+ context?: RequestContext;
176
178
  }
177
179
 
178
180
  // GET /payment/{id}/clienttoken
@@ -184,7 +186,9 @@ export interface GetPaymentClienttokenPath {
184
186
 
185
187
  export type GetPaymentClienttokenResponse = ClientToken;
186
188
 
187
- export interface GetPaymentClienttokenRequest extends GetPaymentClienttokenPath {}
189
+ export interface GetPaymentClienttokenRequest extends GetPaymentClienttokenPath {
190
+ context?: RequestContext;
191
+ }
188
192
 
189
193
  // POST /payment/{id}/paymenttoken
190
194
 
@@ -216,6 +220,7 @@ export type PostPaymentPaymenttokenResponse = PaymentMethod;
216
220
 
217
221
  export interface PostPaymentPaymenttokenRequest extends PostPaymentPaymenttokenPath {
218
222
  body: PostPaymentPaymenttokenBody;
223
+ context?: RequestContext;
219
224
  }
220
225
 
221
226
  // POST /payment/consumer
@@ -229,6 +234,7 @@ export type PostPaymentConsumerResponse = ConsumerId;
229
234
 
230
235
  export interface PostPaymentConsumerRequest {
231
236
  body: PostPaymentConsumerBody;
237
+ context?: RequestContext;
232
238
  }
233
239
 
234
240
  // POST /payment/method
@@ -246,6 +252,7 @@ export interface PostPaymentMethodResponse {
246
252
 
247
253
  export interface PostPaymentMethodRequest {
248
254
  body: PostPaymentMethodBody;
255
+ context?: RequestContext;
249
256
  }
250
257
 
251
258
  // GET /payment/{id}/method - Get a users available payment methods
@@ -266,7 +273,9 @@ export interface GetPaymentMethodResponse {
266
273
 
267
274
  export interface GetPaymentMethodRequest
268
275
  extends RequestQuery<GetPaymentMethodQuery>,
269
- GetPaymentMethodPath {}
276
+ GetPaymentMethodPath {
277
+ context?: RequestContext;
278
+ }
270
279
 
271
280
  // DELETE /payment/{id}/method/{method_id}
272
281
 
@@ -286,6 +295,7 @@ export type DeletePaymentMethodResponse = Success;
286
295
 
287
296
  export interface DeletePaymentMethodRequest extends DeletePaymentMethodPath {
288
297
  body: DeletePaymentMethodBody;
298
+ context?: RequestContext;
289
299
  }
290
300
 
291
301
  // GET /payment/token
@@ -305,7 +315,9 @@ export interface GetPaymentTokenQuery {
305
315
 
306
316
  export type GetPaymentTokenResponse = TokenInformation;
307
317
 
308
- export interface GetPaymentTokenRequest extends RequestQuery<GetPaymentTokenQuery> {}
318
+ export interface GetPaymentTokenRequest extends RequestQuery<GetPaymentTokenQuery> {
319
+ context?: RequestContext;
320
+ }
309
321
 
310
322
  // POST /payment/token
311
323
 
@@ -324,6 +336,7 @@ export type PostPaymentTokenResponse = PaymentCard;
324
336
 
325
337
  export interface PostPaymentTokenRequest {
326
338
  body: PostPaymentTokenBody;
339
+ context?: RequestContext;
327
340
  }
328
341
 
329
342
  // PUT /payment/token
@@ -341,6 +354,7 @@ export type PutPaymentTokenResponse = PaymentCard;
341
354
 
342
355
  export interface PutPaymentTokenRequest {
343
356
  body: PutPaymentTokenBody;
357
+ context?: RequestContext;
344
358
  }
345
359
 
346
360
  // DELETE /payment/token
@@ -358,6 +372,7 @@ export type DeletePaymentTokenResponse = Success;
358
372
 
359
373
  export interface DeletePaymentTokenRequest {
360
374
  body: DeletePaymentTokenBody;
375
+ context?: RequestContext;
361
376
  }
362
377
 
363
378
  // GET /payment/methods
@@ -374,7 +389,9 @@ export interface GetPaymentMethodsResponse {
374
389
  recordsTotal?: number;
375
390
  }
376
391
 
377
- export interface GetPaymentMethodsRequest extends RequestQuery<GetPaymentMethodsQuery> {}
392
+ export interface GetPaymentMethodsRequest extends RequestQuery<GetPaymentMethodsQuery> {
393
+ context?: RequestContext;
394
+ }
378
395
 
379
396
  // GET /payment/hpc
380
397
 
@@ -390,4 +407,6 @@ export interface GetPaymentHpcResponse {
390
407
  sessionKey?: string;
391
408
  }
392
409
 
393
- export interface GetPaymentHpcRequest extends RequestQuery<GetPaymentHpcQuery> {}
410
+ export interface GetPaymentHpcRequest extends RequestQuery<GetPaymentHpcQuery> {
411
+ context?: RequestContext;
412
+ }