@salesforce/storefront-next-runtime 0.4.2 → 1.0.0-alpha.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.
Files changed (87) hide show
  1. package/README.md +9 -3
  2. package/dist/ComponentContext.js +199 -4
  3. package/dist/ComponentContext.js.map +1 -1
  4. package/dist/DesignComponent.js +2 -2
  5. package/dist/DesignRegion.js +2 -2
  6. package/dist/RegionContext.js +9 -0
  7. package/dist/RegionContext.js.map +1 -0
  8. package/dist/component.types.d.ts +1 -1
  9. package/dist/config.d.ts +34 -221
  10. package/dist/config.d.ts.map +1 -1
  11. package/dist/config.js +35 -116
  12. package/dist/config.js.map +1 -1
  13. package/dist/data-store.d.ts +185 -15
  14. package/dist/data-store.d.ts.map +1 -1
  15. package/dist/data-store.js +412 -10
  16. package/dist/data-store.js.map +1 -1
  17. package/dist/defaults.d.ts +106 -0
  18. package/dist/defaults.d.ts.map +1 -0
  19. package/dist/defaults.js +67 -0
  20. package/dist/defaults.js.map +1 -0
  21. package/dist/design-data.d.ts +238 -356
  22. package/dist/design-data.d.ts.map +1 -1
  23. package/dist/design-data.js +459 -30
  24. package/dist/design-data.js.map +1 -1
  25. package/dist/design-mode.d.ts +3 -2
  26. package/dist/design-mode.d.ts.map +1 -1
  27. package/dist/design-react-core.d.ts +5 -15
  28. package/dist/design-react-core.d.ts.map +1 -1
  29. package/dist/design-react-core.js +2 -2
  30. package/dist/design-react.d.ts +2 -2
  31. package/dist/design.d.ts +2 -2
  32. package/dist/events.d.ts +32 -6
  33. package/dist/events.d.ts.map +1 -1
  34. package/dist/i18n-client.d.ts.map +1 -1
  35. package/dist/i18n-client.js.map +1 -1
  36. package/dist/i18n.d.ts +1 -2
  37. package/dist/i18n.d.ts.map +1 -1
  38. package/dist/modeDetection.js +0 -18
  39. package/dist/modeDetection.js.map +1 -1
  40. package/dist/scapi.d.ts +2185 -466
  41. package/dist/scapi.d.ts.map +1 -1
  42. package/dist/scapi.js +1 -1
  43. package/dist/scapi.js.map +1 -1
  44. package/dist/schema.d.ts +17 -15
  45. package/dist/schema.d.ts.map +1 -1
  46. package/dist/security-react.d.ts +34 -0
  47. package/dist/security-react.d.ts.map +1 -0
  48. package/dist/security-react.js +21 -0
  49. package/dist/security-react.js.map +1 -0
  50. package/dist/security.d.ts +61 -0
  51. package/dist/security.d.ts.map +1 -0
  52. package/dist/security.js +304 -0
  53. package/dist/security.js.map +1 -0
  54. package/dist/site-context.d.ts +43 -27
  55. package/dist/site-context.d.ts.map +1 -1
  56. package/dist/site-context.js +2 -2
  57. package/dist/site-context2.js +41 -31
  58. package/dist/site-context2.js.map +1 -1
  59. package/dist/types.d.ts +19 -3
  60. package/dist/types.d.ts.map +1 -1
  61. package/dist/types2.d.ts +89 -63
  62. package/dist/types2.d.ts.map +1 -1
  63. package/dist/types3.d.ts +1 -35
  64. package/dist/types3.d.ts.map +1 -1
  65. package/package.json +15 -20
  66. package/dist/DesignFrame.js +0 -204
  67. package/dist/DesignFrame.js.map +0 -1
  68. package/dist/custom-global-preferences.d.ts +0 -20
  69. package/dist/custom-global-preferences.d.ts.map +0 -1
  70. package/dist/custom-global-preferences.js +0 -31
  71. package/dist/custom-global-preferences.js.map +0 -1
  72. package/dist/custom-site-preferences.d.ts +0 -20
  73. package/dist/custom-site-preferences.d.ts.map +0 -1
  74. package/dist/custom-site-preferences.js +0 -31
  75. package/dist/custom-site-preferences.js.map +0 -1
  76. package/dist/data-store-custom-global-preferences.d.ts +0 -2
  77. package/dist/data-store-custom-global-preferences.js +0 -6
  78. package/dist/data-store-custom-site-preferences.d.ts +0 -2
  79. package/dist/data-store-custom-site-preferences.js +0 -6
  80. package/dist/data-store-gcp-preferences.d.ts +0 -2
  81. package/dist/data-store-gcp-preferences.js +0 -6
  82. package/dist/gcp-preferences.d.ts +0 -52
  83. package/dist/gcp-preferences.d.ts.map +0 -1
  84. package/dist/gcp-preferences.js +0 -64
  85. package/dist/gcp-preferences.js.map +0 -1
  86. package/dist/utils.js +0 -90
  87. package/dist/utils.js.map +0 -1
