@compassdigital/sdk.typescript 3.19.0 → 3.21.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 -7
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +8 -7
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +2 -2
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/config.d.ts +11 -9
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts +4 -2
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/email.d.ts +2 -1
- package/lib/interface/email.d.ts.map +1 -1
- package/lib/interface/file.d.ts +3 -2
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/kds.d.ts +8 -7
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/location.d.ts +55 -53
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +12 -12
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +27 -27
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +8 -7
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +15 -15
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +12 -7
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +15 -15
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/permission.d.ts +10 -10
- package/lib/interface/permission.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +18 -17
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +8 -8
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +15 -14
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/task.d.ts +11 -11
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/user.d.ts +31 -29
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/util.d.ts +19 -0
- package/lib/interface/util.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +19 -17
- package/lib/interface/vendor.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/interface/announcement.ts +9 -7
- package/src/interface/calendar.ts +11 -7
- package/src/interface/compassconnect.ts +3 -2
- package/src/interface/config.ts +10 -10
- package/src/interface/datalake.ts +3 -3
- package/src/interface/email.ts +2 -2
- package/src/interface/file.ts +3 -3
- package/src/interface/kds.ts +7 -7
- package/src/interface/location.ts +92 -53
- package/src/interface/mealplan.ts +13 -12
- package/src/interface/menu.ts +40 -27
- package/src/interface/notification.ts +7 -7
- package/src/interface/order.ts +22 -15
- package/src/interface/partner.ts +8 -8
- package/src/interface/payment.ts +20 -15
- package/src/interface/permission.ts +13 -10
- package/src/interface/promo.ts +19 -17
- package/src/interface/report.ts +18 -8
- package/src/interface/shoppingcart.ts +27 -15
- package/src/interface/sms.ts +1 -1
- package/src/interface/task.ts +14 -11
- package/src/interface/user.ts +43 -29
- package/src/interface/util.ts +22 -1
- package/src/interface/vendor.ts +23 -17
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import { RequestQuery } from "./util";
|
|
3
|
+
import { RequestQuery, BaseRequest } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface POS {
|
|
6
6
|
// pos
|
|
@@ -428,7 +428,7 @@ 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
433
|
}
|
|
434
434
|
|
|
@@ -436,7 +436,7 @@ export interface PostLocationRequest {
|
|
|
436
436
|
|
|
437
437
|
export type GetLocationsResponse = Locations;
|
|
438
438
|
|
|
439
|
-
export
|
|
439
|
+
export interface GetLocationsRequest extends BaseRequest {}
|
|
440
440
|
|
|
441
441
|
// GET /location/search - Gets Location within a radius of the provided point
|
|
442
442
|
|
|
@@ -451,7 +451,9 @@ export interface GetLocationSearchQuery {
|
|
|
451
451
|
|
|
452
452
|
export type GetLocationSearchResponse = Locations;
|
|
453
453
|
|
|
454
|
-
export interface GetLocationSearchRequest
|
|
454
|
+
export interface GetLocationSearchRequest
|
|
455
|
+
extends BaseRequest,
|
|
456
|
+
RequestQuery<GetLocationSearchQuery> {}
|
|
455
457
|
|
|
456
458
|
// GET /location/{id} - Get an individual Location
|
|
457
459
|
|
|
@@ -472,7 +474,10 @@ export interface GetLocationQuery {
|
|
|
472
474
|
|
|
473
475
|
export type GetLocationResponse = Location;
|
|
474
476
|
|
|
475
|
-
export interface GetLocationRequest
|
|
477
|
+
export interface GetLocationRequest
|
|
478
|
+
extends BaseRequest,
|
|
479
|
+
RequestQuery<GetLocationQuery>,
|
|
480
|
+
GetLocationPath {}
|
|
476
481
|
|
|
477
482
|
// PUT /location/{id} - Override a complete Location
|
|
478
483
|
|
|
@@ -485,7 +490,7 @@ export type PutLocationBody = Location;
|
|
|
485
490
|
|
|
486
491
|
export type PutLocationResponse = Location;
|
|
487
492
|
|
|
488
|
-
export interface PutLocationRequest extends PutLocationPath {
|
|
493
|
+
export interface PutLocationRequest extends BaseRequest, PutLocationPath {
|
|
489
494
|
body: PutLocationBody;
|
|
490
495
|
}
|
|
491
496
|
|
|
@@ -503,7 +508,7 @@ export interface DeleteLocationBody {
|
|
|
503
508
|
|
|
504
509
|
export type DeleteLocationResponse = Location;
|
|
505
510
|
|
|
506
|
-
export interface DeleteLocationRequest extends DeleteLocationPath {
|
|
511
|
+
export interface DeleteLocationRequest extends BaseRequest, DeleteLocationPath {
|
|
507
512
|
body: DeleteLocationBody;
|
|
508
513
|
}
|
|
509
514
|
|
|
@@ -518,7 +523,7 @@ export type PatchLocationBody = Location;
|
|
|
518
523
|
|
|
519
524
|
export type PatchLocationResponse = Location;
|
|
520
525
|
|
|
521
|
-
export interface PatchLocationRequest extends PatchLocationPath {
|
|
526
|
+
export interface PatchLocationRequest extends BaseRequest, PatchLocationPath {
|
|
522
527
|
body: PatchLocationBody;
|
|
523
528
|
}
|
|
524
529
|
|
|
@@ -531,7 +536,7 @@ export interface GetLocationPosPath {
|
|
|
531
536
|
|
|
532
537
|
export type GetLocationPosResponse = POS;
|
|
533
538
|
|
|
534
|
-
export interface GetLocationPosRequest extends GetLocationPosPath {}
|
|
539
|
+
export interface GetLocationPosRequest extends BaseRequest, GetLocationPosPath {}
|
|
535
540
|
|
|
536
541
|
// PUT /location/pos/{id} - Set information about a POS
|
|
537
542
|
|
|
@@ -544,7 +549,7 @@ export type PutLocationPosBody = POS;
|
|
|
544
549
|
|
|
545
550
|
export type PutLocationPosResponse = POS;
|
|
546
551
|
|
|
547
|
-
export interface PutLocationPosRequest extends PutLocationPosPath {
|
|
552
|
+
export interface PutLocationPosRequest extends BaseRequest, PutLocationPosPath {
|
|
548
553
|
body: PutLocationPosBody;
|
|
549
554
|
}
|
|
550
555
|
|
|
@@ -556,7 +561,9 @@ export interface GetLocationMultigroupsQuery {
|
|
|
556
561
|
|
|
557
562
|
export type GetLocationMultigroupsResponse = Multigroups;
|
|
558
563
|
|
|
559
|
-
export interface GetLocationMultigroupsRequest
|
|
564
|
+
export interface GetLocationMultigroupsRequest
|
|
565
|
+
extends BaseRequest,
|
|
566
|
+
RequestQuery<GetLocationMultigroupsQuery> {}
|
|
560
567
|
|
|
561
568
|
// POST /location/multigroup - Create a new multigroup
|
|
562
569
|
|
|
@@ -564,7 +571,7 @@ export type PostLocationMultigroupBody = MultiGroup;
|
|
|
564
571
|
|
|
565
572
|
export type PostLocationMultigroupResponse = MultiGroup;
|
|
566
573
|
|
|
567
|
-
export interface PostLocationMultigroupRequest {
|
|
574
|
+
export interface PostLocationMultigroupRequest extends BaseRequest {
|
|
568
575
|
body: PostLocationMultigroupBody;
|
|
569
576
|
}
|
|
570
577
|
|
|
@@ -600,7 +607,8 @@ export interface GetLocationMultigroupQuery {
|
|
|
600
607
|
export type GetLocationMultigroupResponse = MultiGroup;
|
|
601
608
|
|
|
602
609
|
export interface GetLocationMultigroupRequest
|
|
603
|
-
extends
|
|
610
|
+
extends BaseRequest,
|
|
611
|
+
RequestQuery<GetLocationMultigroupQuery>,
|
|
604
612
|
GetLocationMultigroupPath {}
|
|
605
613
|
|
|
606
614
|
// PUT /location/multigroup/{id} - Override a complete multigroup
|
|
@@ -614,7 +622,7 @@ export type PutLocationMultigroupBody = MultiGroup;
|
|
|
614
622
|
|
|
615
623
|
export type PutLocationMultigroupResponse = MultiGroup;
|
|
616
624
|
|
|
617
|
-
export interface PutLocationMultigroupRequest extends PutLocationMultigroupPath {
|
|
625
|
+
export interface PutLocationMultigroupRequest extends BaseRequest, PutLocationMultigroupPath {
|
|
618
626
|
body: PutLocationMultigroupBody;
|
|
619
627
|
}
|
|
620
628
|
|
|
@@ -632,7 +640,7 @@ export interface DeleteLocationMultigroupBody {
|
|
|
632
640
|
|
|
633
641
|
export type DeleteLocationMultigroupResponse = MultiGroup;
|
|
634
642
|
|
|
635
|
-
export interface DeleteLocationMultigroupRequest extends DeleteLocationMultigroupPath {
|
|
643
|
+
export interface DeleteLocationMultigroupRequest extends BaseRequest, DeleteLocationMultigroupPath {
|
|
636
644
|
body: DeleteLocationMultigroupBody;
|
|
637
645
|
}
|
|
638
646
|
|
|
@@ -647,7 +655,7 @@ export type PatchLocationMultigroupBody = MultiGroup;
|
|
|
647
655
|
|
|
648
656
|
export type PatchLocationMultigroupResponse = MultiGroup;
|
|
649
657
|
|
|
650
|
-
export interface PatchLocationMultigroupRequest extends PatchLocationMultigroupPath {
|
|
658
|
+
export interface PatchLocationMultigroupRequest extends BaseRequest, PatchLocationMultigroupPath {
|
|
651
659
|
body: PatchLocationMultigroupBody;
|
|
652
660
|
}
|
|
653
661
|
|
|
@@ -668,7 +676,8 @@ export interface GetLocationUserMultigroupQuery {
|
|
|
668
676
|
export type GetLocationUserMultigroupResponse = Groups;
|
|
669
677
|
|
|
670
678
|
export interface GetLocationUserMultigroupRequest
|
|
671
|
-
extends
|
|
679
|
+
extends BaseRequest,
|
|
680
|
+
RequestQuery<GetLocationUserMultigroupQuery>,
|
|
672
681
|
GetLocationUserMultigroupPath {}
|
|
673
682
|
|
|
674
683
|
// POST /location/group - Create a new group
|
|
@@ -677,7 +686,7 @@ export type PostLocationGroupBody = Group;
|
|
|
677
686
|
|
|
678
687
|
export type PostLocationGroupResponse = Group;
|
|
679
688
|
|
|
680
|
-
export interface PostLocationGroupRequest {
|
|
689
|
+
export interface PostLocationGroupRequest extends BaseRequest {
|
|
681
690
|
body: PostLocationGroupBody;
|
|
682
691
|
}
|
|
683
692
|
|
|
@@ -709,7 +718,8 @@ export interface GetLocationGroupQuery {
|
|
|
709
718
|
export type GetLocationGroupResponse = Group;
|
|
710
719
|
|
|
711
720
|
export interface GetLocationGroupRequest
|
|
712
|
-
extends
|
|
721
|
+
extends BaseRequest,
|
|
722
|
+
RequestQuery<GetLocationGroupQuery>,
|
|
713
723
|
GetLocationGroupPath {}
|
|
714
724
|
|
|
715
725
|
// PUT /location/group/{id} - Override a complete Group
|
|
@@ -723,7 +733,7 @@ export type PutLocationGroupBody = Group;
|
|
|
723
733
|
|
|
724
734
|
export type PutLocationGroupResponse = Group;
|
|
725
735
|
|
|
726
|
-
export interface PutLocationGroupRequest extends PutLocationGroupPath {
|
|
736
|
+
export interface PutLocationGroupRequest extends BaseRequest, PutLocationGroupPath {
|
|
727
737
|
body: PutLocationGroupBody;
|
|
728
738
|
}
|
|
729
739
|
|
|
@@ -741,7 +751,7 @@ export interface DeleteLocationGroupBody {
|
|
|
741
751
|
|
|
742
752
|
export type DeleteLocationGroupResponse = Group;
|
|
743
753
|
|
|
744
|
-
export interface DeleteLocationGroupRequest extends DeleteLocationGroupPath {
|
|
754
|
+
export interface DeleteLocationGroupRequest extends BaseRequest, DeleteLocationGroupPath {
|
|
745
755
|
body: DeleteLocationGroupBody;
|
|
746
756
|
}
|
|
747
757
|
|
|
@@ -756,7 +766,7 @@ export type PatchLocationGroupBody = Group;
|
|
|
756
766
|
|
|
757
767
|
export type PatchLocationGroupResponse = Group;
|
|
758
768
|
|
|
759
|
-
export interface PatchLocationGroupRequest extends PatchLocationGroupPath {
|
|
769
|
+
export interface PatchLocationGroupRequest extends BaseRequest, PatchLocationGroupPath {
|
|
760
770
|
body: PatchLocationGroupBody;
|
|
761
771
|
}
|
|
762
772
|
|
|
@@ -777,7 +787,8 @@ export interface GetLocationGroupDeliverydestinationsResponse {
|
|
|
777
787
|
}
|
|
778
788
|
|
|
779
789
|
export interface GetLocationGroupDeliverydestinationsRequest
|
|
780
|
-
extends
|
|
790
|
+
extends BaseRequest,
|
|
791
|
+
RequestQuery<GetLocationGroupDeliverydestinationsQuery>,
|
|
781
792
|
GetLocationGroupDeliverydestinationsPath {}
|
|
782
793
|
|
|
783
794
|
// POST /location/group/{id}/deliverydestination - Create a new location group delivery destination
|
|
@@ -792,7 +803,8 @@ export type PostLocationGroupDeliverydestinationBody = PostDeliveryDestination;
|
|
|
792
803
|
export type PostLocationGroupDeliverydestinationResponse = DeliveryDestination;
|
|
793
804
|
|
|
794
805
|
export interface PostLocationGroupDeliverydestinationRequest
|
|
795
|
-
extends
|
|
806
|
+
extends BaseRequest,
|
|
807
|
+
PostLocationGroupDeliverydestinationPath {
|
|
796
808
|
body: PostLocationGroupDeliverydestinationBody;
|
|
797
809
|
}
|
|
798
810
|
|
|
@@ -812,7 +824,8 @@ export interface PatchLocationGroupDeliverydestinationResponse {
|
|
|
812
824
|
}
|
|
813
825
|
|
|
814
826
|
export interface PatchLocationGroupDeliverydestinationRequest
|
|
815
|
-
extends
|
|
827
|
+
extends BaseRequest,
|
|
828
|
+
PatchLocationGroupDeliverydestinationPath {
|
|
816
829
|
body: PatchLocationGroupDeliverydestinationBody;
|
|
817
830
|
}
|
|
818
831
|
|
|
@@ -832,7 +845,8 @@ export interface DeleteLocationGroupDeliverydestinationResponse {
|
|
|
832
845
|
}
|
|
833
846
|
|
|
834
847
|
export interface DeleteLocationGroupDeliverydestinationRequest
|
|
835
|
-
extends
|
|
848
|
+
extends BaseRequest,
|
|
849
|
+
DeleteLocationGroupDeliverydestinationPath {
|
|
836
850
|
body: DeleteLocationGroupDeliverydestinationBody;
|
|
837
851
|
}
|
|
838
852
|
|
|
@@ -848,7 +862,8 @@ export interface GetLocationGroupDeliverydestinationPath {
|
|
|
848
862
|
export type GetLocationGroupDeliverydestinationResponse = DeliveryDestination;
|
|
849
863
|
|
|
850
864
|
export interface GetLocationGroupDeliverydestinationRequest
|
|
851
|
-
extends
|
|
865
|
+
extends BaseRequest,
|
|
866
|
+
GetLocationGroupDeliverydestinationPath {}
|
|
852
867
|
|
|
853
868
|
// GET /location/group/{id}/user/{user_id} - Get a location group info specific to user read permissions
|
|
854
869
|
|
|
@@ -868,7 +883,8 @@ export interface GetLocationUserGroupQuery {
|
|
|
868
883
|
export type GetLocationUserGroupResponse = Group;
|
|
869
884
|
|
|
870
885
|
export interface GetLocationUserGroupRequest
|
|
871
|
-
extends
|
|
886
|
+
extends BaseRequest,
|
|
887
|
+
RequestQuery<GetLocationUserGroupQuery>,
|
|
872
888
|
GetLocationUserGroupPath {}
|
|
873
889
|
|
|
874
890
|
// GET /location/brands - Get all location brands
|
|
@@ -877,7 +893,7 @@ export interface GetLocationBrandsResponse {
|
|
|
877
893
|
brands?: Brands;
|
|
878
894
|
}
|
|
879
895
|
|
|
880
|
-
export
|
|
896
|
+
export interface GetLocationBrandsRequest extends BaseRequest {}
|
|
881
897
|
|
|
882
898
|
// GET /location/brand/{id}/deliverydestinations - Get delivery destinations for a brand
|
|
883
899
|
|
|
@@ -888,7 +904,9 @@ export interface GetLocationBrandDestinationsPath {
|
|
|
888
904
|
|
|
889
905
|
export type GetLocationBrandDestinationsResponse = DeliveryDestinationIDs;
|
|
890
906
|
|
|
891
|
-
export interface GetLocationBrandDestinationsRequest
|
|
907
|
+
export interface GetLocationBrandDestinationsRequest
|
|
908
|
+
extends BaseRequest,
|
|
909
|
+
GetLocationBrandDestinationsPath {}
|
|
892
910
|
|
|
893
911
|
// POST /location/brand/{id}/document - Attach document to a brand
|
|
894
912
|
|
|
@@ -908,7 +926,9 @@ export interface PostLocationBrandDocumentBody {
|
|
|
908
926
|
|
|
909
927
|
export type PostLocationBrandDocumentResponse = BrandDocumentsResponse;
|
|
910
928
|
|
|
911
|
-
export interface PostLocationBrandDocumentRequest
|
|
929
|
+
export interface PostLocationBrandDocumentRequest
|
|
930
|
+
extends BaseRequest,
|
|
931
|
+
PostLocationBrandDocumentPath {
|
|
912
932
|
body: PostLocationBrandDocumentBody;
|
|
913
933
|
}
|
|
914
934
|
|
|
@@ -923,7 +943,9 @@ export interface PatchLocationBrandDocumentResponse {
|
|
|
923
943
|
document?: BrandDocument;
|
|
924
944
|
}
|
|
925
945
|
|
|
926
|
-
export interface PatchLocationBrandDocumentRequest
|
|
946
|
+
export interface PatchLocationBrandDocumentRequest
|
|
947
|
+
extends BaseRequest,
|
|
948
|
+
PatchLocationBrandDocumentPath {}
|
|
927
949
|
|
|
928
950
|
// DELETE /location/brand/{id}/document - Deleted brand document
|
|
929
951
|
|
|
@@ -936,7 +958,9 @@ export interface DeleteLocationBrandDocumentResponse {
|
|
|
936
958
|
deleted_document?: BrandDocument;
|
|
937
959
|
}
|
|
938
960
|
|
|
939
|
-
export interface DeleteLocationBrandDocumentRequest
|
|
961
|
+
export interface DeleteLocationBrandDocumentRequest
|
|
962
|
+
extends BaseRequest,
|
|
963
|
+
DeleteLocationBrandDocumentPath {}
|
|
940
964
|
|
|
941
965
|
// GET /location/brand/{id}/documents - Get location brand attached documents
|
|
942
966
|
|
|
@@ -947,7 +971,9 @@ export interface GetLocationBrandDocumentsPath {
|
|
|
947
971
|
|
|
948
972
|
export type GetLocationBrandDocumentsResponse = BrandDocumentsResponse;
|
|
949
973
|
|
|
950
|
-
export interface GetLocationBrandDocumentsRequest
|
|
974
|
+
export interface GetLocationBrandDocumentsRequest
|
|
975
|
+
extends BaseRequest,
|
|
976
|
+
GetLocationBrandDocumentsPath {}
|
|
951
977
|
|
|
952
978
|
// GET /location/brand/{id}/timeslots - Get location brand timeslots
|
|
953
979
|
|
|
@@ -966,7 +992,8 @@ export interface GetLocationBrandTimeslotsQuery {
|
|
|
966
992
|
export type GetLocationBrandTimeslotsResponse = TimeSlots;
|
|
967
993
|
|
|
968
994
|
export interface GetLocationBrandTimeslotsRequest
|
|
969
|
-
extends
|
|
995
|
+
extends BaseRequest,
|
|
996
|
+
RequestQuery<GetLocationBrandTimeslotsQuery>,
|
|
970
997
|
GetLocationBrandTimeslotsPath {}
|
|
971
998
|
|
|
972
999
|
// POST /location/marketplace/timeslots - Get Market Place timeslots
|
|
@@ -983,7 +1010,8 @@ export type PostLocationMarketplaceTimeslotsBody = MarketPlace;
|
|
|
983
1010
|
export type PostLocationMarketplaceTimeslotsResponse = TimeSlots;
|
|
984
1011
|
|
|
985
1012
|
export interface PostLocationMarketplaceTimeslotsRequest
|
|
986
|
-
extends
|
|
1013
|
+
extends BaseRequest,
|
|
1014
|
+
RequestQuery<PostLocationMarketplaceTimeslotsQuery> {
|
|
987
1015
|
body: PostLocationMarketplaceTimeslotsBody;
|
|
988
1016
|
}
|
|
989
1017
|
|
|
@@ -1001,7 +1029,8 @@ export type PostLocationMarketplaceTimeslotsDeliveryBody = MarketPlace;
|
|
|
1001
1029
|
export type PostLocationMarketplaceTimeslotsDeliveryResponse = TimeSlots;
|
|
1002
1030
|
|
|
1003
1031
|
export interface PostLocationMarketplaceTimeslotsDeliveryRequest
|
|
1004
|
-
extends
|
|
1032
|
+
extends BaseRequest,
|
|
1033
|
+
RequestQuery<PostLocationMarketplaceTimeslotsDeliveryQuery> {
|
|
1005
1034
|
body: PostLocationMarketplaceTimeslotsDeliveryBody;
|
|
1006
1035
|
}
|
|
1007
1036
|
|
|
@@ -1024,7 +1053,8 @@ export interface GetLocationBrandMenuTimeslotsQuery {
|
|
|
1024
1053
|
export type GetLocationBrandMenuTimeslotsResponse = TimeSlots;
|
|
1025
1054
|
|
|
1026
1055
|
export interface GetLocationBrandMenuTimeslotsRequest
|
|
1027
|
-
extends
|
|
1056
|
+
extends BaseRequest,
|
|
1057
|
+
RequestQuery<GetLocationBrandMenuTimeslotsQuery>,
|
|
1028
1058
|
GetLocationBrandMenuTimeslotsPath {}
|
|
1029
1059
|
|
|
1030
1060
|
// GET /location/brand/{id}/timeslots/delivery - Get location brand delivery timeslots
|
|
@@ -1044,7 +1074,8 @@ export interface GetLocationBrandDeliveryTimeslotsQuery {
|
|
|
1044
1074
|
export type GetLocationBrandDeliveryTimeslotsResponse = TimeSlots;
|
|
1045
1075
|
|
|
1046
1076
|
export interface GetLocationBrandDeliveryTimeslotsRequest
|
|
1047
|
-
extends
|
|
1077
|
+
extends BaseRequest,
|
|
1078
|
+
RequestQuery<GetLocationBrandDeliveryTimeslotsQuery>,
|
|
1048
1079
|
GetLocationBrandDeliveryTimeslotsPath {}
|
|
1049
1080
|
|
|
1050
1081
|
// GET /location/brand/{id}/timeslots/delivery/menu/{menu} - Get location brand delivery timeslots for menu
|
|
@@ -1066,7 +1097,8 @@ export interface GetLocationBrandMenuDeliveryTimeslostsQuery {
|
|
|
1066
1097
|
export type GetLocationBrandMenuDeliveryTimeslostsResponse = TimeSlots;
|
|
1067
1098
|
|
|
1068
1099
|
export interface GetLocationBrandMenuDeliveryTimeslostsRequest
|
|
1069
|
-
extends
|
|
1100
|
+
extends BaseRequest,
|
|
1101
|
+
RequestQuery<GetLocationBrandMenuDeliveryTimeslostsQuery>,
|
|
1070
1102
|
GetLocationBrandMenuDeliveryTimeslostsPath {}
|
|
1071
1103
|
|
|
1072
1104
|
// POST /location/brand - Create a new Brand
|
|
@@ -1075,7 +1107,7 @@ export type PostLocationBrandBody = Brand;
|
|
|
1075
1107
|
|
|
1076
1108
|
export type PostLocationBrandResponse = Brand;
|
|
1077
1109
|
|
|
1078
|
-
export interface PostLocationBrandRequest {
|
|
1110
|
+
export interface PostLocationBrandRequest extends BaseRequest {
|
|
1079
1111
|
body: PostLocationBrandBody;
|
|
1080
1112
|
}
|
|
1081
1113
|
|
|
@@ -1097,7 +1129,8 @@ export interface GetLocationBrandQuery {
|
|
|
1097
1129
|
export type GetLocationBrandResponse = Brand;
|
|
1098
1130
|
|
|
1099
1131
|
export interface GetLocationBrandRequest
|
|
1100
|
-
extends
|
|
1132
|
+
extends BaseRequest,
|
|
1133
|
+
RequestQuery<GetLocationBrandQuery>,
|
|
1101
1134
|
GetLocationBrandPath {}
|
|
1102
1135
|
|
|
1103
1136
|
// PATCH /location/brand/{id} - Update location brand
|
|
@@ -1111,7 +1144,7 @@ export type PatchLocationBrandBody = Brand;
|
|
|
1111
1144
|
|
|
1112
1145
|
export type PatchLocationBrandResponse = Brand;
|
|
1113
1146
|
|
|
1114
|
-
export interface PatchLocationBrandRequest extends PatchLocationBrandPath {
|
|
1147
|
+
export interface PatchLocationBrandRequest extends BaseRequest, PatchLocationBrandPath {
|
|
1115
1148
|
body: PatchLocationBrandBody;
|
|
1116
1149
|
}
|
|
1117
1150
|
|
|
@@ -1126,7 +1159,7 @@ export type DeleteLocationBrandBody = Brand;
|
|
|
1126
1159
|
|
|
1127
1160
|
export type DeleteLocationBrandResponse = Brand;
|
|
1128
1161
|
|
|
1129
|
-
export interface DeleteLocationBrandRequest extends DeleteLocationBrandPath {
|
|
1162
|
+
export interface DeleteLocationBrandRequest extends BaseRequest, DeleteLocationBrandPath {
|
|
1130
1163
|
body: DeleteLocationBrandBody;
|
|
1131
1164
|
}
|
|
1132
1165
|
|
|
@@ -1141,7 +1174,7 @@ export type PutLocationBrandBody = Brand;
|
|
|
1141
1174
|
|
|
1142
1175
|
export type PutLocationBrandResponse = Brand;
|
|
1143
1176
|
|
|
1144
|
-
export interface PutLocationBrandRequest extends PutLocationBrandPath {
|
|
1177
|
+
export interface PutLocationBrandRequest extends BaseRequest, PutLocationBrandPath {
|
|
1145
1178
|
body: PutLocationBrandBody;
|
|
1146
1179
|
}
|
|
1147
1180
|
|
|
@@ -1153,7 +1186,9 @@ export interface GetLocationSectorsQuery {
|
|
|
1153
1186
|
|
|
1154
1187
|
export type GetLocationSectorsResponse = Sectors;
|
|
1155
1188
|
|
|
1156
|
-
export interface GetLocationSectorsRequest
|
|
1189
|
+
export interface GetLocationSectorsRequest
|
|
1190
|
+
extends BaseRequest,
|
|
1191
|
+
RequestQuery<GetLocationSectorsQuery> {}
|
|
1157
1192
|
|
|
1158
1193
|
// POST /location/sector - Create a new sector
|
|
1159
1194
|
|
|
@@ -1161,7 +1196,7 @@ export type PostLocationSectorBody = CreateSector;
|
|
|
1161
1196
|
|
|
1162
1197
|
export type PostLocationSectorResponse = Sector;
|
|
1163
1198
|
|
|
1164
|
-
export interface PostLocationSectorRequest {
|
|
1199
|
+
export interface PostLocationSectorRequest extends BaseRequest {
|
|
1165
1200
|
body: PostLocationSectorBody;
|
|
1166
1201
|
}
|
|
1167
1202
|
|
|
@@ -1181,7 +1216,8 @@ export interface GetLocationSectorQuery {
|
|
|
1181
1216
|
export type GetLocationSectorResponse = Sector;
|
|
1182
1217
|
|
|
1183
1218
|
export interface GetLocationSectorRequest
|
|
1184
|
-
extends
|
|
1219
|
+
extends BaseRequest,
|
|
1220
|
+
RequestQuery<GetLocationSectorQuery>,
|
|
1185
1221
|
GetLocationSectorPath {}
|
|
1186
1222
|
|
|
1187
1223
|
// PATCH /location/sector/{id} - Update a sector
|
|
@@ -1201,7 +1237,8 @@ export type PatchLocationSectorBody = CreateSector;
|
|
|
1201
1237
|
export type PatchLocationSectorResponse = Sector;
|
|
1202
1238
|
|
|
1203
1239
|
export interface PatchLocationSectorRequest
|
|
1204
|
-
extends
|
|
1240
|
+
extends BaseRequest,
|
|
1241
|
+
RequestQuery<PatchLocationSectorQuery>,
|
|
1205
1242
|
PatchLocationSectorPath {
|
|
1206
1243
|
body: PatchLocationSectorBody;
|
|
1207
1244
|
}
|
|
@@ -1221,7 +1258,7 @@ export interface PostLocationCompanyBody {
|
|
|
1221
1258
|
|
|
1222
1259
|
export type PostLocationCompanyResponse = Company;
|
|
1223
1260
|
|
|
1224
|
-
export interface PostLocationCompanyRequest {
|
|
1261
|
+
export interface PostLocationCompanyRequest extends BaseRequest {
|
|
1225
1262
|
body: PostLocationCompanyBody;
|
|
1226
1263
|
}
|
|
1227
1264
|
|
|
@@ -1239,7 +1276,8 @@ export interface GetLocationCompanyQuery {
|
|
|
1239
1276
|
export type GetLocationCompanyResponse = Company;
|
|
1240
1277
|
|
|
1241
1278
|
export interface GetLocationCompanyRequest
|
|
1242
|
-
extends
|
|
1279
|
+
extends BaseRequest,
|
|
1280
|
+
RequestQuery<GetLocationCompanyQuery>,
|
|
1243
1281
|
GetLocationCompanyPath {}
|
|
1244
1282
|
|
|
1245
1283
|
// PATCH /location/company/{id} - Update a company
|
|
@@ -1253,7 +1291,7 @@ export type PatchLocationCompanyBody = CompanyUpdateBody;
|
|
|
1253
1291
|
|
|
1254
1292
|
export type PatchLocationCompanyResponse = Company;
|
|
1255
1293
|
|
|
1256
|
-
export interface PatchLocationCompanyRequest extends PatchLocationCompanyPath {
|
|
1294
|
+
export interface PatchLocationCompanyRequest extends BaseRequest, PatchLocationCompanyPath {
|
|
1257
1295
|
body: PatchLocationCompanyBody;
|
|
1258
1296
|
}
|
|
1259
1297
|
|
|
@@ -1274,5 +1312,6 @@ export interface DeleteLocationRecordResponse {
|
|
|
1274
1312
|
}
|
|
1275
1313
|
|
|
1276
1314
|
export interface DeleteLocationRecordRequest
|
|
1277
|
-
extends
|
|
1315
|
+
extends BaseRequest,
|
|
1316
|
+
RequestQuery<DeleteLocationRecordQuery>,
|
|
1278
1317
|
DeleteLocationRecordPath {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import { RequestQuery } from "./util";
|
|
3
|
+
import { RequestQuery, BaseRequest } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface Error {
|
|
6
6
|
code?: number;
|
|
@@ -76,7 +76,7 @@ export interface PostMealplanResponse {
|
|
|
76
76
|
tenders?: Tender[];
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
export interface PostMealplanRequest extends PostMealplanPath {
|
|
79
|
+
export interface PostMealplanRequest extends BaseRequest, PostMealplanPath {
|
|
80
80
|
body: PostMealplanBody;
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -95,7 +95,7 @@ export interface PutMealplanResponse {
|
|
|
95
95
|
tenders?: Tender[];
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
export interface PutMealplanRequest extends PutMealplanPath {
|
|
98
|
+
export interface PutMealplanRequest extends BaseRequest, PutMealplanPath {
|
|
99
99
|
body: PutMealplanBody;
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -108,7 +108,7 @@ export interface GetMealplanPath {
|
|
|
108
108
|
|
|
109
109
|
export type GetMealplanResponse = TendersAndAuth;
|
|
110
110
|
|
|
111
|
-
export interface GetMealplanRequest extends GetMealplanPath {}
|
|
111
|
+
export interface GetMealplanRequest extends BaseRequest, GetMealplanPath {}
|
|
112
112
|
|
|
113
113
|
// DELETE /mealplan/{id} - Delete a mealplan or a tender from the user's account
|
|
114
114
|
|
|
@@ -123,7 +123,7 @@ export interface DeleteMealplanBody {
|
|
|
123
123
|
|
|
124
124
|
export type DeleteMealplanResponse = TendersAndAuth;
|
|
125
125
|
|
|
126
|
-
export interface DeleteMealplanRequest extends DeleteMealplanPath {
|
|
126
|
+
export interface DeleteMealplanRequest extends BaseRequest, DeleteMealplanPath {
|
|
127
127
|
body: DeleteMealplanBody;
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -140,7 +140,7 @@ export interface PostMealplanCallbackResponse {
|
|
|
140
140
|
cardNumber?: string;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
export interface PostMealplanCallbackRequest extends PostMealplanCallbackPath {}
|
|
143
|
+
export interface PostMealplanCallbackRequest extends BaseRequest, PostMealplanCallbackPath {}
|
|
144
144
|
|
|
145
145
|
// GET /mealplan/{id}/tender/{tender} - Check the user's tender balance
|
|
146
146
|
|
|
@@ -153,7 +153,7 @@ export interface GetMealplanTenderPath {
|
|
|
153
153
|
|
|
154
154
|
export type GetMealplanTenderResponse = Tender;
|
|
155
155
|
|
|
156
|
-
export interface GetMealplanTenderRequest extends GetMealplanTenderPath {}
|
|
156
|
+
export interface GetMealplanTenderRequest extends BaseRequest, GetMealplanTenderPath {}
|
|
157
157
|
|
|
158
158
|
// DELETE /mealplan/{id}/tender/{tender} - Debit an amount from the tender balance
|
|
159
159
|
|
|
@@ -176,7 +176,7 @@ export interface DeleteMealplanTenderResponse {
|
|
|
176
176
|
transaction_amount?: number;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
export interface DeleteMealplanTenderRequest extends DeleteMealplanTenderPath {}
|
|
179
|
+
export interface DeleteMealplanTenderRequest extends BaseRequest, DeleteMealplanTenderPath {}
|
|
180
180
|
|
|
181
181
|
// PATCH /mealplan/{id}/tender/{tender} - Refund an amount to the tender balance
|
|
182
182
|
|
|
@@ -197,7 +197,7 @@ export interface PatchMealplanTenderBody {
|
|
|
197
197
|
|
|
198
198
|
export type PatchMealplanTenderResponse = Tender;
|
|
199
199
|
|
|
200
|
-
export interface PatchMealplanTenderRequest extends PatchMealplanTenderPath {
|
|
200
|
+
export interface PatchMealplanTenderRequest extends BaseRequest, PatchMealplanTenderPath {
|
|
201
201
|
body: PatchMealplanTenderBody;
|
|
202
202
|
}
|
|
203
203
|
|
|
@@ -218,7 +218,8 @@ export type PostMealplanVerifyBody = VerifyEmail;
|
|
|
218
218
|
export type PostMealplanVerifyResponse = success;
|
|
219
219
|
|
|
220
220
|
export interface PostMealplanVerifyRequest
|
|
221
|
-
extends
|
|
221
|
+
extends BaseRequest,
|
|
222
|
+
RequestQuery<PostMealplanVerifyQuery>,
|
|
222
223
|
PostMealplanVerifyPath {
|
|
223
224
|
body: PostMealplanVerifyBody;
|
|
224
225
|
}
|
|
@@ -234,7 +235,7 @@ export type PutMealplanVerifyBody = string;
|
|
|
234
235
|
|
|
235
236
|
export type PutMealplanVerifyResponse = success;
|
|
236
237
|
|
|
237
|
-
export interface PutMealplanVerifyRequest extends PutMealplanVerifyPath {
|
|
238
|
+
export interface PutMealplanVerifyRequest extends BaseRequest, PutMealplanVerifyPath {
|
|
238
239
|
body: PutMealplanVerifyBody;
|
|
239
240
|
}
|
|
240
241
|
|
|
@@ -263,6 +264,6 @@ export interface PostMealplanAuthorizeResponse {
|
|
|
263
264
|
currency?: string;
|
|
264
265
|
}
|
|
265
266
|
|
|
266
|
-
export interface PostMealplanAuthorizeRequest extends PostMealplanAuthorizePath {
|
|
267
|
+
export interface PostMealplanAuthorizeRequest extends BaseRequest, PostMealplanAuthorizePath {
|
|
267
268
|
body: PostMealplanAuthorizeBody;
|
|
268
269
|
}
|