@compassdigital/sdk.typescript 4.420.0 → 4.422.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 +21 -7
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +20 -4
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +33 -2
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +2 -5
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +50 -9
- package/src/interface/consumer.ts +64 -2
- package/src/interface/menu.ts +2 -8
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -623,7 +623,6 @@ import {
|
|
|
623
623
|
GetMenuV3DraftBrandVerifyPublishResponse,
|
|
624
624
|
PostMenuV3DraftBrandArchiveResponse,
|
|
625
625
|
PostMenuV3DraftBrandUnarchiveResponse,
|
|
626
|
-
PostMenuV3DraftBrandSyncMenuworksQuery,
|
|
627
626
|
PostMenuV3DraftBrandSyncMenuworksResponse,
|
|
628
627
|
PostMenuV3BrandQuery,
|
|
629
628
|
PostMenuV3BrandBody,
|
|
@@ -1179,6 +1178,10 @@ import {
|
|
|
1179
1178
|
GetPaymentCashlessConsumerResponse,
|
|
1180
1179
|
GetPaymentClienttokenConsumerQuery,
|
|
1181
1180
|
GetPaymentClienttokenConsumerResponse,
|
|
1181
|
+
GetPaymentHpcConsumerQuery,
|
|
1182
|
+
GetPaymentHpcConsumerResponse,
|
|
1183
|
+
GetPaymentTokenConsumerQuery,
|
|
1184
|
+
GetPaymentTokenConsumerResponse,
|
|
1182
1185
|
GetConsumerShoppingcartResponse,
|
|
1183
1186
|
PutConsumerShoppingcartBody,
|
|
1184
1187
|
PutConsumerShoppingcartResponse,
|
|
@@ -7407,22 +7410,20 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
7407
7410
|
}
|
|
7408
7411
|
|
|
7409
7412
|
/**
|
|
7410
|
-
* POST /menu/v3/draft/brand/{
|
|
7413
|
+
* POST /menu/v3/draft/brand/{brand_id}/sync-menuworks
|
|
7411
7414
|
*
|
|
7412
|
-
* @param
|
|
7415
|
+
* @param brand_id
|
|
7413
7416
|
* @param options - additional request options
|
|
7414
7417
|
*/
|
|
7415
7418
|
post_menu_v3_draft_brand_sync_menuworks(
|
|
7416
|
-
|
|
7417
|
-
options?:
|
|
7418
|
-
query?: PostMenuV3DraftBrandSyncMenuworksQuery;
|
|
7419
|
-
} & RequestOptions,
|
|
7419
|
+
brand_id: string,
|
|
7420
|
+
options?: RequestOptions,
|
|
7420
7421
|
): ResponsePromise<PostMenuV3DraftBrandSyncMenuworksResponse> {
|
|
7421
7422
|
return this.request(
|
|
7422
7423
|
'menu',
|
|
7423
|
-
'/menu/v3/draft/brand/{
|
|
7424
|
+
'/menu/v3/draft/brand/{brand_id}/sync-menuworks',
|
|
7424
7425
|
'POST',
|
|
7425
|
-
`/menu/v3/draft/brand/${
|
|
7426
|
+
`/menu/v3/draft/brand/${brand_id}/sync-menuworks`,
|
|
7426
7427
|
null,
|
|
7427
7428
|
options,
|
|
7428
7429
|
);
|
|
@@ -13380,6 +13381,46 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
13380
13381
|
);
|
|
13381
13382
|
}
|
|
13382
13383
|
|
|
13384
|
+
/**
|
|
13385
|
+
* GET /consumer/payment/hpc - Get FreedomPay HPC iframe for payment card entry
|
|
13386
|
+
*
|
|
13387
|
+
* @param options - additional request options
|
|
13388
|
+
*/
|
|
13389
|
+
get_payment_hpc_consumer(
|
|
13390
|
+
options: {
|
|
13391
|
+
query: GetPaymentHpcConsumerQuery;
|
|
13392
|
+
} & RequestOptions,
|
|
13393
|
+
): ResponsePromise<GetPaymentHpcConsumerResponse> {
|
|
13394
|
+
return this.request(
|
|
13395
|
+
'consumer',
|
|
13396
|
+
'/consumer/payment/hpc',
|
|
13397
|
+
'GET',
|
|
13398
|
+
`/consumer/payment/hpc`,
|
|
13399
|
+
null,
|
|
13400
|
+
options,
|
|
13401
|
+
);
|
|
13402
|
+
}
|
|
13403
|
+
|
|
13404
|
+
/**
|
|
13405
|
+
* GET /consumer/payment/token - Get FreedomPay payment token from HPC session
|
|
13406
|
+
*
|
|
13407
|
+
* @param options - additional request options
|
|
13408
|
+
*/
|
|
13409
|
+
get_payment_token_consumer(
|
|
13410
|
+
options: {
|
|
13411
|
+
query: GetPaymentTokenConsumerQuery;
|
|
13412
|
+
} & RequestOptions,
|
|
13413
|
+
): ResponsePromise<GetPaymentTokenConsumerResponse> {
|
|
13414
|
+
return this.request(
|
|
13415
|
+
'consumer',
|
|
13416
|
+
'/consumer/payment/token',
|
|
13417
|
+
'GET',
|
|
13418
|
+
`/consumer/payment/token`,
|
|
13419
|
+
null,
|
|
13420
|
+
options,
|
|
13421
|
+
);
|
|
13422
|
+
}
|
|
13423
|
+
|
|
13383
13424
|
/**
|
|
13384
13425
|
* GET /consumer/shoppingcart/{id} - Get a shopping cart by ID
|
|
13385
13426
|
*
|
|
@@ -2228,6 +2228,38 @@ export interface ConsumerGetPaymentClienttokenResponse {
|
|
|
2228
2228
|
expires_in?: number;
|
|
2229
2229
|
}
|
|
2230
2230
|
|
|
2231
|
+
export interface ConsumerGetPaymentHpcResponse {
|
|
2232
|
+
// FreedomPay HPC iframe HTML
|
|
2233
|
+
iframe?: string;
|
|
2234
|
+
// Session key for subsequent HPC operations
|
|
2235
|
+
sessionKey?: string;
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
export interface ConsumerGetPaymentTokenResponse {
|
|
2239
|
+
// Payment token
|
|
2240
|
+
token?: string;
|
|
2241
|
+
// Masked account number
|
|
2242
|
+
accountNumberMasked?: string;
|
|
2243
|
+
// Card expiration month
|
|
2244
|
+
cardExpirationMonth?: string;
|
|
2245
|
+
// Card expiration year
|
|
2246
|
+
cardExpirationYear?: string;
|
|
2247
|
+
// Card brand
|
|
2248
|
+
brand?: string;
|
|
2249
|
+
// POS card type
|
|
2250
|
+
posCardType?: string;
|
|
2251
|
+
// Card type
|
|
2252
|
+
cardType?: string;
|
|
2253
|
+
// Token expiration
|
|
2254
|
+
tokenExpiration?: string;
|
|
2255
|
+
// POS data
|
|
2256
|
+
posData?: string;
|
|
2257
|
+
// New token
|
|
2258
|
+
newToken?: string;
|
|
2259
|
+
// Session key
|
|
2260
|
+
sessionKey?: string;
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2231
2263
|
export interface PromoDetails {
|
|
2232
2264
|
code?: string;
|
|
2233
2265
|
provider?: Record<string, any>;
|
|
@@ -2789,7 +2821,7 @@ export interface ConsumerPublicMealplanConfig {
|
|
|
2789
2821
|
// The mealplan valid email domains
|
|
2790
2822
|
valid_email_domains?: string[];
|
|
2791
2823
|
// The mealplan note
|
|
2792
|
-
note?: string
|
|
2824
|
+
note?: Record<string, any>;
|
|
2793
2825
|
}
|
|
2794
2826
|
|
|
2795
2827
|
export interface GetConsumerConfigPublicResponse {
|
|
@@ -3270,7 +3302,7 @@ export interface OpenAiChatBody {
|
|
|
3270
3302
|
// The messages to send to the chat completion
|
|
3271
3303
|
messages: OpenAiChatMessage[];
|
|
3272
3304
|
// The tools to use for the chat completion
|
|
3273
|
-
tools: string[];
|
|
3305
|
+
tools: Record<string, any>[];
|
|
3274
3306
|
// The tool choices to use for the chat completion
|
|
3275
3307
|
tool_choice: Record<string, any>;
|
|
3276
3308
|
// The temperature to use for the chat completion
|
|
@@ -3648,6 +3680,36 @@ export interface GetPaymentClienttokenConsumerQuery {
|
|
|
3648
3680
|
|
|
3649
3681
|
export type GetPaymentClienttokenConsumerResponse = ConsumerGetPaymentClienttokenResponse;
|
|
3650
3682
|
|
|
3683
|
+
// GET /consumer/payment/hpc - Get FreedomPay HPC iframe for payment card entry
|
|
3684
|
+
|
|
3685
|
+
export interface GetPaymentHpcConsumerQuery {
|
|
3686
|
+
// CDL Site ID
|
|
3687
|
+
siteId: string;
|
|
3688
|
+
// hCaptcha response key
|
|
3689
|
+
captchaResponseKey: string;
|
|
3690
|
+
// Graphql query string
|
|
3691
|
+
_query?: string;
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
export type GetPaymentHpcConsumerResponse = ConsumerGetPaymentHpcResponse;
|
|
3695
|
+
|
|
3696
|
+
// GET /consumer/payment/token - Get FreedomPay payment token from HPC session
|
|
3697
|
+
|
|
3698
|
+
export interface GetPaymentTokenConsumerQuery {
|
|
3699
|
+
// Payment Key
|
|
3700
|
+
paymentKey: string;
|
|
3701
|
+
// Session key
|
|
3702
|
+
sessionKey: string;
|
|
3703
|
+
// CDL Site ID
|
|
3704
|
+
siteId: string;
|
|
3705
|
+
// Name on card
|
|
3706
|
+
nameOnCard: string;
|
|
3707
|
+
// Graphql query string
|
|
3708
|
+
_query?: string;
|
|
3709
|
+
}
|
|
3710
|
+
|
|
3711
|
+
export type GetPaymentTokenConsumerResponse = ConsumerGetPaymentTokenResponse;
|
|
3712
|
+
|
|
3651
3713
|
// GET /consumer/shoppingcart/{id} - Get a shopping cart by ID
|
|
3652
3714
|
|
|
3653
3715
|
export interface GetConsumerShoppingcartPath {
|
package/src/interface/menu.ts
CHANGED
|
@@ -4086,15 +4086,10 @@ export interface PostMenuV3DraftBrandUnarchiveRequest
|
|
|
4086
4086
|
extends BaseRequest,
|
|
4087
4087
|
PostMenuV3DraftBrandUnarchivePath {}
|
|
4088
4088
|
|
|
4089
|
-
// POST /menu/v3/draft/brand/{
|
|
4089
|
+
// POST /menu/v3/draft/brand/{brand_id}/sync-menuworks
|
|
4090
4090
|
|
|
4091
4091
|
export interface PostMenuV3DraftBrandSyncMenuworksPath {
|
|
4092
|
-
|
|
4093
|
-
id: string;
|
|
4094
|
-
}
|
|
4095
|
-
|
|
4096
|
-
export interface PostMenuV3DraftBrandSyncMenuworksQuery {
|
|
4097
|
-
brand_id?: string;
|
|
4092
|
+
brand_id: string;
|
|
4098
4093
|
}
|
|
4099
4094
|
|
|
4100
4095
|
export interface PostMenuV3DraftBrandSyncMenuworksResponse {
|
|
@@ -4105,7 +4100,6 @@ export interface PostMenuV3DraftBrandSyncMenuworksResponse {
|
|
|
4105
4100
|
|
|
4106
4101
|
export interface PostMenuV3DraftBrandSyncMenuworksRequest
|
|
4107
4102
|
extends BaseRequest,
|
|
4108
|
-
RequestQuery<PostMenuV3DraftBrandSyncMenuworksQuery>,
|
|
4109
4103
|
PostMenuV3DraftBrandSyncMenuworksPath {}
|
|
4110
4104
|
|
|
4111
4105
|
// POST /menu/v3/brand
|