commerce-sdk-isomorphic 2.1.0 → 3.1.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.
@@ -8551,7 +8551,7 @@ type ShopperContextsParameters = ShopperContextsPathParameters & BaseUriParamete
8551
8551
  * ```
8552
8552
  *
8553
8553
  * <span style="font-size:.7em; display:block; text-align: right">
8554
- * API Version: 0.0.28<br />
8554
+ * API Version: 0.0.29<br />
8555
8555
  * Last Updated: <br />
8556
8556
  * </span>
8557
8557
  *
@@ -8606,6 +8606,8 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
8606
8606
  };
8607
8607
  /**
8608
8608
  * Gets the shopper's context based on the shopperJWT.
8609
+
8610
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
8609
8611
  *
8610
8612
  * If you would like to get a raw Response object use the other getShopperContext function.
8611
8613
  *
@@ -8613,7 +8615,7 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
8613
8615
  * @param parameters - An object containing the parameters for this method.
8614
8616
  * @param organizationId -
8615
8617
  * @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
8616
- * @param siteId - The identifier of the site to which the request is being sent. With B2C Commerce release 24.5, all new implementations of Shopper Context require the `siteId` query parameter to be passed. Existing customers with Shopper Context implementations should start including `siteId` going forward. Starting July 31 2024, `siteId` will be required for all customers, and a bad request response code will be returned for requests without a `siteId`.
8618
+ * @param siteId - The identifier of the site to which the request is being sent. With B2C Commerce release 24.5, all new implementations of Shopper Context require the `siteId` query parameter to be passed. Existing customers with Shopper Context implementations should start including `siteId` going forward. Starting January 2025, `siteId` will be required for all customers, and a bad request response code will be returned for requests without a `siteId`.
8617
8619
  * @param headers - An object literal of key value pairs of the headers to be
8618
8620
  * sent with this request.
8619
8621
  *
@@ -8634,12 +8636,14 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
8634
8636
  }>): Promise<ShopperContext>;
8635
8637
  /**
8636
8638
  * Gets the shopper's context based on the shopperJWT.
8639
+
8640
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
8637
8641
  *
8638
8642
  * @param options - An object containing the options for this method.
8639
8643
  * @param parameters - An object containing the parameters for this method.
8640
8644
  * @param organizationId -
8641
8645
  * @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
8642
- * @param siteId - The identifier of the site to which the request is being sent. With B2C Commerce release 24.5, all new implementations of Shopper Context require the `siteId` query parameter to be passed. Existing customers with Shopper Context implementations should start including `siteId` going forward. Starting July 31 2024, `siteId` will be required for all customers, and a bad request response code will be returned for requests without a `siteId`.
8646
+ * @param siteId - The identifier of the site to which the request is being sent. With B2C Commerce release 24.5, all new implementations of Shopper Context require the `siteId` query parameter to be passed. Existing customers with Shopper Context implementations should start including `siteId` going forward. Starting January 2025, `siteId` will be required for all customers, and a bad request response code will be returned for requests without a `siteId`.
8643
8647
  * @param headers - An object literal of key value pairs of the headers to be
8644
8648
  * sent with this request.
8645
8649
  * @param rawResponse - Set to true to return entire Response object instead of DTO.
@@ -8660,6 +8664,8 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
8660
8664
  }>, rawResponse?: T): Promise<T extends true ? Response : ShopperContext>;
8661
8665
  /**
8662
8666
  * Creates the shopper's context based on shopperJWT.
8667
+
8668
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
8663
8669
  *
8664
8670
  * If you would like to get a raw Response object use the other createShopperContext function.
8665
8671
  *
@@ -8698,6 +8704,8 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
8698
8704
  }>): Promise<void | void>;
8699
8705
  /**
8700
8706
  * Creates the shopper's context based on shopperJWT.
8707
+
8708
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
8701
8709
  *
8702
8710
  * @param options - An object containing the options for this method.
8703
8711
  * @param parameters - An object containing the parameters for this method.
@@ -8734,6 +8742,8 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
8734
8742
  }>, rawResponse?: T): Promise<T extends true ? Response : void | void>;
8735
8743
  /**
8736
8744
  * Gets the shopper's context based on the shopperJWT.
8745
+
8746
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
8737
8747
  *
8738
8748
  * If you would like to get a raw Response object use the other deleteShopperContext function.
8739
8749
  *
@@ -8762,6 +8772,8 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
8762
8772
  }>): Promise<void>;
8763
8773
  /**
8764
8774
  * Gets the shopper's context based on the shopperJWT.
8775
+
8776
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
8765
8777
  *
8766
8778
  * @param options - An object containing the options for this method.
8767
8779
  * @param parameters - An object containing the parameters for this method.
@@ -8788,6 +8800,8 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
8788
8800
  }>, rawResponse?: T): Promise<T extends true ? Response : void>;
8789
8801
  /**
8790
8802
  * Updates the shopper's context based on the Shopper JWT. If the shopper context exists, it's updated with the patch body. If a `custom qualifier/assignment qualifer` or an `effectiveDateTime` or a `sourceCode` or a `customerGroupIds` is already present in the existing shopper context, its value is replaced by the corresponding value from the patch body. If a `custom qualifers'` or a `assignment qualifiers'` value is set to `null`, it's deleted from existing shopper context. If `effectiveDateTime` or `sourceCode` value is set to an empty string (\"\"), it's deleted from existing shopper context. If `effectiveDateTime` or `sourceCode` value is set to `null`, it's ignored. If an `effectiveDateTime` or `sourceCode` or `custom/assignment qualifiiers'` value is new, it's added to the existing Shopper context. If `customerGroupIds` is set to empty array `[]` the existing value in shopper context is deleted.
