commerce-sdk-isomorphic 1.13.0 → 1.13.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.13.1
4
+
5
+ #### Bug fixes
6
+
7
+ - Fix the missing `offset` and `limit` paramters in Shopper Search
8
+
3
9
  ## v1.13.0
4
10
  - Update APIs for [Shopper Search](https://developer.salesforce.com/docs/commerce/commerce-api/references/about-commerce-api/about.html#282024)
5
11
 
@@ -25427,7 +25427,7 @@ type ProductSearchHit = {
25427
25427
  [key: string]: any;
25428
25428
  };
25429
25429
  type ProductSearchResult = {
25430
- limit: any;
25430
+ limit: number;
25431
25431
  hits: Array<ProductSearchHit>;
25432
25432
  query: string;
25433
25433
  refinements: Array<ProductSearchRefinement>;
@@ -25503,6 +25503,7 @@ type ShopperSearchQueryParameters = {
25503
25503
  allImages?: boolean;
25504
25504
  perPricebook?: boolean;
25505
25505
  allVariationProperties?: boolean;
25506
+ offset?: any;
25506
25507
  limit?: number;
25507
25508
  };
25508
25509
  /**
@@ -25576,6 +25577,8 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
25576
25577
  * @param allImages - When this flag is passed along with the expand parameter `images` in the request, a property named `imageGroups`, which contains an image model, is returned in the response. If the flag is set to `true`, the whole image model is returned. If it is set to `false`, the returned image model contains only matching images. If no flag is passed in the request, the response does not include the `imageGroups property`. This parameter is available from version 24.3.
25577
25578
  * @param perPricebook - When this flag is passed as `true` in the request, along with the expand parameter `prices`, then per PriceBook prices and tiered prices (if available) are returned. This parameter is available from version 24.3.
25578
25579
  * @param allVariationProperties - The flag that indicates which variation properties are to be included in the result. When the flag is passed as `true` along with the expand parameter `variations` in the request, all variation properties (`variationAttributes`, `variationGroups`, and `variants`) are returned. When it is passed as `false` along with the expand parameter `variations` in the request, only the default property (`variationAttributes`) is returned. This parameter is available from version 24.3.
25580
+ * @param offset -
25581
+ * @param limit - Maximum records to retrieve per request, not to exceed 200. Defaults to 25.
25579
25582
  * @param headers - An object literal of key value pairs of the headers to be
25580
25583
  * sent with this request.
25581
25584
  *
@@ -25596,6 +25599,8 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
25596
25599
  allImages?: boolean;
25597
25600
  perPricebook?: boolean;
25598
25601
  allVariationProperties?: boolean;
25602
+ offset?: any;
25603
+ limit?: number;
25599
25604
  } & {
25600
25605
  [key in `c_${string}`]: any;
25601
25606
  }, ConfigParameters>;
@@ -25631,6 +25636,8 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
25631
25636
  * @param allImages - When this flag is passed along with the expand parameter `images` in the request, a property named `imageGroups`, which contains an image model, is returned in the response. If the flag is set to `true`, the whole image model is returned. If it is set to `false`, the returned image model contains only matching images. If no flag is passed in the request, the response does not include the `imageGroups property`. This parameter is available from version 24.3.
25632
25637
  * @param perPricebook - When this flag is passed as `true` in the request, along with the expand parameter `prices`, then per PriceBook prices and tiered prices (if available) are returned. This parameter is available from version 24.3.
25633
25638
  * @param allVariationProperties - The flag that indicates which variation properties are to be included in the result. When the flag is passed as `true` along with the expand parameter `variations` in the request, all variation properties (`variationAttributes`, `variationGroups`, and `variants`) are returned. When it is passed as `false` along with the expand parameter `variations` in the request, only the default property (`variationAttributes`) is returned. This parameter is available from version 24.3.
25639
+ * @param offset -
25640
+ * @param limit - Maximum records to retrieve per request, not to exceed 200. Defaults to 25.
25634
25641
  * @param headers - An object literal of key value pairs of the headers to be
25635
25642
  * sent with this request.
25636
25643
  * @param rawResponse - Set to true to return entire Response object instead of DTO.
@@ -25651,6 +25658,8 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
25651
25658
  allImages?: boolean;
25652
25659
  perPricebook?: boolean;
25653
25660
  allVariationProperties?: boolean;
25661
+ offset?: any;
25662
+ limit?: number;
25654
25663
  } & {
25655
25664
  [key in `c_${string}`]: any;
25656
25665
  }, ConfigParameters>;
@@ -25816,6 +25825,38 @@ declare namespace ShopperSearchTypes {
25816
25825
  constructor(config: ClientConfigInit<Params>);
25817
25826
  static readonly defaults: Pick<Required<ClientConfigInit<never>>, "transformRequest">;
25818
25827
  }
25828
+ type ErrorResponse = {
25829
+ type: string;
25830
+ title?: string;
25831
+ detail?: string;
25832
+ instance?: string;
25833
+ } & {
25834
+ [key: string]: any;
25835
+ };
25836
+ type ChangeControlled = {
25837
+ creationDate?: any;
25838
+ modificationDate?: any;
25839
+ createdBy?: string;
25840
+ lastModifiedBy?: string;
25841
+ } & {
25842
+ [key: string]: any;
25843
+ };
25844
+ type ChangeControlledDataType = {
25845
+ creationDate?: any;
25846
+ modificationDate?: any;
25847
+ createdBy?: string;
25848
+ lastModifiedBy?: string;
25849
+ } & {
25850
+ [key: string]: any;
25851
+ };
25852
+ type Error = {
25853
+ type: string;
25854
+ title?: string;
25855
+ detail?: string;
25856
+ instance?: string;
25857
+ } & {
25858
+ [key: string]: any;
25859
+ };
25819
25860
  type ProductPriceTable = {
25820
25861
  price?: number;
25821
25862
  pricebook?: string;
@@ -25990,7 +26031,7 @@ declare namespace ShopperSearchTypes {
25990
26031
  [key: string]: any;
25991
26032
  };
25992
26033
  type ProductSearchResult = {
25993
- limit: any;
26034
+ limit: number;
25994
26035
  hits: Array<ProductSearchHit>;
25995
26036
  query: string;
25996
26037
  refinements: Array<ProductSearchRefinement>;
@@ -26066,6 +26107,7 @@ declare namespace ShopperSearchTypes {
26066
26107
  allImages?: boolean;
26067
26108
  perPricebook?: boolean;
26068
26109
  allVariationProperties?: boolean;
26110
+ offset?: any;
26069
26111
  limit?: number;
26070
26112
  };
26071
26113
  /**
@@ -26139,6 +26181,8 @@ declare namespace ShopperSearchTypes {
26139
26181
  * @param allImages - When this flag is passed along with the expand parameter `images` in the request, a property named `imageGroups`, which contains an image model, is returned in the response. If the flag is set to `true`, the whole image model is returned. If it is set to `false`, the returned image model contains only matching images. If no flag is passed in the request, the response does not include the `imageGroups property`. This parameter is available from version 24.3.
26140
26182
  * @param perPricebook - When this flag is passed as `true` in the request, along with the expand parameter `prices`, then per PriceBook prices and tiered prices (if available) are returned. This parameter is available from version 24.3.
26141
26183
  * @param allVariationProperties - The flag that indicates which variation properties are to be included in the result. When the flag is passed as `true` along with the expand parameter `variations` in the request, all variation properties (`variationAttributes`, `variationGroups`, and `variants`) are returned. When it is passed as `false` along with the expand parameter `variations` in the request, only the default property (`variationAttributes`) is returned. This parameter is available from version 24.3.
26184
+ * @param offset -
26185
+ * @param limit - Maximum records to retrieve per request, not to exceed 200. Defaults to 25.
26142
26186
  * @param headers - An object literal of key value pairs of the headers to be
26143
26187
  * sent with this request.
26144
26188
  *
@@ -26159,6 +26203,8 @@ declare namespace ShopperSearchTypes {
26159
26203
  allImages?: boolean;
26160
26204
  perPricebook?: boolean;
26161
26205
  allVariationProperties?: boolean;
26206
+ offset?: any;
26207
+ limit?: number;
26162
26208
  } & {
26163
26209
  [key in `c_${string}`]: any;
26164
26210
  }, ConfigParameters>;
@@ -26194,6 +26240,8 @@ declare namespace ShopperSearchTypes {
26194
26240
  * @param allImages - When this flag is passed along with the expand parameter `images` in the request, a property named `imageGroups`, which contains an image model, is returned in the response. If the flag is set to `true`, the whole image model is returned. If it is set to `false`, the returned image model contains only matching images. If no flag is passed in the request, the response does not include the `imageGroups property`. This parameter is available from version 24.3.
26195
26241
  * @param perPricebook - When this flag is passed as `true` in the request, along with the expand parameter `prices`, then per PriceBook prices and tiered prices (if available) are returned. This parameter is available from version 24.3.
26196
26242
  * @param allVariationProperties - The flag that indicates which variation properties are to be included in the result. When the flag is passed as `true` along with the expand parameter `variations` in the request, all variation properties (`variationAttributes`, `variationGroups`, and `variants`) are returned. When it is passed as `false` along with the expand parameter `variations` in the request, only the default property (`variationAttributes`) is returned. This parameter is available from version 24.3.
26243
+ * @param offset -
26244
+ * @param limit - Maximum records to retrieve per request, not to exceed 200. Defaults to 25.
26197
26245
  * @param headers - An object literal of key value pairs of the headers to be
26198
26246
  * sent with this request.
26199
26247
  * @param rawResponse - Set to true to return entire Response object instead of DTO.
@@ -26214,6 +26262,8 @@ declare namespace ShopperSearchTypes {
26214
26262
  allImages?: boolean;
26215
26263
  perPricebook?: boolean;
26216
26264
  allVariationProperties?: boolean;
26265
+ offset?: any;
26266
+ limit?: number;
26217
26267
  } & {
26218
26268
  [key in `c_${string}`]: any;
26219
26269
  }, ConfigParameters>;