@compassdigital/sdk.typescript 4.297.0 → 4.299.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.297.0",
3
+ "version": "4.299.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
@@ -17,6 +17,7 @@ export interface DiscountIs {
17
17
  }
18
18
 
19
19
  export interface VoucherifyMetaDataDiscount {
20
+ // What the discount type is
20
21
  type: 'AMOUNT_OFF' | 'PERCENT_OFF';
21
22
  amountOff?: number;
22
23
  percentOff?: number;
@@ -75,6 +76,8 @@ export interface GetDiscountResponseDTO {
75
76
  createdBy: string;
76
77
  // user id of most recent update
77
78
  updatedBy: string;
79
+ // What the discount applies to
80
+ appliesTo: 'order' | 'items';
78
81
  sites?: string[];
79
82
  brands?: string[];
80
83
  createdAt: string;
@@ -85,7 +88,6 @@ export interface GetDiscountResponseDTO {
85
88
  meta?: DiscountMeta;
86
89
  schedule?: DiscountSchedule;
87
90
  channelConfig: DiscountChannelConfig;
88
- appliesTo: 'order' | 'items';
89
91
  }
90
92
 
91
93
  export interface ErrorDisplayMessage {
@@ -121,6 +123,8 @@ export interface DiscountDTO {
121
123
  createdBy: string;
122
124
  // user id of most recent update
123
125
  updatedBy: string;
126
+ // What the discount applies to
127
+ appliesTo: 'order' | 'items';
124
128
  createdAt: string;
125
129
  updatedAt: string;
126
130
  name: string;
@@ -129,7 +133,6 @@ export interface DiscountDTO {
129
133
  meta?: DiscountMeta;
130
134
  schedule?: DiscountSchedule;
131
135
  channelConfig: DiscountChannelConfig;
132
- appliesTo: 'order' | 'items';
133
136
  }
134
137
 
135
138
  export interface GetDiscountsResponseDTO {
@@ -143,6 +146,8 @@ export interface DiscountWithEntities {
143
146
  createdBy: string;
144
147
  // user id of most recent update
145
148
  updatedBy: string;
149
+ // What the discount applies to
150
+ appliesTo: 'order' | 'items';
146
151
  createdAt: string;
147
152
  updatedAt: string;
148
153
  name: string;
@@ -151,7 +156,6 @@ export interface DiscountWithEntities {
151
156
  meta?: DiscountMeta;
152
157
  schedule?: DiscountSchedule;
153
158
  channelConfig: DiscountChannelConfig;
154
- appliesTo: 'order' | 'items';
155
159
  sites?: string[];
156
160
  brands?: string[];
157
161
  }
@@ -166,13 +170,14 @@ export interface DiscountTaxonomy {
166
170
  }
167
171
 
168
172
  export interface PostDiscountRequestDTO {
173
+ // What the discount applies to
174
+ appliesTo: 'order' | 'items';
169
175
  createdBy: string;
170
176
  name: string;
171
177
  is?: DiscountIs;
172
178
  meta?: DiscountMeta;
173
179
  schedule?: DiscountSchedule;
174
180
  channelConfig: DiscountChannelConfig;
175
- appliesTo: 'order' | 'items';
176
181
  taxonomy?: DiscountTaxonomy;
177
182
  status?: DiscountStatus;
178
183
  }
@@ -184,6 +189,8 @@ export interface PostDiscountResponseDTO {
184
189
  createdBy: string;
185
190
  // user id of most recent update
186
191
  updatedBy: string;
192
+ // What the discount applies to
193
+ appliesTo: 'order' | 'items';
187
194
  createdAt: string;
188
195
  updatedAt: string;
189
196
  name: string;
@@ -192,10 +199,11 @@ export interface PostDiscountResponseDTO {
192
199
  meta?: DiscountMeta;
193
200
  schedule?: DiscountSchedule;
194
201
  channelConfig: DiscountChannelConfig;
195
- appliesTo: 'order' | 'items';
196
202
  }
197
203
 
198
204
  export interface PutDiscountRequestDTO {
205
+ // What the discount applies to
206
+ appliesTo: 'order' | 'items';
199
207
  updatedBy: string;
200
208
  taxonomy?: DiscountTaxonomy;
201
209
  status?: DiscountStatus;
@@ -204,7 +212,6 @@ export interface PutDiscountRequestDTO {
204
212
  meta?: DiscountMeta;
205
213
  schedule?: DiscountSchedule;
206
214
  channelConfig: DiscountChannelConfig;
207
- appliesTo: 'order' | 'items';
208
215
  }
209
216
 
210
217
  export interface PutDiscountResponseDTO {
@@ -214,6 +221,8 @@ export interface PutDiscountResponseDTO {
214
221
  createdBy: string;
215
222
  // user id of most recent update
216
223
  updatedBy: string;
224
+ // What the discount applies to
225
+ appliesTo: 'order' | 'items';
217
226
  createdAt: string;
218
227
  updatedAt: string;
219
228
  name: string;
@@ -222,7 +231,6 @@ export interface PutDiscountResponseDTO {
222
231
  meta?: DiscountMeta;
223
232
  schedule?: DiscountSchedule;
224
233
  channelConfig: DiscountChannelConfig;
225
- appliesTo: 'order' | 'items';
226
234
  }
227
235
 
228
236
  export interface PutDiscountPublishRequestDTO {
@@ -237,6 +245,8 @@ export interface PutDiscountPublishResponseDTO {
237
245
  createdBy: string;
238
246
  // user id of most recent update
239
247
  updatedBy: string;
248
+ // What the discount applies to
249
+ appliesTo: 'order' | 'items';
240
250
  createdAt: string;
241
251
  updatedAt: string;
242
252
  name: string;
@@ -245,7 +255,6 @@ export interface PutDiscountPublishResponseDTO {
245
255
  meta?: DiscountMeta;
246
256
  schedule?: DiscountSchedule;
247
257
  channelConfig: DiscountChannelConfig;
248
- appliesTo: 'order' | 'items';
249
258
  }
250
259
 
251
260
  export interface DeleteDiscountResponseDTO {
@@ -253,6 +262,8 @@ export interface DeleteDiscountResponseDTO {
253
262
  }
254
263
 
255
264
  export interface PatchDiscountRequestDTO {
265
+ // What the discount applies to
266
+ appliesTo?: 'order' | 'items';
256
267
  updatedBy: string;
257
268
  status?: DiscountStatus;
258
269
  name?: string;
@@ -260,7 +271,6 @@ export interface PatchDiscountRequestDTO {
260
271
  meta?: DiscountMeta;
261
272
  schedule?: DiscountSchedule;
262
273
  channelConfig?: DiscountChannelConfig;
263
- appliesTo?: 'order' | 'items';
264
274
  }
265
275
 
266
276
  export interface PatchDiscountResponseDTO {
@@ -270,6 +280,8 @@ export interface PatchDiscountResponseDTO {
270
280
  createdBy: string;
271
281
  // user id of most recent update
272
282
  updatedBy: string;
283
+ // What the discount applies to
284
+ appliesTo: 'order' | 'items';
273
285
  createdAt: string;
274
286
  updatedAt: string;
275
287
  name: string;
@@ -278,7 +290,6 @@ export interface PatchDiscountResponseDTO {
278
290
  meta?: DiscountMeta;
279
291
  schedule?: DiscountSchedule;
280
292
  channelConfig: DiscountChannelConfig;
281
- appliesTo: 'order' | 'items';
282
293
  }
283
294
 
284
295
  // GET /discount/{id} - Get a discount
@@ -214,6 +214,7 @@ export interface Item {
214
214
 
215
215
  export interface Group {
216
216
  id?: string;
217
+ parent_id?: string;
217
218
  name?: string;
218
219
  label?: {
219
220
  en?: string;