@compassdigital/sdk.typescript 3.20.0 → 3.22.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 (82) hide show
  1. package/lib/index.d.ts +177 -0
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js +192 -0
  4. package/lib/index.js.map +1 -1
  5. package/lib/interface/announcement.d.ts +7 -13
  6. package/lib/interface/announcement.d.ts.map +1 -1
  7. package/lib/interface/calendar.d.ts +7 -13
  8. package/lib/interface/calendar.d.ts.map +1 -1
  9. package/lib/interface/compassconnect.d.ts +2 -3
  10. package/lib/interface/compassconnect.d.ts.map +1 -1
  11. package/lib/interface/config.d.ts +10 -19
  12. package/lib/interface/config.d.ts.map +1 -1
  13. package/lib/interface/datalake.d.ts +3 -5
  14. package/lib/interface/datalake.d.ts.map +1 -1
  15. package/lib/interface/email.d.ts +2 -3
  16. package/lib/interface/email.d.ts.map +1 -1
  17. package/lib/interface/file.d.ts +3 -5
  18. package/lib/interface/file.d.ts.map +1 -1
  19. package/lib/interface/kds.d.ts +7 -13
  20. package/lib/interface/kds.d.ts.map +1 -1
  21. package/lib/interface/location.d.ts +53 -105
  22. package/lib/interface/location.d.ts.map +1 -1
  23. package/lib/interface/loyalty.d.ts +351 -0
  24. package/lib/interface/loyalty.d.ts.map +1 -0
  25. package/lib/interface/loyalty.js +4 -0
  26. package/lib/interface/loyalty.js.map +1 -0
  27. package/lib/interface/mealplan.d.ts +12 -23
  28. package/lib/interface/mealplan.d.ts.map +1 -1
  29. package/lib/interface/menu.d.ts +27 -53
  30. package/lib/interface/menu.d.ts.map +1 -1
  31. package/lib/interface/notification.d.ts +7 -13
  32. package/lib/interface/notification.d.ts.map +1 -1
  33. package/lib/interface/order.d.ts +15 -29
  34. package/lib/interface/order.d.ts.map +1 -1
  35. package/lib/interface/partner.d.ts +8 -15
  36. package/lib/interface/partner.d.ts.map +1 -1
  37. package/lib/interface/payment.d.ts +15 -29
  38. package/lib/interface/payment.d.ts.map +1 -1
  39. package/lib/interface/permission.d.ts +10 -19
  40. package/lib/interface/permission.d.ts.map +1 -1
  41. package/lib/interface/promo.d.ts +17 -33
  42. package/lib/interface/promo.d.ts.map +1 -1
  43. package/lib/interface/report.d.ts +8 -15
  44. package/lib/interface/report.d.ts.map +1 -1
  45. package/lib/interface/shoppingcart.d.ts +15 -29
  46. package/lib/interface/shoppingcart.d.ts.map +1 -1
  47. package/lib/interface/task.d.ts +11 -21
  48. package/lib/interface/task.d.ts.map +1 -1
  49. package/lib/interface/user.d.ts +29 -57
  50. package/lib/interface/user.d.ts.map +1 -1
  51. package/lib/interface/util.d.ts +9 -2
  52. package/lib/interface/util.d.ts.map +1 -1
  53. package/lib/interface/vendor.d.ts +17 -33
  54. package/lib/interface/vendor.d.ts.map +1 -1
  55. package/manifest.json +4 -0
  56. package/package.json +2 -2
  57. package/src/index.ts +481 -0
  58. package/src/interface/announcement.ts +10 -18
  59. package/src/interface/calendar.ts +12 -19
  60. package/src/interface/compassconnect.ts +3 -4
  61. package/src/interface/config.ts +10 -24
  62. package/src/interface/datalake.ts +3 -6
  63. package/src/interface/email.ts +2 -3
  64. package/src/interface/file.ts +3 -5
  65. package/src/interface/kds.ts +7 -17
  66. package/src/interface/location.ts +105 -143
  67. package/src/interface/loyalty.ts +558 -0
  68. package/src/interface/mealplan.ts +13 -27
  69. package/src/interface/menu.ts +42 -74
  70. package/src/interface/notification.ts +7 -16
  71. package/src/interface/order.ts +27 -43
  72. package/src/interface/partner.ts +8 -20
  73. package/src/interface/payment.ts +21 -35
  74. package/src/interface/permission.ts +14 -24
  75. package/src/interface/promo.ts +21 -41
  76. package/src/interface/report.ts +21 -23
  77. package/src/interface/shoppingcart.ts +27 -33
  78. package/src/interface/sms.ts +1 -1
  79. package/src/interface/task.ts +17 -31
  80. package/src/interface/user.ts +45 -72
  81. package/src/interface/util.ts +10 -2
  82. package/src/interface/vendor.ts +24 -42
