@compassdigital/sdk.typescript 3.59.0 → 3.61.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/src/index.ts CHANGED
@@ -430,15 +430,12 @@ import {
430
430
  PostUserSendEmailVerificationResponse,
431
431
  PutUserVerifyUserEmailBody,
432
432
  PutUserVerifyUserEmailResponse,
433
- PostUserVerificationPhoneQuery,
434
- PostUserVerificationPhoneBody,
435
- PostUserVerificationPhoneResponse,
436
- PutUserVerificationPhoneBody,
437
- PutUserVerificationPhoneResponse,
438
433
  PostUserGuestUserBody,
439
434
  PostUserGuestUserResponse,
440
435
  PostUserGuestTokenBody,
441
436
  PostUserGuestTokenResponse,
437
+ PostUserEmbedurlBody,
438
+ PostUserEmbedurlResponse,
442
439
  } from "./interface/user";
443
440
 
444
441
  import {
@@ -520,27 +517,6 @@ import {
520
517
  PostMenuPartialGroupItemOptionsQuery,
521
518
  PostMenuPartialGroupItemOptionsBody,
522
519
  PostMenuPartialGroupItemOptionsResponse,
523
- PostMenuV3DraftStationBody,
524
- PostMenuV3DraftStationResponse,
525
- GetMenuV3DraftStationQuery,
526
- GetMenuV3DraftStationResponse,
527
- PatchMenuV3DraftStationBody,
528
- PatchMenuV3DraftStationResponse,
529
- DeleteMenuV3DraftStationResponse,
530
- GetMenuV3DraftStationsQuery,
531
- GetMenuV3DraftStationsResponse,
532
- PostMenuV3DraftStationsBody,
533
- PostMenuV3DraftStationsResponse,
534
- GetMenuV3DraftStationsCountQuery,
535
- GetMenuV3DraftStationsCountResponse,
536
- GetMenuV3DraftStationModifiersQuery,
537
- GetMenuV3DraftStationModifiersResponse,
538
- GetMenuV3DraftStationModifierGroupsQuery,
539
- GetMenuV3DraftStationModifierGroupsResponse,
540
- GetMenuV3DraftStationItemsQuery,
541
- GetMenuV3DraftStationItemsResponse,
542
- GetMenuV3DraftSiteLayoutsQuery,
543
- GetMenuV3DraftSiteLayoutsResponse,
544
520
  PostMenuV3LocalMenuGroupBody,
545
521
  PostMenuV3LocalMenuGroupResponse,
546
522
  GetMenuV3LocalMenuGroupQuery,
@@ -562,23 +538,24 @@ import {
562
538
  GetMenuV3LocalMenuGroupAllowedGlobalBrandsResponse,
563
539
  PostMenuV3LocalMenuGroupImportBrandsQuery,
564
540
  PostMenuV3LocalMenuGroupImportBrandsResponse,
565
- PostMenuV3BrandGroupBody,
566
- PostMenuV3BrandGroupResponse,
567
- GetMenuV3BrandGroupQuery,
568
- GetMenuV3BrandGroupResponse,
569
- PatchMenuV3BrandGroupBody,
570
- PatchMenuV3BrandGroupResponse,
571
- DeleteMenuV3BrandGroupResponse,
572
- GetMenuV3BrandGroupsQuery,
573
- GetMenuV3BrandGroupsResponse,
574
- PostMenuV3BrandGroupsBody,
575
- PostMenuV3BrandGroupsResponse,
576
- GetMenuV3BrandGroupsCountQuery,
577
- GetMenuV3BrandGroupsCountResponse,
578
- GetMenuV3DraftBrandGroupBrandsQuery,
579
- GetMenuV3DraftBrandGroupBrandsResponse,
580
- GetMenuV3BrandGroupBrandsQuery,
581
- GetMenuV3BrandGroupBrandsResponse,
541
+ PostMenuV3GlobalMenuGroupBody,
542
+ PostMenuV3GlobalMenuGroupResponse,
543
+ GetMenuV3GlobalMenuGroupQuery,
544
+ GetMenuV3GlobalMenuGroupResponse,
545
+ PatchMenuV3GlobalMenuGroupBody,
546
+ PatchMenuV3GlobalMenuGroupResponse,
547
+ DeleteMenuV3GlobalMenuGroupQuery,
548
+ DeleteMenuV3GlobalMenuGroupResponse,
549
+ GetMenuV3GlobalMenuGroupsQuery,
550
+ GetMenuV3GlobalMenuGroupsResponse,
551
+ PostMenuV3GlobalMenuGroupsBody,
552
+ PostMenuV3GlobalMenuGroupsResponse,
553
+ GetMenuV3GlobalMenuGroupsCountQuery,
554
+ GetMenuV3GlobalMenuGroupsCountResponse,
555
+ GetMenuV3DraftGlobalMenuGroupBrandsQuery,
556
+ GetMenuV3DraftGlobalMenuGroupBrandsResponse,
557
+ GetMenuV3GlobalMenuGroupBrandsQuery,
558
+ GetMenuV3GlobalMenuGroupBrandsResponse,
582
559
  PostMenuV3DraftBrandBody,
583
560
  PostMenuV3DraftBrandResponse,
584
561
  GetMenuV3DraftBrandQuery,
@@ -592,15 +569,24 @@ import {
592
569
  PostMenuV3DraftBrandsResponse,
593
570
  GetMenuV3DraftBrandsCountQuery,
594
571
  GetMenuV3DraftBrandsCountResponse,
595
- GetMenuV3DraftBrandLayoutsQuery,
596
- GetMenuV3DraftBrandLayoutsResponse,
572
+ GetMenuV3DraftBrandMenusQuery,
573
+ GetMenuV3DraftBrandMenusResponse,
597
574
  GetMenuV3DraftBrandModifiersQuery,
598
575
  GetMenuV3DraftBrandModifiersResponse,
599
576
  GetMenuV3DraftBrandModifierGroupsQuery,
600
577
  GetMenuV3DraftBrandModifierGroupsResponse,
601
578
  GetMenuV3DraftBrandItemsQuery,
602
579
  GetMenuV3DraftBrandItemsResponse,
580
+ GetMenuV3DraftBrandItemsReportingCategoriesQuery,
581
+ GetMenuV3DraftBrandItemsReportingCategoriesResponse,
582
+ GetMenuV3DraftBrandModifiersReportingCategoriesQuery,
583
+ GetMenuV3DraftBrandModifiersReportingCategoriesResponse,
603
584
  PostMenuV3DraftBrandPublishResponse,
585
+ PostMenuV3DraftBrandDiffGenerateResponse,
586
+ GetMenuV3DraftBrandDiffsQuery,
587
+ GetMenuV3DraftBrandDiffsResponse,
588
+ PostMenuV3DraftBrandGlobalDiffsApplyQuery,
589
+ PostMenuV3DraftBrandGlobalDiffsApplyResponse,
604
590
  PostMenuV3BrandAttachmentQuery,
605
591
  PostMenuV3BrandAttachmentResponse,
606
592
  PostMenuV3BrandQuery,
@@ -620,8 +606,8 @@ import {
620
606
  PostMenuV3BrandsResponse,
621
607
  GetMenuV3BrandsCountQuery,
622
608
  GetMenuV3BrandsCountResponse,
623
- GetMenuV3BrandLayoutsQuery,
624
- GetMenuV3BrandLayoutsResponse,
609
+ GetMenuV3BrandMenusQuery,
610
+ GetMenuV3BrandMenusResponse,
625
611
  GetMenuV3BrandModifiersQuery,
626
612
  GetMenuV3BrandModifiersResponse,
627
613
  GetMenuV3BrandModifierGroupsQuery,
@@ -630,30 +616,30 @@ import {
630
616
  GetMenuV3BrandItemsResponse,
631
617
  PostMenuV3BrandLocalQuery,
632
618
  PostMenuV3BrandLocalResponse,
633
- PostMenuV3DraftLayoutBody,
634
- PostMenuV3DraftLayoutResponse,
635
- GetMenuV3DraftLayoutQuery,
636
- GetMenuV3DraftLayoutResponse,
637
- PatchMenuV3DraftLayoutBody,
638
- PatchMenuV3DraftLayoutResponse,
639
- DeleteMenuV3DraftLayoutResponse,
640
- GetMenuV3DraftLayoutsQuery,
641
- GetMenuV3DraftLayoutsResponse,
642
- PostMenuV3DraftLayoutsBody,
643
- PostMenuV3DraftLayoutsResponse,
644
- GetMenuV3DraftLayoutsCountQuery,
645
- GetMenuV3DraftLayoutsCountResponse,
646
- GetMenuV3DraftLayoutCategoriesQuery,
647
- GetMenuV3DraftLayoutCategoriesResponse,
648
- PostMenuV3DraftLayoutPublishResponse,
649
- GetMenuV3LayoutQuery,
650
- GetMenuV3LayoutResponse,
651
- GetMenuV3LayoutsQuery,
652
- GetMenuV3LayoutsResponse,
653
- GetMenuV3LayoutsCountQuery,
654
- GetMenuV3LayoutsCountResponse,
655
- GetMenuV3LayoutCategoriesQuery,
656
- GetMenuV3LayoutCategoriesResponse,
619
+ PostMenuV3DraftMenuBody,
620
+ PostMenuV3DraftMenuResponse,
621
+ GetMenuV3DraftMenuQuery,
622
+ GetMenuV3DraftMenuResponse,
623
+ PatchMenuV3DraftMenuBody,
624
+ PatchMenuV3DraftMenuResponse,
625
+ DeleteMenuV3DraftMenuResponse,
626
+ GetMenuV3DraftMenusQuery,
627
+ GetMenuV3DraftMenusResponse,
628
+ PostMenuV3DraftMenusBody,
629
+ PostMenuV3DraftMenusResponse,
630
+ GetMenuV3DraftMenusCountQuery,
631
+ GetMenuV3DraftMenusCountResponse,
632
+ GetMenuV3DraftMenuCategoriesQuery,
633
+ GetMenuV3DraftMenuCategoriesResponse,
634
+ PostMenuV3DraftMenuPublishResponse,
635
+ GetMenuV3MenuQuery,
636
+ GetMenuV3MenuResponse,
637
+ GetMenuV3MenusQuery,
638
+ GetMenuV3MenusResponse,
639
+ GetMenuV3MenusCountQuery,
640
+ GetMenuV3MenusCountResponse,
641
+ GetMenuV3MenuCategoriesQuery,
642
+ GetMenuV3MenuCategoriesResponse,
657
643
  PostMenuV3DraftCategoryBody,
658
644
  PostMenuV3DraftCategoryResponse,
659
645
  GetMenuV3DraftCategoryQuery,
@@ -663,8 +649,8 @@ import {
663
649
  DeleteMenuV3DraftCategoryResponse,
664
650
  GetMenuV3DraftCategoriesCountQuery,
665
651
  GetMenuV3DraftCategoriesCountResponse,
666
- PostMenuV3DraftCategorysBody,
667
- PostMenuV3DraftCategorysResponse,
652
+ PostMenuV3DraftCategoriesBody,
653
+ PostMenuV3DraftCategoriesResponse,
668
654
  GetMenuV3CategoryQuery,
669
655
  GetMenuV3CategoryResponse,
670
656
  GetMenuV3CategorysCountQuery,
@@ -785,6 +771,14 @@ import {
785
771
  GetMenuV3ModifiersResponse,
786
772
  GetMenuV3ModifiersCountQuery,
787
773
  GetMenuV3ModifiersCountResponse,
774
+ PostMenuV3IntegrationsTransltrImportQuery,
775
+ PostMenuV3IntegrationsTransltrImportResponse,
776
+ GetMenuV3GlobalDiffQuery,
777
+ GetMenuV3GlobalDiffResponse,
778
+ GetMenuV3GlobalDiffsQuery,
779
+ GetMenuV3GlobalDiffsResponse,
780
+ GetMenuV3GlobalDiffsCountQuery,
781
+ GetMenuV3GlobalDiffsCountResponse,
788
782
  } from "./interface/menu";
789
783
 
790
784
  import {
@@ -842,26 +836,6 @@ import {
842
836
  PostVendorResetPasswordResponse,
843
837
  } from "./interface/vendor";
844
838
 
845
- import {
846
- PostPermissionBody,
847
- PostPermissionResponse,
848
- DeletePermissionResponse,
849
- GetPermissionRoleQuery,
850
- GetPermissionRoleResponse,
851
- PostPermissionRoleBody,
852
- PostPermissionRoleResponse,
853
- PatchPermissionRoleBody,
854
- PatchPermissionRoleResponse,
855
- GetPermissionRecipientQuery,
856
- GetPermissionRecipientResponse,
857
- GetPermissionRoleUserQuery,
858
- GetPermissionRoleUserResponse,
859
- PostPermissionRoleUserBody,
860
- PostPermissionRoleUserResponse,
861
- DeletePermissionRoleUserBody,
862
- DeletePermissionRoleUserResponse,
863
- } from "./interface/permission";
864
-
865
839
  import {
866
840
  GetDeliveryOrderQuery,
867
841
  GetDeliveryOrderResponse,
@@ -871,49 +845,6 @@ import {
871
845
  PostDeliveryAvailabilityResponse,
872
846
  } from "./interface/delivery";
873
847
 
874
- import {
875
- PostLoyaltyEnrollQuery,
876
- PostLoyaltyEnrollResponse,
877
- GetLoyaltyPointsQuery,
878
- GetLoyaltyPointsResponse,
879
- GetLoyaltyOffersQuery,
880
- GetLoyaltyOffersResponse,
881
- GetLoyaltyEnrollmentstatusQuery,
882
- GetLoyaltyEnrollmentstatusResponse,
883
- GetLoyaltyBalanceQuery,
884
- GetLoyaltyBalanceResponse,
885
- GetLoyaltyOpportunitiesQuery,
886
- GetLoyaltyOpportunitiesResponse,
887
- PostLoyaltyOpportunitiesQuery,
888
- PostLoyaltyOpportunitiesResponse,
889
- GetLoyaltyRewardsQuery,
890
- GetLoyaltyRewardsResponse,
891
- GetLoyaltyCouponsQuery,
892
- GetLoyaltyCouponsResponse,
893
- GetLoyaltyOrderpointsQuery,
894
- GetLoyaltyOrderpointsResponse,
895
- PostLoyaltyOrderpointsBody,
896
- PostLoyaltyOrderpointsResponse,
897
- PostLoyaltyPurchaseQuery,
898
- PostLoyaltyPurchaseBody,
899
- PostLoyaltyPurchaseResponse,
900
- PostLoyaltyBuyrewardQuery,
901
- PostLoyaltyBuyrewardBody,
902
- PostLoyaltyBuyrewardResponse,
903
- GetLoyaltyHistoryQuery,
904
- GetLoyaltyHistoryResponse,
905
- GetLoyaltyCouponQuery,
906
- GetLoyaltyCouponResponse,
907
- PatchLoyaltyCouponBody,
908
- PatchLoyaltyCouponResponse,
909
- GetLoyaltySearchQuery,
910
- GetLoyaltySearchResponse,
911
- GetLoyaltyUsersQuery,
912
- GetLoyaltyUsersResponse,
913
- GetLoyaltyEventsQuery,
914
- GetLoyaltyEventsResponse,
915
- } from "./interface/loyalty";
916
-
917
848
  import { BaseServiceClient, RequestOptions, ResponsePromise } from "./base";
918
849
  export * from "./base";
919
850
 
@@ -4756,52 +4687,6 @@ export class ServiceClient extends BaseServiceClient {
4756
4687
  );
4757
4688
  }
4758
4689
 
4759
- /**
4760
- * POST /user/{id}/verification/phone - Send phone verification to user
4761
- *
4762
- * @param id - realm
4763
- * @param body - User phone number to be verified
4764
- * @param options - additional request options
4765
- */
4766
- post_user_verification_phone(
4767
- id: string,
4768
- body: PostUserVerificationPhoneBody,
4769
- options?: {
4770
- query?: PostUserVerificationPhoneQuery;
4771
- } & RequestOptions
4772
- ): ResponsePromise<PostUserVerificationPhoneResponse> {
4773
- return this.request(
4774
- "user",
4775
- "post_user_verification_phone",
4776
- "post",
4777
- `/user/${id}/verification/phone`,
4778
- body,
4779
- options
4780
- );
4781
- }
4782
-
4783
- /**
4784
- * PUT /user/{id}/verification/phone - Attempt phone verification for user
4785
- *
4786
- * @param id - realm
4787
- * @param body
4788
- * @param options - additional request options
4789
- */
4790
- put_user_verification_phone(
4791
- id: string,
4792
- body: PutUserVerificationPhoneBody,
4793
- options?: RequestOptions
4794
- ): ResponsePromise<PutUserVerificationPhoneResponse> {
4795
- return this.request(
4796
- "user",
4797
- "put_user_verification_phone",
4798
- "put",
4799
- `/user/${id}/verification/phone`,
4800
- body,
4801
- options
4802
- );
4803
- }
4804
-
4805
4690
  /**
4806
4691
  * POST /user/guest - Creates a guest user
4807
4692
  *
@@ -4835,6 +4720,26 @@ export class ServiceClient extends BaseServiceClient {
4835
4720
  );
4836
4721
  }
4837
4722
 
4723
+ /**
4724
+ * POST /user/looker/embedurl - Create looker embed url
4725
+ *
4726
+ * @param body
4727
+ * @param options - additional request options
4728
+ */
4729
+ post_user_embedurl(
4730
+ body: PostUserEmbedurlBody,
4731
+ options?: RequestOptions
4732
+ ): ResponsePromise<PostUserEmbedurlResponse> {
4733
+ return this.request(
4734
+ "user",
4735
+ "post_user_embedurl",
4736
+ "post",
4737
+ `/user/looker/embedurl`,
4738
+ body,
4739
+ options
4740
+ );
4741
+ }
4742
+
4838
4743
  /**
4839
4744
  * GET /calendar/{id}
4840
4745
  *
@@ -5490,238 +5395,6 @@ export class ServiceClient extends BaseServiceClient {
5490
5395
  );
5491
5396
  }
5492
5397
 
5493
- /**
5494
- * POST /menu/v3/draft/station
5495
- *
5496
- * @param body
5497
- * @param options - additional request options
5498
- */
5499
- post_menu_v3_draft_station(
5500
- body: PostMenuV3DraftStationBody,
5501
- options?: RequestOptions
5502
- ): ResponsePromise<PostMenuV3DraftStationResponse> {
5503
- return this.request(
5504
- "menu",
5505
- "post_menu_v3_draft_station",
5506
- "post",
5507
- `/menu/v3/draft/station`,
5508
- body,
5509
- options
5510
- );
5511
- }
5512
-
5513
- /**
5514
- * GET /menu/v3/draft/station/{id}
5515
- *
5516
- * @param id
5517
- * @param options - additional request options
5518
- */
5519
- get_menu_v3_draft_station(
5520
- id: string,
5521
- options?: {
5522
- query?: GetMenuV3DraftStationQuery;
5523
- } & RequestOptions
5524
- ): ResponsePromise<GetMenuV3DraftStationResponse> {
5525
- return this.request(
5526
- "menu",
5527
- "get_menu_v3_draft_station",
5528
- "get",
5529
- `/menu/v3/draft/station/${id}`,
5530
- null,
5531
- options
5532
- );
5533
- }
5534
-
5535
- /**
5536
- * PATCH /menu/v3/draft/station/{id}
5537
- *
5538
- * @param id
5539
- * @param body - A partially populated StationEntity
5540
- * @param options - additional request options
5541
- */
5542
- patch_menu_v3_draft_station(
5543
- id: string,
5544
- body: PatchMenuV3DraftStationBody,
5545
- options?: RequestOptions
5546
- ): ResponsePromise<PatchMenuV3DraftStationResponse> {
5547
- return this.request(
5548
- "menu",
5549
- "patch_menu_v3_draft_station",
5550
- "patch",
5551
- `/menu/v3/draft/station/${id}`,
5552
- body,
5553
- options
5554
- );
5555
- }
5556
-
5557
- /**
5558
- * DELETE /menu/v3/draft/station/{id}
5559
- *
5560
- * @param id
5561
- * @param options - additional request options
5562
- */
5563
- delete_menu_v3_draft_station(
5564
- id: string,
5565
- options?: RequestOptions
5566
- ): ResponsePromise<DeleteMenuV3DraftStationResponse> {
5567
- return this.request(
5568
- "menu",
5569
- "delete_menu_v3_draft_station",
5570
- "delete",
5571
- `/menu/v3/draft/station/${id}`,
5572
- null,
5573
- options
5574
- );
5575
- }
5576
-
5577
- /**
5578
- * GET /menu/v3/draft/stations
5579
- *
5580
- * @param options - additional request options
5581
- */
5582
- get_menu_v3_draft_stations(
5583
- options?: {
5584
- query?: GetMenuV3DraftStationsQuery;
5585
- } & RequestOptions
5586
- ): ResponsePromise<GetMenuV3DraftStationsResponse> {
5587
- return this.request(
5588
- "menu",
5589
- "get_menu_v3_draft_stations",
5590
- "get",
5591
- `/menu/v3/draft/stations`,
5592
- null,
5593
- options
5594
- );
5595
- }
5596
-
5597
- /**
5598
- * POST /menu/v3/draft/stations
5599
- *
5600
- * @param body
5601
- * @param options - additional request options
5602
- */
5603
- post_menu_v3_draft_stations(
5604
- body: PostMenuV3DraftStationsBody,
5605
- options?: RequestOptions
5606
- ): ResponsePromise<PostMenuV3DraftStationsResponse> {
5607
- return this.request(
5608
- "menu",
5609
- "post_menu_v3_draft_stations",
5610
- "post",
5611
- `/menu/v3/draft/stations`,
5612
- body,
5613
- options
5614
- );
5615
- }
5616
-
5617
- /**
5618
- * GET /menu/v3/draft/stations/count
5619
- *
5620
- * @param options - additional request options
5621
- */
5622
- get_menu_v3_draft_stations_count(
5623
- options?: {
5624
- query?: GetMenuV3DraftStationsCountQuery;
5625
- } & RequestOptions
5626
- ): ResponsePromise<GetMenuV3DraftStationsCountResponse> {
5627
- return this.request(
5628
- "menu",
5629
- "get_menu_v3_draft_stations_count",
5630
- "get",
5631
- `/menu/v3/draft/stations/count`,
5632
- null,
5633
- options
5634
- );
5635
- }
5636
-
5637
- /**
5638
- * GET /menu/v3/draft/station/{id}/modifiers
5639
- *
5640
- * @param id
5641
- * @param options - additional request options
5642
- */
5643
- get_menu_v3_draft_station_modifiers(
5644
- id: string,
5645
- options?: {
5646
- query?: GetMenuV3DraftStationModifiersQuery;
5647
- } & RequestOptions
5648
- ): ResponsePromise<GetMenuV3DraftStationModifiersResponse> {
5649
- return this.request(
5650
- "menu",
5651
- "get_menu_v3_draft_station_modifiers",
5652
- "get",
5653
- `/menu/v3/draft/station/${id}/modifiers`,
5654
- null,
5655
- options
5656
- );
5657
- }
5658
-
5659
- /**
5660
- * GET /menu/v3/draft/station/{id}/modifier_groups
5661
- *
5662
- * @param id
5663
- * @param options - additional request options
5664
- */
5665
- get_menu_v3_draft_station_modifier_groups(
5666
- id: string,
5667
- options?: {
5668
- query?: GetMenuV3DraftStationModifierGroupsQuery;
5669
- } & RequestOptions
5670
- ): ResponsePromise<GetMenuV3DraftStationModifierGroupsResponse> {
5671
- return this.request(
5672
- "menu",
5673
- "get_menu_v3_draft_station_modifier_groups",
5674
- "get",
5675
- `/menu/v3/draft/station/${id}/modifier_groups`,
5676
- null,
5677
- options
5678
- );
5679
- }
5680
-
5681
- /**
5682
- * GET /menu/v3/draft/station/{id}/items
5683
- *
5684
- * @param id
5685
- * @param options - additional request options
5686
- */
5687
- get_menu_v3_draft_station_items(
5688
- id: string,
5689
- options?: {
5690
- query?: GetMenuV3DraftStationItemsQuery;
5691
- } & RequestOptions
5692
- ): ResponsePromise<GetMenuV3DraftStationItemsResponse> {
5693
- return this.request(
5694
- "menu",
5695
- "get_menu_v3_draft_station_items",
5696
- "get",
5697
- `/menu/v3/draft/station/${id}/items`,
5698
- null,
5699
- options
5700
- );
5701
- }
5702
-
5703
- /**
5704
- * GET /menu/v3/draft/site/{id}/layouts
5705
- *
5706
- * @param id
5707
- * @param options - additional request options
5708
- */
5709
- get_menu_v3_draft_site_layouts(
5710
- id: string,
5711
- options?: {
5712
- query?: GetMenuV3DraftSiteLayoutsQuery;
5713
- } & RequestOptions
5714
- ): ResponsePromise<GetMenuV3DraftSiteLayoutsResponse> {
5715
- return this.request(
5716
- "menu",
5717
- "get_menu_v3_draft_site_layouts",
5718
- "get",
5719
- `/menu/v3/draft/site/${id}/layouts`,
5720
- null,
5721
- options
5722
- );
5723
- }
5724
-
5725
5398
  /**
5726
5399
  * POST /menu/v3/local-menu-group
5727
5400
  *
@@ -5955,188 +5628,190 @@ export class ServiceClient extends BaseServiceClient {
5955
5628
  }
5956
5629
 
5957
5630
  /**
5958
- * POST /menu/v3/brand-group
5631
+ * POST /menu/v3/global-menu-group
5959
5632
  *
5960
5633
  * @param body
5961
5634
  * @param options - additional request options
5962
5635
  */
5963
- post_menu_v3_brand_group(
5964
- body: PostMenuV3BrandGroupBody,
5636
+ post_menu_v3_global_menu_group(
5637
+ body: PostMenuV3GlobalMenuGroupBody,
5965
5638
  options?: RequestOptions
5966
- ): ResponsePromise<PostMenuV3BrandGroupResponse> {
5639
+ ): ResponsePromise<PostMenuV3GlobalMenuGroupResponse> {
5967
5640
  return this.request(
5968
5641
  "menu",
5969
- "post_menu_v3_brand_group",
5642
+ "post_menu_v3_global_menu_group",
5970
5643
  "post",
5971
- `/menu/v3/brand-group`,
5644
+ `/menu/v3/global-menu-group`,
5972
5645
  body,
5973
5646
  options
5974
5647
  );
5975
5648
  }
5976
5649
 
5977
5650
  /**
5978
- * GET /menu/v3/brand-group/{id}
5651
+ * GET /menu/v3/global-menu-group/{id}
5979
5652
  *
5980
5653
  * @param id
5981
5654
  * @param options - additional request options
5982
5655
  */
5983
- get_menu_v3_brand_group(
5656
+ get_menu_v3_global_menu_group(
5984
5657
  id: string,
5985
5658
  options?: {
5986
- query?: GetMenuV3BrandGroupQuery;
5659
+ query?: GetMenuV3GlobalMenuGroupQuery;
5987
5660
  } & RequestOptions
5988
- ): ResponsePromise<GetMenuV3BrandGroupResponse> {
5661
+ ): ResponsePromise<GetMenuV3GlobalMenuGroupResponse> {
5989
5662
  return this.request(
5990
5663
  "menu",
5991
- "get_menu_v3_brand_group",
5664
+ "get_menu_v3_global_menu_group",
5992
5665
  "get",
5993
- `/menu/v3/brand-group/${id}`,
5666
+ `/menu/v3/global-menu-group/${id}`,
5994
5667
  null,
5995
5668
  options
5996
5669
  );
5997
5670
  }
5998
5671
 
5999
5672
  /**
6000
- * PATCH /menu/v3/brand-group/{id}
5673
+ * PATCH /menu/v3/global-menu-group/{id}
6001
5674
  *
6002
5675
  * @param id
6003
- * @param body - A partially populated BrandGroupEntity
5676
+ * @param body - A partially populated GlobalMenuGroupEntity
6004
5677
  * @param options - additional request options
6005
5678
  */
6006
- patch_menu_v3_brand_group(
5679
+ patch_menu_v3_global_menu_group(
6007
5680
  id: string,
6008
- body: PatchMenuV3BrandGroupBody,
5681
+ body: PatchMenuV3GlobalMenuGroupBody,
6009
5682
  options?: RequestOptions
6010
- ): ResponsePromise<PatchMenuV3BrandGroupResponse> {
5683
+ ): ResponsePromise<PatchMenuV3GlobalMenuGroupResponse> {
6011
5684
  return this.request(
6012
5685
  "menu",
6013
- "patch_menu_v3_brand_group",
5686
+ "patch_menu_v3_global_menu_group",
6014
5687
  "patch",
6015
- `/menu/v3/brand-group/${id}`,
5688
+ `/menu/v3/global-menu-group/${id}`,
6016
5689
  body,
6017
5690
  options
6018
5691
  );
6019
5692
  }
6020
5693
 
6021
5694
  /**
6022
- * DELETE /menu/v3/brand-group/{id}
5695
+ * DELETE /menu/v3/global-menu-group/{id}
6023
5696
  *
6024
5697
  * @param id
6025
5698
  * @param options - additional request options
6026
5699
  */
6027
- delete_menu_v3_brand_group(
5700
+ delete_menu_v3_global_menu_group(
6028
5701
  id: string,
6029
- options?: RequestOptions
6030
- ): ResponsePromise<DeleteMenuV3BrandGroupResponse> {
5702
+ options?: {
5703
+ query?: DeleteMenuV3GlobalMenuGroupQuery;
5704
+ } & RequestOptions
5705
+ ): ResponsePromise<DeleteMenuV3GlobalMenuGroupResponse> {
6031
5706
  return this.request(
6032
5707
  "menu",
6033
- "delete_menu_v3_brand_group",
5708
+ "delete_menu_v3_global_menu_group",
6034
5709
  "delete",
6035
- `/menu/v3/brand-group/${id}`,
5710
+ `/menu/v3/global-menu-group/${id}`,
6036
5711
  null,
6037
5712
  options
6038
5713
  );
6039
5714
  }
6040
5715
 
6041
5716
  /**
6042
- * GET /menu/v3/brand-groups
5717
+ * GET /menu/v3/global-menu-groups
6043
5718
  *
6044
5719
  * @param options - additional request options
6045
5720
  */
6046
- get_menu_v3_brand_groups(
5721
+ get_menu_v3_global_menu_groups(
6047
5722
  options?: {
6048
- query?: GetMenuV3BrandGroupsQuery;
5723
+ query?: GetMenuV3GlobalMenuGroupsQuery;
6049
5724
  } & RequestOptions
6050
- ): ResponsePromise<GetMenuV3BrandGroupsResponse> {
5725
+ ): ResponsePromise<GetMenuV3GlobalMenuGroupsResponse> {
6051
5726
  return this.request(
6052
5727
  "menu",
6053
- "get_menu_v3_brand_groups",
5728
+ "get_menu_v3_global_menu_groups",
6054
5729
  "get",
6055
- `/menu/v3/brand-groups`,
5730
+ `/menu/v3/global-menu-groups`,
6056
5731
  null,
6057
5732
  options
6058
5733
  );
6059
5734
  }
6060
5735
 
6061
5736
  /**
6062
- * POST /menu/v3/brand-groups
5737
+ * POST /menu/v3/global-menu-groups
6063
5738
  *
6064
5739
  * @param body
6065
5740
  * @param options - additional request options
6066
5741
  */
6067
- post_menu_v3_brand_groups(
6068
- body: PostMenuV3BrandGroupsBody,
5742
+ post_menu_v3_global_menu_groups(
5743
+ body: PostMenuV3GlobalMenuGroupsBody,
6069
5744
  options?: RequestOptions
6070
- ): ResponsePromise<PostMenuV3BrandGroupsResponse> {
5745
+ ): ResponsePromise<PostMenuV3GlobalMenuGroupsResponse> {
6071
5746
  return this.request(
6072
5747
  "menu",
6073
- "post_menu_v3_brand_groups",
5748
+ "post_menu_v3_global_menu_groups",
6074
5749
  "post",
6075
- `/menu/v3/brand-groups`,
5750
+ `/menu/v3/global-menu-groups`,
6076
5751
  body,
6077
5752
  options
6078
5753
  );
6079
5754
  }
6080
5755
 
6081
5756
  /**
6082
- * GET /menu/v3/brand-groups/count
5757
+ * GET /menu/v3/global-menu-groups/count
6083
5758
  *
6084
5759
  * @param options - additional request options
6085
5760
  */
6086
- get_menu_v3_brand_groups_count(
5761
+ get_menu_v3_global_menu_groups_count(
6087
5762
  options?: {
6088
- query?: GetMenuV3BrandGroupsCountQuery;
5763
+ query?: GetMenuV3GlobalMenuGroupsCountQuery;
6089
5764
  } & RequestOptions
6090
- ): ResponsePromise<GetMenuV3BrandGroupsCountResponse> {
5765
+ ): ResponsePromise<GetMenuV3GlobalMenuGroupsCountResponse> {
6091
5766
  return this.request(
6092
5767
  "menu",
6093
- "get_menu_v3_brand_groups_count",
5768
+ "get_menu_v3_global_menu_groups_count",
6094
5769
  "get",
6095
- `/menu/v3/brand-groups/count`,
5770
+ `/menu/v3/global-menu-groups/count`,
6096
5771
  null,
6097
5772
  options
6098
5773
  );
6099
5774
  }
6100
5775
 
6101
5776
  /**
6102
- * GET /menu/v3/draft/brand-group/{id}/brands
5777
+ * GET /menu/v3/draft/global-menu-group/{id}/brands
6103
5778
  *
6104
5779
  * @param id
6105
5780
  * @param options - additional request options
6106
5781
  */
6107
- get_menu_v3_draft_brand_group_brands(
5782
+ get_menu_v3_draft_global_menu_group_brands(
6108
5783
  id: string,
6109
5784
  options?: {
6110
- query?: GetMenuV3DraftBrandGroupBrandsQuery;
5785
+ query?: GetMenuV3DraftGlobalMenuGroupBrandsQuery;
6111
5786
  } & RequestOptions
6112
- ): ResponsePromise<GetMenuV3DraftBrandGroupBrandsResponse> {
5787
+ ): ResponsePromise<GetMenuV3DraftGlobalMenuGroupBrandsResponse> {
6113
5788
  return this.request(
6114
5789
  "menu",
6115
- "get_menu_v3_draft_brand_group_brands",
5790
+ "get_menu_v3_draft_global_menu_group_brands",
6116
5791
  "get",
6117
- `/menu/v3/draft/brand-group/${id}/brands`,
5792
+ `/menu/v3/draft/global-menu-group/${id}/brands`,
6118
5793
  null,
6119
5794
  options
6120
5795
  );
6121
5796
  }
6122
5797
 
6123
5798
  /**
6124
- * GET /menu/v3/brand-group/{id}/brands
5799
+ * GET /menu/v3/global-menu-group/{id}/brands
6125
5800
  *
6126
5801
  * @param id
6127
5802
  * @param options - additional request options
6128
5803
  */
6129
- get_menu_v3_brand_group_brands(
5804
+ get_menu_v3_global_menu_group_brands(
6130
5805
  id: string,
6131
5806
  options?: {
6132
- query?: GetMenuV3BrandGroupBrandsQuery;
5807
+ query?: GetMenuV3GlobalMenuGroupBrandsQuery;
6133
5808
  } & RequestOptions
6134
- ): ResponsePromise<GetMenuV3BrandGroupBrandsResponse> {
5809
+ ): ResponsePromise<GetMenuV3GlobalMenuGroupBrandsResponse> {
6135
5810
  return this.request(
6136
5811
  "menu",
6137
- "get_menu_v3_brand_group_brands",
5812
+ "get_menu_v3_global_menu_group_brands",
6138
5813
  "get",
6139
- `/menu/v3/brand-group/${id}/brands`,
5814
+ `/menu/v3/global-menu-group/${id}/brands`,
6140
5815
  null,
6141
5816
  options
6142
5817
  );
@@ -6287,22 +5962,22 @@ export class ServiceClient extends BaseServiceClient {
6287
5962
  }
6288
5963
 
6289
5964
  /**
6290
- * GET /menu/v3/draft/brand/{id}/layouts
5965
+ * GET /menu/v3/draft/brand/{id}/menus
6291
5966
  *
6292
5967
  * @param id
6293
5968
  * @param options - additional request options
6294
5969
  */
6295
- get_menu_v3_draft_brand_layouts(
5970
+ get_menu_v3_draft_brand_menus(
6296
5971
  id: string,
6297
5972
  options?: {
6298
- query?: GetMenuV3DraftBrandLayoutsQuery;
5973
+ query?: GetMenuV3DraftBrandMenusQuery;
6299
5974
  } & RequestOptions
6300
- ): ResponsePromise<GetMenuV3DraftBrandLayoutsResponse> {
5975
+ ): ResponsePromise<GetMenuV3DraftBrandMenusResponse> {
6301
5976
  return this.request(
6302
5977
  "menu",
6303
- "get_menu_v3_draft_brand_layouts",
5978
+ "get_menu_v3_draft_brand_menus",
6304
5979
  "get",
6305
- `/menu/v3/draft/brand/${id}/layouts`,
5980
+ `/menu/v3/draft/brand/${id}/menus`,
6306
5981
  null,
6307
5982
  options
6308
5983
  );
@@ -6375,66 +6050,174 @@ export class ServiceClient extends BaseServiceClient {
6375
6050
  }
6376
6051
 
6377
6052
  /**
6378
- * POST /menu/v3/draft/brand/{id}/publish
6053
+ * GET /menu/v3/draft/brand/{id}/items/reporting/categories
6379
6054
  *
6380
6055
  * @param id
6381
6056
  * @param options - additional request options
6382
6057
  */
6383
- post_menu_v3_draft_brand_publish(
6058
+ get_menu_v3_draft_brand_items_reporting_categories(
6384
6059
  id: string,
6385
- options?: RequestOptions
6386
- ): ResponsePromise<PostMenuV3DraftBrandPublishResponse> {
6060
+ options?: {
6061
+ query?: GetMenuV3DraftBrandItemsReportingCategoriesQuery;
6062
+ } & RequestOptions
6063
+ ): ResponsePromise<GetMenuV3DraftBrandItemsReportingCategoriesResponse> {
6387
6064
  return this.request(
6388
6065
  "menu",
6389
- "post_menu_v3_draft_brand_publish",
6390
- "post",
6391
- `/menu/v3/draft/brand/${id}/publish`,
6066
+ "get_menu_v3_draft_brand_items_reporting_categories",
6067
+ "get",
6068
+ `/menu/v3/draft/brand/${id}/items/reporting/categories`,
6392
6069
  null,
6393
6070
  options
6394
6071
  );
6395
6072
  }
6396
6073
 
6397
6074
  /**
6398
- * POST /menu/v3/brand/{id}/attachment/{name}
6075
+ * GET /menu/v3/draft/brand/{id}/modifiers/reporting/categories
6399
6076
  *
6400
6077
  * @param id
6401
- * @param name
6402
6078
  * @param options - additional request options
6403
6079
  */
6404
- post_menu_v3_brand_attachment(
6080
+ get_menu_v3_draft_brand_modifiers_reporting_categories(
6405
6081
  id: string,
6406
- name: string,
6407
6082
  options?: {
6408
- query?: PostMenuV3BrandAttachmentQuery;
6083
+ query?: GetMenuV3DraftBrandModifiersReportingCategoriesQuery;
6409
6084
  } & RequestOptions
6410
- ): ResponsePromise<PostMenuV3BrandAttachmentResponse> {
6085
+ ): ResponsePromise<GetMenuV3DraftBrandModifiersReportingCategoriesResponse> {
6411
6086
  return this.request(
6412
6087
  "menu",
6413
- "post_menu_v3_brand_attachment",
6414
- "post",
6415
- `/menu/v3/brand/${id}/attachment/${name}`,
6088
+ "get_menu_v3_draft_brand_modifiers_reporting_categories",
6089
+ "get",
6090
+ `/menu/v3/draft/brand/${id}/modifiers/reporting/categories`,
6416
6091
  null,
6417
6092
  options
6418
6093
  );
6419
6094
  }
6420
6095
 
6421
6096
  /**
6422
- * POST /menu/v3/brand
6423
- *
6424
- * @param body
6425
- * @param options - additional request options
6426
- */
6427
- post_menu_v3_brand(
6428
- body: PostMenuV3BrandBody,
6429
- options?: {
6430
- query?: PostMenuV3BrandQuery;
6431
- } & RequestOptions
6432
- ): ResponsePromise<PostMenuV3BrandResponse> {
6433
- return this.request("menu", "post_menu_v3_brand", "post", `/menu/v3/brand`, body, options);
6434
- }
6435
-
6436
- /**
6437
- * GET /menu/v3/brand/{id}
6097
+ * POST /menu/v3/draft/brand/{id}/publish
6098
+ *
6099
+ * @param id
6100
+ * @param options - additional request options
6101
+ */
6102
+ post_menu_v3_draft_brand_publish(
6103
+ id: string,
6104
+ options?: RequestOptions
6105
+ ): ResponsePromise<PostMenuV3DraftBrandPublishResponse> {
6106
+ return this.request(
6107
+ "menu",
6108
+ "post_menu_v3_draft_brand_publish",
6109
+ "post",
6110
+ `/menu/v3/draft/brand/${id}/publish`,
6111
+ null,
6112
+ options
6113
+ );
6114
+ }
6115
+
6116
+ /**
6117
+ * POST /menu/v3/draft/brand/{id}/diff/generate
6118
+ *
6119
+ * @param id
6120
+ * @param options - additional request options
6121
+ */
6122
+ post_menu_v3_draft_brand_diff_generate(
6123
+ id: string,
6124
+ options?: RequestOptions
6125
+ ): ResponsePromise<PostMenuV3DraftBrandDiffGenerateResponse> {
6126
+ return this.request(
6127
+ "menu",
6128
+ "post_menu_v3_draft_brand_diff_generate",
6129
+ "post",
6130
+ `/menu/v3/draft/brand/${id}/diff/generate`,
6131
+ null,
6132
+ options
6133
+ );
6134
+ }
6135
+
6136
+ /**
6137
+ * GET /menu/v3/draft/brand/{id}/diffs
6138
+ *
6139
+ * @param id
6140
+ * @param options - additional request options
6141
+ */
6142
+ get_menu_v3_draft_brand_diffs(
6143
+ id: string,
6144
+ options?: {
6145
+ query?: GetMenuV3DraftBrandDiffsQuery;
6146
+ } & RequestOptions
6147
+ ): ResponsePromise<GetMenuV3DraftBrandDiffsResponse> {
6148
+ return this.request(
6149
+ "menu",
6150
+ "get_menu_v3_draft_brand_diffs",
6151
+ "get",
6152
+ `/menu/v3/draft/brand/${id}/diffs`,
6153
+ null,
6154
+ options
6155
+ );
6156
+ }
6157
+
6158
+ /**
6159
+ * POST /menu/v3/draft/brand/{id}/global-diffs/apply
6160
+ *
6161
+ * @param id
6162
+ * @param options - additional request options
6163
+ */
6164
+ post_menu_v3_draft_brand_global_diffs_apply(
6165
+ id: string,
6166
+ options?: {
6167
+ query?: PostMenuV3DraftBrandGlobalDiffsApplyQuery;
6168
+ } & RequestOptions
6169
+ ): ResponsePromise<PostMenuV3DraftBrandGlobalDiffsApplyResponse> {
6170
+ return this.request(
6171
+ "menu",
6172
+ "post_menu_v3_draft_brand_global_diffs_apply",
6173
+ "post",
6174
+ `/menu/v3/draft/brand/${id}/global-diffs/apply`,
6175
+ null,
6176
+ options
6177
+ );
6178
+ }
6179
+
6180
+ /**
6181
+ * POST /menu/v3/brand/{id}/attachment/{name}
6182
+ *
6183
+ * @param id
6184
+ * @param name
6185
+ * @param options - additional request options
6186
+ */
6187
+ post_menu_v3_brand_attachment(
6188
+ id: string,
6189
+ name: string,
6190
+ options?: {
6191
+ query?: PostMenuV3BrandAttachmentQuery;
6192
+ } & RequestOptions
6193
+ ): ResponsePromise<PostMenuV3BrandAttachmentResponse> {
6194
+ return this.request(
6195
+ "menu",
6196
+ "post_menu_v3_brand_attachment",
6197
+ "post",
6198
+ `/menu/v3/brand/${id}/attachment/${name}`,
6199
+ null,
6200
+ options
6201
+ );
6202
+ }
6203
+
6204
+ /**
6205
+ * POST /menu/v3/brand
6206
+ *
6207
+ * @param body
6208
+ * @param options - additional request options
6209
+ */
6210
+ post_menu_v3_brand(
6211
+ body: PostMenuV3BrandBody,
6212
+ options?: {
6213
+ query?: PostMenuV3BrandQuery;
6214
+ } & RequestOptions
6215
+ ): ResponsePromise<PostMenuV3BrandResponse> {
6216
+ return this.request("menu", "post_menu_v3_brand", "post", `/menu/v3/brand`, body, options);
6217
+ }
6218
+
6219
+ /**
6220
+ * GET /menu/v3/brand/{id}
6438
6221
  *
6439
6222
  * @param id
6440
6223
  * @param options - additional request options
@@ -6543,22 +6326,22 @@ export class ServiceClient extends BaseServiceClient {
6543
6326
  }
6544
6327
 
6545
6328
  /**
6546
- * GET /menu/v3/brand/{id}/layouts
6329
+ * GET /menu/v3/brand/{id}/menus
6547
6330
  *
6548
6331
  * @param id
6549
6332
  * @param options - additional request options
6550
6333
  */
6551
- get_menu_v3_brand_layouts(
6334
+ get_menu_v3_brand_menus(
6552
6335
  id: string,
6553
6336
  options?: {
6554
- query?: GetMenuV3BrandLayoutsQuery;
6337
+ query?: GetMenuV3BrandMenusQuery;
6555
6338
  } & RequestOptions
6556
- ): ResponsePromise<GetMenuV3BrandLayoutsResponse> {
6339
+ ): ResponsePromise<GetMenuV3BrandMenusResponse> {
6557
6340
  return this.request(
6558
6341
  "menu",
6559
- "get_menu_v3_brand_layouts",
6342
+ "get_menu_v3_brand_menus",
6560
6343
  "get",
6561
- `/menu/v3/brand/${id}/layouts`,
6344
+ `/menu/v3/brand/${id}/menus`,
6562
6345
  null,
6563
6346
  options
6564
6347
  );
@@ -6653,263 +6436,256 @@ export class ServiceClient extends BaseServiceClient {
6653
6436
  }
6654
6437
 
6655
6438
  /**
6656
- * POST /menu/v3/draft/layout
6439
+ * POST /menu/v3/draft/menu
6657
6440
  *
6658
6441
  * @param body
6659
6442
  * @param options - additional request options
6660
6443
  */
6661
- post_menu_v3_draft_layout(
6662
- body: PostMenuV3DraftLayoutBody,
6444
+ post_menu_v3_draft_menu(
6445
+ body: PostMenuV3DraftMenuBody,
6663
6446
  options?: RequestOptions
6664
- ): ResponsePromise<PostMenuV3DraftLayoutResponse> {
6447
+ ): ResponsePromise<PostMenuV3DraftMenuResponse> {
6665
6448
  return this.request(
6666
6449
  "menu",
6667
- "post_menu_v3_draft_layout",
6450
+ "post_menu_v3_draft_menu",
6668
6451
  "post",
6669
- `/menu/v3/draft/layout`,
6452
+ `/menu/v3/draft/menu`,
6670
6453
  body,
6671
6454
  options
6672
6455
  );
6673
6456
  }
6674
6457
 
6675
6458
  /**
6676
- * GET /menu/v3/draft/layout/{id}
6459
+ * GET /menu/v3/draft/menu/{id}
6677
6460
  *
6678
6461
  * @param id
6679
6462
  * @param options - additional request options
6680
6463
  */
6681
- get_menu_v3_draft_layout(
6464
+ get_menu_v3_draft_menu(
6682
6465
  id: string,
6683
6466
  options?: {
6684
- query?: GetMenuV3DraftLayoutQuery;
6467
+ query?: GetMenuV3DraftMenuQuery;
6685
6468
  } & RequestOptions
6686
- ): ResponsePromise<GetMenuV3DraftLayoutResponse> {
6469
+ ): ResponsePromise<GetMenuV3DraftMenuResponse> {
6687
6470
  return this.request(
6688
6471
  "menu",
6689
- "get_menu_v3_draft_layout",
6472
+ "get_menu_v3_draft_menu",
6690
6473
  "get",
6691
- `/menu/v3/draft/layout/${id}`,
6474
+ `/menu/v3/draft/menu/${id}`,
6692
6475
  null,
6693
6476
  options
6694
6477
  );
6695
6478
  }
6696
6479
 
6697
6480
  /**
6698
- * PATCH /menu/v3/draft/layout/{id}
6481
+ * PATCH /menu/v3/draft/menu/{id}
6699
6482
  *
6700
6483
  * @param id
6701
- * @param body - A partially populated DraftLayoutEntity
6484
+ * @param body - A partially populated DraftMenuEntity
6702
6485
  * @param options - additional request options
6703
6486
  */
6704
- patch_menu_v3_draft_layout(
6487
+ patch_menu_v3_draft_menu(
6705
6488
  id: string,
6706
- body: PatchMenuV3DraftLayoutBody,
6489
+ body: PatchMenuV3DraftMenuBody,
6707
6490
  options?: RequestOptions
6708
- ): ResponsePromise<PatchMenuV3DraftLayoutResponse> {
6491
+ ): ResponsePromise<PatchMenuV3DraftMenuResponse> {
6709
6492
  return this.request(
6710
6493
  "menu",
6711
- "patch_menu_v3_draft_layout",
6494
+ "patch_menu_v3_draft_menu",
6712
6495
  "patch",
6713
- `/menu/v3/draft/layout/${id}`,
6496
+ `/menu/v3/draft/menu/${id}`,
6714
6497
  body,
6715
6498
  options
6716
6499
  );
6717
6500
  }
6718
6501
 
6719
6502
  /**
6720
- * DELETE /menu/v3/draft/layout/{id}
6503
+ * DELETE /menu/v3/draft/menu/{id}
6721
6504
  *
6722
6505
  * @param id
6723
6506
  * @param options - additional request options
6724
6507
  */
6725
- delete_menu_v3_draft_layout(
6508
+ delete_menu_v3_draft_menu(
6726
6509
  id: string,
6727
6510
  options?: RequestOptions
6728
- ): ResponsePromise<DeleteMenuV3DraftLayoutResponse> {
6511
+ ): ResponsePromise<DeleteMenuV3DraftMenuResponse> {
6729
6512
  return this.request(
6730
6513
  "menu",
6731
- "delete_menu_v3_draft_layout",
6514
+ "delete_menu_v3_draft_menu",
6732
6515
  "delete",
6733
- `/menu/v3/draft/layout/${id}`,
6516
+ `/menu/v3/draft/menu/${id}`,
6734
6517
  null,
6735
6518
  options
6736
6519
  );
6737
6520
  }
6738
6521
 
6739
6522
  /**
6740
- * GET /menu/v3/draft/layouts
6523
+ * GET /menu/v3/draft/menus
6741
6524
  *
6742
6525
  * @param options - additional request options
6743
6526
  */
6744
- get_menu_v3_draft_layouts(
6527
+ get_menu_v3_draft_menus(
6745
6528
  options?: {
6746
- query?: GetMenuV3DraftLayoutsQuery;
6529
+ query?: GetMenuV3DraftMenusQuery;
6747
6530
  } & RequestOptions
6748
- ): ResponsePromise<GetMenuV3DraftLayoutsResponse> {
6531
+ ): ResponsePromise<GetMenuV3DraftMenusResponse> {
6749
6532
  return this.request(
6750
6533
  "menu",
6751
- "get_menu_v3_draft_layouts",
6534
+ "get_menu_v3_draft_menus",
6752
6535
  "get",
6753
- `/menu/v3/draft/layouts`,
6536
+ `/menu/v3/draft/menus`,
6754
6537
  null,
6755
6538
  options
6756
6539
  );
6757
6540
  }
6758
6541
 
6759
6542
  /**
6760
- * POST /menu/v3/draft/layouts
6543
+ * POST /menu/v3/draft/menus
6761
6544
  *
6762
6545
  * @param body
6763
6546
  * @param options - additional request options
6764
6547
  */
6765
- post_menu_v3_draft_layouts(
6766
- body: PostMenuV3DraftLayoutsBody,
6548
+ post_menu_v3_draft_menus(
6549
+ body: PostMenuV3DraftMenusBody,
6767
6550
  options?: RequestOptions
6768
- ): ResponsePromise<PostMenuV3DraftLayoutsResponse> {
6551
+ ): ResponsePromise<PostMenuV3DraftMenusResponse> {
6769
6552
  return this.request(
6770
6553
  "menu",
6771
- "post_menu_v3_draft_layouts",
6554
+ "post_menu_v3_draft_menus",
6772
6555
  "post",
6773
- `/menu/v3/draft/layouts`,
6556
+ `/menu/v3/draft/menus`,
6774
6557
  body,
6775
6558
  options
6776
6559
  );
6777
6560
  }
6778
6561
 
6779
6562
  /**
6780
- * GET /menu/v3/draft/layouts/count
6563
+ * GET /menu/v3/draft/menus/count
6781
6564
  *
6782
6565
  * @param options - additional request options
6783
6566
  */
6784
- get_menu_v3_draft_layouts_count(
6567
+ get_menu_v3_draft_menus_count(
6785
6568
  options?: {
6786
- query?: GetMenuV3DraftLayoutsCountQuery;
6569
+ query?: GetMenuV3DraftMenusCountQuery;
6787
6570
  } & RequestOptions
6788
- ): ResponsePromise<GetMenuV3DraftLayoutsCountResponse> {
6571
+ ): ResponsePromise<GetMenuV3DraftMenusCountResponse> {
6789
6572
  return this.request(
6790
6573
  "menu",
6791
- "get_menu_v3_draft_layouts_count",
6574
+ "get_menu_v3_draft_menus_count",
6792
6575
  "get",
6793
- `/menu/v3/draft/layouts/count`,
6576
+ `/menu/v3/draft/menus/count`,
6794
6577
  null,
6795
6578
  options
6796
6579
  );
6797
6580
  }
6798
6581
 
6799
6582
  /**
6800
- * GET /menu/v3/draft/layout/{id}/categories
6583
+ * GET /menu/v3/draft/menu/{id}/categories
6801
6584
  *
6802
6585
  * @param id
6803
6586
  * @param options - additional request options
6804
6587
  */
6805
- get_menu_v3_draft_layout_categories(
6588
+ get_menu_v3_draft_menu_categories(
6806
6589
  id: string,
6807
6590
  options?: {
6808
- query?: GetMenuV3DraftLayoutCategoriesQuery;
6591
+ query?: GetMenuV3DraftMenuCategoriesQuery;
6809
6592
  } & RequestOptions
6810
- ): ResponsePromise<GetMenuV3DraftLayoutCategoriesResponse> {
6593
+ ): ResponsePromise<GetMenuV3DraftMenuCategoriesResponse> {
6811
6594
  return this.request(
6812
6595
  "menu",
6813
- "get_menu_v3_draft_layout_categories",
6596
+ "get_menu_v3_draft_menu_categories",
6814
6597
  "get",
6815
- `/menu/v3/draft/layout/${id}/categories`,
6598
+ `/menu/v3/draft/menu/${id}/categories`,
6816
6599
  null,
6817
6600
  options
6818
6601
  );
6819
6602
  }
6820
6603
 
6821
6604
  /**
6822
- * POST /menu/v3/draft/layout/{id}/publish
6605
+ * POST /menu/v3/draft/menu/{id}/publish
6823
6606
  *
6824
6607
  * @param id
6825
6608
  * @param options - additional request options
6826
6609
  */
6827
- post_menu_v3_draft_layout_publish(
6610
+ post_menu_v3_draft_menu_publish(
6828
6611
  id: string,
6829
6612
  options?: RequestOptions
6830
- ): ResponsePromise<PostMenuV3DraftLayoutPublishResponse> {
6613
+ ): ResponsePromise<PostMenuV3DraftMenuPublishResponse> {
6831
6614
  return this.request(
6832
6615
  "menu",
6833
- "post_menu_v3_draft_layout_publish",
6616
+ "post_menu_v3_draft_menu_publish",
6834
6617
  "post",
6835
- `/menu/v3/draft/layout/${id}/publish`,
6618
+ `/menu/v3/draft/menu/${id}/publish`,
6836
6619
  null,
6837
6620
  options
6838
6621
  );
6839
6622
  }
6840
6623
 
6841
6624
  /**
6842
- * GET /menu/v3/layout/{id}
6625
+ * GET /menu/v3/menu/{id}
6843
6626
  *
6844
6627
  * @param id
6845
6628
  * @param options - additional request options
6846
6629
  */
6847
- get_menu_v3_layout(
6630
+ get_menu_v3_menu(
6848
6631
  id: string,
6849
6632
  options?: {
6850
- query?: GetMenuV3LayoutQuery;
6633
+ query?: GetMenuV3MenuQuery;
6851
6634
  } & RequestOptions
6852
- ): ResponsePromise<GetMenuV3LayoutResponse> {
6853
- return this.request(
6854
- "menu",
6855
- "get_menu_v3_layout",
6856
- "get",
6857
- `/menu/v3/layout/${id}`,
6858
- null,
6859
- options
6860
- );
6635
+ ): ResponsePromise<GetMenuV3MenuResponse> {
6636
+ return this.request("menu", "get_menu_v3_menu", "get", `/menu/v3/menu/${id}`, null, options);
6861
6637
  }
6862
6638
 
6863
6639
  /**
6864
- * GET /menu/v3/layouts
6640
+ * GET /menu/v3/menus
6865
6641
  *
6866
6642
  * @param options - additional request options
6867
6643
  */
6868
- get_menu_v3_layouts(
6644
+ get_menu_v3_menus(
6869
6645
  options?: {
6870
- query?: GetMenuV3LayoutsQuery;
6646
+ query?: GetMenuV3MenusQuery;
6871
6647
  } & RequestOptions
6872
- ): ResponsePromise<GetMenuV3LayoutsResponse> {
6873
- return this.request("menu", "get_menu_v3_layouts", "get", `/menu/v3/layouts`, null, options);
6648
+ ): ResponsePromise<GetMenuV3MenusResponse> {
6649
+ return this.request("menu", "get_menu_v3_menus", "get", `/menu/v3/menus`, null, options);
6874
6650
  }
6875
6651
 
6876
6652
  /**
6877
- * GET /menu/v3/layouts/count
6653
+ * GET /menu/v3/menus/count
6878
6654
  *
6879
6655
  * @param options - additional request options
6880
6656
  */
6881
- get_menu_v3_layouts_count(
6657
+ get_menu_v3_menus_count(
6882
6658
  options?: {
6883
- query?: GetMenuV3LayoutsCountQuery;
6659
+ query?: GetMenuV3MenusCountQuery;
6884
6660
  } & RequestOptions
6885
- ): ResponsePromise<GetMenuV3LayoutsCountResponse> {
6661
+ ): ResponsePromise<GetMenuV3MenusCountResponse> {
6886
6662
  return this.request(
6887
6663
  "menu",
6888
- "get_menu_v3_layouts_count",
6664
+ "get_menu_v3_menus_count",
6889
6665
  "get",
6890
- `/menu/v3/layouts/count`,
6666
+ `/menu/v3/menus/count`,
6891
6667
  null,
6892
6668
  options
6893
6669
  );
6894
6670
  }
6895
6671
 
6896
6672
  /**
6897
- * GET /menu/v3/layout/{id}/categories
6673
+ * GET /menu/v3/menu/{id}/categories
6898
6674
  *
6899
6675
  * @param id
6900
6676
  * @param options - additional request options
6901
6677
  */
6902
- get_menu_v3_layout_categories(
6678
+ get_menu_v3_menu_categories(
6903
6679
  id: string,
6904
6680
  options?: {
6905
- query?: GetMenuV3LayoutCategoriesQuery;
6681
+ query?: GetMenuV3MenuCategoriesQuery;
6906
6682
  } & RequestOptions
6907
- ): ResponsePromise<GetMenuV3LayoutCategoriesResponse> {
6683
+ ): ResponsePromise<GetMenuV3MenuCategoriesResponse> {
6908
6684
  return this.request(
6909
6685
  "menu",
6910
- "get_menu_v3_layout_categories",
6686
+ "get_menu_v3_menu_categories",
6911
6687
  "get",
6912
- `/menu/v3/layout/${id}/categories`,
6688
+ `/menu/v3/menu/${id}/categories`,
6913
6689
  null,
6914
6690
  options
6915
6691
  );
@@ -7020,20 +6796,20 @@ export class ServiceClient extends BaseServiceClient {
7020
6796
  }
7021
6797
 
7022
6798
  /**
7023
- * POST /menu/v3/draft/categorys
6799
+ * POST /menu/v3/draft/categories
7024
6800
  *
7025
6801
  * @param body
7026
6802
  * @param options - additional request options
7027
6803
  */
7028
- post_menu_v3_draft_categorys(
7029
- body: PostMenuV3DraftCategorysBody,
6804
+ post_menu_v3_draft_categories(
6805
+ body: PostMenuV3DraftCategoriesBody,
7030
6806
  options?: RequestOptions
7031
- ): ResponsePromise<PostMenuV3DraftCategorysResponse> {
6807
+ ): ResponsePromise<PostMenuV3DraftCategoriesResponse> {
7032
6808
  return this.request(
7033
6809
  "menu",
7034
- "post_menu_v3_draft_categorys",
6810
+ "post_menu_v3_draft_categories",
7035
6811
  "post",
7036
- `/menu/v3/draft/categorys`,
6812
+ `/menu/v3/draft/categories`,
7037
6813
  body,
7038
6814
  options
7039
6815
  );
@@ -8327,6 +8103,88 @@ export class ServiceClient extends BaseServiceClient {
8327
8103
  );
8328
8104
  }
8329
8105
 
8106
+ /**
8107
+ * POST /menu/v3/integrations/transltr/import
8108
+ *
8109
+ * @param options - additional request options
8110
+ */
8111
+ post_menu_v3_integrations_transltr_import(
8112
+ options?: {
8113
+ query?: PostMenuV3IntegrationsTransltrImportQuery;
8114
+ } & RequestOptions
8115
+ ): ResponsePromise<PostMenuV3IntegrationsTransltrImportResponse> {
8116
+ return this.request(
8117
+ "menu",
8118
+ "post_menu_v3_integrations_transltr_import",
8119
+ "post",
8120
+ `/menu/v3/integrations/transltr/import`,
8121
+ null,
8122
+ options
8123
+ );
8124
+ }
8125
+
8126
+ /**
8127
+ * GET /menu/v3/global-diff/{id}
8128
+ *
8129
+ * @param id
8130
+ * @param options - additional request options
8131
+ */
8132
+ get_menu_v3_global_diff(
8133
+ id: string,
8134
+ options?: {
8135
+ query?: GetMenuV3GlobalDiffQuery;
8136
+ } & RequestOptions
8137
+ ): ResponsePromise<GetMenuV3GlobalDiffResponse> {
8138
+ return this.request(
8139
+ "menu",
8140
+ "get_menu_v3_global_diff",
8141
+ "get",
8142
+ `/menu/v3/global-diff/${id}`,
8143
+ null,
8144
+ options
8145
+ );
8146
+ }
8147
+
8148
+ /**
8149
+ * GET /menu/v3/global-diffs
8150
+ *
8151
+ * @param options - additional request options
8152
+ */
8153
+ get_menu_v3_global_diffs(
8154
+ options?: {
8155
+ query?: GetMenuV3GlobalDiffsQuery;
8156
+ } & RequestOptions
8157
+ ): ResponsePromise<GetMenuV3GlobalDiffsResponse> {
8158
+ return this.request(
8159
+ "menu",
8160
+ "get_menu_v3_global_diffs",
8161
+ "get",
8162
+ `/menu/v3/global-diffs`,
8163
+ null,
8164
+ options
8165
+ );
8166
+ }
8167
+
8168
+ /**
8169
+ * GET /menu/v3/global-diffs/count
8170
+ *
8171
+ * @param options - additional request options
8172
+ */
8173
+ get_menu_v3_global_diffs_count(
8174
+ options?: {
8175
+ query?: GetMenuV3GlobalDiffsCountQuery;
8176
+ } & RequestOptions
8177
+ ): ResponsePromise<GetMenuV3GlobalDiffsCountResponse> {
8178
+ return this.request(
8179
+ "menu",
8180
+ "get_menu_v3_global_diffs_count",
8181
+ "get",
8182
+ `/menu/v3/global-diffs/count`,
8183
+ null,
8184
+ options
8185
+ );
8186
+ }
8187
+
8330
8188
  /**
8331
8189
  * GET /notification - Get all notifications
8332
8190
  *
@@ -8772,239 +8630,56 @@ export class ServiceClient extends BaseServiceClient {
8772
8630
  }
8773
8631
 
8774
8632
  /**
8775
- * POST /permission - Creates a new permission for a role or a user
8776
- *
8777
- * @param body
8778
- * @param options - additional request options
8779
- */
8780
- post_permission(
8781
- body: PostPermissionBody,
8782
- options?: RequestOptions
8783
- ): ResponsePromise<PostPermissionResponse> {
8784
- return this.request("permission", "post_permission", "post", `/permission`, body, options);
8785
- }
8786
-
8787
- /**
8788
- * DELETE /permission/{id} - Delete a permission from a role or a user
8633
+ * GET /delivery/{id}/order/{order_id} - get delivery for order
8789
8634
  *
8790
- * @param id - permission
8635
+ * @param id - delivery provider id
8636
+ * @param order_id - order id
8791
8637
  * @param options - additional request options
8792
8638
  */
8793
- delete_permission(
8639
+ get_delivery_order(
8794
8640
  id: string,
8795
- options?: RequestOptions
8796
- ): ResponsePromise<DeletePermissionResponse> {
8797
- return this.request(
8798
- "permission",
8799
- "delete_permission",
8800
- "delete",
8801
- `/permission/${id}`,
8802
- null,
8803
- options
8804
- );
8805
- }
8806
-
8807
- /**
8808
- * GET /permission/role - Get Roles, with pagination and filters
8809
- *
8810
- * @param options - additional request options
8811
- */
8812
- get_permission_role(
8813
- options: {
8814
- query: GetPermissionRoleQuery;
8641
+ order_id: string,
8642
+ options?: {
8643
+ query?: GetDeliveryOrderQuery;
8815
8644
  } & RequestOptions
8816
- ): ResponsePromise<GetPermissionRoleResponse> {
8645
+ ): ResponsePromise<GetDeliveryOrderResponse> {
8817
8646
  return this.request(
8818
- "permission",
8819
- "get_permission_role",
8647
+ "delivery",
8648
+ "get_delivery_order",
8820
8649
  "get",
8821
- `/permission/role`,
8650
+ `/delivery/${id}/order/${order_id}`,
8822
8651
  null,
8823
8652
  options
8824
8653
  );
8825
8654
  }
8826
8655
 
8827
8656
  /**
8828
- * POST /permission/role - Create a new role
8829
- *
8830
- * @param body
8831
- * @param options - additional request options
8832
- */
8833
- post_permission_role(
8834
- body: PostPermissionRoleBody,
8835
- options?: RequestOptions
8836
- ): ResponsePromise<PostPermissionRoleResponse> {
8837
- return this.request(
8838
- "permission",
8839
- "post_permission_role",
8840
- "post",
8841
- `/permission/role`,
8842
- body,
8843
- options
8844
- );
8845
- }
8846
-
8847
- /**
8848
- * PATCH /permission/role/{id} - Update a role
8657
+ * GET /delivery/{id} - Get all Deliveries for delivery provider
8849
8658
  *
8850
- * @param id - role
8851
- * @param body
8659
+ * @param id - delivery provider id
8852
8660
  * @param options - additional request options
8853
8661
  */
8854
- patch_permission_role(
8662
+ get_delivery(
8855
8663
  id: string,
8856
- body: PatchPermissionRoleBody,
8857
- options?: RequestOptions
8858
- ): ResponsePromise<PatchPermissionRoleResponse> {
8859
- return this.request(
8860
- "permission",
8861
- "patch_permission_role",
8862
- "patch",
8863
- `/permission/role/${id}`,
8864
- body,
8865
- options
8866
- );
8867
- }
8868
-
8869
- /**
8870
- * GET /permission/recipient/{recipient_id} - Get permissions for a recipient(role or user id)
8871
- *
8872
- * @param recipient_id - TODO: add parameter to swagger.json
8873
- * @param options - additional request options
8874
- */
8875
- get_permission_recipient(
8876
- recipient_id: string,
8877
8664
  options?: {
8878
- query?: GetPermissionRecipientQuery;
8665
+ query?: GetDeliveryQuery;
8879
8666
  } & RequestOptions
8880
- ): ResponsePromise<GetPermissionRecipientResponse> {
8881
- return this.request(
8882
- "permission",
8883
- "get_permission_recipient",
8884
- "get",
8885
- `/permission/recipient/${recipient_id}`,
8886
- null,
8887
- options
8888
- );
8667
+ ): ResponsePromise<GetDeliveryResponse> {
8668
+ return this.request("delivery", "get_delivery", "get", `/delivery/${id}`, null, options);
8889
8669
  }
8890
8670
 
8891
8671
  /**
8892
- * GET /permission/role/user/{user_id} - Get a list of role assignments for a user
8672
+ * POST /delivery/{id}/availability - Get delivery availability for provided brand and coordinates
8893
8673
  *
8894
- * @param user_id - Id of a user
8674
+ * @param id - delivery provider id
8675
+ * @param body - Order object that needs to be created
8895
8676
  * @param options - additional request options
8896
8677
  */
8897
- get_permission_role_user(
8898
- user_id: string,
8899
- options?: {
8900
- query?: GetPermissionRoleUserQuery;
8901
- } & RequestOptions
8902
- ): ResponsePromise<GetPermissionRoleUserResponse> {
8903
- return this.request(
8904
- "permission",
8905
- "get_permission_role_user",
8906
- "get",
8907
- `/permission/role/user/${user_id}`,
8908
- null,
8909
- options
8910
- );
8911
- }
8912
-
8913
- /**
8914
- * POST /permission/role/user/{user_id} - Assign a role to a user
8915
- *
8916
- * @param user_id - Id of a user
8917
- * @param body
8918
- * @param options - additional request options
8919
- */
8920
- post_permission_role_user(
8921
- user_id: string,
8922
- body: PostPermissionRoleUserBody,
8923
- options?: RequestOptions
8924
- ): ResponsePromise<PostPermissionRoleUserResponse> {
8925
- return this.request(
8926
- "permission",
8927
- "post_permission_role_user",
8928
- "post",
8929
- `/permission/role/user/${user_id}`,
8930
- body,
8931
- options
8932
- );
8933
- }
8934
-
8935
- /**
8936
- * DELETE /permission/role/user/{user_id} - Remove a role from a user
8937
- *
8938
- * @param user_id - Id of a user
8939
- * @param body
8940
- * @param options - additional request options
8941
- */
8942
- delete_permission_role_user(
8943
- user_id: string,
8944
- body: DeletePermissionRoleUserBody,
8945
- options?: RequestOptions
8946
- ): ResponsePromise<DeletePermissionRoleUserResponse> {
8947
- return this.request(
8948
- "permission",
8949
- "delete_permission_role_user",
8950
- "delete",
8951
- `/permission/role/user/${user_id}`,
8952
- body,
8953
- options
8954
- );
8955
- }
8956
-
8957
- /**
8958
- * GET /delivery/{id}/order/{order_id} - get delivery for order
8959
- *
8960
- * @param id - delivery provider id
8961
- * @param order_id - order id
8962
- * @param options - additional request options
8963
- */
8964
- get_delivery_order(
8965
- id: string,
8966
- order_id: string,
8967
- options?: {
8968
- query?: GetDeliveryOrderQuery;
8969
- } & RequestOptions
8970
- ): ResponsePromise<GetDeliveryOrderResponse> {
8971
- return this.request(
8972
- "delivery",
8973
- "get_delivery_order",
8974
- "get",
8975
- `/delivery/${id}/order/${order_id}`,
8976
- null,
8977
- options
8978
- );
8979
- }
8980
-
8981
- /**
8982
- * GET /delivery/{id} - Get all Deliveries for delivery provider
8983
- *
8984
- * @param id - delivery provider id
8985
- * @param options - additional request options
8986
- */
8987
- get_delivery(
8988
- id: string,
8989
- options?: {
8990
- query?: GetDeliveryQuery;
8991
- } & RequestOptions
8992
- ): ResponsePromise<GetDeliveryResponse> {
8993
- return this.request("delivery", "get_delivery", "get", `/delivery/${id}`, null, options);
8994
- }
8995
-
8996
- /**
8997
- * POST /delivery/{id}/availability - Get delivery availability for provided brand and coordinates
8998
- *
8999
- * @param id - delivery provider id
9000
- * @param body - Order object that needs to be created
9001
- * @param options - additional request options
9002
- */
9003
- post_delivery_availability(
9004
- id: string,
9005
- body: PostDeliveryAvailabilityBody,
9006
- options?: RequestOptions
9007
- ): ResponsePromise<PostDeliveryAvailabilityResponse> {
8678
+ post_delivery_availability(
8679
+ id: string,
8680
+ body: PostDeliveryAvailabilityBody,
8681
+ options?: RequestOptions
8682
+ ): ResponsePromise<PostDeliveryAvailabilityResponse> {
9008
8683
  return this.request(
9009
8684
  "delivery",
9010
8685
  "post_delivery_availability",
@@ -9014,460 +8689,4 @@ export class ServiceClient extends BaseServiceClient {
9014
8689
  options
9015
8690
  );
9016
8691
  }
9017
-
9018
- /**
9019
- * POST /loyalty/{id}/enroll/{user_id} - Enroll logged in user in Loyalty program
9020
- *
9021
- * @param id - Loyalty Provider id
9022
- * @param user_id - CompassDigital User id
9023
- * @param options - additional request options
9024
- */
9025
- post_loyalty_enroll(
9026
- id: string,
9027
- user_id: string,
9028
- options?: {
9029
- query?: PostLoyaltyEnrollQuery;
9030
- } & RequestOptions
9031
- ): ResponsePromise<PostLoyaltyEnrollResponse> {
9032
- return this.request(
9033
- "loyalty",
9034
- "post_loyalty_enroll",
9035
- "post",
9036
- `/loyalty/${id}/enroll/${user_id}`,
9037
- null,
9038
- options
9039
- );
9040
- }
9041
-
9042
- /**
9043
- * GET /loyalty/{id}/points - Get potential points user could earn from certain event in Loyalty program
9044
- *
9045
- * @param id - Loyalty Provider id
9046
- * @param options - additional request options
9047
- */
9048
- get_loyalty_points(
9049
- id: string,
9050
- options: {
9051
- query: GetLoyaltyPointsQuery;
9052
- } & RequestOptions
9053
- ): ResponsePromise<GetLoyaltyPointsResponse> {
9054
- return this.request(
9055
- "loyalty",
9056
- "get_loyalty_points",
9057
- "get",
9058
- `/loyalty/${id}/points`,
9059
- null,
9060
- options
9061
- );
9062
- }
9063
-
9064
- /**
9065
- * GET /loyalty/{id}/offers/{user_id} - Get offers for the logged in user
9066
- *
9067
- * @param id - Loyalty Provider id
9068
- * @param user_id - CompassDigital User id
9069
- * @param options - additional request options
9070
- */
9071
- get_loyalty_offers(
9072
- id: string,
9073
- user_id: string,
9074
- options?: {
9075
- query?: GetLoyaltyOffersQuery;
9076
- } & RequestOptions
9077
- ): ResponsePromise<GetLoyaltyOffersResponse> {
9078
- return this.request(
9079
- "loyalty",
9080
- "get_loyalty_offers",
9081
- "get",
9082
- `/loyalty/${id}/offers/${user_id}`,
9083
- null,
9084
- options
9085
- );
9086
- }
9087
-
9088
- /**
9089
- * GET /loyalty/{id}/enrollmentstatus/{user_id} - Get enrollment status for logged in user
9090
- *
9091
- * @param id - Loyalty Provider id
9092
- * @param user_id - CompassDigital User id
9093
- * @param options - additional request options
9094
- */
9095
- get_loyalty_enrollmentstatus(
9096
- id: string,
9097
- user_id: string,
9098
- options?: {
9099
- query?: GetLoyaltyEnrollmentstatusQuery;
9100
- } & RequestOptions
9101
- ): ResponsePromise<GetLoyaltyEnrollmentstatusResponse> {
9102
- return this.request(
9103
- "loyalty",
9104
- "get_loyalty_enrollmentstatus",
9105
- "get",
9106
- `/loyalty/${id}/enrollmentstatus/${user_id}`,
9107
- null,
9108
- options
9109
- );
9110
- }
9111
-
9112
- /**
9113
- * GET /loyalty/{id}/balance/{user_id} - Get loyalty point balance for logged in user
9114
- *
9115
- * @param id - Loyalty Provider id
9116
- * @param user_id - CompassDigital User id
9117
- * @param options - additional request options
9118
- */
9119
- get_loyalty_balance(
9120
- id: string,
9121
- user_id: string,
9122
- options?: {
9123
- query?: GetLoyaltyBalanceQuery;
9124
- } & RequestOptions
9125
- ): ResponsePromise<GetLoyaltyBalanceResponse> {
9126
- return this.request(
9127
- "loyalty",
9128
- "get_loyalty_balance",
9129
- "get",
9130
- `/loyalty/${id}/balance/${user_id}`,
9131
- null,
9132
- options
9133
- );
9134
- }
9135
-
9136
- /**
9137
- * GET /loyalty/{id}/opportunities/{user_id} - Get earning opportunities for the logged in user
9138
- *
9139
- * @param id - Loyalty Provider id
9140
- * @param user_id - CompassDigital User id
9141
- * @param options - additional request options
9142
- */
9143
- get_loyalty_opportunities(
9144
- id: string,
9145
- user_id: string,
9146
- options?: {
9147
- query?: GetLoyaltyOpportunitiesQuery;
9148
- } & RequestOptions
9149
- ): ResponsePromise<GetLoyaltyOpportunitiesResponse> {
9150
- return this.request(
9151
- "loyalty",
9152
- "get_loyalty_opportunities",
9153
- "get",
9154
- `/loyalty/${id}/opportunities/${user_id}`,
9155
- null,
9156
- options
9157
- );
9158
- }
9159
-
9160
- /**
9161
- * POST /loyalty/{id}/opportunities/{user_id} - Record an event for the logged in user
9162
- *
9163
- * @param id - Loyalty Provider id
9164
- * @param user_id - CompassDigital User id
9165
- * @param options - additional request options
9166
- */
9167
- post_loyalty_opportunities(
9168
- id: string,
9169
- user_id: string,
9170
- options: {
9171
- query: PostLoyaltyOpportunitiesQuery;
9172
- } & RequestOptions
9173
- ): ResponsePromise<PostLoyaltyOpportunitiesResponse> {
9174
- return this.request(
9175
- "loyalty",
9176
- "post_loyalty_opportunities",
9177
- "post",
9178
- `/loyalty/${id}/opportunities/${user_id}`,
9179
- null,
9180
- options
9181
- );
9182
- }
9183
-
9184
- /**
9185
- * GET /loyalty/{id}/rewards/{user_id} - Get rewards available for the logged in user
9186
- *
9187
- * @param id - Loyalty Provider id
9188
- * @param user_id - CompassDigital User id
9189
- * @param options - additional request options
9190
- */
9191
- get_loyalty_rewards(
9192
- id: string,
9193
- user_id: string,
9194
- options?: {
9195
- query?: GetLoyaltyRewardsQuery;
9196
- } & RequestOptions
9197
- ): ResponsePromise<GetLoyaltyRewardsResponse> {
9198
- return this.request(
9199
- "loyalty",
9200
- "get_loyalty_rewards",
9201
- "get",
9202
- `/loyalty/${id}/rewards/${user_id}`,
9203
- null,
9204
- options
9205
- );
9206
- }
9207
-
9208
- /**
9209
- * GET /loyalty/{id}/coupons/{user_id} - Get coupons available for the logged in user
9210
- *
9211
- * @param id - Loyalty Provider id
9212
- * @param user_id - CompassDigital User id
9213
- * @param options - additional request options
9214
- */
9215
- get_loyalty_coupons(
9216
- id: string,
9217
- user_id: string,
9218
- options?: {
9219
- query?: GetLoyaltyCouponsQuery;
9220
- } & RequestOptions
9221
- ): ResponsePromise<GetLoyaltyCouponsResponse> {
9222
- return this.request(
9223
- "loyalty",
9224
- "get_loyalty_coupons",
9225
- "get",
9226
- `/loyalty/${id}/coupons/${user_id}`,
9227
- null,
9228
- options
9229
- );
9230
- }
9231
-
9232
- /**
9233
- * GET /loyalty/{id}/orderpoints/{user_id} - Get potential loyalty point points for an order based on amount.
9234
- *
9235
- * @param id - Loyalty Provider id
9236
- * @param user_id - CompassDigital User id
9237
- * @param options - additional request options
9238
- */
9239
- get_loyalty_orderpoints(
9240
- id: string,
9241
- user_id: string,
9242
- options: {
9243
- query: GetLoyaltyOrderpointsQuery;
9244
- } & RequestOptions
9245
- ): ResponsePromise<GetLoyaltyOrderpointsResponse> {
9246
- return this.request(
9247
- "loyalty",
9248
- "get_loyalty_orderpoints",
9249
- "get",
9250
- `/loyalty/${id}/orderpoints/${user_id}`,
9251
- null,
9252
- options
9253
- );
9254
- }
9255
-
9256
- /**
9257
- * POST /loyalty/{id}/orderpoints/{user_id} - Get potential loyalty point points for a order based on amount and items
9258
- *
9259
- * @param id - Loyalty Provider id
9260
- * @param user_id - CompassDigital User id
9261
- * @param body
9262
- * @param options - additional request options
9263
- */
9264
- post_loyalty_orderpoints(
9265
- id: string,
9266
- user_id: string,
9267
- body: PostLoyaltyOrderpointsBody,
9268
- options?: RequestOptions
9269
- ): ResponsePromise<PostLoyaltyOrderpointsResponse> {
9270
- return this.request(
9271
- "loyalty",
9272
- "post_loyalty_orderpoints",
9273
- "post",
9274
- `/loyalty/${id}/orderpoints/${user_id}`,
9275
- body,
9276
- options
9277
- );
9278
- }
9279
-
9280
- /**
9281
- * POST /loyalty/{id}/purchase/{user_id} - Record purchase event
9282
- *
9283
- * @param id - Loyalty Provider id
9284
- * @param user_id - CompassDigital User id
9285
- * @param body
9286
- * @param options - additional request options
9287
- */
9288
- post_loyalty_purchase(
9289
- id: string,
9290
- user_id: string,
9291
- body: PostLoyaltyPurchaseBody,
9292
- options?: {
9293
- query?: PostLoyaltyPurchaseQuery;
9294
- } & RequestOptions
9295
- ): ResponsePromise<PostLoyaltyPurchaseResponse> {
9296
- return this.request(
9297
- "loyalty",
9298
- "post_loyalty_purchase",
9299
- "post",
9300
- `/loyalty/${id}/purchase/${user_id}`,
9301
- body,
9302
- options
9303
- );
9304
- }
9305
-
9306
- /**
9307
- * POST /loyalty/{id}/buyreward/{user_id} - Redeem rewards to coupons
9308
- *
9309
- * @param id - Loyalty Provider id
9310
- * @param user_id - CompassDigital User id
9311
- * @param body
9312
- * @param options - additional request options
9313
- */
9314
- post_loyalty_buyreward(
9315
- id: string,
9316
- user_id: string,
9317
- body: PostLoyaltyBuyrewardBody,
9318
- options?: {
9319
- query?: PostLoyaltyBuyrewardQuery;
9320
- } & RequestOptions
9321
- ): ResponsePromise<PostLoyaltyBuyrewardResponse> {
9322
- return this.request(
9323
- "loyalty",
9324
- "post_loyalty_buyreward",
9325
- "post",
9326
- `/loyalty/${id}/buyreward/${user_id}`,
9327
- body,
9328
- options
9329
- );
9330
- }
9331
-
9332
- /**
9333
- * GET /loyalty/{id}/history/{user_id} - Get history of loyalty transactions for user
9334
- *
9335
- * @param id - Loyalty Provider id
9336
- * @param user_id - CompassDigital User id
9337
- * @param options - additional request options
9338
- */
9339
- get_loyalty_history(
9340
- id: string,
9341
- user_id: string,
9342
- options?: {
9343
- query?: GetLoyaltyHistoryQuery;
9344
- } & RequestOptions
9345
- ): ResponsePromise<GetLoyaltyHistoryResponse> {
9346
- return this.request(
9347
- "loyalty",
9348
- "get_loyalty_history",
9349
- "get",
9350
- `/loyalty/${id}/history/${user_id}`,
9351
- null,
9352
- options
9353
- );
9354
- }
9355
-
9356
- /**
9357
- * GET /loyalty/{id}/coupon/{user_id}/{coupon_id} - get coupon's information
9358
- *
9359
- * @param id - Loyalty Provider id
9360
- * @param user_id - CompassDigital User id
9361
- * @param coupon_id - Coupon code to get coupon information
9362
- * @param options - additional request options
9363
- */
9364
- get_loyalty_coupon(
9365
- id: string,
9366
- user_id: string,
9367
- coupon_id: string,
9368
- options?: {
9369
- query?: GetLoyaltyCouponQuery;
9370
- } & RequestOptions
9371
- ): ResponsePromise<GetLoyaltyCouponResponse> {
9372
- return this.request(
9373
- "loyalty",
9374
- "get_loyalty_coupon",
9375
- "get",
9376
- `/loyalty/${id}/coupon/${user_id}/${coupon_id}`,
9377
- null,
9378
- options
9379
- );
9380
- }
9381
-
9382
- /**
9383
- * PATCH /loyalty/{id}/coupon/{user_id}/{coupon_id} - Update coupon's status
9384
- *
9385
- * @param id - Loyalty Provider id
9386
- * @param user_id - CompassDigital User id
9387
- * @param coupon_id - Coupon code to update
9388
- * @param body
9389
- * @param options - additional request options
9390
- */
9391
- patch_loyalty_coupon(
9392
- id: string,
9393
- user_id: string,
9394
- coupon_id: string,
9395
- body: PatchLoyaltyCouponBody,
9396
- options?: RequestOptions
9397
- ): ResponsePromise<PatchLoyaltyCouponResponse> {
9398
- return this.request(
9399
- "loyalty",
9400
- "patch_loyalty_coupon",
9401
- "patch",
9402
- `/loyalty/${id}/coupon/${user_id}/${coupon_id}`,
9403
- body,
9404
- options
9405
- );
9406
- }
9407
-
9408
- /**
9409
- * GET /loyalty/{id}/search - Search CDL user id by internal 500friends id
9410
- *
9411
- * @param id - Loyalty Provider id
9412
- * @param options - additional request options
9413
- */
9414
- get_loyalty_search(
9415
- id: string,
9416
- options: {
9417
- query: GetLoyaltySearchQuery;
9418
- } & RequestOptions
9419
- ): ResponsePromise<GetLoyaltySearchResponse> {
9420
- return this.request(
9421
- "loyalty",
9422
- "get_loyalty_search",
9423
- "get",
9424
- `/loyalty/${id}/search`,
9425
- null,
9426
- options
9427
- );
9428
- }
9429
-
9430
- /**
9431
- * GET /loyalty/{id}/users - Get all loyalty users updated after specific date
9432
- *
9433
- * @param id - Loyalty Provider id
9434
- * @param options - additional request options
9435
- */
9436
- get_loyalty_users(
9437
- id: string,
9438
- options: {
9439
- query: GetLoyaltyUsersQuery;
9440
- } & RequestOptions
9441
- ): ResponsePromise<GetLoyaltyUsersResponse> {
9442
- return this.request(
9443
- "loyalty",
9444
- "get_loyalty_users",
9445
- "get",
9446
- `/loyalty/${id}/users`,
9447
- null,
9448
- options
9449
- );
9450
- }
9451
-
9452
- /**
9453
- * GET /loyalty/{id}/events - Get all loyalty events updated after specific date
9454
- *
9455
- * @param id - Loyalty Provider id
9456
- * @param options - additional request options
9457
- */
9458
- get_loyalty_events(
9459
- id: string,
9460
- options: {
9461
- query: GetLoyaltyEventsQuery;
9462
- } & RequestOptions
9463
- ): ResponsePromise<GetLoyaltyEventsResponse> {
9464
- return this.request(
9465
- "loyalty",
9466
- "get_loyalty_events",
9467
- "get",
9468
- `/loyalty/${id}/events`,
9469
- null,
9470
- options
9471
- );
9472
- }
9473
8692
  }