@compassdigital/sdk.typescript 3.44.2 → 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/lib/index.d.ts +233 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +258 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/location.d.ts +23 -0
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +247 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/order.d.ts +1 -0
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +11 -12
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +5 -0
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +114 -55
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/package.json +1 -1
- package/quicktest.json +8 -0
- package/src/index.ts +622 -1
- package/src/interface/location.ts +37 -0
- package/src/interface/menu.ts +420 -0
- package/src/interface/order.ts +2 -0
- package/src/interface/partner.ts +18 -14
- package/src/interface/payment.ts +10 -0
- package/src/interface/shoppingcart.ts +136 -54
package/src/index.ts
CHANGED
|
@@ -172,6 +172,8 @@ import {
|
|
|
172
172
|
PatchLocationCompanyResponse,
|
|
173
173
|
DeleteLocationRecordQuery,
|
|
174
174
|
DeleteLocationRecordResponse,
|
|
175
|
+
GetLocationV2GroupsQuery,
|
|
176
|
+
GetLocationV2GroupsResponse,
|
|
175
177
|
} from "./interface/location";
|
|
176
178
|
|
|
177
179
|
import {
|
|
@@ -190,8 +192,11 @@ import {
|
|
|
190
192
|
DeleteShoppingcartCartPromoResponse,
|
|
191
193
|
PutShoppingcartCartPaymentBody,
|
|
192
194
|
PutShoppingcartCartPaymentResponse,
|
|
195
|
+
GetShoppingcartPaymentMethodsQuery,
|
|
196
|
+
GetShoppingcartPaymentMethodsResponse,
|
|
193
197
|
PutShoppingcartCartOrderBody,
|
|
194
198
|
PutShoppingcartCartOrderResponse,
|
|
199
|
+
PostShoppingcartCloneCartQuery,
|
|
195
200
|
PostShoppingcartCloneCartBody,
|
|
196
201
|
PostShoppingcartCloneCartResponse,
|
|
197
202
|
PutShoppingcartCheckoutResponse,
|
|
@@ -208,6 +213,8 @@ import {
|
|
|
208
213
|
GetPartnerStandardcognitionStoresResponse,
|
|
209
214
|
PostPartnerStandardcognitionMenuBody,
|
|
210
215
|
PostPartnerStandardcognitionMenuResponse,
|
|
216
|
+
PostPartnerEventBody,
|
|
217
|
+
PostPartnerEventResponse,
|
|
211
218
|
GetPartnerSwaggerQuery,
|
|
212
219
|
GetPartnerSwaggerResponse,
|
|
213
220
|
} from "./interface/partner";
|
|
@@ -489,6 +496,53 @@ import {
|
|
|
489
496
|
PostMenuV2ItemResponse,
|
|
490
497
|
GetMenuV2ItemsCountQuery,
|
|
491
498
|
GetMenuV2ItemsCountResponse,
|
|
499
|
+
GetMenuV2ItemRelationshipsModifierGroupsQuery,
|
|
500
|
+
GetMenuV2ItemRelationshipsModifierGroupsResponse,
|
|
501
|
+
PostMenuV2ItemRelationshipsModifierGroupBody,
|
|
502
|
+
PostMenuV2ItemRelationshipsModifierGroupResponse,
|
|
503
|
+
PatchMenuV2ItemRelationshipsModifierGroupBody,
|
|
504
|
+
PatchMenuV2ItemRelationshipsModifierGroupResponse,
|
|
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,
|
|
492
546
|
GetMenuClientQuery,
|
|
493
547
|
GetMenuClientResponse,
|
|
494
548
|
GetMenusQuery,
|
|
@@ -2332,6 +2386,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2332
2386
|
);
|
|
2333
2387
|
}
|
|
2334
2388
|
|
|
2389
|
+
/**
|
|
2390
|
+
* GET /location/v2/groups - Get a list of groups
|
|
2391
|
+
*
|
|
2392
|
+
* @param options - additional request options
|
|
2393
|
+
*/
|
|
2394
|
+
get_location_v2_groups(
|
|
2395
|
+
options?: {
|
|
2396
|
+
query?: GetLocationV2GroupsQuery;
|
|
2397
|
+
} & RequestOptions
|
|
2398
|
+
): ResponsePromise<GetLocationV2GroupsResponse> {
|
|
2399
|
+
return this.request(
|
|
2400
|
+
"location",
|
|
2401
|
+
"get_location_v2_groups",
|
|
2402
|
+
"get",
|
|
2403
|
+
`/location/v2/groups`,
|
|
2404
|
+
null,
|
|
2405
|
+
options
|
|
2406
|
+
);
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2335
2409
|
/**
|
|
2336
2410
|
* POST /shoppingcart/ - Create a new ShoppingCart
|
|
2337
2411
|
*
|
|
@@ -2504,6 +2578,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2504
2578
|
);
|
|
2505
2579
|
}
|
|
2506
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
|
+
|
|
2507
2603
|
/**
|
|
2508
2604
|
* PUT /shoppingcart/{id}/order/ - Store information about the order created with this shopping cart
|
|
2509
2605
|
*
|
|
@@ -2536,7 +2632,9 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2536
2632
|
post_shoppingcart_clone_cart(
|
|
2537
2633
|
id: string,
|
|
2538
2634
|
body: PostShoppingcartCloneCartBody,
|
|
2539
|
-
options?:
|
|
2635
|
+
options?: {
|
|
2636
|
+
query?: PostShoppingcartCloneCartQuery;
|
|
2637
|
+
} & RequestOptions
|
|
2540
2638
|
): ResponsePromise<PostShoppingcartCloneCartResponse> {
|
|
2541
2639
|
return this.request(
|
|
2542
2640
|
"shoppingcart",
|
|
@@ -2668,6 +2766,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2668
2766
|
);
|
|
2669
2767
|
}
|
|
2670
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
|
+
|
|
2671
2791
|
/**
|
|
2672
2792
|
* GET /partner/swagger.json
|
|
2673
2793
|
*
|
|
@@ -4980,6 +5100,507 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4980
5100
|
);
|
|
4981
5101
|
}
|
|
4982
5102
|
|
|
5103
|
+
/**
|
|
5104
|
+
* GET /menu/v2/item/relationships/modifier-groups
|
|
5105
|
+
*
|
|
5106
|
+
* @param options - additional request options
|
|
5107
|
+
*/
|
|
5108
|
+
get_menu_v2_item_relationships_modifier_groups(
|
|
5109
|
+
options?: {
|
|
5110
|
+
query?: GetMenuV2ItemRelationshipsModifierGroupsQuery;
|
|
5111
|
+
} & RequestOptions
|
|
5112
|
+
): ResponsePromise<GetMenuV2ItemRelationshipsModifierGroupsResponse> {
|
|
5113
|
+
return this.request(
|
|
5114
|
+
"menu",
|
|
5115
|
+
"get_menu_v2_item_relationships_modifier_groups",
|
|
5116
|
+
"get",
|
|
5117
|
+
`/menu/v2/item/relationships/modifier-groups`,
|
|
5118
|
+
null,
|
|
5119
|
+
options
|
|
5120
|
+
);
|
|
5121
|
+
}
|
|
5122
|
+
|
|
5123
|
+
/**
|
|
5124
|
+
* POST /menu/v2/item/relationships/modifier-group
|
|
5125
|
+
*
|
|
5126
|
+
* @param body
|
|
5127
|
+
* @param options - additional request options
|
|
5128
|
+
*/
|
|
5129
|
+
post_menu_v2_item_relationships_modifier_group(
|
|
5130
|
+
body: PostMenuV2ItemRelationshipsModifierGroupBody,
|
|
5131
|
+
options?: RequestOptions
|
|
5132
|
+
): ResponsePromise<PostMenuV2ItemRelationshipsModifierGroupResponse> {
|
|
5133
|
+
return this.request(
|
|
5134
|
+
"menu",
|
|
5135
|
+
"post_menu_v2_item_relationships_modifier_group",
|
|
5136
|
+
"post",
|
|
5137
|
+
`/menu/v2/item/relationships/modifier-group`,
|
|
5138
|
+
body,
|
|
5139
|
+
options
|
|
5140
|
+
);
|
|
5141
|
+
}
|
|
5142
|
+
|
|
5143
|
+
/**
|
|
5144
|
+
* PATCH /menu/v2/item/relationships/modifier-group/{id}
|
|
5145
|
+
*
|
|
5146
|
+
* @param id
|
|
5147
|
+
* @param body
|
|
5148
|
+
* @param options - additional request options
|
|
5149
|
+
*/
|
|
5150
|
+
patch_menu_v2_item_relationships_modifier_group(
|
|
5151
|
+
id: string,
|
|
5152
|
+
body: PatchMenuV2ItemRelationshipsModifierGroupBody,
|
|
5153
|
+
options?: RequestOptions
|
|
5154
|
+
): ResponsePromise<PatchMenuV2ItemRelationshipsModifierGroupResponse> {
|
|
5155
|
+
return this.request(
|
|
5156
|
+
"menu",
|
|
5157
|
+
"patch_menu_v2_item_relationships_modifier_group",
|
|
5158
|
+
"patch",
|
|
5159
|
+
`/menu/v2/item/relationships/modifier-group/${id}`,
|
|
5160
|
+
body,
|
|
5161
|
+
options
|
|
5162
|
+
);
|
|
5163
|
+
}
|
|
5164
|
+
|
|
5165
|
+
/**
|
|
5166
|
+
* DELETE /menu/v2/item/relationships/modifier-group/{id}
|
|
5167
|
+
*
|
|
5168
|
+
* @param id
|
|
5169
|
+
* @param options - additional request options
|
|
5170
|
+
*/
|
|
5171
|
+
delete_menu_v2_item_relationships_modifier_group(
|
|
5172
|
+
id: string,
|
|
5173
|
+
options?: RequestOptions
|
|
5174
|
+
): ResponsePromise<DeleteMenuV2ItemRelationshipsModifierGroupResponse> {
|
|
5175
|
+
return this.request(
|
|
5176
|
+
"menu",
|
|
5177
|
+
"delete_menu_v2_item_relationships_modifier_group",
|
|
5178
|
+
"delete",
|
|
5179
|
+
`/menu/v2/item/relationships/modifier-group/${id}`,
|
|
5180
|
+
null,
|
|
5181
|
+
options
|
|
5182
|
+
);
|
|
5183
|
+
}
|
|
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
|
+
|
|
4983
5604
|
/**
|
|
4984
5605
|
* GET /menu/client/{client_id} - Get menu client
|
|
4985
5606
|
*
|
|
@@ -1406,3 +1406,40 @@ export interface DeleteLocationRecordRequest
|
|
|
1406
1406
|
extends BaseRequest,
|
|
1407
1407
|
RequestQuery<DeleteLocationRecordQuery>,
|
|
1408
1408
|
DeleteLocationRecordPath {}
|
|
1409
|
+
|
|
1410
|
+
// GET /location/v2/groups - Get a list of groups
|
|
1411
|
+
|
|
1412
|
+
export interface GetLocationV2GroupsQuery {
|
|
1413
|
+
// Filter groups by multigroup id. Should be like an array of string
|
|
1414
|
+
id_multigroups?: string;
|
|
1415
|
+
// The number of items per page to return
|
|
1416
|
+
limit?: number;
|
|
1417
|
+
// ASC or DESC
|
|
1418
|
+
sortOrder?: string;
|
|
1419
|
+
// The page number to return
|
|
1420
|
+
page?: number;
|
|
1421
|
+
// Expand group results with children locations and brands
|
|
1422
|
+
expanded?: boolean;
|
|
1423
|
+
// Filter groups by given string
|
|
1424
|
+
filter?: string;
|
|
1425
|
+
// Graphql query string
|
|
1426
|
+
_query?: string;
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
export interface GetLocationV2GroupsResponse {
|
|
1430
|
+
meta?: {
|
|
1431
|
+
limit?: number;
|
|
1432
|
+
page?: number;
|
|
1433
|
+
totalResults?: number;
|
|
1434
|
+
totalPages?: number;
|
|
1435
|
+
resultsCount?: number;
|
|
1436
|
+
sortOrder?: string;
|
|
1437
|
+
sortBy?: string;
|
|
1438
|
+
};
|
|
1439
|
+
// An Array of Groups
|
|
1440
|
+
results?: Group[];
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
export interface GetLocationV2GroupsRequest
|
|
1444
|
+
extends BaseRequest,
|
|
1445
|
+
RequestQuery<GetLocationV2GroupsQuery> {}
|