@compassdigital/sdk.typescript 4.88.0 → 4.90.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.
@@ -159,13 +159,13 @@ export interface Item {
159
159
  // menuworks unit id
160
160
  unit_id?: string;
161
161
  // menuworks portion quantity
162
- portion_quantity?: number;
162
+ portion_quantity?: string;
163
163
  // menuworks portion unit name
164
164
  portion_unit_name?: string;
165
165
  // menuworks grams
166
- grams?: number;
166
+ grams?: string;
167
167
  // menuworks cost (per serving)
168
- cost?: number;
168
+ cost?: string;
169
169
  // menuworks ingredients
170
170
  ingredients?: string[];
171
171
  // menuworks smart tags
@@ -306,13 +306,13 @@ export interface Option {
306
306
  // menuworks unit id
307
307
  unit_id?: string;
308
308
  // menuworks portion quantity
309
- portion_quantity?: number;
309
+ portion_quantity?: string;
310
310
  // menuworks portion unit name
311
311
  portion_unit_name?: string;
312
312
  // menuworks grams
313
- grams?: number;
313
+ grams?: string;
314
314
  // menuworks cost (per serving)
315
- cost?: number;
315
+ cost?: string;
316
316
  // menuworks ingredients
317
317
  ingredients?: string[];
318
318
  // menuworks smart tags
@@ -442,7 +442,6 @@ export interface DraftBrandDTO {
442
442
  posid_segment?: string;
443
443
  is_simplified_view?: boolean;
444
444
  frictionless_partner?: string;
445
- catalog_id?: number;
446
445
  applied_diff_snapshot?: Record<string, any>;
447
446
  permissions?: Record<string, any>;
448
447
  [index: string]: any;
@@ -460,7 +459,6 @@ export interface PublishedBrandDTO {
460
459
  posid_segment?: string;
461
460
  is_simplified_view?: boolean;
462
461
  frictionless_partner?: string;
463
- catalog_id?: number;
464
462
  permissions?: Record<string, any>;
465
463
  [index: string]: any;
466
464
  }
@@ -2772,7 +2770,6 @@ export interface PostMenuV3DraftBrandBody {
2772
2770
  posid_segment?: string;
2773
2771
  is_simplified_view?: boolean;
2774
2772
  frictionless_partner?: string;
2775
- catalog_id?: number;
2776
2773
  applied_diff_snapshot?: Record<string, any>;
2777
2774
  changes?: BrandChangeDTO[];
2778
2775
  local_menu_group?: LocalMenuGroupDTO;
@@ -2841,7 +2838,6 @@ export interface PatchMenuV3DraftBrandBody {
2841
2838
  posid_segment?: string;
2842
2839
  is_simplified_view?: boolean;
2843
2840
  frictionless_partner?: string;
2844
- catalog_id?: number;
2845
2841
  applied_diff_snapshot?: Record<string, any>;
2846
2842
  version?: number;
2847
2843
  changes?: BrandChangeDTO[];
@@ -2932,7 +2928,6 @@ export type PostMenuV3DraftBrandsBody = {
2932
2928
  posid_segment?: string;
2933
2929
  is_simplified_view?: boolean;
2934
2930
  frictionless_partner?: string;
2935
- catalog_id?: number;
2936
2931
  applied_diff_snapshot?: Record<string, any>;
2937
2932
  changes?: BrandChangeDTO[];
2938
2933
  local_menu_group?: LocalMenuGroupDTO;
@@ -3378,7 +3373,6 @@ export interface PostMenuV3BrandBody {
3378
3373
  posid_segment?: string;
3379
3374
  is_simplified_view?: boolean;
3380
3375
  frictionless_partner?: string;
3381
- catalog_id?: number;
3382
3376
  local_menu_group?: LocalMenuGroupDTO;
3383
3377
  global_menu_group?: GlobalMenuGroupDTO;
3384
3378
  attachments?: FileAttachmentsDTO;
@@ -3447,7 +3441,6 @@ export interface PatchMenuV3BrandBody {
3447
3441
  posid_segment?: string;
3448
3442
  is_simplified_view?: boolean;
3449
3443
  frictionless_partner?: string;
3450
- catalog_id?: number;
3451
3444
  version?: number;
3452
3445
  local_menu_group?: LocalMenuGroupDTO;
3453
3446
  global_menu_group?: GlobalMenuGroupDTO;
@@ -3540,7 +3533,6 @@ export type PostMenuV3BrandsBody = {
3540
3533
  posid_segment?: string;
3541
3534
  is_simplified_view?: boolean;
3542
3535
  frictionless_partner?: string;
3543
- catalog_id?: number;
3544
3536
  local_menu_group?: LocalMenuGroupDTO;
3545
3537
  global_menu_group?: GlobalMenuGroupDTO;
3546
3538
  attachments?: FileAttachmentsDTO;
@@ -4329,53 +4321,6 @@ export interface PostMenuV3DraftCategoryAttachmentRequest
4329
4321
  RequestQuery<PostMenuV3DraftCategoryAttachmentQuery>,
4330
4322
  PostMenuV3DraftCategoryAttachmentPath {}
4331
4323
 
4332
- // POST /menu/v3/draft/category/{id}/duplicate
4333
-
4334
- export interface PostMenuV3DraftCategoryDuplicatePath {
4335
- id: string;
4336
- }
4337
-
4338
- export interface PostMenuV3DraftCategoryDuplicateBody {
4339
- name?: string;
4340
- label?: string;
4341
- sequence?: number;
4342
- is_active?: boolean;
4343
- menu_id?: string;
4344
- [index: string]: any;
4345
- }
4346
-
4347
- export interface PostMenuV3DraftCategoryDuplicateResponse {
4348
- parent?: DraftCategoryDTO;
4349
- children?: DraftCategoryDTO[];
4350
- id: string;
4351
- created_at?: string;
4352
- updated_at?: string;
4353
- deleted_at?: string;
4354
- parent_id?: string;
4355
- name: string;
4356
- label?: string;
4357
- sequence?: number;
4358
- is_active?: boolean;
4359
- brand_id: string;
4360
- menu_id: string;
4361
- applied_diff_snapshot?: Record<string, any>;
4362
- version?: number;
4363
- menu?: DraftMenuDTO;
4364
- items?: DraftCategoryToItemRelationshipDTO[];
4365
- brand?: DraftBrandDTO;
4366
- changes?: CategoryChangeDTO[];
4367
- vendor_metadata?: VendorMetadataDTO[];
4368
- attachments?: FileAttachmentsDTO;
4369
- permissions?: Record<string, any>;
4370
- [index: string]: any;
4371
- }
4372
-
4373
- export interface PostMenuV3DraftCategoryDuplicateRequest
4374
- extends BaseRequest,
4375
- PostMenuV3DraftCategoryDuplicatePath {
4376
- body: PostMenuV3DraftCategoryDuplicateBody;
4377
- }
4378
-
4379
4324
  // GET /menu/v3/category/{id}
4380
4325
 
4381
4326
  export interface GetMenuV3CategoryPath {
@@ -6849,37 +6794,7 @@ export interface PostMenuV3TriggerUpdateRequest extends BaseRequest {}
6849
6794
  // POST /menu/v4/brand
6850
6795
 
6851
6796
  export interface PostMenuV4BrandBody {
6852
- parent?: DraftBrandDTO;
6853
- children?: DraftBrandDTO[];
6854
- menus?: DraftMenuDTO[];
6855
- categories?: DraftCategoryDTO[];
6856
- category_to_item_relationships?: DraftCategoryToItemRelationshipDTO[];
6857
- items?: DraftItemDTO[];
6858
- item_to_modifier_group_relationships?: DraftItemToModifierGroupRelationshipDTO[];
6859
- modifier_groups?: DraftModifierGroupDTO[];
6860
- modifier_group_to_modifier_relationships?: DraftModifierGroupToModifierRelationshipDTO[];
6861
- modifiers?: DraftModifierDTO[];
6862
- statuses?: BrandStatusDTO[];
6863
- audit_logs?: AuditDTO[];
6864
- name: string;
6865
- description?: string;
6866
- is_active?: boolean;
6867
- type?: 'global' | 'local';
6868
- parent_id?: string;
6869
- local_menu_group_id?: string;
6870
- global_menu_group_id?: string;
6871
- posid_segment?: string;
6872
- is_simplified_view?: boolean;
6873
- frictionless_partner?: string;
6874
- catalog_id?: number;
6875
- applied_diff_snapshot?: Record<string, any>;
6876
- changes?: BrandChangeDTO[];
6877
- local_menu_group?: LocalMenuGroupDTO;
6878
- global_menu_group?: GlobalMenuGroupDTO;
6879
- vendor_metadata?: VendorMetadataDTO[];
6880
- attachments?: FileAttachmentsDTO;
6881
- permissions?: Record<string, any>;
6882
- [index: string]: any;
6797
+ name?: string;
6883
6798
  }
6884
6799
 
6885
6800
  export interface PostMenuV4BrandResponse {
@@ -6909,7 +6824,6 @@ export interface PostMenuV4BrandResponse {
6909
6824
  posid_segment?: string;
6910
6825
  is_simplified_view?: boolean;
6911
6826
  frictionless_partner?: string;
6912
- catalog_id?: number;
6913
6827
  applied_diff_snapshot?: Record<string, any>;
6914
6828
  version?: number;
6915
6829
  changes?: BrandChangeDTO[];
@@ -6963,7 +6877,6 @@ export interface GetMenuV4BrandResponse {
6963
6877
  posid_segment?: string;
6964
6878
  is_simplified_view?: boolean;
6965
6879
  frictionless_partner?: string;
6966
- catalog_id?: number;
6967
6880
  applied_diff_snapshot?: Record<string, any>;
6968
6881
  version?: number;
6969
6882
  changes?: BrandChangeDTO[];
@@ -6979,98 +6892,3 @@ export interface GetMenuV4BrandRequest
6979
6892
  extends BaseRequest,
6980
6893
  RequestQuery<GetMenuV4BrandQuery>,
6981
6894
  GetMenuV4BrandPath {}
6982
-
6983
- // POST /menu/v4/brand/{id}/menu
6984
-
6985
- export interface PostMenuV4BrandMenuPath {
6986
- id: string;
6987
- }
6988
-
6989
- export interface PostMenuV4BrandMenuBody {
6990
- id?: string;
6991
- categories?: Record<string, any>;
6992
- brand_id?: string;
6993
- name?: string;
6994
- [index: string]: any;
6995
- }
6996
-
6997
- export interface PostMenuV4BrandMenuResponse {
6998
- id?: string;
6999
- categories?: Record<string, any>;
7000
- brand_id?: string;
7001
- name?: string;
7002
- [index: string]: any;
7003
- }
7004
-
7005
- export interface PostMenuV4BrandMenuRequest extends BaseRequest, PostMenuV4BrandMenuPath {
7006
- body: PostMenuV4BrandMenuBody;
7007
- }
7008
-
7009
- // GET /menu/v4/brand/{id}/category/{category_id}/items
7010
-
7011
- export interface GetMenuV4BrandCategoryItemsPath {
7012
- id: string;
7013
- category_id: string;
7014
- }
7015
-
7016
- export interface GetMenuV4BrandCategoryItemsQuery {
7017
- // If specified, only the selected fields will be returned
7018
- select?: string[];
7019
- // List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
7020
- relationships?: string[];
7021
- // Number of records to load per page
7022
- limit?: number;
7023
- page?: number;
7024
- // A field to sort the results based on
7025
- sort_by?: string;
7026
- sort_order?: 'DESC' | 'ASC';
7027
- // How soft deleted records should be shown in the list
7028
- soft_deleted?: 'include' | 'exclude' | 'only';
7029
- // Graphql query string
7030
- _query?: string;
7031
- }
7032
-
7033
- export interface GetMenuV4BrandCategoryItemsResponse {
7034
- results?: DraftItemEntityDTO[];
7035
- }
7036
-
7037
- export interface GetMenuV4BrandCategoryItemsRequest
7038
- extends BaseRequest,
7039
- RequestQuery<GetMenuV4BrandCategoryItemsQuery>,
7040
- GetMenuV4BrandCategoryItemsPath {}
7041
-
7042
- // POST /menu/v4/brand/{id}/category
7043
-
7044
- export interface PostMenuV4BrandCategoryPath {
7045
- id: string;
7046
- }
7047
-
7048
- export interface PostMenuV4BrandCategoryBody {
7049
- id?: string;
7050
- name: string;
7051
- label?: string;
7052
- sequence?: number;
7053
- is_active?: boolean;
7054
- brand_id: string;
7055
- menu_id: string;
7056
- items?: Record<string, any>;
7057
- attachments?: Record<string, any>;
7058
- [index: string]: any;
7059
- }
7060
-
7061
- export interface PostMenuV4BrandCategoryResponse {
7062
- id?: string;
7063
- name: string;
7064
- label?: string;
7065
- sequence?: number;
7066
- is_active?: boolean;
7067
- brand_id: string;
7068
- menu_id: string;
7069
- items?: Record<string, any>;
7070
- attachments?: Record<string, any>;
7071
- [index: string]: any;
7072
- }
7073
-
7074
- export interface PostMenuV4BrandCategoryRequest extends BaseRequest, PostMenuV4BrandCategoryPath {
7075
- body: PostMenuV4BrandCategoryBody;
7076
- }
@@ -237,7 +237,8 @@ export interface Order {
237
237
  | 'items_unavailable'
238
238
  | 'refunded_order'
239
239
  | 'modifiers_unavailable'
240
- | 'modified_items';
240
+ | 'modified_items'
241
+ | 'cancelled_order';
241
242
  refunds?: RefundItem[];
242
243
  latest_refunds?: RefundItem[];
243
244
  [index: string]: any;
@@ -117,11 +117,15 @@ export interface ModifierGroupResponse {
117
117
  meta?: {
118
118
  taxes?: string[];
119
119
  original_label?: Label;
120
+ order_type?: 'selection' | 'option' | 'quantity';
121
+ surchage_limit_value?: number;
120
122
  [index: string]: any;
121
123
  };
122
124
  items?: ModifierResponse[];
123
125
  is?: {
124
126
  disabled?: boolean;
127
+ incremental?: boolean;
128
+ surchage_limit?: boolean;
125
129
  };
126
130
  }
127
131
 
@@ -171,6 +175,7 @@ export interface Taxes {
171
175
  combined_tax_rate?: MonetaryValue;
172
176
  gst?: MonetaryValue;
173
177
  pst?: MonetaryValue;
178
+ provider?: string;
174
179
  [index: string]: any;
175
180
  };
176
181
  provider?: string;