@compassdigital/sdk.typescript 3.19.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.
- package/lib/interface/announcement.d.ts +7 -1
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +9 -2
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +2 -1
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/config.d.ts +12 -1
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts +5 -1
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/email.d.ts +2 -0
- package/lib/interface/email.d.ts.map +1 -1
- package/lib/interface/file.d.ts +3 -0
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/kds.d.ts +9 -2
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/location.d.ts +57 -3
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +12 -1
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +27 -1
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +9 -2
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +15 -1
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +16 -4
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +15 -1
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/permission.d.ts +10 -1
- package/lib/interface/permission.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +19 -2
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +8 -1
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +15 -0
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/task.d.ts +11 -1
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/user.d.ts +33 -3
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/util.d.ts +12 -0
- package/lib/interface/util.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +21 -3
- package/lib/interface/vendor.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/interface/announcement.ts +15 -5
- package/src/interface/calendar.ts +17 -6
- package/src/interface/compassconnect.ts +4 -2
- package/src/interface/config.ts +20 -6
- package/src/interface/datalake.ts +5 -2
- package/src/interface/email.ts +2 -1
- package/src/interface/file.ts +3 -1
- package/src/interface/kds.ts +15 -5
- package/src/interface/location.ts +103 -26
- package/src/interface/mealplan.ts +20 -5
- package/src/interface/menu.ts +65 -20
- package/src/interface/notification.ts +13 -4
- package/src/interface/order.ts +33 -10
- package/src/interface/partner.ts +18 -6
- package/src/interface/payment.ts +25 -6
- package/src/interface/permission.ts +18 -5
- package/src/interface/promo.ts +29 -7
- package/src/interface/report.ts +18 -6
- package/src/interface/shoppingcart.ts +23 -5
- package/src/interface/sms.ts +1 -1
- package/src/interface/task.ts +25 -8
- package/src/interface/user.ts +55 -14
- package/src/interface/util.ts +14 -1
- package/src/interface/vendor.ts +33 -9
|
@@ -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 POS {
|
|
6
6
|
// pos
|
|
@@ -430,13 +430,16 @@ export type PostLocationResponse = Location;
|
|
|
430
430
|
|
|
431
431
|
export interface PostLocationRequest {
|
|
432
432
|
body: PostLocationBody;
|
|
433
|
+
context?: RequestContext;
|
|
433
434
|
}
|
|
434
435
|
|
|
435
436
|
// GET /location - Get all location
|
|
436
437
|
|
|
437
438
|
export type GetLocationsResponse = Locations;
|
|
438
439
|
|
|
439
|
-
export
|
|
440
|
+
export interface GetLocationsRequest {
|
|
441
|
+
context?: RequestContext;
|
|
442
|
+
}
|
|
440
443
|
|
|
441
444
|
// GET /location/search - Gets Location within a radius of the provided point
|
|
442
445
|
|
|
@@ -451,7 +454,9 @@ export interface GetLocationSearchQuery {
|
|
|
451
454
|
|
|
452
455
|
export type GetLocationSearchResponse = Locations;
|
|
453
456
|
|
|
454
|
-
export interface GetLocationSearchRequest extends RequestQuery<GetLocationSearchQuery> {
|
|
457
|
+
export interface GetLocationSearchRequest extends RequestQuery<GetLocationSearchQuery> {
|
|
458
|
+
context?: RequestContext;
|
|
459
|
+
}
|
|
455
460
|
|
|
456
461
|
// GET /location/{id} - Get an individual Location
|
|
457
462
|
|
|
@@ -472,7 +477,9 @@ export interface GetLocationQuery {
|
|
|
472
477
|
|
|
473
478
|
export type GetLocationResponse = Location;
|
|
474
479
|
|
|
475
|
-
export interface GetLocationRequest extends RequestQuery<GetLocationQuery>, GetLocationPath {
|
|
480
|
+
export interface GetLocationRequest extends RequestQuery<GetLocationQuery>, GetLocationPath {
|
|
481
|
+
context?: RequestContext;
|
|
482
|
+
}
|
|
476
483
|
|
|
477
484
|
// PUT /location/{id} - Override a complete Location
|
|
478
485
|
|
|
@@ -487,6 +494,7 @@ export type PutLocationResponse = Location;
|
|
|
487
494
|
|
|
488
495
|
export interface PutLocationRequest extends PutLocationPath {
|
|
489
496
|
body: PutLocationBody;
|
|
497
|
+
context?: RequestContext;
|
|
490
498
|
}
|
|
491
499
|
|
|
492
500
|
// DELETE /location/{id} - Delete brands from a Location
|
|
@@ -505,6 +513,7 @@ export type DeleteLocationResponse = Location;
|
|
|
505
513
|
|
|
506
514
|
export interface DeleteLocationRequest extends DeleteLocationPath {
|
|
507
515
|
body: DeleteLocationBody;
|
|
516
|
+
context?: RequestContext;
|
|
508
517
|
}
|
|
509
518
|
|
|
510
519
|
// PATCH /location/{id} - Update a Location
|
|
@@ -520,6 +529,7 @@ export type PatchLocationResponse = Location;
|
|
|
520
529
|
|
|
521
530
|
export interface PatchLocationRequest extends PatchLocationPath {
|
|
522
531
|
body: PatchLocationBody;
|
|
532
|
+
context?: RequestContext;
|
|
523
533
|
}
|
|
524
534
|
|
|
525
535
|
// GET /location/pos/{id} - Get information about a POS
|
|
@@ -531,7 +541,9 @@ export interface GetLocationPosPath {
|
|
|
531
541
|
|
|
532
542
|
export type GetLocationPosResponse = POS;
|
|
533
543
|
|
|
534
|
-
export interface GetLocationPosRequest extends GetLocationPosPath {
|
|
544
|
+
export interface GetLocationPosRequest extends GetLocationPosPath {
|
|
545
|
+
context?: RequestContext;
|
|
546
|
+
}
|
|
535
547
|
|
|
536
548
|
// PUT /location/pos/{id} - Set information about a POS
|
|
537
549
|
|
|
@@ -546,6 +558,7 @@ export type PutLocationPosResponse = POS;
|
|
|
546
558
|
|
|
547
559
|
export interface PutLocationPosRequest extends PutLocationPosPath {
|
|
548
560
|
body: PutLocationPosBody;
|
|
561
|
+
context?: RequestContext;
|
|
549
562
|
}
|
|
550
563
|
|
|
551
564
|
// GET /location/multigroup - Get all the top level multigroups
|
|
@@ -556,7 +569,9 @@ export interface GetLocationMultigroupsQuery {
|
|
|
556
569
|
|
|
557
570
|
export type GetLocationMultigroupsResponse = Multigroups;
|
|
558
571
|
|
|
559
|
-
export interface GetLocationMultigroupsRequest extends RequestQuery<GetLocationMultigroupsQuery> {
|
|
572
|
+
export interface GetLocationMultigroupsRequest extends RequestQuery<GetLocationMultigroupsQuery> {
|
|
573
|
+
context?: RequestContext;
|
|
574
|
+
}
|
|
560
575
|
|
|
561
576
|
// POST /location/multigroup - Create a new multigroup
|
|
562
577
|
|
|
@@ -566,6 +581,7 @@ export type PostLocationMultigroupResponse = MultiGroup;
|
|
|
566
581
|
|
|
567
582
|
export interface PostLocationMultigroupRequest {
|
|
568
583
|
body: PostLocationMultigroupBody;
|
|
584
|
+
context?: RequestContext;
|
|
569
585
|
}
|
|
570
586
|
|
|
571
587
|
// GET /location/multigroup/{id} - Get a multigroup
|
|
@@ -601,7 +617,9 @@ export type GetLocationMultigroupResponse = MultiGroup;
|
|
|
601
617
|
|
|
602
618
|
export interface GetLocationMultigroupRequest
|
|
603
619
|
extends RequestQuery<GetLocationMultigroupQuery>,
|
|
604
|
-
GetLocationMultigroupPath {
|
|
620
|
+
GetLocationMultigroupPath {
|
|
621
|
+
context?: RequestContext;
|
|
622
|
+
}
|
|
605
623
|
|
|
606
624
|
// PUT /location/multigroup/{id} - Override a complete multigroup
|
|
607
625
|
|
|
@@ -616,6 +634,7 @@ export type PutLocationMultigroupResponse = MultiGroup;
|
|
|
616
634
|
|
|
617
635
|
export interface PutLocationMultigroupRequest extends PutLocationMultigroupPath {
|
|
618
636
|
body: PutLocationMultigroupBody;
|
|
637
|
+
context?: RequestContext;
|
|
619
638
|
}
|
|
620
639
|
|
|
621
640
|
// DELETE /location/multigroup/{id} - Delete groups from a multigroup
|
|
@@ -634,6 +653,7 @@ export type DeleteLocationMultigroupResponse = MultiGroup;
|
|
|
634
653
|
|
|
635
654
|
export interface DeleteLocationMultigroupRequest extends DeleteLocationMultigroupPath {
|
|
636
655
|
body: DeleteLocationMultigroupBody;
|
|
656
|
+
context?: RequestContext;
|
|
637
657
|
}
|
|
638
658
|
|
|
639
659
|
// PATCH /location/multigroup/{id} - Update a multigroup
|
|
@@ -649,6 +669,7 @@ export type PatchLocationMultigroupResponse = MultiGroup;
|
|
|
649
669
|
|
|
650
670
|
export interface PatchLocationMultigroupRequest extends PatchLocationMultigroupPath {
|
|
651
671
|
body: PatchLocationMultigroupBody;
|
|
672
|
+
context?: RequestContext;
|
|
652
673
|
}
|
|
653
674
|
|
|
654
675
|
// GET /location/multigroup/{id}/user/{user_id} - Get all the groups in a multigroup specific to user permissions
|
|
@@ -669,7 +690,9 @@ export type GetLocationUserMultigroupResponse = Groups;
|
|
|
669
690
|
|
|
670
691
|
export interface GetLocationUserMultigroupRequest
|
|
671
692
|
extends RequestQuery<GetLocationUserMultigroupQuery>,
|
|
672
|
-
GetLocationUserMultigroupPath {
|
|
693
|
+
GetLocationUserMultigroupPath {
|
|
694
|
+
context?: RequestContext;
|
|
695
|
+
}
|
|
673
696
|
|
|
674
697
|
// POST /location/group - Create a new group
|
|
675
698
|
|
|
@@ -679,6 +702,7 @@ export type PostLocationGroupResponse = Group;
|
|
|
679
702
|
|
|
680
703
|
export interface PostLocationGroupRequest {
|
|
681
704
|
body: PostLocationGroupBody;
|
|
705
|
+
context?: RequestContext;
|
|
682
706
|
}
|
|
683
707
|
|
|
684
708
|
// GET /location/group/{id} - Get an individual Group based on id or latitude/longitude
|
|
@@ -710,7 +734,9 @@ export type GetLocationGroupResponse = Group;
|
|
|
710
734
|
|
|
711
735
|
export interface GetLocationGroupRequest
|
|
712
736
|
extends RequestQuery<GetLocationGroupQuery>,
|
|
713
|
-
GetLocationGroupPath {
|
|
737
|
+
GetLocationGroupPath {
|
|
738
|
+
context?: RequestContext;
|
|
739
|
+
}
|
|
714
740
|
|
|
715
741
|
// PUT /location/group/{id} - Override a complete Group
|
|
716
742
|
|
|
@@ -725,6 +751,7 @@ export type PutLocationGroupResponse = Group;
|
|
|
725
751
|
|
|
726
752
|
export interface PutLocationGroupRequest extends PutLocationGroupPath {
|
|
727
753
|
body: PutLocationGroupBody;
|
|
754
|
+
context?: RequestContext;
|
|
728
755
|
}
|
|
729
756
|
|
|
730
757
|
// DELETE /location/group/{id} - Delete locations from a Group
|
|
@@ -743,6 +770,7 @@ export type DeleteLocationGroupResponse = Group;
|
|
|
743
770
|
|
|
744
771
|
export interface DeleteLocationGroupRequest extends DeleteLocationGroupPath {
|
|
745
772
|
body: DeleteLocationGroupBody;
|
|
773
|
+
context?: RequestContext;
|
|
746
774
|
}
|
|
747
775
|
|
|
748
776
|
// PATCH /location/group/{id} - Update a Group
|
|
@@ -758,6 +786,7 @@ export type PatchLocationGroupResponse = Group;
|
|
|
758
786
|
|
|
759
787
|
export interface PatchLocationGroupRequest extends PatchLocationGroupPath {
|
|
760
788
|
body: PatchLocationGroupBody;
|
|
789
|
+
context?: RequestContext;
|
|
761
790
|
}
|
|
762
791
|
|
|
763
792
|
// GET /location/group/{id}/deliverydestination - Get all delivery destinations for group
|
|
@@ -778,7 +807,9 @@ export interface GetLocationGroupDeliverydestinationsResponse {
|
|
|
778
807
|
|
|
779
808
|
export interface GetLocationGroupDeliverydestinationsRequest
|
|
780
809
|
extends RequestQuery<GetLocationGroupDeliverydestinationsQuery>,
|
|
781
|
-
GetLocationGroupDeliverydestinationsPath {
|
|
810
|
+
GetLocationGroupDeliverydestinationsPath {
|
|
811
|
+
context?: RequestContext;
|
|
812
|
+
}
|
|
782
813
|
|
|
783
814
|
// POST /location/group/{id}/deliverydestination - Create a new location group delivery destination
|
|
784
815
|
|
|
@@ -794,6 +825,7 @@ export type PostLocationGroupDeliverydestinationResponse = DeliveryDestination;
|
|
|
794
825
|
export interface PostLocationGroupDeliverydestinationRequest
|
|
795
826
|
extends PostLocationGroupDeliverydestinationPath {
|
|
796
827
|
body: PostLocationGroupDeliverydestinationBody;
|
|
828
|
+
context?: RequestContext;
|
|
797
829
|
}
|
|
798
830
|
|
|
799
831
|
// PATCH /location/group/{id}/deliverydestination - Patch single or multiple delivery destinations
|
|
@@ -814,6 +846,7 @@ export interface PatchLocationGroupDeliverydestinationResponse {
|
|
|
814
846
|
export interface PatchLocationGroupDeliverydestinationRequest
|
|
815
847
|
extends PatchLocationGroupDeliverydestinationPath {
|
|
816
848
|
body: PatchLocationGroupDeliverydestinationBody;
|
|
849
|
+
context?: RequestContext;
|
|
817
850
|
}
|
|
818
851
|
|
|
819
852
|
// DELETE /location/group/{id}/deliverydestination - Delete single or multiple delivery destinations
|
|
@@ -834,6 +867,7 @@ export interface DeleteLocationGroupDeliverydestinationResponse {
|
|
|
834
867
|
export interface DeleteLocationGroupDeliverydestinationRequest
|
|
835
868
|
extends DeleteLocationGroupDeliverydestinationPath {
|
|
836
869
|
body: DeleteLocationGroupDeliverydestinationBody;
|
|
870
|
+
context?: RequestContext;
|
|
837
871
|
}
|
|
838
872
|
|
|
839
873
|
// GET /location/group/{id}/deliverydestination/{delivery_destination} - Get a delivery destination
|
|
@@ -848,7 +882,9 @@ export interface GetLocationGroupDeliverydestinationPath {
|
|
|
848
882
|
export type GetLocationGroupDeliverydestinationResponse = DeliveryDestination;
|
|
849
883
|
|
|
850
884
|
export interface GetLocationGroupDeliverydestinationRequest
|
|
851
|
-
extends GetLocationGroupDeliverydestinationPath {
|
|
885
|
+
extends GetLocationGroupDeliverydestinationPath {
|
|
886
|
+
context?: RequestContext;
|
|
887
|
+
}
|
|
852
888
|
|
|
853
889
|
// GET /location/group/{id}/user/{user_id} - Get a location group info specific to user read permissions
|
|
854
890
|
|
|
@@ -869,7 +905,9 @@ export type GetLocationUserGroupResponse = Group;
|
|
|
869
905
|
|
|
870
906
|
export interface GetLocationUserGroupRequest
|
|
871
907
|
extends RequestQuery<GetLocationUserGroupQuery>,
|
|
872
|
-
GetLocationUserGroupPath {
|
|
908
|
+
GetLocationUserGroupPath {
|
|
909
|
+
context?: RequestContext;
|
|
910
|
+
}
|
|
873
911
|
|
|
874
912
|
// GET /location/brands - Get all location brands
|
|
875
913
|
|
|
@@ -877,7 +915,9 @@ export interface GetLocationBrandsResponse {
|
|
|
877
915
|
brands?: Brands;
|
|
878
916
|
}
|
|
879
917
|
|
|
880
|
-
export
|
|
918
|
+
export interface GetLocationBrandsRequest {
|
|
919
|
+
context?: RequestContext;
|
|
920
|
+
}
|
|
881
921
|
|
|
882
922
|
// GET /location/brand/{id}/deliverydestinations - Get delivery destinations for a brand
|
|
883
923
|
|
|
@@ -888,7 +928,9 @@ export interface GetLocationBrandDestinationsPath {
|
|
|
888
928
|
|
|
889
929
|
export type GetLocationBrandDestinationsResponse = DeliveryDestinationIDs;
|
|
890
930
|
|
|
891
|
-
export interface GetLocationBrandDestinationsRequest extends GetLocationBrandDestinationsPath {
|
|
931
|
+
export interface GetLocationBrandDestinationsRequest extends GetLocationBrandDestinationsPath {
|
|
932
|
+
context?: RequestContext;
|
|
933
|
+
}
|
|
892
934
|
|
|
893
935
|
// POST /location/brand/{id}/document - Attach document to a brand
|
|
894
936
|
|
|
@@ -910,6 +952,7 @@ export type PostLocationBrandDocumentResponse = BrandDocumentsResponse;
|
|
|
910
952
|
|
|
911
953
|
export interface PostLocationBrandDocumentRequest extends PostLocationBrandDocumentPath {
|
|
912
954
|
body: PostLocationBrandDocumentBody;
|
|
955
|
+
context?: RequestContext;
|
|
913
956
|
}
|
|
914
957
|
|
|
915
958
|
// PATCH /location/brand/{id}/document - Edit location document
|
|
@@ -923,7 +966,9 @@ export interface PatchLocationBrandDocumentResponse {
|
|
|
923
966
|
document?: BrandDocument;
|
|
924
967
|
}
|
|
925
968
|
|
|
926
|
-
export interface PatchLocationBrandDocumentRequest extends PatchLocationBrandDocumentPath {
|
|
969
|
+
export interface PatchLocationBrandDocumentRequest extends PatchLocationBrandDocumentPath {
|
|
970
|
+
context?: RequestContext;
|
|
971
|
+
}
|
|
927
972
|
|
|
928
973
|
// DELETE /location/brand/{id}/document - Deleted brand document
|
|
929
974
|
|
|
@@ -936,7 +981,9 @@ export interface DeleteLocationBrandDocumentResponse {
|
|
|
936
981
|
deleted_document?: BrandDocument;
|
|
937
982
|
}
|
|
938
983
|
|
|
939
|
-
export interface DeleteLocationBrandDocumentRequest extends DeleteLocationBrandDocumentPath {
|
|
984
|
+
export interface DeleteLocationBrandDocumentRequest extends DeleteLocationBrandDocumentPath {
|
|
985
|
+
context?: RequestContext;
|
|
986
|
+
}
|
|
940
987
|
|
|
941
988
|
// GET /location/brand/{id}/documents - Get location brand attached documents
|
|
942
989
|
|
|
@@ -947,7 +994,9 @@ export interface GetLocationBrandDocumentsPath {
|
|
|
947
994
|
|
|
948
995
|
export type GetLocationBrandDocumentsResponse = BrandDocumentsResponse;
|
|
949
996
|
|
|
950
|
-
export interface GetLocationBrandDocumentsRequest extends GetLocationBrandDocumentsPath {
|
|
997
|
+
export interface GetLocationBrandDocumentsRequest extends GetLocationBrandDocumentsPath {
|
|
998
|
+
context?: RequestContext;
|
|
999
|
+
}
|
|
951
1000
|
|
|
952
1001
|
// GET /location/brand/{id}/timeslots - Get location brand timeslots
|
|
953
1002
|
|
|
@@ -967,7 +1016,9 @@ export type GetLocationBrandTimeslotsResponse = TimeSlots;
|
|
|
967
1016
|
|
|
968
1017
|
export interface GetLocationBrandTimeslotsRequest
|
|
969
1018
|
extends RequestQuery<GetLocationBrandTimeslotsQuery>,
|
|
970
|
-
GetLocationBrandTimeslotsPath {
|
|
1019
|
+
GetLocationBrandTimeslotsPath {
|
|
1020
|
+
context?: RequestContext;
|
|
1021
|
+
}
|
|
971
1022
|
|
|
972
1023
|
// POST /location/marketplace/timeslots - Get Market Place timeslots
|
|
973
1024
|
|
|
@@ -985,6 +1036,7 @@ export type PostLocationMarketplaceTimeslotsResponse = TimeSlots;
|
|
|
985
1036
|
export interface PostLocationMarketplaceTimeslotsRequest
|
|
986
1037
|
extends RequestQuery<PostLocationMarketplaceTimeslotsQuery> {
|
|
987
1038
|
body: PostLocationMarketplaceTimeslotsBody;
|
|
1039
|
+
context?: RequestContext;
|
|
988
1040
|
}
|
|
989
1041
|
|
|
990
1042
|
// POST /location/marketplace/timeslots/delivery - Get Marketplace delivery timeslots
|
|
@@ -1003,6 +1055,7 @@ export type PostLocationMarketplaceTimeslotsDeliveryResponse = TimeSlots;
|
|
|
1003
1055
|
export interface PostLocationMarketplaceTimeslotsDeliveryRequest
|
|
1004
1056
|
extends RequestQuery<PostLocationMarketplaceTimeslotsDeliveryQuery> {
|
|
1005
1057
|
body: PostLocationMarketplaceTimeslotsDeliveryBody;
|
|
1058
|
+
context?: RequestContext;
|
|
1006
1059
|
}
|
|
1007
1060
|
|
|
1008
1061
|
// GET /location/brand/{id}/timeslots/menu/{menu} - Get location brand timeslots for menu
|
|
@@ -1025,7 +1078,9 @@ export type GetLocationBrandMenuTimeslotsResponse = TimeSlots;
|
|
|
1025
1078
|
|
|
1026
1079
|
export interface GetLocationBrandMenuTimeslotsRequest
|
|
1027
1080
|
extends RequestQuery<GetLocationBrandMenuTimeslotsQuery>,
|
|
1028
|
-
GetLocationBrandMenuTimeslotsPath {
|
|
1081
|
+
GetLocationBrandMenuTimeslotsPath {
|
|
1082
|
+
context?: RequestContext;
|
|
1083
|
+
}
|
|
1029
1084
|
|
|
1030
1085
|
// GET /location/brand/{id}/timeslots/delivery - Get location brand delivery timeslots
|
|
1031
1086
|
|
|
@@ -1045,7 +1100,9 @@ export type GetLocationBrandDeliveryTimeslotsResponse = TimeSlots;
|
|
|
1045
1100
|
|
|
1046
1101
|
export interface GetLocationBrandDeliveryTimeslotsRequest
|
|
1047
1102
|
extends RequestQuery<GetLocationBrandDeliveryTimeslotsQuery>,
|
|
1048
|
-
GetLocationBrandDeliveryTimeslotsPath {
|
|
1103
|
+
GetLocationBrandDeliveryTimeslotsPath {
|
|
1104
|
+
context?: RequestContext;
|
|
1105
|
+
}
|
|
1049
1106
|
|
|
1050
1107
|
// GET /location/brand/{id}/timeslots/delivery/menu/{menu} - Get location brand delivery timeslots for menu
|
|
1051
1108
|
|
|
@@ -1067,7 +1124,9 @@ export type GetLocationBrandMenuDeliveryTimeslostsResponse = TimeSlots;
|
|
|
1067
1124
|
|
|
1068
1125
|
export interface GetLocationBrandMenuDeliveryTimeslostsRequest
|
|
1069
1126
|
extends RequestQuery<GetLocationBrandMenuDeliveryTimeslostsQuery>,
|
|
1070
|
-
GetLocationBrandMenuDeliveryTimeslostsPath {
|
|
1127
|
+
GetLocationBrandMenuDeliveryTimeslostsPath {
|
|
1128
|
+
context?: RequestContext;
|
|
1129
|
+
}
|
|
1071
1130
|
|
|
1072
1131
|
// POST /location/brand - Create a new Brand
|
|
1073
1132
|
|
|
@@ -1077,6 +1136,7 @@ export type PostLocationBrandResponse = Brand;
|
|
|
1077
1136
|
|
|
1078
1137
|
export interface PostLocationBrandRequest {
|
|
1079
1138
|
body: PostLocationBrandBody;
|
|
1139
|
+
context?: RequestContext;
|
|
1080
1140
|
}
|
|
1081
1141
|
|
|
1082
1142
|
// GET /location/brand/{id} - Get location brand
|
|
@@ -1098,7 +1158,9 @@ export type GetLocationBrandResponse = Brand;
|
|
|
1098
1158
|
|
|
1099
1159
|
export interface GetLocationBrandRequest
|
|
1100
1160
|
extends RequestQuery<GetLocationBrandQuery>,
|
|
1101
|
-
GetLocationBrandPath {
|
|
1161
|
+
GetLocationBrandPath {
|
|
1162
|
+
context?: RequestContext;
|
|
1163
|
+
}
|
|
1102
1164
|
|
|
1103
1165
|
// PATCH /location/brand/{id} - Update location brand
|
|
1104
1166
|
|
|
@@ -1113,6 +1175,7 @@ export type PatchLocationBrandResponse = Brand;
|
|
|
1113
1175
|
|
|
1114
1176
|
export interface PatchLocationBrandRequest extends PatchLocationBrandPath {
|
|
1115
1177
|
body: PatchLocationBrandBody;
|
|
1178
|
+
context?: RequestContext;
|
|
1116
1179
|
}
|
|
1117
1180
|
|
|
1118
1181
|
// DELETE /location/brand/{id} - Delete data from a Brand
|
|
@@ -1128,6 +1191,7 @@ export type DeleteLocationBrandResponse = Brand;
|
|
|
1128
1191
|
|
|
1129
1192
|
export interface DeleteLocationBrandRequest extends DeleteLocationBrandPath {
|
|
1130
1193
|
body: DeleteLocationBrandBody;
|
|
1194
|
+
context?: RequestContext;
|
|
1131
1195
|
}
|
|
1132
1196
|
|
|
1133
1197
|
// PUT /location/brand/{id} - Update location brand
|
|
@@ -1143,6 +1207,7 @@ export type PutLocationBrandResponse = Brand;
|
|
|
1143
1207
|
|
|
1144
1208
|
export interface PutLocationBrandRequest extends PutLocationBrandPath {
|
|
1145
1209
|
body: PutLocationBrandBody;
|
|
1210
|
+
context?: RequestContext;
|
|
1146
1211
|
}
|
|
1147
1212
|
|
|
1148
1213
|
// GET /location/sector - Get list of all the sectors
|
|
@@ -1153,7 +1218,9 @@ export interface GetLocationSectorsQuery {
|
|
|
1153
1218
|
|
|
1154
1219
|
export type GetLocationSectorsResponse = Sectors;
|
|
1155
1220
|
|
|
1156
|
-
export interface GetLocationSectorsRequest extends RequestQuery<GetLocationSectorsQuery> {
|
|
1221
|
+
export interface GetLocationSectorsRequest extends RequestQuery<GetLocationSectorsQuery> {
|
|
1222
|
+
context?: RequestContext;
|
|
1223
|
+
}
|
|
1157
1224
|
|
|
1158
1225
|
// POST /location/sector - Create a new sector
|
|
1159
1226
|
|
|
@@ -1163,6 +1230,7 @@ export type PostLocationSectorResponse = Sector;
|
|
|
1163
1230
|
|
|
1164
1231
|
export interface PostLocationSectorRequest {
|
|
1165
1232
|
body: PostLocationSectorBody;
|
|
1233
|
+
context?: RequestContext;
|
|
1166
1234
|
}
|
|
1167
1235
|
|
|
1168
1236
|
// GET /location/sector/{id} - Get a sector
|
|
@@ -1182,7 +1250,9 @@ export type GetLocationSectorResponse = Sector;
|
|
|
1182
1250
|
|
|
1183
1251
|
export interface GetLocationSectorRequest
|
|
1184
1252
|
extends RequestQuery<GetLocationSectorQuery>,
|
|
1185
|
-
GetLocationSectorPath {
|
|
1253
|
+
GetLocationSectorPath {
|
|
1254
|
+
context?: RequestContext;
|
|
1255
|
+
}
|
|
1186
1256
|
|
|
1187
1257
|
// PATCH /location/sector/{id} - Update a sector
|
|
1188
1258
|
|
|
@@ -1204,6 +1274,7 @@ export interface PatchLocationSectorRequest
|
|
|
1204
1274
|
extends RequestQuery<PatchLocationSectorQuery>,
|
|
1205
1275
|
PatchLocationSectorPath {
|
|
1206
1276
|
body: PatchLocationSectorBody;
|
|
1277
|
+
context?: RequestContext;
|
|
1207
1278
|
}
|
|
1208
1279
|
|
|
1209
1280
|
// POST /location/company - Create a new company
|
|
@@ -1223,6 +1294,7 @@ export type PostLocationCompanyResponse = Company;
|
|
|
1223
1294
|
|
|
1224
1295
|
export interface PostLocationCompanyRequest {
|
|
1225
1296
|
body: PostLocationCompanyBody;
|
|
1297
|
+
context?: RequestContext;
|
|
1226
1298
|
}
|
|
1227
1299
|
|
|
1228
1300
|
// GET /location/company/{id} - Get a company within sector
|
|
@@ -1240,7 +1312,9 @@ export type GetLocationCompanyResponse = Company;
|
|
|
1240
1312
|
|
|
1241
1313
|
export interface GetLocationCompanyRequest
|
|
1242
1314
|
extends RequestQuery<GetLocationCompanyQuery>,
|
|
1243
|
-
GetLocationCompanyPath {
|
|
1315
|
+
GetLocationCompanyPath {
|
|
1316
|
+
context?: RequestContext;
|
|
1317
|
+
}
|
|
1244
1318
|
|
|
1245
1319
|
// PATCH /location/company/{id} - Update a company
|
|
1246
1320
|
|
|
@@ -1255,6 +1329,7 @@ export type PatchLocationCompanyResponse = Company;
|
|
|
1255
1329
|
|
|
1256
1330
|
export interface PatchLocationCompanyRequest extends PatchLocationCompanyPath {
|
|
1257
1331
|
body: PatchLocationCompanyBody;
|
|
1332
|
+
context?: RequestContext;
|
|
1258
1333
|
}
|
|
1259
1334
|
|
|
1260
1335
|
// DELETE /location/record/{id} - Delete a Brand, Location, Group, or MultiGroup
|
|
@@ -1275,4 +1350,6 @@ export interface DeleteLocationRecordResponse {
|
|
|
1275
1350
|
|
|
1276
1351
|
export interface DeleteLocationRecordRequest
|
|
1277
1352
|
extends RequestQuery<DeleteLocationRecordQuery>,
|
|
1278
|
-
DeleteLocationRecordPath {
|
|
1353
|
+
DeleteLocationRecordPath {
|
|
1354
|
+
context?: RequestContext;
|
|
1355
|
+
}
|
|
@@ -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
|
code?: number;
|
|
@@ -78,6 +78,7 @@ export interface PostMealplanResponse {
|
|
|
78
78
|
|
|
79
79
|
export interface PostMealplanRequest extends PostMealplanPath {
|
|
80
80
|
body: PostMealplanBody;
|
|
81
|
+
context?: RequestContext;
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
// PUT /mealplan/{id} - Save a token for access to the meal plan
|
|
@@ -97,6 +98,7 @@ export interface PutMealplanResponse {
|
|
|
97
98
|
|
|
98
99
|
export interface PutMealplanRequest extends PutMealplanPath {
|
|
99
100
|
body: PutMealplanBody;
|
|
101
|
+
context?: RequestContext;
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
// GET /mealplan/{id} - Check the user's meal plan tenders and get the authentication configuration
|
|
@@ -108,7 +110,9 @@ export interface GetMealplanPath {
|
|
|
108
110
|
|
|
109
111
|
export type GetMealplanResponse = TendersAndAuth;
|
|
110
112
|
|
|
111
|
-
export interface GetMealplanRequest extends GetMealplanPath {
|
|
113
|
+
export interface GetMealplanRequest extends GetMealplanPath {
|
|
114
|
+
context?: RequestContext;
|
|
115
|
+
}
|
|
112
116
|
|
|
113
117
|
// DELETE /mealplan/{id} - Delete a mealplan or a tender from the user's account
|
|
114
118
|
|
|
@@ -125,6 +129,7 @@ export type DeleteMealplanResponse = TendersAndAuth;
|
|
|
125
129
|
|
|
126
130
|
export interface DeleteMealplanRequest extends DeleteMealplanPath {
|
|
127
131
|
body: DeleteMealplanBody;
|
|
132
|
+
context?: RequestContext;
|
|
128
133
|
}
|
|
129
134
|
|
|
130
135
|
// POST /mealplan/{id}/callback - Callback endpoint for meal plans that make a call back from a webview workflow
|
|
@@ -140,7 +145,9 @@ export interface PostMealplanCallbackResponse {
|
|
|
140
145
|
cardNumber?: string;
|
|
141
146
|
}
|
|
142
147
|
|
|
143
|
-
export interface PostMealplanCallbackRequest extends PostMealplanCallbackPath {
|
|
148
|
+
export interface PostMealplanCallbackRequest extends PostMealplanCallbackPath {
|
|
149
|
+
context?: RequestContext;
|
|
150
|
+
}
|
|
144
151
|
|
|
145
152
|
// GET /mealplan/{id}/tender/{tender} - Check the user's tender balance
|
|
146
153
|
|
|
@@ -153,7 +160,9 @@ export interface GetMealplanTenderPath {
|
|
|
153
160
|
|
|
154
161
|
export type GetMealplanTenderResponse = Tender;
|
|
155
162
|
|
|
156
|
-
export interface GetMealplanTenderRequest extends GetMealplanTenderPath {
|
|
163
|
+
export interface GetMealplanTenderRequest extends GetMealplanTenderPath {
|
|
164
|
+
context?: RequestContext;
|
|
165
|
+
}
|
|
157
166
|
|
|
158
167
|
// DELETE /mealplan/{id}/tender/{tender} - Debit an amount from the tender balance
|
|
159
168
|
|
|
@@ -176,7 +185,9 @@ export interface DeleteMealplanTenderResponse {
|
|
|
176
185
|
transaction_amount?: number;
|
|
177
186
|
}
|
|
178
187
|
|
|
179
|
-
export interface DeleteMealplanTenderRequest extends DeleteMealplanTenderPath {
|
|
188
|
+
export interface DeleteMealplanTenderRequest extends DeleteMealplanTenderPath {
|
|
189
|
+
context?: RequestContext;
|
|
190
|
+
}
|
|
180
191
|
|
|
181
192
|
// PATCH /mealplan/{id}/tender/{tender} - Refund an amount to the tender balance
|
|
182
193
|
|
|
@@ -199,6 +210,7 @@ export type PatchMealplanTenderResponse = Tender;
|
|
|
199
210
|
|
|
200
211
|
export interface PatchMealplanTenderRequest extends PatchMealplanTenderPath {
|
|
201
212
|
body: PatchMealplanTenderBody;
|
|
213
|
+
context?: RequestContext;
|
|
202
214
|
}
|
|
203
215
|
|
|
204
216
|
// POST /mealplan/{id}/verify - Send verification email to user linking a mealplan
|
|
@@ -221,6 +233,7 @@ export interface PostMealplanVerifyRequest
|
|
|
221
233
|
extends RequestQuery<PostMealplanVerifyQuery>,
|
|
222
234
|
PostMealplanVerifyPath {
|
|
223
235
|
body: PostMealplanVerifyBody;
|
|
236
|
+
context?: RequestContext;
|
|
224
237
|
}
|
|
225
238
|
|
|
226
239
|
// PUT /mealplan/{id}/verify - Verify email address using provided payload
|
|
@@ -236,6 +249,7 @@ export type PutMealplanVerifyResponse = success;
|
|
|
236
249
|
|
|
237
250
|
export interface PutMealplanVerifyRequest extends PutMealplanVerifyPath {
|
|
238
251
|
body: PutMealplanVerifyBody;
|
|
252
|
+
context?: RequestContext;
|
|
239
253
|
}
|
|
240
254
|
|
|
241
255
|
// POST /mealplan/{id}/authorize - Authorize Transaction
|
|
@@ -265,4 +279,5 @@ export interface PostMealplanAuthorizeResponse {
|
|
|
265
279
|
|
|
266
280
|
export interface PostMealplanAuthorizeRequest extends PostMealplanAuthorizePath {
|
|
267
281
|
body: PostMealplanAuthorizeBody;
|
|
282
|
+
context?: RequestContext;
|
|
268
283
|
}
|