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