commerce-sdk-isomorphic 1.10.2 → 1.10.4
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/CHANGELOG.md +13 -0
- package/lib/index.cjs.d.ts +44 -205
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.d.ts +44 -205
- package/lib/index.esm.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v1.10.4
|
|
4
|
+
|
|
5
|
+
#### Bug fixes
|
|
6
|
+
|
|
7
|
+
- Mark `expand` query parameter for `getProduct` endpoint as optional instead of required
|
|
8
|
+
|
|
9
|
+
## v1.10.3
|
|
10
|
+
|
|
11
|
+
#### Bug fixes
|
|
12
|
+
|
|
13
|
+
- Fix `expand` query parameter for `shopper-products`
|
|
14
|
+
- Remove `retrieveCredQualityUserInfo` endpoint from `shopper-login` as this functionality was removed from SLAS
|
|
15
|
+
|
|
3
16
|
## v1.10.2
|
|
4
17
|
|
|
5
18
|
#### Documentation
|
package/lib/index.cjs.d.ts
CHANGED
|
@@ -16690,20 +16690,6 @@ type PasswordlessLoginRequest = {
|
|
|
16690
16690
|
} & {
|
|
16691
16691
|
[key: string]: any;
|
|
16692
16692
|
};
|
|
16693
|
-
type CredQualityUserResponse = {
|
|
16694
|
-
tenantId: string;
|
|
16695
|
-
username: string;
|
|
16696
|
-
email: string;
|
|
16697
|
-
credQualityMeasure: number;
|
|
16698
|
-
pwdStrengthMeasure: number;
|
|
16699
|
-
pwdQualityMeasure: number;
|
|
16700
|
-
credChangeCount: number;
|
|
16701
|
-
loginCount: number;
|
|
16702
|
-
lastLoginDatetime: any;
|
|
16703
|
-
lastCredCheckDatetime: any;
|
|
16704
|
-
} & {
|
|
16705
|
-
[key: string]: any;
|
|
16706
|
-
};
|
|
16707
16693
|
type PasswordLessLoginTokenRequest = {
|
|
16708
16694
|
grant_type: string;
|
|
16709
16695
|
hint: string;
|
|
@@ -16751,6 +16737,7 @@ type TokenResponse = {
|
|
|
16751
16737
|
id_token: string;
|
|
16752
16738
|
refresh_token: string;
|
|
16753
16739
|
expires_in: number;
|
|
16740
|
+
refresh_token_expires_in: any;
|
|
16754
16741
|
token_type: string;
|
|
16755
16742
|
usid: string;
|
|
16756
16743
|
customer_id: string;
|
|
@@ -16903,7 +16890,6 @@ type ShopperLoginPathParameters = {
|
|
|
16903
16890
|
* All query parameters that are used by at least one ShopperLogin method.
|
|
16904
16891
|
*/
|
|
16905
16892
|
type ShopperLoginQueryParameters = {
|
|
16906
|
-
username?: string;
|
|
16907
16893
|
client_id?: string;
|
|
16908
16894
|
refresh_token?: string;
|
|
16909
16895
|
channel_id?: string;
|
|
@@ -16944,7 +16930,7 @@ type ShopperLoginParameters = ShopperLoginPathParameters & BaseUriParameters & S
|
|
|
16944
16930
|
* ```
|
|
16945
16931
|
*
|
|
16946
16932
|
* <span style="font-size:.7em; display:block; text-align: right">
|
|
16947
|
-
* API Version: 1.39.
|
|
16933
|
+
* API Version: 1.39.17<br />
|
|
16948
16934
|
* Last Updated: <br />
|
|
16949
16935
|
* </span>
|
|
16950
16936
|
|
|
@@ -16958,52 +16944,6 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
16958
16944
|
};
|
|
16959
16945
|
static readonly defaultBaseUri = "https://{shortCode}.api.commercecloud.salesforce.com/shopper/auth/{version}";
|
|
16960
16946
|
constructor(config: ClientConfigInit<ConfigParameters>);
|
|
16961
|
-
/**
|
|
16962
|
-
* Get credential quality statistics for a user.
|
|
16963
|
-
*
|
|
16964
|
-
* If you would like to get a raw Response object use the other retrieveCredQualityUserInfo function.
|
|
16965
|
-
*
|
|
16966
|
-
* @param options - An object containing the options for this method.
|
|
16967
|
-
* @param parameters - An object containing the parameters for this method.
|
|
16968
|
-
* @param organizationId -
|
|
16969
|
-
* @param username - User's login ID or email address.
|
|
16970
|
-
* @param headers - An object literal of key value pairs of the headers to be
|
|
16971
|
-
* sent with this request.
|
|
16972
|
-
*
|
|
16973
|
-
* @returns A promise of type CredQualityUserResponse.
|
|
16974
|
-
*
|
|
16975
|
-
*/
|
|
16976
|
-
retrieveCredQualityUserInfo(options?: RequireParametersUnlessAllAreOptional<{
|
|
16977
|
-
parameters?: CompositeParameters<{
|
|
16978
|
-
organizationId: string;
|
|
16979
|
-
username: string;
|
|
16980
|
-
}, ConfigParameters>;
|
|
16981
|
-
headers?: {
|
|
16982
|
-
[key: string]: string;
|
|
16983
|
-
};
|
|
16984
|
-
}>): Promise<CredQualityUserResponse>;
|
|
16985
|
-
/**
|
|
16986
|
-
* Get credential quality statistics for a user.
|
|
16987
|
-
*
|
|
16988
|
-
* @param options - An object containing the options for this method.
|
|
16989
|
-
* @param parameters - An object containing the parameters for this method.
|
|
16990
|
-
* @param organizationId -
|
|
16991
|
-
* @param username - User's login ID or email address.
|
|
16992
|
-
* @param headers - An object literal of key value pairs of the headers to be
|
|
16993
|
-
* sent with this request.
|
|
16994
|
-
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
16995
|
-
* @returns A promise of type Response if rawResponse is true, a promise of type CredQualityUserResponse otherwise.
|
|
16996
|
-
*
|
|
16997
|
-
*/
|
|
16998
|
-
retrieveCredQualityUserInfo<T extends boolean>(options?: RequireParametersUnlessAllAreOptional<{
|
|
16999
|
-
parameters?: CompositeParameters<{
|
|
17000
|
-
organizationId: string;
|
|
17001
|
-
username: string;
|
|
17002
|
-
}, ConfigParameters>;
|
|
17003
|
-
headers?: {
|
|
17004
|
-
[key: string]: string;
|
|
17005
|
-
};
|
|
17006
|
-
}>, rawResponse?: T): Promise<T extends true ? Response : CredQualityUserResponse>;
|
|
17007
16947
|
/**
|
|
17008
16948
|
* Logs in a shopper with credentials that are managed by a B2C Commerce instance (ECOM). It follows the authorization code grant flow as defined by the OAuth 2.1 standard. It also uses a proof key for code exchange (PKCE).
|
|
17009
16949
|
|
|
@@ -18132,20 +18072,6 @@ declare namespace ShopperLoginTypes {
|
|
|
18132
18072
|
} & {
|
|
18133
18073
|
[key: string]: any;
|
|
18134
18074
|
};
|
|
18135
|
-
type CredQualityUserResponse = {
|
|
18136
|
-
tenantId: string;
|
|
18137
|
-
username: string;
|
|
18138
|
-
email: string;
|
|
18139
|
-
credQualityMeasure: number;
|
|
18140
|
-
pwdStrengthMeasure: number;
|
|
18141
|
-
pwdQualityMeasure: number;
|
|
18142
|
-
credChangeCount: number;
|
|
18143
|
-
loginCount: number;
|
|
18144
|
-
lastLoginDatetime: any;
|
|
18145
|
-
lastCredCheckDatetime: any;
|
|
18146
|
-
} & {
|
|
18147
|
-
[key: string]: any;
|
|
18148
|
-
};
|
|
18149
18075
|
type PasswordLessLoginTokenRequest = {
|
|
18150
18076
|
grant_type: string;
|
|
18151
18077
|
hint: string;
|
|
@@ -18200,6 +18126,7 @@ declare namespace ShopperLoginTypes {
|
|
|
18200
18126
|
id_token: string;
|
|
18201
18127
|
refresh_token: string;
|
|
18202
18128
|
expires_in: number;
|
|
18129
|
+
refresh_token_expires_in: any;
|
|
18203
18130
|
token_type: string;
|
|
18204
18131
|
usid: string;
|
|
18205
18132
|
customer_id: string;
|
|
@@ -18507,7 +18434,6 @@ declare namespace ShopperLoginTypes {
|
|
|
18507
18434
|
* All query parameters that are used by at least one ShopperLogin method.
|
|
18508
18435
|
*/
|
|
18509
18436
|
type ShopperLoginQueryParameters = {
|
|
18510
|
-
username?: string;
|
|
18511
18437
|
client_id?: string;
|
|
18512
18438
|
refresh_token?: string;
|
|
18513
18439
|
channel_id?: string;
|
|
@@ -18548,7 +18474,7 @@ declare namespace ShopperLoginTypes {
|
|
|
18548
18474
|
* ```
|
|
18549
18475
|
*
|
|
18550
18476
|
* <span style="font-size:.7em; display:block; text-align: right">
|
|
18551
|
-
* API Version: 1.39.
|
|
18477
|
+
* API Version: 1.39.17<br />
|
|
18552
18478
|
* Last Updated: <br />
|
|
18553
18479
|
* </span>
|
|
18554
18480
|
|
|
@@ -18562,52 +18488,6 @@ declare namespace ShopperLoginTypes {
|
|
|
18562
18488
|
};
|
|
18563
18489
|
static readonly defaultBaseUri = "https://{shortCode}.api.commercecloud.salesforce.com/shopper/auth/{version}";
|
|
18564
18490
|
constructor(config: ClientConfigInit<ConfigParameters>);
|
|
18565
|
-
/**
|
|
18566
|
-
* Get credential quality statistics for a user.
|
|
18567
|
-
*
|
|
18568
|
-
* If you would like to get a raw Response object use the other retrieveCredQualityUserInfo function.
|
|
18569
|
-
*
|
|
18570
|
-
* @param options - An object containing the options for this method.
|
|
18571
|
-
* @param parameters - An object containing the parameters for this method.
|
|
18572
|
-
* @param organizationId -
|
|
18573
|
-
* @param username - User's login ID or email address.
|
|
18574
|
-
* @param headers - An object literal of key value pairs of the headers to be
|
|
18575
|
-
* sent with this request.
|
|
18576
|
-
*
|
|
18577
|
-
* @returns A promise of type CredQualityUserResponse.
|
|
18578
|
-
*
|
|
18579
|
-
*/
|
|
18580
|
-
retrieveCredQualityUserInfo(options?: RequireParametersUnlessAllAreOptional<{
|
|
18581
|
-
parameters?: CompositeParameters<{
|
|
18582
|
-
organizationId: string;
|
|
18583
|
-
username: string;
|
|
18584
|
-
}, ConfigParameters>;
|
|
18585
|
-
headers?: {
|
|
18586
|
-
[key: string]: string;
|
|
18587
|
-
};
|
|
18588
|
-
}>): Promise<CredQualityUserResponse>;
|
|
18589
|
-
/**
|
|
18590
|
-
* Get credential quality statistics for a user.
|
|
18591
|
-
*
|
|
18592
|
-
* @param options - An object containing the options for this method.
|
|
18593
|
-
* @param parameters - An object containing the parameters for this method.
|
|
18594
|
-
* @param organizationId -
|
|
18595
|
-
* @param username - User's login ID or email address.
|
|
18596
|
-
* @param headers - An object literal of key value pairs of the headers to be
|
|
18597
|
-
* sent with this request.
|
|
18598
|
-
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
18599
|
-
* @returns A promise of type Response if rawResponse is true, a promise of type CredQualityUserResponse otherwise.
|
|
18600
|
-
*
|
|
18601
|
-
*/
|
|
18602
|
-
retrieveCredQualityUserInfo<T extends boolean>(options?: RequireParametersUnlessAllAreOptional<{
|
|
18603
|
-
parameters?: CompositeParameters<{
|
|
18604
|
-
organizationId: string;
|
|
18605
|
-
username: string;
|
|
18606
|
-
}, ConfigParameters>;
|
|
18607
|
-
headers?: {
|
|
18608
|
-
[key: string]: string;
|
|
18609
|
-
};
|
|
18610
|
-
}>, rawResponse?: T): Promise<T extends true ? Response : CredQualityUserResponse>;
|
|
18611
18491
|
/**
|
|
18612
18492
|
* Logs in a shopper with credentials that are managed by a B2C Commerce instance (ECOM). It follows the authorization code grant flow as defined by the OAuth 2.1 standard. It also uses a proof key for code exchange (PKCE).
|
|
18613
18493
|
|
|
@@ -22328,10 +22208,11 @@ type ShopperProductsPathParameters = {
|
|
|
22328
22208
|
* All query parameters that are used by at least one ShopperProducts method.
|
|
22329
22209
|
*/
|
|
22330
22210
|
type ShopperProductsQueryParameters = {
|
|
22211
|
+
select?: string;
|
|
22331
22212
|
ids?: string;
|
|
22332
22213
|
inventoryIds?: string;
|
|
22333
22214
|
currency?: string;
|
|
22334
|
-
expand?: string
|
|
22215
|
+
expand?: Array<string>;
|
|
22335
22216
|
locale?: string;
|
|
22336
22217
|
allImages?: boolean;
|
|
22337
22218
|
perPricebook?: boolean;
|
|
@@ -22343,10 +22224,10 @@ type ShopperProductsQueryParameters = {
|
|
|
22343
22224
|
*/
|
|
22344
22225
|
type ShopperProductsParameters = ShopperProductsPathParameters & BaseUriParameters & ShopperProductsQueryParameters;
|
|
22345
22226
|
/**
|
|
22346
|
-
* [
|
|
22227
|
+
* [](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=:Summary)
|
|
22347
22228
|
* ==================================
|
|
22348
22229
|
*
|
|
22349
|
-
*
|
|
22230
|
+
* **<br />
|
|
22350
22231
|
*
|
|
22351
22232
|
* Simple example:
|
|
22352
22233
|
*
|
|
@@ -22365,7 +22246,7 @@ type ShopperProductsParameters = ShopperProductsPathParameters & BaseUriParamete
|
|
|
22365
22246
|
* ```
|
|
22366
22247
|
*
|
|
22367
22248
|
* <span style="font-size:.7em; display:block; text-align: right">
|
|
22368
|
-
* API Version:
|
|
22249
|
+
* API Version: <br />
|
|
22369
22250
|
* Last Updated: <br />
|
|
22370
22251
|
* </span>
|
|
22371
22252
|
|
|
@@ -22387,6 +22268,7 @@ declare class ShopperProducts<ConfigParameters extends ShopperProductsParameters
|
|
|
22387
22268
|
* @param options - An object containing the options for this method.
|
|
22388
22269
|
* @param parameters - An object containing the parameters for this method.
|
|
22389
22270
|
* @param organizationId -
|
|
22271
|
+
* @param select - The property selector declaring which fields are included into the response payload. You can specify a single field name, a comma-separated list of names, or work with wildcards.You can also sepcify Array Operations.The select will be available, tentatively from october 2023.The exact date will be announced via changelog.
|
|
22390
22272
|
* @param ids - The IDs of the requested products (comma-separated, max 24 IDs).
|
|
22391
22273
|
* @param inventoryIds - The optional inventory list IDs, for which the availability should be shown (comma-separated, max 5 inventoryListIDs).
|
|
22392
22274
|
* @param currency - The currency mnemonic specified for price.
|
|
@@ -22404,10 +22286,11 @@ declare class ShopperProducts<ConfigParameters extends ShopperProductsParameters
|
|
|
22404
22286
|
getProducts(options?: RequireParametersUnlessAllAreOptional<{
|
|
22405
22287
|
parameters?: CompositeParameters<{
|
|
22406
22288
|
organizationId: string;
|
|
22289
|
+
select?: string;
|
|
22407
22290
|
ids: string;
|
|
22408
22291
|
inventoryIds?: string;
|
|
22409
22292
|
currency?: string;
|
|
22410
|
-
expand?: string
|
|
22293
|
+
expand?: Array<string>;
|
|
22411
22294
|
locale?: string;
|
|
22412
22295
|
allImages?: boolean;
|
|
22413
22296
|
perPricebook?: boolean;
|
|
@@ -22423,6 +22306,7 @@ declare class ShopperProducts<ConfigParameters extends ShopperProductsParameters
|
|
|
22423
22306
|
* @param options - An object containing the options for this method.
|
|
22424
22307
|
* @param parameters - An object containing the parameters for this method.
|
|
22425
22308
|
* @param organizationId -
|
|
22309
|
+
* @param select - The property selector declaring which fields are included into the response payload. You can specify a single field name, a comma-separated list of names, or work with wildcards.You can also sepcify Array Operations.The select will be available, tentatively from october 2023.The exact date will be announced via changelog.
|
|
22426
22310
|
* @param ids - The IDs of the requested products (comma-separated, max 24 IDs).
|
|
22427
22311
|
* @param inventoryIds - The optional inventory list IDs, for which the availability should be shown (comma-separated, max 5 inventoryListIDs).
|
|
22428
22312
|
* @param currency - The currency mnemonic specified for price.
|
|
@@ -22440,10 +22324,11 @@ declare class ShopperProducts<ConfigParameters extends ShopperProductsParameters
|
|
|
22440
22324
|
getProducts<T extends boolean>(options?: RequireParametersUnlessAllAreOptional<{
|
|
22441
22325
|
parameters?: CompositeParameters<{
|
|
22442
22326
|
organizationId: string;
|
|
22327
|
+
select?: string;
|
|
22443
22328
|
ids: string;
|
|
22444
22329
|
inventoryIds?: string;
|
|
22445
22330
|
currency?: string;
|
|
22446
|
-
expand?: string
|
|
22331
|
+
expand?: Array<string>;
|
|
22447
22332
|
locale?: string;
|
|
22448
22333
|
allImages?: boolean;
|
|
22449
22334
|
perPricebook?: boolean;
|
|
@@ -22462,6 +22347,7 @@ declare class ShopperProducts<ConfigParameters extends ShopperProductsParameters
|
|
|
22462
22347
|
* @param parameters - An object containing the parameters for this method.
|
|
22463
22348
|
* @param organizationId -
|
|
22464
22349
|
* @param id - The ID of the requested product.
|
|
22350
|
+
* @param select - The property selector declaring which fields are included into the response payload. You can specify a single field name, a comma-separated list of names, or work with wildcards.You can also sepcify Array Operations. The select will be available, tentatively from october 2023.The exact date will be announced via changelog.
|
|
22465
22351
|
* @param inventoryIds - The optional inventory list IDs, for which the availability should be shown (comma-separated, max 5 inventoryListIDs).
|
|
22466
22352
|
* @param currency - The currency mnemonic specified for price.
|
|
22467
22353
|
* @param expand - The expand parameter. A comma separated list with the allowed values (availability, bundled_products, links, promotions, options, images, prices, variations, set_products, recommendations). All expand parameters are used for the request when no expand parameter is provided. The value "none" may be used to turn off all expand options.
|
|
@@ -22479,9 +22365,10 @@ declare class ShopperProducts<ConfigParameters extends ShopperProductsParameters
|
|
|
22479
22365
|
parameters?: CompositeParameters<{
|
|
22480
22366
|
organizationId: string;
|
|
22481
22367
|
id: string;
|
|
22368
|
+
select?: string;
|
|
22482
22369
|
inventoryIds?: string;
|
|
22483
22370
|
currency?: string;
|
|
22484
|
-
expand?: string
|
|
22371
|
+
expand?: Array<string>;
|
|
22485
22372
|
locale?: string;
|
|
22486
22373
|
allImages?: boolean;
|
|
22487
22374
|
perPricebook?: boolean;
|
|
@@ -22498,6 +22385,7 @@ declare class ShopperProducts<ConfigParameters extends ShopperProductsParameters
|
|
|
22498
22385
|
* @param parameters - An object containing the parameters for this method.
|
|
22499
22386
|
* @param organizationId -
|
|
22500
22387
|
* @param id - The ID of the requested product.
|
|
22388
|
+
* @param select - The property selector declaring which fields are included into the response payload. You can specify a single field name, a comma-separated list of names, or work with wildcards.You can also sepcify Array Operations. The select will be available, tentatively from october 2023.The exact date will be announced via changelog.
|
|
22501
22389
|
* @param inventoryIds - The optional inventory list IDs, for which the availability should be shown (comma-separated, max 5 inventoryListIDs).
|
|
22502
22390
|
* @param currency - The currency mnemonic specified for price.
|
|
22503
22391
|
* @param expand - The expand parameter. A comma separated list with the allowed values (availability, bundled_products, links, promotions, options, images, prices, variations, set_products, recommendations). All expand parameters are used for the request when no expand parameter is provided. The value "none" may be used to turn off all expand options.
|
|
@@ -22515,9 +22403,10 @@ declare class ShopperProducts<ConfigParameters extends ShopperProductsParameters
|
|
|
22515
22403
|
parameters?: CompositeParameters<{
|
|
22516
22404
|
organizationId: string;
|
|
22517
22405
|
id: string;
|
|
22406
|
+
select?: string;
|
|
22518
22407
|
inventoryIds?: string;
|
|
22519
22408
|
currency?: string;
|
|
22520
|
-
expand?: string
|
|
22409
|
+
expand?: Array<string>;
|
|
22521
22410
|
locale?: string;
|
|
22522
22411
|
allImages?: boolean;
|
|
22523
22412
|
perPricebook?: boolean;
|
|
@@ -23251,10 +23140,11 @@ declare namespace ShopperProductsTypes {
|
|
|
23251
23140
|
* All query parameters that are used by at least one ShopperProducts method.
|
|
23252
23141
|
*/
|
|
23253
23142
|
type ShopperProductsQueryParameters = {
|
|
23143
|
+
select?: string;
|
|
23254
23144
|
ids?: string;
|
|
23255
23145
|
inventoryIds?: string;
|
|
23256
23146
|
currency?: string;
|
|
23257
|
-
expand?: string
|
|
23147
|
+
expand?: Array<string>;
|
|
23258
23148
|
locale?: string;
|
|
23259
23149
|
allImages?: boolean;
|
|
23260
23150
|
perPricebook?: boolean;
|
|
@@ -23266,10 +23156,10 @@ declare namespace ShopperProductsTypes {
|
|
|
23266
23156
|
*/
|
|
23267
23157
|
type ShopperProductsParameters = ShopperProductsPathParameters & BaseUriParameters & ShopperProductsQueryParameters;
|
|
23268
23158
|
/**
|
|
23269
|
-
* [
|
|
23159
|
+
* [](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=:Summary)
|
|
23270
23160
|
* ==================================
|
|
23271
23161
|
*
|
|
23272
|
-
*
|
|
23162
|
+
* **<br />
|
|
23273
23163
|
*
|
|
23274
23164
|
* Simple example:
|
|
23275
23165
|
*
|
|
@@ -23288,7 +23178,7 @@ declare namespace ShopperProductsTypes {
|
|
|
23288
23178
|
* ```
|
|
23289
23179
|
*
|
|
23290
23180
|
* <span style="font-size:.7em; display:block; text-align: right">
|
|
23291
|
-
* API Version:
|
|
23181
|
+
* API Version: <br />
|
|
23292
23182
|
* Last Updated: <br />
|
|
23293
23183
|
* </span>
|
|
23294
23184
|
|
|
@@ -23310,6 +23200,7 @@ declare namespace ShopperProductsTypes {
|
|
|
23310
23200
|
* @param options - An object containing the options for this method.
|
|
23311
23201
|
* @param parameters - An object containing the parameters for this method.
|
|
23312
23202
|
* @param organizationId -
|
|
23203
|
+
* @param select - The property selector declaring which fields are included into the response payload. You can specify a single field name, a comma-separated list of names, or work with wildcards.You can also sepcify Array Operations.The select will be available, tentatively from october 2023.The exact date will be announced via changelog.
|
|
23313
23204
|
* @param ids - The IDs of the requested products (comma-separated, max 24 IDs).
|
|
23314
23205
|
* @param inventoryIds - The optional inventory list IDs, for which the availability should be shown (comma-separated, max 5 inventoryListIDs).
|
|
23315
23206
|
* @param currency - The currency mnemonic specified for price.
|
|
@@ -23327,10 +23218,11 @@ declare namespace ShopperProductsTypes {
|
|
|
23327
23218
|
getProducts(options?: RequireParametersUnlessAllAreOptional<{
|
|
23328
23219
|
parameters?: CompositeParameters<{
|
|
23329
23220
|
organizationId: string;
|
|
23221
|
+
select?: string;
|
|
23330
23222
|
ids: string;
|
|
23331
23223
|
inventoryIds?: string;
|
|
23332
23224
|
currency?: string;
|
|
23333
|
-
expand?: string
|
|
23225
|
+
expand?: Array<string>;
|
|
23334
23226
|
locale?: string;
|
|
23335
23227
|
allImages?: boolean;
|
|
23336
23228
|
perPricebook?: boolean;
|
|
@@ -23346,6 +23238,7 @@ declare namespace ShopperProductsTypes {
|
|
|
23346
23238
|
* @param options - An object containing the options for this method.
|
|
23347
23239
|
* @param parameters - An object containing the parameters for this method.
|
|
23348
23240
|
* @param organizationId -
|
|
23241
|
+
* @param select - The property selector declaring which fields are included into the response payload. You can specify a single field name, a comma-separated list of names, or work with wildcards.You can also sepcify Array Operations.The select will be available, tentatively from october 2023.The exact date will be announced via changelog.
|
|
23349
23242
|
* @param ids - The IDs of the requested products (comma-separated, max 24 IDs).
|
|
23350
23243
|
* @param inventoryIds - The optional inventory list IDs, for which the availability should be shown (comma-separated, max 5 inventoryListIDs).
|
|
23351
23244
|
* @param currency - The currency mnemonic specified for price.
|
|
@@ -23363,10 +23256,11 @@ declare namespace ShopperProductsTypes {
|
|
|
23363
23256
|
getProducts<T extends boolean>(options?: RequireParametersUnlessAllAreOptional<{
|
|
23364
23257
|
parameters?: CompositeParameters<{
|
|
23365
23258
|
organizationId: string;
|
|
23259
|
+
select?: string;
|
|
23366
23260
|
ids: string;
|
|
23367
23261
|
inventoryIds?: string;
|
|
23368
23262
|
currency?: string;
|
|
23369
|
-
expand?: string
|
|
23263
|
+
expand?: Array<string>;
|
|
23370
23264
|
locale?: string;
|
|
23371
23265
|
allImages?: boolean;
|
|
23372
23266
|
perPricebook?: boolean;
|
|
@@ -23385,6 +23279,7 @@ declare namespace ShopperProductsTypes {
|
|
|
23385
23279
|
* @param parameters - An object containing the parameters for this method.
|
|
23386
23280
|
* @param organizationId -
|
|
23387
23281
|
* @param id - The ID of the requested product.
|
|
23282
|
+
* @param select - The property selector declaring which fields are included into the response payload. You can specify a single field name, a comma-separated list of names, or work with wildcards.You can also sepcify Array Operations. The select will be available, tentatively from october 2023.The exact date will be announced via changelog.
|
|
23388
23283
|
* @param inventoryIds - The optional inventory list IDs, for which the availability should be shown (comma-separated, max 5 inventoryListIDs).
|
|
23389
23284
|
* @param currency - The currency mnemonic specified for price.
|
|
23390
23285
|
* @param expand - The expand parameter. A comma separated list with the allowed values (availability, bundled_products, links, promotions, options, images, prices, variations, set_products, recommendations). All expand parameters are used for the request when no expand parameter is provided. The value "none" may be used to turn off all expand options.
|
|
@@ -23402,9 +23297,10 @@ declare namespace ShopperProductsTypes {
|
|
|
23402
23297
|
parameters?: CompositeParameters<{
|
|
23403
23298
|
organizationId: string;
|
|
23404
23299
|
id: string;
|
|
23300
|
+
select?: string;
|
|
23405
23301
|
inventoryIds?: string;
|
|
23406
23302
|
currency?: string;
|
|
23407
|
-
expand?: string
|
|
23303
|
+
expand?: Array<string>;
|
|
23408
23304
|
locale?: string;
|
|
23409
23305
|
allImages?: boolean;
|
|
23410
23306
|
perPricebook?: boolean;
|
|
@@ -23421,6 +23317,7 @@ declare namespace ShopperProductsTypes {
|
|
|
23421
23317
|
* @param parameters - An object containing the parameters for this method.
|
|
23422
23318
|
* @param organizationId -
|
|
23423
23319
|
* @param id - The ID of the requested product.
|
|
23320
|
+
* @param select - The property selector declaring which fields are included into the response payload. You can specify a single field name, a comma-separated list of names, or work with wildcards.You can also sepcify Array Operations. The select will be available, tentatively from october 2023.The exact date will be announced via changelog.
|
|
23424
23321
|
* @param inventoryIds - The optional inventory list IDs, for which the availability should be shown (comma-separated, max 5 inventoryListIDs).
|
|
23425
23322
|
* @param currency - The currency mnemonic specified for price.
|
|
23426
23323
|
* @param expand - The expand parameter. A comma separated list with the allowed values (availability, bundled_products, links, promotions, options, images, prices, variations, set_products, recommendations). All expand parameters are used for the request when no expand parameter is provided. The value "none" may be used to turn off all expand options.
|
|
@@ -23438,9 +23335,10 @@ declare namespace ShopperProductsTypes {
|
|
|
23438
23335
|
parameters?: CompositeParameters<{
|
|
23439
23336
|
organizationId: string;
|
|
23440
23337
|
id: string;
|
|
23338
|
+
select?: string;
|
|
23441
23339
|
inventoryIds?: string;
|
|
23442
23340
|
currency?: string;
|
|
23443
|
-
expand?: string
|
|
23341
|
+
expand?: Array<string>;
|
|
23444
23342
|
locale?: string;
|
|
23445
23343
|
allImages?: boolean;
|
|
23446
23344
|
perPricebook?: boolean;
|
|
@@ -25592,9 +25490,10 @@ declare class TemplateURL extends URL {
|
|
|
25592
25490
|
*/
|
|
25593
25491
|
replaceOrigin(newOriginString: string): void;
|
|
25594
25492
|
/**
|
|
25595
|
-
* Add append an object literal of query parameters to the URL object.
|
|
25596
|
-
*
|
|
25597
|
-
*
|
|
25493
|
+
* Add append an object literal of query parameters to the URL object. SCAPI expects
|
|
25494
|
+
* Arrays to be comma separated where \{ a: ["1", "2"] \} becomes ?a=1,2.
|
|
25495
|
+
* The 'refine' query parameter is an exception, where SCAPI expects the the "repeat"
|
|
25496
|
+
* convention where \{ refine: ["1", "2"] \} becomes "?refine=1&refine=2"
|
|
25598
25497
|
*/
|
|
25599
25498
|
addQueryParams(queryParams?: QueryParameters): void;
|
|
25600
25499
|
/**
|
|
@@ -25754,20 +25653,6 @@ declare namespace helpers {
|
|
|
25754
25653
|
} & {
|
|
25755
25654
|
[key: string]: any;
|
|
25756
25655
|
};
|
|
25757
|
-
type CredQualityUserResponse = {
|
|
25758
|
-
tenantId: string;
|
|
25759
|
-
username: string;
|
|
25760
|
-
email: string;
|
|
25761
|
-
credQualityMeasure: number;
|
|
25762
|
-
pwdStrengthMeasure: number;
|
|
25763
|
-
pwdQualityMeasure: number;
|
|
25764
|
-
credChangeCount: number;
|
|
25765
|
-
loginCount: number;
|
|
25766
|
-
lastLoginDatetime: any;
|
|
25767
|
-
lastCredCheckDatetime: any;
|
|
25768
|
-
} & {
|
|
25769
|
-
[key: string]: any;
|
|
25770
|
-
};
|
|
25771
25656
|
type PasswordLessLoginTokenRequest = {
|
|
25772
25657
|
grant_type: string;
|
|
25773
25658
|
hint: string;
|
|
@@ -25822,6 +25707,7 @@ declare namespace helpers {
|
|
|
25822
25707
|
id_token: string;
|
|
25823
25708
|
refresh_token: string;
|
|
25824
25709
|
expires_in: number;
|
|
25710
|
+
refresh_token_expires_in: any;
|
|
25825
25711
|
token_type: string;
|
|
25826
25712
|
usid: string;
|
|
25827
25713
|
customer_id: string;
|
|
@@ -26129,7 +26015,6 @@ declare namespace helpers {
|
|
|
26129
26015
|
* All query parameters that are used by at least one ShopperLogin method.
|
|
26130
26016
|
*/
|
|
26131
26017
|
type ShopperLoginQueryParameters = {
|
|
26132
|
-
username?: string;
|
|
26133
26018
|
client_id?: string;
|
|
26134
26019
|
refresh_token?: string;
|
|
26135
26020
|
channel_id?: string;
|
|
@@ -26170,7 +26055,7 @@ declare namespace helpers {
|
|
|
26170
26055
|
* ```
|
|
26171
26056
|
*
|
|
26172
26057
|
* <span style="font-size:.7em; display:block; text-align: right">
|
|
26173
|
-
* API Version: 1.39.
|
|
26058
|
+
* API Version: 1.39.17<br />
|
|
26174
26059
|
* Last Updated: <br />
|
|
26175
26060
|
* </span>
|
|
26176
26061
|
|
|
@@ -26184,52 +26069,6 @@ declare namespace helpers {
|
|
|
26184
26069
|
};
|
|
26185
26070
|
static readonly defaultBaseUri = "https://{shortCode}.api.commercecloud.salesforce.com/shopper/auth/{version}";
|
|
26186
26071
|
constructor(config: ClientConfigInit<ConfigParameters>);
|
|
26187
|
-
/**
|
|
26188
|
-
* Get credential quality statistics for a user.
|
|
26189
|
-
*
|
|
26190
|
-
* If you would like to get a raw Response object use the other retrieveCredQualityUserInfo function.
|
|
26191
|
-
*
|
|
26192
|
-
* @param options - An object containing the options for this method.
|
|
26193
|
-
* @param parameters - An object containing the parameters for this method.
|
|
26194
|
-
* @param organizationId -
|
|
26195
|
-
* @param username - User's login ID or email address.
|
|
26196
|
-
* @param headers - An object literal of key value pairs of the headers to be
|
|
26197
|
-
* sent with this request.
|
|
26198
|
-
*
|
|
26199
|
-
* @returns A promise of type CredQualityUserResponse.
|
|
26200
|
-
*
|
|
26201
|
-
*/
|
|
26202
|
-
retrieveCredQualityUserInfo(options?: RequireParametersUnlessAllAreOptional<{
|
|
26203
|
-
parameters?: CompositeParameters<{
|
|
26204
|
-
organizationId: string;
|
|
26205
|
-
username: string;
|
|
26206
|
-
}, ConfigParameters>;
|
|
26207
|
-
headers?: {
|
|
26208
|
-
[key: string]: string;
|
|
26209
|
-
};
|
|
26210
|
-
}>): Promise<CredQualityUserResponse>;
|
|
26211
|
-
/**
|
|
26212
|
-
* Get credential quality statistics for a user.
|
|
26213
|
-
*
|
|
26214
|
-
* @param options - An object containing the options for this method.
|
|
26215
|
-
* @param parameters - An object containing the parameters for this method.
|
|
26216
|
-
* @param organizationId -
|
|
26217
|
-
* @param username - User's login ID or email address.
|
|
26218
|
-
* @param headers - An object literal of key value pairs of the headers to be
|
|
26219
|
-
* sent with this request.
|
|
26220
|
-
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
26221
|
-
* @returns A promise of type Response if rawResponse is true, a promise of type CredQualityUserResponse otherwise.
|
|
26222
|
-
*
|
|
26223
|
-
*/
|
|
26224
|
-
retrieveCredQualityUserInfo<T extends boolean>(options?: RequireParametersUnlessAllAreOptional<{
|
|
26225
|
-
parameters?: CompositeParameters<{
|
|
26226
|
-
organizationId: string;
|
|
26227
|
-
username: string;
|
|
26228
|
-
}, ConfigParameters>;
|
|
26229
|
-
headers?: {
|
|
26230
|
-
[key: string]: string;
|
|
26231
|
-
};
|
|
26232
|
-
}>, rawResponse?: T): Promise<T extends true ? Response : CredQualityUserResponse>;
|
|
26233
26072
|
/**
|
|
26234
26073
|
* Logs in a shopper with credentials that are managed by a B2C Commerce instance (ECOM). It follows the authorization code grant flow as defined by the OAuth 2.1 standard. It also uses a proof key for code exchange (PKCE).
|
|
26235
26074
|
|