@compassdigital/sdk.typescript 3.44.3 → 3.45.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
@@ -192,6 +192,8 @@ import {
192
192
  DeleteShoppingcartCartPromoResponse,
193
193
  PutShoppingcartCartPaymentBody,
194
194
  PutShoppingcartCartPaymentResponse,
195
+ GetShoppingcartPaymentMethodsQuery,
196
+ GetShoppingcartPaymentMethodsResponse,
195
197
  PutShoppingcartCartOrderBody,
196
198
  PutShoppingcartCartOrderResponse,
197
199
  PostShoppingcartCloneCartQuery,
@@ -211,6 +213,8 @@ import {
211
213
  GetPartnerStandardcognitionStoresResponse,
212
214
  PostPartnerStandardcognitionMenuBody,
213
215
  PostPartnerStandardcognitionMenuResponse,
216
+ PostPartnerEventBody,
217
+ PostPartnerEventResponse,
214
218
  GetPartnerSwaggerQuery,
215
219
  GetPartnerSwaggerResponse,
216
220
  } from "./interface/partner";
@@ -499,6 +503,46 @@ import {
499
503
  PatchMenuV2ItemRelationshipsModifierGroupBody,
500
504
  PatchMenuV2ItemRelationshipsModifierGroupResponse,
501
505
  DeleteMenuV2ItemRelationshipsModifierGroupResponse,
506
+ GetMenuV2MenusQuery,
507
+ GetMenuV2MenusResponse,
508
+ GetMenuV2MenuQuery,
509
+ GetMenuV2MenuResponse,
510
+ PatchMenuV2MenuBody,
511
+ PatchMenuV2MenuResponse,
512
+ DeleteMenuV2MenuResponse,
513
+ PostMenuV2MenuBody,
514
+ PostMenuV2MenuResponse,
515
+ GetMenuV2MenusCountQuery,
516
+ GetMenuV2MenusCountResponse,
517
+ GetMenuV2LayoutsQuery,
518
+ GetMenuV2LayoutsResponse,
519
+ GetMenuV2LayoutQuery,
520
+ GetMenuV2LayoutResponse,
521
+ PatchMenuV2LayoutBody,
522
+ PatchMenuV2LayoutResponse,
523
+ DeleteMenuV2LayoutResponse,
524
+ PostMenuV2LayoutBody,
525
+ PostMenuV2LayoutResponse,
526
+ GetMenuV2LayoutsCountQuery,
527
+ GetMenuV2LayoutsCountResponse,
528
+ GetMenuV2CategoriesQuery,
529
+ GetMenuV2CategoriesResponse,
530
+ GetMenuV2CategoryQuery,
531
+ GetMenuV2CategoryResponse,
532
+ PatchMenuV2CategoryBody,
533
+ PatchMenuV2CategoryResponse,
534
+ DeleteMenuV2CategoryResponse,
535
+ PostMenuV2CategoryBody,
536
+ PostMenuV2CategoryResponse,
537
+ GetMenuV2CategoriesCountQuery,
538
+ GetMenuV2CategoriesCountResponse,
539
+ GetMenuV2CategoryRelationshipsItemsQuery,
540
+ GetMenuV2CategoryRelationshipsItemsResponse,
541
+ PostMenuV2CategoryRelationshipsItemBody,
542
+ PostMenuV2CategoryRelationshipsItemResponse,
543
+ PatchMenuV2CategoryRelationshipsItemBody,
544
+ PatchMenuV2CategoryRelationshipsItemResponse,
545
+ DeleteMenuV2CategoryRelationshipsItemResponse,
502
546
  GetMenuClientQuery,
503
547
  GetMenuClientResponse,
504
548
  GetMenusQuery,
@@ -2343,7 +2387,7 @@ export class ServiceClient extends BaseServiceClient {
2343
2387
  }
2344
2388
 
2345
2389
  /**
2346
- * GET location/v2/groups - Get a list of groups
2390
+ * GET /location/v2/groups - Get a list of groups
2347
2391
  *
2348
2392
  * @param options - additional request options
2349
2393
  */
@@ -2356,7 +2400,7 @@ export class ServiceClient extends BaseServiceClient {
2356
2400
  "location",
2357
2401
  "get_location_v2_groups",
2358
2402
  "get",
2359
- `location/v2/groups`,
2403
+ `/location/v2/groups`,
2360
2404
  null,
2361
2405
  options
2362
2406
  );
@@ -2534,6 +2578,28 @@ export class ServiceClient extends BaseServiceClient {
2534
2578
  );
2535
2579
  }
2536
2580
 
2581
+ /**
2582
+ * GET /shoppingcart/{id}/paymentmethods - Get a list of payment methods for cart
2583
+ *
2584
+ * @param id - Shopping cart ID
2585
+ * @param options - additional request options
2586
+ */
2587
+ get_shoppingcart_payment_methods(
2588
+ id: string,
2589
+ options?: {
2590
+ query?: GetShoppingcartPaymentMethodsQuery;
2591
+ } & RequestOptions
2592
+ ): ResponsePromise<GetShoppingcartPaymentMethodsResponse> {
2593
+ return this.request(
2594
+ "shoppingcart",
2595
+ "get_shoppingcart_payment_methods",
2596
+ "get",
2597
+ `/shoppingcart/${id}/paymentmethods`,
2598
+ null,
2599
+ options
2600
+ );
2601
+ }
2602
+
2537
2603
  /**
2538
2604
  * PUT /shoppingcart/{id}/order/ - Store information about the order created with this shopping cart
2539
2605
  *
@@ -2700,6 +2766,28 @@ export class ServiceClient extends BaseServiceClient {
2700
2766
  );
2701
2767
  }
2702
2768
 
2769
+ /**
2770
+ * POST /partner/event/{id} - Send an event from 3rd party to our system
2771
+ *
2772
+ * @param id - provider
2773
+ * @param body
2774
+ * @param options - additional request options
2775
+ */
2776
+ post_partner_event(
2777
+ id: string,
2778
+ body: PostPartnerEventBody,
2779
+ options?: RequestOptions
2780
+ ): ResponsePromise<PostPartnerEventResponse> {
2781
+ return this.request(
2782
+ "partner",
2783
+ "post_partner_event",
2784
+ "post",
2785
+ `/partner/event/${id}`,
2786
+ body,
2787
+ options
2788
+ );
2789
+ }
2790
+
2703
2791
  /**
2704
2792
  * GET /partner/swagger.json
2705
2793
  *
@@ -5094,6 +5182,425 @@ export class ServiceClient extends BaseServiceClient {
5094
5182
  );
5095
5183
  }
5096
5184
 
5185
+ /**
5186
+ * GET /menu/v2/menus
5187
+ *
5188
+ * @param options - additional request options
5189
+ */
5190
+ get_menu_v2_menus(
5191
+ options?: {
5192
+ query?: GetMenuV2MenusQuery;
5193
+ } & RequestOptions
5194
+ ): ResponsePromise<GetMenuV2MenusResponse> {
5195
+ return this.request("menu", "get_menu_v2_menus", "get", `/menu/v2/menus`, null, options);
5196
+ }
5197
+
5198
+ /**
5199
+ * GET /menu/v2/menu/{id}
5200
+ *
5201
+ * @param id
5202
+ * @param options - additional request options
5203
+ */
5204
+ get_menu_v2_menu(
5205
+ id: string,
5206
+ options?: {
5207
+ query?: GetMenuV2MenuQuery;
5208
+ } & RequestOptions
5209
+ ): ResponsePromise<GetMenuV2MenuResponse> {
5210
+ return this.request("menu", "get_menu_v2_menu", "get", `/menu/v2/menu/${id}`, null, options);
5211
+ }
5212
+
5213
+ /**
5214
+ * PATCH /menu/v2/menu/{id}
5215
+ *
5216
+ * @param id
5217
+ * @param body
5218
+ * @param options - additional request options
5219
+ */
5220
+ patch_menu_v2_menu(
5221
+ id: string,
5222
+ body: PatchMenuV2MenuBody,
5223
+ options?: RequestOptions
5224
+ ): ResponsePromise<PatchMenuV2MenuResponse> {
5225
+ return this.request(
5226
+ "menu",
5227
+ "patch_menu_v2_menu",
5228
+ "patch",
5229
+ `/menu/v2/menu/${id}`,
5230
+ body,
5231
+ options
5232
+ );
5233
+ }
5234
+
5235
+ /**
5236
+ * DELETE /menu/v2/menu/{id}
5237
+ *
5238
+ * @param id
5239
+ * @param options - additional request options
5240
+ */
5241
+ delete_menu_v2_menu(
5242
+ id: string,
5243
+ options?: RequestOptions
5244
+ ): ResponsePromise<DeleteMenuV2MenuResponse> {
5245
+ return this.request(
5246
+ "menu",
5247
+ "delete_menu_v2_menu",
5248
+ "delete",
5249
+ `/menu/v2/menu/${id}`,
5250
+ null,
5251
+ options
5252
+ );
5253
+ }
5254
+
5255
+ /**
5256
+ * POST /menu/v2/menu
5257
+ *
5258
+ * @param body
5259
+ * @param options - additional request options
5260
+ */
5261
+ post_menu_v2_menu(
5262
+ body: PostMenuV2MenuBody,
5263
+ options?: RequestOptions
5264
+ ): ResponsePromise<PostMenuV2MenuResponse> {
5265
+ return this.request("menu", "post_menu_v2_menu", "post", `/menu/v2/menu`, body, options);
5266
+ }
5267
+
5268
+ /**
5269
+ * GET /menu/v2/menus/count
5270
+ *
5271
+ * @param options - additional request options
5272
+ */
5273
+ get_menu_v2_menus_count(
5274
+ options?: {
5275
+ query?: GetMenuV2MenusCountQuery;
5276
+ } & RequestOptions
5277
+ ): ResponsePromise<GetMenuV2MenusCountResponse> {
5278
+ return this.request(
5279
+ "menu",
5280
+ "get_menu_v2_menus_count",
5281
+ "get",
5282
+ `/menu/v2/menus/count`,
5283
+ null,
5284
+ options
5285
+ );
5286
+ }
5287
+
5288
+ /**
5289
+ * GET /menu/v2/layouts
5290
+ *
5291
+ * @param options - additional request options
5292
+ */
5293
+ get_menu_v2_layouts(
5294
+ options?: {
5295
+ query?: GetMenuV2LayoutsQuery;
5296
+ } & RequestOptions
5297
+ ): ResponsePromise<GetMenuV2LayoutsResponse> {
5298
+ return this.request("menu", "get_menu_v2_layouts", "get", `/menu/v2/layouts`, null, options);
5299
+ }
5300
+
5301
+ /**
5302
+ * GET /menu/v2/layout/{id}
5303
+ *
5304
+ * @param id
5305
+ * @param options - additional request options
5306
+ */
5307
+ get_menu_v2_layout(
5308
+ id: string,
5309
+ options?: {
5310
+ query?: GetMenuV2LayoutQuery;
5311
+ } & RequestOptions
5312
+ ): ResponsePromise<GetMenuV2LayoutResponse> {
5313
+ return this.request(
5314
+ "menu",
5315
+ "get_menu_v2_layout",
5316
+ "get",
5317
+ `/menu/v2/layout/${id}`,
5318
+ null,
5319
+ options
5320
+ );
5321
+ }
5322
+
5323
+ /**
5324
+ * PATCH /menu/v2/layout/{id}
5325
+ *
5326
+ * @param id
5327
+ * @param body
5328
+ * @param options - additional request options
5329
+ */
5330
+ patch_menu_v2_layout(
5331
+ id: string,
5332
+ body: PatchMenuV2LayoutBody,
5333
+ options?: RequestOptions
5334
+ ): ResponsePromise<PatchMenuV2LayoutResponse> {
5335
+ return this.request(
5336
+ "menu",
5337
+ "patch_menu_v2_layout",
5338
+ "patch",
5339
+ `/menu/v2/layout/${id}`,
5340
+ body,
5341
+ options
5342
+ );
5343
+ }
5344
+
5345
+ /**
5346
+ * DELETE /menu/v2/layout/{id}
5347
+ *
5348
+ * @param id
5349
+ * @param options - additional request options
5350
+ */
5351
+ delete_menu_v2_layout(
5352
+ id: string,
5353
+ options?: RequestOptions
5354
+ ): ResponsePromise<DeleteMenuV2LayoutResponse> {
5355
+ return this.request(
5356
+ "menu",
5357
+ "delete_menu_v2_layout",
5358
+ "delete",
5359
+ `/menu/v2/layout/${id}`,
5360
+ null,
5361
+ options
5362
+ );
5363
+ }
5364
+
5365
+ /**
5366
+ * POST /menu/v2/layout
5367
+ *
5368
+ * @param body
5369
+ * @param options - additional request options
5370
+ */
5371
+ post_menu_v2_layout(
5372
+ body: PostMenuV2LayoutBody,
5373
+ options?: RequestOptions
5374
+ ): ResponsePromise<PostMenuV2LayoutResponse> {
5375
+ return this.request("menu", "post_menu_v2_layout", "post", `/menu/v2/layout`, body, options);
5376
+ }
5377
+
5378
+ /**
5379
+ * GET /menu/v2/layouts/count
5380
+ *
5381
+ * @param options - additional request options
5382
+ */
5383
+ get_menu_v2_layouts_count(
5384
+ options?: {
5385
+ query?: GetMenuV2LayoutsCountQuery;
5386
+ } & RequestOptions
5387
+ ): ResponsePromise<GetMenuV2LayoutsCountResponse> {
5388
+ return this.request(
5389
+ "menu",
5390
+ "get_menu_v2_layouts_count",
5391
+ "get",
5392
+ `/menu/v2/layouts/count`,
5393
+ null,
5394
+ options
5395
+ );
5396
+ }
5397
+
5398
+ /**
5399
+ * GET /menu/v2/categories
5400
+ *
5401
+ * @param options - additional request options
5402
+ */
5403
+ get_menu_v2_categories(
5404
+ options?: {
5405
+ query?: GetMenuV2CategoriesQuery;
5406
+ } & RequestOptions
5407
+ ): ResponsePromise<GetMenuV2CategoriesResponse> {
5408
+ return this.request(
5409
+ "menu",
5410
+ "get_menu_v2_categories",
5411
+ "get",
5412
+ `/menu/v2/categories`,
5413
+ null,
5414
+ options
5415
+ );
5416
+ }
5417
+
5418
+ /**
5419
+ * GET /menu/v2/category/{id}
5420
+ *
5421
+ * @param id
5422
+ * @param options - additional request options
5423
+ */
5424
+ get_menu_v2_category(
5425
+ id: string,
5426
+ options?: {
5427
+ query?: GetMenuV2CategoryQuery;
5428
+ } & RequestOptions
5429
+ ): ResponsePromise<GetMenuV2CategoryResponse> {
5430
+ return this.request(
5431
+ "menu",
5432
+ "get_menu_v2_category",
5433
+ "get",
5434
+ `/menu/v2/category/${id}`,
5435
+ null,
5436
+ options
5437
+ );
5438
+ }
5439
+
5440
+ /**
5441
+ * PATCH /menu/v2/category/{id}
5442
+ *
5443
+ * @param id
5444
+ * @param body
5445
+ * @param options - additional request options
5446
+ */
5447
+ patch_menu_v2_category(
5448
+ id: string,
5449
+ body: PatchMenuV2CategoryBody,
5450
+ options?: RequestOptions
5451
+ ): ResponsePromise<PatchMenuV2CategoryResponse> {
5452
+ return this.request(
5453
+ "menu",
5454
+ "patch_menu_v2_category",
5455
+ "patch",
5456
+ `/menu/v2/category/${id}`,
5457
+ body,
5458
+ options
5459
+ );
5460
+ }
5461
+
5462
+ /**
5463
+ * DELETE /menu/v2/category/{id}
5464
+ *
5465
+ * @param id
5466
+ * @param options - additional request options
5467
+ */
5468
+ delete_menu_v2_category(
5469
+ id: string,
5470
+ options?: RequestOptions
5471
+ ): ResponsePromise<DeleteMenuV2CategoryResponse> {
5472
+ return this.request(
5473
+ "menu",
5474
+ "delete_menu_v2_category",
5475
+ "delete",
5476
+ `/menu/v2/category/${id}`,
5477
+ null,
5478
+ options
5479
+ );
5480
+ }
5481
+
5482
+ /**
5483
+ * POST /menu/v2/category
5484
+ *
5485
+ * @param body
5486
+ * @param options - additional request options
5487
+ */
5488
+ post_menu_v2_category(
5489
+ body: PostMenuV2CategoryBody,
5490
+ options?: RequestOptions
5491
+ ): ResponsePromise<PostMenuV2CategoryResponse> {
5492
+ return this.request(
5493
+ "menu",
5494
+ "post_menu_v2_category",
5495
+ "post",
5496
+ `/menu/v2/category`,
5497
+ body,
5498
+ options
5499
+ );
5500
+ }
5501
+
5502
+ /**
5503
+ * GET /menu/v2/categories/count
5504
+ *
5505
+ * @param options - additional request options
5506
+ */
5507
+ get_menu_v2_categories_count(
5508
+ options?: {
5509
+ query?: GetMenuV2CategoriesCountQuery;
5510
+ } & RequestOptions
5511
+ ): ResponsePromise<GetMenuV2CategoriesCountResponse> {
5512
+ return this.request(
5513
+ "menu",
5514
+ "get_menu_v2_categories_count",
5515
+ "get",
5516
+ `/menu/v2/categories/count`,
5517
+ null,
5518
+ options
5519
+ );
5520
+ }
5521
+
5522
+ /**
5523
+ * GET /menu/v2/category/relationships/items
5524
+ *
5525
+ * @param options - additional request options
5526
+ */
5527
+ get_menu_v2_category_relationships_items(
5528
+ options?: {
5529
+ query?: GetMenuV2CategoryRelationshipsItemsQuery;
5530
+ } & RequestOptions
5531
+ ): ResponsePromise<GetMenuV2CategoryRelationshipsItemsResponse> {
5532
+ return this.request(
5533
+ "menu",
5534
+ "get_menu_v2_category_relationships_items",
5535
+ "get",
5536
+ `/menu/v2/category/relationships/items`,
5537
+ null,
5538
+ options
5539
+ );
5540
+ }
5541
+
5542
+ /**
5543
+ * POST /menu/v2/category/relationships/item
5544
+ *
5545
+ * @param body
5546
+ * @param options - additional request options
5547
+ */
5548
+ post_menu_v2_category_relationships_item(
5549
+ body: PostMenuV2CategoryRelationshipsItemBody,
5550
+ options?: RequestOptions
5551
+ ): ResponsePromise<PostMenuV2CategoryRelationshipsItemResponse> {
5552
+ return this.request(
5553
+ "menu",
5554
+ "post_menu_v2_category_relationships_item",
5555
+ "post",
5556
+ `/menu/v2/category/relationships/item`,
5557
+ body,
5558
+ options
5559
+ );
5560
+ }
5561
+
5562
+ /**
5563
+ * PATCH /menu/v2/category/relationships/item/{id}
5564
+ *
5565
+ * @param id
5566
+ * @param body
5567
+ * @param options - additional request options
5568
+ */
5569
+ patch_menu_v2_category_relationships_item(
5570
+ id: string,
5571
+ body: PatchMenuV2CategoryRelationshipsItemBody,
5572
+ options?: RequestOptions
5573
+ ): ResponsePromise<PatchMenuV2CategoryRelationshipsItemResponse> {
5574
+ return this.request(
5575
+ "menu",
5576
+ "patch_menu_v2_category_relationships_item",
5577
+ "patch",
5578
+ `/menu/v2/category/relationships/item/${id}`,
5579
+ body,
5580
+ options
5581
+ );
5582
+ }
5583
+
5584
+ /**
5585
+ * DELETE /menu/v2/category/relationships/item/{id}
5586
+ *
5587
+ * @param id
5588
+ * @param options - additional request options
5589
+ */
5590
+ delete_menu_v2_category_relationships_item(
5591
+ id: string,
5592
+ options?: RequestOptions
5593
+ ): ResponsePromise<DeleteMenuV2CategoryRelationshipsItemResponse> {
5594
+ return this.request(
5595
+ "menu",
5596
+ "delete_menu_v2_category_relationships_item",
5597
+ "delete",
5598
+ `/menu/v2/category/relationships/item/${id}`,
5599
+ null,
5600
+ options
5601
+ );
5602
+ }
5603
+
5097
5604
  /**
5098
5605
  * GET /menu/client/{client_id} - Get menu client
5099
5606
  *
@@ -1407,7 +1407,7 @@ export interface DeleteLocationRecordRequest
1407
1407
  RequestQuery<DeleteLocationRecordQuery>,
1408
1408
  DeleteLocationRecordPath {}
1409
1409
 
1410
- // GET location/v2/groups - Get a list of groups
1410
+ // GET /location/v2/groups - Get a list of groups
1411
1411
 
1412
1412
  export interface GetLocationV2GroupsQuery {
1413
1413
  // Filter groups by multigroup id. Should be like an array of string