@compassdigital/sdk.typescript 4.97.0 → 4.99.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 +115 -17
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +132 -22
- package/lib/index.js.map +1 -1
- package/lib/interface/announcement.d.ts +2 -2
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +1 -1
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +430 -62
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +559 -67
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/order.d.ts +22 -0
- package/lib/interface/order.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +321 -46
- package/src/interface/announcement.ts +2 -2
- package/src/interface/centricos.ts +1 -1
- package/src/interface/consumer.ts +567 -70
- package/src/interface/mealplan.ts +0 -3
- package/src/interface/menu.ts +649 -80
- package/src/interface/order.ts +25 -24
package/lib/interface/menu.d.ts
CHANGED
|
@@ -361,6 +361,7 @@ export interface GlobalMenuGroupDTO {
|
|
|
361
361
|
name?: string;
|
|
362
362
|
is_active?: boolean;
|
|
363
363
|
posid_segment?: string;
|
|
364
|
+
auto_push_to_local?: boolean;
|
|
364
365
|
id?: string;
|
|
365
366
|
permissions?: Record<string, any>;
|
|
366
367
|
[index: string]: any;
|
|
@@ -1271,10 +1272,6 @@ export interface V2MetaDTO {
|
|
|
1271
1272
|
last_modified_user?: string;
|
|
1272
1273
|
version?: number;
|
|
1273
1274
|
}
|
|
1274
|
-
export interface LineRouteSuggestion {
|
|
1275
|
-
line_route?: string;
|
|
1276
|
-
occurrences?: number;
|
|
1277
|
-
}
|
|
1278
1275
|
export interface DraftItemEntityDTO {
|
|
1279
1276
|
is_published?: boolean;
|
|
1280
1277
|
parent?: DraftItemDTO;
|
|
@@ -1319,6 +1316,10 @@ export interface DraftItemEntityDTO {
|
|
|
1319
1316
|
permissions?: Record<string, any>;
|
|
1320
1317
|
[index: string]: any;
|
|
1321
1318
|
}
|
|
1319
|
+
export interface LineRouteSuggestion {
|
|
1320
|
+
line_route?: string;
|
|
1321
|
+
occurrences?: number;
|
|
1322
|
+
}
|
|
1322
1323
|
export interface DraftModifierEntityDTO {
|
|
1323
1324
|
parent?: DraftModifierDTO;
|
|
1324
1325
|
children?: DraftModifierDTO[];
|
|
@@ -2021,6 +2022,7 @@ export interface PostMenuV3GlobalMenuGroupBody {
|
|
|
2021
2022
|
draft_brands?: DraftBrandDTO[];
|
|
2022
2023
|
published_brands?: PublishedBrandDTO[];
|
|
2023
2024
|
posid_segment: string;
|
|
2025
|
+
auto_push_to_local?: boolean;
|
|
2024
2026
|
vendor_metadata?: VendorMetadataDTO[];
|
|
2025
2027
|
permissions?: Record<string, any>;
|
|
2026
2028
|
[index: string]: any;
|
|
@@ -2050,6 +2052,7 @@ export interface PatchMenuV3GlobalMenuGroupBody {
|
|
|
2050
2052
|
draft_brands?: DraftBrandDTO[];
|
|
2051
2053
|
published_brands?: PublishedBrandDTO[];
|
|
2052
2054
|
posid_segment?: string;
|
|
2055
|
+
auto_push_to_local?: boolean;
|
|
2053
2056
|
id?: string;
|
|
2054
2057
|
version?: number;
|
|
2055
2058
|
vendor_metadata?: VendorMetadataDTO[];
|
|
@@ -2074,6 +2077,7 @@ export interface DeleteMenuV3GlobalMenuGroupResponse {
|
|
|
2074
2077
|
draft_brands?: DraftBrandDTO[];
|
|
2075
2078
|
published_brands?: PublishedBrandDTO[];
|
|
2076
2079
|
posid_segment: string;
|
|
2080
|
+
auto_push_to_local?: boolean;
|
|
2077
2081
|
id: string;
|
|
2078
2082
|
created_at?: string;
|
|
2079
2083
|
updated_at?: string;
|
|
@@ -2110,6 +2114,7 @@ export type PostMenuV3GlobalMenuGroupsBody = {
|
|
|
2110
2114
|
draft_brands?: DraftBrandDTO[];
|
|
2111
2115
|
published_brands?: PublishedBrandDTO[];
|
|
2112
2116
|
posid_segment: string;
|
|
2117
|
+
auto_push_to_local?: boolean;
|
|
2113
2118
|
vendor_metadata?: VendorMetadataDTO[];
|
|
2114
2119
|
permissions?: Record<string, any>;
|
|
2115
2120
|
[index: string]: any;
|
|
@@ -3310,6 +3315,27 @@ export interface PostMenuV3DraftCategoryDuplicateResponse {
|
|
|
3310
3315
|
export interface PostMenuV3DraftCategoryDuplicateRequest extends BaseRequest, PostMenuV3DraftCategoryDuplicatePath {
|
|
3311
3316
|
body: PostMenuV3DraftCategoryDuplicateBody;
|
|
3312
3317
|
}
|
|
3318
|
+
export interface GetMenuV3DraftCategoryUnattachedItemsPath {
|
|
3319
|
+
id: string;
|
|
3320
|
+
}
|
|
3321
|
+
export interface GetMenuV3DraftCategoryUnattachedItemsQuery {
|
|
3322
|
+
filter?: string;
|
|
3323
|
+
select?: string[];
|
|
3324
|
+
relationships?: string[];
|
|
3325
|
+
limit?: number;
|
|
3326
|
+
page?: number;
|
|
3327
|
+
sort_by?: string;
|
|
3328
|
+
sort_order?: 'DESC' | 'ASC';
|
|
3329
|
+
soft_deleted?: 'include' | 'exclude' | 'only';
|
|
3330
|
+
_query?: string;
|
|
3331
|
+
}
|
|
3332
|
+
export interface GetMenuV3DraftCategoryUnattachedItemsResponse {
|
|
3333
|
+
results: DraftItemEntityDTO[];
|
|
3334
|
+
meta?: ListResponseMetadataDTO;
|
|
3335
|
+
[index: string]: any;
|
|
3336
|
+
}
|
|
3337
|
+
export interface GetMenuV3DraftCategoryUnattachedItemsRequest extends BaseRequest, RequestQuery<GetMenuV3DraftCategoryUnattachedItemsQuery>, GetMenuV3DraftCategoryUnattachedItemsPath {
|
|
3338
|
+
}
|
|
3313
3339
|
export interface GetMenuV3CategoryPath {
|
|
3314
3340
|
id: string;
|
|
3315
3341
|
}
|
|
@@ -5085,6 +5111,50 @@ export interface GetMenuV4BrandResponse {
|
|
|
5085
5111
|
}
|
|
5086
5112
|
export interface GetMenuV4BrandRequest extends BaseRequest, RequestQuery<GetMenuV4BrandQuery>, GetMenuV4BrandPath {
|
|
5087
5113
|
}
|
|
5114
|
+
export interface DeleteMenuV4BrandPath {
|
|
5115
|
+
id: string;
|
|
5116
|
+
}
|
|
5117
|
+
export interface DeleteMenuV4BrandResponse {
|
|
5118
|
+
parent?: DraftBrandDTO;
|
|
5119
|
+
children?: DraftBrandDTO[];
|
|
5120
|
+
menus?: DraftMenuDTO[];
|
|
5121
|
+
categories?: DraftCategoryDTO[];
|
|
5122
|
+
category_to_item_relationships?: DraftCategoryToItemRelationshipDTO[];
|
|
5123
|
+
items?: DraftItemDTO[];
|
|
5124
|
+
item_to_modifier_group_relationships?: DraftItemToModifierGroupRelationshipDTO[];
|
|
5125
|
+
modifier_groups?: DraftModifierGroupDTO[];
|
|
5126
|
+
modifier_group_to_modifier_relationships?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
5127
|
+
modifiers?: DraftModifierDTO[];
|
|
5128
|
+
statuses?: BrandStatusDTO[];
|
|
5129
|
+
audit_logs?: AuditDTO[];
|
|
5130
|
+
id: string;
|
|
5131
|
+
created_at?: string;
|
|
5132
|
+
updated_at?: string;
|
|
5133
|
+
deleted_at?: string;
|
|
5134
|
+
name: string;
|
|
5135
|
+
description?: string;
|
|
5136
|
+
is_active?: boolean;
|
|
5137
|
+
type?: 'global' | 'local';
|
|
5138
|
+
parent_id?: string;
|
|
5139
|
+
local_menu_group_id?: string;
|
|
5140
|
+
global_menu_group_id?: string;
|
|
5141
|
+
posid_segment?: string;
|
|
5142
|
+
is_simplified_view?: boolean;
|
|
5143
|
+
frictionless_partner?: string;
|
|
5144
|
+
catalog_id?: number;
|
|
5145
|
+
meta?: BrandMeta;
|
|
5146
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
5147
|
+
version?: number;
|
|
5148
|
+
changes?: BrandChangeDTO[];
|
|
5149
|
+
local_menu_group?: LocalMenuGroupDTO;
|
|
5150
|
+
global_menu_group?: GlobalMenuGroupDTO;
|
|
5151
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
5152
|
+
attachments?: FileAttachmentsDTO;
|
|
5153
|
+
permissions?: Record<string, any>;
|
|
5154
|
+
[index: string]: any;
|
|
5155
|
+
}
|
|
5156
|
+
export interface DeleteMenuV4BrandRequest extends BaseRequest, DeleteMenuV4BrandPath {
|
|
5157
|
+
}
|
|
5088
5158
|
export interface PostMenuV4BrandMenuPath {
|
|
5089
5159
|
id: string;
|
|
5090
5160
|
}
|
|
@@ -5166,6 +5236,31 @@ export interface PatchMenuV4BrandMenuResponse {
|
|
|
5166
5236
|
export interface PatchMenuV4BrandMenuRequest extends BaseRequest, PatchMenuV4BrandMenuPath {
|
|
5167
5237
|
body: PatchMenuV4BrandMenuBody;
|
|
5168
5238
|
}
|
|
5239
|
+
export interface DeleteMenuV4BrandMenuPath {
|
|
5240
|
+
brand_id: string;
|
|
5241
|
+
menu_id: string;
|
|
5242
|
+
}
|
|
5243
|
+
export interface DeleteMenuV4BrandMenuResponse {
|
|
5244
|
+
parent?: DraftMenuDTO;
|
|
5245
|
+
children?: DraftMenuDTO[];
|
|
5246
|
+
categories?: DraftCategoryDTO[];
|
|
5247
|
+
id: string;
|
|
5248
|
+
created_at?: string;
|
|
5249
|
+
updated_at?: string;
|
|
5250
|
+
deleted_at?: string;
|
|
5251
|
+
parent_id?: string;
|
|
5252
|
+
name: string;
|
|
5253
|
+
brand_id: string;
|
|
5254
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
5255
|
+
version?: number;
|
|
5256
|
+
brand?: DraftBrandDTO;
|
|
5257
|
+
changes?: MenuChangeDTO[];
|
|
5258
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
5259
|
+
permissions?: Record<string, any>;
|
|
5260
|
+
[index: string]: any;
|
|
5261
|
+
}
|
|
5262
|
+
export interface DeleteMenuV4BrandMenuRequest extends BaseRequest, DeleteMenuV4BrandMenuPath {
|
|
5263
|
+
}
|
|
5169
5264
|
export interface GetMenuV4BrandItemsPath {
|
|
5170
5265
|
id: string;
|
|
5171
5266
|
}
|
|
@@ -5351,6 +5446,37 @@ export interface PatchMenuV4BrandCategoryResponse {
|
|
|
5351
5446
|
export interface PatchMenuV4BrandCategoryRequest extends BaseRequest, PatchMenuV4BrandCategoryPath {
|
|
5352
5447
|
body: PatchMenuV4BrandCategoryBody;
|
|
5353
5448
|
}
|
|
5449
|
+
export interface DeleteMenuV4BrandCategoryPath {
|
|
5450
|
+
brand_id: string;
|
|
5451
|
+
category_id: string;
|
|
5452
|
+
}
|
|
5453
|
+
export interface DeleteMenuV4BrandCategoryResponse {
|
|
5454
|
+
parent?: DraftCategoryDTO;
|
|
5455
|
+
children?: DraftCategoryDTO[];
|
|
5456
|
+
id: string;
|
|
5457
|
+
created_at?: string;
|
|
5458
|
+
updated_at?: string;
|
|
5459
|
+
deleted_at?: string;
|
|
5460
|
+
parent_id?: string;
|
|
5461
|
+
name: string;
|
|
5462
|
+
label?: string;
|
|
5463
|
+
sequence?: number;
|
|
5464
|
+
is_active?: boolean;
|
|
5465
|
+
brand_id: string;
|
|
5466
|
+
menu_id: string;
|
|
5467
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
5468
|
+
version?: number;
|
|
5469
|
+
menu?: DraftMenuDTO;
|
|
5470
|
+
items?: DraftCategoryToItemRelationshipDTO[];
|
|
5471
|
+
brand?: DraftBrandDTO;
|
|
5472
|
+
changes?: CategoryChangeDTO[];
|
|
5473
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
5474
|
+
attachments?: FileAttachmentsDTO;
|
|
5475
|
+
permissions?: Record<string, any>;
|
|
5476
|
+
[index: string]: any;
|
|
5477
|
+
}
|
|
5478
|
+
export interface DeleteMenuV4BrandCategoryRequest extends BaseRequest, DeleteMenuV4BrandCategoryPath {
|
|
5479
|
+
}
|
|
5354
5480
|
export interface PostMenuV4BrandCategoryAttachItemsPath {
|
|
5355
5481
|
id: string;
|
|
5356
5482
|
}
|
|
@@ -5393,65 +5519,72 @@ export interface PostMenuV4BrandV3ToV4Response {
|
|
|
5393
5519
|
}
|
|
5394
5520
|
export interface PostMenuV4BrandV3ToV4Request extends BaseRequest, PostMenuV4BrandV3ToV4Path {
|
|
5395
5521
|
}
|
|
5396
|
-
export interface
|
|
5397
|
-
|
|
5522
|
+
export interface PostMenuV4BrandCategoryDuplicatePath {
|
|
5523
|
+
brand_id: string;
|
|
5524
|
+
category_id: string;
|
|
5398
5525
|
}
|
|
5399
|
-
export interface
|
|
5400
|
-
parent?:
|
|
5401
|
-
children?:
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5526
|
+
export interface PostMenuV4BrandCategoryDuplicateBody {
|
|
5527
|
+
parent?: DraftCategoryDTO;
|
|
5528
|
+
children?: DraftCategoryDTO[];
|
|
5529
|
+
id?: string;
|
|
5530
|
+
parent_id?: string;
|
|
5531
|
+
name?: string;
|
|
5532
|
+
label?: string;
|
|
5533
|
+
sequence?: number;
|
|
5534
|
+
is_active?: boolean;
|
|
5535
|
+
brand_id?: string;
|
|
5536
|
+
menu_id?: string;
|
|
5537
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
5538
|
+
version?: number;
|
|
5539
|
+
menu?: DraftMenuDTO;
|
|
5540
|
+
items?: DraftCategoryToItemRelationshipDTO[];
|
|
5541
|
+
brand?: DraftBrandDTO;
|
|
5542
|
+
changes?: CategoryChangeDTO[];
|
|
5543
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
5544
|
+
attachments?: FileAttachmentsDTO;
|
|
5545
|
+
permissions?: Record<string, any>;
|
|
5546
|
+
[index: string]: any;
|
|
5547
|
+
}
|
|
5548
|
+
export interface PostMenuV4BrandCategoryDuplicateResponse {
|
|
5549
|
+
parent?: DraftCategoryDTO;
|
|
5550
|
+
children?: DraftCategoryDTO[];
|
|
5412
5551
|
id: string;
|
|
5413
5552
|
created_at?: string;
|
|
5414
5553
|
updated_at?: string;
|
|
5415
5554
|
deleted_at?: string;
|
|
5555
|
+
parent_id?: string;
|
|
5416
5556
|
name: string;
|
|
5417
|
-
|
|
5557
|
+
label?: string;
|
|
5558
|
+
sequence?: number;
|
|
5418
5559
|
is_active?: boolean;
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
local_menu_group_id?: string;
|
|
5422
|
-
global_menu_group_id?: string;
|
|
5423
|
-
posid_segment?: string;
|
|
5424
|
-
is_simplified_view?: boolean;
|
|
5425
|
-
frictionless_partner?: string;
|
|
5426
|
-
catalog_id?: number;
|
|
5427
|
-
meta?: BrandMeta;
|
|
5560
|
+
brand_id: string;
|
|
5561
|
+
menu_id: string;
|
|
5428
5562
|
applied_diff_snapshot?: Record<string, any>;
|
|
5429
5563
|
version?: number;
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5564
|
+
menu?: DraftMenuDTO;
|
|
5565
|
+
items?: DraftCategoryToItemRelationshipDTO[];
|
|
5566
|
+
brand?: DraftBrandDTO;
|
|
5567
|
+
changes?: CategoryChangeDTO[];
|
|
5433
5568
|
vendor_metadata?: VendorMetadataDTO[];
|
|
5434
5569
|
attachments?: FileAttachmentsDTO;
|
|
5435
5570
|
permissions?: Record<string, any>;
|
|
5436
5571
|
[index: string]: any;
|
|
5437
5572
|
}
|
|
5438
|
-
export interface
|
|
5573
|
+
export interface PostMenuV4BrandCategoryDuplicateRequest extends BaseRequest, PostMenuV4BrandCategoryDuplicatePath {
|
|
5574
|
+
body: PostMenuV4BrandCategoryDuplicateBody;
|
|
5439
5575
|
}
|
|
5440
|
-
export interface
|
|
5576
|
+
export interface PostMenuV4BrandMenuDuplicatePath {
|
|
5441
5577
|
brand_id: string;
|
|
5442
5578
|
menu_id: string;
|
|
5443
5579
|
}
|
|
5444
|
-
export interface
|
|
5580
|
+
export interface PostMenuV4BrandMenuDuplicateBody {
|
|
5445
5581
|
parent?: DraftMenuDTO;
|
|
5446
5582
|
children?: DraftMenuDTO[];
|
|
5447
5583
|
categories?: DraftCategoryDTO[];
|
|
5448
|
-
id
|
|
5449
|
-
created_at?: string;
|
|
5450
|
-
updated_at?: string;
|
|
5451
|
-
deleted_at?: string;
|
|
5584
|
+
id?: string;
|
|
5452
5585
|
parent_id?: string;
|
|
5453
|
-
name
|
|
5454
|
-
brand_id
|
|
5586
|
+
name?: string;
|
|
5587
|
+
brand_id?: string;
|
|
5455
5588
|
applied_diff_snapshot?: Record<string, any>;
|
|
5456
5589
|
version?: number;
|
|
5457
5590
|
brand?: DraftBrandDTO;
|
|
@@ -5460,38 +5593,52 @@ export interface DeleteMenuV4BrandMenuResponse {
|
|
|
5460
5593
|
permissions?: Record<string, any>;
|
|
5461
5594
|
[index: string]: any;
|
|
5462
5595
|
}
|
|
5463
|
-
export interface
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
category_id: string;
|
|
5468
|
-
}
|
|
5469
|
-
export interface DeleteMenuV4BrandCategoryResponse {
|
|
5470
|
-
parent?: DraftCategoryDTO;
|
|
5471
|
-
children?: DraftCategoryDTO[];
|
|
5596
|
+
export interface PostMenuV4BrandMenuDuplicateResponse {
|
|
5597
|
+
parent?: DraftMenuDTO;
|
|
5598
|
+
children?: DraftMenuDTO[];
|
|
5599
|
+
categories?: DraftCategoryDTO[];
|
|
5472
5600
|
id: string;
|
|
5473
5601
|
created_at?: string;
|
|
5474
5602
|
updated_at?: string;
|
|
5475
5603
|
deleted_at?: string;
|
|
5476
5604
|
parent_id?: string;
|
|
5477
5605
|
name: string;
|
|
5478
|
-
label?: string;
|
|
5479
|
-
sequence?: number;
|
|
5480
|
-
is_active?: boolean;
|
|
5481
5606
|
brand_id: string;
|
|
5482
|
-
menu_id: string;
|
|
5483
5607
|
applied_diff_snapshot?: Record<string, any>;
|
|
5484
5608
|
version?: number;
|
|
5485
|
-
menu?: DraftMenuDTO;
|
|
5486
|
-
items?: DraftCategoryToItemRelationshipDTO[];
|
|
5487
5609
|
brand?: DraftBrandDTO;
|
|
5488
|
-
changes?:
|
|
5610
|
+
changes?: MenuChangeDTO[];
|
|
5489
5611
|
vendor_metadata?: VendorMetadataDTO[];
|
|
5490
|
-
attachments?: FileAttachmentsDTO;
|
|
5491
5612
|
permissions?: Record<string, any>;
|
|
5492
5613
|
[index: string]: any;
|
|
5493
5614
|
}
|
|
5494
|
-
export interface
|
|
5615
|
+
export interface PostMenuV4BrandMenuDuplicateRequest extends BaseRequest, PostMenuV4BrandMenuDuplicatePath {
|
|
5616
|
+
body: PostMenuV4BrandMenuDuplicateBody;
|
|
5617
|
+
}
|
|
5618
|
+
export interface PostMenuV4CategoryAttachmentPath {
|
|
5619
|
+
id: string;
|
|
5620
|
+
name: 'thumbnail';
|
|
5621
|
+
}
|
|
5622
|
+
export interface PostMenuV4CategoryAttachmentQuery {
|
|
5623
|
+
'body.data'?: string;
|
|
5624
|
+
'body.brand_id'?: string;
|
|
5625
|
+
}
|
|
5626
|
+
export interface PostMenuV4CategoryAttachmentResponse {
|
|
5627
|
+
status?: string;
|
|
5628
|
+
}
|
|
5629
|
+
export interface PostMenuV4CategoryAttachmentRequest extends BaseRequest, RequestQuery<PostMenuV4CategoryAttachmentQuery>, PostMenuV4CategoryAttachmentPath {
|
|
5630
|
+
}
|
|
5631
|
+
export interface PostMenuV4ItemAttachmentPath {
|
|
5632
|
+
id: string;
|
|
5633
|
+
name: 'thumbnail';
|
|
5634
|
+
}
|
|
5635
|
+
export interface PostMenuV4ItemAttachmentQuery {
|
|
5636
|
+
'body.data'?: string;
|
|
5637
|
+
}
|
|
5638
|
+
export interface PostMenuV4ItemAttachmentResponse {
|
|
5639
|
+
status?: string;
|
|
5640
|
+
}
|
|
5641
|
+
export interface PostMenuV4ItemAttachmentRequest extends BaseRequest, RequestQuery<PostMenuV4ItemAttachmentQuery>, PostMenuV4ItemAttachmentPath {
|
|
5495
5642
|
}
|
|
5496
5643
|
export interface PostMenuV4ItemBody {
|
|
5497
5644
|
is_published?: boolean;
|
|
@@ -5726,6 +5873,7 @@ export interface DeleteMenuV4ItemPath {
|
|
|
5726
5873
|
id: string;
|
|
5727
5874
|
}
|
|
5728
5875
|
export interface DeleteMenuV4ItemResponse {
|
|
5876
|
+
is_published?: boolean;
|
|
5729
5877
|
parent?: DraftItemDTO;
|
|
5730
5878
|
children?: DraftItemDTO[];
|
|
5731
5879
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
@@ -5770,20 +5918,157 @@ export interface DeleteMenuV4ItemResponse {
|
|
|
5770
5918
|
}
|
|
5771
5919
|
export interface DeleteMenuV4ItemRequest extends BaseRequest, DeleteMenuV4ItemPath {
|
|
5772
5920
|
}
|
|
5773
|
-
export interface
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5921
|
+
export interface PatchMenuV4ItemsBulkUpdateBody {
|
|
5922
|
+
id_list: string[];
|
|
5923
|
+
is_published?: boolean;
|
|
5924
|
+
parent?: DraftItemDTO;
|
|
5925
|
+
children?: DraftItemDTO[];
|
|
5926
|
+
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
5927
|
+
id?: string;
|
|
5778
5928
|
parent_id?: string;
|
|
5779
|
-
name
|
|
5929
|
+
name?: string;
|
|
5780
5930
|
name_on_receipt?: string;
|
|
5781
5931
|
name_on_kds?: string;
|
|
5782
5932
|
label?: string;
|
|
5783
5933
|
description?: string;
|
|
5784
|
-
|
|
5934
|
+
reporting?: ReportingMetadataDTO;
|
|
5935
|
+
price?: number;
|
|
5936
|
+
barcode?: string;
|
|
5785
5937
|
calories?: number;
|
|
5786
|
-
|
|
5938
|
+
meal_value?: number;
|
|
5939
|
+
is_active?: boolean;
|
|
5940
|
+
posid?: string;
|
|
5941
|
+
tax_tags?: string[];
|
|
5942
|
+
brand_id?: string;
|
|
5943
|
+
line_route?: string;
|
|
5944
|
+
posid_segment?: number;
|
|
5945
|
+
menu_works?: MenuWorksDTO;
|
|
5946
|
+
is_out_of_stock?: boolean;
|
|
5947
|
+
tax_tag_code?: string;
|
|
5948
|
+
tags?: string[];
|
|
5949
|
+
is_featured?: boolean;
|
|
5950
|
+
tax_jwo_code?: string;
|
|
5951
|
+
unique_id?: number;
|
|
5952
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
5953
|
+
brand?: DraftBrandDTO;
|
|
5954
|
+
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
5955
|
+
changes?: ItemChangeDTO[];
|
|
5956
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
5957
|
+
attachments?: FileAttachmentsDTO;
|
|
5958
|
+
weight?: WeightDTO;
|
|
5959
|
+
permissions?: Record<string, any>;
|
|
5960
|
+
[index: string]: any;
|
|
5961
|
+
}
|
|
5962
|
+
export interface PatchMenuV4ItemsBulkUpdateResponse {
|
|
5963
|
+
results?: DraftItemEntityDTO[];
|
|
5964
|
+
}
|
|
5965
|
+
export interface PatchMenuV4ItemsBulkUpdateRequest extends BaseRequest {
|
|
5966
|
+
body: PatchMenuV4ItemsBulkUpdateBody;
|
|
5967
|
+
}
|
|
5968
|
+
export interface PostMenuV4ItemDuplicatePath {
|
|
5969
|
+
id: string;
|
|
5970
|
+
}
|
|
5971
|
+
export interface PostMenuV4ItemDuplicateBody {
|
|
5972
|
+
base_item_id?: string;
|
|
5973
|
+
is_published?: boolean;
|
|
5974
|
+
parent?: DraftItemDTO;
|
|
5975
|
+
children?: DraftItemDTO[];
|
|
5976
|
+
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
5977
|
+
parent_id?: string;
|
|
5978
|
+
name?: string;
|
|
5979
|
+
name_on_receipt?: string;
|
|
5980
|
+
name_on_kds?: string;
|
|
5981
|
+
label?: string;
|
|
5982
|
+
description?: string;
|
|
5983
|
+
reporting?: ReportingMetadataDTO;
|
|
5984
|
+
price?: number;
|
|
5985
|
+
barcode?: string;
|
|
5986
|
+
calories?: number;
|
|
5987
|
+
meal_value?: number;
|
|
5988
|
+
is_active?: boolean;
|
|
5989
|
+
posid?: string;
|
|
5990
|
+
tax_tags?: string[];
|
|
5991
|
+
brand_id?: string;
|
|
5992
|
+
line_route?: string;
|
|
5993
|
+
posid_segment?: number;
|
|
5994
|
+
menu_works?: MenuWorksDTO;
|
|
5995
|
+
is_out_of_stock?: boolean;
|
|
5996
|
+
tax_tag_code?: string;
|
|
5997
|
+
tags?: string[];
|
|
5998
|
+
is_featured?: boolean;
|
|
5999
|
+
tax_jwo_code?: string;
|
|
6000
|
+
unique_id?: number;
|
|
6001
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
6002
|
+
brand?: DraftBrandDTO;
|
|
6003
|
+
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
6004
|
+
changes?: ItemChangeDTO[];
|
|
6005
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
6006
|
+
attachments?: FileAttachmentsDTO;
|
|
6007
|
+
weight?: WeightDTO;
|
|
6008
|
+
permissions?: Record<string, any>;
|
|
6009
|
+
[index: string]: any;
|
|
6010
|
+
}
|
|
6011
|
+
export interface PostMenuV4ItemDuplicateResponse {
|
|
6012
|
+
is_published?: boolean;
|
|
6013
|
+
parent?: DraftItemDTO;
|
|
6014
|
+
children?: DraftItemDTO[];
|
|
6015
|
+
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
6016
|
+
id: string;
|
|
6017
|
+
created_at?: string;
|
|
6018
|
+
updated_at?: string;
|
|
6019
|
+
deleted_at?: string;
|
|
6020
|
+
parent_id?: string;
|
|
6021
|
+
name: string;
|
|
6022
|
+
name_on_receipt?: string;
|
|
6023
|
+
name_on_kds?: string;
|
|
6024
|
+
label?: string;
|
|
6025
|
+
description?: string;
|
|
6026
|
+
reporting: ReportingMetadataDTO;
|
|
6027
|
+
price: number;
|
|
6028
|
+
barcode?: string;
|
|
6029
|
+
calories?: number;
|
|
6030
|
+
meal_value?: number;
|
|
6031
|
+
is_active?: boolean;
|
|
6032
|
+
posid?: string;
|
|
6033
|
+
tax_tags?: string[];
|
|
6034
|
+
brand_id: string;
|
|
6035
|
+
line_route?: string;
|
|
6036
|
+
posid_segment?: number;
|
|
6037
|
+
menu_works?: MenuWorksDTO;
|
|
6038
|
+
is_out_of_stock?: boolean;
|
|
6039
|
+
tax_tag_code?: string;
|
|
6040
|
+
tags?: string[];
|
|
6041
|
+
is_featured?: boolean;
|
|
6042
|
+
tax_jwo_code?: string;
|
|
6043
|
+
unique_id?: number;
|
|
6044
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
6045
|
+
version?: number;
|
|
6046
|
+
brand?: DraftBrandDTO;
|
|
6047
|
+
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
6048
|
+
changes?: ItemChangeDTO[];
|
|
6049
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
6050
|
+
attachments?: FileAttachmentsDTO;
|
|
6051
|
+
weight?: WeightDTO;
|
|
6052
|
+
permissions?: Record<string, any>;
|
|
6053
|
+
[index: string]: any;
|
|
6054
|
+
}
|
|
6055
|
+
export interface PostMenuV4ItemDuplicateRequest extends BaseRequest, PostMenuV4ItemDuplicatePath {
|
|
6056
|
+
body: PostMenuV4ItemDuplicateBody;
|
|
6057
|
+
}
|
|
6058
|
+
export interface PostMenuV4ModifierBody {
|
|
6059
|
+
base_item_id?: string;
|
|
6060
|
+
parent?: DraftModifierDTO;
|
|
6061
|
+
children?: DraftModifierDTO[];
|
|
6062
|
+
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
6063
|
+
parent_id?: string;
|
|
6064
|
+
name: string;
|
|
6065
|
+
name_on_receipt?: string;
|
|
6066
|
+
name_on_kds?: string;
|
|
6067
|
+
label?: string;
|
|
6068
|
+
description?: string;
|
|
6069
|
+
price: number;
|
|
6070
|
+
calories?: number;
|
|
6071
|
+
tax_tags?: string[];
|
|
5787
6072
|
is_active?: boolean;
|
|
5788
6073
|
posid?: string;
|
|
5789
6074
|
reporting: ReportingMetadataDTO;
|
|
@@ -6041,6 +6326,151 @@ export interface DeleteMenuV4ModifierResponse {
|
|
|
6041
6326
|
}
|
|
6042
6327
|
export interface DeleteMenuV4ModifierRequest extends BaseRequest, DeleteMenuV4ModifierPath {
|
|
6043
6328
|
}
|
|
6329
|
+
export interface PostMenuV4ModifierDuplicatePath {
|
|
6330
|
+
id: string;
|
|
6331
|
+
}
|
|
6332
|
+
export interface PostMenuV4ModifierDuplicateBody {
|
|
6333
|
+
parent?: DraftModifierDTO;
|
|
6334
|
+
children?: DraftModifierDTO[];
|
|
6335
|
+
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
6336
|
+
parent_id?: string;
|
|
6337
|
+
name?: string;
|
|
6338
|
+
name_on_receipt?: string;
|
|
6339
|
+
name_on_kds?: string;
|
|
6340
|
+
label?: string;
|
|
6341
|
+
description?: string;
|
|
6342
|
+
price?: number;
|
|
6343
|
+
calories?: number;
|
|
6344
|
+
tax_tags?: string[];
|
|
6345
|
+
is_active?: boolean;
|
|
6346
|
+
posid?: string;
|
|
6347
|
+
reporting?: ReportingMetadataDTO;
|
|
6348
|
+
posid_segment?: number;
|
|
6349
|
+
brand_id?: string;
|
|
6350
|
+
line_route?: string;
|
|
6351
|
+
menu_works?: MenuWorksDTO;
|
|
6352
|
+
is_out_of_stock?: boolean;
|
|
6353
|
+
price_for_none?: number;
|
|
6354
|
+
price_for_less?: number;
|
|
6355
|
+
price_for_more?: number;
|
|
6356
|
+
pre_surcharge?: number;
|
|
6357
|
+
post_surcharge?: number;
|
|
6358
|
+
tax_tag_code?: string;
|
|
6359
|
+
tags?: string[];
|
|
6360
|
+
unique_id?: number;
|
|
6361
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
6362
|
+
brand?: DraftBrandDTO;
|
|
6363
|
+
changes?: ModifierChangeDTO[];
|
|
6364
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
6365
|
+
weight?: WeightDTO;
|
|
6366
|
+
attachments?: FileAttachmentsDTO;
|
|
6367
|
+
permissions?: Record<string, any>;
|
|
6368
|
+
[index: string]: any;
|
|
6369
|
+
}
|
|
6370
|
+
export interface PostMenuV4ModifierDuplicateResponse {
|
|
6371
|
+
parent?: DraftModifierDTO;
|
|
6372
|
+
children?: DraftModifierDTO[];
|
|
6373
|
+
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
6374
|
+
id: string;
|
|
6375
|
+
created_at?: string;
|
|
6376
|
+
updated_at?: string;
|
|
6377
|
+
deleted_at?: string;
|
|
6378
|
+
parent_id?: string;
|
|
6379
|
+
name: string;
|
|
6380
|
+
name_on_receipt?: string;
|
|
6381
|
+
name_on_kds?: string;
|
|
6382
|
+
label?: string;
|
|
6383
|
+
description?: string;
|
|
6384
|
+
price: number;
|
|
6385
|
+
calories?: number;
|
|
6386
|
+
tax_tags?: string[];
|
|
6387
|
+
is_active?: boolean;
|
|
6388
|
+
posid?: string;
|
|
6389
|
+
reporting: ReportingMetadataDTO;
|
|
6390
|
+
posid_segment?: number;
|
|
6391
|
+
brand_id: string;
|
|
6392
|
+
line_route?: string;
|
|
6393
|
+
menu_works?: MenuWorksDTO;
|
|
6394
|
+
is_out_of_stock?: boolean;
|
|
6395
|
+
price_for_none?: number;
|
|
6396
|
+
price_for_less?: number;
|
|
6397
|
+
price_for_more?: number;
|
|
6398
|
+
pre_surcharge?: number;
|
|
6399
|
+
post_surcharge?: number;
|
|
6400
|
+
tax_tag_code?: string;
|
|
6401
|
+
tags?: string[];
|
|
6402
|
+
unique_id?: number;
|
|
6403
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
6404
|
+
version?: number;
|
|
6405
|
+
brand?: DraftBrandDTO;
|
|
6406
|
+
changes?: ModifierChangeDTO[];
|
|
6407
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
6408
|
+
weight?: WeightDTO;
|
|
6409
|
+
attachments?: FileAttachmentsDTO;
|
|
6410
|
+
permissions?: Record<string, any>;
|
|
6411
|
+
[index: string]: any;
|
|
6412
|
+
}
|
|
6413
|
+
export interface PostMenuV4ModifierDuplicateRequest extends BaseRequest, PostMenuV4ModifierDuplicatePath {
|
|
6414
|
+
body: PostMenuV4ModifierDuplicateBody;
|
|
6415
|
+
}
|
|
6416
|
+
export interface PatchMenuV4ModifiersBulkUpdateBody {
|
|
6417
|
+
id_list: string[];
|
|
6418
|
+
parent?: DraftModifierDTO;
|
|
6419
|
+
children?: DraftModifierDTO[];
|
|
6420
|
+
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
6421
|
+
id?: string;
|
|
6422
|
+
parent_id?: string;
|
|
6423
|
+
name?: string;
|
|
6424
|
+
name_on_receipt?: string;
|
|
6425
|
+
name_on_kds?: string;
|
|
6426
|
+
label?: string;
|
|
6427
|
+
description?: string;
|
|
6428
|
+
price?: number;
|
|
6429
|
+
calories?: number;
|
|
6430
|
+
tax_tags?: string[];
|
|
6431
|
+
is_active?: boolean;
|
|
6432
|
+
posid?: string;
|
|
6433
|
+
reporting?: ReportingMetadataDTO;
|
|
6434
|
+
posid_segment?: number;
|
|
6435
|
+
brand_id?: string;
|
|
6436
|
+
line_route?: string;
|
|
6437
|
+
menu_works?: MenuWorksDTO;
|
|
6438
|
+
is_out_of_stock?: boolean;
|
|
6439
|
+
price_for_none?: number;
|
|
6440
|
+
price_for_less?: number;
|
|
6441
|
+
price_for_more?: number;
|
|
6442
|
+
pre_surcharge?: number;
|
|
6443
|
+
post_surcharge?: number;
|
|
6444
|
+
tax_tag_code?: string;
|
|
6445
|
+
tags?: string[];
|
|
6446
|
+
unique_id?: number;
|
|
6447
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
6448
|
+
brand?: DraftBrandDTO;
|
|
6449
|
+
changes?: ModifierChangeDTO[];
|
|
6450
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
6451
|
+
weight?: WeightDTO;
|
|
6452
|
+
attachments?: FileAttachmentsDTO;
|
|
6453
|
+
permissions?: Record<string, any>;
|
|
6454
|
+
[index: string]: any;
|
|
6455
|
+
}
|
|
6456
|
+
export interface PatchMenuV4ModifiersBulkUpdateResponse {
|
|
6457
|
+
results?: DraftModifierEntityDTO[];
|
|
6458
|
+
}
|
|
6459
|
+
export interface PatchMenuV4ModifiersBulkUpdateRequest extends BaseRequest {
|
|
6460
|
+
body: PatchMenuV4ModifiersBulkUpdateBody;
|
|
6461
|
+
}
|
|
6462
|
+
export interface PostMenuV4ModifierAttachmentPath {
|
|
6463
|
+
id: string;
|
|
6464
|
+
name: 'thumbnail';
|
|
6465
|
+
}
|
|
6466
|
+
export interface PostMenuV4ModifierAttachmentQuery {
|
|
6467
|
+
'body.data'?: string;
|
|
6468
|
+
}
|
|
6469
|
+
export interface PostMenuV4ModifierAttachmentResponse {
|
|
6470
|
+
status?: string;
|
|
6471
|
+
}
|
|
6472
|
+
export interface PostMenuV4ModifierAttachmentRequest extends BaseRequest, RequestQuery<PostMenuV4ModifierAttachmentQuery>, PostMenuV4ModifierAttachmentPath {
|
|
6473
|
+
}
|
|
6044
6474
|
export interface PostMenuV4ModifierGroupBody {
|
|
6045
6475
|
parent?: DraftModifierGroupDTO;
|
|
6046
6476
|
children?: DraftModifierGroupDTO[];
|
|
@@ -6253,4 +6683,66 @@ export interface PostMenuV4ModifierGroupAttachModifiersResponse {
|
|
|
6253
6683
|
export interface PostMenuV4ModifierGroupAttachModifiersRequest extends BaseRequest, PostMenuV4ModifierGroupAttachModifiersPath {
|
|
6254
6684
|
body: PostMenuV4ModifierGroupAttachModifiersBody;
|
|
6255
6685
|
}
|
|
6686
|
+
export interface PostMenuV4ModifierGroupDuplicatePath {
|
|
6687
|
+
id: string;
|
|
6688
|
+
}
|
|
6689
|
+
export interface PostMenuV4ModifierGroupDuplicateQuery {
|
|
6690
|
+
duplicate_modifiers?: boolean;
|
|
6691
|
+
}
|
|
6692
|
+
export interface PostMenuV4ModifierGroupDuplicateBody {
|
|
6693
|
+
parent?: DraftModifierGroupDTO;
|
|
6694
|
+
children?: DraftModifierGroupDTO[];
|
|
6695
|
+
modifiers?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
6696
|
+
items?: DraftItemToModifierGroupRelationshipDTO[];
|
|
6697
|
+
parent_id?: string;
|
|
6698
|
+
name?: string;
|
|
6699
|
+
label?: string;
|
|
6700
|
+
min?: number;
|
|
6701
|
+
max?: number;
|
|
6702
|
+
is_active?: boolean;
|
|
6703
|
+
limit?: number;
|
|
6704
|
+
brand_id?: string;
|
|
6705
|
+
order_type?: 'selection' | 'option' | 'quantity';
|
|
6706
|
+
sizing?: string;
|
|
6707
|
+
is_out_of_stock?: boolean;
|
|
6708
|
+
is_incremental?: boolean;
|
|
6709
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
6710
|
+
brand?: DraftBrandDTO;
|
|
6711
|
+
changes?: ModifierGroupChangeDTO[];
|
|
6712
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
6713
|
+
permissions?: Record<string, any>;
|
|
6714
|
+
[index: string]: any;
|
|
6715
|
+
}
|
|
6716
|
+
export interface PostMenuV4ModifierGroupDuplicateResponse {
|
|
6717
|
+
parent?: DraftModifierGroupDTO;
|
|
6718
|
+
children?: DraftModifierGroupDTO[];
|
|
6719
|
+
modifiers?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
6720
|
+
items?: DraftItemToModifierGroupRelationshipDTO[];
|
|
6721
|
+
id: string;
|
|
6722
|
+
created_at?: string;
|
|
6723
|
+
updated_at?: string;
|
|
6724
|
+
deleted_at?: string;
|
|
6725
|
+
parent_id?: string;
|
|
6726
|
+
name: string;
|
|
6727
|
+
label?: string;
|
|
6728
|
+
min?: number;
|
|
6729
|
+
max?: number;
|
|
6730
|
+
is_active?: boolean;
|
|
6731
|
+
limit?: number;
|
|
6732
|
+
brand_id: string;
|
|
6733
|
+
order_type?: 'selection' | 'option' | 'quantity';
|
|
6734
|
+
sizing?: string;
|
|
6735
|
+
is_out_of_stock?: boolean;
|
|
6736
|
+
is_incremental?: boolean;
|
|
6737
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
6738
|
+
version?: number;
|
|
6739
|
+
brand?: DraftBrandDTO;
|
|
6740
|
+
changes?: ModifierGroupChangeDTO[];
|
|
6741
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
6742
|
+
permissions?: Record<string, any>;
|
|
6743
|
+
[index: string]: any;
|
|
6744
|
+
}
|
|
6745
|
+
export interface PostMenuV4ModifierGroupDuplicateRequest extends BaseRequest, RequestQuery<PostMenuV4ModifierGroupDuplicateQuery>, PostMenuV4ModifierGroupDuplicatePath {
|
|
6746
|
+
body: PostMenuV4ModifierGroupDuplicateBody;
|
|
6747
|
+
}
|
|
6256
6748
|
//# sourceMappingURL=menu.d.ts.map
|