@wix/stores 1.0.236 → 1.0.237

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.236",
3
+ "version": "1.0.237",
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.43",
29
+ "@wix/stores_products-v-3": "1.0.44",
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": "e1b9133b2fd5cd1254f63064a4e78b151b2f8e6e1ccce6502756ad48"
58
+ "falconPackageHash": "97109abeb5d3a2ecef54b575d4c4ccdfd86bf4edd098761e66038025"
59
59
  }
@@ -13223,6 +13223,18 @@ interface WixCommonSorting {
13223
13223
  fieldName?: string;
13224
13224
  /** Sort order. */
13225
13225
  order?: WixCommonSortOrder;
13226
+ /**
13227
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
13228
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
13229
+ *
13230
+ * If multiple filters are provided, they are combined with AND operator.
13231
+ *
13232
+ * Example:
13233
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
13234
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
13235
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
13236
+ */
13237
+ selectItemsBy?: Record<string, any>[] | null;
13226
13238
  }
13227
13239
  declare enum WixCommonSortOrder {
13228
13240
  ASC = "ASC",
@@ -13223,6 +13223,18 @@ interface WixCommonSorting {
13223
13223
  fieldName?: string;
13224
13224
  /** Sort order. */
13225
13225
  order?: WixCommonSortOrder;
13226
+ /**
13227
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
13228
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
13229
+ *
13230
+ * If multiple filters are provided, they are combined with AND operator.
13231
+ *
13232
+ * Example:
13233
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
13234
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
13235
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
13236
+ */
13237
+ selectItemsBy?: Record<string, any>[] | null;
13226
13238
  }
13227
13239
  declare enum WixCommonSortOrder {
13228
13240
  ASC = "ASC",
@@ -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",
@@ -18725,6 +18737,18 @@ interface WixCommonSorting {
18725
18737
  fieldName?: string;
18726
18738
  /** Sort order. */
18727
18739
  order?: WixCommonSortOrder;
18740
+ /**
18741
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
18742
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
18743
+ *
18744
+ * If multiple filters are provided, they are combined with AND operator.
18745
+ *
18746
+ * Example:
18747
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
18748
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
18749
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
18750
+ */
18751
+ selectItemsBy?: Record<string, any>[] | null;
18728
18752
  }
18729
18753
  declare enum WixCommonSortOrder {
18730
18754
  ASC = "ASC",