@compassdigital/sdk.typescript 4.94.2 → 4.95.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.
@@ -2451,6 +2451,41 @@ export interface PostMenuV3LocalMenuGroupImportBrandsRequest
2451
2451
  RequestQuery<PostMenuV3LocalMenuGroupImportBrandsQuery>,
2452
2452
  PostMenuV3LocalMenuGroupImportBrandsPath {}
2453
2453
 
2454
+ // POST /menu/v4/local-menu-group/{id}/import-brands
2455
+
2456
+ export interface PostMenuV4LocalMenuGroupImportBrandsPath {
2457
+ id: string;
2458
+ }
2459
+
2460
+ export interface PostMenuV4LocalMenuGroupImportBrandsQuery {
2461
+ // If specified, only the selected fields will be returned
2462
+ select?: string[];
2463
+ // List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
2464
+ relationships?: string[];
2465
+ // The fields that filtering is allowed on
2466
+ filter?: string;
2467
+ 'body.brand_ids'?: string[];
2468
+ // Number of records to load per page
2469
+ limit?: number;
2470
+ page?: number;
2471
+ // A field to sort the results based on
2472
+ sort_by?: string;
2473
+ sort_order?: 'DESC' | 'ASC';
2474
+ // How soft deleted records should be shown in the list
2475
+ soft_deleted?: 'include' | 'exclude' | 'only';
2476
+ }
2477
+
2478
+ export interface PostMenuV4LocalMenuGroupImportBrandsResponse {
2479
+ results: DraftBrandDTO[];
2480
+ meta?: ListResponseMetadataDTO;
2481
+ [index: string]: any;
2482
+ }
2483
+
2484
+ export interface PostMenuV4LocalMenuGroupImportBrandsRequest
2485
+ extends BaseRequest,
2486
+ RequestQuery<PostMenuV4LocalMenuGroupImportBrandsQuery>,
2487
+ PostMenuV4LocalMenuGroupImportBrandsPath {}
2488
+
2454
2489
  // GET /menu/v3/local-menu-group/{id}/site
2455
2490
 
