@compassdigital/sdk.typescript 4.87.0 → 4.88.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.
@@ -134,10 +134,10 @@ export interface Item {
134
134
  recipe?: {
135
135
  mrn?: string;
136
136
  unit_id?: string;
137
- portion_quantity?: string;
137
+ portion_quantity?: number;
138
138
  portion_unit_name?: string;
139
- grams?: string;
140
- cost?: string;
139
+ grams?: number;
140
+ cost?: number;
141
141
  ingredients?: string[];
142
142
  smart_tags?: string[];
143
143
  allergen_tags?: string[];
@@ -261,10 +261,10 @@ export interface Option {
261
261
  recipe?: {
262
262
  mrn?: string;
263
263
  unit_id?: string;
264
- portion_quantity?: string;
264
+ portion_quantity?: number;
265
265
  portion_unit_name?: string;
266
- grams?: string;
267
- cost?: string;
266
+ grams?: number;
267
+ cost?: number;
268
268
  ingredients?: string[];
269
269
  smart_tags?: string[];
270
270
  allergen_tags?: string[];
@@ -372,6 +372,7 @@ export interface DraftBrandDTO {
372
372
  posid_segment?: string;
373
373
  is_simplified_view?: boolean;
374
374
  frictionless_partner?: string;
375
+ catalog_id?: number;
375
376
  applied_diff_snapshot?: Record<string, any>;
376
377
  permissions?: Record<string, any>;
377
378
  [index: string]: any;
@@ -388,6 +389,7 @@ export interface PublishedBrandDTO {
388
389
  posid_segment?: string;
389
390
  is_simplified_view?: boolean;
390
391
  frictionless_partner?: string;
392
+ catalog_id?: number;
391
393
  permissions?: Record<string, any>;
392
394
  [index: string]: any;
393
395
  }
@@ -2111,6 +2113,7 @@ export interface PostMenuV3DraftBrandBody {
2111
2113
  posid_segment?: string;
2112
2114
  is_simplified_view?: boolean;
2113
2115
  frictionless_partner?: string;
2116
+ catalog_id?: number;
2114
2117
  applied_diff_snapshot?: Record<string, any>;
2115
2118
  changes?: BrandChangeDTO[];
2116
2119
  local_menu_group?: LocalMenuGroupDTO;
@@ -2162,6 +2165,7 @@ export interface PatchMenuV3DraftBrandBody {
2162
2165
  posid_segment?: string;
2163
2166
  is_simplified_view?: boolean;
2164
2167
  frictionless_partner?: string;
2168
+ catalog_id?: number;
2165
2169
  applied_diff_snapshot?: Record<string, any>;
2166
2170
  version?: number;
2167
2171
  changes?: BrandChangeDTO[];
@@ -2226,6 +2230,7 @@ export type PostMenuV3DraftBrandsBody = {
2226
2230
  posid_segment?: string;
2227
2231
  is_simplified_view?: boolean;
2228
2232
  frictionless_partner?: string;
2233
+ catalog_id?: number;
2229
2234
  applied_diff_snapshot?: Record<string, any>;
2230
2235
  changes?: BrandChangeDTO[];
2231
2236
  local_menu_group?: LocalMenuGroupDTO;
@@ -2496,6 +2501,7 @@ export interface PostMenuV3BrandBody {
2496
2501
  posid_segment?: string;
2497
2502
  is_simplified_view?: boolean;
2498
2503
  frictionless_partner?: string;
2504
+ catalog_id?: number;
2499
2505
  local_menu_group?: LocalMenuGroupDTO;
2500
2506
  global_menu_group?: GlobalMenuGroupDTO;
2501
2507
  attachments?: FileAttachmentsDTO;
@@ -2546,6 +2552,7 @@ export interface PatchMenuV3BrandBody {
2546
2552
  posid_segment?: string;
2547
2553
  is_simplified_view?: boolean;
2548
2554
  frictionless_partner?: string;
2555
+ catalog_id?: number;
2549
2556
  version?: number;
2550
2557
  local_menu_group?: LocalMenuGroupDTO;
2551
2558
  global_menu_group?: GlobalMenuGroupDTO;
@@ -2610,6 +2617,7 @@ export type PostMenuV3BrandsBody = {
2610
2617
  posid_segment?: string;
2611
2618
  is_simplified_view?: boolean;
2612
2619
  frictionless_partner?: string;
2620
+ catalog_id?: number;
2613
2621
  local_menu_group?: LocalMenuGroupDTO;
2614
2622
  global_menu_group?: GlobalMenuGroupDTO;
2615
2623
  attachments?: FileAttachmentsDTO;
@@ -3113,6 +3121,45 @@ export interface PostMenuV3DraftCategoryAttachmentResponse {
3113
3121
  }
3114
3122
  export interface PostMenuV3DraftCategoryAttachmentRequest extends BaseRequest, RequestQuery<PostMenuV3DraftCategoryAttachmentQuery>, PostMenuV3DraftCategoryAttachmentPath {
3115
3123
  }
3124
+ export interface PostMenuV3DraftCategoryDuplicatePath {
3125
+ id: string;
3126
+ }
3127
+ export interface PostMenuV3DraftCategoryDuplicateBody {
3128
+ name?: string;
3129
+ label?: string;
3130
+ sequence?: number;
3131
+ is_active?: boolean;
3132
+ menu_id?: string;
3133
+ [index: string]: any;
3134
+ }
3135
+ export interface PostMenuV3DraftCategoryDuplicateResponse {
3136
+ parent?: DraftCategoryDTO;
3137
+ children?: DraftCategoryDTO[];
3138
+ id: string;
3139
+ created_at?: string;
3140
+ updated_at?: string;
3141
+ deleted_at?: string;
3142
+ parent_id?: string;
3143
+ name: string;
3144
+ label?: string;
3145
+ sequence?: number;
3146
+ is_active?: boolean;
3147
+ brand_id: string;
3148
+ menu_id: string;
3149
+ applied_diff_snapshot?: Record<string, any>;
3150
+ version?: number;
3151
+ menu?: DraftMenuDTO;
3152
+ items?: DraftCategoryToItemRelationshipDTO[];
3153
+ brand?: DraftBrandDTO;
3154
+ changes?: CategoryChangeDTO[];
3155
+ vendor_metadata?: VendorMetadataDTO[];
3156
+ attachments?: FileAttachmentsDTO;
3157
+ permissions?: Record<string, any>;
3158
+ [index: string]: any;
3159
+ }
3160
+ export interface PostMenuV3DraftCategoryDuplicateRequest extends BaseRequest, PostMenuV3DraftCategoryDuplicatePath {
3161
+ body: PostMenuV3DraftCategoryDuplicateBody;
3162
+ }
3116
3163
  export interface GetMenuV3CategoryPath {
3117
3164
  id: string;
3118
3165
  }
@@ -4754,7 +4801,37 @@ export interface PostMenuV3TriggerUpdateResponse {
4754
4801
  export interface PostMenuV3TriggerUpdateRequest extends BaseRequest {
4755
4802
  }
4756
4803
  export interface PostMenuV4BrandBody {
4757
- name?: string;
4804
+ parent?: DraftBrandDTO;
4805
+ children?: DraftBrandDTO[];
4806
+ menus?: DraftMenuDTO[];
4807
+ categories?: DraftCategoryDTO[];
4808
+ category_to_item_relationships?: DraftCategoryToItemRelationshipDTO[];
4809
+ items?: DraftItemDTO[];
4810
+ item_to_modifier_group_relationships?: DraftItemToModifierGroupRelationshipDTO[];
4811
+ modifier_groups?: DraftModifierGroupDTO[];
4812
+ modifier_group_to_modifier_relationships?: DraftModifierGroupToModifierRelationshipDTO[];
4813
+ modifiers?: DraftModifierDTO[];
4814
+ statuses?: BrandStatusDTO[];
4815
+ audit_logs?: AuditDTO[];
4816
+ name: string;
4817
+ description?: string;
4818
+ is_active?: boolean;
4819
+ type?: 'global' | 'local';
4820
+ parent_id?: string;
4821
+ local_menu_group_id?: string;
4822
+ global_menu_group_id?: string;
4823
+ posid_segment?: string;
4824
+ is_simplified_view?: boolean;
4825
+ frictionless_partner?: string;
4826
+ catalog_id?: number;
4827
+ applied_diff_snapshot?: Record<string, any>;
4828
+ changes?: BrandChangeDTO[];
4829
+ local_menu_group?: LocalMenuGroupDTO;
4830
+ global_menu_group?: GlobalMenuGroupDTO;
4831
+ vendor_metadata?: VendorMetadataDTO[];
4832
+ attachments?: FileAttachmentsDTO;
4833
+ permissions?: Record<string, any>;
4834
+ [index: string]: any;
4758
4835
  }
4759
4836
  export interface PostMenuV4BrandResponse {
4760
4837
  parent?: DraftBrandDTO;
@@ -4783,6 +4860,7 @@ export interface PostMenuV4BrandResponse {
4783
4860
  posid_segment?: string;
4784
4861
  is_simplified_view?: boolean;
4785
4862
  frictionless_partner?: string;
4863
+ catalog_id?: number;
4786
4864
  applied_diff_snapshot?: Record<string, any>;
4787
4865
  version?: number;
4788
4866
  changes?: BrandChangeDTO[];
@@ -4829,6 +4907,7 @@ export interface GetMenuV4BrandResponse {
4829
4907
  posid_segment?: string;
4830
4908
  is_simplified_view?: boolean;
4831
4909
  frictionless_partner?: string;
4910
+ catalog_id?: number;
4832
4911
  applied_diff_snapshot?: Record<string, any>;
4833
4912
  version?: number;
4834
4913
  changes?: BrandChangeDTO[];
@@ -4841,4 +4920,73 @@ export interface GetMenuV4BrandResponse {
4841
4920
  }
4842
4921
  export interface GetMenuV4BrandRequest extends BaseRequest, RequestQuery<GetMenuV4BrandQuery>, GetMenuV4BrandPath {
4843
4922
  }
4923
+ export interface PostMenuV4BrandMenuPath {
4924
+ id: string;
4925
+ }
4926
+ export interface PostMenuV4BrandMenuBody {
4927
+ id?: string;
4928
+ categories?: Record<string, any>;
4929
+ brand_id?: string;
4930
+ name?: string;
4931
+ [index: string]: any;
4932
+ }
4933
+ export interface PostMenuV4BrandMenuResponse {
4934
+ id?: string;
4935
+ categories?: Record<string, any>;
4936
+ brand_id?: string;
4937
+ name?: string;
4938
+ [index: string]: any;
4939
+ }
4940
+ export interface PostMenuV4BrandMenuRequest extends BaseRequest, PostMenuV4BrandMenuPath {
4941
+ body: PostMenuV4BrandMenuBody;
4942
+ }
4943
+ export interface GetMenuV4BrandCategoryItemsPath {
4944
+ id: string;
4945
+ category_id: string;
4946
+ }
4947
+ export interface GetMenuV4BrandCategoryItemsQuery {
4948
+ select?: string[];
4949
+ relationships?: string[];
4950
+ limit?: number;
4951
+ page?: number;
4952
+ sort_by?: string;
4953
+ sort_order?: 'DESC' | 'ASC';
4954
+ soft_deleted?: 'include' | 'exclude' | 'only';
4955
+ _query?: string;
4956
+ }
4957
+ export interface GetMenuV4BrandCategoryItemsResponse {
4958
+ results?: DraftItemEntityDTO[];
4959
+ }
4960
+ export interface GetMenuV4BrandCategoryItemsRequest extends BaseRequest, RequestQuery<GetMenuV4BrandCategoryItemsQuery>, GetMenuV4BrandCategoryItemsPath {
4961
+ }
4962
+ export interface PostMenuV4BrandCategoryPath {
4963
+ id: string;
4964
+ }
4965
+ export interface PostMenuV4BrandCategoryBody {
4966
+ id?: string;
4967
+ name: string;
4968
+ label?: string;
4969
+ sequence?: number;
4970
+ is_active?: boolean;
4971
+ brand_id: string;
4972
+ menu_id: string;
4973
+ items?: Record<string, any>;
4974
+ attachments?: Record<string, any>;
4975
+ [index: string]: any;
4976
+ }
4977
+ export interface PostMenuV4BrandCategoryResponse {
4978
+ id?: string;
4979
+ name: string;
4980
+ label?: string;
4981
+ sequence?: number;
4982
+ is_active?: boolean;
4983
+ brand_id: string;
4984
+ menu_id: string;
4985
+ items?: Record<string, any>;
4986
+ attachments?: Record<string, any>;
4987
+ [index: string]: any;
4988
+ }
4989
+ export interface PostMenuV4BrandCategoryRequest extends BaseRequest, PostMenuV4BrandCategoryPath {
4990
+ body: PostMenuV4BrandCategoryBody;
4991
+ }
4844
4992
  //# sourceMappingURL=menu.d.ts.map