@compassdigital/sdk.typescript 3.77.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/lib/index.d.ts +103 -81
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js +90 -63
  4. package/lib/index.js.map +1 -1
  5. package/lib/interface/ai.d.ts +50 -0
  6. package/lib/interface/ai.d.ts.map +1 -0
  7. package/lib/interface/ai.js +5 -0
  8. package/lib/interface/ai.js.map +1 -0
  9. package/lib/interface/calendar.d.ts +1 -1
  10. package/lib/interface/datalake.d.ts +3 -3
  11. package/lib/interface/datalake.d.ts.map +1 -1
  12. package/lib/interface/delivery.d.ts +2 -2
  13. package/lib/interface/delivery.d.ts.map +1 -1
  14. package/lib/interface/file.d.ts +1 -1
  15. package/lib/interface/file.d.ts.map +1 -1
  16. package/lib/interface/frictionless.d.ts +24 -24
  17. package/lib/interface/frictionless.d.ts.map +1 -1
  18. package/lib/interface/location.d.ts +23 -14
  19. package/lib/interface/location.d.ts.map +1 -1
  20. package/lib/interface/location.js +12 -0
  21. package/lib/interface/location.js.map +1 -1
  22. package/lib/interface/mealplan.d.ts +6 -5
  23. package/lib/interface/mealplan.d.ts.map +1 -1
  24. package/lib/interface/menu.d.ts +585 -492
  25. package/lib/interface/menu.d.ts.map +1 -1
  26. package/lib/interface/menu.js +6 -0
  27. package/lib/interface/menu.js.map +1 -1
  28. package/lib/interface/notification.d.ts +2 -2
  29. package/lib/interface/notification.d.ts.map +1 -1
  30. package/lib/interface/order.d.ts +6 -6
  31. package/lib/interface/order.d.ts.map +1 -1
  32. package/lib/interface/partner.d.ts +11 -6
  33. package/lib/interface/partner.d.ts.map +1 -1
  34. package/lib/interface/partner.js +6 -0
  35. package/lib/interface/partner.js.map +1 -1
  36. package/lib/interface/payment.d.ts +4 -4
  37. package/lib/interface/payment.d.ts.map +1 -1
  38. package/lib/interface/payment.js +1 -1
  39. package/lib/interface/payment.js.map +1 -1
  40. package/lib/interface/promo.d.ts +13 -6
  41. package/lib/interface/promo.d.ts.map +1 -1
  42. package/lib/interface/promo.js +8 -0
  43. package/lib/interface/promo.js.map +1 -1
  44. package/lib/interface/report.d.ts +8 -8
  45. package/lib/interface/report.d.ts.map +1 -1
  46. package/lib/interface/shoppingcart.d.ts +14 -9
  47. package/lib/interface/shoppingcart.d.ts.map +1 -1
  48. package/lib/interface/shoppingcart.js +5 -0
  49. package/lib/interface/shoppingcart.js.map +1 -1
  50. package/lib/interface/task.d.ts +14 -14
  51. package/lib/interface/task.d.ts.map +1 -1
  52. package/lib/interface/user.d.ts +16 -21
  53. package/lib/interface/user.d.ts.map +1 -1
  54. package/lib/interface/vendor.d.ts +5 -5
  55. package/lib/interface/vendor.d.ts.map +1 -1
  56. package/manifest.json +4 -0
  57. package/package.json +2 -2
  58. package/src/index.ts +248 -193
  59. package/src/interface/ai.ts +72 -0
  60. package/src/interface/announcement.ts +1 -1
  61. package/src/interface/calendar.ts +1 -1
  62. package/src/interface/datalake.ts +5 -3
  63. package/src/interface/delivery.ts +15 -2
  64. package/src/interface/file.ts +1 -1
  65. package/src/interface/frictionless.ts +30 -36
  66. package/src/interface/location.ts +28 -20
  67. package/src/interface/mealplan.ts +8 -6
  68. package/src/interface/menu.ts +671 -574
  69. package/src/interface/notification.ts +2 -2
  70. package/src/interface/order.ts +23 -12
  71. package/src/interface/partner.ts +10 -6
  72. package/src/interface/payment.ts +5 -5
  73. package/src/interface/promo.ts +12 -6
  74. package/src/interface/report.ts +8 -8
  75. package/src/interface/shoppingcart.ts +14 -9
  76. package/src/interface/task.ts +26 -14
  77. package/src/interface/user.ts +21 -27
  78. package/src/interface/vendor.ts +5 -5
package/src/index.ts CHANGED
@@ -160,10 +160,10 @@ import {
160
160
  DeleteLocationRecordResponse,
161
161
  GetLocationV2GroupsQuery,
162
162
  GetLocationV2GroupsResponse,
163
- GetLocationMenu_associationBrandQuery,
164
- GetLocationMenu_associationBrandResponse,
165
- GetLocationMenu_associationMenuQuery,
166
- GetLocationMenu_associationMenuResponse,
163
+ GetLocationMenuAssociationBrandQuery,
164
+ GetLocationMenuAssociationBrandResponse,
165
+ GetLocationMenuAssociationMenuQuery,
166
+ GetLocationMenuAssociationMenuResponse,
167
167
  } from "./interface/location";
168
168
 
