@compassdigital/sdk.typescript 4.94.2 → 4.96.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 +102 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +114 -2
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts +16 -0
- package/lib/interface/ai.d.ts.map +1 -1
- package/lib/interface/announcement.d.ts +5 -5
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +12 -0
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +0 -6
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +17 -15
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +330 -1
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +273 -6
- package/src/interface/ai.ts +24 -0
- package/src/interface/announcement.ts +7 -11
- package/src/interface/centricos.ts +23 -0
- package/src/interface/compassconnect.ts +0 -9
- package/src/interface/consumer.ts +29 -16
- package/src/interface/menu.ts +396 -1
package/src/interface/menu.ts
CHANGED
|
@@ -668,6 +668,7 @@ export interface DraftCategoryToItemRelationshipDTO {
|
|
|
668
668
|
}
|
|
669
669
|
|
|
670
670
|
export interface DraftItemDTO {
|
|
671
|
+
is_published?: boolean;
|
|
671
672
|
parent?: Record<string, any>;
|
|
672
673
|
children?: Record<string, any>[];
|
|
673
674
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
@@ -1452,6 +1453,7 @@ export interface LineRouteSuggestion {
|
|
|
1452
1453
|
}
|
|
1453
1454
|
|
|
1454
1455
|
export interface DraftItemEntityDTO {
|
|
1456
|
+
is_published?: boolean;
|
|
1455
1457
|
parent?: DraftItemDTO;
|
|
1456
1458
|
children?: DraftItemDTO[];
|
|
1457
1459
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
@@ -2451,6 +2453,41 @@ export interface PostMenuV3LocalMenuGroupImportBrandsRequest
|
|
|
2451
2453
|
RequestQuery<PostMenuV3LocalMenuGroupImportBrandsQuery>,
|
|
2452
2454
|
PostMenuV3LocalMenuGroupImportBrandsPath {}
|
|
2453
2455
|
|
|
2456
|
+
// POST /menu/v4/local-menu-group/{id}/import-brands
|
|
2457
|
+
|
|
2458
|
+
export interface PostMenuV4LocalMenuGroupImportBrandsPath {
|
|
2459
|
+
id: string;
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
export interface PostMenuV4LocalMenuGroupImportBrandsQuery {
|
|
2463
|
+
// If specified, only the selected fields will be returned
|
|
2464
|
+
select?: string[];
|
|
2465
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
2466
|
+
relationships?: string[];
|
|
2467
|
+
// The fields that filtering is allowed on
|
|
2468
|
+
filter?: string;
|
|
2469
|
+
'body.brand_ids'?: string[];
|
|
2470
|
+
// Number of records to load per page
|
|
2471
|
+
limit?: number;
|
|
2472
|
+
page?: number;
|
|
2473
|
+
// A field to sort the results based on
|
|
2474
|
+
sort_by?: string;
|
|
2475
|
+
sort_order?: 'DESC' | 'ASC';
|
|
2476
|
+
// How soft deleted records should be shown in the list
|
|
2477
|
+
soft_deleted?: 'include' | 'exclude' | 'only';
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
export interface PostMenuV4LocalMenuGroupImportBrandsResponse {
|
|
2481
|
+
results: DraftBrandDTO[];
|
|
2482
|
+
meta?: ListResponseMetadataDTO;
|
|
2483
|
+
[index: string]: any;
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
export interface PostMenuV4LocalMenuGroupImportBrandsRequest
|
|
2487
|
+
extends BaseRequest,
|
|
2488
|
+
RequestQuery<PostMenuV4LocalMenuGroupImportBrandsQuery>,
|
|
2489
|
+
PostMenuV4LocalMenuGroupImportBrandsPath {}
|
|
2490
|
+
|
|
2454
2491
|
// GET /menu/v3/local-menu-group/{id}/site
|
|
2455
2492
|
|
|
2456
2493
|
export interface GetMenuV3LocalMenuGroupSitePath {
|
|
@@ -3411,8 +3448,8 @@ export interface PostMenuV3DraftBrandGlobalDiffsApplyRequest
|
|
|
3411
3448
|
// POST /menu/v3/draft/brand/{id}/attachment/{name}
|
|
3412
3449
|
|
|
3413
3450
|
export interface PostMenuV3DraftBrandAttachmentPath {
|
|
3414
|
-
id: string;
|
|
3415
3451
|
name: 'thumbnail';
|
|
3452
|
+
id: string;
|
|
3416
3453
|
}
|
|
3417
3454
|
|
|
3418
3455
|
export interface PostMenuV3DraftBrandAttachmentQuery {
|
|
@@ -3428,6 +3465,49 @@ export interface PostMenuV3DraftBrandAttachmentRequest
|
|
|
3428
3465
|
RequestQuery<PostMenuV3DraftBrandAttachmentQuery>,
|
|
3429
3466
|
PostMenuV3DraftBrandAttachmentPath {}
|
|
3430
3467
|
|
|
3468
|
+
// GET /menu/v3/draft/brand/{id}/export
|
|
3469
|
+
|
|
3470
|
+
export interface GetMenuV3DraftBrandExportPath {
|
|
3471
|
+
id: string;
|
|
3472
|
+
}
|
|
3473
|
+
|
|
3474
|
+
export interface GetMenuV3DraftBrandExportQuery {
|
|
3475
|
+
format?: 'xlsx';
|
|
3476
|
+
// Graphql query string
|
|
3477
|
+
_query?: string;
|
|
3478
|
+
}
|
|
3479
|
+
|
|
3480
|
+
export interface GetMenuV3DraftBrandExportResponse {
|
|
3481
|
+
s3_link: string;
|
|
3482
|
+
[index: string]: any;
|
|
3483
|
+
}
|
|
3484
|
+
|
|
3485
|
+
export interface GetMenuV3DraftBrandExportRequest
|
|
3486
|
+
extends BaseRequest,
|
|
3487
|
+
RequestQuery<GetMenuV3DraftBrandExportQuery>,
|
|
3488
|
+
GetMenuV3DraftBrandExportPath {}
|
|
3489
|
+
|
|
3490
|
+
// GET /menu/v3/draft/brand/{id}/import/link
|
|
3491
|
+
|
|
3492
|
+
export interface GetMenuV3DraftBrandImportLinkPath {
|
|
3493
|
+
id: string;
|
|
3494
|
+
}
|
|
3495
|
+
|
|
3496
|
+
export interface GetMenuV3DraftBrandImportLinkQuery {
|
|
3497
|
+
// Graphql query string
|
|
3498
|
+
_query?: string;
|
|
3499
|
+
}
|
|
3500
|
+
|
|
3501
|
+
export interface GetMenuV3DraftBrandImportLinkResponse {
|
|
3502
|
+
upload_link: string;
|
|
3503
|
+
[index: string]: any;
|
|
3504
|
+
}
|
|
3505
|
+
|
|
3506
|
+
export interface GetMenuV3DraftBrandImportLinkRequest
|
|
3507
|
+
extends BaseRequest,
|
|
3508
|
+
RequestQuery<GetMenuV3DraftBrandImportLinkQuery>,
|
|
3509
|
+
GetMenuV3DraftBrandImportLinkPath {}
|
|
3510
|
+
|
|
3431
3511
|
// POST /menu/v3/brand
|
|
3432
3512
|
|
|
3433
3513
|
export interface PostMenuV3BrandQuery {
|
|
@@ -4838,6 +4918,7 @@ export interface PostMenuV3CategoryRelationshipsItemRecoverRequest
|
|
|
4838
4918
|
// POST /menu/v3/draft/item
|
|
4839
4919
|
|
|
4840
4920
|
export interface PostMenuV3DraftItemBody {
|
|
4921
|
+
is_published?: boolean;
|
|
4841
4922
|
parent?: DraftItemDTO;
|
|
4842
4923
|
children?: DraftItemDTO[];
|
|
4843
4924
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
@@ -4911,6 +4992,7 @@ export interface PatchMenuV3DraftItemPath {
|
|
|
4911
4992
|
}
|
|
4912
4993
|
|
|
4913
4994
|
export interface PatchMenuV3DraftItemBody {
|
|
4995
|
+
is_published?: boolean;
|
|
4914
4996
|
parent?: DraftItemDTO;
|
|
4915
4997
|
children?: DraftItemDTO[];
|
|
4916
4998
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
@@ -5025,6 +5107,7 @@ export interface GetMenuV3DraftItemsRequest
|
|
|
5025
5107
|
// POST /menu/v3/draft/items
|
|
5026
5108
|
|
|
5027
5109
|
export type PostMenuV3DraftItemsBody = {
|
|
5110
|
+
is_published?: boolean;
|
|
5028
5111
|
parent?: DraftItemDTO;
|
|
5029
5112
|
children?: DraftItemDTO[];
|
|
5030
5113
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
@@ -5128,6 +5211,7 @@ export interface GetMenuV3DraftItemLineRoutesRequest
|
|
|
5128
5211
|
|
|
5129
5212
|
export interface PatchMenuV3DraftItemsBulkUpdateBody {
|
|
5130
5213
|
id_list: string[];
|
|
5214
|
+
is_published?: boolean;
|
|
5131
5215
|
parent?: DraftItemDTO;
|
|
5132
5216
|
children?: DraftItemDTO[];
|
|
5133
5217
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
@@ -7153,6 +7237,54 @@ export interface PostMenuV4BrandMenuRequest extends BaseRequest, PostMenuV4Brand
|
|
|
7153
7237
|
body: PostMenuV4BrandMenuBody;
|
|
7154
7238
|
}
|
|
7155
7239
|
|
|
7240
|
+
// PATCH /menu/v4/brand/{brand_id}/menu/{menu_id}
|
|
7241
|
+
|
|
7242
|
+
export interface PatchMenuV4BrandMenuPath {
|
|
7243
|
+
brand_id: string;
|
|
7244
|
+
menu_id: string;
|
|
7245
|
+
}
|
|
7246
|
+
|
|
7247
|
+
export interface PatchMenuV4BrandMenuBody {
|
|
7248
|
+
parent?: DraftMenuDTO;
|
|
7249
|
+
children?: DraftMenuDTO[];
|
|
7250
|
+
categories?: DraftCategoryDTO[];
|
|
7251
|
+
id?: string;
|
|
7252
|
+
parent_id?: string;
|
|
7253
|
+
name?: string;
|
|
7254
|
+
brand_id?: string;
|
|
7255
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
7256
|
+
version?: number;
|
|
7257
|
+
brand?: DraftBrandDTO;
|
|
7258
|
+
changes?: MenuChangeDTO[];
|
|
7259
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
7260
|
+
permissions?: Record<string, any>;
|
|
7261
|
+
[index: string]: any;
|
|
7262
|
+
}
|
|
7263
|
+
|
|
7264
|
+
export interface PatchMenuV4BrandMenuResponse {
|
|
7265
|
+
parent?: DraftMenuDTO;
|
|
7266
|
+
children?: DraftMenuDTO[];
|
|
7267
|
+
categories?: DraftCategoryDTO[];
|
|
7268
|
+
id: string;
|
|
7269
|
+
created_at?: string;
|
|
7270
|
+
updated_at?: string;
|
|
7271
|
+
deleted_at?: string;
|
|
7272
|
+
parent_id?: string;
|
|
7273
|
+
name: string;
|
|
7274
|
+
brand_id: string;
|
|
7275
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
7276
|
+
version?: number;
|
|
7277
|
+
brand?: DraftBrandDTO;
|
|
7278
|
+
changes?: MenuChangeDTO[];
|
|
7279
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
7280
|
+
permissions?: Record<string, any>;
|
|
7281
|
+
[index: string]: any;
|
|
7282
|
+
}
|
|
7283
|
+
|
|
7284
|
+
export interface PatchMenuV4BrandMenuRequest extends BaseRequest, PatchMenuV4BrandMenuPath {
|
|
7285
|
+
body: PatchMenuV4BrandMenuBody;
|
|
7286
|
+
}
|
|
7287
|
+
|
|
7156
7288
|
// GET /menu/v4/brand/{id}/items
|
|
7157
7289
|
|
|
7158
7290
|
export interface GetMenuV4BrandItemsPath {
|
|
@@ -7464,9 +7596,124 @@ export interface PostMenuV4BrandV3ToV4Response {
|
|
|
7464
7596
|
|
|
7465
7597
|
export interface PostMenuV4BrandV3ToV4Request extends BaseRequest, PostMenuV4BrandV3ToV4Path {}
|
|
7466
7598
|
|
|
7599
|
+
// DELETE menu/v4/brand/{id}
|
|
7600
|
+
|
|
7601
|
+
export interface DeleteMenuV4BrandPath {
|
|
7602
|
+
id: string;
|
|
7603
|
+
}
|
|
7604
|
+
|
|
7605
|
+
export interface DeleteMenuV4BrandResponse {
|
|
7606
|
+
parent?: DraftBrandDTO;
|
|
7607
|
+
children?: DraftBrandDTO[];
|
|
7608
|
+
menus?: DraftMenuDTO[];
|
|
7609
|
+
categories?: DraftCategoryDTO[];
|
|
7610
|
+
category_to_item_relationships?: DraftCategoryToItemRelationshipDTO[];
|
|
7611
|
+
items?: DraftItemDTO[];
|
|
7612
|
+
item_to_modifier_group_relationships?: DraftItemToModifierGroupRelationshipDTO[];
|
|
7613
|
+
modifier_groups?: DraftModifierGroupDTO[];
|
|
7614
|
+
modifier_group_to_modifier_relationships?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
7615
|
+
modifiers?: DraftModifierDTO[];
|
|
7616
|
+
statuses?: BrandStatusDTO[];
|
|
7617
|
+
audit_logs?: AuditDTO[];
|
|
7618
|
+
id: string;
|
|
7619
|
+
created_at?: string;
|
|
7620
|
+
updated_at?: string;
|
|
7621
|
+
deleted_at?: string;
|
|
7622
|
+
name: string;
|
|
7623
|
+
description?: string;
|
|
7624
|
+
is_active?: boolean;
|
|
7625
|
+
type?: 'global' | 'local';
|
|
7626
|
+
parent_id?: string;
|
|
7627
|
+
local_menu_group_id?: string;
|
|
7628
|
+
global_menu_group_id?: string;
|
|
7629
|
+
posid_segment?: string;
|
|
7630
|
+
is_simplified_view?: boolean;
|
|
7631
|
+
frictionless_partner?: string;
|
|
7632
|
+
catalog_id?: number;
|
|
7633
|
+
meta?: BrandMeta;
|
|
7634
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
7635
|
+
version?: number;
|
|
7636
|
+
changes?: BrandChangeDTO[];
|
|
7637
|
+
local_menu_group?: LocalMenuGroupDTO;
|
|
7638
|
+
global_menu_group?: GlobalMenuGroupDTO;
|
|
7639
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
7640
|
+
attachments?: FileAttachmentsDTO;
|
|
7641
|
+
permissions?: Record<string, any>;
|
|
7642
|
+
[index: string]: any;
|
|
7643
|
+
}
|
|
7644
|
+
|
|
7645
|
+
export interface DeleteMenuV4BrandRequest extends BaseRequest, DeleteMenuV4BrandPath {}
|
|
7646
|
+
|
|
7647
|
+
// DELETE menu/v4/brand/{brand_id}/menu/{menu_id}
|
|
7648
|
+
|
|
7649
|
+
export interface DeleteMenuV4BrandMenuPath {
|
|
7650
|
+
brand_id: string;
|
|
7651
|
+
menu_id: string;
|
|
7652
|
+
}
|
|
7653
|
+
|
|
7654
|
+
export interface DeleteMenuV4BrandMenuResponse {
|
|
7655
|
+
parent?: DraftMenuDTO;
|
|
7656
|
+
children?: DraftMenuDTO[];
|
|
7657
|
+
categories?: DraftCategoryDTO[];
|
|
7658
|
+
id: string;
|
|
7659
|
+
created_at?: string;
|
|
7660
|
+
updated_at?: string;
|
|
7661
|
+
deleted_at?: string;
|
|
7662
|
+
parent_id?: string;
|
|
7663
|
+
name: string;
|
|
7664
|
+
brand_id: string;
|
|
7665
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
7666
|
+
version?: number;
|
|
7667
|
+
brand?: DraftBrandDTO;
|
|
7668
|
+
changes?: MenuChangeDTO[];
|
|
7669
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
7670
|
+
permissions?: Record<string, any>;
|
|
7671
|
+
[index: string]: any;
|
|
7672
|
+
}
|
|
7673
|
+
|
|
7674
|
+
export interface DeleteMenuV4BrandMenuRequest extends BaseRequest, DeleteMenuV4BrandMenuPath {}
|
|
7675
|
+
|
|
7676
|
+
// DELETE menu/v4/brand/{brand_id}/category/{category_id}
|
|
7677
|
+
|
|
7678
|
+
export interface DeleteMenuV4BrandCategoryPath {
|
|
7679
|
+
brand_id: string;
|
|
7680
|
+
category_id: string;
|
|
7681
|
+
}
|
|
7682
|
+
|
|
7683
|
+
export interface DeleteMenuV4BrandCategoryResponse {
|
|
7684
|
+
parent?: DraftCategoryDTO;
|
|
7685
|
+
children?: DraftCategoryDTO[];
|
|
7686
|
+
id: string;
|
|
7687
|
+
created_at?: string;
|
|
7688
|
+
updated_at?: string;
|
|
7689
|
+
deleted_at?: string;
|
|
7690
|
+
parent_id?: string;
|
|
7691
|
+
name: string;
|
|
7692
|
+
label?: string;
|
|
7693
|
+
sequence?: number;
|
|
7694
|
+
is_active?: boolean;
|
|
7695
|
+
brand_id: string;
|
|
7696
|
+
menu_id: string;
|
|
7697
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
7698
|
+
version?: number;
|
|
7699
|
+
menu?: DraftMenuDTO;
|
|
7700
|
+
items?: DraftCategoryToItemRelationshipDTO[];
|
|
7701
|
+
brand?: DraftBrandDTO;
|
|
7702
|
+
changes?: CategoryChangeDTO[];
|
|
7703
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
7704
|
+
attachments?: FileAttachmentsDTO;
|
|
7705
|
+
permissions?: Record<string, any>;
|
|
7706
|
+
[index: string]: any;
|
|
7707
|
+
}
|
|
7708
|
+
|
|
7709
|
+
export interface DeleteMenuV4BrandCategoryRequest
|
|
7710
|
+
extends BaseRequest,
|
|
7711
|
+
DeleteMenuV4BrandCategoryPath {}
|
|
7712
|
+
|
|
7467
7713
|
// POST /menu/v4/item
|
|
7468
7714
|
|
|
7469
7715
|
export interface PostMenuV4ItemBody {
|
|
7716
|
+
is_published?: boolean;
|
|
7470
7717
|
parent?: DraftItemDTO;
|
|
7471
7718
|
children?: DraftItemDTO[];
|
|
7472
7719
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
@@ -7507,6 +7754,7 @@ export interface PostMenuV4ItemBody {
|
|
|
7507
7754
|
}
|
|
7508
7755
|
|
|
7509
7756
|
export interface PostMenuV4ItemResponse {
|
|
7757
|
+
is_published?: boolean;
|
|
7510
7758
|
parent?: DraftItemDTO;
|
|
7511
7759
|
children?: DraftItemDTO[];
|
|
7512
7760
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
@@ -7566,6 +7814,7 @@ export interface GetMenuV4ItemQuery {
|
|
|
7566
7814
|
}
|
|
7567
7815
|
|
|
7568
7816
|
export interface GetMenuV4ItemResponse {
|
|
7817
|
+
is_published?: boolean;
|
|
7569
7818
|
parent?: DraftItemDTO;
|
|
7570
7819
|
children?: DraftItemDTO[];
|
|
7571
7820
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
@@ -7622,6 +7871,7 @@ export interface PatchMenuV4ItemPath {
|
|
|
7622
7871
|
|
|
7623
7872
|
export interface PatchMenuV4ItemBody {
|
|
7624
7873
|
base_item_id?: string;
|
|
7874
|
+
is_published?: boolean;
|
|
7625
7875
|
parent?: DraftItemDTO;
|
|
7626
7876
|
children?: DraftItemDTO[];
|
|
7627
7877
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
@@ -7661,6 +7911,7 @@ export interface PatchMenuV4ItemBody {
|
|
|
7661
7911
|
}
|
|
7662
7912
|
|
|
7663
7913
|
export interface PatchMenuV4ItemResponse {
|
|
7914
|
+
is_published?: boolean;
|
|
7664
7915
|
parent?: DraftItemDTO;
|
|
7665
7916
|
children?: DraftItemDTO[];
|
|
7666
7917
|
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
@@ -7708,6 +7959,58 @@ export interface PatchMenuV4ItemRequest extends BaseRequest, PatchMenuV4ItemPath
|
|
|
7708
7959
|
body: PatchMenuV4ItemBody;
|
|
7709
7960
|
}
|
|
7710
7961
|
|
|
7962
|
+
// DELETE /menu/v4/item/{id}
|
|
7963
|
+
|
|
7964
|
+
export interface DeleteMenuV4ItemPath {
|
|
7965
|
+
id: string;
|
|
7966
|
+
}
|
|
7967
|
+
|
|
7968
|
+
export interface DeleteMenuV4ItemResponse {
|
|
7969
|
+
parent?: DraftItemDTO;
|
|
7970
|
+
children?: DraftItemDTO[];
|
|
7971
|
+
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
7972
|
+
id: string;
|
|
7973
|
+
created_at?: string;
|
|
7974
|
+
updated_at?: string;
|
|
7975
|
+
deleted_at?: string;
|
|
7976
|
+
parent_id?: string;
|
|
7977
|
+
name: string;
|
|
7978
|
+
name_on_receipt?: string;
|
|
7979
|
+
name_on_kds?: string;
|
|
7980
|
+
label?: string;
|
|
7981
|
+
description?: string;
|
|
7982
|
+
reporting: ReportingMetadataDTO;
|
|
7983
|
+
price: number;
|
|
7984
|
+
barcode?: string;
|
|
7985
|
+
calories?: number;
|
|
7986
|
+
meal_value?: number;
|
|
7987
|
+
is_active?: boolean;
|
|
7988
|
+
posid?: string;
|
|
7989
|
+
tax_tags?: string[];
|
|
7990
|
+
brand_id: string;
|
|
7991
|
+
line_route?: string;
|
|
7992
|
+
posid_segment?: number;
|
|
7993
|
+
menu_works?: MenuWorksDTO;
|
|
7994
|
+
is_out_of_stock?: boolean;
|
|
7995
|
+
tax_tag_code?: string;
|
|
7996
|
+
tags?: string[];
|
|
7997
|
+
is_featured?: boolean;
|
|
7998
|
+
tax_jwo_code?: string;
|
|
7999
|
+
unique_id?: number;
|
|
8000
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
8001
|
+
version?: number;
|
|
8002
|
+
brand?: DraftBrandDTO;
|
|
8003
|
+
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
8004
|
+
changes?: ItemChangeDTO[];
|
|
8005
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
8006
|
+
attachments?: FileAttachmentsDTO;
|
|
8007
|
+
weight?: WeightDTO;
|
|
8008
|
+
permissions?: Record<string, any>;
|
|
8009
|
+
[index: string]: any;
|
|
8010
|
+
}
|
|
8011
|
+
|
|
8012
|
+
export interface DeleteMenuV4ItemRequest extends BaseRequest, DeleteMenuV4ItemPath {}
|
|
8013
|
+
|
|
7711
8014
|
// POST /menu/v4/modifier
|
|
7712
8015
|
|
|
7713
8016
|
export interface PostMenuV4ModifierBody {
|
|
@@ -7951,6 +8254,58 @@ export interface PatchMenuV4ModifierRequest extends BaseRequest, PatchMenuV4Modi
|
|
|
7951
8254
|
body: PatchMenuV4ModifierBody;
|
|
7952
8255
|
}
|
|
7953
8256
|
|
|
8257
|
+
// DELETE /menu/v4/modifier/{id}
|
|
8258
|
+
|
|
8259
|
+
export interface DeleteMenuV4ModifierPath {
|
|
8260
|
+
id: string;
|
|
8261
|
+
}
|
|
8262
|
+
|
|
8263
|
+
export interface DeleteMenuV4ModifierResponse {
|
|
8264
|
+
parent?: DraftModifierDTO;
|
|
8265
|
+
children?: DraftModifierDTO[];
|
|
8266
|
+
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
8267
|
+
id: string;
|
|
8268
|
+
created_at?: string;
|
|
8269
|
+
updated_at?: string;
|
|
8270
|
+
deleted_at?: string;
|
|
8271
|
+
parent_id?: string;
|
|
8272
|
+
name: string;
|
|
8273
|
+
name_on_receipt?: string;
|
|
8274
|
+
name_on_kds?: string;
|
|
8275
|
+
label?: string;
|
|
8276
|
+
description?: string;
|
|
8277
|
+
price: number;
|
|
8278
|
+
calories?: number;
|
|
8279
|
+
tax_tags?: string[];
|
|
8280
|
+
is_active?: boolean;
|
|
8281
|
+
posid?: string;
|
|
8282
|
+
reporting: ReportingMetadataDTO;
|
|
8283
|
+
posid_segment?: number;
|
|
8284
|
+
brand_id: string;
|
|
8285
|
+
line_route?: string;
|
|
8286
|
+
menu_works?: MenuWorksDTO;
|
|
8287
|
+
is_out_of_stock?: boolean;
|
|
8288
|
+
price_for_none?: number;
|
|
8289
|
+
price_for_less?: number;
|
|
8290
|
+
price_for_more?: number;
|
|
8291
|
+
pre_surcharge?: number;
|
|
8292
|
+
post_surcharge?: number;
|
|
8293
|
+
tax_tag_code?: string;
|
|
8294
|
+
tags?: string[];
|
|
8295
|
+
unique_id?: number;
|
|
8296
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
8297
|
+
version?: number;
|
|
8298
|
+
brand?: DraftBrandDTO;
|
|
8299
|
+
changes?: ModifierChangeDTO[];
|
|
8300
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
8301
|
+
weight?: WeightDTO;
|
|
8302
|
+
attachments?: FileAttachmentsDTO;
|
|
8303
|
+
permissions?: Record<string, any>;
|
|
8304
|
+
[index: string]: any;
|
|
8305
|
+
}
|
|
8306
|
+
|
|
8307
|
+
export interface DeleteMenuV4ModifierRequest extends BaseRequest, DeleteMenuV4ModifierPath {}
|
|
8308
|
+
|
|
7954
8309
|
// POST /menu/v4/modifier-group
|
|
7955
8310
|
|
|
7956
8311
|
export interface PostMenuV4ModifierGroupBody {
|
|
@@ -8123,6 +8478,46 @@ export interface PatchMenuV4ModifierGroupRequest extends BaseRequest, PatchMenuV
|
|
|
8123
8478
|
body: PatchMenuV4ModifierGroupBody;
|
|
8124
8479
|
}
|
|
8125
8480
|
|
|
8481
|
+
// DELETE /menu/v4/modifier-group/{id}
|
|
8482
|
+
|
|
8483
|
+
export interface DeleteMenuV4ModifierGroupPath {
|
|
8484
|
+
id: string;
|
|
8485
|
+
}
|
|
8486
|
+
|
|
8487
|
+
export interface DeleteMenuV4ModifierGroupResponse {
|
|
8488
|
+
parent?: DraftModifierGroupDTO;
|
|
8489
|
+
children?: DraftModifierGroupDTO[];
|
|
8490
|
+
modifiers?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
8491
|
+
items?: DraftItemToModifierGroupRelationshipDTO[];
|
|
8492
|
+
id: string;
|
|
8493
|
+
created_at?: string;
|
|
8494
|
+
updated_at?: string;
|
|
8495
|
+
deleted_at?: string;
|
|
8496
|
+
parent_id?: string;
|
|
8497
|
+
name: string;
|
|
8498
|
+
label?: string;
|
|
8499
|
+
min?: number;
|
|
8500
|
+
max?: number;
|
|
8501
|
+
is_active?: boolean;
|
|
8502
|
+
limit?: number;
|
|
8503
|
+
brand_id: string;
|
|
8504
|
+
order_type?: 'selection' | 'option' | 'quantity';
|
|
8505
|
+
sizing?: string;
|
|
8506
|
+
is_out_of_stock?: boolean;
|
|
8507
|
+
is_incremental?: boolean;
|
|
8508
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
8509
|
+
version?: number;
|
|
8510
|
+
brand?: DraftBrandDTO;
|
|
8511
|
+
changes?: ModifierGroupChangeDTO[];
|
|
8512
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
8513
|
+
permissions?: Record<string, any>;
|
|
8514
|
+
[index: string]: any;
|
|
8515
|
+
}
|
|
8516
|
+
|
|
8517
|
+
export interface DeleteMenuV4ModifierGroupRequest
|
|
8518
|
+
extends BaseRequest,
|
|
8519
|
+
DeleteMenuV4ModifierGroupPath {}
|
|
8520
|
+
|
|
8126
8521
|
// POST /menu/v4/modifier-group/{id}/attach-modifiers
|
|
8127
8522
|
|
|
8128
8523
|
export interface PostMenuV4ModifierGroupAttachModifiersPath {
|