@compassdigital/sdk.typescript 4.108.0 → 4.110.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 +115 -12
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +125 -10
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts +0 -10
- package/lib/interface/ai.d.ts.map +1 -1
- package/lib/interface/auth.d.ts +5 -22
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +88 -69
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +174 -14
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/discount.d.ts +25 -29
- package/lib/interface/discount.d.ts.map +1 -1
- package/lib/interface/frictionless.d.ts +0 -25
- package/lib/interface/frictionless.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +14 -2
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +59 -0
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/review.d.ts +0 -8
- package/lib/interface/review.d.ts.map +1 -1
- package/lib/interface/search.d.ts +7 -7
- package/lib/interface/search.d.ts.map +1 -1
- package/lib/interface/tax.d.ts +0 -6
- package/lib/interface/tax.d.ts.map +1 -1
- package/lib/interface/user.d.ts +10 -1
- package/lib/interface/user.d.ts.map +1 -1
- package/manifest.json +36 -9
- package/package.json +2 -2
- package/pipeline.yml +1 -0
- package/src/index.ts +304 -18
- package/src/interface/ai.ts +0 -12
- package/src/interface/auth.ts +6 -30
- package/src/interface/centricos.ts +146 -108
- package/src/interface/consumer.ts +277 -23
- package/src/interface/discount.ts +32 -35
- package/src/interface/frictionless.ts +0 -47
- package/src/interface/menu.ts +14 -2
- package/src/interface/promo.ts +73 -0
- package/src/interface/review.ts +0 -11
- package/src/interface/search.ts +8 -8
- package/src/interface/tax.ts +0 -6
- package/src/interface/user.ts +14 -2
package/src/index.ts
CHANGED
|
@@ -296,8 +296,12 @@ import {
|
|
|
296
296
|
GetPromoCompanyLocationGroupResponse,
|
|
297
297
|
PostPromoValidateVoucherBody,
|
|
298
298
|
PostPromoValidateVoucherResponse,
|
|
299
|
+
PostPromoValidateVouchersBody,
|
|
300
|
+
PostPromoValidateVouchersResponse,
|
|
299
301
|
PostPromoRedeemVoucherBody,
|
|
300
302
|
PostPromoRedeemVoucherResponse,
|
|
303
|
+
PostPromoRedeemVouchersBody,
|
|
304
|
+
PostPromoRedeemVouchersResponse,
|
|
301
305
|
PostPromoVoucherBody,
|
|
302
306
|
PostPromoVoucherResponse,
|
|
303
307
|
PutPromoVoucherBody,
|
|
@@ -1065,6 +1069,21 @@ import {
|
|
|
1065
1069
|
PostReviewOrderItemsResponse,
|
|
1066
1070
|
PostHomePageBody,
|
|
1067
1071
|
PostHomePageResponse,
|
|
1072
|
+
GetConsumerFrictionlessCheckinQuery,
|
|
1073
|
+
GetConsumerFrictionlessCheckinResponse,
|
|
1074
|
+
PostFrictionlessQrcodeBody,
|
|
1075
|
+
PostFrictionlessQrcodeResponse,
|
|
1076
|
+
PostConsumerForgotPasswordBody,
|
|
1077
|
+
PostConsumerForgotPasswordResponse,
|
|
1078
|
+
PostConsumerAddSecretResponse,
|
|
1079
|
+
GetConsumerLocationGroupQuery,
|
|
1080
|
+
GetConsumerLocationGroupResponse$0,
|
|
1081
|
+
GetConsumerLocationMultigroupQuery,
|
|
1082
|
+
GetConsumerLocationMultigroupResponse,
|
|
1083
|
+
GetConsumerActiveMenusQuery,
|
|
1084
|
+
GetConsumerActiveMenusResponse,
|
|
1085
|
+
GetConsumerMenuQuery,
|
|
1086
|
+
GetConsumerMenuResponse$0,
|
|
1068
1087
|
} from './interface/consumer';
|
|
1069
1088
|
|
|
1070
1089
|
import {
|
|
@@ -1096,14 +1115,18 @@ import {
|
|
|
1096
1115
|
GetSiteDevicesResponse,
|
|
1097
1116
|
GetCentricosSitesQuery,
|
|
1098
1117
|
GetCentricosSitesResponse,
|
|
1118
|
+
GetSitesFromPriceLevelQuery,
|
|
1119
|
+
GetSitesFromPriceLevelResponse,
|
|
1099
1120
|
GetReviewOrderItemsQuery,
|
|
1100
1121
|
GetReviewOrderItemsResponse,
|
|
1101
1122
|
GetCentricosStationQuery,
|
|
1102
1123
|
GetCentricosStationResponse,
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1124
|
+
PutCentricosDiscountVoucherifyBody,
|
|
1125
|
+
PutCentricosDiscountVoucherifyResponse,
|
|
1126
|
+
PutCentricosDiscountVoucherifyPublishResponse,
|
|
1127
|
+
DeleteCentricosDiscountsVoucherifyResponse,
|
|
1128
|
+
GetCentricosDiscountQuery,
|
|
1129
|
+
GetCentricosDiscountResponse,
|
|
1107
1130
|
} from './interface/centricos';
|
|
1108
1131
|
|
|
1109
1132
|
import {
|
|
@@ -3708,6 +3731,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3708
3731
|
);
|
|
3709
3732
|
}
|
|
3710
3733
|
|
|
3734
|
+
/**
|
|
3735
|
+
* POST /promo/validate/vouchers - Validate multiple promo vouchers
|
|
3736
|
+
*
|
|
3737
|
+
* @param body
|
|
3738
|
+
* @param options - additional request options
|
|
3739
|
+
*/
|
|
3740
|
+
post_promo_validate_vouchers(
|
|
3741
|
+
body: PostPromoValidateVouchersBody,
|
|
3742
|
+
options?: RequestOptions,
|
|
3743
|
+
): ResponsePromise<PostPromoValidateVouchersResponse> {
|
|
3744
|
+
return this.request(
|
|
3745
|
+
'promo',
|
|
3746
|
+
'/promo/validate/vouchers',
|
|
3747
|
+
'post',
|
|
3748
|
+
`/promo/validate/vouchers`,
|
|
3749
|
+
body,
|
|
3750
|
+
options,
|
|
3751
|
+
);
|
|
3752
|
+
}
|
|
3753
|
+
|
|
3711
3754
|
/**
|
|
3712
3755
|
* POST /promo/redeem/voucher - Redeem a promo voucher
|
|
3713
3756
|
*
|
|
@@ -3728,6 +3771,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3728
3771
|
);
|
|
3729
3772
|
}
|
|
3730
3773
|
|
|
3774
|
+
/**
|
|
3775
|
+
* POST /promo/redeem/vouchers - Redeem multiple promo vouchers
|
|
3776
|
+
*
|
|
3777
|
+
* @param body
|
|
3778
|
+
* @param options - additional request options
|
|
3779
|
+
*/
|
|
3780
|
+
post_promo_redeem_vouchers(
|
|
3781
|
+
body: PostPromoRedeemVouchersBody,
|
|
3782
|
+
options?: RequestOptions,
|
|
3783
|
+
): ResponsePromise<PostPromoRedeemVouchersResponse> {
|
|
3784
|
+
return this.request(
|
|
3785
|
+
'promo',
|
|
3786
|
+
'/promo/redeem/vouchers',
|
|
3787
|
+
'post',
|
|
3788
|
+
`/promo/redeem/vouchers`,
|
|
3789
|
+
body,
|
|
3790
|
+
options,
|
|
3791
|
+
);
|
|
3792
|
+
}
|
|
3793
|
+
|
|
3731
3794
|
/**
|
|
3732
3795
|
* POST /promo/voucher - Create new voucher
|
|
3733
3796
|
*
|
|
@@ -11262,6 +11325,167 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11262
11325
|
return this.request('consumer', '/consumer/home', 'post', `/consumer/home`, body, options);
|
|
11263
11326
|
}
|
|
11264
11327
|
|
|
11328
|
+
/**
|
|
11329
|
+
* GET /consumer/frictionless/checkin/{id} - Allow a user to check in to a location using frictionless technology
|
|
11330
|
+
*
|
|
11331
|
+
* @param id
|
|
11332
|
+
* @param options - additional request options
|
|
11333
|
+
*/
|
|
11334
|
+
get_consumer_frictionless_checkin(
|
|
11335
|
+
id: string,
|
|
11336
|
+
options?: {
|
|
11337
|
+
query?: GetConsumerFrictionlessCheckinQuery;
|
|
11338
|
+
} & RequestOptions,
|
|
11339
|
+
): ResponsePromise<GetConsumerFrictionlessCheckinResponse> {
|
|
11340
|
+
return this.request(
|
|
11341
|
+
'consumer',
|
|
11342
|
+
'/consumer/frictionless/checkin/{id}',
|
|
11343
|
+
'get',
|
|
11344
|
+
`/consumer/frictionless/checkin/${id}`,
|
|
11345
|
+
null,
|
|
11346
|
+
options,
|
|
11347
|
+
);
|
|
11348
|
+
}
|
|
11349
|
+
|
|
11350
|
+
/**
|
|
11351
|
+
* POST /consumer/frictionless/qrCode - Create a QR code for a frictionless checkin
|
|
11352
|
+
*
|
|
11353
|
+
* @param body
|
|
11354
|
+
* @param options - additional request options
|
|
11355
|
+
*/
|
|
11356
|
+
post_frictionless_qrcode(
|
|
11357
|
+
body: PostFrictionlessQrcodeBody,
|
|
11358
|
+
options?: RequestOptions,
|
|
11359
|
+
): ResponsePromise<PostFrictionlessQrcodeResponse> {
|
|
11360
|
+
return this.request(
|
|
11361
|
+
'consumer',
|
|
11362
|
+
'/consumer/frictionless/qrCode',
|
|
11363
|
+
'post',
|
|
11364
|
+
`/consumer/frictionless/qrCode`,
|
|
11365
|
+
body,
|
|
11366
|
+
options,
|
|
11367
|
+
);
|
|
11368
|
+
}
|
|
11369
|
+
|
|
11370
|
+
/**
|
|
11371
|
+
* POST /consumer/forgotpassword - Forgot password
|
|
11372
|
+
*
|
|
11373
|
+
* @param body
|
|
11374
|
+
* @param options - additional request options
|
|
11375
|
+
*/
|
|
11376
|
+
post_consumer_forgot_password(
|
|
11377
|
+
body: PostConsumerForgotPasswordBody,
|
|
11378
|
+
options?: RequestOptions,
|
|
11379
|
+
): ResponsePromise<PostConsumerForgotPasswordResponse> {
|
|
11380
|
+
return this.request(
|
|
11381
|
+
'consumer',
|
|
11382
|
+
'/consumer/forgotpassword',
|
|
11383
|
+
'post',
|
|
11384
|
+
`/consumer/forgotpassword`,
|
|
11385
|
+
body,
|
|
11386
|
+
options,
|
|
11387
|
+
);
|
|
11388
|
+
}
|
|
11389
|
+
|
|
11390
|
+
/**
|
|
11391
|
+
* POST /consumer/secret - Add user secret
|
|
11392
|
+
*
|
|
11393
|
+
* @param options - additional request options
|
|
11394
|
+
*/
|
|
11395
|
+
post_consumer_add_secret(
|
|
11396
|
+
options?: RequestOptions,
|
|
11397
|
+
): ResponsePromise<PostConsumerAddSecretResponse> {
|
|
11398
|
+
return this.request('consumer', '/consumer/secret', 'post', `/consumer/secret`, null, options);
|
|
11399
|
+
}
|
|
11400
|
+
|
|
11401
|
+
/**
|
|
11402
|
+
* GET /consumer/location-group/{id} - Get location group
|
|
11403
|
+
*
|
|
11404
|
+
* @param id - TODO: add parameter to swagger.json
|
|
11405
|
+
* @param options - additional request options
|
|
11406
|
+
*/
|
|
11407
|
+
get_consumer_location_group(
|
|
11408
|
+
id: string,
|
|
11409
|
+
options?: {
|
|
11410
|
+
query?: GetConsumerLocationGroupQuery;
|
|
11411
|
+
} & RequestOptions,
|
|
11412
|
+
): ResponsePromise<GetConsumerLocationGroupResponse$0> {
|
|
11413
|
+
return this.request(
|
|
11414
|
+
'consumer',
|
|
11415
|
+
'/consumer/location-group/{id}',
|
|
11416
|
+
'get',
|
|
11417
|
+
`/consumer/location-group/${id}`,
|
|
11418
|
+
null,
|
|
11419
|
+
options,
|
|
11420
|
+
);
|
|
11421
|
+
}
|
|
11422
|
+
|
|
11423
|
+
/**
|
|
11424
|
+
* GET /consumer/location-multigroup/{id} - Get location multi group
|
|
11425
|
+
*
|
|
11426
|
+
* @param id - TODO: add parameter to swagger.json
|
|
11427
|
+
* @param options - additional request options
|
|
11428
|
+
*/
|
|
11429
|
+
get_consumer_location_multigroup(
|
|
11430
|
+
id: string,
|
|
11431
|
+
options?: {
|
|
11432
|
+
query?: GetConsumerLocationMultigroupQuery;
|
|
11433
|
+
} & RequestOptions,
|
|
11434
|
+
): ResponsePromise<GetConsumerLocationMultigroupResponse> {
|
|
11435
|
+
return this.request(
|
|
11436
|
+
'consumer',
|
|
11437
|
+
'/consumer/location-multigroup/{id}',
|
|
11438
|
+
'get',
|
|
11439
|
+
`/consumer/location-multigroup/${id}`,
|
|
11440
|
+
null,
|
|
11441
|
+
options,
|
|
11442
|
+
);
|
|
11443
|
+
}
|
|
11444
|
+
|
|
11445
|
+
/**
|
|
11446
|
+
* GET /consumer/active-menus/{stationId} - Get current menu
|
|
11447
|
+
*
|
|
11448
|
+
* @param stationId - TODO: add parameter to swagger.json
|
|
11449
|
+
* @param options - additional request options
|
|
11450
|
+
*/
|
|
11451
|
+
get_consumer_active_menus(
|
|
11452
|
+
stationId: string,
|
|
11453
|
+
options: {
|
|
11454
|
+
query: GetConsumerActiveMenusQuery;
|
|
11455
|
+
} & RequestOptions,
|
|
11456
|
+
): ResponsePromise<GetConsumerActiveMenusResponse> {
|
|
11457
|
+
return this.request(
|
|
11458
|
+
'consumer',
|
|
11459
|
+
'/consumer/active-menus/{stationId}',
|
|
11460
|
+
'get',
|
|
11461
|
+
`/consumer/active-menus/${stationId}`,
|
|
11462
|
+
null,
|
|
11463
|
+
options,
|
|
11464
|
+
);
|
|
11465
|
+
}
|
|
11466
|
+
|
|
11467
|
+
/**
|
|
11468
|
+
* GET /consumer/menu/{id} - Provide the front end all the data required to render the home page
|
|
11469
|
+
*
|
|
11470
|
+
* @param id
|
|
11471
|
+
* @param options - additional request options
|
|
11472
|
+
*/
|
|
11473
|
+
get_consumer_menu(
|
|
11474
|
+
id: string,
|
|
11475
|
+
options?: {
|
|
11476
|
+
query?: GetConsumerMenuQuery;
|
|
11477
|
+
} & RequestOptions,
|
|
11478
|
+
): ResponsePromise<GetConsumerMenuResponse$0> {
|
|
11479
|
+
return this.request(
|
|
11480
|
+
'consumer',
|
|
11481
|
+
'/consumer/menu/{id}',
|
|
11482
|
+
'get',
|
|
11483
|
+
`/consumer/menu/${id}`,
|
|
11484
|
+
null,
|
|
11485
|
+
options,
|
|
11486
|
+
);
|
|
11487
|
+
}
|
|
11488
|
+
|
|
11265
11489
|
/**
|
|
11266
11490
|
* POST /ai/language/generate - Generate text from a given prompt
|
|
11267
11491
|
*
|
|
@@ -11371,7 +11595,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11371
11595
|
/**
|
|
11372
11596
|
* GET /centricos/report/group/{location_group}/config - Get report configuration for a location group. Times are in site's local timezone.
|
|
11373
11597
|
*
|
|
11374
|
-
* @param location_group - TODO:
|
|
11598
|
+
* @param location_group - TODO: cannot use CompassLongID as path parameter
|
|
11375
11599
|
* @param options - additional request options
|
|
11376
11600
|
*/
|
|
11377
11601
|
get_centricos_report_group_config(
|
|
@@ -11393,7 +11617,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11393
11617
|
/**
|
|
11394
11618
|
* PUT /centricos/report/group/{location_group}/config - Update report configuration for a location group. Times are in site's local timezone.
|
|
11395
11619
|
*
|
|
11396
|
-
* @param location_group - TODO:
|
|
11620
|
+
* @param location_group - TODO: cannot use CompassLongID as path parameter
|
|
11397
11621
|
* @param body
|
|
11398
11622
|
* @param options - additional request options
|
|
11399
11623
|
*/
|
|
@@ -11415,7 +11639,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11415
11639
|
/**
|
|
11416
11640
|
* DELETE /centricos/report/group/{location_group}/config - Delete report configuration for a location group. Times are in site's local timezone.
|
|
11417
11641
|
*
|
|
11418
|
-
* @param location_group - TODO:
|
|
11642
|
+
* @param location_group - TODO: cannot use CompassLongID as path parameter
|
|
11419
11643
|
* @param options - additional request options
|
|
11420
11644
|
*/
|
|
11421
11645
|
delete_centricos_report_group_config(
|
|
@@ -11435,7 +11659,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11435
11659
|
/**
|
|
11436
11660
|
* GET /centricos/report/group/{location_group}/config/default - Get default report configuration. Times are in site's local timezone.
|
|
11437
11661
|
*
|
|
11438
|
-
* @param location_group - TODO:
|
|
11662
|
+
* @param location_group - TODO: cannot use CompassLongID as path parameter
|
|
11439
11663
|
* @param options - additional request options
|
|
11440
11664
|
*/
|
|
11441
11665
|
get_centricos_report_config_default(
|
|
@@ -11509,6 +11733,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11509
11733
|
return this.request('centricos', '/centricos/sites', 'get', `/centricos/sites`, null, options);
|
|
11510
11734
|
}
|
|
11511
11735
|
|
|
11736
|
+
/**
|
|
11737
|
+
* GET /centricos/sites/price-level/{price_level} - This returns specific properties from sites, locations, and stations connected to a menu price level. This does not support pagination, filtering, sorting, or searching.
|
|
11738
|
+
*
|
|
11739
|
+
* @param price_level - TODO: cannot use CompassLongID as path parameter
|
|
11740
|
+
* @param options - additional request options
|
|
11741
|
+
*/
|
|
11742
|
+
get_sites_from_price_level(
|
|
11743
|
+
price_level: string,
|
|
11744
|
+
options?: {
|
|
11745
|
+
query?: GetSitesFromPriceLevelQuery;
|
|
11746
|
+
} & RequestOptions,
|
|
11747
|
+
): ResponsePromise<GetSitesFromPriceLevelResponse> {
|
|
11748
|
+
return this.request(
|
|
11749
|
+
'centricos',
|
|
11750
|
+
'/centricos/sites/price-level/{price_level}',
|
|
11751
|
+
'get',
|
|
11752
|
+
`/centricos/sites/price-level/${price_level}`,
|
|
11753
|
+
null,
|
|
11754
|
+
options,
|
|
11755
|
+
);
|
|
11756
|
+
}
|
|
11757
|
+
|
|
11512
11758
|
/**
|
|
11513
11759
|
* GET /centricos/review/{orderId}/order-items - Get reviews for items in a given order in an array format
|
|
11514
11760
|
*
|
|
@@ -11534,7 +11780,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11534
11780
|
/**
|
|
11535
11781
|
* GET /centricos/station/{station_id} - Get station details
|
|
11536
11782
|
*
|
|
11537
|
-
* @param station_id - TODO:
|
|
11783
|
+
* @param station_id - TODO: cannot use CompassLongID as path parameter
|
|
11538
11784
|
* @param options - additional request options
|
|
11539
11785
|
*/
|
|
11540
11786
|
get_centricos_station(
|
|
@@ -11559,10 +11805,10 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11559
11805
|
* @param body
|
|
11560
11806
|
* @param options - additional request options
|
|
11561
11807
|
*/
|
|
11562
|
-
|
|
11563
|
-
body:
|
|
11808
|
+
put_centricos_discount_voucherify(
|
|
11809
|
+
body: PutCentricosDiscountVoucherifyBody,
|
|
11564
11810
|
options?: RequestOptions,
|
|
11565
|
-
): ResponsePromise<
|
|
11811
|
+
): ResponsePromise<PutCentricosDiscountVoucherifyResponse> {
|
|
11566
11812
|
return this.request(
|
|
11567
11813
|
'centricos',
|
|
11568
11814
|
'/centricos/discount/voucherify',
|
|
@@ -11577,20 +11823,60 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11577
11823
|
* PUT /centricos/discount/{id}/voucherify/publish - Update and publish a voucherify discount and assign it to multiple sites
|
|
11578
11824
|
*
|
|
11579
11825
|
* @param id - Discount ID
|
|
11580
|
-
* @param body
|
|
11581
11826
|
* @param options - additional request options
|
|
11582
11827
|
*/
|
|
11583
|
-
|
|
11828
|
+
put_centricos_discount_voucherify_publish(
|
|
11584
11829
|
id: string,
|
|
11585
|
-
body: PutDiscountVoucherifyPublishBody,
|
|
11586
11830
|
options?: RequestOptions,
|
|
11587
|
-
): ResponsePromise<
|
|
11831
|
+
): ResponsePromise<PutCentricosDiscountVoucherifyPublishResponse> {
|
|
11588
11832
|
return this.request(
|
|
11589
11833
|
'centricos',
|
|
11590
11834
|
'/centricos/discount/{id}/voucherify/publish',
|
|
11591
11835
|
'put',
|
|
11592
11836
|
`/centricos/discount/${id}/voucherify/publish`,
|
|
11593
|
-
|
|
11837
|
+
null,
|
|
11838
|
+
options,
|
|
11839
|
+
);
|
|
11840
|
+
}
|
|
11841
|
+
|
|
11842
|
+
/**
|
|
11843
|
+
* DELETE /centricos/discount/{id}/voucherify - Delete a discount from voucherify and all of its entity associations
|
|
11844
|
+
*
|
|
11845
|
+
* @param id - Discount ID
|
|
11846
|
+
* @param options - additional request options
|
|
11847
|
+
*/
|
|
11848
|
+
delete_centricos_discounts_voucherify(
|
|
11849
|
+
id: string,
|
|
11850
|
+
options?: RequestOptions,
|
|
11851
|
+
): ResponsePromise<DeleteCentricosDiscountsVoucherifyResponse> {
|
|
11852
|
+
return this.request(
|
|
11853
|
+
'centricos',
|
|
11854
|
+
'/centricos/discount/{id}/voucherify',
|
|
11855
|
+
'delete',
|
|
11856
|
+
`/centricos/discount/${id}/voucherify`,
|
|
11857
|
+
null,
|
|
11858
|
+
options,
|
|
11859
|
+
);
|
|
11860
|
+
}
|
|
11861
|
+
|
|
11862
|
+
/**
|
|
11863
|
+
* GET /centricos/discount/{id} - Get discount information by ID
|
|
11864
|
+
*
|
|
11865
|
+
* @param id - ID of the discount to retrieve
|
|
11866
|
+
* @param options - additional request options
|
|
11867
|
+
*/
|
|
11868
|
+
get_centricos_discount(
|
|
11869
|
+
id: string,
|
|
11870
|
+
options?: {
|
|
11871
|
+
query?: GetCentricosDiscountQuery;
|
|
11872
|
+
} & RequestOptions,
|
|
11873
|
+
): ResponsePromise<GetCentricosDiscountResponse> {
|
|
11874
|
+
return this.request(
|
|
11875
|
+
'centricos',
|
|
11876
|
+
'/centricos/discount/{id}',
|
|
11877
|
+
'get',
|
|
11878
|
+
`/centricos/discount/${id}`,
|
|
11879
|
+
null,
|
|
11594
11880
|
options,
|
|
11595
11881
|
);
|
|
11596
11882
|
}
|
|
@@ -11809,7 +12095,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11809
12095
|
/**
|
|
11810
12096
|
* GET /discount/{id} - Get a discount
|
|
11811
12097
|
*
|
|
11812
|
-
* @param id
|
|
12098
|
+
* @param id - a discount id
|
|
11813
12099
|
* @param options - additional request options
|
|
11814
12100
|
*/
|
|
11815
12101
|
get_discount(
|
package/src/interface/ai.ts
CHANGED
|
@@ -71,26 +71,14 @@ export type PostAiLanguageGenerateBody = GenerateTextRequest;
|
|
|
71
71
|
|
|
72
72
|
export type PostAiLanguageGenerateResponse = GenerateTextResponse;
|
|
73
73
|
|
|
74
|
-
export interface PostAiLanguageGenerateRequest extends BaseRequest {
|
|
75
|
-
body: PostAiLanguageGenerateBody;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
74
|
// POST /ai/image/generate - Generate image from a given prompt
|
|
79
75
|
|
|
80
76
|
export type PostAiImageGenerateBody = GenerateImageRequest;
|
|
81
77
|
|
|
82
78
|
export type PostAiImageGenerateResponse = GenerateImageResponse;
|
|
83
79
|
|
|
84
|
-
export interface PostAiImageGenerateRequest extends BaseRequest {
|
|
85
|
-
body: PostAiImageGenerateBody;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
80
|
// POST /ai/translate - Translate strings
|
|
89
81
|
|
|
90
82
|
export type PostAiTranslateBody = TranslateRequest;
|
|
91
83
|
|
|
92
84
|
export type PostAiTranslateResponse = TranslateResponse;
|
|
93
|
-
|
|
94
|
-
export interface PostAiTranslateRequest extends BaseRequest {
|
|
95
|
-
body: PostAiTranslateBody;
|
|
96
|
-
}
|
package/src/interface/auth.ts
CHANGED
|
@@ -19,6 +19,12 @@ export interface SSOFlowResponseDTO {
|
|
|
19
19
|
oidc?: OIDC;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
export interface UnauthorizedErrorDTO {
|
|
23
|
+
message: string;
|
|
24
|
+
code: number;
|
|
25
|
+
data: Record<string, any>;
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
export interface SSOMapping {
|
|
23
29
|
id: string;
|
|
24
30
|
given_name: string;
|
|
@@ -120,10 +126,6 @@ export type PostAuthFlowBody = SSOFlowRequestDTO;
|
|
|
120
126
|
|
|
121
127
|
export type PostAuthFlowResponse = SSOFlowResponseDTO;
|
|
122
128
|
|
|
123
|
-
export interface PostAuthFlowRequest extends BaseRequest {
|
|
124
|
-
body: PostAuthFlowBody;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
129
|
// GET /auth/sso-configs - Returns all available SSO configurations
|
|
128
130
|
|
|
129
131
|
export interface GetAuthSsoConfigsQuery {
|
|
@@ -133,30 +135,18 @@ export interface GetAuthSsoConfigsQuery {
|
|
|
133
135
|
|
|
134
136
|
export type GetAuthSsoConfigsResponse = SSOConfigsResponseDTO[];
|
|
135
137
|
|
|
136
|
-
export interface GetAuthSsoConfigsRequest
|
|
137
|
-
extends BaseRequest,
|
|
138
|
-
RequestQuery<GetAuthSsoConfigsQuery> {}
|
|
139
|
-
|
|
140
138
|
// POST /auth/sso-config - Create a new SSO configuration
|
|
141
139
|
|
|
142
140
|
export type PostAuthSsoConfigBody = SSOConfigRequestDTO;
|
|
143
141
|
|
|
144
142
|
export type PostAuthSsoConfigResponse = SSOConfigResponseDTO;
|
|
145
143
|
|
|
146
|
-
export interface PostAuthSsoConfigRequest extends BaseRequest {
|
|
147
|
-
body: PostAuthSsoConfigBody;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
144
|
// PUT /auth/sso-config - Update an SSO configuration
|
|
151
145
|
|
|
152
146
|
export type PutAuthSsoConfigBody = SSOConfigUpdateRequestDTO;
|
|
153
147
|
|
|
154
148
|
export type PutAuthSsoConfigResponse = SSOConfigResponseDTO;
|
|
155
149
|
|
|
156
|
-
export interface PutAuthSsoConfigRequest extends BaseRequest {
|
|
157
|
-
body: PutAuthSsoConfigBody;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
150
|
// DELETE /auth/sso-config/{name}/{clientId} - Delete a SSO configuration
|
|
161
151
|
|
|
162
152
|
export interface DeleteAuthSsoConfigPath {
|
|
@@ -166,18 +156,12 @@ export interface DeleteAuthSsoConfigPath {
|
|
|
166
156
|
|
|
167
157
|
export type DeleteAuthSsoConfigResponse = SSOConfigResponseDTO;
|
|
168
158
|
|
|
169
|
-
export interface DeleteAuthSsoConfigRequest extends BaseRequest, DeleteAuthSsoConfigPath {}
|
|
170
|
-
|
|
171
159
|
// POST /auth/sso - Authenticates a user using a SSO provider.
|
|
172
160
|
|
|
173
161
|
export type PostAuthSsoBody = SSOAuthRequestDTO;
|
|
174
162
|
|
|
175
163
|
export type PostAuthSsoResponse = SSOAuthResponseDTO;
|
|
176
164
|
|
|
177
|
-
export interface PostAuthSsoRequest extends BaseRequest {
|
|
178
|
-
body: PostAuthSsoBody;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
165
|
// POST /auth/sso/exchange - exchange idP information for short lived exchange token
|
|
182
166
|
// (only required for web clients)
|
|
183
167
|
|
|
@@ -185,10 +169,6 @@ export type PostAuthSsoExchangeBody = SSOAuthRequestDTO;
|
|
|
185
169
|
|
|
186
170
|
export type PostAuthSsoExchangeResponse = SSOExchangeDTO;
|
|
187
171
|
|
|
188
|
-
export interface PostAuthSsoExchangeRequest extends BaseRequest {
|
|
189
|
-
body: PostAuthSsoExchangeBody;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
172
|
// GET /auth/sso/exchange - Exchange short lived JWT for access & refresh
|
|
193
173
|
|
|
194
174
|
export interface GetAuthSsoExchangeQuery {
|
|
@@ -198,7 +178,3 @@ export interface GetAuthSsoExchangeQuery {
|
|
|
198
178
|
}
|
|
199
179
|
|
|
200
180
|
export type GetAuthSsoExchangeResponse = SSOAuthResponseDTO;
|
|
201
|
-
|
|
202
|
-
export interface GetAuthSsoExchangeRequest
|
|
203
|
-
extends BaseRequest,
|
|
204
|
-
RequestQuery<GetAuthSsoExchangeQuery> {}
|