8803
+
8804
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
8791
8805
  *
8792
8806
  * If you would like to get a raw Response object use the other updateShopperContext function.
8793
8807
  *
@@ -8826,6 +8840,8 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
8826
8840
  }>): Promise<ShopperContext>;
8827
8841
  /**
8828
8842
  * Updates the shopper's context based on the Shopper JWT. If the shopper context exists, it's updated with the patch body. If a `custom qualifier/assignment qualifer` or an `effectiveDateTime` or a `sourceCode` or a `customerGroupIds` is already present in the existing shopper context, its value is replaced by the corresponding value from the patch body. If a `custom qualifers'` or a `assignment qualifiers'` value is set to `null`, it's deleted from existing shopper context. If `effectiveDateTime` or `sourceCode` value is set to an empty string (\"\"), it's deleted from existing shopper context. If `effectiveDateTime` or `sourceCode` value is set to `null`, it's ignored. If an `effectiveDateTime` or `sourceCode` or `custom/assignment qualifiiers'` value is new, it's added to the existing Shopper context. If `customerGroupIds` is set to empty array `[]` the existing value in shopper context is deleted.
8843
+
8844
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
8829
8845
  *
8830
8846
  * @param options - An object containing the options for this method.
8831
8847
  * @param parameters - An object containing the parameters for this method.
@@ -9278,7 +9294,7 @@ declare namespace ShopperContextsTypes {
9278
9294
  * ```
9279
9295
  *
9280
9296
  * <span style="font-size:.7em; display:block; text-align: right">
9281
- * API Version: 0.0.28<br />
9297
+ * API Version: 0.0.29<br />
9282
9298
  * Last Updated: <br />
9283
9299
  * </span>
9284
9300
  *
@@ -9333,6 +9349,8 @@ declare namespace ShopperContextsTypes {
9333
9349
  };
9334
9350
  /**
9335
9351
  * Gets the shopper's context based on the shopperJWT.
9352
+
9353
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
9336
9354
  *
9337
9355
  * If you would like to get a raw Response object use the other getShopperContext function.
9338
9356
  *
@@ -9340,7 +9358,7 @@ declare namespace ShopperContextsTypes {
9340
9358
  * @param parameters - An object containing the parameters for this method.
9341
9359
  * @param organizationId -
9342
9360
  * @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
9343
- * @param siteId - The identifier of the site to which the request is being sent. With B2C Commerce release 24.5, all new implementations of Shopper Context require the `siteId` query parameter to be passed. Existing customers with Shopper Context implementations should start including `siteId` going forward. Starting July 31 2024, `siteId` will be required for all customers, and a bad request response code will be returned for requests without a `siteId`.
9361
+ * @param siteId - The identifier of the site to which the request is being sent. With B2C Commerce release 24.5, all new implementations of Shopper Context require the `siteId` query parameter to be passed. Existing customers with Shopper Context implementations should start including `siteId` going forward. Starting January 2025, `siteId` will be required for all customers, and a bad request response code will be returned for requests without a `siteId`.
9344
9362
  * @param headers - An object literal of key value pairs of the headers to be
9345
9363
  * sent with this request.
9346
9364
  *
@@ -9361,12 +9379,14 @@ declare namespace ShopperContextsTypes {
9361
9379
  }>): Promise<ShopperContext>;
9362
9380
  /**
9363
9381
  * Gets the shopper's context based on the shopperJWT.
9382
+
9383
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
9364
9384
  *
9365
9385
  * @param options - An object containing the options for this method.
9366
9386
  * @param parameters - An object containing the parameters for this method.
9367
9387
  * @param organizationId -
9368
9388
  * @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
9369
- * @param siteId - The identifier of the site to which the request is being sent. With B2C Commerce release 24.5, all new implementations of Shopper Context require the `siteId` query parameter to be passed. Existing customers with Shopper Context implementations should start including `siteId` going forward. Starting July 31 2024, `siteId` will be required for all customers, and a bad request response code will be returned for requests without a `siteId`.
9389
+ * @param siteId - The identifier of the site to which the request is being sent. With B2C Commerce release 24.5, all new implementations of Shopper Context require the `siteId` query parameter to be passed. Existing customers with Shopper Context implementations should start including `siteId` going forward. Starting January 2025, `siteId` will be required for all customers, and a bad request response code will be returned for requests without a `siteId`.
9370
9390
  * @param headers - An object literal of key value pairs of the headers to be
9371
9391
  * sent with this request.
9372
9392
  * @param rawResponse - Set to true to return entire Response object instead of DTO.
@@ -9387,6 +9407,8 @@ declare namespace ShopperContextsTypes {
9387
9407
  }>, rawResponse?: T): Promise<T extends true ? Response : ShopperContext>;
9388
9408
  /**
9389
9409
  * Creates the shopper's context based on shopperJWT.
9410
+
9411
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
9390
9412
  *
9391
9413
  * If you would like to get a raw Response object use the other createShopperContext function.
9392
9414
  *
@@ -9425,6 +9447,8 @@ declare namespace ShopperContextsTypes {
9425
9447
  }>): Promise<void | void>;
9426
9448
  /**
9427
9449
  * Creates the shopper's context based on shopperJWT.
9450
+
9451
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
9428
9452
  *
9429
9453
  * @param options - An object containing the options for this method.
9430
9454
  * @param parameters - An object containing the parameters for this method.
@@ -9461,6 +9485,8 @@ declare namespace ShopperContextsTypes {
9461
9485
  }>, rawResponse?: T): Promise<T extends true ? Response : void | void>;
9462
9486
  /**
9463
9487
  * Gets the shopper's context based on the shopperJWT.
9488
+
9489
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
9464
9490
  *
9465
9491
  * If you would like to get a raw Response object use the other deleteShopperContext function.
9466
9492
  *
@@ -9489,6 +9515,8 @@ declare namespace ShopperContextsTypes {
9489
9515
  }>): Promise<void>;
9490
9516
  /**
9491
9517
  * Gets the shopper's context based on the shopperJWT.
9518
+
9519
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
9492
9520
  *
9493
9521
  * @param options - An object containing the options for this method.
9494
9522
  * @param parameters - An object containing the parameters for this method.
@@ -9515,6 +9543,8 @@ declare namespace ShopperContextsTypes {
9515
9543
  }>, rawResponse?: T): Promise<T extends true ? Response : void>;
9516
9544
  /**
9517
9545
  * Updates the shopper's context based on the Shopper JWT. If the shopper context exists, it's updated with the patch body. If a `custom qualifier/assignment qualifer` or an `effectiveDateTime` or a `sourceCode` or a `customerGroupIds` is already present in the existing shopper context, its value is replaced by the corresponding value from the patch body. If a `custom qualifers'` or a `assignment qualifiers'` value is set to `null`, it's deleted from existing shopper context. If `effectiveDateTime` or `sourceCode` value is set to an empty string (\"\"), it's deleted from existing shopper context. If `effectiveDateTime` or `sourceCode` value is set to `null`, it's ignored. If an `effectiveDateTime` or `sourceCode` or `custom/assignment qualifiiers'` value is new, it's added to the existing Shopper context. If `customerGroupIds` is set to empty array `[]` the existing value in shopper context is deleted.
9546
+
9547
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
9518
9548
  *
9519
9549
  * If you would like to get a raw Response object use the other updateShopperContext function.
9520
9550
  *
@@ -9553,6 +9583,8 @@ declare namespace ShopperContextsTypes {
9553
9583
  }>): Promise<ShopperContext>;
9554
9584
  /**
9555
9585
  * Updates the shopper's context based on the Shopper JWT. If the shopper context exists, it's updated with the patch body. If a `custom qualifier/assignment qualifer` or an `effectiveDateTime` or a `sourceCode` or a `customerGroupIds` is already present in the existing shopper context, its value is replaced by the corresponding value from the patch body. If a `custom qualifers'` or a `assignment qualifiers'` value is set to `null`, it's deleted from existing shopper context. If `effectiveDateTime` or `sourceCode` value is set to an empty string (\"\"), it's deleted from existing shopper context. If `effectiveDateTime` or `sourceCode` value is set to `null`, it's ignored. If an `effectiveDateTime` or `sourceCode` or `custom/assignment qualifiiers'` value is new, it's added to the existing Shopper context. If `customerGroupIds` is set to empty array `[]` the existing value in shopper context is deleted.
9586
+
9587
+ With B2C Commerce release 24.5, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
9556
9588
  *
9557
9589
  * @param options - An object containing the options for this method.
9558
9590
  * @param parameters - An object containing the parameters for this method.
@@ -18229,8 +18261,6 @@ type GiftCertificate = {
18229
18261
  };
18230
18262
  type GiftCertificateRequest = {
18231
18263
  giftCertificateCode: string;
18232
- } & {
18233
- [key: string]: any;
18234
18264
  };
18235
18265
  type RangeFilter$4 = {
18236
18266
  [key: string]: any;
@@ -18374,7 +18404,7 @@ type ShopperGiftCertificatesParameters = ShopperGiftCertificatesPathParameters &
18374
18404
  * ```
18375
18405
  *
18376
18406
  * <span style="font-size:.7em; display:block; text-align: right">
18377
- * API Version: 1.0.16<br />
18407
+ * API Version: 1.0.17<br />
18378
18408
  * Last Updated: <br />
18379
18409
  * </span>
18380
18410
  *
@@ -18560,8 +18590,6 @@ declare namespace ShopperGiftCertificatesTypes {
18560
18590
  };
18561
18591
  type GiftCertificateRequest = {
18562
18592
  giftCertificateCode: string;
18563
- } & {
18564
- [key: string]: any;
18565
18593
  };
18566
18594
  type ErrorResponse = {
18567
18595
  type: string;
@@ -18860,7 +18888,7 @@ declare namespace ShopperGiftCertificatesTypes {
18860
18888
  * ```
18861
18889
  *
18862
18890
  * <span style="font-size:.7em; display:block; text-align: right">
18863
- * API Version: 1.0.16<br />
18891
+ * API Version: 1.0.17<br />
18864
18892
  * Last Updated: <br />
18865
18893
  * </span>
18866
18894
  *
@@ -26810,8 +26838,6 @@ type PromotionResult = {
26810
26838
  limit: number;
26811
26839
  data: Array<Promotion>;
26812
26840
  total: number;
26813
- } & {
26814
- [key: string]: any;
26815
26841
  };
26816
26842
  type RangeFilter$8 = {
26817
26843
  [key: string]: any;
@@ -26961,7 +26987,7 @@ type ShopperPromotionsParameters = ShopperPromotionsPathParameters & BaseUriPara
26961
26987
  * ```
26962
26988
  *
26963
26989
  * <span style="font-size:.7em; display:block; text-align: right">
26964
- * API Version: 1.0.26<br />
26990
+ * API Version: 1.0.27<br />
26965
26991
  * Last Updated: <br />
26966
26992
  * </span>
26967
26993
  *
@@ -27240,8 +27266,6 @@ declare namespace ShopperPromotionsTypes {
27240
27266
  limit: number;
27241
27267
  data: Array<Promotion>;
27242
27268
  total: number;
27243
- } & {
27244
- [key: string]: any;
27245
27269
  };
27246
27270
  type Error = {
27247
27271
  type: string;
@@ -27546,7 +27570,7 @@ declare namespace ShopperPromotionsTypes {
27546
27570
  * ```
27547
27571
  *
27548
27572
  * <span style="font-size:.7em; display:block; text-align: right">
27549
- * API Version: 1.0.26<br />
27573
+ * API Version: 1.0.27<br />
27550
27574
  * Last Updated: <br />
27551
27575
  * </span>
27552
27576
  *
@@ -32950,6 +32974,7 @@ declare namespace helpers {
32950
32974
  * @param credentials.clientSecret - secret associated with client ID
32951
32975
  * @param parameters - parameters to pass in the API calls.
32952
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.
32953
32978
  * @returns TokenResponse
32954
32979
  */