169
169
  import {
@@ -276,8 +276,8 @@ import {
276
276
  import {
277
277
  PostDatalakeSqlBody,
278
278
  PostDatalakeSqlResponse,
279
- GetSwaggerQuery,
280
- GetSwaggerResponse,
279
+ GetDatalakeSwaggerQuery,
280
+ GetDatalakeSwaggerResponse,
281
281
  } from "./interface/datalake";
282
282
 
283
283
  import {
@@ -455,51 +455,51 @@ import {
455
455
  GetMenuClientResponse,
456
456
  GetMenusQuery,
457
457
  GetMenusResponse,
458
- PostMenuBody,
459
- PostMenuResponse,
460
- HeadMenuQuery,
461
- HeadMenuResponse,
458
+ CreateMenuBody,
459
+ CreateMenuResponse,
460
+ GetMenuHeadersQuery,
461
+ GetMenuHeadersResponse,
462
462
  GetMenuQuery,
463
463
  GetMenuResponse,
464
- PutMenuQuery,
465
- PutMenuBody,
466
- PutMenuResponse,
464
+ UpdateMenuQuery,
465
+ UpdateMenuBody,
466
+ UpdateMenuResponse,
467
467
  DeleteMenuQuery,
468
468
  DeleteMenuResponse,
469
469
  PatchMenuQuery,
470
470
  PatchMenuBody,
471
471
  PatchMenuResponse,
472
- PostMenuImportMenuBody,
473
- PostMenuImportMenuResponse,
474
- GetMenuItemQuery,
475
- GetMenuItemResponse,
476
- DeleteMenuItemResponse,
477
- PostMenuItemBody,
478
- PostMenuItemResponse,
472
+ ImportMenuBody,
473
+ ImportMenuResponse,
474
+ GetItemQuery,
475
+ GetItemResponse,
476
+ DeleteItemResponse,
477
+ CreateItemBody,
478
+ CreateItemResponse,
479
479
  GetMenuItemsQuery,
480
480
  GetMenuItemsResponse,
481
- PostMenuImportItemsCanteenResponse,
482
- GetMenuLocationItemsQuery,
483
- GetMenuLocationItemsResponse,
484
- GetMenuLocationItemRandomQuery,
485
- GetMenuLocationItemRandomResponse,
486
- GetMenuLocationItemsRandomQuery,
487
- GetMenuLocationItemsRandomResponse,
488
- GetMenuSectorMenusQuery,
489
- GetMenuSectorMenusResponse,
490
- GetMenuCompanyMenusQuery,
491
- GetMenuCompanyMenusResponse,
492
- PostMenuModifierGroupBody,
493
- PostMenuModifierGroupResponse,
494
- GetMenuModifierGroupQuery,
495
- GetMenuModifierGroupResponse,
496
- PutMenuModifierGroupBody,
497
- PutMenuModifierGroupResponse,
498
- DeleteMenuModifierGroupResponse,
499
- GetMenuCompanyModifierGroupsQuery,
500
- GetMenuCompanyModifierGroupsResponse,
501
- GetMenuCompanyModifierGroupsExportQuery,
502
- GetMenuCompanyModifierGroupsExportResponse,
481
+ ImportItemsCanteenResponse,
482
+ GetLocationItemsQuery,
483
+ GetLocationItemsResponse,
484
+ GetLocationItemRandomQuery,
485
+ GetLocationItemRandomResponse,
486
+ GetLocationItemsRandomQuery,
487
+ GetLocationItemsRandomResponse,
488
+ GetSectorMenusQuery,
489
+ GetSectorMenusResponse,
490
+ GetCompanyMenusQuery,
491
+ GetCompanyMenusResponse,
492
+ CreateModifierGroupBody,
493
+ CreateModifierGroupResponse,
494
+ GetModifierGroupQuery,
495
+ GetModifierGroupResponse,
496
+ UpdateModifierGroupBody,
497
+ UpdateModifierGroupResponse,
498
+ DeleteModifierGroupResponse,
499
+ GetCompanyModifierGroupsQuery,
500
+ GetCompanyModifierGroupsResponse,
501
+ GetCompanyModifierGroupsExportQuery,
502
+ GetCompanyModifierGroupsExportResponse,
503
503
  GetMenuExportQuery,
504
504
  GetMenuExportResponse,
505
505
  GetMenuPartialGroupsQuery,
@@ -660,12 +660,12 @@ import {
660
660
  PostMenuV3DraftCategoryRelationshipsItemsResponse,
661
661
  GetMenuV3DraftCategoryRelationshipsItemsCountQuery,
662
662
  GetMenuV3DraftCategoryRelationshipsItemsCountResponse,
663
- GetMenuV3CategoryRelationshipsModifierGroupQuery,
664
- GetMenuV3CategoryRelationshipsModifierGroupResponse,
665
- GetMenuV3CategoryRelationshipsModifierGroupsQuery,
666
- GetMenuV3CategoryRelationshipsModifierGroupsResponse,
667
- GetMenuV3CategoryRelationshipsModifierGroupsCountQuery,
668
- GetMenuV3CategoryRelationshipsModifierGroupsCountResponse,
663
+ GetMenuV3CategoryRelationshipsItemQuery,
664
+ GetMenuV3CategoryRelationshipsItemResponse,
665
+ GetMenuV3CategoryRelationshipsItemsQuery,
666
+ GetMenuV3CategoryRelationshipsItemsResponse,
667
+ GetMenuV3CategoryRelationshipsItemsCountQuery,
668
+ GetMenuV3CategoryRelationshipsItemsCountResponse,
669
669
  PostMenuV3DraftItemBody,
670
670
  PostMenuV3DraftItemResponse,
671
671
  GetMenuV3DraftItemQuery,
@@ -723,6 +723,7 @@ import {
723
723
  PostMenuV3DraftModifierGroupsResponse,
724
724
  GetMenuV3DraftModifierGroupsCountQuery,
725
725
  GetMenuV3DraftModifierGroupsCountResponse,
726
+ PostMenuV3DraftModifierGroupDuplicateResponse,
726
727
  GetMenuV3ModifierGroupQuery,
727
728
  GetMenuV3ModifierGroupResponse,
728
729
  GetMenuV3ModifierGroupsQuery,
@@ -844,19 +845,26 @@ import {
844
845
  } from "./interface/delivery";
845
846
 
846
847
  import {
847
- PostFrictionlessStandardCognitionEventWebhookControllerExecuteBody,
848
- PostFrictionlessStandardCognitionEventWebhookControllerExecuteResponse,
849
- GetFrictionlessCheckFrictionlessSupportControllerExecuteQuery,
850
- GetFrictionlessCheckFrictionlessSupportControllerExecuteResponse,
851
- PostFrictionlessCreateQRCodeUserCheckInControllerExecuteBody,
852
- PostFrictionlessCreateQRCodeUserCheckInControllerExecuteResponse,
853
- GetFrictionlessListFailedCheckinsControllerExecuteQuery,
854
- GetFrictionlessListFailedCheckinsControllerExecuteResponse,
855
- PostFrictionlessReprocessCheckinOnErrorControllerExecuteResponse,
856
- GetFrictionlessCheckCheckinStatusControllerExecuteQuery,
857
- GetFrictionlessCheckCheckinStatusControllerExecuteResponse,
848
+ StandardCognitionEventWebhookControllerExecuteBody,
849
+ StandardCognitionEventWebhookControllerExecuteResponse,
850
+ CheckFrictionlessSupportControllerExecuteQuery,
851
+ CheckFrictionlessSupportControllerExecuteResponse,
852
+ CreateQRCodeUserCheckInControllerExecuteBody,
853
+ CreateQRCodeUserCheckInControllerExecuteResponse,
854
+ ListFailedCheckinsControllerExecuteQuery,
855
+ ListFailedCheckinsControllerExecuteResponse,
856
+ ReprocessCheckinOnErrorControllerExecuteResponse,
857
+ CheckCheckinStatusControllerExecuteQuery,
858
+ CheckCheckinStatusControllerExecuteResponse,
858
859
  } from "./interface/frictionless";
859
860
 
861
+ import {
862
+ PostAiLanguageGenerateBody,
863
+ PostAiLanguageGenerateResponse,
864
+ PostAiImageGenerateBody,
865
+ PostAiImageGenerateResponse,
866
+ } from "./interface/ai";
867
+
860
868
  import { BaseServiceClient, RequestOptions, ResponsePromise } from "./base";
861
869
  export * from "./base";
862
870
 
@@ -2381,9 +2389,9 @@ export class ServiceClient extends BaseServiceClient {
2381
2389
  get_location_menu_association_brand(
2382
2390
  id: string,
2383
2391
  options?: {
2384
- query?: GetLocationMenu_associationBrandQuery;
2392
+ query?: GetLocationMenuAssociationBrandQuery;
2385
2393
  } & RequestOptions
2386
- ): ResponsePromise<GetLocationMenu_associationBrandResponse> {
2394
+ ): ResponsePromise<GetLocationMenuAssociationBrandResponse> {
2387
2395
  return this.request(
2388
2396
  "location",
2389
2397
  "get_location_menu_association_brand",
@@ -2403,9 +2411,9 @@ export class ServiceClient extends BaseServiceClient {
2403
2411
  get_location_menu_association_menu(
2404
2412
  id: string,
2405
2413
  options?: {
2406
- query?: GetLocationMenu_associationMenuQuery;
2414
+ query?: GetLocationMenuAssociationMenuQuery;
2407
2415
  } & RequestOptions
2408
- ): ResponsePromise<GetLocationMenu_associationMenuResponse> {
2416
+ ): ResponsePromise<GetLocationMenuAssociationMenuResponse> {
2409
2417
  return this.request(
2410
2418
  "location",
2411
2419
  "get_location_menu_association_menu",
@@ -3320,7 +3328,7 @@ export class ServiceClient extends BaseServiceClient {
3320
3328
  /**
3321
3329
  * POST /mealplan/{id}/authorize - Authorize Transaction
3322
3330
  *
3323
- * @param id - TODO: add parameter to swagger.json
3331
+ * @param id - Meal plan ID
3324
3332
  * @param body
3325
3333
  * @param options - additional request options
3326
3334
  */
@@ -3357,12 +3365,12 @@ export class ServiceClient extends BaseServiceClient {
3357
3365
  *
3358
3366
  * @param options - additional request options
3359
3367
  */
3360
- get_swagger(
3368
+ get_datalake_swagger(
3361
3369
  options?: {
3362
- query?: GetSwaggerQuery;
3370
+ query?: GetDatalakeSwaggerQuery;
3363
3371
  } & RequestOptions
3364
- ): ResponsePromise<GetSwaggerResponse> {
3365
- return this.request("datalake", "get_swagger", "get", `/swagger.json`, null, options);
3372
+ ): ResponsePromise<GetDatalakeSwaggerResponse> {
3373
+ return this.request("datalake", "get_datalake_swagger", "get", `/swagger.json`, null, options);
3366
3374
  }
3367
3375
 
3368
3376
  /**
@@ -3821,7 +3829,7 @@ export class ServiceClient extends BaseServiceClient {
3821
3829
  /**
3822
3830
  * GET /announcement/resource/{id} - Get Announcements
3823
3831
  *
3824
- * @param id - Id of the entity to which announcement is specifically related.; TODO: mark parameter as required in swagger
3832
+ * @param id - Id of the entity to which announcement is specifically related.
3825
3833
  * @param options - additional request options
3826
3834
  */
3827
3835
  get_announcement_resource(
@@ -3933,7 +3941,7 @@ export class ServiceClient extends BaseServiceClient {
3933
3941
  */
3934
3942
  get_report_analytics_group(
3935
3943
  location_group: string,
3936
- report_type: string,
3944
+ report_type: "bills" | "sales" | "transactions" | "top-items",
3937
3945
  options: {
3938
3946
  query: GetReportAnalyticsGroupQuery;
3939
3947
  } & RequestOptions
@@ -4807,8 +4815,8 @@ export class ServiceClient extends BaseServiceClient {
4807
4815
  * @param body
4808
4816
  * @param options - additional request options
4809
4817
  */
4810
- post_menu(body: PostMenuBody, options?: RequestOptions): ResponsePromise<PostMenuResponse> {
4811
- return this.request("menu", "post_menu", "post", `/menu`, body, options);
4818
+ create_menu(body: CreateMenuBody, options?: RequestOptions): ResponsePromise<CreateMenuResponse> {
4819
+ return this.request("menu", "create_menu", "post", `/menu`, body, options);
4812
4820
  }
4813
4821
 
4814
4822
  /**
@@ -4817,13 +4825,13 @@ export class ServiceClient extends BaseServiceClient {
4817
4825
  * @param id - menu
4818
4826
  * @param options - additional request options
4819
4827
  */
4820
- head_menu(
4828
+ get_menu_headers(
4821
4829
  id: string,
4822
4830
  options?: {
4823
- query?: HeadMenuQuery;
4831
+ query?: GetMenuHeadersQuery;
4824
4832
  } & RequestOptions
4825
- ): ResponsePromise<HeadMenuResponse> {
4826
- return this.request("menu", "head_menu", "head", `/menu/${id}`, null, options);
4833
+ ): ResponsePromise<GetMenuHeadersResponse> {
4834
+ return this.request("menu", "get_menu_headers", "head", `/menu/${id}`, null, options);
4827
4835
  }
4828
4836
 
4829
4837
  /**
@@ -4848,14 +4856,14 @@ export class ServiceClient extends BaseServiceClient {
4848
4856
  * @param body
4849
4857
  * @param options - additional request options
4850
4858
  */
4851
- put_menu(
4859
+ update_menu(
4852
4860
  id: string,
4853
- body: PutMenuBody,
4861
+ body: UpdateMenuBody,
4854
4862
  options?: {
4855
- query?: PutMenuQuery;
4863
+ query?: UpdateMenuQuery;
4856
4864
  } & RequestOptions
4857
- ): ResponsePromise<PutMenuResponse> {
4858
- return this.request("menu", "put_menu", "put", `/menu/${id}`, body, options);
4865
+ ): ResponsePromise<UpdateMenuResponse> {
4866
+ return this.request("menu", "update_menu", "put", `/menu/${id}`, body, options);
4859
4867
  }
4860
4868
 
4861
4869
  /**
@@ -4896,11 +4904,8 @@ export class ServiceClient extends BaseServiceClient {
4896
4904
  * @param body
4897
4905
  * @param options - additional request options
4898
4906
  */
4899
- post_menu_import_menu(
4900
- body: PostMenuImportMenuBody,
4901
- options?: RequestOptions
4902
- ): ResponsePromise<PostMenuImportMenuResponse> {
4903
- return this.request("menu", "post_menu_import_menu", "post", `/menu/import`, body, options);
4907
+ import_menu(body: ImportMenuBody, options?: RequestOptions): ResponsePromise<ImportMenuResponse> {
4908
+ return this.request("menu", "import_menu", "post", `/menu/import`, body, options);
4904
4909
  }
4905
4910
 
4906
4911
  /**
@@ -4909,13 +4914,13 @@ export class ServiceClient extends BaseServiceClient {
4909
4914
  * @param id - Item ID
4910
4915
  * @param options - additional request options
4911
4916
  */
4912
- get_menu_item(
4917
+ get_item(
4913
4918
  id: string,
4914
4919
  options?: {
4915
- query?: GetMenuItemQuery;
4920
+ query?: GetItemQuery;
4916
4921
  } & RequestOptions
4917
- ): ResponsePromise<GetMenuItemResponse> {
4918
- return this.request("menu", "get_menu_item", "get", `/menu/item/${id}`, null, options);
4922
+ ): ResponsePromise<GetItemResponse> {
4923
+ return this.request("menu", "get_item", "get", `/menu/item/${id}`, null, options);
4919
4924
  }
4920
4925
 
4921
4926
  /**
@@ -4924,8 +4929,8 @@ export class ServiceClient extends BaseServiceClient {
4924
4929
  * @param id - Item ID
4925
4930
  * @param options - additional request options
4926
4931
  */
4927
- delete_menu_item(id: string, options?: RequestOptions): ResponsePromise<DeleteMenuItemResponse> {
4928
- return this.request("menu", "delete_menu_item", "delete", `/menu/item/${id}`, null, options);
4932
+ delete_item(id: string, options?: RequestOptions): ResponsePromise<DeleteItemResponse> {
4933
+ return this.request("menu", "delete_item", "delete", `/menu/item/${id}`, null, options);
4929
4934
  }
4930
4935
 
4931
4936
  /**
@@ -4934,11 +4939,8 @@ export class ServiceClient extends BaseServiceClient {
4934
4939
  * @param body
4935
4940
  * @param options - additional request options
4936
4941
  */
4937
- post_menu_item(
4938
- body: PostMenuItemBody,
4939
- options?: RequestOptions
4940
- ): ResponsePromise<PostMenuItemResponse> {
4941
- return this.request("menu", "post_menu_item", "post", `/menu/item`, body, options);
4942
+ create_item(body: CreateItemBody, options?: RequestOptions): ResponsePromise<CreateItemResponse> {
4943
+ return this.request("menu", "create_item", "post", `/menu/item`, body, options);
4942
4944
  }
4943
4945
 
4944
4946
  /**
@@ -4960,13 +4962,13 @@ export class ServiceClient extends BaseServiceClient {
4960
4962
  * @param location - Location ID
4961
4963
  * @param options - additional request options
4962
4964
  */
4963
- post_menu_import_items_canteen(
4965
+ import_items_canteen(
4964
4966
  location: string,
4965
4967
  options?: RequestOptions
4966
- ): ResponsePromise<PostMenuImportItemsCanteenResponse> {
4968
+ ): ResponsePromise<ImportItemsCanteenResponse> {
4967
4969
  return this.request(
4968
4970
  "menu",
4969
- "post_menu_import_items_canteen",
4971
+ "import_items_canteen",
4970
4972
  "post",
4971
4973
  `/menu/items/import/${location}`,
4972
4974
  null,
@@ -4980,15 +4982,15 @@ export class ServiceClient extends BaseServiceClient {
4980
4982
  * @param location - Location ID
4981
4983
  * @param options - additional request options
4982
4984
  */
4983
- get_menu_location_items(
4985
+ get_location_items(
4984
4986
  location: string,
4985
4987
  options?: {
4986
- query?: GetMenuLocationItemsQuery;
4988
+ query?: GetLocationItemsQuery;
4987
4989
  } & RequestOptions
4988
- ): ResponsePromise<GetMenuLocationItemsResponse> {
4990
+ ): ResponsePromise<GetLocationItemsResponse> {
4989
4991
  return this.request(
4990
4992
  "menu",
4991
- "get_menu_location_items",
4993
+ "get_location_items",
4992
4994
  "get",
4993
4995
  `/menu/items/location/${location}`,
4994
4996
  null,
@@ -5002,15 +5004,15 @@ export class ServiceClient extends BaseServiceClient {
5002
5004
  * @param location - Location ID
5003
5005
  * @param options - additional request options
5004
5006
  */
5005
- get_menu_location_item_random(
5007
+ get_location_item_random(
5006
5008
  location: string,
5007
5009
  options?: {
5008
- query?: GetMenuLocationItemRandomQuery;
5010
+ query?: GetLocationItemRandomQuery;
5009
5011
  } & RequestOptions
5010
- ): ResponsePromise<GetMenuLocationItemRandomResponse> {
5012
+ ): ResponsePromise<GetLocationItemRandomResponse> {
5011
5013
  return this.request(
5012
5014
  "menu",
5013
- "get_menu_location_item_random",
5015
+ "get_location_item_random",
5014
5016
  "get",
5015
5017
  `/menu/item/random/location/${location}`,
5016
5018
  null,
@@ -5024,15 +5026,15 @@ export class ServiceClient extends BaseServiceClient {
5024
5026
  * @param location - Location ID
5025
5027
  * @param options - additional request options
5026
5028
  */
5027
- get_menu_location_items_random(
5029
+ get_location_items_random(
5028
5030
  location: string,
5029
5031
  options?: {
5030
- query?: GetMenuLocationItemsRandomQuery;
5032
+ query?: GetLocationItemsRandomQuery;
5031
5033
  } & RequestOptions
5032
- ): ResponsePromise<GetMenuLocationItemsRandomResponse> {
5034
+ ): ResponsePromise<GetLocationItemsRandomResponse> {
5033
5035
  return this.request(
5034
5036
  "menu",
5035
- "get_menu_location_items_random",
5037
+ "get_location_items_random",
5036
5038
  "get",
5037
5039
  `/menu/items/random/location/${location}`,
5038
5040
  null,
@@ -5046,20 +5048,13 @@ export class ServiceClient extends BaseServiceClient {
5046
5048
  * @param sector - Sector ID
5047
5049
  * @param options - additional request options
5048
5050
  */
5049
- get_menu_sector_menus(
5051
+ get_sector_menus(
5050
5052
  sector: string,
5051
5053
  options?: {
5052
- query?: GetMenuSectorMenusQuery;
5054
+ query?: GetSectorMenusQuery;
5053
5055
  } & RequestOptions
5054
- ): ResponsePromise<GetMenuSectorMenusResponse> {
5055
- return this.request(
5056
- "menu",
5057
- "get_menu_sector_menus",
5058
- "get",
5059
- `/menu/sector/${sector}`,
5060
- null,
5061
- options
5062
- );
5056
+ ): ResponsePromise<GetSectorMenusResponse> {
5057
+ return this.request("menu", "get_sector_menus", "get", `/menu/sector/${sector}`, null, options);
5063
5058
  }
5064
5059
 
5065
5060
  /**
@@ -5068,15 +5063,15 @@ export class ServiceClient extends BaseServiceClient {
5068
5063
  * @param company - Company ID
5069
5064
  * @param options - additional request options
5070
5065
  */
5071
- get_menu_company_menus(
5066
+ get_company_menus(
5072
5067
  company: string,
5073
5068
  options?: {
5074
- query?: GetMenuCompanyMenusQuery;
5069
+ query?: GetCompanyMenusQuery;
5075
5070
  } & RequestOptions
5076
- ): ResponsePromise<GetMenuCompanyMenusResponse> {
5071
+ ): ResponsePromise<GetCompanyMenusResponse> {
5077
5072
  return this.request(
5078
5073
  "menu",
5079
- "get_menu_company_menus",
5074
+ "get_company_menus",
5080
5075
  "get",
5081
5076
  `/menu/company/${company}`,
5082
5077
  null,
@@ -5090,13 +5085,13 @@ export class ServiceClient extends BaseServiceClient {
5090
5085
  * @param body
5091
5086
  * @param options - additional request options
5092
5087
  */
5093
- post_menu_modifier_group(
5094
- body: PostMenuModifierGroupBody,
5088
+ create_modifier_group(
5089
+ body: CreateModifierGroupBody,
5095
5090
  options?: RequestOptions
5096
- ): ResponsePromise<PostMenuModifierGroupResponse> {
5091
+ ): ResponsePromise<CreateModifierGroupResponse> {
5097
5092
  return this.request(
5098
5093
  "menu",
5099
- "post_menu_modifier_group",
5094
+ "create_modifier_group",
5100
5095
  "post",
5101
5096
  `/menu/modifier/group`,
5102
5097
  body,
@@ -5110,15 +5105,15 @@ export class ServiceClient extends BaseServiceClient {
5110
5105
  * @param id - modifier_group
5111
5106
  * @param options - additional request options
5112
5107
  */
5113
- get_menu_modifier_group(
5108
+ get_modifier_group(
5114
5109
  id: string,
5115
5110
  options?: {
5116
- query?: GetMenuModifierGroupQuery;
5111
+ query?: GetModifierGroupQuery;
5117
5112
  } & RequestOptions
5118
- ): ResponsePromise<GetMenuModifierGroupResponse> {
5113
+ ): ResponsePromise<GetModifierGroupResponse> {
5119
5114
  return this.request(
5120
5115
  "menu",
5121
- "get_menu_modifier_group",
5116
+ "get_modifier_group",
5122
5117
  "get",
5123
5118
  `/menu/modifier/group/${id}`,
5124
5119
  null,
@@ -5133,14 +5128,14 @@ export class ServiceClient extends BaseServiceClient {
5133
5128
  * @param body
5134
5129
  * @param options - additional request options
5135
5130
  */
5136
- put_menu_modifier_group(
5131
+ update_modifier_group(
5137
5132
  id: string,
5138
- body: PutMenuModifierGroupBody,
5133
+ body: UpdateModifierGroupBody,
5139
5134
  options?: RequestOptions
5140
- ): ResponsePromise<PutMenuModifierGroupResponse> {
5135
+ ): ResponsePromise<UpdateModifierGroupResponse> {
5141
5136
  return this.request(
5142
5137
  "menu",
5143
- "put_menu_modifier_group",
5138
+ "update_modifier_group",
5144
5139
  "put",
5145
5140
  `/menu/modifier/group/${id}`,
5146
5141
  body,
@@ -5154,13 +5149,13 @@ export class ServiceClient extends BaseServiceClient {
5154
5149
  * @param id - modifier_group
5155
5150
  * @param options - additional request options
5156
5151
  */
5157
- delete_menu_modifier_group(
5152
+ delete_modifier_group(
5158
5153
  id: string,
5159
5154
  options?: RequestOptions
5160
- ): ResponsePromise<DeleteMenuModifierGroupResponse> {
5155
+ ): ResponsePromise<DeleteModifierGroupResponse> {
5161
5156
  return this.request(
5162
5157
  "menu",
5163
- "delete_menu_modifier_group",
5158
+ "delete_modifier_group",
5164
5159
  "delete",
5165
5160
  `/menu/modifier/group/${id}`,
5166
5161
  null,
@@ -5174,15 +5169,15 @@ export class ServiceClient extends BaseServiceClient {
5174
5169
  * @param company - Company ID
5175
5170
  * @param options - additional request options
5176
5171
  */
5177
- get_menu_company_modifier_groups(
5172
+ get_company_modifier_groups(
5178
5173
  company: string,
5179
5174
  options?: {
5180
- query?: GetMenuCompanyModifierGroupsQuery;
5175
+ query?: GetCompanyModifierGroupsQuery;
5181
5176
  } & RequestOptions
5182
- ): ResponsePromise<GetMenuCompanyModifierGroupsResponse> {
5177
+ ): ResponsePromise<GetCompanyModifierGroupsResponse> {
5183
5178
  return this.request(
5184
5179
  "menu",
5185
- "get_menu_company_modifier_groups",
5180
+ "get_company_modifier_groups",
5186
5181
  "get",
5187
5182
  `/menu/modifier/group/company/${company}`,
5188
5183
  null,
@@ -5196,15 +5191,15 @@ export class ServiceClient extends BaseServiceClient {
5196
5191
  * @param company - Company ID
5197
5192
  * @param options - additional request options
5198
5193
  */
5199
- get_menu_company_modifier_groups_export(
5194
+ get_company_modifier_groups_export(
5200
5195
  company: string,
5201
5196
  options?: {
5202
- query?: GetMenuCompanyModifierGroupsExportQuery;
5197
+ query?: GetCompanyModifierGroupsExportQuery;
5203
5198
  } & RequestOptions
5204
- ): ResponsePromise<GetMenuCompanyModifierGroupsExportResponse> {
5199
+ ): ResponsePromise<GetCompanyModifierGroupsExportResponse> {
5205
5200
  return this.request(
5206
5201
  "menu",
5207
- "get_menu_company_modifier_groups_export",
5202
+ "get_company_modifier_groups_export",
5208
5203
  "get",
5209
5204
  `/menu/modifier/group/company/${company}/export`,
5210
5205
  null,
@@ -6090,7 +6085,7 @@ export class ServiceClient extends BaseServiceClient {
6090
6085
  */
6091
6086
  post_menu_v3_brand_attachment(
6092
6087
  id: string,
6093
- name: string,
6088
+ name: "thumbnail",
6094
6089
  options?: {
6095
6090
  query?: PostMenuV3BrandAttachmentQuery;
6096
6091
  } & RequestOptions
@@ -6906,62 +6901,62 @@ export class ServiceClient extends BaseServiceClient {
6906
6901
  }
6907
6902
 
6908
6903
  /**
6909
- * GET /menu/v3/category/relationships/modifier-group/{id}
6904
+ * GET /menu/v3/category/relationships/item/{id}
6910
6905
  *
6911
6906
  * @param id
6912
6907
  * @param options - additional request options
6913
6908
  */
6914
- get_menu_v3_category_relationships_modifier_group(
6909
+ get_menu_v3_category_relationships_item(
6915
6910
  id: string,
6916
6911
  options?: {
6917
- query?: GetMenuV3CategoryRelationshipsModifierGroupQuery;
6912
+ query?: GetMenuV3CategoryRelationshipsItemQuery;
6918
6913
  } & RequestOptions
6919
- ): ResponsePromise<GetMenuV3CategoryRelationshipsModifierGroupResponse> {
6914
+ ): ResponsePromise<GetMenuV3CategoryRelationshipsItemResponse> {
6920
6915
  return this.request(
6921
6916
  "menu",
6922
- "get_menu_v3_category_relationships_modifier_group",
6917
+ "get_menu_v3_category_relationships_item",
6923
6918
  "get",
6924
- `/menu/v3/category/relationships/modifier-group/${id}`,
6919
+ `/menu/v3/category/relationships/item/${id}`,
6925
6920
  null,
6926
6921
  options
6927
6922
  );
6928
6923
  }
6929
6924
 
6930
6925
  /**
6931
- * GET /menu/v3/category/relationships/modifier-groups
6926
+ * GET /menu/v3/category/relationships/items
6932
6927
  *
6933
6928
  * @param options - additional request options
6934
6929
  */
6935
- get_menu_v3_category_relationships_modifier_groups(
6930
+ get_menu_v3_category_relationships_items(
6936
6931
  options?: {
6937
- query?: GetMenuV3CategoryRelationshipsModifierGroupsQuery;
6932
+ query?: GetMenuV3CategoryRelationshipsItemsQuery;
6938
6933
  } & RequestOptions
6939
- ): ResponsePromise<GetMenuV3CategoryRelationshipsModifierGroupsResponse> {
6934
+ ): ResponsePromise<GetMenuV3CategoryRelationshipsItemsResponse> {
6940
6935
  return this.request(
6941
6936
  "menu",
6942
- "get_menu_v3_category_relationships_modifier_groups",
6937
+ "get_menu_v3_category_relationships_items",
6943
6938
  "get",
6944
- `/menu/v3/category/relationships/modifier-groups`,
6939
+ `/menu/v3/category/relationships/items`,
6945
6940
  null,
6946
6941
  options
6947
6942
  );
6948
6943
  }
6949
6944
 
6950
6945
  /**
6951
- * GET /menu/v3/category/relationships/modifier-groups/count
6946
+ * GET /menu/v3/category/relationships/items/count
6952
6947
  *
6953
6948
  * @param options - additional request options
6954
6949
  */
6955
- get_menu_v3_category_relationships_modifier_groups_count(
6950
+ get_menu_v3_category_relationships_items_count(
6956
6951
  options?: {
6957
- query?: GetMenuV3CategoryRelationshipsModifierGroupsCountQuery;
6952
+ query?: GetMenuV3CategoryRelationshipsItemsCountQuery;
6958
6953
  } & RequestOptions
6959
- ): ResponsePromise<GetMenuV3CategoryRelationshipsModifierGroupsCountResponse> {
6954
+ ): ResponsePromise<GetMenuV3CategoryRelationshipsItemsCountResponse> {
6960
6955
  return this.request(
6961
6956
  "menu",
6962
- "get_menu_v3_category_relationships_modifier_groups_count",
6957
+ "get_menu_v3_category_relationships_items_count",
6963
6958
  "get",
6964
- `/menu/v3/category/relationships/modifier-groups/count`,
6959
+ `/menu/v3/category/relationships/items/count`,
6965
6960
  null,
6966
6961
  options
6967
6962
  );
@@ -7140,7 +7135,7 @@ export class ServiceClient extends BaseServiceClient {
7140
7135
  */
7141
7136
  post_menu_v3_item_attachment(
7142
7137
  id: string,
7143
- name: string,
7138
+ name: "thumbnail",
7144
7139
  options?: {
7145
7140
  query?: PostMenuV3ItemAttachmentQuery;
7146
7141
  } & RequestOptions
@@ -7573,6 +7568,26 @@ export class ServiceClient extends BaseServiceClient {
7573
7568
  );
7574
7569
  }
7575
7570
 
7571
+ /**
7572
+ * POST /menu/v3/draft/modifier-group/{id}/duplicate
7573
+ *
7574
+ * @param id
7575
+ * @param options - additional request options
7576
+ */
7577
+ post_menu_v3_draft_modifier_group_duplicate(
7578
+ id: string,
7579
+ options?: RequestOptions
7580
+ ): ResponsePromise<PostMenuV3DraftModifierGroupDuplicateResponse> {
7581
+ return this.request(
7582
+ "menu",
7583
+ "post_menu_v3_draft_modifier_group_duplicate",
7584
+ "post",
7585
+ `/menu/v3/draft/modifier-group/${id}/duplicate`,
7586
+ null,
7587
+ options
7588
+ );
7589
+ }
7590
+
7576
7591
  /**
7577
7592
  * GET /menu/v3/modifier-group/{id}
7578
7593
  *
@@ -8660,13 +8675,13 @@ export class ServiceClient extends BaseServiceClient {
8660
8675
  * @param body
8661
8676
  * @param options - additional request options
8662
8677
  */
8663
- post_frictionless_StandardCognitionEventWebhookController_execute(
8664
- body: PostFrictionlessStandardCognitionEventWebhookControllerExecuteBody,
8678
+ StandardCognitionEventWebhookController_execute(
8679
+ body: StandardCognitionEventWebhookControllerExecuteBody,
8665
8680
  options?: RequestOptions
8666
- ): ResponsePromise<PostFrictionlessStandardCognitionEventWebhookControllerExecuteResponse> {
8681
+ ): ResponsePromise<StandardCognitionEventWebhookControllerExecuteResponse> {
8667
8682
  return this.request(
8668
8683
  "frictionless",
8669
- "post_frictionless_StandardCognitionEventWebhookController_execute",
8684
+ "StandardCognitionEventWebhookController_execute",
8670
8685
  "post",
8671
8686
  `/frictionless/webhook/standardcognition`,
8672
8687
  body,
@@ -8680,15 +8695,15 @@ export class ServiceClient extends BaseServiceClient {
8680
8695
  * @param id_brand - Brand ID as Encoded CDL ID
8681
8696
  * @param options - additional request options
8682
8697
  */
8683
- get_frictionless_CheckFrictionlessSupportController_execute(
8698
+ CheckFrictionlessSupportController_execute(
8684
8699
  id_brand: string,
8685
8700
  options?: {
8686
- query?: GetFrictionlessCheckFrictionlessSupportControllerExecuteQuery;
8701
+ query?: CheckFrictionlessSupportControllerExecuteQuery;
8687
8702
  } & RequestOptions
8688
- ): ResponsePromise<GetFrictionlessCheckFrictionlessSupportControllerExecuteResponse> {
8703
+ ): ResponsePromise<CheckFrictionlessSupportControllerExecuteResponse> {
8689
8704
  return this.request(
8690
8705
  "frictionless",
8691
- "get_frictionless_CheckFrictionlessSupportController_execute",
8706
+ "CheckFrictionlessSupportController_execute",
8692
8707
  "get",
8693
8708
  `/frictionless/brand/${id_brand}/frictionless-status`,
8694
8709
  null,
@@ -8702,13 +8717,13 @@ export class ServiceClient extends BaseServiceClient {
8702
8717
  * @param body
8703
8718
  * @param options - additional request options
8704
8719
  */
8705
- post_frictionless_CreateQRCodeUserCheckInController_execute(
8706
- body: PostFrictionlessCreateQRCodeUserCheckInControllerExecuteBody,
8720
+ CreateQRCodeUserCheckInController_execute(
8721
+ body: CreateQRCodeUserCheckInControllerExecuteBody,
8707
8722
  options?: RequestOptions
8708
- ): ResponsePromise<PostFrictionlessCreateQRCodeUserCheckInControllerExecuteResponse> {
8723
+ ): ResponsePromise<CreateQRCodeUserCheckInControllerExecuteResponse> {
8709
8724
  return this.request(
8710
8725
  "frictionless",
8711
- "post_frictionless_CreateQRCodeUserCheckInController_execute",
8726
+ "CreateQRCodeUserCheckInController_execute",
8712
8727
  "post",
8713
8728
  `/frictionless/qrcode`,
8714
8729
  body,
@@ -8721,14 +8736,14 @@ export class ServiceClient extends BaseServiceClient {
8721
8736
  *
8722
8737
  * @param options - additional request options
8723
8738
  */
8724
- get_frictionless_ListFailedCheckinsController_execute(
8739
+ ListFailedCheckinsController_execute(
8725
8740
  options?: {
8726
- query?: GetFrictionlessListFailedCheckinsControllerExecuteQuery;
8741
+ query?: ListFailedCheckinsControllerExecuteQuery;
8727
8742
  } & RequestOptions
8728
- ): ResponsePromise<GetFrictionlessListFailedCheckinsControllerExecuteResponse> {
8743
+ ): ResponsePromise<ListFailedCheckinsControllerExecuteResponse> {
8729
8744
  return this.request(
8730
8745
  "frictionless",
8731
- "get_frictionless_ListFailedCheckinsController_execute",
8746
+ "ListFailedCheckinsController_execute",
8732
8747
  "get",
8733
8748
  `/frictionless/failed-checkins`,
8734
8749
  null,
@@ -8742,13 +8757,13 @@ export class ServiceClient extends BaseServiceClient {
8742
8757
  * @param id_checkin - TODO: add parameter to swagger.json
8743
8758
  * @param options - additional request options
8744
8759
  */
8745
- post_frictionless_ReprocessCheckinOnErrorController_execute(
8760
+ ReprocessCheckinOnErrorController_execute(
8746
8761
  id_checkin: string,
8747
8762
  options?: RequestOptions
8748
- ): ResponsePromise<PostFrictionlessReprocessCheckinOnErrorControllerExecuteResponse> {
8763
+ ): ResponsePromise<ReprocessCheckinOnErrorControllerExecuteResponse> {
8749
8764
  return this.request(
8750
8765
  "frictionless",
8751
- "post_frictionless_ReprocessCheckinOnErrorController_execute",
8766
+ "ReprocessCheckinOnErrorController_execute",
8752
8767
  "post",
8753
8768
  `/frictionless/checkin/${id_checkin}/reprocess`,
8754
8769
  null,
@@ -8762,19 +8777,59 @@ export class ServiceClient extends BaseServiceClient {
8762
8777
  * @param id_checkin - TODO: add parameter to swagger.json
8763
8778
  * @param options - additional request options
8764
8779
  */
8765
- get_frictionless_CheckCheckinStatusController_execute(
8780
+ CheckCheckinStatusController_execute(
8766
8781
  id_checkin: string,
8767
8782
  options?: {
8768
- query?: GetFrictionlessCheckCheckinStatusControllerExecuteQuery;
8783
+ query?: CheckCheckinStatusControllerExecuteQuery;
8769
8784
  } & RequestOptions
8770
- ): ResponsePromise<GetFrictionlessCheckCheckinStatusControllerExecuteResponse> {
8785
+ ): ResponsePromise<CheckCheckinStatusControllerExecuteResponse> {
8771
8786
  return this.request(
8772
8787
  "frictionless",
8773
- "get_frictionless_CheckCheckinStatusController_execute",
8788
+ "CheckCheckinStatusController_execute",
8774
8789
  "get",
8775
8790
  `/frictionless/checkin/${id_checkin}/status`,
8776
8791
  null,
8777
8792
  options
8778
8793
  );
8779
8794
  }
8795
+
8796
+ /**
8797
+ * POST /ai/language/generate - Generate text from a given prompt
8798
+ *
8799
+ * @param body
8800
+ * @param options - additional request options
8801
+ */
8802
+ post_ai_language_generate(
8803
+ body: PostAiLanguageGenerateBody,
8804
+ options?: RequestOptions
8805
+ ): ResponsePromise<PostAiLanguageGenerateResponse> {
8806
+ return this.request(
8807
+ "ai",
8808
+ "post_ai_language_generate",
8809
+ "post",
8810
+ `/ai/language/generate`,
8811
+ body,
8812
+ options
8813
+ );
8814
+ }
8815
+
8816
+ /**
8817
+ * POST /ai/image/generate - Generate image from a given prompt
8818
+ *
8819
+ * @param body
8820
+ * @param options - additional request options
8821
+ */
8822
+ post_ai_image_generate(
8823
+ body: PostAiImageGenerateBody,
8824
+ options?: RequestOptions
8825
+ ): ResponsePromise<PostAiImageGenerateResponse> {
8826
+ return this.request(
8827
+ "ai",
8828
+ "post_ai_image_generate",
8829
+ "post",
8830
+ `/ai/image/generate`,
8831
+ body,
8832
+ options
8833
+ );
8834
+ }
8780
8835
  }