@wix/bookings 1.0.410 → 1.0.412

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/bookings",
3
- "version": "1.0.410",
3
+ "version": "1.0.412",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -28,8 +28,8 @@
28
28
  "@wix/bookings_multi-service-availability-time-slots": "1.0.23",
29
29
  "@wix/bookings_pricing": "1.0.26",
30
30
  "@wix/bookings_resources": "1.0.29",
31
- "@wix/bookings_service-options-and-variants": "1.0.35",
32
- "@wix/bookings_services": "1.0.53"
31
+ "@wix/bookings_service-options-and-variants": "1.0.36",
32
+ "@wix/bookings_services": "1.0.54"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
@@ -54,5 +54,5 @@
54
54
  "fqdn": ""
55
55
  }
56
56
  },
57
- "falconPackageHash": "cbe8b53b5b5aaa0b24fb32dc8568a068e1afde929753523cc8abc036"
57
+ "falconPackageHash": "ad16286a34f7b906371922ae0964e599c4f69958d58971f5042be8e6"
58
58
  }
@@ -2824,6 +2824,32 @@ interface ServiceOptionsAndVariantsListQueryBuilder {
2824
2824
  * Refines a query to match items where the specified property is in a list of specified values, such as from another table.
2825
2825
  * @documentationMaturity preview */
2826
2826
  exists: (propertyName: 'options.values' | 'variants.values', value: boolean) => ServiceOptionsAndVariantsListQueryBuilder;
2827
+ /**
2828
+ * Adds a sort to a query, sorting by the specified properties in ascending order.
2829
+ *
2830
+ * The `ascending()` function refines a `CUSTOM_QUERY_BUILDER_NAME` to sort by the value of `propertyName` in ascending order. You can specify multiple properties for sorting in ascending order by passing each property name as an additional argument. `ascending()` sorts the results in the order the properties are passed. You can sort the following types:
2831
+ *
2832
+ * - Number: Sorts numerically.
2833
+ * - Date: Sorts by date and time.
2834
+ * - String: Sorts lexicographically, so `'abc'` comes after `'XYZ'`. If a property contains a number stored as a string (for example, `'0'`), that value is sorted alphabetically and not numerically. If a property doesn't have a value, that value is ranked lowest.
2835
+ * @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
2836
+ * @documentationMaturity preview
2837
+ */
2838
+ ascending: (...propertyNames: Array<'_id' | 'serviceId'>) => ServiceOptionsAndVariantsListQueryBuilder;
2839
+ /**
2840
+ * Adds a sort to a query, sorting by the specified properties in descending order.
2841
+ *
2842
+ * The `descending()` function refines a `CUSTOM_QUERY_BUILDER_NAME` to sort by the value of `propertyName` in descending order.
2843
+ *
2844
+ * You can specify multiple properties for sorting in descending order by passing each property name as an additional argument. `descending()` sorts the results in the order the properties are passed. You can sort the following types:
2845
+ *
2846
+ * - Number: Sorts numerically.
2847
+ * - Date: Sorts by date and time.
2848
+ * - String: Sorts lexicographically, so `'abc'` comes after `'XYZ'`. If a property contains a number stored as a string (for example, `'0'`), that value is sorted alphabetically and not numerically. If a property doesn't have a value, that value is ranked lowest.
2849
+ * @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
2850
+ * @documentationMaturity preview
2851
+ */
2852
+ descending: (...propertyNames: Array<'_id' | 'serviceId'>) => ServiceOptionsAndVariantsListQueryBuilder;
2827
2853
  /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
2828
2854
  * @documentationMaturity preview
2829
2855
  */
@@ -3936,7 +3962,6 @@ declare enum LocationTypeEnumLocationType {
3936
3962
  interface CommonAddress extends CommonAddressStreetOneOf {
3937
3963
  /** Street name and number. */
3938
3964
  streetAddress?: CommonStreetAddress;
3939
- /** Main address line, usually street and number as free text. */
3940
3965
  addressLine1?: string | null;
3941
3966
  /** 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
3942
3967
  country?: string | null;
@@ -3953,7 +3978,6 @@ interface CommonAddress extends CommonAddressStreetOneOf {
3953
3978
  interface CommonAddressStreetOneOf {
3954
3979
  /** Street name and number. */
3955
3980
  streetAddress?: CommonStreetAddress;
3956
- /** Main address line, usually street and number as free text. */
3957
3981
  addressLine?: string | null;
3958
3982
  }
3959
3983
  /** Street address. Includes street name, number, and apartment number in separate fields. */
@@ -8163,6 +8163,32 @@ interface ServiceOptionsAndVariantsListQueryBuilder {
8163
8163
  * Refines a query to match items where the specified property is in a list of specified values, such as from another table.
8164
8164
  * @documentationMaturity preview */
8165
8165
  exists: (propertyName: 'options.values' | 'variants.values', value: boolean) => ServiceOptionsAndVariantsListQueryBuilder;
8166
+ /**
8167
+ * Adds a sort to a query, sorting by the specified properties in ascending order.
8168
+ *
8169
+ * The `ascending()` function refines a `CUSTOM_QUERY_BUILDER_NAME` to sort by the value of `propertyName` in ascending order. You can specify multiple properties for sorting in ascending order by passing each property name as an additional argument. `ascending()` sorts the results in the order the properties are passed. You can sort the following types:
8170
+ *
8171
+ * - Number: Sorts numerically.
8172
+ * - Date: Sorts by date and time.
8173
+ * - String: Sorts lexicographically, so `'abc'` comes after `'XYZ'`. If a property contains a number stored as a string (for example, `'0'`), that value is sorted alphabetically and not numerically. If a property doesn't have a value, that value is ranked lowest.
8174
+ * @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
8175
+ * @documentationMaturity preview
8176
+ */
8177
+ ascending: (...propertyNames: Array<'_id' | 'serviceId'>) => ServiceOptionsAndVariantsListQueryBuilder;
8178
+ /**
8179
+ * Adds a sort to a query, sorting by the specified properties in descending order.
8180
+ *
8181
+ * The `descending()` function refines a `CUSTOM_QUERY_BUILDER_NAME` to sort by the value of `propertyName` in descending order.
8182
+ *
8183
+ * You can specify multiple properties for sorting in descending order by passing each property name as an additional argument. `descending()` sorts the results in the order the properties are passed. You can sort the following types:
8184
+ *
8185
+ * - Number: Sorts numerically.
8186
+ * - Date: Sorts by date and time.
8187
+ * - String: Sorts lexicographically, so `'abc'` comes after `'XYZ'`. If a property contains a number stored as a string (for example, `'0'`), that value is sorted alphabetically and not numerically. If a property doesn't have a value, that value is ranked lowest.
8188
+ * @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
8189
+ * @documentationMaturity preview
8190
+ */
8191
+ descending: (...propertyNames: Array<'_id' | 'serviceId'>) => ServiceOptionsAndVariantsListQueryBuilder;
8166
8192
  /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
8167
8193
  * @documentationMaturity preview
8168
8194
  */
@@ -9527,7 +9553,6 @@ declare enum LocationTypeEnumLocationType {
9527
9553
  interface CommonAddress extends CommonAddressStreetOneOf {
9528
9554
  /** Street name and number. */
9529
9555
  streetAddress?: CommonStreetAddress;
9530
- /** Main address line, usually street and number as free text. */
9531
9556
  addressLine1?: string | null;
9532
9557
  /** 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
9533
9558
  country?: string | null;
@@ -9544,7 +9569,6 @@ interface CommonAddress extends CommonAddressStreetOneOf {
9544
9569
  interface CommonAddressStreetOneOf {
9545
9570
  /** Street name and number. */
9546
9571
  streetAddress?: CommonStreetAddress;
9547
- /** Main address line, usually street and number as free text. */
9548
9572
  addressLine?: string | null;
9549
9573
  }
9550
9574
  /** Street address. Includes street name, number, and apartment number in separate fields. */
@@ -8790,7 +8790,6 @@ declare enum LocationTypeEnumLocationType$1 {
8790
8790
  interface CommonAddress$1 extends CommonAddressStreetOneOf$1 {
8791
8791
  /** Street name and number. */
8792
8792
  streetAddress?: CommonStreetAddress$1;
8793
- /** Main address line, usually street and number as free text. */
8794
8793
  addressLine?: string | null;
8795
8794
  /** 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
8796
8795
  country?: string | null;
@@ -8807,7 +8806,6 @@ interface CommonAddress$1 extends CommonAddressStreetOneOf$1 {
8807
8806
  interface CommonAddressStreetOneOf$1 {
8808
8807
  /** Street name and number. */
8809
8808
  streetAddress?: CommonStreetAddress$1;
8810
- /** Main address line, usually street and number as free text. */
8811
8809
  addressLine?: string | null;
8812
8810
  }
8813
8811
  /** Street address. Includes street name, number, and apartment number in separate fields. */
@@ -10610,7 +10608,6 @@ declare enum LocationTypeEnumLocationType {
10610
10608
  interface CommonAddress extends CommonAddressStreetOneOf {
10611
10609
  /** Street name and number. */
10612
10610
  streetAddress?: CommonStreetAddress;
10613
- /** Main address line, usually street and number as free text. */
10614
10611
  addressLine1?: string | null;
10615
10612
  /** 2-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
10616
10613
  country?: string | null;
@@ -10627,7 +10624,6 @@ interface CommonAddress extends CommonAddressStreetOneOf {
10627
10624
  interface CommonAddressStreetOneOf {
10628
10625
  /** Street name and number. */
10629
10626
  streetAddress?: CommonStreetAddress;
10630
- /** Main address line, usually street and number as free text. */
10631
10627
  addressLine?: string | null;
10632
10628
  }
10633
10629
  /** Street address. Includes street name, number, and apartment number in separate fields. */