package/dist/types2.d.ts CHANGED
@@ -12582,7 +12582,7 @@ interface paths {
12582
12582
  interface components {
12583
12583
  schemas: {
12584
12584
  /**
12585
- * @description An identifier for the organization the request is being made by
12585
+ * @description An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).
12586
12586
  * @example f_ecom_zzxy_prd
12587
12587
  */
12588
12588
  OrganizationId: string;
@@ -12596,15 +12596,6 @@ interface components {
12596
12596
  * @example RefArch
12597
12597
  */
12598
12598
  SiteId: string;
12599
- /**
12600
- * @description The String256 schema is a foundational schema designed for fields or attributes that are stored in a database field with a maximum capacity of 256 bytes.
12601
- * This schema accommodates various character sets, with the following considerations:
12602
- * - ASCII Characters: Each ASCII character occupies 1 byte, allowing up to 256 characters.
12603
- * - Latin Characters: Many Latin characters require 2 bytes each, allowing up to 128 characters.
12604
- * - Asian Characters: Many Asian characters require 3 bytes each, allowing approximately 85 characters.
12605
- * @example Max Mustermann
12606
- */
12607
- String256: string;
12608
12599
  /**
12609
12600
  * @description A three letter uppercase currency code conforming to the [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) standard, or the string `N/A` indicating that a currency is not applicable.
12610
12601
  * @example USD
@@ -12662,24 +12653,15 @@ interface components {
12662
12653
  PaginatedResultBase: {
12663
12654
  offset: components["schemas"]["Offset"];
12664
12655
  } & WithRequired<components["schemas"]["ResultBase"], "limit" | "total">;
12665
- /**
12666
- * @description The String4000 schema is a foundational schema designed for fields or attributes that are stored in a database field with a maximum capacity of 4000 bytes.
12667
- * This schema accommodates various character sets, with the following considerations:
12668
- * - ASCII Characters: Each ASCII character occupies 1 byte, allowing up to 4000 characters.
12669
- * - Latin Characters: Many Latin characters require 2 bytes each, allowing up to 2000 characters.
12670
- * - Asian Characters: Many Asian characters require 3 bytes each, allowing approximately 1333 characters.
12671
- * @example This is a detailed description of an Excellent Product. It includes all the features, specifications, and benefits of the product. The Excellent Product is designed to provide exceptional performance and reliability. It is made from high-quality materials and has been rigorously tested to ensure it meets the highest standards. Whether you are using it for personal or professional purposes, the Excellent Product is the perfect choice. With its advanced technology and user-friendly design, it offers unparalleled convenience and efficiency. Order your Excellent Product today and experience the difference it can make.
12672
- */
12673
- String4000: string;
12674
12656
  Image: {
12675
12657
  /** @example The White Dress Shirt */
12676
- alt?: components["schemas"]["String4000"];
12658
+ alt?: string;
12677
12659
  /** @example https://edge.disstg.commercecloud.salesforce.com/dw/image/v2/ZZEU_006/on/demandware.static/-/Sites-apparel-catalog/default/dw9368b001/images/large/70284588_100_0.jpg */
12678
- disBaseLink?: components["schemas"]["String4000"];
12660
+ disBaseLink?: string;
12679
12661
  /** @example https://zzeu-006.sandbox.us01.dx.commercecloud.salesforce.com/on/demandware.static/-/Sites-apparel-catalog/default/dw9368b001/images/large/70284588_100_0.jpg */
12680
- link: components["schemas"]["String4000"];
12662
+ link: string;
12681
12663
  /** @example The White Dress Shirt */
12682
- title?: components["schemas"]["String4000"];
12664
+ title?: string;
12683
12665
  };
12684
12666
  /** @description Document representing a product type. */
12685
12667
  ProductType: {
@@ -12733,7 +12715,7 @@ interface components {
12733
12715
  * @description The localized description of the variation value.
12734
12716
  * @example Size 15R
12735
12717
  */
12736
- description?: components["schemas"]["String4000"];
12718
+ description?: string;
12737
12719
  /** @description The first product image for the configured viewtype and this variation value. */
12738
12720
  image?: components["schemas"]["Image"];
12739
12721
  /** @description The first product image for the configured viewtype and this variation value. Typically the swatch image. */
@@ -12742,7 +12724,7 @@ interface components {
12742
12724
  * @description The localized display name of the variation value.
12743
12725
  * @example 15R
12744
12726
  */
12745
- name?: components["schemas"]["String4000"];
12727
+ name?: string;
12746
12728
  /**
12747
12729
  * @description A flag indicating whether at least one variant with this variation attribute value is available to sell.
12748
12730
  * @example true
@@ -12752,7 +12734,7 @@ interface components {
12752
12734
  * @description The actual variation value.
12753
12735
  * @example 15R
12754
12736
  */
12755
- value: components["schemas"]["String4000"];
12737
+ value: string;
12756
12738
  };
12757
12739
  /** @description Document representing a variation attribute. */
12758
12740
  VariationAttribute: {
@@ -12760,12 +12742,12 @@ interface components {
12760
12742
  * @description The ID of the variation attribute.
12761
12743
  * @example size
12762
12744
  */
12763
- id: components["schemas"]["String256"];
12745
+ id: string;
12764
12746
  /**
12765
12747
  * @description The localized display name of the variation attribute.
12766
12748
  * @example size
12767
12749
  */
12768
- name?: components["schemas"]["String4000"];
12750
+ name?: string;
12769
12751
  /** @description The sorted array of variation values. This array can be empty. */
12770
12752
  values?: components["schemas"]["VariationAttributeValue"][];
12771
12753
  };
@@ -12779,7 +12761,7 @@ interface components {
12779
12761
  * @description The image view type.
12780
12762
  * @example hi-res
12781
12763
  */
12782
- viewType: string & components["schemas"]["String256"];
12764
+ viewType: string;
12783
12765
  };
12784
12766
  /** @description Document representing price ranges for a product which happens to be a master product (per Pricebook) */
12785
12767
  PriceRange: {
@@ -12799,7 +12781,7 @@ interface components {
12799
12781
  * @description The active pricebook from which the min and the max prices are calculated. The pricebook is based on the site context of the request as defined in ECOM.
12800
12782
  * @example usd-list-pricebook
12801
12783
  */
12802
- pricebook?: components["schemas"]["String256"];
12784
+ pricebook?: string;
12803
12785
  };
12804
12786
  /** @description Document representing a product promotion. */
12805
12787
  ProductPromotion: {
@@ -12807,7 +12789,7 @@ interface components {
12807
12789
  * @description The localized call-out message of the promotion.
12808
12790
  * @example Fantastic promotion
12809
12791
  */
12810
- calloutMsg: components["schemas"]["String4000"];
12792
+ calloutMsg: string;
12811
12793
  /**
12812
12794
  * @description The unique ID of the promotion.
12813
12795
  * @example summerSale
@@ -12832,7 +12814,7 @@ interface components {
12832
12814
  * @description The active pricebook for which this price is defined
12833
12815
  * @example usd-list-pricebook
12834
12816
  */
12835
- pricebook?: components["schemas"]["String256"];
12817
+ pricebook?: string;
12836
12818
  /**
12837
12819
  * Format: double
12838
12820
  * @description Quantity tier for which the price is defined.
@@ -12862,7 +12844,7 @@ interface components {
12862
12844
  tieredPrices?: components["schemas"]["ProductPriceTable"][];
12863
12845
  /** @description The actual variation attribute ID - value pairs. */
12864
12846
  variationValues?: {
12865
- [key: string]: components["schemas"]["String4000"];
12847
+ [key: string]: string;
12866
12848
  };
12867
12849
  /**
12868
12850
  * @description The array of active customer product promotions for this product. This array can be empty.
@@ -12892,7 +12874,7 @@ interface components {
12892
12874
  productId: string;
12893
12875
  /** @description The actual variation attribute ID - value pairs. */
12894
12876
  variationValues: {
12895
- [key: string]: components["schemas"]["String4000"];
12877
+ [key: string]: string;
12896
12878
  };
12897
12879
  };
12898
12880
  /** @description Document representing a product search hit. */
@@ -12902,7 +12884,7 @@ interface components {
12902
12884
  * @description The type information for the search hit.
12903
12885
  * @example product
12904
12886
  */
12905
- hitType?: components["schemas"]["String256"];
12887
+ hitType?: string;
12906
12888
  /** @description The first image of the product hit for the configured viewtype. */
12907
12889
  image?: components["schemas"]["Image"];
12908
12890
  /**
@@ -12932,7 +12914,7 @@ interface components {
12932
12914
  * @description The localized name of the product.
12933
12915
  * @example Modern Dress Shirt
12934
12916
  */
12935
- productName?: components["schemas"]["String4000"];
12917
+ productName?: string;
12936
12918
  /** @description The type information for the product. */
12937
12919
  productType?: components["schemas"]["ProductType"];
12938
12920
  /** @description The first represented product. */
@@ -12965,20 +12947,44 @@ interface components {
12965
12947
  * @description The ID of the Page Meta Tag.
12966
12948
  * @example title
12967
12949
  */
12968
- id?: components["schemas"]["String256"];
12950
+ id?: string;
12969
12951
  /**
12970
12952
  * @description Locale-specific value of the Page Meta Tag, evaluated by resolving the rule set for the given Business Manager ID.
12971
12953
  * @example Buy the Long Sleeve Covered Placket Blouse for USD 61.99.
12972
12954
  */
12973
12955
  value?: string;
12974
12956
  };
12957
+ /**
12958
+ * @description The query string that was searched for.
12959
+ * @example dresses
12960
+ */
12961
+ query: string;
12962
+ /** @description The result of a processor execution. */
12963
+ AppliedProcessor: {
12964
+ /**
12965
+ * @description The name of the processor.
12966
+ * @example Attribute Aware Search
12967
+ */
12968
+ processorName?: string;
12969
+ result?: components["schemas"]["query"];
12970
+ /** @description The refinements that were applied to the query. */
12971
+ refinements?: {
12972
+ [key: string]: string;
12973
+ };
12974
+ };
12975
+ /** @description The result of query processing. */
12976
+ ProcessedQuery: {
12977
+ query?: components["schemas"]["query"];
12978
+ /** @description The processors that were executed for the search query and their results. */
12979
+ appliedProcessors?: components["schemas"]["AppliedProcessor"][];
12980
+ };
12975
12981
  /** @description Document representing a product search refinement value. */
12976
12982
  ProductSearchRefinementValue: {
12977
12983
  /**
12978
12984
  * @description The localized description of the refinement value.
12979
12985
  * @example The Beige objects
12980
12986
  */
12981
- description?: components["schemas"]["String4000"];
12987
+ description?: string;
12982
12988
  /**
12983
12989
  * Format: int32
12984
12990
  * @description The number of search hits when selecting the refinement value. Can be 0.
@@ -12989,14 +12995,14 @@ interface components {
12989
12995
  * @description The localized label of the refinement value.
12990
12996
  * @example Beige
12991
12997
  */
12992
- label: components["schemas"]["String4000"];
12998
+ label: string;
12993
12999
  /**
12994
13000
  * @description The optional presentation ID associated with the refinement value.
12995
13001
  * The presentation ID can be used, for example, to associate an ID with
12996
13002
  * an HTML widget.
12997
13003
  * @example beige
12998
13004
  */
12999
- presentationId?: components["schemas"]["String256"];
13005
+ presentationId?: string;
13000
13006
  /**
13001
13007
  * @description The refinement value. In the case of an attribute refinement, this is the bucket, the attribute value, or a
13002
13008
  * value range. In the case of a category refinement, this is the category ID. In the case of a price
@@ -13004,7 +13010,7 @@ interface components {
13004
13010
  * "(100..999)" and "(Aa..Fa)" are valid ranges.
13005
13011
  * @example Beige
13006
13012
  */
13007
- value: string & components["schemas"]["String4000"];
13013
+ value: string;
13008
13014
  /** @description The array of hierarchical refinement values. This array can be empty. */
13009
13015
  values?: components["schemas"]["ProductSearchRefinementValue"][];
13010
13016
  };
@@ -13016,12 +13022,12 @@ interface components {
13016
13022
  * category refinement, the ID must be "cgid". In the case of a price refinement, the ID must be "price".
13017
13023
  * @example refinementColor
13018
13024
  */
13019
- attributeId: components["schemas"]["String256"];
13025
+ attributeId: string;
13020
13026
  /**
13021
13027
  * @description The localized label of the refinement.
13022
13028
  * @example Color
13023
13029
  */
13024
- label?: components["schemas"]["String256"];
13030
+ label?: string;
13025
13031
  /** @description The sorted array of refinement values. This array can be empty. */
13026
13032
  values?: components["schemas"]["ProductSearchRefinementValue"][];
13027
13033
  };
@@ -13088,12 +13094,12 @@ interface components {
13088
13094
  * @description The ID of the sorting option.
13089
13095
  * @example best-matches
13090
13096
  */
13091
- id: components["schemas"]["String256"];
13097
+ id: string;
13092
13098
  /**
13093
13099
  * @description The localized label of the sorting option.
13094
13100
  * @example Best Matches
13095
13101
  */
13096
- label: components["schemas"]["String4000"];
13102
+ label: string;
13097
13103
  };
13098
13104
  /** @description Document representing a product search result. */
13099
13105
  ProductSearchResult: {
@@ -13106,19 +13112,21 @@ interface components {
13106
13112
  * @example dresses
13107
13113
  */
13108
13114
  query: string;
13115
+ /** @description The result of query processing. */
13116
+ processedQuery?: components["schemas"]["ProcessedQuery"];
13109
13117
  /** @description The sorted array of search refinements. This array can be empty. */
13110
13118
  refinements: components["schemas"]["ProductSearchRefinement"][];
13111
13119
  /** @description The suggestion given by the system for the submitted search phrase. */
13112
13120
  searchPhraseSuggestions: components["schemas"]["Suggestion"];
13113
13121
  /** @description A map of selected refinement attribute ID or value pairs. The sorting order is the same as in request URL. */
13114
13122
  selectedRefinements?: {
13115
- [key: string]: components["schemas"]["String4000"];
13123
+ [key: string]: string;
13116
13124
  };
13117
13125
  /**
13118
13126
  * @description The ID of the applied sorting option.
13119
13127
  * @example best-matches
13120
13128
  */
13121
- selectedSortingOption?: components["schemas"]["String4000"];
13129
+ selectedSortingOption?: string;
13122
13130
  /** @description The sorted array of search sorting options. This array can be empty. */
13123
13131
  sortingOptions: components["schemas"]["ProductSearchSortingOption"][];
13124
13132
  } & WithRequired<components["schemas"]["PaginatedResultBase"], "offset">;
@@ -13171,12 +13179,12 @@ interface components {
13171
13179
  * @description The localized name of the category.
13172
13180
  * @example Dresses
13173
13181
  */
13174
- name: components["schemas"]["String4000"];
13182
+ name: string;
13175
13183
  /**
13176
13184
  * @description The name of the parent category.
13177
13185
  * @example Clothing
13178
13186
  */
13179
- parentCategoryName: components["schemas"]["String4000"];
13187
+ parentCategoryName: string;
13180
13188
  } & {
13181
13189
  [key: string]: unknown;
13182
13190
  };
@@ -13203,7 +13211,7 @@ interface components {
13203
13211
  * @description The localized name of the product.
13204
13212
  * @example Playstation 3 Bundle
13205
13213
  */
13206
- productName: components["schemas"]["String4000"];
13214
+ productName: string;
13207
13215
  } & {
13208
13216
  [key: string]: unknown;
13209
13217
  };
@@ -13245,7 +13253,7 @@ interface components {
13245
13253
  responses: never;
13246
13254
  parameters: {
13247
13255
  /**
13248
- * @description An identifier for the organization the request is being made by
13256
+ * @description An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).
13249
13257
  * @example f_ecom_zzxy_prd
13250
13258
  */
13251
13259
  organizationId: components["schemas"]["OrganizationId"];
@@ -13253,7 +13261,7 @@ interface components {
13253
13261
  productSearchSelect: components["schemas"]["Select"];
13254
13262
  /** @description The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites. */
13255
13263
  siteId: components["schemas"]["SiteId"];
13256
- /** @description The query phrase to search for. For example to search for a product "shirt", type q=shirt. */
13264
+ /** @description The query phrase to search for. For example to search for a product "shirt", type q=shirt. **Note:** - Lexical search queries are limited to a maximum of 50 characters. */
13257
13265
  qProductSearch: string;
13258
13266
  /**
13259
13267
  * @description Parameter that represents a refinement attribute or values pair. Refinement attribute ID and values are separated by '='.<br>
@@ -13279,7 +13287,7 @@ interface components {
13279
13287
  */
13280
13288
  refine: string;
13281
13289
  /** @description The ID of the sorting option to sort the search hits. */
13282
- sort: components["schemas"]["String256"];
13290
+ sort: string;
13283
13291
  /** @description A three letter uppercase currency code conforming to the [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) standard, or the string `N/A` indicating that a currency is not applicable. */
13284
13292
  currency: components["schemas"]["CurrencyCode"];
13285
13293
  /** @description A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified. */
@@ -13291,17 +13299,26 @@ interface components {
13291
13299
  */
13292
13300
  expandProductSearch: ("none" | "availability" | "images" | "prices" | "represented_products" | "variations" | "promotions" | "custom_properties" | "page_meta_tags")[];
13293
13301
  /**
13294
- * @description When the `images` expand parameter is used with this flag, the response includes the `imageGroups property`, which contains an image model.
13295
- * If this flag is true, the full image model is returned. If false, only matching images are included.
13302
+ * @description When the `images` expand parameter is used with this flag, the response includes the `imageGroups` property, which contains an image model.
13303
+ * If this flag is true, the full image model is returned and you can combine with `imgTypes` to filter image types and counts. If false, only matching images are included.
13296
13304
  * If no flag is passed, the `imageGroups` property is omitted from the response.
13297
13305
  */
13298
13306
  allImages: boolean;
13307
+ /**
13308
+ * @description Filters product images by type with optional count limits per type. This parameter requires both the `images` expand parameter and `allImages=true`.
13309
+ * When used, the response includes the `imageGroups` property filtered by the specified image types.
13310
+ * The format is a comma-separated list of image types with optional counts: `<imageType>:<count>,<imageType>:<count>`.
13311
+ * If the count is omitted, all images of that type are returned. If specified, the count limits the number of images returned for that type.
13312
+ * For example, `imgTypes=large:2,small:1` returns up to 2 large images and 1 small image per product in the imageGroups.
13313
+ * If `imgTypes` is used without `allImages=true`, it is ignored and imageGroups aren't included in the response.
13314
+ */
13315
+ imgTypes: string;
13299
13316
  /** @description When this flag is set to `true` and is used with the `prices` expand parameter, the response includes per PriceBook prices and tiered prices (if available). */
13300
13317
  perPricebook: boolean;
13301
13318
  /** @description The flag that determines which variation properties are included in the result. When set to `true` with the `variations` expand parameter, all variation properties (`variationAttributes`, `variationGroups`, `variants`) are returned. When set to false, only the default property `variationAttributes` is returned. */
13302
13319
  allVariationProperties: boolean;
13303
13320
  /** @description A comma-separated list of custom property ids to be returned for variant products. The `variants` expand parameter and `allVariationProperties` query parameter are required for these properties to be returned. */
13304
- includedCustomVariationProperties: (string & components["schemas"]["String256"])[];
13321
+ includedCustomVariationProperties: string[];
13305
13322
  /** @description The search phrase (q) for which suggestions are evaluated. Search suggestions are determined when the search phrase input is at least three (default) characters long. The value is configurable in the Business Manager. */
13306
13323
  qSearchSuggestion: string;
13307
13324
  /** @description The maximum number of suggestions made per request. If no value is defined, by default five suggestions per suggestion type are evaluated. This affects all types of suggestions (category, product, brand, and custom suggestions). */
@@ -13312,7 +13329,7 @@ interface components {
13312
13329
  */
13313
13330
  expandSearchSuggestion: ("images" | "prices" | "custom_product_properties")[];
13314
13331
  /** @description A comma-separated list of custom property ids to be returned for product suggestions. The `custom_product_properties` expand parameter is required for these properties to be returned. */
13315
- includedCustomProductProperties: (string & components["schemas"]["String256"])[];
13332
+ includedCustomProductProperties: string[];
13316
13333
  /** @description The flag that determines whether or not to show recent and popular suggested phrases from Einstein. */
13317
13334
  includeEinsteinSuggestedPhrases: boolean;
13318
13335
  };
@@ -13328,7 +13345,7 @@ interface operations {
13328
13345
  select?: components["parameters"]["productSearchSelect"];
13329
13346
  /** @description The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites. */
13330
13347
  siteId: components["parameters"]["siteId"];
13331
- /** @description The query phrase to search for. For example to search for a product "shirt", type q=shirt. */
13348
+ /** @description The query phrase to search for. For example to search for a product "shirt", type q=shirt. **Note:** - Lexical search queries are limited to a maximum of 50 characters. */
13332
13349
  q?: components["parameters"]["qProductSearch"];
13333
13350
  /**
13334
13351
  * @description Parameter that represents a refinement attribute or values pair. Refinement attribute ID and values are separated by '='.<br>
@@ -13366,18 +13383,27 @@ interface operations {
13366
13383
  */
13367
13384
  expand?: components["parameters"]["expandProductSearch"];
13368
13385
  /**
13369
- * @description When the `images` expand parameter is used with this flag, the response includes the `imageGroups property`, which contains an image model.
13370
- * If this flag is true, the full image model is returned. If false, only matching images are included.
13386
+ * @description When the `images` expand parameter is used with this flag, the response includes the `imageGroups` property, which contains an image model.
13387
+ * If this flag is true, the full image model is returned and you can combine with `imgTypes` to filter image types and counts. If false, only matching images are included.
13371
13388
  * If no flag is passed, the `imageGroups` property is omitted from the response.
13372
13389
  */
13373
13390
  allImages?: components["parameters"]["allImages"];
13391
+ /**
13392
+ * @description Filters product images by type with optional count limits per type. This parameter requires both the `images` expand parameter and `allImages=true`.
13393
+ * When used, the response includes the `imageGroups` property filtered by the specified image types.
13394
+ * The format is a comma-separated list of image types with optional counts: `<imageType>:<count>,<imageType>:<count>`.
13395
+ * If the count is omitted, all images of that type are returned. If specified, the count limits the number of images returned for that type.
13396
+ * For example, `imgTypes=large:2,small:1` returns up to 2 large images and 1 small image per product in the imageGroups.
13397
+ * If `imgTypes` is used without `allImages=true`, it is ignored and imageGroups aren't included in the response.
13398
+ */
13399
+ imgTypes?: components["parameters"]["imgTypes"];
13374
13400
  /** @description When this flag is set to `true` and is used with the `prices` expand parameter, the response includes per PriceBook prices and tiered prices (if available). */
13375
13401
  perPricebook?: components["parameters"]["perPricebook"];
13376
13402
  /** @description The flag that determines which variation properties are included in the result. When set to `true` with the `variations` expand parameter, all variation properties (`variationAttributes`, `variationGroups`, `variants`) are returned. When set to false, only the default property `variationAttributes` is returned. */
13377
13403
  allVariationProperties?: components["parameters"]["allVariationProperties"];
13378
13404
  /** @description A comma-separated list of custom property ids to be returned for variant products. The `variants` expand parameter and `allVariationProperties` query parameter are required for these properties to be returned. */
13379
13405
  includedCustomVariationProperties?: components["parameters"]["includedCustomVariationProperties"];
13380
- /** @description Maximum records to retrieve per request, not to exceed 200. Defaults to 25. */
13406
+ /** @description Number of records to retrieve per request. Must be between 1 (minimum) and 200 (maximum). Defaults to 25. */
13381
13407
  limit?: number;
13382
13408
  /** @description Used to retrieve the results based on a particular resource offset. */
13383
13409
  offset?: number;
@@ -13385,7 +13411,7 @@ interface operations {
13385
13411
  header?: never;
13386
13412
  path: {
13387
13413
  /**
13388
- * @description An identifier for the organization the request is being made by
13414
+ * @description An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).
13389
13415
  * @example f_ecom_zzxy_prd
13390
13416
  */
13391
13417
  organizationId: components["parameters"]["organizationId"];
@@ -13440,7 +13466,7 @@ interface operations {
13440
13466
  header?: never;
13441
13467
  path: {
13442
13468
  /**
13443
- * @description An identifier for the organization the request is being made by
13469
+ * @description An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#realm-id) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/base-url.html#instance-id).
13444
13470
  * @example f_ecom_zzxy_prd
13445
13471
  */
13446
13472
  organizationId: components["parameters"]["organizationId"];