commerce-sdk-isomorphic 3.2.0 → 3.4.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.
@@ -49,6 +49,22 @@ interface PathParameters {
49
49
  interface QueryParameters {
50
50
  [key: string]: string | number | boolean | string[] | number[];
51
51
  }
52
+ /**
53
+ * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
54
+ * types for query parameters for the value.
55
+ */
56
+ type CustomQueryParameters = {
57
+ [key in `c_${string}`]: string | number | boolean | string[] | number[];
58
+ };
59
+ /**
60
+ * Custom body request type with any string prefixed with `c_` as the key and the allowed
61
+ * types for the value.
62
+ */
63
+ type CustomRequestBody = {
64
+ [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
65
+ [key: string]: unknown;
66
+ };
67
+ };
52
68
  /**
53
69
  * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
54
70
  * it from the `RequestInit` provided by node-fetch.
@@ -4194,6 +4210,22 @@ declare namespace ShopperBasketsTypes {
4194
4210
  * Generic interface for all parameter types.
4195
4211
  */
4196
4212
  type UrlParameters = PathParameters | QueryParameters;
4213
+ /**
4214
+ * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
4215
+ * types for query parameters for the value.
4216
+ */
4217
+ type CustomQueryParameters = {
4218
+ [key in `c_${string}`]: string | number | boolean | string[] | number[];
4219
+ };
4220
+ /**
4221
+ * Custom body request type with any string prefixed with `c_` as the key and the allowed
4222
+ * types for the value.
4223
+ */
4224
+ type CustomRequestBody = {
4225
+ [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
4226
+ [key: string]: unknown;
4227
+ };
4228
+ };
4197
4229
  /**
4198
4230
  * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
4199
4231
  * it from the `RequestInit` provided by node-fetch.
@@ -9069,6 +9101,22 @@ declare namespace ShopperContextsTypes {
9069
9101
  * Generic interface for all parameter types.
9070
9102
  */
9071
9103
  type UrlParameters = PathParameters | QueryParameters;
9104
+ /**
9105
+ * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
9106
+ * types for query parameters for the value.
9107
+ */
9108
+ type CustomQueryParameters = {
9109
+ [key in `c_${string}`]: string | number | boolean | string[] | number[];
9110
+ };
9111
+ /**
9112
+ * Custom body request type with any string prefixed with `c_` as the key and the allowed
9113
+ * types for the value.
9114
+ */
9115
+ type CustomRequestBody = {
9116
+ [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
9117
+ [key: string]: unknown;
9118
+ };
9119
+ };
9072
9120
  /**
9073
9121
  * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
9074
9122
  * it from the `RequestInit` provided by node-fetch.
@@ -12981,6 +13029,22 @@ declare namespace ShopperCustomersTypes {
12981
13029
  * Generic interface for all parameter types.
12982
13030
  */
12983
13031
  type UrlParameters = PathParameters | QueryParameters;
13032
+ /**
13033
+ * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
13034
+ * types for query parameters for the value.
13035
+ */
13036
+ type CustomQueryParameters = {
13037
+ [key in `c_${string}`]: string | number | boolean | string[] | number[];
13038
+ };
13039
+ /**
13040
+ * Custom body request type with any string prefixed with `c_` as the key and the allowed
13041
+ * types for the value.
13042
+ */
13043
+ type CustomRequestBody = {
13044
+ [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
13045
+ [key: string]: unknown;
13046
+ };
13047
+ };
12984
13048
  /**
12985
13049
  * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
12986
13050
  * it from the `RequestInit` provided by node-fetch.
@@ -16787,6 +16851,22 @@ declare namespace ShopperDiscoverySearchTypes {
16787
16851
  * Generic interface for all parameter types.
16788
16852
  */
16789
16853
  type UrlParameters = PathParameters | QueryParameters;
16854
+ /**
16855
+ * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
16856
+ * types for query parameters for the value.
16857
+ */
16858
+ type CustomQueryParameters = {
16859
+ [key in `c_${string}`]: string | number | boolean | string[] | number[];
16860
+ };
16861
+ /**
16862
+ * Custom body request type with any string prefixed with `c_` as the key and the allowed
16863
+ * types for the value.
16864
+ */
16865
+ type CustomRequestBody = {
16866
+ [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
16867
+ [key: string]: unknown;
16868
+ };
16869
+ };
16790
16870
  /**
16791
16871
  * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
16792
16872
  * it from the `RequestInit` provided by node-fetch.
@@ -17915,6 +17995,22 @@ declare namespace ShopperExperienceTypes {
17915
17995
  * Generic interface for all parameter types.
17916
17996
  */
17917
17997
  type UrlParameters = PathParameters | QueryParameters;
17998
+ /**
17999
+ * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
18000
+ * types for query parameters for the value.
18001
+ */
18002
+ type CustomQueryParameters = {
18003
+ [key in `c_${string}`]: string | number | boolean | string[] | number[];
18004
+ };
18005
+ /**
18006
+ * Custom body request type with any string prefixed with `c_` as the key and the allowed
18007
+ * types for the value.
18008
+ */
18009
+ type CustomRequestBody = {
18010
+ [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
18011
+ [key: string]: unknown;
18012
+ };
18013
+ };
17918
18014
  /**
17919
18015
  * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
17920
18016
  * it from the `RequestInit` provided by node-fetch.
@@ -18823,6 +18919,22 @@ declare namespace ShopperGiftCertificatesTypes {
18823
18919
  * Generic interface for all parameter types.
18824
18920
  */
18825
18921
  type UrlParameters = PathParameters | QueryParameters;
18922
+ /**
18923
+ * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
18924
+ * types for query parameters for the value.
18925
+ */
18926
+ type CustomQueryParameters = {
18927
+ [key in `c_${string}`]: string | number | boolean | string[] | number[];
18928
+ };
18929
+ /**
18930
+ * Custom body request type with any string prefixed with `c_` as the key and the allowed
18931
+ * types for the value.
18932
+ */
18933
+ type CustomRequestBody = {
18934
+ [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
18935
+ [key: string]: unknown;
18936
+ };
18937
+ };
18826
18938
  /**
18827
18939
  * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
18828
18940
  * it from the `RequestInit` provided by node-fetch.
@@ -20582,6 +20694,22 @@ declare namespace ShopperOrdersTypes {
20582
20694
  * Generic interface for all parameter types.
20583
20695
  */
20584
20696
  type UrlParameters = PathParameters | QueryParameters;
20697
+ /**
20698
+ * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
20699
+ * types for query parameters for the value.
20700
+ */
20701
+ type CustomQueryParameters = {
20702
+ [key in `c_${string}`]: string | number | boolean | string[] | number[];
20703
+ };
20704
+ /**
20705
+ * Custom body request type with any string prefixed with `c_` as the key and the allowed
20706
+ * types for the value.
20707
+ */
20708
+ type CustomRequestBody = {
20709
+ [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
20710
+ [key: string]: unknown;
20711
+ };
20712
+ };
20585
20713
  /**
20586
20714
  * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
20587
20715
  * it from the `RequestInit` provided by node-fetch.
@@ -22917,6 +23045,22 @@ declare namespace ShopperProductsTypes {
22917
23045
  * Generic interface for all parameter types.
22918
23046
  */
22919
23047
  type UrlParameters = PathParameters | QueryParameters;
23048
+ /**
23049
+ * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
23050
+ * types for query parameters for the value.
23051
+ */
23052
+ type CustomQueryParameters = {
23053
+ [key in `c_${string}`]: string | number | boolean | string[] | number[];
23054
+ };
23055
+ /**
23056
+ * Custom body request type with any string prefixed with `c_` as the key and the allowed
23057
+ * types for the value.
23058
+ */
23059
+ type CustomRequestBody = {
23060
+ [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
23061
+ [key: string]: unknown;
23062
+ };
23063
+ };
22920
23064
  /**
22921
23065
  * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
22922
23066
  * it from the `RequestInit` provided by node-fetch.
@@ -24280,6 +24424,22 @@ declare namespace ShopperPromotionsTypes {
24280
24424
  * Generic interface for all parameter types.
24281
24425
  */
24282
24426
  type UrlParameters = PathParameters | QueryParameters;
24427
+ /**
24428
+ * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
24429
+ * types for query parameters for the value.
24430
+ */
24431
+ type CustomQueryParameters = {
24432
+ [key in `c_${string}`]: string | number | boolean | string[] | number[];
24433
+ };
24434
+ /**
24435
+ * Custom body request type with any string prefixed with `c_` as the key and the allowed
24436
+ * types for the value.
24437
+ */
24438
+ type CustomRequestBody = {
24439
+ [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
24440
+ [key: string]: unknown;
24441
+ };
24442
+ };
24283
24443
  /**
24284
24444
  * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
24285
24445
  * it from the `RequestInit` provided by node-fetch.
@@ -25182,12 +25342,14 @@ type ShopperSearchQueryParameters = {
25182
25342
  sort?: string;
25183
25343
  currency?: string;
25184
25344
  locale?: string;
25185
- expand?: Array<string>;
25345
+ expand?: Array<string> | string;
25186
25346
  allImages?: boolean;
25187
25347
  perPricebook?: boolean;
25188
25348
  allVariationProperties?: boolean;
25349
+ includedCustomVariationProperties?: string;
25189
25350
  offset?: any;
25190
25351
  limit?: number;
25352
+ includedCustomProductProperties?: string;
25191
25353
  };
25192
25354
  /**
25193
25355
  * All parameters that are used by ShopperSearch.
@@ -25247,6 +25409,7 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
25247
25409
  "allImages",
25248
25410
  "perPricebook",
25249
25411
  "allVariationProperties",
25412
+ "includedCustomVariationProperties",
25250
25413
  "offset",
25251
25414
  "limit"
25252
25415
  ];
@@ -25260,7 +25423,9 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
25260
25423
  "q",
25261
25424
  "limit",
25262
25425
  "currency",
25263
- "locale"
25426
+ "locale",
25427
+ "expand",
25428
+ "includedCustomProductProperties"
25264
25429
  ];
25265
25430
  readonly getSearchSuggestionsRequired: readonly [
25266
25431
  "organizationId",
@@ -25298,6 +25463,7 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
25298
25463
  * @param allImages - When the `images` expand parameter is used with this flag, the response includes the `imageGroups property`, which contains an image model. If this flag is true, the full image model is returned. If false, only matching images are included. If no flag is passed, the `imageGroups` property is omitted from the response.
25299
25464
  * @param perPricebook - 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).
25300
25465
  * @param allVariationProperties - 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.
25466
+ * @param includedCustomVariationProperties - 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.
25301
25467
  * @param offset -
25302
25468
  * @param limit - Maximum records to retrieve per request, not to exceed 200. Defaults to 25.
25303
25469
  * @param headers - An object literal of key value pairs of the headers to be
@@ -25320,6 +25486,7 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
25320
25486
  allImages?: boolean;
25321
25487
  perPricebook?: boolean;
25322
25488
  allVariationProperties?: boolean;
25489
+ includedCustomVariationProperties?: string;
25323
25490
  offset?: any;
25324
25491
  limit?: number;
25325
25492
  } & {
@@ -25357,6 +25524,7 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
25357
25524
  * @param allImages - When the `images` expand parameter is used with this flag, the response includes the `imageGroups property`, which contains an image model. If this flag is true, the full image model is returned. If false, only matching images are included. If no flag is passed, the `imageGroups` property is omitted from the response.
25358
25525
  * @param perPricebook - 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).
25359
25526
  * @param allVariationProperties - 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.
25527
+ * @param includedCustomVariationProperties - 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.
25360
25528
  * @param offset -
25361
25529
  * @param limit - Maximum records to retrieve per request, not to exceed 200. Defaults to 25.
25362
25530
  * @param headers - An object literal of key value pairs of the headers to be
@@ -25379,6 +25547,7 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
25379
25547
  allImages?: boolean;
25380
25548
  perPricebook?: boolean;
25381
25549
  allVariationProperties?: boolean;
25550
+ includedCustomVariationProperties?: string;
25382
25551
  offset?: any;
25383
25552
  limit?: number;
25384
25553
  } & {
@@ -25401,6 +25570,8 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
25401
25570
  * @param limit - 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).
25402
25571
  * @param currency - The currency code specified for price. This parameter is effective only for product suggestions.
25403
25572
  * @param locale -
25573
+ * @param expand - A comma-separated list that allows values `images`, `prices`, `custom_product_properties`. By default, the expand parameter includes `prices`.
25574
+ * @param includedCustomProductProperties - 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.
25404
25575
  * @param headers - An object literal of key value pairs of the headers to be
25405
25576
  * sent with this request.
25406
25577
  *
@@ -25415,6 +25586,8 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
25415
25586
  limit?: number;
25416
25587
  currency?: string;
25417
25588
  locale?: string;
25589
+ expand?: string;
25590
+ includedCustomProductProperties?: string;
25418
25591
  } & {
25419
25592
  [key in `c_${string}`]: any;
25420
25593
  }, ConfigParameters>;
@@ -25433,6 +25606,8 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
25433
25606
  * @param limit - 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).
25434
25607
  * @param currency - The currency code specified for price. This parameter is effective only for product suggestions.
25435
25608
  * @param locale -
25609
+ * @param expand - A comma-separated list that allows values `images`, `prices`, `custom_product_properties`. By default, the expand parameter includes `prices`.
25610
+ * @param includedCustomProductProperties - 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.
25436
25611
  * @param headers - An object literal of key value pairs of the headers to be
25437
25612
  * sent with this request.
25438
25613
  * @param rawResponse - Set to true to return entire Response object instead of DTO.
@@ -25447,6 +25622,8 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
25447
25622
  limit?: number;
25448
25623
  currency?: string;
25449
25624
  locale?: string;
25625
+ expand?: string;
25626
+ includedCustomProductProperties?: string;
25450
25627
  } & {
25451
25628
  [key in `c_${string}`]: any;
25452
25629
  }, ConfigParameters>;
@@ -25503,6 +25680,22 @@ declare namespace ShopperSearchTypes {
25503
25680
  * Generic interface for all parameter types.
25504
25681
  */
25505
25682
  type UrlParameters = PathParameters | QueryParameters;
25683
+ /**
25684
+ * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
25685
+ * types for query parameters for the value.
25686
+ */
25687
+ type CustomQueryParameters = {
25688
+ [key in `c_${string}`]: string | number | boolean | string[] | number[];
25689
+ };
25690
+ /**
25691
+ * Custom body request type with any string prefixed with `c_` as the key and the allowed
25692
+ * types for the value.
25693
+ */
25694
+ type CustomRequestBody = {
25695
+ [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
25696
+ [key: string]: unknown;
25697
+ };
25698
+ };
25506
25699
  /**
25507
25700
  * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
25508
25701
  * it from the `RequestInit` provided by node-fetch.
@@ -26063,12 +26256,14 @@ declare namespace ShopperSearchTypes {
26063
26256
  sort?: string;
26064
26257
  currency?: string;
26065
26258
  locale?: string;
26066
- expand?: Array<string>;
26259
+ expand?: Array<string> | string;
26067
26260
  allImages?: boolean;
26068
26261
  perPricebook?: boolean;
26069
26262
  allVariationProperties?: boolean;
26263
+ includedCustomVariationProperties?: string;
26070
26264
  offset?: any;
26071
26265
  limit?: number;
26266
+ includedCustomProductProperties?: string;
26072
26267
  };
26073
26268
  /**
26074
26269
  * All parameters that are used by ShopperSearch.
@@ -26128,6 +26323,7 @@ declare namespace ShopperSearchTypes {
26128
26323
  "allImages",
26129
26324
  "perPricebook",
26130
26325
  "allVariationProperties",
26326
+ "includedCustomVariationProperties",
26131
26327
  "offset",
26132
26328
  "limit"
26133
26329
  ];
@@ -26141,7 +26337,9 @@ declare namespace ShopperSearchTypes {
26141
26337
  "q",
26142
26338
  "limit",
26143
26339
  "currency",
26144
- "locale"
26340
+ "locale",
26341
+ "expand",
26342
+ "includedCustomProductProperties"
26145
26343
  ];
26146
26344
  readonly getSearchSuggestionsRequired: readonly [
26147
26345
  "organizationId",
@@ -26179,6 +26377,7 @@ declare namespace ShopperSearchTypes {
26179
26377
  * @param allImages - When the `images` expand parameter is used with this flag, the response includes the `imageGroups property`, which contains an image model. If this flag is true, the full image model is returned. If false, only matching images are included. If no flag is passed, the `imageGroups` property is omitted from the response.
26180
26378
  * @param perPricebook - 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).
26181
26379
  * @param allVariationProperties - 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.
26380
+ * @param includedCustomVariationProperties - 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.
26182
26381
  * @param offset -
26183
26382
  * @param limit - Maximum records to retrieve per request, not to exceed 200. Defaults to 25.
26184
26383
  * @param headers - An object literal of key value pairs of the headers to be
@@ -26201,6 +26400,7 @@ declare namespace ShopperSearchTypes {
26201
26400
  allImages?: boolean;
26202
26401
  perPricebook?: boolean;
26203
26402
  allVariationProperties?: boolean;
26403
+ includedCustomVariationProperties?: string;
26204
26404
  offset?: any;
26205
26405
  limit?: number;
26206
26406
  } & {
@@ -26238,6 +26438,7 @@ declare namespace ShopperSearchTypes {
26238
26438
  * @param allImages - When the `images` expand parameter is used with this flag, the response includes the `imageGroups property`, which contains an image model. If this flag is true, the full image model is returned. If false, only matching images are included. If no flag is passed, the `imageGroups` property is omitted from the response.
26239
26439
  * @param perPricebook - 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).
26240
26440
  * @param allVariationProperties - 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.
26441
+ * @param includedCustomVariationProperties - 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.
26241
26442
  * @param offset -
26242
26443
  * @param limit - Maximum records to retrieve per request, not to exceed 200. Defaults to 25.
26243
26444
  * @param headers - An object literal of key value pairs of the headers to be
@@ -26260,6 +26461,7 @@ declare namespace ShopperSearchTypes {
26260
26461
  allImages?: boolean;
26261
26462
  perPricebook?: boolean;
26262
26463
  allVariationProperties?: boolean;
26464
+ includedCustomVariationProperties?: string;
26263
26465
  offset?: any;
26264
26466
  limit?: number;
26265
26467
  } & {
@@ -26282,6 +26484,8 @@ declare namespace ShopperSearchTypes {
26282
26484
  * @param limit - 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).
26283
26485
  * @param currency - The currency code specified for price. This parameter is effective only for product suggestions.
26284
26486
  * @param locale -
26487
+ * @param expand - A comma-separated list that allows values `images`, `prices`, `custom_product_properties`. By default, the expand parameter includes `prices`.
26488
+ * @param includedCustomProductProperties - 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.
26285
26489
  * @param headers - An object literal of key value pairs of the headers to be
26286
26490
  * sent with this request.
26287
26491
  *
@@ -26296,6 +26500,8 @@ declare namespace ShopperSearchTypes {
26296
26500
  limit?: number;
26297
26501
  currency?: string;
26298
26502
  locale?: string;
26503
+ expand?: string;
26504
+ includedCustomProductProperties?: string;
26299
26505
  } & {
26300
26506
  [key in `c_${string}`]: any;
26301
26507
  }, ConfigParameters>;
@@ -26314,6 +26520,8 @@ declare namespace ShopperSearchTypes {
26314
26520
  * @param limit - 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).
26315
26521
  * @param currency - The currency code specified for price. This parameter is effective only for product suggestions.
26316
26522
  * @param locale -
26523
+ * @param expand - A comma-separated list that allows values `images`, `prices`, `custom_product_properties`. By default, the expand parameter includes `prices`.
26524
+ * @param includedCustomProductProperties - 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.
26317
26525
  * @param headers - An object literal of key value pairs of the headers to be
26318
26526
  * sent with this request.
26319
26527
  * @param rawResponse - Set to true to return entire Response object instead of DTO.
@@ -26328,6 +26536,8 @@ declare namespace ShopperSearchTypes {
26328
26536
  limit?: number;
26329
26537
  currency?: string;
26330
26538
  locale?: string;
26539
+ expand?: string;
26540
+ includedCustomProductProperties?: string;
26331
26541
  } & {
26332
26542
  [key in `c_${string}`]: any;
26333
26543
  }, ConfigParameters>;
@@ -26650,6 +26860,22 @@ declare namespace ShopperSeoTypes {
26650
26860
  * Generic interface for all parameter types.
26651
26861
  */
26652
26862
  type UrlParameters = PathParameters | QueryParameters;
26863
+ /**
26864
+ * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
26865
+ * types for query parameters for the value.
26866
+ */
26867
+ type CustomQueryParameters = {
26868
+ [key in `c_${string}`]: string | number | boolean | string[] | number[];
26869
+ };
26870
+ /**
26871
+ * Custom body request type with any string prefixed with `c_` as the key and the allowed
26872
+ * types for the value.
26873
+ */
26874
+ type CustomRequestBody = {
26875
+ [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
26876
+ [key: string]: unknown;
26877
+ };
26878
+ };
26653
26879
  /**
26654
26880
  * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
26655
26881
  * it from the `RequestInit` provided by node-fetch.
@@ -27591,6 +27817,22 @@ declare namespace ShopperStoresTypes {
27591
27817
  * Generic interface for all parameter types.
27592
27818
  */
27593
27819
  type UrlParameters = PathParameters | QueryParameters;
27820
+ /**
27821
+ * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
27822
+ * types for query parameters for the value.
27823
+ */
27824
+ type CustomQueryParameters = {
27825
+ [key in `c_${string}`]: string | number | boolean | string[] | number[];
27826
+ };
27827
+ /**
27828
+ * Custom body request type with any string prefixed with `c_` as the key and the allowed
27829
+ * types for the value.
27830
+ */
27831
+ type CustomRequestBody = {
27832
+ [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
27833
+ [key: string]: unknown;
27834
+ };
27835
+ };
27594
27836
  /**
27595
27837
  * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
27596
27838
  * it from the `RequestInit` provided by node-fetch.
@@ -29821,6 +30063,22 @@ declare namespace ShopperLoginTypes {
29821
30063
  * Generic interface for all parameter types.
29822
30064
  */
29823
30065
  type UrlParameters = PathParameters | QueryParameters;
30066
+ /**
30067
+ * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
30068
+ * types for query parameters for the value.
30069
+ */
30070
+ type CustomQueryParameters = {
30071
+ [key in `c_${string}`]: string | number | boolean | string[] | number[];
30072
+ };
30073
+ /**
30074
+ * Custom body request type with any string prefixed with `c_` as the key and the allowed
30075
+ * types for the value.
30076
+ */
30077
+ type CustomRequestBody = {
30078
+ [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
30079
+ [key: string]: unknown;
30080
+ };
30081
+ };
29824
30082
  /**
29825
30083
  * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
29826
30084
  * it from the `RequestInit` provided by node-fetch.
@@ -31680,6 +31938,22 @@ declare namespace helpers {
31680
31938
  * Generic interface for all parameter types.
31681
31939
  */
31682
31940
  type UrlParameters = PathParameters | QueryParameters;
31941
+ /**
31942
+ * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
31943
+ * types for query parameters for the value.
31944
+ */
31945
+ type CustomQueryParameters = {
31946
+ [key in `c_${string}`]: string | number | boolean | string[] | number[];
31947
+ };
31948
+ /**
31949
+ * Custom body request type with any string prefixed with `c_` as the key and the allowed
31950
+ * types for the value.
31951
+ */
31952
+ type CustomRequestBody = {
31953
+ [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
31954
+ [key: string]: unknown;
31955
+ };
31956
+ };
31683
31957
  /**
31684
31958
  * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
31685
31959
  * it from the `RequestInit` provided by node-fetch.
@@ -33492,10 +33766,11 @@ declare namespace helpers {
33492
33766
  * Wrapper for the authorization endpoint. For federated login (3rd party IDP non-guest), the caller should redirect the user to the url in the url field of the returned object. The url will be the login page for the 3rd party IDP and the user will be sent to the redirectURI on success. Guest sessions return the code and usid directly with no need to redirect.
33493
33767
  * @param slasClient a configured instance of the ShopperLogin SDK client
33494
33768
  * @param codeVerifier - random string created by client app to use as a secret in the request
33495
- * @param parameters - Request parameters used by the `authorizeCustomer` endpoint.
33769
+ * @param parameters - Request parameters used by the `authorizeCustomer` endpoint. Custom parameters can be passed on by adding a property on the `parameters` object starting with `c_`
33496
33770
  * @param parameters.redirectURI - the location the client will be returned to after successful login with 3rd party IDP. Must be registered in SLAS.
33497
33771
  * @param parameters.hint? - optional string to hint at a particular IDP. Guest sessions are created by setting this to 'guest'
33498
33772
  * @param parameters.usid? - optional saved SLAS user id to link the new session to a previous session
33773
+ * @param privateClient? - flag to indicate if the client is private or not. Defaults to false.
33499
33774
  * @returns login url, user id and authorization code if available
33500
33775
  */
33501
33776
  function authorize(slasClient: ShopperLogin<{
@@ -33507,7 +33782,7 @@ declare namespace helpers {
33507
33782
  redirectURI: string;
33508
33783
  hint?: string;
33509
33784
  usid?: string;
33510
- }, privateClient?: boolean): Promise<{
33785
+ } & CustomQueryParameters, privateClient?: boolean): Promise<{
33511
33786
  code: string;
33512
33787
  url: string;
33513
33788
  usid: string;
@@ -33515,7 +33790,7 @@ declare namespace helpers {
33515
33790
  /**
33516
33791
  * Function to return the URL of the authorization endpoint. The url will redirect to the login page for the 3rd party IDP and the user will be sent to the redirectURI on success. Guest sessions return the code and usid directly with no need to redirect.
33517
33792
  * @param slasClient a configured instance of the ShopperLogin SDK client
33518
- * @param parameters - Request parameters used by the `authorizeCustomer` endpoint.
33793
+ * @param parameters - Request parameters used by the `authorizeCustomer` endpoint. Custom parameters can be passed on by adding a property on the `parameters` object starting with `c_`
33519
33794
  * @param parameters.redirectURI - the location the client will be returned to after successful login with 3rd party IDP. Must be registered in SLAS.
33520
33795
  * @param parameters.hint - string to hint at a particular IDP. Required for 3rd party IDP login.
33521
33796
  * @param parameters.usid? - optional saved SLAS user id to link the new session to a previous session
@@ -33532,7 +33807,7 @@ declare namespace helpers {
33532
33807
  redirectURI: string;
33533
33808
  hint: string;
33534
33809
  usid?: string;
33535
- }, privateClient?: boolean): Promise<{
33810
+ } & CustomQueryParameters, privateClient?: boolean): Promise<{
33536
33811
  url: string;
33537
33812
  codeVerifier: string;
33538
33813
  }>;
@@ -33588,7 +33863,7 @@ declare namespace helpers {
33588
33863
  /**
33589
33864
  * A single function to execute the ShopperLogin Public Client Guest 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).
33590
33865
  * @param slasClient a configured instance of the ShopperLogin SDK client.
33591
- * @param parameters - parameters to pass in the API calls.
33866
+ * @param parameters - parameters to pass in the API calls. Custom parameters can be passed on by adding a property on the `parameters` object starting with `c_`, and they will be passed on the `authorizeCustomer` call.
33592
33867
  * @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.
33593
33868
  * @param parameters.usid? - Unique Shopper Identifier to enable personalization.
33594
33869
  * @param parameters.dnt? - Optional parameter to enable Do Not Track (DNT) for the user.
@@ -33603,7 +33878,7 @@ declare namespace helpers {
33603
33878
  redirectURI: string;
33604
33879
  usid?: string;
33605
33880
  dnt?: boolean;
33606
- }): Promise<TokenResponse>;
33881
+ } & CustomQueryParameters): Promise<TokenResponse>;
33607
33882
  /**
33608
33883
  * 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).
33609
33884
  * **Note**: this func can run on client side. Only use private slas when the slas client secret is secured.
@@ -33616,6 +33891,8 @@ declare namespace helpers {
33616
33891
  * @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.
33617
33892
  * @param parameters.usid? - Unique Shopper Identifier to enable personalization.
33618
33893
  * @param parameters.dnt? - Optional parameter to enable Do Not Track (DNT) for the user.
33894
+ * @para options? - options to pass in the ShopperLogin 'authenticateCustomer' method
33895
+ * @param options.body - optional body parameters to pass in the ShopperLogin 'authenticateCustomer' method.
33619
33896
  * @returns TokenResponse
33620
33897
  */
33621
33898
  function loginRegisteredUserB2C(slasClient: ShopperLogin<{
@@ -33631,6 +33908,8 @@ declare namespace helpers {
33631
33908
  redirectURI: string;
33632
33909
  usid?: string;
33633
33910
  dnt?: boolean;
33911
+ }, options?: {
33912
+ body?: CustomRequestBody;
33634
33913
  }): Promise<TokenResponse>;
33635
33914
  /* Function to send passwordless login token
33636
33915
  * **Note** At the moment, passwordless is only supported on private client
@@ -33795,6 +34074,13 @@ declare namespace helpers {
33795
34074
  }) | undefined;
33796
34075
  body?: BodyInit | globalThis.BodyInit | unknown;
33797
34076
  } | undefined, clientConfig?: ClientConfigInit<Params> | undefined, rawResponse?: boolean | undefined) => Promise<Response | unknown>;
34077
+ /**
34078
+ * Single encodes SCAPI specific special characters (percentage sign `%` and comma `,`) in the given string in UTF-8
34079
+ * Does not encode any other special characters in the string
34080
+ * @param str - The string to encode
34081
+ * @returns The encoded string
34082
+ */
34083
+ const encodeSCAPISpecialCharacters: (str: string) => string;
33798
34084
  }
33799
34085
  export { ShopperBaskets, ShopperContexts, ShopperCustomers, ShopperDiscoverySearch, ShopperExperience, ShopperGiftCertificates, ShopperOrders, ShopperProducts, ShopperPromotions, ShopperSearch, ShopperSeo, ShopperStores, ShopperLogin, ClientConfig, TemplateURL, helpers };
33800
34086
  export type { ShopperBasketsTypes, ShopperContextsTypes, ShopperCustomersTypes, ShopperDiscoverySearchTypes, ShopperExperienceTypes, ShopperGiftCertificatesTypes, ShopperOrdersTypes, ShopperProductsTypes, ShopperPromotionsTypes, ShopperSearchTypes, ShopperSeoTypes, ShopperStoresTypes, ShopperLoginTypes, ClientConfigInit };