2456
2491
  export interface GetMenuV3LocalMenuGroupSitePath {
@@ -3411,8 +3446,8 @@ export interface PostMenuV3DraftBrandGlobalDiffsApplyRequest
3411
3446
  // POST /menu/v3/draft/brand/{id}/attachment/{name}
3412
3447
 
3413
3448
  export interface PostMenuV3DraftBrandAttachmentPath {
3414
- id: string;
3415
3449
  name: 'thumbnail';
3450
+ id: string;
3416
3451
  }
3417
3452
 
3418
3453
  export interface PostMenuV3DraftBrandAttachmentQuery {
@@ -3428,6 +3463,49 @@ export interface PostMenuV3DraftBrandAttachmentRequest
3428
3463
  RequestQuery<PostMenuV3DraftBrandAttachmentQuery>,
3429
3464
  PostMenuV3DraftBrandAttachmentPath {}
3430
3465
 
3466
+ // GET /menu/v3/draft/brand/{id}/export
3467
+
3468
+ export interface GetMenuV3DraftBrandExportPath {
3469
+ id: string;
3470
+ }
3471
+
3472
+ export interface GetMenuV3DraftBrandExportQuery {
3473
+ format?: 'xlsx';
3474
+ // Graphql query string
3475
+ _query?: string;
3476
+ }
3477
+
3478
+ export interface GetMenuV3DraftBrandExportResponse {
3479
+ s3_link: string;
3480
+ [index: string]: any;
3481
+ }
3482
+
3483
+ export interface GetMenuV3DraftBrandExportRequest
3484
+ extends BaseRequest,
3485
+ RequestQuery<GetMenuV3DraftBrandExportQuery>,
3486
+ GetMenuV3DraftBrandExportPath {}
3487
+
3488
+ // GET /menu/v3/draft/brand/{id}/import/link
3489
+
3490
+ export interface GetMenuV3DraftBrandImportLinkPath {
3491
+ id: string;
3492
+ }
3493
+
3494
+ export interface GetMenuV3DraftBrandImportLinkQuery {
3495
+ // Graphql query string
3496
+ _query?: string;
3497
+ }
3498
+
3499
+ export interface GetMenuV3DraftBrandImportLinkResponse {
3500
+ upload_link: string;
3501
+ [index: string]: any;
3502
+ }
3503
+
3504
+ export interface GetMenuV3DraftBrandImportLinkRequest
3505
+ extends BaseRequest,
3506
+ RequestQuery<GetMenuV3DraftBrandImportLinkQuery>,
3507
+ GetMenuV3DraftBrandImportLinkPath {}
3508
+
3431
3509
  // POST /menu/v3/brand
3432
3510
 
3433
3511
  export interface PostMenuV3BrandQuery {
@@ -7153,6 +7231,54 @@ export interface PostMenuV4BrandMenuRequest extends BaseRequest, PostMenuV4Brand
7153
7231
  body: PostMenuV4BrandMenuBody;
7154
7232
  }
7155
7233
 
7234
+ // PATCH /menu/v4/brand/{brand_id}/menu/{menu_id}
7235
+
7236
+ export interface PatchMenuV4BrandMenuPath {
7237
+ brand_id: string;
7238
+ menu_id: string;
7239
+ }
7240
+
7241
+ export interface PatchMenuV4BrandMenuBody {
7242
+ parent?: DraftMenuDTO;
7243
+ children?: DraftMenuDTO[];
7244
+ categories?: DraftCategoryDTO[];
7245
+ id?: string;
7246
+ parent_id?: string;
7247
+ name?: string;
7248
+ brand_id?: string;
7249
+ applied_diff_snapshot?: Record<string, any>;
7250
+ version?: number;
7251
+ brand?: DraftBrandDTO;
7252
+ changes?: MenuChangeDTO[];
7253
+ vendor_metadata?: VendorMetadataDTO[];
7254
+ permissions?: Record<string, any>;
7255
+ [index: string]: any;
7256
+ }
7257
+
7258
+ export interface PatchMenuV4BrandMenuResponse {
7259
+ parent?: DraftMenuDTO;
7260
+ children?: DraftMenuDTO[];
7261
+ categories?: DraftCategoryDTO[];
7262
+ id: string;
7263
+ created_at?: string;
7264
+ updated_at?: string;
7265
+ deleted_at?: string;
7266
+ parent_id?: string;
7267
+ name: string;
7268
+ brand_id: string;
7269
+ applied_diff_snapshot?: Record<string, any>;
7270
+ version?: number;
7271
+ brand?: DraftBrandDTO;
7272
+ changes?: MenuChangeDTO[];
7273
+ vendor_metadata?: VendorMetadataDTO[];
7274
+ permissions?: Record<string, any>;
7275
+ [index: string]: any;
7276
+ }
7277
+
7278
+ export interface PatchMenuV4BrandMenuRequest extends BaseRequest, PatchMenuV4BrandMenuPath {
7279
+ body: PatchMenuV4BrandMenuBody;
7280
+ }
7281
+
7156
7282
  // GET /menu/v4/brand/{id}/items
7157
7283
 
7158
7284
  export interface GetMenuV4BrandItemsPath {
@@ -7464,6 +7590,120 @@ export interface PostMenuV4BrandV3ToV4Response {
7464
7590
 
7465
7591
  export interface PostMenuV4BrandV3ToV4Request extends BaseRequest, PostMenuV4BrandV3ToV4Path {}
7466
7592
 
7593
+ // DELETE menu/v4/brand/{id}
7594
+
7595
+ export interface DeleteMenuV4BrandPath {
7596
+ id: string;
7597
+ }
7598
+
7599
+ export interface DeleteMenuV4BrandResponse {
7600
+ parent?: DraftBrandDTO;
7601
+ children?: DraftBrandDTO[];
7602
+ menus?: DraftMenuDTO[];
7603
+ categories?: DraftCategoryDTO[];
7604
+ category_to_item_relationships?: DraftCategoryToItemRelationshipDTO[];
7605
+ items?: DraftItemDTO[];
7606
+ item_to_modifier_group_relationships?: DraftItemToModifierGroupRelationshipDTO[];
7607
+ modifier_groups?: DraftModifierGroupDTO[];
7608
+ modifier_group_to_modifier_relationships?: DraftModifierGroupToModifierRelationshipDTO[];
7609
+ modifiers?: DraftModifierDTO[];
7610
+ statuses?: BrandStatusDTO[];
7611
+ audit_logs?: AuditDTO[];
7612
+ id: string;
7613
+ created_at?: string;
7614
+ updated_at?: string;
7615
+ deleted_at?: string;
7616
+ name: string;
7617
+ description?: string;
7618
+ is_active?: boolean;
7619
+ type?: 'global' | 'local';
7620
+ parent_id?: string;
7621
+ local_menu_group_id?: string;
7622
+ global_menu_group_id?: string;
7623
+ posid_segment?: string;
7624
+ is_simplified_view?: boolean;
7625
+ frictionless_partner?: string;
7626
+ catalog_id?: number;
7627
+ meta?: BrandMeta;
7628
+ applied_diff_snapshot?: Record<string, any>;
7629
+ version?: number;
7630
+ changes?: BrandChangeDTO[];
7631
+ local_menu_group?: LocalMenuGroupDTO;
7632
+ global_menu_group?: GlobalMenuGroupDTO;
7633
+ vendor_metadata?: VendorMetadataDTO[];
7634
+ attachments?: FileAttachmentsDTO;
7635
+ permissions?: Record<string, any>;
7636
+ [index: string]: any;
7637
+ }
7638
+
7639
+ export interface DeleteMenuV4BrandRequest extends BaseRequest, DeleteMenuV4BrandPath {}
7640
+
7641
+ // DELETE menu/v4/brand/{brand_id}/menu/{menu_id}
7642
+
7643
+ export interface DeleteMenuV4BrandMenuPath {
7644
+ brand_id: string;
7645
+ menu_id: string;
7646
+ }
7647
+
7648
+ export interface DeleteMenuV4BrandMenuResponse {
7649
+ parent?: DraftMenuDTO;
7650
+ children?: DraftMenuDTO[];
7651
+ categories?: DraftCategoryDTO[];
7652
+ id: string;
7653
+ created_at?: string;
7654
+ updated_at?: string;
7655
+ deleted_at?: string;
7656
+ parent_id?: string;
7657
+ name: string;
7658
+ brand_id: string;
7659
+ applied_diff_snapshot?: Record<string, any>;
7660
+ version?: number;
7661
+ brand?: DraftBrandDTO;
7662
+ changes?: MenuChangeDTO[];
7663
+ vendor_metadata?: VendorMetadataDTO[];
7664
+ permissions?: Record<string, any>;
7665
+ [index: string]: any;
7666
+ }
7667
+
7668
+ export interface DeleteMenuV4BrandMenuRequest extends BaseRequest, DeleteMenuV4BrandMenuPath {}
7669
+
7670
+ // DELETE menu/v4/brand/{brand_id}/category/{category_id}
7671
+
7672
+ export interface DeleteMenuV4BrandCategoryPath {
7673
+ brand_id: string;
7674
+ category_id: string;
7675
+ }
7676
+
7677
+ export interface DeleteMenuV4BrandCategoryResponse {
7678
+ parent?: DraftCategoryDTO;
7679
+ children?: DraftCategoryDTO[];
7680
+ id: string;
7681
+ created_at?: string;
7682
+ updated_at?: string;
7683
+ deleted_at?: string;
7684
+ parent_id?: string;
7685
+ name: string;
7686
+ label?: string;
7687
+ sequence?: number;
7688
+ is_active?: boolean;
7689
+ brand_id: string;
7690
+ menu_id: string;
7691
+ applied_diff_snapshot?: Record<string, any>;
7692
+ version?: number;
7693
+ menu?: DraftMenuDTO;
7694
+ items?: DraftCategoryToItemRelationshipDTO[];
7695
+ brand?: DraftBrandDTO;
7696
+ changes?: CategoryChangeDTO[];
7697
+ vendor_metadata?: VendorMetadataDTO[];
7698
+ attachments?: FileAttachmentsDTO;
7699
+ permissions?: Record<string, any>;
7700
+ [index: string]: any;
7701
+ }
7702
+
7703
+ export interface DeleteMenuV4BrandCategoryRequest
7704
+ extends BaseRequest,
7705
+ DeleteMenuV4BrandCategoryPath {}
7706
+
7467
7707
  // POST /menu/v4/item
7468
7708
 
7469
7709
  export interface PostMenuV4ItemBody {
@@ -7708,6 +7948,58 @@ export interface PatchMenuV4ItemRequest extends BaseRequest, PatchMenuV4ItemPath
7708
7948
  body: PatchMenuV4ItemBody;
7709
7949
  }
7710
7950
 
7951
+ // DELETE /menu/v4/item/{id}
7952
+
7953
+ export interface DeleteMenuV4ItemPath {
7954
+ id: string;
7955
+ }
7956
+
7957
+ export interface DeleteMenuV4ItemResponse {
7958
+ parent?: DraftItemDTO;
7959
+ children?: DraftItemDTO[];
7960
+ modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
7961
+ id: string;
7962
+ created_at?: string;
7963
+ updated_at?: string;
7964
+ deleted_at?: string;
7965
+ parent_id?: string;
7966
+ name: string;
7967
+ name_on_receipt?: string;
7968
+ name_on_kds?: string;
7969
+ label?: string;
7970
+ description?: string;
7971
+ reporting: ReportingMetadataDTO;
7972
+ price: number;
7973
+ barcode?: string;
7974
+ calories?: number;
7975
+ meal_value?: number;
7976
+ is_active?: boolean;
7977
+ posid?: string;
7978
+ tax_tags?: string[];
7979
+ brand_id: string;
7980
+ line_route?: string;
7981
+ posid_segment?: number;
7982
+ menu_works?: MenuWorksDTO;
7983
+ is_out_of_stock?: boolean;
7984
+ tax_tag_code?: string;
7985
+ tags?: string[];
7986
+ is_featured?: boolean;
7987
+ tax_jwo_code?: string;
7988
+ unique_id?: number;
7989
+ applied_diff_snapshot?: Record<string, any>;
7990
+ version?: number;
7991
+ brand?: DraftBrandDTO;
7992
+ categories?: DraftCategoryToItemRelationshipDTO[];
7993
+ changes?: ItemChangeDTO[];
7994
+ vendor_metadata?: VendorMetadataDTO[];
7995
+ attachments?: FileAttachmentsDTO;
7996
+ weight?: WeightDTO;
7997
+ permissions?: Record<string, any>;
7998
+ [index: string]: any;
7999
+ }
8000
+
8001
+ export interface DeleteMenuV4ItemRequest extends BaseRequest, DeleteMenuV4ItemPath {}
8002
+
7711
8003
  // POST /menu/v4/modifier
7712
8004
 
7713
8005
  export interface PostMenuV4ModifierBody {
@@ -7951,6 +8243,58 @@ export interface PatchMenuV4ModifierRequest extends BaseRequest, PatchMenuV4Modi
7951
8243
  body: PatchMenuV4ModifierBody;
7952
8244
  }
7953
8245
 
8246
+ // DELETE /menu/v4/modifier/{id}
8247
+
8248
+ export interface DeleteMenuV4ModifierPath {
8249
+ id: string;
8250
+ }
8251
+
8252
+ export interface DeleteMenuV4ModifierResponse {
8253
+ parent?: DraftModifierDTO;
8254
+ children?: DraftModifierDTO[];
8255
+ modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
8256
+ id: string;
8257
+ created_at?: string;
8258
+ updated_at?: string;
8259
+ deleted_at?: string;
8260
+ parent_id?: string;
8261
+ name: string;
8262
+ name_on_receipt?: string;
8263
+ name_on_kds?: string;
8264
+ label?: string;
8265
+ description?: string;
8266
+ price: number;
8267
+ calories?: number;
8268
+ tax_tags?: string[];
8269
+ is_active?: boolean;
8270
+ posid?: string;
8271
+ reporting: ReportingMetadataDTO;
8272
+ posid_segment?: number;
8273
+ brand_id: string;
8274
+ line_route?: string;
8275
+ menu_works?: MenuWorksDTO;
8276
+ is_out_of_stock?: boolean;
8277
+ price_for_none?: number;
8278
+ price_for_less?: number;
8279
+ price_for_more?: number;
8280
+ pre_surcharge?: number;
8281
+ post_surcharge?: number;
8282
+ tax_tag_code?: string;
8283
+ tags?: string[];
8284
+ unique_id?: number;
8285
+ applied_diff_snapshot?: Record<string, any>;
8286
+ version?: number;
8287
+ brand?: DraftBrandDTO;
8288
+ changes?: ModifierChangeDTO[];
8289
+ vendor_metadata?: VendorMetadataDTO[];
8290
+ weight?: WeightDTO;
8291
+ attachments?: FileAttachmentsDTO;
8292
+ permissions?: Record<string, any>;
8293
+ [index: string]: any;
8294
+ }
8295
+
8296
+ export interface DeleteMenuV4ModifierRequest extends BaseRequest, DeleteMenuV4ModifierPath {}
8297
+
7954
8298
  // POST /menu/v4/modifier-group
7955
8299
 
7956
8300
  export interface PostMenuV4ModifierGroupBody {
@@ -8123,6 +8467,46 @@ export interface PatchMenuV4ModifierGroupRequest extends BaseRequest, PatchMenuV
8123
8467
  body: PatchMenuV4ModifierGroupBody;
8124
8468
  }
8125
8469
 
8470
+ // DELETE /menu/v4/modifier-group/{id}
8471
+
8472
+ export interface DeleteMenuV4ModifierGroupPath {
8473
+ id: string;
8474
+ }
8475
+
8476
+ export interface DeleteMenuV4ModifierGroupResponse {
8477
+ parent?: DraftModifierGroupDTO;
8478
+ children?: DraftModifierGroupDTO[];
8479
+ modifiers?: DraftModifierGroupToModifierRelationshipDTO[];
8480
+ items?: DraftItemToModifierGroupRelationshipDTO[];
8481
+ id: string;
8482
+ created_at?: string;
8483
+ updated_at?: string;
8484
+ deleted_at?: string;
8485
+ parent_id?: string;
8486
+ name: string;
8487
+ label?: string;
8488
+ min?: number;
8489
+ max?: number;
8490
+ is_active?: boolean;
8491
+ limit?: number;
8492
+ brand_id: string;
8493
+ order_type?: 'selection' | 'option' | 'quantity';
8494
+ sizing?: string;
8495
+ is_out_of_stock?: boolean;
8496
+ is_incremental?: boolean;
8497
+ applied_diff_snapshot?: Record<string, any>;
8498
+ version?: number;
8499
+ brand?: DraftBrandDTO;
8500
+ changes?: ModifierGroupChangeDTO[];
8501
+ vendor_metadata?: VendorMetadataDTO[];
8502
+ permissions?: Record<string, any>;
8503
+ [index: string]: any;
8504
+ }
8505
+
8506
+ export interface DeleteMenuV4ModifierGroupRequest
8507
+ extends BaseRequest,
8508
+ DeleteMenuV4ModifierGroupPath {}
8509
+
8126
8510
  // POST /menu/v4/modifier-group/{id}/attach-modifiers
8127
8511
 
8128
8512
  export interface PostMenuV4ModifierGroupAttachModifiersPath {