@@ -1,6 +1,6 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
- import { RequestQuery, RequestContext } from "./util";
3
+ import { RequestQuery, BaseRequest } from "./util";
4
4
 
5
5
  export interface POS {
6
6
  // pos
@@ -428,18 +428,15 @@ export type PostLocationBody = Location;
428
428
 
429
429
  export type PostLocationResponse = Location;
430
430
 
431
- export interface PostLocationRequest {
431
+ export interface PostLocationRequest extends BaseRequest {
432
432
  body: PostLocationBody;
433
- context?: RequestContext;
434
433
  }
435
434
 
436
435
  // GET /location - Get all location
437
436
 
438
437
  export type GetLocationsResponse = Locations;
439
438
 
440
- export interface GetLocationsRequest {
441
- context?: RequestContext;
442
- }
439
+ export interface GetLocationsRequest extends BaseRequest {}
443
440
 
444
441
  // GET /location/search - Gets Location within a radius of the provided point
445
442
 
@@ -454,9 +451,9 @@ export interface GetLocationSearchQuery {
454
451
 
455
452
  export type GetLocationSearchResponse = Locations;
456
453
 
457
- export interface GetLocationSearchRequest extends RequestQuery<GetLocationSearchQuery> {
458
- context?: RequestContext;
459
- }
454
+ export interface GetLocationSearchRequest
455
+ extends BaseRequest,
456
+ RequestQuery<GetLocationSearchQuery> {}
460
457
 
461
458
  // GET /location/{id} - Get an individual Location
462
459
 
@@ -477,9 +474,10 @@ export interface GetLocationQuery {
477
474
 
478
475
  export type GetLocationResponse = Location;
479
476
 
480
- export interface GetLocationRequest extends RequestQuery<GetLocationQuery>, GetLocationPath {
481
- context?: RequestContext;
482
- }
477
+ export interface GetLocationRequest
478
+ extends BaseRequest,
479
+ RequestQuery<GetLocationQuery>,
480
+ GetLocationPath {}
483
481
 
484
482
  // PUT /location/{id} - Override a complete Location
485
483
 
@@ -492,9 +490,8 @@ export type PutLocationBody = Location;
492
490
 
493
491
  export type PutLocationResponse = Location;
494
492
 
495
- export interface PutLocationRequest extends PutLocationPath {
493
+ export interface PutLocationRequest extends BaseRequest, PutLocationPath {
496
494
  body: PutLocationBody;
497
- context?: RequestContext;
498
495
  }
499
496
 
500
497
  // DELETE /location/{id} - Delete brands from a Location
@@ -511,9 +508,8 @@ export interface DeleteLocationBody {
511
508
 
512
509
  export type DeleteLocationResponse = Location;
513
510
 
514
- export interface DeleteLocationRequest extends DeleteLocationPath {
511
+ export interface DeleteLocationRequest extends BaseRequest, DeleteLocationPath {
515
512
  body: DeleteLocationBody;
516
- context?: RequestContext;
517
513
  }
518
514
 
519
515
  // PATCH /location/{id} - Update a Location
@@ -527,9 +523,8 @@ export type PatchLocationBody = Location;
527
523
 
528
524
  export type PatchLocationResponse = Location;
529
525
 
530
- export interface PatchLocationRequest extends PatchLocationPath {
526
+ export interface PatchLocationRequest extends BaseRequest, PatchLocationPath {
531
527
  body: PatchLocationBody;
532
- context?: RequestContext;
533
528
  }
534
529
 
535
530
  // GET /location/pos/{id} - Get information about a POS
@@ -541,9 +536,7 @@ export interface GetLocationPosPath {
541
536
 
542
537
  export type GetLocationPosResponse = POS;
543
538
 
544
- export interface GetLocationPosRequest extends GetLocationPosPath {
545
- context?: RequestContext;
546
- }
539
+ export interface GetLocationPosRequest extends BaseRequest, GetLocationPosPath {}
547
540
 
548
541
  // PUT /location/pos/{id} - Set information about a POS
549
542
 
@@ -556,9 +549,8 @@ export type PutLocationPosBody = POS;
556
549
 
557
550
  export type PutLocationPosResponse = POS;
558
551
 
559
- export interface PutLocationPosRequest extends PutLocationPosPath {
552
+ export interface PutLocationPosRequest extends BaseRequest, PutLocationPosPath {
560
553
  body: PutLocationPosBody;
561
- context?: RequestContext;
562
554
  }
563
555
 
564
556
  // GET /location/multigroup - Get all the top level multigroups
@@ -569,9 +561,9 @@ export interface GetLocationMultigroupsQuery {
569
561
 
570
562
  export type GetLocationMultigroupsResponse = Multigroups;
571
563
 
572
- export interface GetLocationMultigroupsRequest extends RequestQuery<GetLocationMultigroupsQuery> {
573
- context?: RequestContext;
574
- }
564
+ export interface GetLocationMultigroupsRequest
565
+ extends BaseRequest,
566
+ RequestQuery<GetLocationMultigroupsQuery> {}
575
567
 
576
568
  // POST /location/multigroup - Create a new multigroup
577
569
 
@@ -579,9 +571,8 @@ export type PostLocationMultigroupBody = MultiGroup;
579
571
 
580
572
  export type PostLocationMultigroupResponse = MultiGroup;
581
573
 
582
- export interface PostLocationMultigroupRequest {
574
+ export interface PostLocationMultigroupRequest extends BaseRequest {
583
575
  body: PostLocationMultigroupBody;
584
- context?: RequestContext;
585
576
  }
586
577
 
587
578
  // GET /location/multigroup/{id} - Get a multigroup
@@ -616,10 +607,9 @@ export interface GetLocationMultigroupQuery {
616
607
  export type GetLocationMultigroupResponse = MultiGroup;
617
608
 
618
609
  export interface GetLocationMultigroupRequest
619
- extends RequestQuery<GetLocationMultigroupQuery>,
620
- GetLocationMultigroupPath {
621
- context?: RequestContext;
622
- }
610
+ extends BaseRequest,
611
+ RequestQuery<GetLocationMultigroupQuery>,
612
+ GetLocationMultigroupPath {}
623
613
 
624
614
  // PUT /location/multigroup/{id} - Override a complete multigroup
625
615
 
@@ -632,9 +622,8 @@ export type PutLocationMultigroupBody = MultiGroup;
632
622
 
633
623
  export type PutLocationMultigroupResponse = MultiGroup;
634
624
 
635
- export interface PutLocationMultigroupRequest extends PutLocationMultigroupPath {
625
+ export interface PutLocationMultigroupRequest extends BaseRequest, PutLocationMultigroupPath {
636
626
  body: PutLocationMultigroupBody;
637
- context?: RequestContext;
638
627
  }
639
628
 
640
629
  // DELETE /location/multigroup/{id} - Delete groups from a multigroup
@@ -651,9 +640,8 @@ export interface DeleteLocationMultigroupBody {
651
640
 
652
641
  export type DeleteLocationMultigroupResponse = MultiGroup;
653
642
 
654
- export interface DeleteLocationMultigroupRequest extends DeleteLocationMultigroupPath {
643
+ export interface DeleteLocationMultigroupRequest extends BaseRequest, DeleteLocationMultigroupPath {
655
644
  body: DeleteLocationMultigroupBody;
656
- context?: RequestContext;
657
645
  }
658
646
 
659
647
  // PATCH /location/multigroup/{id} - Update a multigroup
@@ -667,9 +655,8 @@ export type PatchLocationMultigroupBody = MultiGroup;
667
655
 
668
656
  export type PatchLocationMultigroupResponse = MultiGroup;
669
657
 
670
- export interface PatchLocationMultigroupRequest extends PatchLocationMultigroupPath {
658
+ export interface PatchLocationMultigroupRequest extends BaseRequest, PatchLocationMultigroupPath {
671
659
  body: PatchLocationMultigroupBody;
672
- context?: RequestContext;
673
660
  }
674
661
 
675
662
  // GET /location/multigroup/{id}/user/{user_id} - Get all the groups in a multigroup specific to user permissions
@@ -689,10 +676,9 @@ export interface GetLocationUserMultigroupQuery {
689
676
  export type GetLocationUserMultigroupResponse = Groups;
690
677
 
691
678
  export interface GetLocationUserMultigroupRequest
692
- extends RequestQuery<GetLocationUserMultigroupQuery>,
693
- GetLocationUserMultigroupPath {
694
- context?: RequestContext;
695
- }
679
+ extends BaseRequest,
680
+ RequestQuery<GetLocationUserMultigroupQuery>,
681
+ GetLocationUserMultigroupPath {}
696
682
 
697
683
  // POST /location/group - Create a new group
698
684
 
@@ -700,9 +686,8 @@ export type PostLocationGroupBody = Group;
700
686
 
701
687
  export type PostLocationGroupResponse = Group;
702
688
 
703
- export interface PostLocationGroupRequest {
689
+ export interface PostLocationGroupRequest extends BaseRequest {
704
690
  body: PostLocationGroupBody;
705
- context?: RequestContext;
706
691
  }
707
692
 
708
693
  // GET /location/group/{id} - Get an individual Group based on id or latitude/longitude
@@ -733,10 +718,9 @@ export interface GetLocationGroupQuery {
733
718
  export type GetLocationGroupResponse = Group;
734
719
 
735
720
  export interface GetLocationGroupRequest
736
- extends RequestQuery<GetLocationGroupQuery>,
737
- GetLocationGroupPath {
738
- context?: RequestContext;
739
- }
721
+ extends BaseRequest,
722
+ RequestQuery<GetLocationGroupQuery>,
723
+ GetLocationGroupPath {}
740
724
 
741
725
  // PUT /location/group/{id} - Override a complete Group
742
726
 
@@ -749,9 +733,8 @@ export type PutLocationGroupBody = Group;
749
733
 
750
734
  export type PutLocationGroupResponse = Group;
751
735
 
752
- export interface PutLocationGroupRequest extends PutLocationGroupPath {
736
+ export interface PutLocationGroupRequest extends BaseRequest, PutLocationGroupPath {
753
737
  body: PutLocationGroupBody;
754
- context?: RequestContext;
755
738
  }
756
739
 
757
740
  // DELETE /location/group/{id} - Delete locations from a Group
@@ -768,9 +751,8 @@ export interface DeleteLocationGroupBody {
768
751
 
769
752
  export type DeleteLocationGroupResponse = Group;
770
753
 
771
- export interface DeleteLocationGroupRequest extends DeleteLocationGroupPath {
754
+ export interface DeleteLocationGroupRequest extends BaseRequest, DeleteLocationGroupPath {
772
755
  body: DeleteLocationGroupBody;
773
- context?: RequestContext;
774
756
  }
775
757
 
776
758
  // PATCH /location/group/{id} - Update a Group
@@ -784,9 +766,8 @@ export type PatchLocationGroupBody = Group;
784
766
 
785
767
  export type PatchLocationGroupResponse = Group;
786
768
 
787
- export interface PatchLocationGroupRequest extends PatchLocationGroupPath {
769
+ export interface PatchLocationGroupRequest extends BaseRequest, PatchLocationGroupPath {
788
770
  body: PatchLocationGroupBody;
789
- context?: RequestContext;
790
771
  }
791
772
 
792
773
  // GET /location/group/{id}/deliverydestination - Get all delivery destinations for group
@@ -806,10 +787,9 @@ export interface GetLocationGroupDeliverydestinationsResponse {
806
787
  }
807
788
 
808
789
  export interface GetLocationGroupDeliverydestinationsRequest
809
- extends RequestQuery<GetLocationGroupDeliverydestinationsQuery>,
810
- GetLocationGroupDeliverydestinationsPath {
811
- context?: RequestContext;
812
- }
790
+ extends BaseRequest,
791
+ RequestQuery<GetLocationGroupDeliverydestinationsQuery>,
792
+ GetLocationGroupDeliverydestinationsPath {}
813
793
 
814
794
  // POST /location/group/{id}/deliverydestination - Create a new location group delivery destination
815
795
 
@@ -823,9 +803,9 @@ export type PostLocationGroupDeliverydestinationBody = PostDeliveryDestination;
823
803
  export type PostLocationGroupDeliverydestinationResponse = DeliveryDestination;
824
804
 
825
805
  export interface PostLocationGroupDeliverydestinationRequest
826
- extends PostLocationGroupDeliverydestinationPath {
806
+ extends BaseRequest,
807
+ PostLocationGroupDeliverydestinationPath {
827
808
  body: PostLocationGroupDeliverydestinationBody;
828
- context?: RequestContext;
829
809
  }
830
810
 
831
811
  // PATCH /location/group/{id}/deliverydestination - Patch single or multiple delivery destinations
@@ -844,9 +824,9 @@ export interface PatchLocationGroupDeliverydestinationResponse {
844
824
  }
845
825
 
846
826
  export interface PatchLocationGroupDeliverydestinationRequest
847
- extends PatchLocationGroupDeliverydestinationPath {
827
+ extends BaseRequest,
828
+ PatchLocationGroupDeliverydestinationPath {
848
829
  body: PatchLocationGroupDeliverydestinationBody;
849
- context?: RequestContext;
850
830
  }
851
831
 
852
832
  // DELETE /location/group/{id}/deliverydestination - Delete single or multiple delivery destinations
@@ -865,9 +845,9 @@ export interface DeleteLocationGroupDeliverydestinationResponse {
865
845
  }
866
846
 
867
847
  export interface DeleteLocationGroupDeliverydestinationRequest
868
- extends DeleteLocationGroupDeliverydestinationPath {
848
+ extends BaseRequest,
849
+ DeleteLocationGroupDeliverydestinationPath {
869
850
  body: DeleteLocationGroupDeliverydestinationBody;
870
- context?: RequestContext;
871
851
  }
872
852
 
873
853
  // GET /location/group/{id}/deliverydestination/{delivery_destination} - Get a delivery destination
@@ -882,9 +862,8 @@ export interface GetLocationGroupDeliverydestinationPath {
882
862
  export type GetLocationGroupDeliverydestinationResponse = DeliveryDestination;
883
863
 
884
864
  export interface GetLocationGroupDeliverydestinationRequest
885
- extends GetLocationGroupDeliverydestinationPath {
886
- context?: RequestContext;
887
- }
865
+ extends BaseRequest,
866
+ GetLocationGroupDeliverydestinationPath {}
888
867
 
889
868
  // GET /location/group/{id}/user/{user_id} - Get a location group info specific to user read permissions
890
869
 
@@ -904,10 +883,9 @@ export interface GetLocationUserGroupQuery {
904
883
  export type GetLocationUserGroupResponse = Group;
905
884
 
906
885
  export interface GetLocationUserGroupRequest
907
- extends RequestQuery<GetLocationUserGroupQuery>,
908
- GetLocationUserGroupPath {
909
- context?: RequestContext;
910
- }
886
+ extends BaseRequest,
887
+ RequestQuery<GetLocationUserGroupQuery>,
888
+ GetLocationUserGroupPath {}
911
889
 
912
890
  // GET /location/brands - Get all location brands
913
891
 
@@ -915,9 +893,7 @@ export interface GetLocationBrandsResponse {
915
893
  brands?: Brands;
916
894
  }
917
895
 
918
- export interface GetLocationBrandsRequest {
919
- context?: RequestContext;
920
- }
896
+ export interface GetLocationBrandsRequest extends BaseRequest {}
921
897
 
922
898
  // GET /location/brand/{id}/deliverydestinations - Get delivery destinations for a brand
923
899
 
@@ -928,9 +904,9 @@ export interface GetLocationBrandDestinationsPath {
928
904
 
929
905
  export type GetLocationBrandDestinationsResponse = DeliveryDestinationIDs;
930
906
 
931
- export interface GetLocationBrandDestinationsRequest extends GetLocationBrandDestinationsPath {
932
- context?: RequestContext;
933
- }
907
+ export interface GetLocationBrandDestinationsRequest
908
+ extends BaseRequest,
909
+ GetLocationBrandDestinationsPath {}
934
910
 
935
911
  // POST /location/brand/{id}/document - Attach document to a brand
936
912
 
@@ -950,9 +926,10 @@ export interface PostLocationBrandDocumentBody {
950
926
 
951
927
  export type PostLocationBrandDocumentResponse = BrandDocumentsResponse;
952
928
 
953
- export interface PostLocationBrandDocumentRequest extends PostLocationBrandDocumentPath {
929
+ export interface PostLocationBrandDocumentRequest
930
+ extends BaseRequest,
931
+ PostLocationBrandDocumentPath {
954
932
  body: PostLocationBrandDocumentBody;
955
- context?: RequestContext;
956
933
  }
957
934
 
958
935
  // PATCH /location/brand/{id}/document - Edit location document
@@ -966,9 +943,9 @@ export interface PatchLocationBrandDocumentResponse {
966
943
  document?: BrandDocument;
967
944
  }
968
945
 
969
- export interface PatchLocationBrandDocumentRequest extends PatchLocationBrandDocumentPath {
970
- context?: RequestContext;
971
- }
946
+ export interface PatchLocationBrandDocumentRequest
947
+ extends BaseRequest,
948
+ PatchLocationBrandDocumentPath {}
972
949
 
973
950
  // DELETE /location/brand/{id}/document - Deleted brand document
974
951
 
@@ -981,9 +958,9 @@ export interface DeleteLocationBrandDocumentResponse {
981
958
  deleted_document?: BrandDocument;
982
959
  }
983
960
 
984
- export interface DeleteLocationBrandDocumentRequest extends DeleteLocationBrandDocumentPath {
985
- context?: RequestContext;
986
- }
961
+ export interface DeleteLocationBrandDocumentRequest
962
+ extends BaseRequest,
963
+ DeleteLocationBrandDocumentPath {}
987
964
 
988
965
  // GET /location/brand/{id}/documents - Get location brand attached documents
989
966
 
@@ -994,9 +971,9 @@ export interface GetLocationBrandDocumentsPath {
994
971
 
995
972
  export type GetLocationBrandDocumentsResponse = BrandDocumentsResponse;
996
973
 
997
- export interface GetLocationBrandDocumentsRequest extends GetLocationBrandDocumentsPath {
998
- context?: RequestContext;
999
- }
974
+ export interface GetLocationBrandDocumentsRequest
975
+ extends BaseRequest,
976
+ GetLocationBrandDocumentsPath {}
1000
977
 
1001
978
  // GET /location/brand/{id}/timeslots - Get location brand timeslots
1002
979
 
@@ -1015,10 +992,9 @@ export interface GetLocationBrandTimeslotsQuery {
1015
992
  export type GetLocationBrandTimeslotsResponse = TimeSlots;
1016
993
 
1017
994
  export interface GetLocationBrandTimeslotsRequest
1018
- extends RequestQuery<GetLocationBrandTimeslotsQuery>,
1019
- GetLocationBrandTimeslotsPath {
1020
- context?: RequestContext;
1021
- }
995
+ extends BaseRequest,
996
+ RequestQuery<GetLocationBrandTimeslotsQuery>,
997
+ GetLocationBrandTimeslotsPath {}
1022
998
 
1023
999
  // POST /location/marketplace/timeslots - Get Market Place timeslots
1024
1000
 
@@ -1034,9 +1010,9 @@ export type PostLocationMarketplaceTimeslotsBody = MarketPlace;
1034
1010
  export type PostLocationMarketplaceTimeslotsResponse = TimeSlots;
1035
1011
 
1036
1012
  export interface PostLocationMarketplaceTimeslotsRequest
1037
- extends RequestQuery<PostLocationMarketplaceTimeslotsQuery> {
1013
+ extends BaseRequest,
1014
+ RequestQuery<PostLocationMarketplaceTimeslotsQuery> {
1038
1015
  body: PostLocationMarketplaceTimeslotsBody;
1039
- context?: RequestContext;
1040
1016
  }
1041
1017
 
1042
1018
  // POST /location/marketplace/timeslots/delivery - Get Marketplace delivery timeslots
@@ -1053,9 +1029,9 @@ export type PostLocationMarketplaceTimeslotsDeliveryBody = MarketPlace;
1053
1029
  export type PostLocationMarketplaceTimeslotsDeliveryResponse = TimeSlots;
1054
1030
 
1055
1031
  export interface PostLocationMarketplaceTimeslotsDeliveryRequest
1056
- extends RequestQuery<PostLocationMarketplaceTimeslotsDeliveryQuery> {
1032
+ extends BaseRequest,
1033
+ RequestQuery<PostLocationMarketplaceTimeslotsDeliveryQuery> {
1057
1034
  body: PostLocationMarketplaceTimeslotsDeliveryBody;
1058
- context?: RequestContext;
1059
1035
  }
1060
1036
 
1061
1037
  // GET /location/brand/{id}/timeslots/menu/{menu} - Get location brand timeslots for menu
@@ -1077,10 +1053,9 @@ export interface GetLocationBrandMenuTimeslotsQuery {
1077
1053
  export type GetLocationBrandMenuTimeslotsResponse = TimeSlots;
1078
1054
 
1079
1055
  export interface GetLocationBrandMenuTimeslotsRequest
1080
- extends RequestQuery<GetLocationBrandMenuTimeslotsQuery>,
1081
- GetLocationBrandMenuTimeslotsPath {
1082
- context?: RequestContext;
1083
- }
1056
+ extends BaseRequest,
1057
+ RequestQuery<GetLocationBrandMenuTimeslotsQuery>,
1058
+ GetLocationBrandMenuTimeslotsPath {}
1084
1059
 
1085
1060
  // GET /location/brand/{id}/timeslots/delivery - Get location brand delivery timeslots
1086
1061
 
@@ -1099,10 +1074,9 @@ export interface GetLocationBrandDeliveryTimeslotsQuery {
1099
1074
  export type GetLocationBrandDeliveryTimeslotsResponse = TimeSlots;
1100
1075
 
1101
1076
  export interface GetLocationBrandDeliveryTimeslotsRequest
1102
- extends RequestQuery<GetLocationBrandDeliveryTimeslotsQuery>,
1103
- GetLocationBrandDeliveryTimeslotsPath {
1104
- context?: RequestContext;
1105
- }
1077
+ extends BaseRequest,
1078
+ RequestQuery<GetLocationBrandDeliveryTimeslotsQuery>,
1079
+ GetLocationBrandDeliveryTimeslotsPath {}
1106
1080
 
1107
1081
  // GET /location/brand/{id}/timeslots/delivery/menu/{menu} - Get location brand delivery timeslots for menu
1108
1082
 
@@ -1123,10 +1097,9 @@ export interface GetLocationBrandMenuDeliveryTimeslostsQuery {
1123
1097
  export type GetLocationBrandMenuDeliveryTimeslostsResponse = TimeSlots;
1124
1098
 
1125
1099
  export interface GetLocationBrandMenuDeliveryTimeslostsRequest
1126
- extends RequestQuery<GetLocationBrandMenuDeliveryTimeslostsQuery>,
1127
- GetLocationBrandMenuDeliveryTimeslostsPath {
1128
- context?: RequestContext;
1129
- }
1100
+ extends BaseRequest,
1101
+ RequestQuery<GetLocationBrandMenuDeliveryTimeslostsQuery>,
1102
+ GetLocationBrandMenuDeliveryTimeslostsPath {}
1130
1103
 
1131
1104
  // POST /location/brand - Create a new Brand
1132
1105
 
@@ -1134,9 +1107,8 @@ export type PostLocationBrandBody = Brand;
1134
1107
 
1135
1108
  export type PostLocationBrandResponse = Brand;
1136
1109
 
1137
- export interface PostLocationBrandRequest {
1110
+ export interface PostLocationBrandRequest extends BaseRequest {
1138
1111
  body: PostLocationBrandBody;
1139
- context?: RequestContext;
1140
1112
  }
1141
1113
 
1142
1114
  // GET /location/brand/{id} - Get location brand
@@ -1157,10 +1129,9 @@ export interface GetLocationBrandQuery {
1157
1129
  export type GetLocationBrandResponse = Brand;
1158
1130
 
1159
1131
  export interface GetLocationBrandRequest
1160
- extends RequestQuery<GetLocationBrandQuery>,
1161
- GetLocationBrandPath {
1162
- context?: RequestContext;
1163
- }
1132
+ extends BaseRequest,
1133
+ RequestQuery<GetLocationBrandQuery>,
1134
+ GetLocationBrandPath {}
1164
1135
 
1165
1136
  // PATCH /location/brand/{id} - Update location brand
1166
1137
 
@@ -1173,9 +1144,8 @@ export type PatchLocationBrandBody = Brand;
1173
1144
 
1174
1145
  export type PatchLocationBrandResponse = Brand;
1175
1146
 
1176
- export interface PatchLocationBrandRequest extends PatchLocationBrandPath {
1147
+ export interface PatchLocationBrandRequest extends BaseRequest, PatchLocationBrandPath {
1177
1148
  body: PatchLocationBrandBody;
1178
- context?: RequestContext;
1179
1149
  }
1180
1150
 
1181
1151
  // DELETE /location/brand/{id} - Delete data from a Brand
@@ -1189,9 +1159,8 @@ export type DeleteLocationBrandBody = Brand;
1189
1159
 
1190
1160
  export type DeleteLocationBrandResponse = Brand;
1191
1161
 
1192
- export interface DeleteLocationBrandRequest extends DeleteLocationBrandPath {
1162
+ export interface DeleteLocationBrandRequest extends BaseRequest, DeleteLocationBrandPath {
1193
1163
  body: DeleteLocationBrandBody;
1194
- context?: RequestContext;
1195
1164
  }
1196
1165
 
1197
1166
  // PUT /location/brand/{id} - Update location brand
@@ -1205,9 +1174,8 @@ export type PutLocationBrandBody = Brand;
1205
1174
 
1206
1175
  export type PutLocationBrandResponse = Brand;
1207
1176
 
1208
- export interface PutLocationBrandRequest extends PutLocationBrandPath {
1177
+ export interface PutLocationBrandRequest extends BaseRequest, PutLocationBrandPath {
1209
1178
  body: PutLocationBrandBody;
1210
- context?: RequestContext;
1211
1179
  }
1212
1180
 
1213
1181
  // GET /location/sector - Get list of all the sectors
@@ -1218,9 +1186,9 @@ export interface GetLocationSectorsQuery {
1218
1186
 
1219
1187
  export type GetLocationSectorsResponse = Sectors;
1220
1188
 
1221
- export interface GetLocationSectorsRequest extends RequestQuery<GetLocationSectorsQuery> {
1222
- context?: RequestContext;
1223
- }
1189
+ export interface GetLocationSectorsRequest
1190
+ extends BaseRequest,
1191
+ RequestQuery<GetLocationSectorsQuery> {}
1224
1192
 
1225
1193
  // POST /location/sector - Create a new sector
1226
1194
 
@@ -1228,9 +1196,8 @@ export type PostLocationSectorBody = CreateSector;
1228
1196
 
1229
1197
  export type PostLocationSectorResponse = Sector;
1230
1198
 
1231
- export interface PostLocationSectorRequest {
1199
+ export interface PostLocationSectorRequest extends BaseRequest {
1232
1200
  body: PostLocationSectorBody;
1233
- context?: RequestContext;
1234
1201
  }
1235
1202
 
1236
1203
  // GET /location/sector/{id} - Get a sector
@@ -1249,10 +1216,9 @@ export interface GetLocationSectorQuery {
1249
1216
  export type GetLocationSectorResponse = Sector;
1250
1217
 
1251
1218
  export interface GetLocationSectorRequest
1252
- extends RequestQuery<GetLocationSectorQuery>,
1253
- GetLocationSectorPath {
1254
- context?: RequestContext;
1255
- }
1219
+ extends BaseRequest,
1220
+ RequestQuery<GetLocationSectorQuery>,
1221
+ GetLocationSectorPath {}
1256
1222
 
1257
1223
  // PATCH /location/sector/{id} - Update a sector
1258
1224
 
@@ -1271,10 +1237,10 @@ export type PatchLocationSectorBody = CreateSector;
1271
1237
  export type PatchLocationSectorResponse = Sector;
1272
1238
 
1273
1239
  export interface PatchLocationSectorRequest
1274
- extends RequestQuery<PatchLocationSectorQuery>,
1240
+ extends BaseRequest,
1241
+ RequestQuery<PatchLocationSectorQuery>,
1275
1242
  PatchLocationSectorPath {
1276
1243
  body: PatchLocationSectorBody;
1277
- context?: RequestContext;
1278
1244
  }
1279
1245
 
1280
1246
  // POST /location/company - Create a new company
@@ -1292,9 +1258,8 @@ export interface PostLocationCompanyBody {
1292
1258
 
1293
1259
  export type PostLocationCompanyResponse = Company;
1294
1260
 
1295
- export interface PostLocationCompanyRequest {
1261
+ export interface PostLocationCompanyRequest extends BaseRequest {
1296
1262
  body: PostLocationCompanyBody;
1297
- context?: RequestContext;
1298
1263
  }
1299
1264
 
1300
1265
  // GET /location/company/{id} - Get a company within sector
@@ -1311,10 +1276,9 @@ export interface GetLocationCompanyQuery {
1311
1276
  export type GetLocationCompanyResponse = Company;
1312
1277
 
1313
1278
  export interface GetLocationCompanyRequest
1314
- extends RequestQuery<GetLocationCompanyQuery>,
1315
- GetLocationCompanyPath {
1316
- context?: RequestContext;
1317
- }
1279
+ extends BaseRequest,
1280
+ RequestQuery<GetLocationCompanyQuery>,
1281
+ GetLocationCompanyPath {}
1318
1282
 
1319
1283
  // PATCH /location/company/{id} - Update a company
1320
1284
 
@@ -1327,9 +1291,8 @@ export type PatchLocationCompanyBody = CompanyUpdateBody;
1327
1291
 
1328
1292
  export type PatchLocationCompanyResponse = Company;
1329
1293
 
1330
- export interface PatchLocationCompanyRequest extends PatchLocationCompanyPath {
1294
+ export interface PatchLocationCompanyRequest extends BaseRequest, PatchLocationCompanyPath {
1331
1295
  body: PatchLocationCompanyBody;
1332
- context?: RequestContext;
1333
1296
  }
1334
1297
 
1335
1298
  // DELETE /location/record/{id} - Delete a Brand, Location, Group, or MultiGroup
@@ -1349,7 +1312,6 @@ export interface DeleteLocationRecordResponse {
1349
1312
  }
1350
1313
 
1351
1314
  export interface DeleteLocationRecordRequest
1352
- extends RequestQuery<DeleteLocationRecordQuery>,
1353
- DeleteLocationRecordPath {
1354
- context?: RequestContext;
1355
- }
1315
+ extends BaseRequest,
1316
+ RequestQuery<DeleteLocationRecordQuery>,
1317
+ DeleteLocationRecordPath {}