commerce-sdk-isomorphic 3.3.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.
- package/lib/index.cjs.d.ts +38 -4
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.d.ts +38 -4
- package/lib/index.esm.js +1 -1
- package/package.json +1 -1
package/lib/index.esm.d.ts
CHANGED
|
@@ -25342,12 +25342,14 @@ type ShopperSearchQueryParameters = {
|
|
|
25342
25342
|
sort?: string;
|
|
25343
25343
|
currency?: string;
|
|
25344
25344
|
locale?: string;
|
|
25345
|
-
expand?: Array<string
|
|
25345
|
+
expand?: Array<string> | string;
|
|
25346
25346
|
allImages?: boolean;
|
|
25347
25347
|
perPricebook?: boolean;
|
|
25348
25348
|
allVariationProperties?: boolean;
|
|
25349
|
+
includedCustomVariationProperties?: string;
|
|
25349
25350
|
offset?: any;
|
|
25350
25351
|
limit?: number;
|
|
25352
|
+
includedCustomProductProperties?: string;
|
|
25351
25353
|
};
|
|
25352
25354
|
/**
|
|
25353
25355
|
* All parameters that are used by ShopperSearch.
|
|
@@ -25407,6 +25409,7 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
|
|
|
25407
25409
|
"allImages",
|
|
25408
25410
|
"perPricebook",
|
|
25409
25411
|
"allVariationProperties",
|
|
25412
|
+
"includedCustomVariationProperties",
|
|
25410
25413
|
"offset",
|
|
25411
25414
|
"limit"
|
|
25412
25415
|
];
|
|
@@ -25420,7 +25423,9 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
|
|
|
25420
25423
|
"q",
|
|
25421
25424
|
"limit",
|
|
25422
25425
|
"currency",
|
|
25423
|
-
"locale"
|
|
25426
|
+
"locale",
|
|
25427
|
+
"expand",
|
|
25428
|
+
"includedCustomProductProperties"
|
|
25424
25429
|
];
|
|
25425
25430
|
readonly getSearchSuggestionsRequired: readonly [
|
|
25426
25431
|
"organizationId",
|
|
@@ -25458,6 +25463,7 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
|
|
|
25458
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.
|
|
25459
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).
|
|
25460
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.
|
|
25461
25467
|
* @param offset -
|
|
25462
25468
|
* @param limit - Maximum records to retrieve per request, not to exceed 200. Defaults to 25.
|
|
25463
25469
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
@@ -25480,6 +25486,7 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
|
|
|
25480
25486
|
allImages?: boolean;
|
|
25481
25487
|
perPricebook?: boolean;
|
|
25482
25488
|
allVariationProperties?: boolean;
|
|
25489
|
+
includedCustomVariationProperties?: string;
|
|
25483
25490
|
offset?: any;
|
|
25484
25491
|
limit?: number;
|
|
25485
25492
|
} & {
|
|
@@ -25517,6 +25524,7 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
|
|
|
25517
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.
|
|
25518
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).
|
|
25519
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.
|
|
25520
25528
|
* @param offset -
|
|
25521
25529
|
* @param limit - Maximum records to retrieve per request, not to exceed 200. Defaults to 25.
|
|
25522
25530
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
@@ -25539,6 +25547,7 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
|
|
|
25539
25547
|
allImages?: boolean;
|
|
25540
25548
|
perPricebook?: boolean;
|
|
25541
25549
|
allVariationProperties?: boolean;
|
|
25550
|
+
includedCustomVariationProperties?: string;
|
|
25542
25551
|
offset?: any;
|
|
25543
25552
|
limit?: number;
|
|
25544
25553
|
} & {
|
|
@@ -25561,6 +25570,8 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
|
|
|
25561
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).
|
|
25562
25571
|
* @param currency - The currency code specified for price. This parameter is effective only for product suggestions.
|
|
25563
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.
|
|
25564
25575
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
25565
25576
|
* sent with this request.
|
|
25566
25577
|
*
|
|
@@ -25575,6 +25586,8 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
|
|
|
25575
25586
|
limit?: number;
|
|
25576
25587
|
currency?: string;
|
|
25577
25588
|
locale?: string;
|
|
25589
|
+
expand?: string;
|
|
25590
|
+
includedCustomProductProperties?: string;
|
|
25578
25591
|
} & {
|
|
25579
25592
|
[key in `c_${string}`]: any;
|
|
25580
25593
|
}, ConfigParameters>;
|
|
@@ -25593,6 +25606,8 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
|
|
|
25593
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).
|
|
25594
25607
|
* @param currency - The currency code specified for price. This parameter is effective only for product suggestions.
|
|
25595
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.
|
|
25596
25611
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
25597
25612
|
* sent with this request.
|
|
25598
25613
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -25607,6 +25622,8 @@ declare class ShopperSearch<ConfigParameters extends ShopperSearchParameters & R
|
|
|
25607
25622
|
limit?: number;
|
|
25608
25623
|
currency?: string;
|
|
25609
25624
|
locale?: string;
|
|
25625
|
+
expand?: string;
|
|
25626
|
+
includedCustomProductProperties?: string;
|
|
25610
25627
|
} & {
|
|
25611
25628
|
[key in `c_${string}`]: any;
|
|
25612
25629
|
}, ConfigParameters>;
|
|
@@ -26239,12 +26256,14 @@ declare namespace ShopperSearchTypes {
|
|
|
26239
26256
|
sort?: string;
|
|
26240
26257
|
currency?: string;
|
|
26241
26258
|
locale?: string;
|
|
26242
|
-
expand?: Array<string
|
|
26259
|
+
expand?: Array<string> | string;
|
|
26243
26260
|
allImages?: boolean;
|
|
26244
26261
|
perPricebook?: boolean;
|
|
26245
26262
|
allVariationProperties?: boolean;
|
|
26263
|
+
includedCustomVariationProperties?: string;
|
|
26246
26264
|
offset?: any;
|
|
26247
26265
|
limit?: number;
|
|
26266
|
+
includedCustomProductProperties?: string;
|
|
26248
26267
|
};
|
|
26249
26268
|
/**
|
|
26250
26269
|
* All parameters that are used by ShopperSearch.
|
|
@@ -26304,6 +26323,7 @@ declare namespace ShopperSearchTypes {
|
|
|
26304
26323
|
"allImages",
|
|
26305
26324
|
"perPricebook",
|
|
26306
26325
|
"allVariationProperties",
|
|
26326
|
+
"includedCustomVariationProperties",
|
|
26307
26327
|
"offset",
|
|
26308
26328
|
"limit"
|
|
26309
26329
|
];
|
|
@@ -26317,7 +26337,9 @@ declare namespace ShopperSearchTypes {
|
|
|
26317
26337
|
"q",
|
|
26318
26338
|
"limit",
|
|
26319
26339
|
"currency",
|
|
26320
|
-
"locale"
|
|
26340
|
+
"locale",
|
|
26341
|
+
"expand",
|
|
26342
|
+
"includedCustomProductProperties"
|
|
26321
26343
|
];
|
|
26322
26344
|
readonly getSearchSuggestionsRequired: readonly [
|
|
26323
26345
|
"organizationId",
|
|
@@ -26355,6 +26377,7 @@ declare namespace ShopperSearchTypes {
|
|
|
26355
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.
|
|
26356
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).
|
|
26357
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.
|
|
26358
26381
|
* @param offset -
|
|
26359
26382
|
* @param limit - Maximum records to retrieve per request, not to exceed 200. Defaults to 25.
|
|
26360
26383
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
@@ -26377,6 +26400,7 @@ declare namespace ShopperSearchTypes {
|
|
|
26377
26400
|
allImages?: boolean;
|
|
26378
26401
|
perPricebook?: boolean;
|
|
26379
26402
|
allVariationProperties?: boolean;
|
|
26403
|
+
includedCustomVariationProperties?: string;
|
|
26380
26404
|
offset?: any;
|
|
26381
26405
|
limit?: number;
|
|
26382
26406
|
} & {
|
|
@@ -26414,6 +26438,7 @@ declare namespace ShopperSearchTypes {
|
|
|
26414
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.
|
|
26415
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).
|
|
26416
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.
|
|
26417
26442
|
* @param offset -
|
|
26418
26443
|
* @param limit - Maximum records to retrieve per request, not to exceed 200. Defaults to 25.
|
|
26419
26444
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
@@ -26436,6 +26461,7 @@ declare namespace ShopperSearchTypes {
|
|
|
26436
26461
|
allImages?: boolean;
|
|
26437
26462
|
perPricebook?: boolean;
|
|
26438
26463
|
allVariationProperties?: boolean;
|
|
26464
|
+
includedCustomVariationProperties?: string;
|
|
26439
26465
|
offset?: any;
|
|
26440
26466
|
limit?: number;
|
|
26441
26467
|
} & {
|
|
@@ -26458,6 +26484,8 @@ declare namespace ShopperSearchTypes {
|
|
|
26458
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).
|
|
26459
26485
|
* @param currency - The currency code specified for price. This parameter is effective only for product suggestions.
|
|
26460
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.
|
|
26461
26489
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
26462
26490
|
* sent with this request.
|
|
26463
26491
|
*
|
|
@@ -26472,6 +26500,8 @@ declare namespace ShopperSearchTypes {
|
|
|
26472
26500
|
limit?: number;
|
|
26473
26501
|
currency?: string;
|
|
26474
26502
|
locale?: string;
|
|
26503
|
+
expand?: string;
|
|
26504
|
+
includedCustomProductProperties?: string;
|
|
26475
26505
|
} & {
|
|
26476
26506
|
[key in `c_${string}`]: any;
|
|
26477
26507
|
}, ConfigParameters>;
|
|
@@ -26490,6 +26520,8 @@ declare namespace ShopperSearchTypes {
|
|
|
26490
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).
|
|
26491
26521
|
* @param currency - The currency code specified for price. This parameter is effective only for product suggestions.
|
|
26492
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.
|
|
26493
26525
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
26494
26526
|
* sent with this request.
|
|
26495
26527
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -26504,6 +26536,8 @@ declare namespace ShopperSearchTypes {
|
|
|
26504
26536
|
limit?: number;
|
|
26505
26537
|
currency?: string;
|
|
26506
26538
|
locale?: string;
|
|
26539
|
+
expand?: string;
|
|
26540
|
+
includedCustomProductProperties?: string;
|
|
26507
26541
|
} & {
|
|
26508
26542
|
[key in `c_${string}`]: any;
|
|
26509
26543
|
}, ConfigParameters>;
|