@compassdigital/sdk.typescript 3.19.0 → 3.21.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/announcement.d.ts +7 -7
- package/lib/interface/announcement.d.ts.map +1 -1
- package/lib/interface/calendar.d.ts +8 -7
- package/lib/interface/calendar.d.ts.map +1 -1
- package/lib/interface/compassconnect.d.ts +2 -2
- package/lib/interface/compassconnect.d.ts.map +1 -1
- package/lib/interface/config.d.ts +11 -9
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/datalake.d.ts +4 -2
- package/lib/interface/datalake.d.ts.map +1 -1
- package/lib/interface/email.d.ts +2 -1
- package/lib/interface/email.d.ts.map +1 -1
- package/lib/interface/file.d.ts +3 -2
- package/lib/interface/file.d.ts.map +1 -1
- package/lib/interface/kds.d.ts +8 -7
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/location.d.ts +55 -53
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +12 -12
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +27 -27
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/notification.d.ts +8 -7
- package/lib/interface/notification.d.ts.map +1 -1
- package/lib/interface/order.d.ts +15 -15
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +12 -7
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +15 -15
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/permission.d.ts +10 -10
- package/lib/interface/permission.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +18 -17
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/report.d.ts +8 -8
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +15 -14
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/task.d.ts +11 -11
- package/lib/interface/task.d.ts.map +1 -1
- package/lib/interface/user.d.ts +31 -29
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/util.d.ts +19 -0
- package/lib/interface/util.d.ts.map +1 -1
- package/lib/interface/vendor.d.ts +19 -17
- package/lib/interface/vendor.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/interface/announcement.ts +9 -7
- package/src/interface/calendar.ts +11 -7
- package/src/interface/compassconnect.ts +3 -2
- package/src/interface/config.ts +10 -10
- package/src/interface/datalake.ts +3 -3
- package/src/interface/email.ts +2 -2
- package/src/interface/file.ts +3 -3
- package/src/interface/kds.ts +7 -7
- package/src/interface/location.ts +92 -53
- package/src/interface/mealplan.ts +13 -12
- package/src/interface/menu.ts +40 -27
- package/src/interface/notification.ts +7 -7
- package/src/interface/order.ts +22 -15
- package/src/interface/partner.ts +8 -8
- package/src/interface/payment.ts +20 -15
- package/src/interface/permission.ts +13 -10
- package/src/interface/promo.ts +19 -17
- package/src/interface/report.ts +18 -8
- package/src/interface/shoppingcart.ts +27 -15
- package/src/interface/sms.ts +1 -1
- package/src/interface/task.ts +14 -11
- package/src/interface/user.ts +43 -29
- package/src/interface/util.ts +22 -1
- package/src/interface/vendor.ts +23 -17
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import { RequestQuery } from "./util";
|
|
3
|
+
import { RequestQuery, BaseRequest } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface Success {
|
|
6
6
|
success?: boolean;
|
|
@@ -122,7 +122,7 @@ export type PostPermissionBody = PermissionBody;
|
|
|
122
122
|
|
|
123
123
|
export type PostPermissionResponse = Permission;
|
|
124
124
|
|
|
125
|
-
export interface PostPermissionRequest {
|
|
125
|
+
export interface PostPermissionRequest extends BaseRequest {
|
|
126
126
|
body: PostPermissionBody;
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -135,7 +135,7 @@ export interface DeletePermissionPath {
|
|
|
135
135
|
|
|
136
136
|
export type DeletePermissionResponse = Success;
|
|
137
137
|
|
|
138
|
-
export interface DeletePermissionRequest extends DeletePermissionPath {}
|
|
138
|
+
export interface DeletePermissionRequest extends BaseRequest, DeletePermissionPath {}
|
|
139
139
|
|
|
140
140
|
// GET /permission/role - Get Roles, with pagination and filters
|
|
141
141
|
|
|
@@ -150,7 +150,9 @@ export interface GetPermissionRoleQuery {
|
|
|
150
150
|
|
|
151
151
|
export type GetPermissionRoleResponse = Roles;
|
|
152
152
|
|
|
153
|
-
export interface GetPermissionRoleRequest
|
|
153
|
+
export interface GetPermissionRoleRequest
|
|
154
|
+
extends BaseRequest,
|
|
155
|
+
RequestQuery<GetPermissionRoleQuery> {}
|
|
154
156
|
|
|
155
157
|
// POST /permission/role - Create a new role
|
|
156
158
|
|
|
@@ -158,7 +160,7 @@ export type PostPermissionRoleBody = RoleBody;
|
|
|
158
160
|
|
|
159
161
|
export type PostPermissionRoleResponse = Role;
|
|
160
162
|
|
|
161
|
-
export interface PostPermissionRoleRequest {
|
|
163
|
+
export interface PostPermissionRoleRequest extends BaseRequest {
|
|
162
164
|
body: PostPermissionRoleBody;
|
|
163
165
|
}
|
|
164
166
|
|
|
@@ -173,7 +175,7 @@ export type PatchPermissionRoleBody = RolePatchBody;
|
|
|
173
175
|
|
|
174
176
|
export type PatchPermissionRoleResponse = Role;
|
|
175
177
|
|
|
176
|
-
export interface PatchPermissionRoleRequest extends PatchPermissionRolePath {
|
|
178
|
+
export interface PatchPermissionRoleRequest extends BaseRequest, PatchPermissionRolePath {
|
|
177
179
|
body: PatchPermissionRoleBody;
|
|
178
180
|
}
|
|
179
181
|
|
|
@@ -194,7 +196,8 @@ export interface GetPermissionRecipientQuery {
|
|
|
194
196
|
export type GetPermissionRecipientResponse = Permissions;
|
|
195
197
|
|
|
196
198
|
export interface GetPermissionRecipientRequest
|
|
197
|
-
extends
|
|
199
|
+
extends BaseRequest,
|
|
200
|
+
RequestQuery<GetPermissionRecipientQuery>,
|
|
198
201
|
GetPermissionRecipientPath {}
|
|
199
202
|
|
|
200
203
|
// GET /permission/role/user/{user_id} - Get a list of role assignments for a user
|
|
@@ -206,7 +209,7 @@ export interface GetPermissionRoleUserPath {
|
|
|
206
209
|
|
|
207
210
|
export type GetPermissionRoleUserResponse = RoleAssignments;
|
|
208
211
|
|
|
209
|
-
export interface GetPermissionRoleUserRequest extends GetPermissionRoleUserPath {}
|
|
212
|
+
export interface GetPermissionRoleUserRequest extends BaseRequest, GetPermissionRoleUserPath {}
|
|
210
213
|
|
|
211
214
|
// POST /permission/role/user/{user_id} - Assign a role to a user
|
|
212
215
|
|
|
@@ -219,7 +222,7 @@ export type PostPermissionRoleUserBody = RoleAssignmentBody;
|
|
|
219
222
|
|
|
220
223
|
export type PostPermissionRoleUserResponse = RoleAssignment;
|
|
221
224
|
|
|
222
|
-
export interface PostPermissionRoleUserRequest extends PostPermissionRoleUserPath {
|
|
225
|
+
export interface PostPermissionRoleUserRequest extends BaseRequest, PostPermissionRoleUserPath {
|
|
223
226
|
body: PostPermissionRoleUserBody;
|
|
224
227
|
}
|
|
225
228
|
|
|
@@ -234,6 +237,6 @@ export type DeletePermissionRoleUserBody = RoleAssignment;
|
|
|
234
237
|
|
|
235
238
|
export type DeletePermissionRoleUserResponse = Success;
|
|
236
239
|
|
|
237
|
-
export interface DeletePermissionRoleUserRequest extends DeletePermissionRoleUserPath {
|
|
240
|
+
export interface DeletePermissionRoleUserRequest extends BaseRequest, DeletePermissionRoleUserPath {
|
|
238
241
|
body: DeletePermissionRoleUserBody;
|
|
239
242
|
}
|
package/src/interface/promo.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import { RequestQuery } from "./util";
|
|
3
|
+
import { RequestQuery, BaseRequest } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface Error {
|
|
6
6
|
message?: string;
|
|
@@ -248,7 +248,7 @@ export type PostPromoBody = PromotionBody;
|
|
|
248
248
|
|
|
249
249
|
export type PostPromoResponse = Promotion;
|
|
250
250
|
|
|
251
|
-
export interface PostPromoRequest {
|
|
251
|
+
export interface PostPromoRequest extends BaseRequest {
|
|
252
252
|
body: PostPromoBody;
|
|
253
253
|
}
|
|
254
254
|
|
|
@@ -261,7 +261,7 @@ export interface GetPromosQuery {
|
|
|
261
261
|
|
|
262
262
|
export type GetPromosResponse = Promotions;
|
|
263
263
|
|
|
264
|
-
export interface GetPromosRequest extends RequestQuery<GetPromosQuery> {}
|
|
264
|
+
export interface GetPromosRequest extends BaseRequest, RequestQuery<GetPromosQuery> {}
|
|
265
265
|
|
|
266
266
|
// GET /promo/{id} - Get an individual promotion
|
|
267
267
|
|
|
@@ -277,7 +277,7 @@ export interface GetPromoQuery {
|
|
|
277
277
|
|
|
278
278
|
export type GetPromoResponse = Promotion;
|
|
279
279
|
|
|
280
|
-
export interface GetPromoRequest extends RequestQuery<GetPromoQuery>, GetPromoPath {}
|
|
280
|
+
export interface GetPromoRequest extends BaseRequest, RequestQuery<GetPromoQuery>, GetPromoPath {}
|
|
281
281
|
|
|
282
282
|
// PUT /promo/{id} - Update a promotion
|
|
283
283
|
|
|
@@ -290,7 +290,7 @@ export type PutPromoBody = Promotion;
|
|
|
290
290
|
|
|
291
291
|
export type PutPromoResponse = Promotion;
|
|
292
292
|
|
|
293
|
-
export interface PutPromoRequest extends PutPromoPath {
|
|
293
|
+
export interface PutPromoRequest extends BaseRequest, PutPromoPath {
|
|
294
294
|
body: PutPromoBody;
|
|
295
295
|
}
|
|
296
296
|
|
|
@@ -303,7 +303,7 @@ export interface DeletePromoPath {
|
|
|
303
303
|
|
|
304
304
|
export type DeletePromoResponse = Success;
|
|
305
305
|
|
|
306
|
-
export interface DeletePromoRequest extends DeletePromoPath {}
|
|
306
|
+
export interface DeletePromoRequest extends BaseRequest, DeletePromoPath {}
|
|
307
307
|
|
|
308
308
|
// GET /promo/company/{company}/location/group/{location_group} - Get all promotions within company for a location group
|
|
309
309
|
|
|
@@ -323,7 +323,8 @@ export interface GetPromoCompanyLocationGroupQuery {
|
|
|
323
323
|
export type GetPromoCompanyLocationGroupResponse = Promotions;
|
|
324
324
|
|
|
325
325
|
export interface GetPromoCompanyLocationGroupRequest
|
|
326
|
-
extends
|
|
326
|
+
extends BaseRequest,
|
|
327
|
+
RequestQuery<GetPromoCompanyLocationGroupQuery>,
|
|
327
328
|
GetPromoCompanyLocationGroupPath {}
|
|
328
329
|
|
|
329
330
|
// POST /promo/validate/voucher - Validate a promo voucher
|
|
@@ -332,7 +333,7 @@ export type PostPromoValidateVoucherBody = VoucherCode;
|
|
|
332
333
|
|
|
333
334
|
export type PostPromoValidateVoucherResponse = Voucher;
|
|
334
335
|
|
|
335
|
-
export interface PostPromoValidateVoucherRequest {
|
|
336
|
+
export interface PostPromoValidateVoucherRequest extends BaseRequest {
|
|
336
337
|
body: PostPromoValidateVoucherBody;
|
|
337
338
|
}
|
|
338
339
|
|
|
@@ -342,7 +343,7 @@ export type PostPromoRedeemVoucherBody = VoucherCode;
|
|
|
342
343
|
|
|
343
344
|
export type PostPromoRedeemVoucherResponse = Redemption;
|
|
344
345
|
|
|
345
|
-
export interface PostPromoRedeemVoucherRequest {
|
|
346
|
+
export interface PostPromoRedeemVoucherRequest extends BaseRequest {
|
|
346
347
|
body: PostPromoRedeemVoucherBody;
|
|
347
348
|
}
|
|
348
349
|
|
|
@@ -352,7 +353,7 @@ export type PostPromoVoucherBody = CreateVoucher;
|
|
|
352
353
|
|
|
353
354
|
export type PostPromoVoucherResponse = Voucher;
|
|
354
355
|
|
|
355
|
-
export interface PostPromoVoucherRequest {
|
|
356
|
+
export interface PostPromoVoucherRequest extends BaseRequest {
|
|
356
357
|
body: PostPromoVoucherBody;
|
|
357
358
|
}
|
|
358
359
|
|
|
@@ -367,7 +368,7 @@ export type PutPromoVoucherBody = UpdateVoucher;
|
|
|
367
368
|
|
|
368
369
|
export type PutPromoVoucherResponse = Voucher;
|
|
369
370
|
|
|
370
|
-
export interface PutPromoVoucherRequest extends PutPromoVoucherPath {
|
|
371
|
+
export interface PutPromoVoucherRequest extends BaseRequest, PutPromoVoucherPath {
|
|
371
372
|
body: PutPromoVoucherBody;
|
|
372
373
|
}
|
|
373
374
|
|
|
@@ -388,7 +389,8 @@ export interface DeletePromoVoucherResponse {
|
|
|
388
389
|
}
|
|
389
390
|
|
|
390
391
|
export interface DeletePromoVoucherRequest
|
|
391
|
-
extends
|
|
392
|
+
extends BaseRequest,
|
|
393
|
+
RequestQuery<DeletePromoVoucherQuery>,
|
|
392
394
|
DeletePromoVoucherPath {}
|
|
393
395
|
|
|
394
396
|
// POST /promo/customer/ - Add user to voucherify
|
|
@@ -397,7 +399,7 @@ export type PostPromoCustomerBody = VoucherifyCustomer;
|
|
|
397
399
|
|
|
398
400
|
export type PostPromoCustomerResponse = Customer;
|
|
399
401
|
|
|
400
|
-
export interface PostPromoCustomerRequest {
|
|
402
|
+
export interface PostPromoCustomerRequest extends BaseRequest {
|
|
401
403
|
body: PostPromoCustomerBody;
|
|
402
404
|
}
|
|
403
405
|
|
|
@@ -413,7 +415,7 @@ export interface DeletePromoCustomerResponse {
|
|
|
413
415
|
success?: boolean;
|
|
414
416
|
}
|
|
415
417
|
|
|
416
|
-
export interface DeletePromoCustomerRequest {
|
|
418
|
+
export interface DeletePromoCustomerRequest extends BaseRequest {
|
|
417
419
|
body: DeletePromoCustomerBody;
|
|
418
420
|
}
|
|
419
421
|
|
|
@@ -428,7 +430,7 @@ export type PostPromoVoucherReverseBody = ReverseRedemption;
|
|
|
428
430
|
|
|
429
431
|
export type PostPromoVoucherReverseResponse = RedemptionReversal;
|
|
430
432
|
|
|
431
|
-
export interface PostPromoVoucherReverseRequest extends PostPromoVoucherReversePath {
|
|
433
|
+
export interface PostPromoVoucherReverseRequest extends BaseRequest, PostPromoVoucherReversePath {
|
|
432
434
|
body: PostPromoVoucherReverseBody;
|
|
433
435
|
}
|
|
434
436
|
|
|
@@ -438,7 +440,7 @@ export type PostPromoVoucherifyActivityExecuteBody = string;
|
|
|
438
440
|
|
|
439
441
|
export type PostPromoVoucherifyActivityExecuteResponse = Customer;
|
|
440
442
|
|
|
441
|
-
export interface PostPromoVoucherifyActivityExecuteRequest {
|
|
443
|
+
export interface PostPromoVoucherifyActivityExecuteRequest extends BaseRequest {
|
|
442
444
|
body: PostPromoVoucherifyActivityExecuteBody;
|
|
443
445
|
}
|
|
444
446
|
|
|
@@ -446,4 +448,4 @@ export interface PostPromoVoucherifyActivityExecuteRequest {
|
|
|
446
448
|
|
|
447
449
|
export type GetPromoVoucherifyActivityConfigResponse = SFMCConfig;
|
|
448
450
|
|
|
449
|
-
export
|
|
451
|
+
export interface GetPromoVoucherifyActivityConfigRequest extends BaseRequest {}
|
package/src/interface/report.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import { RequestQuery } from "./util";
|
|
3
|
+
import { RequestQuery, BaseRequest } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface Success {
|
|
6
6
|
success?: boolean;
|
|
@@ -324,7 +324,8 @@ export interface GetReportAnalyticsGroupQuery {
|
|
|
324
324
|
export type GetReportAnalyticsGroupResponse = P2AnalyticsReport;
|
|
325
325
|
|
|
326
326
|
export interface GetReportAnalyticsGroupRequest
|
|
327
|
-
extends
|
|
327
|
+
extends BaseRequest,
|
|
328
|
+
RequestQuery<GetReportAnalyticsGroupQuery>,
|
|
328
329
|
GetReportAnalyticsGroupPath {}
|
|
329
330
|
|
|
330
331
|
// GET /report/analytics/combined/group/{location_group}
|
|
@@ -345,7 +346,8 @@ export interface GetReportAnalyticsCombinedGroupQuery {
|
|
|
345
346
|
export type GetReportAnalyticsCombinedGroupResponse = SAReport;
|
|
346
347
|
|
|
347
348
|
export interface GetReportAnalyticsCombinedGroupRequest
|
|
348
|
-
extends
|
|
349
|
+
extends BaseRequest,
|
|
350
|
+
RequestQuery<GetReportAnalyticsCombinedGroupQuery>,
|
|
349
351
|
GetReportAnalyticsCombinedGroupPath {}
|
|
350
352
|
|
|
351
353
|
// GET /report/eod/group/{id} - Get reports for selected location group
|
|
@@ -369,7 +371,8 @@ export interface GetReportEodGroupQuery {
|
|
|
369
371
|
export type GetReportEodGroupResponse = EODReports;
|
|
370
372
|
|
|
371
373
|
export interface GetReportEodGroupRequest
|
|
372
|
-
extends
|
|
374
|
+
extends BaseRequest,
|
|
375
|
+
RequestQuery<GetReportEodGroupQuery>,
|
|
373
376
|
GetReportEodGroupPath {}
|
|
374
377
|
|
|
375
378
|
// GET /report/eod/group/{id}/subscribers - Get reports for selected location group
|
|
@@ -380,7 +383,9 @@ export interface GetReportEodGroupSubscribersPath {
|
|
|
380
383
|
|
|
381
384
|
export type GetReportEodGroupSubscribersResponse = EODSubscribers;
|
|
382
385
|
|
|
383
|
-
export interface GetReportEodGroupSubscribersRequest
|
|
386
|
+
export interface GetReportEodGroupSubscribersRequest
|
|
387
|
+
extends BaseRequest,
|
|
388
|
+
GetReportEodGroupSubscribersPath {}
|
|
384
389
|
|
|
385
390
|
// POST /report/eod/group/{id}/subscribers - Add emails to selected location group
|
|
386
391
|
|
|
@@ -392,7 +397,9 @@ export type PostReportEodGroupSubscribersBody = EODSubscribers;
|
|
|
392
397
|
|
|
393
398
|
export type PostReportEodGroupSubscribersResponse = EODSubscribers;
|
|
394
399
|
|
|
395
|
-
export interface PostReportEodGroupSubscribersRequest
|
|
400
|
+
export interface PostReportEodGroupSubscribersRequest
|
|
401
|
+
extends BaseRequest,
|
|
402
|
+
PostReportEodGroupSubscribersPath {
|
|
396
403
|
body: PostReportEodGroupSubscribersBody;
|
|
397
404
|
}
|
|
398
405
|
|
|
@@ -405,7 +412,8 @@ export interface DeleteReportEodGroupSubscribersPath {
|
|
|
405
412
|
export type DeleteReportEodGroupSubscribersResponse = Success;
|
|
406
413
|
|
|
407
414
|
export interface DeleteReportEodGroupSubscribersRequest
|
|
408
|
-
extends
|
|
415
|
+
extends BaseRequest,
|
|
416
|
+
DeleteReportEodGroupSubscribersPath {}
|
|
409
417
|
|
|
410
418
|
// PUT /report/eod/group/{id}/subscribers - replace all subscribers from selected location group with payload
|
|
411
419
|
|
|
@@ -417,6 +425,8 @@ export type PutReportEodGroupSubscribersBody = EODSubscribers;
|
|
|
417
425
|
|
|
418
426
|
export type PutReportEodGroupSubscribersResponse = EODSubscribers;
|
|
419
427
|
|
|
420
|
-
export interface PutReportEodGroupSubscribersRequest
|
|
428
|
+
export interface PutReportEodGroupSubscribersRequest
|
|
429
|
+
extends BaseRequest,
|
|
430
|
+
PutReportEodGroupSubscribersPath {
|
|
421
431
|
body: PutReportEodGroupSubscribersBody;
|
|
422
432
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import { RequestQuery } from "./util";
|
|
3
|
+
import { RequestQuery, BaseRequest } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface Error {
|
|
6
6
|
message?: string;
|
|
@@ -238,7 +238,7 @@ export type PostShoppingcartCartBody = ShoppingCart;
|
|
|
238
238
|
|
|
239
239
|
export type PostShoppingcartCartResponse = ShoppingCart;
|
|
240
240
|
|
|
241
|
-
export interface PostShoppingcartCartRequest {
|
|
241
|
+
export interface PostShoppingcartCartRequest extends BaseRequest {
|
|
242
242
|
body: PostShoppingcartCartBody;
|
|
243
243
|
}
|
|
244
244
|
|
|
@@ -253,7 +253,7 @@ export type PutShoppingcartCartItemsBody = Items;
|
|
|
253
253
|
|
|
254
254
|
export type PutShoppingcartCartItemsResponse = ShoppingCart;
|
|
255
255
|
|
|
256
|
-
export interface PutShoppingcartCartItemsRequest extends PutShoppingcartCartItemsPath {
|
|
256
|
+
export interface PutShoppingcartCartItemsRequest extends BaseRequest, PutShoppingcartCartItemsPath {
|
|
257
257
|
body: PutShoppingcartCartItemsBody;
|
|
258
258
|
}
|
|
259
259
|
|
|
@@ -268,7 +268,9 @@ export type DeleteShoppingcartCartItemsBody = Items;
|
|
|
268
268
|
|
|
269
269
|
export type DeleteShoppingcartCartItemsResponse = ShoppingCart;
|
|
270
270
|
|
|
271
|
-
export interface DeleteShoppingcartCartItemsRequest
|
|
271
|
+
export interface DeleteShoppingcartCartItemsRequest
|
|
272
|
+
extends BaseRequest,
|
|
273
|
+
DeleteShoppingcartCartItemsPath {
|
|
272
274
|
body: DeleteShoppingcartCartItemsBody;
|
|
273
275
|
}
|
|
274
276
|
|
|
@@ -281,7 +283,7 @@ export interface GetShoppingcartCartPath {
|
|
|
281
283
|
|
|
282
284
|
export type GetShoppingcartCartResponse = ShoppingCart;
|
|
283
285
|
|
|
284
|
-
export interface GetShoppingcartCartRequest extends GetShoppingcartCartPath {}
|
|
286
|
+
export interface GetShoppingcartCartRequest extends BaseRequest, GetShoppingcartCartPath {}
|
|
285
287
|
|
|
286
288
|
// PATCH /shoppingcart/{id} - Update a ShoppingCart
|
|
287
289
|
|
|
@@ -294,7 +296,7 @@ export type PatchShoppingcartCartBody = ShoppingCart;
|
|
|
294
296
|
|
|
295
297
|
export type PatchShoppingcartCartResponse = ShoppingCart;
|
|
296
298
|
|
|
297
|
-
export interface PatchShoppingcartCartRequest extends PatchShoppingcartCartPath {
|
|
299
|
+
export interface PatchShoppingcartCartRequest extends BaseRequest, PatchShoppingcartCartPath {
|
|
298
300
|
body: PatchShoppingcartCartBody;
|
|
299
301
|
}
|
|
300
302
|
|
|
@@ -309,7 +311,7 @@ export type PutShoppingcartCartPromoBody = Promo;
|
|
|
309
311
|
|
|
310
312
|
export type PutShoppingcartCartPromoResponse = ShoppingCart;
|
|
311
313
|
|
|
312
|
-
export interface PutShoppingcartCartPromoRequest extends PutShoppingcartCartPromoPath {
|
|
314
|
+
export interface PutShoppingcartCartPromoRequest extends BaseRequest, PutShoppingcartCartPromoPath {
|
|
313
315
|
body: PutShoppingcartCartPromoBody;
|
|
314
316
|
}
|
|
315
317
|
|
|
@@ -322,7 +324,9 @@ export interface DeleteShoppingcartCartPromoPath {
|
|
|
322
324
|
|
|
323
325
|
export type DeleteShoppingcartCartPromoResponse = ShoppingCart;
|
|
324
326
|
|
|
325
|
-
export interface DeleteShoppingcartCartPromoRequest
|
|
327
|
+
export interface DeleteShoppingcartCartPromoRequest
|
|
328
|
+
extends BaseRequest,
|
|
329
|
+
DeleteShoppingcartCartPromoPath {}
|
|
326
330
|
|
|
327
331
|
// PUT /shoppingcart/{id}/paymentmethod/ - Change payment method used in shopping cart
|
|
328
332
|
|
|
@@ -335,7 +339,9 @@ export type PutShoppingcartCartPaymentBody = Payment;
|
|
|
335
339
|
|
|
336
340
|
export type PutShoppingcartCartPaymentResponse = ShoppingCart;
|
|
337
341
|
|
|
338
|
-
export interface PutShoppingcartCartPaymentRequest
|
|
342
|
+
export interface PutShoppingcartCartPaymentRequest
|
|
343
|
+
extends BaseRequest,
|
|
344
|
+
PutShoppingcartCartPaymentPath {
|
|
339
345
|
body: PutShoppingcartCartPaymentBody;
|
|
340
346
|
}
|
|
341
347
|
|
|
@@ -350,7 +356,7 @@ export type PutShoppingcartCartOrderBody = OrderId;
|
|
|
350
356
|
|
|
351
357
|
export type PutShoppingcartCartOrderResponse = ShoppingCart;
|
|
352
358
|
|
|
353
|
-
export interface PutShoppingcartCartOrderRequest extends PutShoppingcartCartOrderPath {
|
|
359
|
+
export interface PutShoppingcartCartOrderRequest extends BaseRequest, PutShoppingcartCartOrderPath {
|
|
354
360
|
body: PutShoppingcartCartOrderBody;
|
|
355
361
|
}
|
|
356
362
|
|
|
@@ -367,7 +373,9 @@ export type PutShoppingcartCartLoyaltyBody = CouponCode;
|
|
|
367
373
|
|
|
368
374
|
export type PutShoppingcartCartLoyaltyResponse = ShoppingCart;
|
|
369
375
|
|
|
370
|
-
export interface PutShoppingcartCartLoyaltyRequest
|
|
376
|
+
export interface PutShoppingcartCartLoyaltyRequest
|
|
377
|
+
extends BaseRequest,
|
|
378
|
+
PutShoppingcartCartLoyaltyPath {
|
|
371
379
|
body: PutShoppingcartCartLoyaltyBody;
|
|
372
380
|
}
|
|
373
381
|
|
|
@@ -382,7 +390,9 @@ export interface DeleteShoppingcartCartLoyaltyPath {
|
|
|
382
390
|
|
|
383
391
|
export type DeleteShoppingcartCartLoyaltyResponse = ShoppingCart;
|
|
384
392
|
|
|
385
|
-
export interface DeleteShoppingcartCartLoyaltyRequest
|
|
393
|
+
export interface DeleteShoppingcartCartLoyaltyRequest
|
|
394
|
+
extends BaseRequest,
|
|
395
|
+
DeleteShoppingcartCartLoyaltyPath {}
|
|
386
396
|
|
|
387
397
|
// POST /shoppingcart/{id}/clone - Create a shopping cart from existing shopping cart
|
|
388
398
|
|
|
@@ -398,7 +408,9 @@ export interface PostShoppingcartCloneCartBody {
|
|
|
398
408
|
|
|
399
409
|
export type PostShoppingcartCloneCartResponse = ShoppingCart;
|
|
400
410
|
|
|
401
|
-
export interface PostShoppingcartCloneCartRequest
|
|
411
|
+
export interface PostShoppingcartCloneCartRequest
|
|
412
|
+
extends BaseRequest,
|
|
413
|
+
PostShoppingcartCloneCartPath {
|
|
402
414
|
body: PostShoppingcartCloneCartBody;
|
|
403
415
|
}
|
|
404
416
|
|
|
@@ -411,7 +423,7 @@ export interface PutShoppingcartCheckoutPath {
|
|
|
411
423
|
|
|
412
424
|
export type PutShoppingcartCheckoutResponse = ShoppingCart;
|
|
413
425
|
|
|
414
|
-
export interface PutShoppingcartCheckoutRequest extends PutShoppingcartCheckoutPath {}
|
|
426
|
+
export interface PutShoppingcartCheckoutRequest extends BaseRequest, PutShoppingcartCheckoutPath {}
|
|
415
427
|
|
|
416
428
|
// POST /shoppingcart/bulk - Get multiple ShoppingCarts
|
|
417
429
|
|
|
@@ -422,6 +434,6 @@ export interface PostShoppingcartBulkBody {
|
|
|
422
434
|
|
|
423
435
|
export type PostShoppingcartBulkResponse = ShoppingCarts;
|
|
424
436
|
|
|
425
|
-
export interface PostShoppingcartBulkRequest {
|
|
437
|
+
export interface PostShoppingcartBulkRequest extends BaseRequest {
|
|
426
438
|
body: PostShoppingcartBulkBody;
|
|
427
439
|
}
|
package/src/interface/sms.ts
CHANGED
package/src/interface/task.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
2
2
|
|
|
3
|
-
import { RequestQuery } from "./util";
|
|
3
|
+
import { RequestQuery, BaseRequest } from "./util";
|
|
4
4
|
|
|
5
5
|
export interface TaskLocation {
|
|
6
6
|
// Location ID
|
|
@@ -143,7 +143,7 @@ export type PostTaskBody = TaskCreate;
|
|
|
143
143
|
|
|
144
144
|
export type PostTaskResponse = Task;
|
|
145
145
|
|
|
146
|
-
export interface PostTaskRequest {
|
|
146
|
+
export interface PostTaskRequest extends BaseRequest {
|
|
147
147
|
body: PostTaskBody;
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -156,7 +156,7 @@ export interface GetTaskPath {
|
|
|
156
156
|
|
|
157
157
|
export type GetTaskResponse = Task;
|
|
158
158
|
|
|
159
|
-
export interface GetTaskRequest extends GetTaskPath {}
|
|
159
|
+
export interface GetTaskRequest extends BaseRequest, GetTaskPath {}
|
|
160
160
|
|
|
161
161
|
// PATCH /task/{id} - Update Task
|
|
162
162
|
|
|
@@ -169,7 +169,7 @@ export type PatchTaskBody = TaskUpdate;
|
|
|
169
169
|
|
|
170
170
|
export type PatchTaskResponse = Task;
|
|
171
171
|
|
|
172
|
-
export interface PatchTaskRequest extends PatchTaskPath {
|
|
172
|
+
export interface PatchTaskRequest extends BaseRequest, PatchTaskPath {
|
|
173
173
|
body: PatchTaskBody;
|
|
174
174
|
}
|
|
175
175
|
|
|
@@ -182,7 +182,7 @@ export interface DeleteTaskPath {
|
|
|
182
182
|
|
|
183
183
|
export type DeleteTaskResponse = ActionResponse;
|
|
184
184
|
|
|
185
|
-
export interface DeleteTaskRequest extends DeleteTaskPath {}
|
|
185
|
+
export interface DeleteTaskRequest extends BaseRequest, DeleteTaskPath {}
|
|
186
186
|
|
|
187
187
|
// GET /task/order/{id} - Get task based on passed order ID
|
|
188
188
|
|
|
@@ -193,7 +193,7 @@ export interface GetTaskOrderPath {
|
|
|
193
193
|
|
|
194
194
|
export type GetTaskOrderResponse = Task;
|
|
195
195
|
|
|
196
|
-
export interface GetTaskOrderRequest extends GetTaskOrderPath {}
|
|
196
|
+
export interface GetTaskOrderRequest extends BaseRequest, GetTaskOrderPath {}
|
|
197
197
|
|
|
198
198
|
// GET /task/order/{id}/kds - Get KDS tasks based on passed order ID
|
|
199
199
|
|
|
@@ -204,7 +204,7 @@ export interface GetTaskOrderKdsPath {
|
|
|
204
204
|
|
|
205
205
|
export type GetTaskOrderKdsResponse = Tasks;
|
|
206
206
|
|
|
207
|
-
export interface GetTaskOrderKdsRequest extends GetTaskOrderKdsPath {}
|
|
207
|
+
export interface GetTaskOrderKdsRequest extends BaseRequest, GetTaskOrderKdsPath {}
|
|
208
208
|
|
|
209
209
|
// PATCH /task/order/{id}/kds - Update an order and its associated tasks
|
|
210
210
|
|
|
@@ -217,7 +217,7 @@ export type PatchTaskOrderKdsBody = OrderUpdate;
|
|
|
217
217
|
|
|
218
218
|
export type PatchTaskOrderKdsResponse = Tasks;
|
|
219
219
|
|
|
220
|
-
export interface PatchTaskOrderKdsRequest extends PatchTaskOrderKdsPath {
|
|
220
|
+
export interface PatchTaskOrderKdsRequest extends BaseRequest, PatchTaskOrderKdsPath {
|
|
221
221
|
body: PatchTaskOrderKdsBody;
|
|
222
222
|
}
|
|
223
223
|
|
|
@@ -244,7 +244,8 @@ export interface GetTaskAssigneeQuery {
|
|
|
244
244
|
export type GetTaskAssigneeResponse = Tasks;
|
|
245
245
|
|
|
246
246
|
export interface GetTaskAssigneeRequest
|
|
247
|
-
extends
|
|
247
|
+
extends BaseRequest,
|
|
248
|
+
RequestQuery<GetTaskAssigneeQuery>,
|
|
248
249
|
GetTaskAssigneePath {}
|
|
249
250
|
|
|
250
251
|
// GET /task/location/brand/{id} - Get location brand tasks
|
|
@@ -274,7 +275,8 @@ export interface GetTaskLocationBrandQuery {
|
|
|
274
275
|
export type GetTaskLocationBrandResponse = Tasks;
|
|
275
276
|
|
|
276
277
|
export interface GetTaskLocationBrandRequest
|
|
277
|
-
extends
|
|
278
|
+
extends BaseRequest,
|
|
279
|
+
RequestQuery<GetTaskLocationBrandQuery>,
|
|
278
280
|
GetTaskLocationBrandPath {}
|
|
279
281
|
|
|
280
282
|
// GET /task/location/group/{id} - Get location group tasks
|
|
@@ -304,5 +306,6 @@ export interface GetTaskLocationGroupQuery {
|
|
|
304
306
|
export type GetTaskLocationGroupResponse = Tasks;
|
|
305
307
|
|
|
306
308
|
export interface GetTaskLocationGroupRequest
|
|
307
|
-
extends
|
|
309
|
+
extends BaseRequest,
|
|
310
|
+
RequestQuery<GetTaskLocationGroupQuery>,
|
|
308
311
|
GetTaskLocationGroupPath {}
|