32955
32980
  function loginGuestUserPrivate(slasClient: ShopperLogin<{
@@ -32959,6 +32984,7 @@ declare namespace helpers {
32959
32984
  siteId: string;
32960
32985
  }>, parameters: {
32961
32986
  usid?: string;
32987
+ dnt?: boolean;
32962
32988
  }, credentials: {
32963
32989
  clientSecret: string;
32964
32990
  }): Promise<TokenResponse>;
@@ -32968,6 +32994,7 @@ declare namespace helpers {
32968
32994
  * @param parameters - parameters to pass in the API calls.
32969
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.
32970
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.
32971
32998
  * @returns TokenResponse
32972
32999
  */
32973
33000
  function loginGuestUser(slasClient: ShopperLogin<{
@@ -32978,6 +33005,7 @@ declare namespace helpers {
32978
33005
  }>, parameters: {
32979
33006
  redirectURI: string;
32980
33007
  usid?: string;
33008
+ dnt?: boolean;
32981
33009
  }): Promise<TokenResponse>;
32982
33010
  /**
32983
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).
@@ -32990,6 +33018,7 @@ declare namespace helpers {
32990
33018
  * @param parameters - parameters to pass in the API calls.
32991
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.
32992
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.
32993
33022
  * @returns TokenResponse
32994
33023
  */
32995
33024
  function loginRegisteredUserB2C(slasClient: ShopperLogin<{
@@ -33004,6 +33033,7 @@ declare namespace helpers {
33004
33033
  }, parameters: {
33005
33034
  redirectURI: string;
33006
33035
  usid?: string;
33036
+ dnt?: boolean;
33007
33037
  }): Promise<TokenResponse>;
33008
33038
  /**
33009
33039
  * Exchange a refresh token for a new access token.
@@ -33022,6 +33052,7 @@ declare namespace helpers {
33022
33052
  siteId: string;
33023
33053
  }>, parameters: {
33024
33054
  refreshToken: string;
33055
+ dnt?: boolean;
33025
33056
  }, credentials?: {
33026
33057
  clientSecret?: string;
33027
33058
  }): Promise<TokenResponse>;