@wix/stores 1.0.236 → 1.0.238
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/stores",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.238",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@wix/stores_inventory": "1.0.39",
|
|
27
27
|
"@wix/stores_inventory-items-v-3": "1.0.14",
|
|
28
28
|
"@wix/stores_products": "1.0.54",
|
|
29
|
-
"@wix/stores_products-v-3": "1.0.
|
|
29
|
+
"@wix/stores_products-v-3": "1.0.45",
|
|
30
30
|
"@wix/stores_ribbons-v-3": "1.0.10",
|
|
31
31
|
"@wix/stores_stores-locations-v-3": "1.0.11",
|
|
32
32
|
"@wix/stores_subscription-options": "1.0.35",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"fqdn": ""
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
"falconPackageHash": "
|
|
58
|
+
"falconPackageHash": "1d5ca74e678c1dfa8735522c6b43f39a7bbc38a892c91fa01b9a3dc7"
|
|
59
59
|
}
|
|
@@ -11611,7 +11611,7 @@ interface ProductCategoriesInfo {
|
|
|
11611
11611
|
interface ProductCategory {
|
|
11612
11612
|
/** Category ID. */
|
|
11613
11613
|
_id?: string;
|
|
11614
|
-
/** Index location of the product within the category. */
|
|
11614
|
+
/** Index location of the product within the category, which can be utilized for sorting products in a specific category. For detailed instructions on how to set this up, refer to the [Add and arrange products in category](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/products-v3/sample-use-cases-and-flows#add-and-arrange-products-in-category) sample flow. */
|
|
11615
11615
|
index?: number | null;
|
|
11616
11616
|
}
|
|
11617
11617
|
interface ProductCategoryIdsInfo {
|
|
@@ -12124,8 +12124,35 @@ interface MinVariantPriceInfo {
|
|
|
12124
12124
|
/**
|
|
12125
12125
|
* Variant price per unit. Takes into account `pricePerUnit` settings of parent product, of this variant, and discounted price of variant.
|
|
12126
12126
|
* @readonly
|
|
12127
|
+
* @deprecated
|
|
12128
|
+
* @replacedBy price_per_unit_data
|
|
12129
|
+
* @targetRemovalDate 2024-10-05
|
|
12127
12130
|
*/
|
|
12128
12131
|
pricePerUnit?: string | null;
|
|
12132
|
+
/**
|
|
12133
|
+
* Variant price per unit.
|
|
12134
|
+
* @readonly
|
|
12135
|
+
*/
|
|
12136
|
+
pricePerUnitData?: PricePerUnit;
|
|
12137
|
+
/**
|
|
12138
|
+
* Variant SKU (stock keeping unit).
|
|
12139
|
+
* @readonly
|
|
12140
|
+
*/
|
|
12141
|
+
sku?: string | null;
|
|
12142
|
+
/**
|
|
12143
|
+
* Variant shipping weight.
|
|
12144
|
+
* @readonly
|
|
12145
|
+
*/
|
|
12146
|
+
weight?: number | null;
|
|
12147
|
+
/**
|
|
12148
|
+
* Variant revenue details.
|
|
12149
|
+
*
|
|
12150
|
+
* > **Note:** Returned only when the following conditions are met:
|
|
12151
|
+
* > + You pass `"MERCHANT_DATA"` to the `fields` array in Products API requests.
|
|
12152
|
+
* > + Your app has the required `SCOPE.STORES.PRODUCT_READ_ADMIN` permission scope.
|
|
12153
|
+
* @readonly
|
|
12154
|
+
*/
|
|
12155
|
+
revenueDetails?: RevenueDetails;
|
|
12129
12156
|
}
|
|
12130
12157
|
interface UpdateDocumentsEvent extends UpdateDocumentsEventOperationOneOf {
|
|
12131
12158
|
/** insert/update documents */
|
|
@@ -13223,6 +13250,18 @@ interface WixCommonSorting {
|
|
|
13223
13250
|
fieldName?: string;
|
|
13224
13251
|
/** Sort order. */
|
|
13225
13252
|
order?: WixCommonSortOrder;
|
|
13253
|
+
/**
|
|
13254
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
13255
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
13256
|
+
*
|
|
13257
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
13258
|
+
*
|
|
13259
|
+
* Example:
|
|
13260
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
13261
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
13262
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
13263
|
+
*/
|
|
13264
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
13226
13265
|
}
|
|
13227
13266
|
declare enum WixCommonSortOrder {
|
|
13228
13267
|
ASC = "ASC",
|
|
@@ -15584,6 +15623,8 @@ interface MinVariantPriceInfoNonNullableFields {
|
|
|
15584
15623
|
basePrice?: FixedMonetaryAmountNonNullableFields;
|
|
15585
15624
|
salePrice?: FixedMonetaryAmountNonNullableFields;
|
|
15586
15625
|
minSubscriptionPrice?: FixedMonetaryAmountNonNullableFields;
|
|
15626
|
+
pricePerUnitData?: PricePerUnitNonNullableFields;
|
|
15627
|
+
revenueDetails?: RevenueDetailsNonNullableFields;
|
|
15587
15628
|
}
|
|
15588
15629
|
interface V3ProductNonNullableFields {
|
|
15589
15630
|
physicalProperties?: PhysicalPropertiesNonNullableFields;
|
|
@@ -11611,7 +11611,7 @@ interface ProductCategoriesInfo {
|
|
|
11611
11611
|
interface ProductCategory {
|
|
11612
11612
|
/** Category ID. */
|
|
11613
11613
|
_id?: string;
|
|
11614
|
-
/** Index location of the product within the category. */
|
|
11614
|
+
/** Index location of the product within the category, which can be utilized for sorting products in a specific category. For detailed instructions on how to set this up, refer to the [Add and arrange products in category](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/products-v3/sample-use-cases-and-flows#add-and-arrange-products-in-category) sample flow. */
|
|
11615
11615
|
index?: number | null;
|
|
11616
11616
|
}
|
|
11617
11617
|
interface ProductCategoryIdsInfo {
|
|
@@ -12124,8 +12124,35 @@ interface MinVariantPriceInfo {
|
|
|
12124
12124
|
/**
|
|
12125
12125
|
* Variant price per unit. Takes into account `pricePerUnit` settings of parent product, of this variant, and discounted price of variant.
|
|
12126
12126
|
* @readonly
|
|
12127
|
+
* @deprecated
|
|
12128
|
+
* @replacedBy price_per_unit_data
|
|
12129
|
+
* @targetRemovalDate 2024-10-05
|
|
12127
12130
|
*/
|
|
12128
12131
|
pricePerUnit?: string | null;
|
|
12132
|
+
/**
|
|
12133
|
+
* Variant price per unit.
|
|
12134
|
+
* @readonly
|
|
12135
|
+
*/
|
|
12136
|
+
pricePerUnitData?: PricePerUnit;
|
|
12137
|
+
/**
|
|
12138
|
+
* Variant SKU (stock keeping unit).
|
|
12139
|
+
* @readonly
|
|
12140
|
+
*/
|
|
12141
|
+
sku?: string | null;
|
|
12142
|
+
/**
|
|
12143
|
+
* Variant shipping weight.
|
|
12144
|
+
* @readonly
|
|
12145
|
+
*/
|
|
12146
|
+
weight?: number | null;
|
|
12147
|
+
/**
|
|
12148
|
+
* Variant revenue details.
|
|
12149
|
+
*
|
|
12150
|
+
* > **Note:** Returned only when the following conditions are met:
|
|
12151
|
+
* > + You pass `"MERCHANT_DATA"` to the `fields` array in Products API requests.
|
|
12152
|
+
* > + Your app has the required `SCOPE.STORES.PRODUCT_READ_ADMIN` permission scope.
|
|
12153
|
+
* @readonly
|
|
12154
|
+
*/
|
|
12155
|
+
revenueDetails?: RevenueDetails;
|
|
12129
12156
|
}
|
|
12130
12157
|
interface UpdateDocumentsEvent extends UpdateDocumentsEventOperationOneOf {
|
|
12131
12158
|
/** insert/update documents */
|
|
@@ -13223,6 +13250,18 @@ interface WixCommonSorting {
|
|
|
13223
13250
|
fieldName?: string;
|
|
13224
13251
|
/** Sort order. */
|
|
13225
13252
|
order?: WixCommonSortOrder;
|
|
13253
|
+
/**
|
|
13254
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
13255
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
13256
|
+
*
|
|
13257
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
13258
|
+
*
|
|
13259
|
+
* Example:
|
|
13260
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
13261
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
13262
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
13263
|
+
*/
|
|
13264
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
13226
13265
|
}
|
|
13227
13266
|
declare enum WixCommonSortOrder {
|
|
13228
13267
|
ASC = "ASC",
|
|
@@ -15584,6 +15623,8 @@ interface MinVariantPriceInfoNonNullableFields {
|
|
|
15584
15623
|
basePrice?: FixedMonetaryAmountNonNullableFields;
|
|
15585
15624
|
salePrice?: FixedMonetaryAmountNonNullableFields;
|
|
15586
15625
|
minSubscriptionPrice?: FixedMonetaryAmountNonNullableFields;
|
|
15626
|
+
pricePerUnitData?: PricePerUnitNonNullableFields;
|
|
15627
|
+
revenueDetails?: RevenueDetailsNonNullableFields;
|
|
15587
15628
|
}
|
|
15588
15629
|
interface V3ProductNonNullableFields {
|
|
15589
15630
|
physicalProperties?: PhysicalPropertiesNonNullableFields;
|
|
@@ -12973,7 +12973,7 @@ interface ProductCategoriesInfo$1 {
|
|
|
12973
12973
|
interface ProductCategory$1 {
|
|
12974
12974
|
/** Category ID. */
|
|
12975
12975
|
id?: string;
|
|
12976
|
-
/** Index location of the product within the category. */
|
|
12976
|
+
/** Index location of the product within the category, which can be utilized for sorting products in a specific category. For detailed instructions on how to set this up, refer to the [Add and arrange products in category](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/products-v3/sample-use-cases-and-flows#add-and-arrange-products-in-category) sample flow. */
|
|
12977
12977
|
index?: number | null;
|
|
12978
12978
|
}
|
|
12979
12979
|
interface PriceRange$1 {
|
|
@@ -14309,6 +14309,18 @@ interface WixCommonSorting$1 {
|
|
|
14309
14309
|
fieldName?: string;
|
|
14310
14310
|
/** Sort order. */
|
|
14311
14311
|
order?: WixCommonSortOrder$1;
|
|
14312
|
+
/**
|
|
14313
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
14314
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
14315
|
+
*
|
|
14316
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
14317
|
+
*
|
|
14318
|
+
* Example:
|
|
14319
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
14320
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
14321
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
14322
|
+
*/
|
|
14323
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
14312
14324
|
}
|
|
14313
14325
|
declare enum WixCommonSortOrder$1 {
|
|
14314
14326
|
ASC = "ASC",
|
|
@@ -15418,6 +15430,8 @@ interface MinVariantPriceInfoNonNullableFields$1 {
|
|
|
15418
15430
|
basePrice?: FixedMonetaryAmountNonNullableFields$1;
|
|
15419
15431
|
salePrice?: FixedMonetaryAmountNonNullableFields$1;
|
|
15420
15432
|
minSubscriptionPrice?: FixedMonetaryAmountNonNullableFields$1;
|
|
15433
|
+
pricePerUnitData?: PricePerUnitNonNullableFields$1;
|
|
15434
|
+
revenueDetails?: RevenueDetailsNonNullableFields$1;
|
|
15421
15435
|
}
|
|
15422
15436
|
interface V3ProductNonNullableFields$1 {
|
|
15423
15437
|
physicalProperties?: PhysicalPropertiesNonNullableFields$1;
|
|
@@ -17389,7 +17403,7 @@ interface ProductCategoriesInfo {
|
|
|
17389
17403
|
interface ProductCategory {
|
|
17390
17404
|
/** Category ID. */
|
|
17391
17405
|
_id?: string;
|
|
17392
|
-
/** Index location of the product within the category. */
|
|
17406
|
+
/** Index location of the product within the category, which can be utilized for sorting products in a specific category. For detailed instructions on how to set this up, refer to the [Add and arrange products in category](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/products-v3/sample-use-cases-and-flows#add-and-arrange-products-in-category) sample flow. */
|
|
17393
17407
|
index?: number | null;
|
|
17394
17408
|
}
|
|
17395
17409
|
interface PriceRange {
|
|
@@ -18725,6 +18739,18 @@ interface WixCommonSorting {
|
|
|
18725
18739
|
fieldName?: string;
|
|
18726
18740
|
/** Sort order. */
|
|
18727
18741
|
order?: WixCommonSortOrder;
|
|
18742
|
+
/**
|
|
18743
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
18744
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
18745
|
+
*
|
|
18746
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
18747
|
+
*
|
|
18748
|
+
* Example:
|
|
18749
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
18750
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
18751
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
18752
|
+
*/
|
|
18753
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
18728
18754
|
}
|
|
18729
18755
|
declare enum WixCommonSortOrder {
|
|
18730
18756
|
ASC = "ASC",
|
|
@@ -19812,6 +19838,8 @@ interface MinVariantPriceInfoNonNullableFields {
|
|
|
19812
19838
|
basePrice?: FixedMonetaryAmountNonNullableFields;
|
|
19813
19839
|
salePrice?: FixedMonetaryAmountNonNullableFields;
|
|
19814
19840
|
minSubscriptionPrice?: FixedMonetaryAmountNonNullableFields;
|
|
19841
|
+
pricePerUnitData?: PricePerUnitNonNullableFields;
|
|
19842
|
+
revenueDetails?: RevenueDetailsNonNullableFields;
|
|
19815
19843
|
}
|
|
19816
19844
|
interface V3ProductNonNullableFields {
|
|
19817
19845
|
physicalProperties?: PhysicalPropertiesNonNullableFields;
|