@compassdigital/sdk.typescript 4.283.0 → 4.285.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.283.0",
3
+ "version": "4.285.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
@@ -85,7 +85,7 @@ export interface GetDiscountResponseDTO {
85
85
  meta?: DiscountMeta;
86
86
  schedule?: DiscountSchedule;
87
87
  channelConfig: DiscountChannelConfig;
88
- applicationType: string;
88
+ appliesTo: 'order' | 'items';
89
89
  }
90
90
 
91
91
  export interface ErrorDisplayMessage {
@@ -129,7 +129,7 @@ export interface DiscountDTO {
129
129
  meta?: DiscountMeta;
130
130
  schedule?: DiscountSchedule;
131
131
  channelConfig: DiscountChannelConfig;
132
- applicationType: string;
132
+ appliesTo: 'order' | 'items';
133
133
  }
134
134
 
135
135
  export interface GetDiscountsResponseDTO {
@@ -151,7 +151,7 @@ export interface DiscountWithEntities {
151
151
  meta?: DiscountMeta;
152
152
  schedule?: DiscountSchedule;
153
153
  channelConfig: DiscountChannelConfig;
154
- applicationType: string;
154
+ appliesTo: 'order' | 'items';
155
155
  sites?: string[];
156
156
  brands?: string[];
157
157
  }
@@ -172,7 +172,7 @@ export interface PostDiscountRequestDTO {
172
172
  meta?: DiscountMeta;
173
173
  schedule?: DiscountSchedule;
174
174
  channelConfig: DiscountChannelConfig;
175
- applicationType: string;
175
+ appliesTo: 'order' | 'items';
176
176
  taxonomy?: DiscountTaxonomy;
177
177
  status?: DiscountStatus;
178
178
  }
@@ -192,7 +192,7 @@ export interface PostDiscountResponseDTO {
192
192
  meta?: DiscountMeta;
193
193
  schedule?: DiscountSchedule;
194
194
  channelConfig: DiscountChannelConfig;
195
- applicationType: string;
195
+ appliesTo: 'order' | 'items';
196
196
  }
197
197
 
198
198
  export interface PutDiscountRequestDTO {
@@ -204,7 +204,7 @@ export interface PutDiscountRequestDTO {
204
204
  meta?: DiscountMeta;
205
205
  schedule?: DiscountSchedule;
206
206
  channelConfig: DiscountChannelConfig;
207
- applicationType: string;
207
+ appliesTo: 'order' | 'items';
208
208
  }
209
209
 
210
210
  export interface PutDiscountResponseDTO {
@@ -222,7 +222,7 @@ export interface PutDiscountResponseDTO {
222
222
  meta?: DiscountMeta;
223
223
  schedule?: DiscountSchedule;
224
224
  channelConfig: DiscountChannelConfig;
225
- applicationType: string;
225
+ appliesTo: 'order' | 'items';
226
226
  }
227
227
 
228
228
  export interface PutDiscountPublishRequestDTO {
@@ -245,7 +245,7 @@ export interface PutDiscountPublishResponseDTO {
245
245
  meta?: DiscountMeta;
246
246
  schedule?: DiscountSchedule;
247
247
  channelConfig: DiscountChannelConfig;
248
- applicationType: string;
248
+ appliesTo: 'order' | 'items';
249
249
  }
250
250
 
251
251
  export interface DeleteDiscountResponseDTO {
@@ -260,7 +260,7 @@ export interface PatchDiscountRequestDTO {
260
260
  meta?: DiscountMeta;
261
261
  schedule?: DiscountSchedule;
262
262
  channelConfig?: DiscountChannelConfig;
263
- applicationType?: string;
263
+ appliesTo?: 'order' | 'items';
264
264
  }
265
265
 
266
266
  export interface PatchDiscountResponseDTO {
@@ -278,7 +278,7 @@ export interface PatchDiscountResponseDTO {
278
278
  meta?: DiscountMeta;
279
279
  schedule?: DiscountSchedule;
280
280
  channelConfig: DiscountChannelConfig;
281
- applicationType: string;
281
+ appliesTo: 'order' | 'items';
282
282
  }
283
283
 
284
284
  // GET /discount/{id} - Get a discount
@@ -4035,7 +4035,46 @@ export interface PostMenuV3DraftBrandArchivePath {
4035
4035
  }
4036
4036
 
4037
4037
  export interface PostMenuV3DraftBrandArchiveResponse {
4038
- brand: Record<string, any>;
4038
+ parent?: DraftBrandDTO;
4039
+ children?: DraftBrandDTO[];
4040
+ menus?: DraftMenuDTO[];
4041
+ categories?: DraftCategoryDTO[];
4042
+ category_to_item_relationships?: DraftCategoryToItemRelationshipDTO[];
4043
+ items?: DraftItemDTO[];
4044
+ item_to_modifier_group_relationships?: DraftItemToModifierGroupRelationshipDTO[];
4045
+ modifier_groups?: DraftModifierGroupDTO[];
4046
+ modifier_group_to_modifier_relationships?: DraftModifierGroupToModifierRelationshipDTO[];
4047
+ modifiers?: DraftModifierDTO[];
4048
+ statuses?: BrandStatusDTO[];
4049
+ audit_logs?: AuditDTO[];
4050
+ catalog_id?: number;
4051
+ published_catalog_id?: number;
4052
+ stocks?: StockDTO[];
4053
+ id: string;
4054
+ created_at?: string;
4055
+ updated_at?: string;
4056
+ deleted_at?: string;
4057
+ name: string;
4058
+ description?: string;
4059
+ is_active?: boolean;
4060
+ type?: 'global' | 'local';
4061
+ parent_id?: string;
4062
+ local_menu_group_id?: string;
4063
+ global_menu_group_id?: string;
4064
+ posid_segment?: string;
4065
+ auto_push_to_local?: boolean;
4066
+ frictionless_partner?: string;
4067
+ meta?: BrandMeta;
4068
+ supported_languages?: SupportedLanguages;
4069
+ archived_at?: string;
4070
+ applied_diff_snapshot?: Record<string, any>;
4071
+ version?: number;
4072
+ changes?: BrandChangeDTO[];
4073
+ local_menu_group?: LocalMenuGroupDTO;
4074
+ global_menu_group?: GlobalMenuGroupDTO;
4075
+ vendor_metadata?: VendorMetadataDTO[];
4076
+ attachments?: FileAttachmentsDTO;
4077
+ permissions?: Record<string, any>;
4039
4078
  [index: string]: any;
4040
4079
  }
4041
4080
 
@@ -4050,7 +4089,46 @@ export interface PostMenuV3DraftBrandUnarchivePath {
4050
4089
  }
4051
4090
 
4052
4091
  export interface PostMenuV3DraftBrandUnarchiveResponse {
4053
- brand: Record<string, any>;
4092
+ parent?: DraftBrandDTO;
4093
+ children?: DraftBrandDTO[];
4094
+ menus?: DraftMenuDTO[];
4095
+ categories?: DraftCategoryDTO[];
4096
+ category_to_item_relationships?: DraftCategoryToItemRelationshipDTO[];
4097
+ items?: DraftItemDTO[];
4098
+ item_to_modifier_group_relationships?: DraftItemToModifierGroupRelationshipDTO[];
4099
+ modifier_groups?: DraftModifierGroupDTO[];
4100
+ modifier_group_to_modifier_relationships?: DraftModifierGroupToModifierRelationshipDTO[];
4101
+ modifiers?: DraftModifierDTO[];
4102
+ statuses?: BrandStatusDTO[];
4103
+ audit_logs?: AuditDTO[];
4104
+ catalog_id?: number;
4105
+ published_catalog_id?: number;
4106
+ stocks?: StockDTO[];
4107
+ id: string;
4108
+ created_at?: string;
4109
+ updated_at?: string;
4110
+ deleted_at?: string;
4111
+ name: string;
4112
+ description?: string;
4113
+ is_active?: boolean;
4114
+ type?: 'global' | 'local';
4115
+ parent_id?: string;
4116
+ local_menu_group_id?: string;
4117
+ global_menu_group_id?: string;
4118
+ posid_segment?: string;
4119
+ auto_push_to_local?: boolean;
4120
+ frictionless_partner?: string;
4121
+ meta?: BrandMeta;
4122
+ supported_languages?: SupportedLanguages;
4123
+ archived_at?: string;
4124
+ applied_diff_snapshot?: Record<string, any>;
4125
+ version?: number;
4126
+ changes?: BrandChangeDTO[];
4127
+ local_menu_group?: LocalMenuGroupDTO;
4128
+ global_menu_group?: GlobalMenuGroupDTO;
4129
+ vendor_metadata?: VendorMetadataDTO[];
4130
+ attachments?: FileAttachmentsDTO;
4131
+ permissions?: Record<string, any>;
4054
4132
  [index: string]: any;
4055
4133
  }
4056
4134