@compassdigital/sdk.typescript 4.290.0 → 4.292.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.
@@ -1172,6 +1172,17 @@ export interface ConsumerWaitTime {
1172
1172
  ready_time: number;
1173
1173
  }
1174
1174
 
1175
+ export interface ConsumerDiscountChannelConfig {
1176
+ // thrive channel
1177
+ thrive: boolean;
1178
+ // boost channel
1179
+ boost: boolean;
1180
+ // genius channel
1181
+ genius: boolean;
1182
+ // agilysys channel
1183
+ agilysys: boolean;
1184
+ }
1185
+
1175
1186
  export interface ConsumerDiscountDTO {
1176
1187
  // discount id
1177
1188
  id: string;
@@ -1185,6 +1196,8 @@ export interface ConsumerDiscountDTO {
1185
1196
  status: ConsumerDiscountStatus;
1186
1197
  is?: ConsumerDiscountIs;
1187
1198
  meta?: ConsumerDiscountMeta;
1199
+ channelConfig: ConsumerDiscountChannelConfig;
1200
+ appliesTo: Record<string, any>;
1188
1201
  }
1189
1202
 
1190
1203
  export interface ConsumerBrand {
@@ -2590,6 +2603,8 @@ export interface GetConsumerConfigPublicResponse {
2590
2603
  show_single_timeslot?: boolean;
2591
2604
  // The is checkin enabled flag
2592
2605
  is_checkin_enabled?: boolean;
2606
+ // The block timeslot select flag
2607
+ block_timeslot_select?: boolean;
2593
2608
  }
2594
2609
 
2595
2610
  export interface ConsumerPutMealplanBody {
@@ -280,7 +280,14 @@ export interface GetSearchOrderQuery {
280
280
  // Filter orders by order type
281
281
  order_type?: ('frictionless' | 'delivery' | 'pickup' | 'scan_and_go')[];
282
282
  // Filter orders by order status/progress
283
- status?: ('ready' | 'accepted' | 'delivered' | 'in_progress' | 'out_for_delivery' | 'created')[];
283
+ status?: (
284
+ | 'ready'
285
+ | 'accepted'
286
+ | 'delivered'
287
+ | 'in_progress'
288
+ | 'out_for_delivery'
289
+ | 'created'
290
+ )[];
284
291
  // Graphql query string
285
292
  _query?: string;
286
293
  }
@@ -10,7 +10,13 @@ export interface UpdateOrderStatusCommand {
10
10
  };
11
11
  payload: {
12
12
  orderId: string;
13
- status: 'accepted' | 'in_progress' | 'ready' | 'out_for_delivery' | 'delivered' | 'see_kitchen';
13
+ status:
14
+ | 'accepted'
15
+ | 'in_progress'
16
+ | 'ready'
17
+ | 'out_for_delivery'
18
+ | 'delivered'
19
+ | 'see_kitchen';
14
20
  // Reason if the status is see_kitchen
15
21
  reason?: string;
16
22
  updateSource: string;
@@ -14,8 +14,10 @@ export interface DiscountIs {
14
14
  voucherPromo?: boolean;
15
15
  }
16
16
 
17
+ export type VoucherifyMetaDataDiscountType = 'AMOUNT_OFF' | 'PERCENT_OFF';
18
+
17
19
  export interface VoucherifyMetaDataDiscount {
18
- type: 'AMOUNT_OFF' | 'PERCENT_OFF';
20
+ type: VoucherifyMetaDataDiscountType;
19
21
  amountOff?: number;
20
22
  percentOff?: number;
21
23
  }
@@ -14,8 +14,10 @@ export interface DiscountIs {
14
14
  voucherPromo?: boolean;
15
15
  }
16
16
 
17
+ export type VoucherifyMetaDataDiscountType = 'AMOUNT_OFF' | 'PERCENT_OFF';
18
+
17
19
  export interface VoucherifyMetaDataDiscount {
18
- type: 'AMOUNT_OFF' | 'PERCENT_OFF';
20
+ type: VoucherifyMetaDataDiscountType;
19
21
  amountOff?: number;
20
22
  percentOff?: number;
21
23
  }
@@ -14,8 +14,10 @@ export interface DiscountIs {
14
14
  voucherPromo?: boolean;
15
15
  }
16
16
 
17
+ export type VoucherifyMetaDataDiscountType = 'AMOUNT_OFF' | 'PERCENT_OFF';
18
+
17
19
  export interface VoucherifyMetaDataDiscount {
18
- type: 'AMOUNT_OFF' | 'PERCENT_OFF';
20
+ type: VoucherifyMetaDataDiscountType;
19
21
  amountOff?: number;
20
22
  percentOff?: number;
21
23
  }