@compassdigital/sdk.typescript 4.276.0 → 4.278.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.276.0",
3
+ "version": "4.278.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
@@ -61,6 +61,13 @@ export interface DiscountSchedule {
61
61
  endDate?: string;
62
62
  }
63
63
 
64
+ export interface DiscountChannelConfig {
65
+ thrive: boolean;
66
+ boost: boolean;
67
+ genius: boolean;
68
+ agilysys: boolean;
69
+ }
70
+
64
71
  export interface GetDiscountResponseDTO {
65
72
  // discount id
66
73
  id: string;
@@ -77,6 +84,8 @@ export interface GetDiscountResponseDTO {
77
84
  is?: DiscountIs;
78
85
  meta?: DiscountMeta;
79
86
  schedule?: DiscountSchedule;
87
+ channelConfig: DiscountChannelConfig;
88
+ applicationType: string;
80
89
  }
81
90
 
82
91
  export interface ErrorDisplayMessage {
@@ -119,6 +128,8 @@ export interface DiscountDTO {
119
128
  is?: DiscountIs;
120
129
  meta?: DiscountMeta;
121
130
  schedule?: DiscountSchedule;
131
+ channelConfig: DiscountChannelConfig;
132
+ applicationType: string;
122
133
  }
123
134
 
124
135
  export interface GetDiscountsResponseDTO {
@@ -139,6 +150,8 @@ export interface DiscountWithEntities {
139
150
  is?: DiscountIs;
140
151
  meta?: DiscountMeta;
141
152
  schedule?: DiscountSchedule;
153
+ channelConfig: DiscountChannelConfig;
154
+ applicationType: string;
142
155
  sites?: string[];
143
156
  brands?: string[];
144
157
  }
@@ -158,6 +171,8 @@ export interface PostDiscountRequestDTO {
158
171
  is?: DiscountIs;
159
172
  meta?: DiscountMeta;
160
173
  schedule?: DiscountSchedule;
174
+ channelConfig: DiscountChannelConfig;
175
+ applicationType: string;
161
176
  taxonomy?: DiscountTaxonomy;
162
177
  status?: DiscountStatus;
163
178
  }
@@ -176,6 +191,8 @@ export interface PostDiscountResponseDTO {
176
191
  is?: DiscountIs;
177
192
  meta?: DiscountMeta;
178
193
  schedule?: DiscountSchedule;
194
+ channelConfig: DiscountChannelConfig;
195
+ applicationType: string;
179
196
  }
180
197
 
181
198
  export interface PutDiscountRequestDTO {
@@ -186,6 +203,8 @@ export interface PutDiscountRequestDTO {
186
203
  is?: DiscountIs;
187
204
  meta?: DiscountMeta;
188
205
  schedule?: DiscountSchedule;
206
+ channelConfig: DiscountChannelConfig;
207
+ applicationType: string;
189
208
  }
190
209
 
191
210
  export interface PutDiscountResponseDTO {
@@ -202,6 +221,8 @@ export interface PutDiscountResponseDTO {
202
221
  is?: DiscountIs;
203
222
  meta?: DiscountMeta;
204
223
  schedule?: DiscountSchedule;
224
+ channelConfig: DiscountChannelConfig;
225
+ applicationType: string;
205
226
  }
206
227
 
207
228
  export interface PutDiscountPublishRequestDTO {
@@ -223,6 +244,8 @@ export interface PutDiscountPublishResponseDTO {
223
244
  is?: DiscountIs;
224
245
  meta?: DiscountMeta;
225
246
  schedule?: DiscountSchedule;
247
+ channelConfig: DiscountChannelConfig;
248
+ applicationType: string;
226
249
  }
227
250
 
228
251
  export interface DeleteDiscountResponseDTO {
@@ -236,6 +259,8 @@ export interface PatchDiscountRequestDTO {
236
259
  is?: DiscountIs;
237
260
  meta?: DiscountMeta;
238
261
  schedule?: DiscountSchedule;
262
+ channelConfig?: DiscountChannelConfig;
263
+ applicationType?: string;
239
264
  }
240
265
 
241
266
  export interface PatchDiscountResponseDTO {
@@ -252,6 +277,8 @@ export interface PatchDiscountResponseDTO {
252
277
  is?: DiscountIs;
253
278
  meta?: DiscountMeta;
254
279
  schedule?: DiscountSchedule;
280
+ channelConfig: DiscountChannelConfig;
281
+ applicationType: string;
255
282
  }
256
283
 
257
284
  // GET /discount/{id} - Get a discount
@@ -499,6 +499,7 @@ export interface DraftBrandDTO {
499
499
  frictionless_partner?: string;
500
500
  meta?: BrandMeta;
501
501
  supported_languages?: SupportedLanguages;
502
+ archived_at?: string;
502
503
  applied_diff_snapshot?: Record<string, any>;
503
504
  version?: number;
504
505
  permissions?: Record<string, any>;
@@ -533,6 +534,7 @@ export interface PublishedBrandDTO {
533
534
  frictionless_partner?: string;
534
535
  meta?: Record<string, any>;
535
536
  supported_languages?: Record<string, any>;
537
+ archived_at?: string;
536
538
  version?: number;
537
539
  permissions?: Record<string, any>;
538
540
  [index: string]: any;
@@ -3335,6 +3337,7 @@ export interface PostMenuV3DraftBrandBody {
3335
3337
  frictionless_partner?: string;
3336
3338
  meta?: BrandMeta;
3337
3339
  supported_languages?: SupportedLanguages;
3340
+ archived_at?: string;
3338
3341
  applied_diff_snapshot?: Record<string, any>;
3339
3342
  changes?: BrandChangeDTO[];
3340
3343
  local_menu_group?: LocalMenuGroupDTO;
@@ -3408,6 +3411,7 @@ export interface PatchMenuV3DraftBrandBody {
3408
3411
  frictionless_partner?: string;
3409
3412
  meta?: BrandMeta;
3410
3413
  supported_languages?: SupportedLanguages;
3414
+ archived_at?: string;
3411
3415
  applied_diff_snapshot?: Record<string, any>;
3412
3416
  version?: number;
3413
3417
  changes?: BrandChangeDTO[];
@@ -3503,6 +3507,7 @@ export type PostMenuV3DraftBrandsBody = {
3503
3507
  frictionless_partner?: string;
3504
3508
  meta?: BrandMeta;
3505
3509
  supported_languages?: SupportedLanguages;
3510
+ archived_at?: string;
3506
3511
  applied_diff_snapshot?: Record<string, any>;
3507
3512
  changes?: BrandChangeDTO[];
3508
3513
  local_menu_group?: LocalMenuGroupDTO;
@@ -4053,6 +4058,7 @@ export interface PostMenuV3BrandBody {
4053
4058
  frictionless_partner?: string;
4054
4059
  meta?: BrandMeta;
4055
4060
  supported_languages?: SupportedLanguages;
4061
+ archived_at?: string;
4056
4062
  local_menu_group?: LocalMenuGroupDTO;
4057
4063
  global_menu_group?: GlobalMenuGroupDTO;
4058
4064
  attachments?: FileAttachmentsDTO;
@@ -4124,6 +4130,7 @@ export interface PatchMenuV3BrandBody {
4124
4130
  frictionless_partner?: string;
4125
4131
  meta?: BrandMeta;
4126
4132
  supported_languages?: SupportedLanguages;
4133
+ archived_at?: string;
4127
4134
  version?: number;
4128
4135
  local_menu_group?: LocalMenuGroupDTO;
4129
4136
  global_menu_group?: GlobalMenuGroupDTO;
@@ -4219,6 +4226,7 @@ export type PostMenuV3BrandsBody = {
4219
4226
  frictionless_partner?: string;
4220
4227
  meta?: BrandMeta;
4221
4228
  supported_languages?: SupportedLanguages;
4229
+ archived_at?: string;
4222
4230
  local_menu_group?: LocalMenuGroupDTO;
4223
4231
  global_menu_group?: GlobalMenuGroupDTO;
4224
4232
  attachments?: FileAttachmentsDTO;
@@ -7702,6 +7710,7 @@ export interface PostMenuV4BrandBody {
7702
7710
  frictionless_partner?: string;
7703
7711
  meta?: BrandMeta;
7704
7712
  supported_languages?: SupportedLanguages;
7713
+ archived_at?: string;
7705
7714
  applied_diff_snapshot?: Record<string, any>;
7706
7715
  changes?: BrandChangeDTO[];
7707
7716
  local_menu_group?: LocalMenuGroupDTO;
@@ -7744,6 +7753,7 @@ export interface PostMenuV4BrandResponse {
7744
7753
  frictionless_partner?: string;
7745
7754
  meta?: BrandMeta;
7746
7755
  supported_languages?: SupportedLanguages;
7756
+ archived_at?: string;
7747
7757
  applied_diff_snapshot?: Record<string, any>;
7748
7758
  version?: number;
7749
7759
  changes?: BrandChangeDTO[];
@@ -7804,6 +7814,7 @@ export interface GetMenuV4BrandResponse {
7804
7814
  frictionless_partner?: string;
7805
7815
  meta?: BrandMeta;
7806
7816
  supported_languages?: SupportedLanguages;
7817
+ archived_at?: string;
7807
7818
  applied_diff_snapshot?: Record<string, any>;
7808
7819
  version?: number;
7809
7820
  changes?: BrandChangeDTO[];
@@ -7854,6 +7865,7 @@ export interface PatchMenuV4BrandBody {
7854
7865
  frictionless_partner?: string;
7855
7866
  meta?: BrandMeta;
7856
7867
  supported_languages?: SupportedLanguages;
7868
+ archived_at?: string;
7857
7869
  applied_diff_snapshot?: Record<string, any>;
7858
7870
  changes?: BrandChangeDTO[];
7859
7871
  local_menu_group?: LocalMenuGroupDTO;
@@ -7896,6 +7908,7 @@ export interface PatchMenuV4BrandResponse {
7896
7908
  frictionless_partner?: string;
7897
7909
  meta?: BrandMeta;
7898
7910
  supported_languages?: SupportedLanguages;
7911
+ archived_at?: string;
7899
7912
  applied_diff_snapshot?: Record<string, any>;
7900
7913
  version?: number;
7901
7914
  changes?: BrandChangeDTO[];
@@ -7949,6 +7962,7 @@ export interface DeleteMenuV4BrandResponse {
7949
7962
  frictionless_partner?: string;
7950
7963
  meta?: BrandMeta;
7951
7964
  supported_languages?: SupportedLanguages;
7965
+ archived_at?: string;
7952
7966
  applied_diff_snapshot?: Record<string, any>;
7953
7967
  version?: number;
7954
7968
  changes?: BrandChangeDTO[];