@compassdigital/sdk.typescript 4.288.0 → 4.290.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.288.0",
3
+ "version": "4.290.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
@@ -231,6 +231,13 @@ export interface GetStationResponse {
231
231
  closure_schedules: ClosureSchedule[];
232
232
  }
233
233
 
234
+ export interface CentricDiscountChannelConfig {
235
+ thrive: boolean;
236
+ boost: boolean;
237
+ genius: boolean;
238
+ agilysys: boolean;
239
+ }
240
+
234
241
  export interface CentricVoucherifyMetaDataDiscount {
235
242
  // The type of the voucherify discount
236
243
  type: 'AMOUNT_OFF' | 'PERCENT_OFF';
@@ -257,6 +264,10 @@ export interface CentricDiscountIs {
257
264
  export interface PutDiscountVoucherifyRequestDiscount {
258
265
  // name of the discount
259
266
  name: string;
267
+ // channel config of the discount
268
+ channelConfig: CentricDiscountChannelConfig;
269
+ // what the discount applies to
270
+ appliesTo: 'order' | 'items';
260
271
  // Voucherify metadata
261
272
  meta?: CentricVoucherifyMetaDataDiscount;
262
273
  // discount schedule
@@ -296,6 +307,10 @@ export interface DiscountResponseDTO {
296
307
  name: string;
297
308
  // status of the discount
298
309
  status: CentricDiscountStatus;
310
+ // channel config of the discount
311
+ channelConfig: CentricDiscountChannelConfig;
312
+ // what the discount applies to
313
+ appliesTo: 'order' | 'items';
299
314
  // Voucherify metadata
300
315
  meta?: CentricVoucherifyMetaDataDiscount;
301
316
  id: string;
@@ -344,6 +359,10 @@ export interface PutDiscountVoucherifyPublishResponseDTO {
344
359
  name: string;
345
360
  // status of the discount
346
361
  status: CentricDiscountStatus;
362
+ // channel config of the discount
363
+ channelConfig: CentricDiscountChannelConfig;
364
+ // what the discount applies to
365
+ appliesTo: 'order' | 'items';
347
366
  // Voucherify metadata
348
367
  meta?: CentricDiscountMeta;
349
368
  // List of sites where discount is published
@@ -368,6 +387,10 @@ export interface DiscountDTO {
368
387
  name: string;
369
388
  // status of the discount
370
389
  status: CentricDiscountStatus;
390
+ // channel config of the discount
391
+ channelConfig: CentricDiscountChannelConfig;
392
+ // what the discount applies to
393
+ appliesTo: 'order' | 'items';
371
394
  id: string;
372
395
  createdAt: string;
373
396
  updatedAt: string;
@@ -407,6 +430,10 @@ export interface GetDiscountsDiscountResponseDTO {
407
430
  name: string;
408
431
  // status of the discount
409
432
  status: CentricDiscountStatus;
433
+ // channel config of the discount
434
+ channelConfig: CentricDiscountChannelConfig;
435
+ // what the discount applies to
436
+ appliesTo: 'order' | 'items';
410
437
  sites: string[];
411
438
  brands: string[];
412
439
  id: string;
@@ -45,6 +45,7 @@ export interface Menu {
45
45
  brand?: {
46
46
  id?: string;
47
47
  name?: string;
48
+ jde_category?: string;
48
49
  };
49
50
  // V3 Local Menu Group metadata if menu came from Centric
50
51
  local_menu_group?: {