@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/lib/interface/centricos.d.ts +12 -0
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/discount.d.ts +2 -2
- package/lib/interface/discount.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +1 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/interface/centricos.ts +15 -0
- package/src/interface/discount.ts +2 -2
- package/src/interface/menu.ts +2 -0
package/package.json
CHANGED
|
@@ -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 {
|