@wix/stores 1.0.237 → 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.237",
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.44",
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": "97109abeb5d3a2ecef54b575d4c4ccdfd86bf4edd098761e66038025"
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 */
@@ -15596,6 +15623,8 @@ interface MinVariantPriceInfoNonNullableFields {
15596
15623
  basePrice?: FixedMonetaryAmountNonNullableFields;
15597
15624
  salePrice?: FixedMonetaryAmountNonNullableFields;
15598
15625
  minSubscriptionPrice?: FixedMonetaryAmountNonNullableFields;
15626
+ pricePerUnitData?: PricePerUnitNonNullableFields;
15627
+ revenueDetails?: RevenueDetailsNonNullableFields;
15599
15628
  }
15600
15629
  interface V3ProductNonNullableFields {
15601
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 */
@@ -15596,6 +15623,8 @@ interface MinVariantPriceInfoNonNullableFields {
15596
15623
  basePrice?: FixedMonetaryAmountNonNullableFields;
15597
15624
  salePrice?: FixedMonetaryAmountNonNullableFields;
15598
15625
  minSubscriptionPrice?: FixedMonetaryAmountNonNullableFields;
15626
+ pricePerUnitData?: PricePerUnitNonNullableFields;
15627
+ revenueDetails?: RevenueDetailsNonNullableFields;
15599
15628
  }
15600
15629
  interface V3ProductNonNullableFields {
15601
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 {
@@ -15430,6 +15430,8 @@ interface MinVariantPriceInfoNonNullableFields$1 {
15430
15430
  basePrice?: FixedMonetaryAmountNonNullableFields$1;
15431
15431
  salePrice?: FixedMonetaryAmountNonNullableFields$1;
15432
15432
  minSubscriptionPrice?: FixedMonetaryAmountNonNullableFields$1;
15433
+ pricePerUnitData?: PricePerUnitNonNullableFields$1;
15434
+ revenueDetails?: RevenueDetailsNonNullableFields$1;
15433
15435
  }
15434
15436
  interface V3ProductNonNullableFields$1 {
15435
15437
  physicalProperties?: PhysicalPropertiesNonNullableFields$1;
@@ -17401,7 +17403,7 @@ interface ProductCategoriesInfo {
17401
17403
  interface ProductCategory {
17402
17404
  /** Category ID. */
17403
17405
  _id?: string;
17404
- /** 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. */
17405
17407
  index?: number | null;
17406
17408
  }
17407
17409
  interface PriceRange {
@@ -19836,6 +19838,8 @@ interface MinVariantPriceInfoNonNullableFields {
19836
19838
  basePrice?: FixedMonetaryAmountNonNullableFields;
19837
19839
  salePrice?: FixedMonetaryAmountNonNullableFields;
19838
19840
  minSubscriptionPrice?: FixedMonetaryAmountNonNullableFields;
19841
+ pricePerUnitData?: PricePerUnitNonNullableFields;
19842
+ revenueDetails?: RevenueDetailsNonNullableFields;
19839
19843
  }
19840
19844
  interface V3ProductNonNullableFields {
19841
19845
  physicalProperties?: PhysicalPropertiesNonNullableFields;