commerce-sdk-isomorphic 3.0.0 → 3.1.1
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 +10 -0
- package/lib/index.cjs.d.ts +7 -0
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.d.ts +7 -0
- package/lib/index.esm.js +1 -1
- package/package.json +2 -2
package/lib/index.esm.d.ts
CHANGED
|
@@ -32974,6 +32974,7 @@ declare namespace helpers {
|
|
|
32974
32974
|
* @param credentials.clientSecret - secret associated with client ID
|
|
32975
32975
|
* @param parameters - parameters to pass in the API calls.
|
|
32976
32976
|
* @param parameters.usid? - Unique Shopper Identifier to enable personalization.
|
|
32977
|
+
* @param parameters.dnt? - Optional parameter to enable Do Not Track (DNT) for the user.
|
|
32977
32978
|
* @returns TokenResponse
|
|
32978
32979
|
*/
|
|
32979
32980
|
function loginGuestUserPrivate(slasClient: ShopperLogin<{
|
|
@@ -32983,6 +32984,7 @@ declare namespace helpers {
|
|
|
32983
32984
|
siteId: string;
|
|
32984
32985
|
}>, parameters: {
|
|
32985
32986
|
usid?: string;
|
|
32987
|
+
dnt?: boolean;
|
|
32986
32988
|
}, credentials: {
|
|
32987
32989
|
clientSecret: string;
|
|
32988
32990
|
}): Promise<TokenResponse>;
|
|
@@ -32992,6 +32994,7 @@ declare namespace helpers {
|
|
|
32992
32994
|
* @param parameters - parameters to pass in the API calls.
|
|
32993
32995
|
* @param parameters.redirectURI - Per OAuth standard, a valid app route. Must be listed in your SLAS configuration. On server, this will not be actually called. On browser, this will be called, but ignored.
|
|
32994
32996
|
* @param parameters.usid? - Unique Shopper Identifier to enable personalization.
|
|
32997
|
+
* @param parameters.dnt? - Optional parameter to enable Do Not Track (DNT) for the user.
|
|
32995
32998
|
* @returns TokenResponse
|
|
32996
32999
|
*/
|
|
32997
33000
|
function loginGuestUser(slasClient: ShopperLogin<{
|
|
@@ -33002,6 +33005,7 @@ declare namespace helpers {
|
|
|
33002
33005
|
}>, parameters: {
|
|
33003
33006
|
redirectURI: string;
|
|
33004
33007
|
usid?: string;
|
|
33008
|
+
dnt?: boolean;
|
|
33005
33009
|
}): Promise<TokenResponse>;
|
|
33006
33010
|
/**
|
|
33007
33011
|
* A single function to execute the ShopperLogin Public Client Registered User B2C Login with proof key for code exchange flow as described in the [API documentation](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-login:Summary).
|
|
@@ -33014,6 +33018,7 @@ declare namespace helpers {
|
|
|
33014
33018
|
* @param parameters - parameters to pass in the API calls.
|
|
33015
33019
|
* @param parameters.redirectURI - Per OAuth standard, a valid app route. Must be listed in your SLAS configuration. On server, this will not be actually called. On browser, this will be called, but ignored.
|
|
33016
33020
|
* @param parameters.usid? - Unique Shopper Identifier to enable personalization.
|
|
33021
|
+
* @param parameters.dnt? - Optional parameter to enable Do Not Track (DNT) for the user.
|
|
33017
33022
|
* @returns TokenResponse
|
|
33018
33023
|
*/
|
|
33019
33024
|
function loginRegisteredUserB2C(slasClient: ShopperLogin<{
|
|
@@ -33028,6 +33033,7 @@ declare namespace helpers {
|
|
|
33028
33033
|
}, parameters: {
|
|
33029
33034
|
redirectURI: string;
|
|
33030
33035
|
usid?: string;
|
|
33036
|
+
dnt?: boolean;
|
|
33031
33037
|
}): Promise<TokenResponse>;
|
|
33032
33038
|
/**
|
|
33033
33039
|
* Exchange a refresh token for a new access token.
|
|
@@ -33046,6 +33052,7 @@ declare namespace helpers {
|
|
|
33046
33052
|
siteId: string;
|
|
33047
33053
|
}>, parameters: {
|
|
33048
33054
|
refreshToken: string;
|
|
33055
|
+
dnt?: boolean;
|
|
33049
33056
|
}, credentials?: {
|
|
33050
33057
|
clientSecret?: string;
|
|
33051
33058
|
}): Promise<TokenResponse>;
|