commerce-sdk-isomorphic 4.0.0-nightly-20251013080807 → 4.0.0-nightly-20251015080804
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/helpers.cjs.d.ts +31 -2
- package/lib/helpers.cjs.js +1 -1
- package/lib/helpers.d.ts +31 -2
- package/lib/helpers.js +1 -1
- package/lib/index.cjs.d.ts +93 -6
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.d.ts +93 -6
- package/lib/index.esm.js +1 -1
- package/lib/shopperBaskets.cjs.js +1 -1
- package/lib/shopperBaskets.js +1 -1
- package/lib/shopperBasketsv2.cjs.js +1 -1
- package/lib/shopperBasketsv2.js +1 -1
- package/lib/shopperConsents.cjs.js +1 -1
- package/lib/shopperConsents.js +1 -1
- package/lib/shopperContext.cjs.js +1 -1
- package/lib/shopperContext.js +1 -1
- package/lib/shopperCustomers.cjs.js +1 -1
- package/lib/shopperCustomers.js +1 -1
- package/lib/shopperExperience.cjs.js +1 -1
- package/lib/shopperExperience.js +1 -1
- package/lib/shopperGiftCertificates.cjs.js +1 -1
- package/lib/shopperGiftCertificates.js +1 -1
- package/lib/shopperLogin.cjs.d.ts +62 -4
- package/lib/shopperLogin.cjs.js +1 -1
- package/lib/shopperLogin.d.ts +62 -4
- package/lib/shopperLogin.js +1 -1
- package/lib/shopperOrders.cjs.js +1 -1
- package/lib/shopperOrders.js +1 -1
- package/lib/shopperProducts.cjs.js +1 -1
- package/lib/shopperProducts.js +1 -1
- package/lib/shopperPromotions.cjs.js +1 -1
- package/lib/shopperPromotions.js +1 -1
- package/lib/shopperSearch.cjs.js +1 -1
- package/lib/shopperSearch.js +1 -1
- package/lib/shopperSeo.cjs.js +1 -1
- package/lib/shopperSeo.js +1 -1
- package/lib/shopperStores.cjs.js +1 -1
- package/lib/shopperStores.js +1 -1
- package/lib/version.cjs.d.ts +1 -1
- package/lib/version.cjs.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/lib/shopperLogin.d.ts
CHANGED
|
@@ -228,7 +228,9 @@ type authorizeCustomerQueryParameters = {
|
|
|
228
228
|
type authorizeCustomerPathParameters = {
|
|
229
229
|
organizationId: string;
|
|
230
230
|
};
|
|
231
|
-
type authorizePasswordlessCustomerQueryParameters = {
|
|
231
|
+
type authorizePasswordlessCustomerQueryParameters = {
|
|
232
|
+
register_customer?: string;
|
|
233
|
+
};
|
|
232
234
|
type authorizePasswordlessCustomerPathParameters = {
|
|
233
235
|
organizationId: string;
|
|
234
236
|
};
|
|
@@ -239,6 +241,10 @@ type authorizePasswordlessCustomerBodyType = {
|
|
|
239
241
|
usid?: string;
|
|
240
242
|
channel_id: string;
|
|
241
243
|
callback_uri?: string;
|
|
244
|
+
last_name?: string;
|
|
245
|
+
email?: string;
|
|
246
|
+
first_name?: string;
|
|
247
|
+
phone_number?: string;
|
|
242
248
|
};
|
|
243
249
|
type getAccessTokenQueryParameters = {};
|
|
244
250
|
type getAccessTokenPathParameters = {
|
|
@@ -506,9 +512,14 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
506
512
|
"user_id",
|
|
507
513
|
"mode",
|
|
508
514
|
"channel_id",
|
|
515
|
+
"register_customer",
|
|
509
516
|
"locale",
|
|
510
517
|
"usid",
|
|
511
|
-
"callback_uri"
|
|
518
|
+
"callback_uri",
|
|
519
|
+
"last_name",
|
|
520
|
+
"email",
|
|
521
|
+
"first_name",
|
|
522
|
+
"phone_number"
|
|
512
523
|
];
|
|
513
524
|
readonly authorizePasswordlessCustomerRequired: readonly [
|
|
514
525
|
"organizationId",
|
|
@@ -922,6 +933,10 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
922
933
|
* @param options - An object containing the options for this method.
|
|
923
934
|
* @param options.parameters - An object containing the parameters for this method.
|
|
924
935
|
* @param options.parameters.organizationId - An identifier for the organization the request is being made by
|
|
936
|
+
* @param options.parameters.register_customer - When set to `true`, creates a new customer profile in B2C Commerce if one doesn't already exist. Requires `last_name` and `email` body parameters unless `user_id` is an email address. Optionally accepts `first_name` and `phone_number` body parameters.
|
|
937
|
+
If the customer profile doesn't exist, it is created when the TOTP is validated via the `passwordless/token` endpoint.
|
|
938
|
+
|
|
939
|
+
When set to `false` (or omitted), no customer profile is created in B2C Commerce.
|
|
925
940
|
* @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
|
|
926
941
|
* @param options.body - The data to send as the request body.
|
|
927
942
|
* @param options.body.user_id - User ID for logging in.
|
|
@@ -930,12 +945,17 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
930
945
|
* @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
|
|
931
946
|
* @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
|
|
932
947
|
* @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
|
|
948
|
+
* @param options.body.last_name - The user\'s last name. Required when `register_customer` is `true`. The `last_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
949
|
+
* @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
950
|
+
* @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
951
|
+
* @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
933
952
|
*
|
|
934
953
|
* @returns A promise of type string.
|
|
935
954
|
*/
|
|
936
955
|
authorizePasswordlessCustomer(options?: RequireParametersUnlessAllAreOptional<{
|
|
937
956
|
parameters?: CompositeParameters<{
|
|
938
957
|
organizationId: string;
|
|
958
|
+
register_customer?: string;
|
|
939
959
|
} & QueryParameters, ConfigParameters>;
|
|
940
960
|
headers?: {
|
|
941
961
|
[key: string]: string;
|
|
@@ -948,6 +968,10 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
948
968
|
* @param options - An object containing the options for this method.
|
|
949
969
|
* @param options.parameters - An object containing the parameters for this method.
|
|
950
970
|
* @param options.parameters.organizationId - An identifier for the organization the request is being made by
|
|
971
|
+
* @param options.parameters.register_customer - When set to `true`, creates a new customer profile in B2C Commerce if one doesn't already exist. Requires `last_name` and `email` body parameters unless `user_id` is an email address. Optionally accepts `first_name` and `phone_number` body parameters.
|
|
972
|
+
If the customer profile doesn't exist, it is created when the TOTP is validated via the `passwordless/token` endpoint.
|
|
973
|
+
|
|
974
|
+
When set to `false` (or omitted), no customer profile is created in B2C Commerce.
|
|
951
975
|
* @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
|
|
952
976
|
* @param options.body - The data to send as the request body.
|
|
953
977
|
* @param options.body.user_id - User ID for logging in.
|
|
@@ -956,6 +980,10 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
956
980
|
* @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
|
|
957
981
|
* @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
|
|
958
982
|
* @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
|
|
983
|
+
* @param options.body.last_name - The user\'s last name. Required when `register_customer` is `true`. The `last_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
984
|
+
* @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
985
|
+
* @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
986
|
+
* @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
959
987
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
960
988
|
*
|
|
961
989
|
* @returns A promise of type Response if rawResponse is true, a promise of type string otherwise.
|
|
@@ -963,6 +991,7 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
963
991
|
authorizePasswordlessCustomer<T extends boolean>(options?: RequireParametersUnlessAllAreOptional<{
|
|
964
992
|
parameters?: CompositeParameters<{
|
|
965
993
|
organizationId: string;
|
|
994
|
+
register_customer?: string;
|
|
966
995
|
} & QueryParameters, ConfigParameters>;
|
|
967
996
|
headers?: {
|
|
968
997
|
[key: string]: string;
|
|
@@ -2073,7 +2102,9 @@ declare namespace ShopperLoginApiTypes {
|
|
|
2073
2102
|
type authorizeCustomerPathParameters = {
|
|
2074
2103
|
organizationId: string;
|
|
2075
2104
|
};
|
|
2076
|
-
type authorizePasswordlessCustomerQueryParameters = {
|
|
2105
|
+
type authorizePasswordlessCustomerQueryParameters = {
|
|
2106
|
+
register_customer?: string;
|
|
2107
|
+
};
|
|
2077
2108
|
type authorizePasswordlessCustomerPathParameters = {
|
|
2078
2109
|
organizationId: string;
|
|
2079
2110
|
};
|
|
@@ -2084,6 +2115,10 @@ declare namespace ShopperLoginApiTypes {
|
|
|
2084
2115
|
usid?: string;
|
|
2085
2116
|
channel_id: string;
|
|
2086
2117
|
callback_uri?: string;
|
|
2118
|
+
last_name?: string;
|
|
2119
|
+
email?: string;
|
|
2120
|
+
first_name?: string;
|
|
2121
|
+
phone_number?: string;
|
|
2087
2122
|
};
|
|
2088
2123
|
type getAccessTokenQueryParameters = {};
|
|
2089
2124
|
type getAccessTokenPathParameters = {
|
|
@@ -2351,9 +2386,14 @@ declare namespace ShopperLoginApiTypes {
|
|
|
2351
2386
|
"user_id",
|
|
2352
2387
|
"mode",
|
|
2353
2388
|
"channel_id",
|
|
2389
|
+
"register_customer",
|
|
2354
2390
|
"locale",
|
|
2355
2391
|
"usid",
|
|
2356
|
-
"callback_uri"
|
|
2392
|
+
"callback_uri",
|
|
2393
|
+
"last_name",
|
|
2394
|
+
"email",
|
|
2395
|
+
"first_name",
|
|
2396
|
+
"phone_number"
|
|
2357
2397
|
];
|
|
2358
2398
|
readonly authorizePasswordlessCustomerRequired: readonly [
|
|
2359
2399
|
"organizationId",
|
|
@@ -2767,6 +2807,10 @@ declare namespace ShopperLoginApiTypes {
|
|
|
2767
2807
|
* @param options - An object containing the options for this method.
|
|
2768
2808
|
* @param options.parameters - An object containing the parameters for this method.
|
|
2769
2809
|
* @param options.parameters.organizationId - An identifier for the organization the request is being made by
|
|
2810
|
+
* @param options.parameters.register_customer - When set to `true`, creates a new customer profile in B2C Commerce if one doesn't already exist. Requires `last_name` and `email` body parameters unless `user_id` is an email address. Optionally accepts `first_name` and `phone_number` body parameters.
|
|
2811
|
+
If the customer profile doesn't exist, it is created when the TOTP is validated via the `passwordless/token` endpoint.
|
|
2812
|
+
|
|
2813
|
+
When set to `false` (or omitted), no customer profile is created in B2C Commerce.
|
|
2770
2814
|
* @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
|
|
2771
2815
|
* @param options.body - The data to send as the request body.
|
|
2772
2816
|
* @param options.body.user_id - User ID for logging in.
|
|
@@ -2775,12 +2819,17 @@ declare namespace ShopperLoginApiTypes {
|
|
|
2775
2819
|
* @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
|
|
2776
2820
|
* @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
|
|
2777
2821
|
* @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
|
|
2822
|
+
* @param options.body.last_name - The user\'s last name. Required when `register_customer` is `true`. The `last_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
2823
|
+
* @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
2824
|
+
* @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
2825
|
+
* @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
2778
2826
|
*
|
|
2779
2827
|
* @returns A promise of type string.
|
|
2780
2828
|
*/
|
|
2781
2829
|
authorizePasswordlessCustomer(options?: RequireParametersUnlessAllAreOptional<{
|
|
2782
2830
|
parameters?: CompositeParameters<{
|
|
2783
2831
|
organizationId: string;
|
|
2832
|
+
register_customer?: string;
|
|
2784
2833
|
} & QueryParameters, ConfigParameters>;
|
|
2785
2834
|
headers?: {
|
|
2786
2835
|
[key: string]: string;
|
|
@@ -2793,6 +2842,10 @@ declare namespace ShopperLoginApiTypes {
|
|
|
2793
2842
|
* @param options - An object containing the options for this method.
|
|
2794
2843
|
* @param options.parameters - An object containing the parameters for this method.
|
|
2795
2844
|
* @param options.parameters.organizationId - An identifier for the organization the request is being made by
|
|
2845
|
+
* @param options.parameters.register_customer - When set to `true`, creates a new customer profile in B2C Commerce if one doesn't already exist. Requires `last_name` and `email` body parameters unless `user_id` is an email address. Optionally accepts `first_name` and `phone_number` body parameters.
|
|
2846
|
+
If the customer profile doesn't exist, it is created when the TOTP is validated via the `passwordless/token` endpoint.
|
|
2847
|
+
|
|
2848
|
+
When set to `false` (or omitted), no customer profile is created in B2C Commerce.
|
|
2796
2849
|
* @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
|
|
2797
2850
|
* @param options.body - The data to send as the request body.
|
|
2798
2851
|
* @param options.body.user_id - User ID for logging in.
|
|
@@ -2801,6 +2854,10 @@ declare namespace ShopperLoginApiTypes {
|
|
|
2801
2854
|
* @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
|
|
2802
2855
|
* @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
|
|
2803
2856
|
* @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
|
|
2857
|
+
* @param options.body.last_name - The user\'s last name. Required when `register_customer` is `true`. The `last_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
2858
|
+
* @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
2859
|
+
* @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
2860
|
+
* @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
2804
2861
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
2805
2862
|
*
|
|
2806
2863
|
* @returns A promise of type Response if rawResponse is true, a promise of type string otherwise.
|
|
@@ -2808,6 +2865,7 @@ declare namespace ShopperLoginApiTypes {
|
|
|
2808
2865
|
authorizePasswordlessCustomer<T extends boolean>(options?: RequireParametersUnlessAllAreOptional<{
|
|
2809
2866
|
parameters?: CompositeParameters<{
|
|
2810
2867
|
organizationId: string;
|
|
2868
|
+
register_customer?: string;
|
|
2811
2869
|
} & QueryParameters, ConfigParameters>;
|
|
2812
2870
|
headers?: {
|
|
2813
2871
|
[key: string]: string;
|