@compassdigital/sdk.typescript 3.17.0 → 3.19.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 +8 -301
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -334
- package/lib/index.js.map +1 -1
- package/lib/interface/shoppingcart.d.ts +6 -0
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/task.d.ts +1 -0
- package/lib/interface/task.d.ts.map +1 -1
- package/manifest.json +4 -36
- package/package.json +7 -7
- package/src/index.ts +21 -733
- package/src/interface/shoppingcart.ts +11 -0
- package/src/interface/task.ts +1 -0
- 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
package/src/index.ts
CHANGED
|
@@ -182,6 +182,7 @@ import {
|
|
|
182
182
|
DeleteShoppingcartCartLoyaltyResponse,
|
|
183
183
|
PostShoppingcartCloneCartBody,
|
|
184
184
|
PostShoppingcartCloneCartResponse,
|
|
185
|
+
PutShoppingcartCheckoutResponse,
|
|
185
186
|
PostShoppingcartBulkBody,
|
|
186
187
|
PostShoppingcartBulkResponse,
|
|
187
188
|
} from "./interface/shoppingcart";
|
|
@@ -292,8 +293,6 @@ import {
|
|
|
292
293
|
GetPromoVoucherifyActivityConfigResponse,
|
|
293
294
|
} from "./interface/promo";
|
|
294
295
|
|
|
295
|
-
import { PostDhSqlResponse } from "./interface/dh";
|
|
296
|
-
|
|
297
296
|
import {
|
|
298
297
|
GetConfigAppconfigResponse,
|
|
299
298
|
GetConfigResponse,
|
|
@@ -398,45 +397,6 @@ import {
|
|
|
398
397
|
PutUserVerificationPhoneResponse,
|
|
399
398
|
} from "./interface/user";
|
|
400
399
|
|
|
401
|
-
import {
|
|
402
|
-
PostLoyaltyEnrollQuery,
|
|
403
|
-
PostLoyaltyEnrollResponse,
|
|
404
|
-
GetLoyaltyPointsQuery,
|
|
405
|
-
GetLoyaltyPointsResponse,
|
|
406
|
-
GetLoyaltyOffersResponse,
|
|
407
|
-
GetLoyaltyEnrollmentstatusResponse,
|
|
408
|
-
GetLoyaltyBalanceResponse,
|
|
409
|
-
GetLoyaltyOpportunitiesQuery,
|
|
410
|
-
GetLoyaltyOpportunitiesResponse,
|
|
411
|
-
PostLoyaltyOpportunitiesQuery,
|
|
412
|
-
PostLoyaltyOpportunitiesResponse,
|
|
413
|
-
GetLoyaltyRewardsResponse,
|
|
414
|
-
GetLoyaltyCouponsResponse,
|
|
415
|
-
GetLoyaltyOrderpointsQuery,
|
|
416
|
-
GetLoyaltyOrderpointsResponse,
|
|
417
|
-
PostLoyaltyOrderpointsBody,
|
|
418
|
-
PostLoyaltyOrderpointsResponse,
|
|
419
|
-
PostLoyaltyPurchaseQuery,
|
|
420
|
-
PostLoyaltyPurchaseBody,
|
|
421
|
-
PostLoyaltyPurchaseResponse,
|
|
422
|
-
PostLoyaltyBuyrewardQuery,
|
|
423
|
-
PostLoyaltyBuyrewardBody,
|
|
424
|
-
PostLoyaltyBuyrewardResponse,
|
|
425
|
-
GetLoyaltyHistoryQuery,
|
|
426
|
-
GetLoyaltyHistoryResponse,
|
|
427
|
-
GetLoyaltyCouponResponse,
|
|
428
|
-
PatchLoyaltyCouponBody,
|
|
429
|
-
PatchLoyaltyCouponResponse,
|
|
430
|
-
GetLoyaltySearchQuery,
|
|
431
|
-
GetLoyaltySearchResponse,
|
|
432
|
-
GetLoyaltyUsersQuery,
|
|
433
|
-
GetLoyaltyUsersResponse,
|
|
434
|
-
GetLoyaltyEventsQuery,
|
|
435
|
-
GetLoyaltyEventsResponse,
|
|
436
|
-
} from "./interface/loyalty";
|
|
437
|
-
|
|
438
|
-
import { GetBrandResponse, GetBrandsResponse } from "./interface/brand";
|
|
439
|
-
|
|
440
400
|
import {
|
|
441
401
|
GetCalendarQuery,
|
|
442
402
|
GetCalendarResponse,
|
|
@@ -449,31 +409,6 @@ import {
|
|
|
449
409
|
PostCalendarSyncResponse,
|
|
450
410
|
} from "./interface/calendar";
|
|
451
411
|
|
|
452
|
-
import {
|
|
453
|
-
PostDeliveryOrderBody,
|
|
454
|
-
PostDeliveryOrderResponse,
|
|
455
|
-
PatchDeliveryOrderResponse,
|
|
456
|
-
GetDeliveryOrderResponse,
|
|
457
|
-
} from "./interface/delivery";
|
|
458
|
-
|
|
459
|
-
import {
|
|
460
|
-
PostScheduleBody,
|
|
461
|
-
PostScheduleResponse,
|
|
462
|
-
GetSchedulesQuery,
|
|
463
|
-
GetSchedulesResponse,
|
|
464
|
-
GetScheduleResponse,
|
|
465
|
-
PutScheduleBody,
|
|
466
|
-
PutScheduleResponse,
|
|
467
|
-
DeleteScheduleResponse,
|
|
468
|
-
} from "./interface/schedule";
|
|
469
|
-
|
|
470
|
-
import {
|
|
471
|
-
PostVoteBody,
|
|
472
|
-
PostVoteResponse,
|
|
473
|
-
GetVoteIdfaQuery,
|
|
474
|
-
GetVoteIdfaResponse,
|
|
475
|
-
} from "./interface/vote";
|
|
476
|
-
|
|
477
412
|
import {
|
|
478
413
|
PostFileBody,
|
|
479
414
|
PostFileResponse,
|
|
@@ -481,10 +416,6 @@ import {
|
|
|
481
416
|
DeleteFileResponse,
|
|
482
417
|
} from "./interface/file";
|
|
483
418
|
|
|
484
|
-
import { PostMessageBody, PostMessageResponse, GetMessageResponse } from "./interface/message";
|
|
485
|
-
|
|
486
|
-
import { GetLoggerBrandStatusQuery, GetLoggerBrandStatusResponse } from "./interface/logger";
|
|
487
|
-
|
|
488
419
|
import {
|
|
489
420
|
GetMenuClientResponse,
|
|
490
421
|
GetMenusQuery,
|
|
@@ -2435,6 +2366,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2435
2366
|
);
|
|
2436
2367
|
}
|
|
2437
2368
|
|
|
2369
|
+
/**
|
|
2370
|
+
* PUT /shoppingcart/{id}/checkout - handle ui checkout flow and call taxjar for full tax breakdown
|
|
2371
|
+
*
|
|
2372
|
+
* @param id - Shopping cart ID
|
|
2373
|
+
* @param options - additional request options
|
|
2374
|
+
*/
|
|
2375
|
+
put_shoppingcart_checkout(
|
|
2376
|
+
id: string,
|
|
2377
|
+
options?: RequestOptions
|
|
2378
|
+
): ResponsePromise<PutShoppingcartCheckoutResponse> {
|
|
2379
|
+
return this.request(
|
|
2380
|
+
"shoppingcart",
|
|
2381
|
+
"put_shoppingcart_checkout",
|
|
2382
|
+
"put",
|
|
2383
|
+
`/shoppingcart/${id}/checkout`,
|
|
2384
|
+
null,
|
|
2385
|
+
options
|
|
2386
|
+
);
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2438
2389
|
/**
|
|
2439
2390
|
* POST /shoppingcart/bulk - Get multiple ShoppingCarts
|
|
2440
2391
|
*
|
|
@@ -3351,15 +3302,6 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3351
3302
|
);
|
|
3352
3303
|
}
|
|
3353
3304
|
|
|
3354
|
-
/**
|
|
3355
|
-
* POST /dh/sql
|
|
3356
|
-
*
|
|
3357
|
-
* @param options - additional request options
|
|
3358
|
-
*/
|
|
3359
|
-
post_dh_sql(options?: RequestOptions): ResponsePromise<PostDhSqlResponse> {
|
|
3360
|
-
return this.request("dh", "post_dh_sql", "post", `/dh/sql`, null, options);
|
|
3361
|
-
}
|
|
3362
|
-
|
|
3363
3305
|
/**
|
|
3364
3306
|
* GET /config/appconfig - get appconfig - an object with data for clients including minimum versions apps (boost, thrive, J&J) should be running and a link to the respective app store
|
|
3365
3307
|
*
|
|
@@ -4301,469 +4243,6 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4301
4243
|
);
|
|
4302
4244
|
}
|
|
4303
4245
|
|
|
4304
|
-
/**
|
|
4305
|
-
* POST /loyalty/{id}/enroll/{user_id} - Enroll logged in user in Loyalty program
|
|
4306
|
-
*
|
|
4307
|
-
* @param id - Loyalty Provider id
|
|
4308
|
-
* @param user_id - CompassDigital User id
|
|
4309
|
-
* @param options - additional request options
|
|
4310
|
-
*/
|
|
4311
|
-
post_loyalty_enroll(
|
|
4312
|
-
id: string,
|
|
4313
|
-
user_id: string,
|
|
4314
|
-
options?: {
|
|
4315
|
-
query?: PostLoyaltyEnrollQuery;
|
|
4316
|
-
} & RequestOptions
|
|
4317
|
-
): ResponsePromise<PostLoyaltyEnrollResponse> {
|
|
4318
|
-
return this.request(
|
|
4319
|
-
"loyalty",
|
|
4320
|
-
"post_loyalty_enroll",
|
|
4321
|
-
"post",
|
|
4322
|
-
`/loyalty/${id}/enroll/${user_id}`,
|
|
4323
|
-
null,
|
|
4324
|
-
options
|
|
4325
|
-
);
|
|
4326
|
-
}
|
|
4327
|
-
|
|
4328
|
-
/**
|
|
4329
|
-
* GET /loyalty/{id}/points - Get potential points user could earn from certain event in Loyalty program
|
|
4330
|
-
*
|
|
4331
|
-
* @param id - Loyalty Provider id
|
|
4332
|
-
* @param options - additional request options
|
|
4333
|
-
*/
|
|
4334
|
-
get_loyalty_points(
|
|
4335
|
-
id: string,
|
|
4336
|
-
options: {
|
|
4337
|
-
query: GetLoyaltyPointsQuery;
|
|
4338
|
-
} & RequestOptions
|
|
4339
|
-
): ResponsePromise<GetLoyaltyPointsResponse> {
|
|
4340
|
-
return this.request(
|
|
4341
|
-
"loyalty",
|
|
4342
|
-
"get_loyalty_points",
|
|
4343
|
-
"get",
|
|
4344
|
-
`/loyalty/${id}/points`,
|
|
4345
|
-
null,
|
|
4346
|
-
options
|
|
4347
|
-
);
|
|
4348
|
-
}
|
|
4349
|
-
|
|
4350
|
-
/**
|
|
4351
|
-
* GET /loyalty/{id}/offers/{user_id} - Get offers for the logged in user
|
|
4352
|
-
*
|
|
4353
|
-
* @param id - Loyalty Provider id
|
|
4354
|
-
* @param user_id - CompassDigital User id
|
|
4355
|
-
* @param options - additional request options
|
|
4356
|
-
*/
|
|
4357
|
-
get_loyalty_offers(
|
|
4358
|
-
id: string,
|
|
4359
|
-
user_id: string,
|
|
4360
|
-
options?: RequestOptions
|
|
4361
|
-
): ResponsePromise<GetLoyaltyOffersResponse> {
|
|
4362
|
-
return this.request(
|
|
4363
|
-
"loyalty",
|
|
4364
|
-
"get_loyalty_offers",
|
|
4365
|
-
"get",
|
|
4366
|
-
`/loyalty/${id}/offers/${user_id}`,
|
|
4367
|
-
null,
|
|
4368
|
-
options
|
|
4369
|
-
);
|
|
4370
|
-
}
|
|
4371
|
-
|
|
4372
|
-
/**
|
|
4373
|
-
* GET /loyalty/{id}/enrollmentstatus/{user_id} - Get enrollment status for logged in user
|
|
4374
|
-
*
|
|
4375
|
-
* @param id - Loyalty Provider id
|
|
4376
|
-
* @param user_id - CompassDigital User id
|
|
4377
|
-
* @param options - additional request options
|
|
4378
|
-
*/
|
|
4379
|
-
get_loyalty_enrollmentstatus(
|
|
4380
|
-
id: string,
|
|
4381
|
-
user_id: string,
|
|
4382
|
-
options?: RequestOptions
|
|
4383
|
-
): ResponsePromise<GetLoyaltyEnrollmentstatusResponse> {
|
|
4384
|
-
return this.request(
|
|
4385
|
-
"loyalty",
|
|
4386
|
-
"get_loyalty_enrollmentstatus",
|
|
4387
|
-
"get",
|
|
4388
|
-
`/loyalty/${id}/enrollmentstatus/${user_id}`,
|
|
4389
|
-
null,
|
|
4390
|
-
options
|
|
4391
|
-
);
|
|
4392
|
-
}
|
|
4393
|
-
|
|
4394
|
-
/**
|
|
4395
|
-
* GET /loyalty/{id}/balance/{user_id} - Get loyalty point balance for logged in user
|
|
4396
|
-
*
|
|
4397
|
-
* @param id - Loyalty Provider id
|
|
4398
|
-
* @param user_id - CompassDigital User id
|
|
4399
|
-
* @param options - additional request options
|
|
4400
|
-
*/
|
|
4401
|
-
get_loyalty_balance(
|
|
4402
|
-
id: string,
|
|
4403
|
-
user_id: string,
|
|
4404
|
-
options?: RequestOptions
|
|
4405
|
-
): ResponsePromise<GetLoyaltyBalanceResponse> {
|
|
4406
|
-
return this.request(
|
|
4407
|
-
"loyalty",
|
|
4408
|
-
"get_loyalty_balance",
|
|
4409
|
-
"get",
|
|
4410
|
-
`/loyalty/${id}/balance/${user_id}`,
|
|
4411
|
-
null,
|
|
4412
|
-
options
|
|
4413
|
-
);
|
|
4414
|
-
}
|
|
4415
|
-
|
|
4416
|
-
/**
|
|
4417
|
-
* GET /loyalty/{id}/opportunities/{user_id} - Get earning opportunities for the logged in user
|
|
4418
|
-
*
|
|
4419
|
-
* @param id - Loyalty Provider id
|
|
4420
|
-
* @param user_id - CompassDigital User id
|
|
4421
|
-
* @param options - additional request options
|
|
4422
|
-
*/
|
|
4423
|
-
get_loyalty_opportunities(
|
|
4424
|
-
id: string,
|
|
4425
|
-
user_id: string,
|
|
4426
|
-
options?: {
|
|
4427
|
-
query?: GetLoyaltyOpportunitiesQuery;
|
|
4428
|
-
} & RequestOptions
|
|
4429
|
-
): ResponsePromise<GetLoyaltyOpportunitiesResponse> {
|
|
4430
|
-
return this.request(
|
|
4431
|
-
"loyalty",
|
|
4432
|
-
"get_loyalty_opportunities",
|
|
4433
|
-
"get",
|
|
4434
|
-
`/loyalty/${id}/opportunities/${user_id}`,
|
|
4435
|
-
null,
|
|
4436
|
-
options
|
|
4437
|
-
);
|
|
4438
|
-
}
|
|
4439
|
-
|
|
4440
|
-
/**
|
|
4441
|
-
* POST /loyalty/{id}/opportunities/{user_id} - Record an event for the logged in user
|
|
4442
|
-
*
|
|
4443
|
-
* @param id - Loyalty Provider id
|
|
4444
|
-
* @param user_id - CompassDigital User id
|
|
4445
|
-
* @param options - additional request options
|
|
4446
|
-
*/
|
|
4447
|
-
post_loyalty_opportunities(
|
|
4448
|
-
id: string,
|
|
4449
|
-
user_id: string,
|
|
4450
|
-
options: {
|
|
4451
|
-
query: PostLoyaltyOpportunitiesQuery;
|
|
4452
|
-
} & RequestOptions
|
|
4453
|
-
): ResponsePromise<PostLoyaltyOpportunitiesResponse> {
|
|
4454
|
-
return this.request(
|
|
4455
|
-
"loyalty",
|
|
4456
|
-
"post_loyalty_opportunities",
|
|
4457
|
-
"post",
|
|
4458
|
-
`/loyalty/${id}/opportunities/${user_id}`,
|
|
4459
|
-
null,
|
|
4460
|
-
options
|
|
4461
|
-
);
|
|
4462
|
-
}
|
|
4463
|
-
|
|
4464
|
-
/**
|
|
4465
|
-
* GET /loyalty/{id}/rewards/{user_id} - Get rewards available for the logged in user
|
|
4466
|
-
*
|
|
4467
|
-
* @param id - Loyalty Provider id
|
|
4468
|
-
* @param user_id - CompassDigital User id
|
|
4469
|
-
* @param options - additional request options
|
|
4470
|
-
*/
|
|
4471
|
-
get_loyalty_rewards(
|
|
4472
|
-
id: string,
|
|
4473
|
-
user_id: string,
|
|
4474
|
-
options?: RequestOptions
|
|
4475
|
-
): ResponsePromise<GetLoyaltyRewardsResponse> {
|
|
4476
|
-
return this.request(
|
|
4477
|
-
"loyalty",
|
|
4478
|
-
"get_loyalty_rewards",
|
|
4479
|
-
"get",
|
|
4480
|
-
`/loyalty/${id}/rewards/${user_id}`,
|
|
4481
|
-
null,
|
|
4482
|
-
options
|
|
4483
|
-
);
|
|
4484
|
-
}
|
|
4485
|
-
|
|
4486
|
-
/**
|
|
4487
|
-
* GET /loyalty/{id}/coupons/{user_id} - Get coupons available for the logged in user
|
|
4488
|
-
*
|
|
4489
|
-
* @param id - Loyalty Provider id
|
|
4490
|
-
* @param user_id - CompassDigital User id
|
|
4491
|
-
* @param options - additional request options
|
|
4492
|
-
*/
|
|
4493
|
-
get_loyalty_coupons(
|
|
4494
|
-
id: string,
|
|
4495
|
-
user_id: string,
|
|
4496
|
-
options?: RequestOptions
|
|
4497
|
-
): ResponsePromise<GetLoyaltyCouponsResponse> {
|
|
4498
|
-
return this.request(
|
|
4499
|
-
"loyalty",
|
|
4500
|
-
"get_loyalty_coupons",
|
|
4501
|
-
"get",
|
|
4502
|
-
`/loyalty/${id}/coupons/${user_id}`,
|
|
4503
|
-
null,
|
|
4504
|
-
options
|
|
4505
|
-
);
|
|
4506
|
-
}
|
|
4507
|
-
|
|
4508
|
-
/**
|
|
4509
|
-
* GET /loyalty/{id}/orderpoints/{user_id} - Get potential loyalty point points for an order based on amount.
|
|
4510
|
-
*
|
|
4511
|
-
* @param id - Loyalty Provider id
|
|
4512
|
-
* @param user_id - CompassDigital User id
|
|
4513
|
-
* @param options - additional request options
|
|
4514
|
-
*/
|
|
4515
|
-
get_loyalty_orderpoints(
|
|
4516
|
-
id: string,
|
|
4517
|
-
user_id: string,
|
|
4518
|
-
options: {
|
|
4519
|
-
query: GetLoyaltyOrderpointsQuery;
|
|
4520
|
-
} & RequestOptions
|
|
4521
|
-
): ResponsePromise<GetLoyaltyOrderpointsResponse> {
|
|
4522
|
-
return this.request(
|
|
4523
|
-
"loyalty",
|
|
4524
|
-
"get_loyalty_orderpoints",
|
|
4525
|
-
"get",
|
|
4526
|
-
`/loyalty/${id}/orderpoints/${user_id}`,
|
|
4527
|
-
null,
|
|
4528
|
-
options
|
|
4529
|
-
);
|
|
4530
|
-
}
|
|
4531
|
-
|
|
4532
|
-
/**
|
|
4533
|
-
* POST /loyalty/{id}/orderpoints/{user_id} - Get potential loyalty point points for a order based on amount and items
|
|
4534
|
-
*
|
|
4535
|
-
* @param id - Loyalty Provider id
|
|
4536
|
-
* @param user_id - CompassDigital User id
|
|
4537
|
-
* @param body
|
|
4538
|
-
* @param options - additional request options
|
|
4539
|
-
*/
|
|
4540
|
-
post_loyalty_orderpoints(
|
|
4541
|
-
id: string,
|
|
4542
|
-
user_id: string,
|
|
4543
|
-
body: PostLoyaltyOrderpointsBody,
|
|
4544
|
-
options?: RequestOptions
|
|
4545
|
-
): ResponsePromise<PostLoyaltyOrderpointsResponse> {
|
|
4546
|
-
return this.request(
|
|
4547
|
-
"loyalty",
|
|
4548
|
-
"post_loyalty_orderpoints",
|
|
4549
|
-
"post",
|
|
4550
|
-
`/loyalty/${id}/orderpoints/${user_id}`,
|
|
4551
|
-
body,
|
|
4552
|
-
options
|
|
4553
|
-
);
|
|
4554
|
-
}
|
|
4555
|
-
|
|
4556
|
-
/**
|
|
4557
|
-
* POST /loyalty/{id}/purchase/{user_id} - Record purchase event
|
|
4558
|
-
*
|
|
4559
|
-
* @param id - Loyalty Provider id
|
|
4560
|
-
* @param user_id - CompassDigital User id
|
|
4561
|
-
* @param body
|
|
4562
|
-
* @param options - additional request options
|
|
4563
|
-
*/
|
|
4564
|
-
post_loyalty_purchase(
|
|
4565
|
-
id: string,
|
|
4566
|
-
user_id: string,
|
|
4567
|
-
body: PostLoyaltyPurchaseBody,
|
|
4568
|
-
options?: {
|
|
4569
|
-
query?: PostLoyaltyPurchaseQuery;
|
|
4570
|
-
} & RequestOptions
|
|
4571
|
-
): ResponsePromise<PostLoyaltyPurchaseResponse> {
|
|
4572
|
-
return this.request(
|
|
4573
|
-
"loyalty",
|
|
4574
|
-
"post_loyalty_purchase",
|
|
4575
|
-
"post",
|
|
4576
|
-
`/loyalty/${id}/purchase/${user_id}`,
|
|
4577
|
-
body,
|
|
4578
|
-
options
|
|
4579
|
-
);
|
|
4580
|
-
}
|
|
4581
|
-
|
|
4582
|
-
/**
|
|
4583
|
-
* POST /loyalty/{id}/buyreward/{user_id} - Redeem rewards to coupons
|
|
4584
|
-
*
|
|
4585
|
-
* @param id - Loyalty Provider id
|
|
4586
|
-
* @param user_id - CompassDigital User id
|
|
4587
|
-
* @param body
|
|
4588
|
-
* @param options - additional request options
|
|
4589
|
-
*/
|
|
4590
|
-
post_loyalty_buyreward(
|
|
4591
|
-
id: string,
|
|
4592
|
-
user_id: string,
|
|
4593
|
-
body: PostLoyaltyBuyrewardBody,
|
|
4594
|
-
options?: {
|
|
4595
|
-
query?: PostLoyaltyBuyrewardQuery;
|
|
4596
|
-
} & RequestOptions
|
|
4597
|
-
): ResponsePromise<PostLoyaltyBuyrewardResponse> {
|
|
4598
|
-
return this.request(
|
|
4599
|
-
"loyalty",
|
|
4600
|
-
"post_loyalty_buyreward",
|
|
4601
|
-
"post",
|
|
4602
|
-
`/loyalty/${id}/buyreward/${user_id}`,
|
|
4603
|
-
body,
|
|
4604
|
-
options
|
|
4605
|
-
);
|
|
4606
|
-
}
|
|
4607
|
-
|
|
4608
|
-
/**
|
|
4609
|
-
* GET /loyalty/{id}/history/{user_id} - Get history of loyalty transactions for user
|
|
4610
|
-
*
|
|
4611
|
-
* @param id - Loyalty Provider id
|
|
4612
|
-
* @param user_id - CompassDigital User id
|
|
4613
|
-
* @param options - additional request options
|
|
4614
|
-
*/
|
|
4615
|
-
get_loyalty_history(
|
|
4616
|
-
id: string,
|
|
4617
|
-
user_id: string,
|
|
4618
|
-
options?: {
|
|
4619
|
-
query?: GetLoyaltyHistoryQuery;
|
|
4620
|
-
} & RequestOptions
|
|
4621
|
-
): ResponsePromise<GetLoyaltyHistoryResponse> {
|
|
4622
|
-
return this.request(
|
|
4623
|
-
"loyalty",
|
|
4624
|
-
"get_loyalty_history",
|
|
4625
|
-
"get",
|
|
4626
|
-
`/loyalty/${id}/history/${user_id}`,
|
|
4627
|
-
null,
|
|
4628
|
-
options
|
|
4629
|
-
);
|
|
4630
|
-
}
|
|
4631
|
-
|
|
4632
|
-
/**
|
|
4633
|
-
* GET /loyalty/{id}/coupon/{user_id}/{coupon_id} - get coupon's information
|
|
4634
|
-
*
|
|
4635
|
-
* @param id - Loyalty Provider id
|
|
4636
|
-
* @param user_id - CompassDigital User id
|
|
4637
|
-
* @param coupon_id - Coupon code to get coupon information
|
|
4638
|
-
* @param options - additional request options
|
|
4639
|
-
*/
|
|
4640
|
-
get_loyalty_coupon(
|
|
4641
|
-
id: string,
|
|
4642
|
-
user_id: string,
|
|
4643
|
-
coupon_id: string,
|
|
4644
|
-
options?: RequestOptions
|
|
4645
|
-
): ResponsePromise<GetLoyaltyCouponResponse> {
|
|
4646
|
-
return this.request(
|
|
4647
|
-
"loyalty",
|
|
4648
|
-
"get_loyalty_coupon",
|
|
4649
|
-
"get",
|
|
4650
|
-
`/loyalty/${id}/coupon/${user_id}/${coupon_id}`,
|
|
4651
|
-
null,
|
|
4652
|
-
options
|
|
4653
|
-
);
|
|
4654
|
-
}
|
|
4655
|
-
|
|
4656
|
-
/**
|
|
4657
|
-
* PATCH /loyalty/{id}/coupon/{user_id}/{coupon_id} - Update coupon's status
|
|
4658
|
-
*
|
|
4659
|
-
* @param id - Loyalty Provider id
|
|
4660
|
-
* @param user_id - CompassDigital User id
|
|
4661
|
-
* @param coupon_id - Coupon code to update
|
|
4662
|
-
* @param body
|
|
4663
|
-
* @param options - additional request options
|
|
4664
|
-
*/
|
|
4665
|
-
patch_loyalty_coupon(
|
|
4666
|
-
id: string,
|
|
4667
|
-
user_id: string,
|
|
4668
|
-
coupon_id: string,
|
|
4669
|
-
body: PatchLoyaltyCouponBody,
|
|
4670
|
-
options?: RequestOptions
|
|
4671
|
-
): ResponsePromise<PatchLoyaltyCouponResponse> {
|
|
4672
|
-
return this.request(
|
|
4673
|
-
"loyalty",
|
|
4674
|
-
"patch_loyalty_coupon",
|
|
4675
|
-
"patch",
|
|
4676
|
-
`/loyalty/${id}/coupon/${user_id}/${coupon_id}`,
|
|
4677
|
-
body,
|
|
4678
|
-
options
|
|
4679
|
-
);
|
|
4680
|
-
}
|
|
4681
|
-
|
|
4682
|
-
/**
|
|
4683
|
-
* GET /loyalty/{id}/search - Search CDL user id by internal 500friends id
|
|
4684
|
-
*
|
|
4685
|
-
* @param id - Loyalty Provider id
|
|
4686
|
-
* @param options - additional request options
|
|
4687
|
-
*/
|
|
4688
|
-
get_loyalty_search(
|
|
4689
|
-
id: string,
|
|
4690
|
-
options: {
|
|
4691
|
-
query: GetLoyaltySearchQuery;
|
|
4692
|
-
} & RequestOptions
|
|
4693
|
-
): ResponsePromise<GetLoyaltySearchResponse> {
|
|
4694
|
-
return this.request(
|
|
4695
|
-
"loyalty",
|
|
4696
|
-
"get_loyalty_search",
|
|
4697
|
-
"get",
|
|
4698
|
-
`/loyalty/${id}/search`,
|
|
4699
|
-
null,
|
|
4700
|
-
options
|
|
4701
|
-
);
|
|
4702
|
-
}
|
|
4703
|
-
|
|
4704
|
-
/**
|
|
4705
|
-
* GET /loyalty/{id}/users - Get all loyalty users updated after specific date
|
|
4706
|
-
*
|
|
4707
|
-
* @param id - Loyalty Provider id
|
|
4708
|
-
* @param options - additional request options
|
|
4709
|
-
*/
|
|
4710
|
-
get_loyalty_users(
|
|
4711
|
-
id: string,
|
|
4712
|
-
options: {
|
|
4713
|
-
query: GetLoyaltyUsersQuery;
|
|
4714
|
-
} & RequestOptions
|
|
4715
|
-
): ResponsePromise<GetLoyaltyUsersResponse> {
|
|
4716
|
-
return this.request(
|
|
4717
|
-
"loyalty",
|
|
4718
|
-
"get_loyalty_users",
|
|
4719
|
-
"get",
|
|
4720
|
-
`/loyalty/${id}/users`,
|
|
4721
|
-
null,
|
|
4722
|
-
options
|
|
4723
|
-
);
|
|
4724
|
-
}
|
|
4725
|
-
|
|
4726
|
-
/**
|
|
4727
|
-
* GET /loyalty/{id}/events - Get all loyalty events updated after specific date
|
|
4728
|
-
*
|
|
4729
|
-
* @param id - Loyalty Provider id
|
|
4730
|
-
* @param options - additional request options
|
|
4731
|
-
*/
|
|
4732
|
-
get_loyalty_events(
|
|
4733
|
-
id: string,
|
|
4734
|
-
options: {
|
|
4735
|
-
query: GetLoyaltyEventsQuery;
|
|
4736
|
-
} & RequestOptions
|
|
4737
|
-
): ResponsePromise<GetLoyaltyEventsResponse> {
|
|
4738
|
-
return this.request(
|
|
4739
|
-
"loyalty",
|
|
4740
|
-
"get_loyalty_events",
|
|
4741
|
-
"get",
|
|
4742
|
-
`/loyalty/${id}/events`,
|
|
4743
|
-
null,
|
|
4744
|
-
options
|
|
4745
|
-
);
|
|
4746
|
-
}
|
|
4747
|
-
|
|
4748
|
-
/**
|
|
4749
|
-
* GET /brand/{id}
|
|
4750
|
-
*
|
|
4751
|
-
* @param id - TODO: add parameter to swagger.json
|
|
4752
|
-
* @param options - additional request options
|
|
4753
|
-
*/
|
|
4754
|
-
get_brand(id: string, options?: RequestOptions): ResponsePromise<GetBrandResponse> {
|
|
4755
|
-
return this.request("brand", "get_brand", "get", `/brand/${id}`, null, options);
|
|
4756
|
-
}
|
|
4757
|
-
|
|
4758
|
-
/**
|
|
4759
|
-
* GET /brand
|
|
4760
|
-
*
|
|
4761
|
-
* @param options - additional request options
|
|
4762
|
-
*/
|
|
4763
|
-
get_brands(options?: RequestOptions): ResponsePromise<GetBrandsResponse> {
|
|
4764
|
-
return this.request("brand", "get_brands", "get", `/brand`, null, options);
|
|
4765
|
-
}
|
|
4766
|
-
|
|
4767
4246
|
/**
|
|
4768
4247
|
* GET /calendar/{id}
|
|
4769
4248
|
*
|
|
@@ -4862,152 +4341,6 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4862
4341
|
);
|
|
4863
4342
|
}
|
|
4864
4343
|
|
|
4865
|
-
/**
|
|
4866
|
-
* POST /delivery/order - make reservation
|
|
4867
|
-
*
|
|
4868
|
-
* @param body - reservation
|
|
4869
|
-
* @param options - additional request options
|
|
4870
|
-
*/
|
|
4871
|
-
post_delivery_order(
|
|
4872
|
-
body: PostDeliveryOrderBody,
|
|
4873
|
-
options?: RequestOptions
|
|
4874
|
-
): ResponsePromise<PostDeliveryOrderResponse> {
|
|
4875
|
-
return this.request(
|
|
4876
|
-
"delivery",
|
|
4877
|
-
"post_delivery_order",
|
|
4878
|
-
"post",
|
|
4879
|
-
`/delivery/order`,
|
|
4880
|
-
body,
|
|
4881
|
-
options
|
|
4882
|
-
);
|
|
4883
|
-
}
|
|
4884
|
-
|
|
4885
|
-
/**
|
|
4886
|
-
* PATCH /delivery/order/{order_id} - confirm order
|
|
4887
|
-
*
|
|
4888
|
-
* @param order_id - TODO: add parameter to swagger.json
|
|
4889
|
-
* @param options - additional request options
|
|
4890
|
-
*/
|
|
4891
|
-
patch_delivery_order(
|
|
4892
|
-
order_id: string,
|
|
4893
|
-
options?: RequestOptions
|
|
4894
|
-
): ResponsePromise<PatchDeliveryOrderResponse> {
|
|
4895
|
-
return this.request(
|
|
4896
|
-
"delivery",
|
|
4897
|
-
"patch_delivery_order",
|
|
4898
|
-
"patch",
|
|
4899
|
-
`/delivery/order/${order_id}`,
|
|
4900
|
-
null,
|
|
4901
|
-
options
|
|
4902
|
-
);
|
|
4903
|
-
}
|
|
4904
|
-
|
|
4905
|
-
/**
|
|
4906
|
-
* GET /delivery/order/{order_id} - get order
|
|
4907
|
-
*
|
|
4908
|
-
* @param order_id - TODO: add parameter to swagger.json
|
|
4909
|
-
* @param options - additional request options
|
|
4910
|
-
*/
|
|
4911
|
-
get_delivery_order(
|
|
4912
|
-
order_id: string,
|
|
4913
|
-
options?: RequestOptions
|
|
4914
|
-
): ResponsePromise<GetDeliveryOrderResponse> {
|
|
4915
|
-
return this.request(
|
|
4916
|
-
"delivery",
|
|
4917
|
-
"get_delivery_order",
|
|
4918
|
-
"get",
|
|
4919
|
-
`/delivery/order/${order_id}`,
|
|
4920
|
-
null,
|
|
4921
|
-
options
|
|
4922
|
-
);
|
|
4923
|
-
}
|
|
4924
|
-
|
|
4925
|
-
/**
|
|
4926
|
-
* POST /schedule - Create a new schedule
|
|
4927
|
-
*
|
|
4928
|
-
* @param body
|
|
4929
|
-
* @param options - additional request options
|
|
4930
|
-
*/
|
|
4931
|
-
post_schedule(
|
|
4932
|
-
body: PostScheduleBody,
|
|
4933
|
-
options?: RequestOptions
|
|
4934
|
-
): ResponsePromise<PostScheduleResponse> {
|
|
4935
|
-
return this.request("schedule", "post_schedule", "post", `/schedule`, body, options);
|
|
4936
|
-
}
|
|
4937
|
-
|
|
4938
|
-
/**
|
|
4939
|
-
* GET /schedule - Get schedule
|
|
4940
|
-
*
|
|
4941
|
-
* @param options - additional request options
|
|
4942
|
-
*/
|
|
4943
|
-
get_schedules(
|
|
4944
|
-
options: {
|
|
4945
|
-
query: GetSchedulesQuery;
|
|
4946
|
-
} & RequestOptions
|
|
4947
|
-
): ResponsePromise<GetSchedulesResponse> {
|
|
4948
|
-
return this.request("schedule", "get_schedules", "get", `/schedule`, null, options);
|
|
4949
|
-
}
|
|
4950
|
-
|
|
4951
|
-
/**
|
|
4952
|
-
* GET /schedule/{id} - Get an individual schedule
|
|
4953
|
-
*
|
|
4954
|
-
* @param id - schedule id
|
|
4955
|
-
* @param options - additional request options
|
|
4956
|
-
*/
|
|
4957
|
-
get_schedule(id: string, options?: RequestOptions): ResponsePromise<GetScheduleResponse> {
|
|
4958
|
-
return this.request("schedule", "get_schedule", "get", `/schedule/${id}`, null, options);
|
|
4959
|
-
}
|
|
4960
|
-
|
|
4961
|
-
/**
|
|
4962
|
-
* PUT /schedule/{id} - Update a schedule
|
|
4963
|
-
*
|
|
4964
|
-
* @param id - Id of a schedule
|
|
4965
|
-
* @param body
|
|
4966
|
-
* @param options - additional request options
|
|
4967
|
-
*/
|
|
4968
|
-
put_schedule(
|
|
4969
|
-
id: string,
|
|
4970
|
-
body: PutScheduleBody,
|
|
4971
|
-
options?: RequestOptions
|
|
4972
|
-
): ResponsePromise<PutScheduleResponse> {
|
|
4973
|
-
return this.request("schedule", "put_schedule", "put", `/schedule/${id}`, body, options);
|
|
4974
|
-
}
|
|
4975
|
-
|
|
4976
|
-
/**
|
|
4977
|
-
* DELETE /schedule/{id} - Delete schedule
|
|
4978
|
-
*
|
|
4979
|
-
* @param id - Id of a schedule
|
|
4980
|
-
* @param options - additional request options
|
|
4981
|
-
*/
|
|
4982
|
-
delete_schedule(id: string, options?: RequestOptions): ResponsePromise<DeleteScheduleResponse> {
|
|
4983
|
-
return this.request("schedule", "delete_schedule", "delete", `/schedule/${id}`, null, options);
|
|
4984
|
-
}
|
|
4985
|
-
|
|
4986
|
-
/**
|
|
4987
|
-
* POST /vote - Submit a vote for an item
|
|
4988
|
-
*
|
|
4989
|
-
* @param body
|
|
4990
|
-
* @param options - additional request options
|
|
4991
|
-
*/
|
|
4992
|
-
post_vote(body: PostVoteBody, options?: RequestOptions): ResponsePromise<PostVoteResponse> {
|
|
4993
|
-
return this.request("vote", "post_vote", "post", `/vote`, body, options);
|
|
4994
|
-
}
|
|
4995
|
-
|
|
4996
|
-
/**
|
|
4997
|
-
* GET /vote/idfa/{idfa} - Get votes for an idfa
|
|
4998
|
-
*
|
|
4999
|
-
* @param idfa - TODO: add parameter to swagger.json
|
|
5000
|
-
* @param options - additional request options
|
|
5001
|
-
*/
|
|
5002
|
-
get_vote_idfa(
|
|
5003
|
-
idfa: string,
|
|
5004
|
-
options?: {
|
|
5005
|
-
query?: GetVoteIdfaQuery;
|
|
5006
|
-
} & RequestOptions
|
|
5007
|
-
): ResponsePromise<GetVoteIdfaResponse> {
|
|
5008
|
-
return this.request("vote", "get_vote_idfa", "get", `/vote/idfa/${idfa}`, null, options);
|
|
5009
|
-
}
|
|
5010
|
-
|
|
5011
4344
|
/**
|
|
5012
4345
|
* POST /file - Upload a file to CDL S3
|
|
5013
4346
|
*
|
|
@@ -5028,51 +4361,6 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
5028
4361
|
return this.request("file", "delete_file", "delete", `/file`, body, options);
|
|
5029
4362
|
}
|
|
5030
4363
|
|
|
5031
|
-
/**
|
|
5032
|
-
* POST /message - Create a Message
|
|
5033
|
-
*
|
|
5034
|
-
* @param body - Message object that needs to be created
|
|
5035
|
-
* @param options - additional request options
|
|
5036
|
-
*/
|
|
5037
|
-
post_message(
|
|
5038
|
-
body: PostMessageBody,
|
|
5039
|
-
options?: RequestOptions
|
|
5040
|
-
): ResponsePromise<PostMessageResponse> {
|
|
5041
|
-
return this.request("message", "post_message", "post", `/message`, body, options);
|
|
5042
|
-
}
|
|
5043
|
-
|
|
5044
|
-
/**
|
|
5045
|
-
* GET /message/{id} - Get a Message
|
|
5046
|
-
*
|
|
5047
|
-
* @param id - Message CDL encoded id
|
|
5048
|
-
* @param options - additional request options
|
|
5049
|
-
*/
|
|
5050
|
-
get_message(id: string, options?: RequestOptions): ResponsePromise<GetMessageResponse> {
|
|
5051
|
-
return this.request("message", "get_message", "get", `/message/${id}`, null, options);
|
|
5052
|
-
}
|
|
5053
|
-
|
|
5054
|
-
/**
|
|
5055
|
-
* GET /logger/{id}/brand/status - Get status changes of all brands
|
|
5056
|
-
*
|
|
5057
|
-
* @param id - action
|
|
5058
|
-
* @param options - additional request options
|
|
5059
|
-
*/
|
|
5060
|
-
get_logger_brand_status(
|
|
5061
|
-
id: string,
|
|
5062
|
-
options?: {
|
|
5063
|
-
query?: GetLoggerBrandStatusQuery;
|
|
5064
|
-
} & RequestOptions
|
|
5065
|
-
): ResponsePromise<GetLoggerBrandStatusResponse> {
|
|
5066
|
-
return this.request(
|
|
5067
|
-
"logger",
|
|
5068
|
-
"get_logger_brand_status",
|
|
5069
|
-
"get",
|
|
5070
|
-
`/logger/${id}/brand/status`,
|
|
5071
|
-
null,
|
|
5072
|
-
options
|
|
5073
|
-
);
|
|
5074
|
-
}
|
|
5075
|
-
|
|
5076
4364
|
/**
|
|
5077
4365
|
* GET /menu/client/{client_id} - Get menu client
|
|
5078
4366
|
*
|