@compassdigital/sdk.typescript 4.233.0 → 4.235.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.233.0",
3
+ "version": "4.235.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
@@ -239,6 +239,15 @@ export interface CentricVoucherifyMetaDataDiscount {
239
239
  percentOff?: number;
240
240
  }
241
241
 
242
+ export interface CentricDiscountSchedule {
243
+ // The days of the week for the discount to be active
244
+ days: 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun';
245
+ startDate?: string;
246
+ endDate?: string;
247
+ startTime: string;
248
+ endTime: string;
249
+ }
250
+
242
251
  export interface CentricDiscountIs {
243
252
  badgepayPromo?: boolean;
244
253
  mealplanPromo?: boolean;
@@ -249,6 +258,8 @@ export interface PutDiscountVoucherifyRequestDiscount {
249
258
  name: string;
250
259
  // Voucherify metadata
251
260
  meta?: CentricVoucherifyMetaDataDiscount;
261
+ // discount schedule
262
+ schedule?: CentricDiscountSchedule;
252
263
  // discount active status flag
253
264
  active?: boolean;
254
265
  is?: CentricDiscountIs;
@@ -286,6 +297,7 @@ export interface DiscountResponseDTO {
286
297
  createdAt: string;
287
298
  updatedAt: string;
288
299
  is?: CentricDiscountIs;
300
+ schedule?: Record<string, any>;
289
301
  }
290
302
 
291
303
  export interface PutDiscountVoucherifyResponseDTO {
@@ -335,6 +347,7 @@ export interface PutDiscountVoucherifyPublishResponseDTO {
335
347
  createdAt: string;
336
348
  updatedAt: string;
337
349
  is?: CentricDiscountIs;
350
+ schedule?: Record<string, any>;
338
351
  }
339
352
 
340
353
  export interface DeleteDiscountsVoucherifyResponseDTO {
@@ -355,6 +368,7 @@ export interface DiscountDTO {
355
368
  updatedAt: string;
356
369
  is?: CentricDiscountIs;
357
370
  meta?: Record<string, any>;
371
+ schedule?: Record<string, any>;
358
372
  }
359
373
 
360
374
  export interface GetDiscountResponseDTO {
@@ -395,6 +409,7 @@ export interface GetDiscountsDiscountResponseDTO {
395
409
  updatedAt: string;
396
410
  is?: CentricDiscountIs;
397
411
  meta?: Record<string, any>;
412
+ schedule?: Record<string, any>;
398
413
  }
399
414
 
400
415
  export interface GetDiscountsSite {
@@ -40,8 +40,8 @@ export interface DiscountMeta {
40
40
 
41
41
  export interface DayOfWeekConfig {
42
42
  active: boolean;
43
- startTime?: string;
44
- endTime?: string;
43
+ startTime: string;
44
+ endTime: string;
45
45
  }
46
46
 
47
47
  export interface DailyConfig {
@@ -31,6 +31,8 @@ export interface Menu {
31
31
  item_label_edit_enabled?: boolean;
32
32
  frictionless?: boolean;
33
33
  category_images_enabled?: boolean;
34
+ // @deprecated
35
+ is_us_location_brand?: boolean;
34
36
  };
35
37
  meta?: {
36
38
  // User ID