@wix/wix-data-items-common 1.0.65 → 1.0.67

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.
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/api/WixDataFilter.ts"],"sourcesContent":["type Comparable = string | number | Date\n\n/**\n * @builder\n */\nexport interface WixDataFilter {\n /**\n * Refines a filter to match items whose specified field value equals the specified value.\n *\n * The `eq()` method refines this filter to only\n * match items where the value of the specified field equals the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * Matching strings with `eq()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If `field` points to a collection field of type Array, `eq()` includes the item\n * as long as at least one Array element matches the specified `value`.\n * @public\n * @documentationMaturity preview\n * @param field - field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to compare with.\n * @requiredField value\n * @returns Refined filter.\n */\n eq(field: string, value: any): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value does not equal the specified value.\n *\n * The `ne()` method refines this filter to only\n * match items where the value of the specified field does not equal the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type is considered not equal to the same number stored as a Number type.\n *\n * Matching strings with `ne()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of `field` is an array, `ne()` includes items\n * in which none of the elements of the Array match the specified `value`.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined filter.\n */\n ne(field: string, value: any): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value is greater than or equal to the specified\n * value.\n *\n * The `ge()` method refines this filter to only\n * match items where the value of the specified field is greater than or\n * equal to the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically,\n * so `\"abc\"` is greater than or equal to `\"ABC\"` (because of the greater than),\n * but `\"ABC\"` is not greater than or equal to `\"abc\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined filter.\n */\n ge(field: string, value: Comparable): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value is greater than the specified value.\n *\n * The `gt()` method refines this filter to only match\n * items where the value of the specified field is greater than the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically, so `\"text\"` is greater than `\"Text\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns An object with the filter definition, based on the supplied parameters.\n */\n gt(field: string, value: Comparable): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value is less than or equal to the specified\n * value.\n *\n * The `le()` method refines this filter to only match\n * items where the value of the specified field is less than or equal to the\n * specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically,\n * so `\"ABC\"` is less than or equal to `\"abc\"` (because of the less than),\n * but `\"abc\"` is not less than or equal to `\"ABC\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined filter.\n */\n le(field: string, value: Comparable): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value is less than the specified value.\n *\n * The `lt()` method refines this filter to only match\n * items where the value of the specified field is less than the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically, so `\"Text\"` is less than `\"text\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns An object with the filter definition, based on the supplied parameters.\n */\n lt(field: string, value: Comparable): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field has any value.\n *\n * The `isNotEmpty()` method refines this filter to only match items where the\n * value of the specified field is not `null` or `undefined`.\n *\n * If the field contains any value at all for a given item, including the\n * empty string or an invalid value, that item will match the filter.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for a value.\n * @requiredField field\n * @returns Refined filter.\n */\n isNotEmpty(field: string): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field does not exist or does not have any value.\n *\n * The `isEmpty()` method refines this filter to only match items where the\n * value of the specified field is `null` or `undefined` or the field does\n * not exist.\n *\n * If the field contains any value at all for a given item, including the\n * empty string or an invalid value, that item will match the filter.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for a value.\n * @requiredField field\n * @returns An object representing the refined filter.\n */\n isEmpty(field: string): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value starts with a specified string.\n *\n * The `startsWith()` method refines this filter to\n * only match items where the value of the specified field starts with the\n * defined `string`. Matching with `startsWith()` is not case sensitive, so `\"TEXT\"` starts\n * with `\"tex\"`.\n *\n * You can only use `startsWith()` with a field whose value is a String or Reference.\n * When using a Reference, `startsWith()` matches by the ID of the referenced item as Strings.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the `value` parameter.\n * @requiredField field\n * @param value - Value to look for at the beginning of the specified field value.\n * @requiredField value\n * @returns Refined filter.\n */\n startsWith(field: string, value: string): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value ends with a specified string.\n *\n * The `endsWith()` method refines this filter to only\n * match items where the value of the specified field ends with the specified\n * `string`. Matching with `endsWith()` is not case sensitive, so `\"TEXT\"` ends\n * with `\"ext\"`.\n *\n * You can only use `endsWith()` with a field whose value is a String or Reference.\n * When using a Reference, `endsWith()` matches by the ID of the referenced item as Strings.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the string.\n * @requiredField field\n * @param value - Value to look for at the end of the specified field value.\n * @requiredField value\n * @returns Refined filter.\n */\n endsWith(field: string, value: string): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value contains the specified value.\n *\n * The `contains()` method refines the filter to only match items for which the value of the specified field contains the specified value. `contains()` is not case-sensitive, so the value `sunday` is considered to contain the value `Sun`.\n *\n * You can use `contains()` with a field whose type is a string or a reference. However, for fields whose type is reference, `contains()` matches by the ID of the referenced item as a string. Instead, use the [`eq()`](https://dev.wix.com/docs/sdk/backend-modules/data/wix-data-items-sdk-1-0-0/wix-data-filter/eq) method.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the provided value.\n * @requiredField field\n * @param value - Value to locate in the specified field value.\n * @requiredField value\n * @returns Refined filter.\n */\n contains(field: string, value: string): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value equals any of the specified `values`\n * parameters.\n *\n * The `hasSome()` method refines this filter to\n * only match items where the value of the specified field equals any of\n * the specified values.\n *\n * Matching strings with `hasSome()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of the specified field is an array, `hasSome()` will match\n * if any of the elements of that array match any of the specified values.\n *\n * If the specified field contains multiple references, pass item IDs in the\n * `value` field. In such a case, `hasSome()` will match if any of the\n * multiple references match any of the specified ID values.\n *\n * You can specify a list of values to match by providing an array of\n * String, Number, or Date types as the `value` parameters.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param values - Values to match.\n * @requiredField values\n * @returns An object representing the refined filter.\n */\n hasSome(field: string, ...values: Comparable[]): WixDataFilter\n\n /**\n * Overload for `hasSome()`\n * @public\n * @documentationMaturity preview\n */\n hasSome(field: string, values: Comparable[]): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field values equals all of the specified `value`\n * parameters.\n *\n * The `hasAll()` method refines this filter to\n * only match items where the value of the specified field equals all of\n * the specified values.\n *\n * Matching strings with `hasAll()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of the specified field is an array, `hasAll()` will match\n * if there is a match in the elements of that array for all of the specified\n * values.\n *\n * You can specify a list of values to match by providing an array of\n * String, Number, or Date types as the `value` parameters.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `values`.\n * @requiredField field\n * @param values - Values to match.\n * @requiredField values\n * @returns An object representing the refined filter.\n */\n hasAll(field: string, ...values: Comparable[]): WixDataFilter\n\n /**\n * Overload for `hasAll()`\n * @public\n * @documentationMaturity preview\n */\n hasAll(field: string, values: Comparable[]): WixDataFilter\n\n /**\n * Adds an `or` condition to the filter.\n *\n * The `or()` method adds an inclusive `or` condition to this filter. A filter\n * with an `or` returns all the items that match the filter as defined up to\n * the `or` method, the items that match the filter passed to the `or`\n * method, and the items that match both.\n *\n * The 'or()' method is designed to work with 2 or more queries or filters.\n * If you use it on its own, it will return all the items in a collection.\n * @public\n * @documentationMaturity preview\n * @param filter - A filter to add to the initial filter as an `or` condition.\n * @requiredField filter\n * @returns An object representing the refined filter.\n */\n or(filter: WixDataFilter): WixDataFilter\n\n /**\n * Adds an `and` condition to the filter.\n *\n * A filter with an `and` condition returns all items that meet the conditions defined on both sides of the condition.\n *\n * Use the `and()` method when performing compound queries. For example, the final filter in this set of\n * queries returns results where status is either pending or rejected **and** age is either less than 25 or greater\n * than 65.\n *\n * ```js\n * let statusFilter = wixClient.items.filter()\n * .eq(\"status\", \"pending\")\n * .or(wixClient.items.filter().eq(\"status\", \"rejected\"));\n *\n * let ageFilter = wixClient.items.filter()\n * .lt(\"age\", 25)\n * .or(wixData.items.filter().gt(\"age\", 65));\n *\n * let statusAndAgeFilter = statusFilter.and(ageFilter);\n * ```\n *\n * > **Notes**:\n * > The `and()` method is designed to work with 2 or more queries or filters. If used with a single query or filter, it returns all items in a collection.\n * > When chaining multiple `WixDataFilter` methods to a filter, an `and` condition is implied. In such cases, you do not need to call the `and()` method explicitly. For example, this filter returns results where an item `status` is `active` and `age` is greater than 25:\n *\n * ```js\n * wixClient.items.filter().eq(\"status\", \"active\").gt(\"age\", 25);\n * ```\n *\n * @public\n * @documentationMaturity preview\n * @param filter - `WixDataFilter` used with an `and` condition.\n * @requiredField filter\n * @returns The compound filter.\n */\n and(filter: WixDataFilter): WixDataFilter\n\n /**\n * Adds a `not` condition to the filter.\n *\n * The `not()` method adds a `not` condition to this filter. A filter with a `not`\n * returns all the items that match the filter as defined up to the `not`\n * method, but don't match the filter passed to the `not` method.\n *\n * If the filter only contains a `not()` method, it returns all the items\n * that don't match the filter defined by the `not` method.\n *\n * @public\n * @documentationMaturity preview\n * @param filter - A filter to add to the initial filter as a `not` condition.\n * @requiredField filter\n * @returns An object representing the refined filter.\n */\n not(filter: WixDataFilter): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value is within the defined range.\n *\n * The `between()` method refines this filter to match items for which the value of the specified field is greater than or equal to `rangeStart` and less than `rangeEnd`. The method only matches values of [the same type](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-type).\n *\n * The following types can be compared:\n * - Number: Compared numerically.\n * - Date: Compared as JavaScript Date objects.\n * - String: Compared lexicographically:\n * - `\"A\"` and `\"M\"` are considered between `\"A\"` and `\"Z\"`, but `\"a\"`, `\"m\"`, `\"z\"` and `\"Z\"` are not.\n * - `\"A\"`, `\"M\"`, `\"Z\"`, and `\"a\"` are considered between `\"A\"` and `\"z\"`, but `\"z\"` is not.\n *\n *\n * > **Note**: Items that do not have a value for the specified field are considered as the lowest comparable value and are ranked last.\n *\n * @public\n * @documentationMaturity preview\n * @param field - field whose value is compared with `rangeStart` and `rangeEnd`.\n * @requiredField field\n * @param rangeStart - Starting value of the range to match.\n * @requiredField rangeStart\n * @param rangeEnd - Ending value of the range to match.\n * @requiredField rangeEnd\n * @returns Refined filter.\n */\n between<T extends Comparable>(\n field: string,\n rangeStart: T,\n rangeEnd: T\n ): WixDataFilter\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["../../../src/api/WixDataFilter.ts"],"sourcesContent":["import type { Comparable } from './types'\n\n/**\n * @builder\n */\nexport interface WixDataFilter {\n /**\n * Refines a filter to match items whose specified field value equals the specified value.\n *\n * The `eq()` method refines this filter to only\n * match items where the value of the specified field equals the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * Matching strings with `eq()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If `field` points to a collection field of type Array, `eq()` includes the item\n * as long as at least one Array element matches the specified `value`.\n * @public\n * @documentationMaturity preview\n * @param field - field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to compare with.\n * @requiredField value\n * @returns Refined filter.\n */\n eq(field: string, value: any): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value does not equal the specified value.\n *\n * The `ne()` method refines this filter to only\n * match items where the value of the specified field does not equal the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type is considered not equal to the same number stored as a Number type.\n *\n * Matching strings with `ne()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of `field` is an array, `ne()` includes items\n * in which none of the elements of the Array match the specified `value`.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined filter.\n */\n ne(field: string, value: any): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value is greater than or equal to the specified\n * value.\n *\n * The `ge()` method refines this filter to only\n * match items where the value of the specified field is greater than or\n * equal to the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically,\n * so `\"abc\"` is greater than or equal to `\"ABC\"` (because of the greater than),\n * but `\"ABC\"` is not greater than or equal to `\"abc\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined filter.\n */\n ge(field: string, value: Comparable): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value is greater than the specified value.\n *\n * The `gt()` method refines this filter to only match\n * items where the value of the specified field is greater than the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically, so `\"text\"` is greater than `\"Text\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns An object with the filter definition, based on the supplied parameters.\n */\n gt(field: string, value: Comparable): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value is less than or equal to the specified\n * value.\n *\n * The `le()` method refines this filter to only match\n * items where the value of the specified field is less than or equal to the\n * specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically,\n * so `\"ABC\"` is less than or equal to `\"abc\"` (because of the less than),\n * but `\"abc\"` is not less than or equal to `\"ABC\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined filter.\n */\n le(field: string, value: Comparable): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value is less than the specified value.\n *\n * The `lt()` method refines this filter to only match\n * items where the value of the specified field is less than the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically, so `\"Text\"` is less than `\"text\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns An object with the filter definition, based on the supplied parameters.\n */\n lt(field: string, value: Comparable): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field has any value.\n *\n * The `isNotEmpty()` method refines this filter to only match items where the\n * value of the specified field is not `null` or `undefined`.\n *\n * If the field contains any value at all for a given item, including the\n * empty string or an invalid value, that item will match the filter.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for a value.\n * @requiredField field\n * @returns Refined filter.\n */\n isNotEmpty(field: string): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field does not exist or does not have any value.\n *\n * The `isEmpty()` method refines this filter to only match items where the\n * value of the specified field is `null` or `undefined` or the field does\n * not exist.\n *\n * If the field contains any value at all for a given item, including the\n * empty string or an invalid value, that item will match the filter.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for a value.\n * @requiredField field\n * @returns An object representing the refined filter.\n */\n isEmpty(field: string): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value starts with a specified string.\n *\n * The `startsWith()` method refines this filter to\n * only match items where the value of the specified field starts with the\n * defined `string`. Matching with `startsWith()` is not case sensitive, so `\"TEXT\"` starts\n * with `\"tex\"`.\n *\n * You can only use `startsWith()` with a field whose value is a String or Reference.\n * When using a Reference, `startsWith()` matches by the ID of the referenced item as Strings.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the `value` parameter.\n * @requiredField field\n * @param value - Value to look for at the beginning of the specified field value.\n * @requiredField value\n * @returns Refined filter.\n */\n startsWith(field: string, value: string): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value ends with a specified string.\n *\n * The `endsWith()` method refines this filter to only\n * match items where the value of the specified field ends with the specified\n * `string`. Matching with `endsWith()` is not case sensitive, so `\"TEXT\"` ends\n * with `\"ext\"`.\n *\n * You can only use `endsWith()` with a field whose value is a String or Reference.\n * When using a Reference, `endsWith()` matches by the ID of the referenced item as Strings.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the string.\n * @requiredField field\n * @param value - Value to look for at the end of the specified field value.\n * @requiredField value\n * @returns Refined filter.\n */\n endsWith(field: string, value: string): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value contains the specified value.\n *\n * The `contains()` method refines the filter to only match items for which the value of the specified field contains the specified value. `contains()` is not case-sensitive, so the value `sunday` is considered to contain the value `Sun`.\n *\n * You can use `contains()` with a field whose type is a string or a reference. However, for fields whose type is reference, `contains()` matches by the ID of the referenced item as a string. Instead, use the [`eq()`](https://dev.wix.com/docs/sdk/backend-modules/data/wix-data-items-sdk-1-0-0/wix-data-filter/eq) method.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the provided value.\n * @requiredField field\n * @param value - Value to locate in the specified field value.\n * @requiredField value\n * @returns Refined filter.\n */\n contains(field: string, value: string): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value equals any of the specified `values`\n * parameters.\n *\n * The `hasSome()` method refines this filter to\n * only match items where the value of the specified field equals any of\n * the specified values.\n *\n * Matching strings with `hasSome()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of the specified field is an array, `hasSome()` will match\n * if any of the elements of that array match any of the specified values.\n *\n * If the specified field contains multiple references, pass item IDs in the\n * `value` field. In such a case, `hasSome()` will match if any of the\n * multiple references match any of the specified ID values.\n *\n * You can specify a list of values to match by providing an array of\n * String, Number, or Date types as the `value` parameters.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param values - Values to match.\n * @requiredField values\n * @returns An object representing the refined filter.\n */\n hasSome(field: string, ...values: Comparable[]): WixDataFilter\n\n /**\n * Overload for `hasSome()`\n * @public\n * @documentationMaturity preview\n */\n hasSome(field: string, values: Comparable[]): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field values equals all of the specified `value`\n * parameters.\n *\n * The `hasAll()` method refines this filter to\n * only match items where the value of the specified field equals all of\n * the specified values.\n *\n * Matching strings with `hasAll()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of the specified field is an array, `hasAll()` will match\n * if there is a match in the elements of that array for all of the specified\n * values.\n *\n * You can specify a list of values to match by providing an array of\n * String, Number, or Date types as the `value` parameters.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `values`.\n * @requiredField field\n * @param values - Values to match.\n * @requiredField values\n * @returns An object representing the refined filter.\n */\n hasAll(field: string, ...values: Comparable[]): WixDataFilter\n\n /**\n * Overload for `hasAll()`\n * @public\n * @documentationMaturity preview\n */\n hasAll(field: string, values: Comparable[]): WixDataFilter\n\n /**\n * Adds an `or` condition to the filter.\n *\n * The `or()` method adds an inclusive `or` condition to this filter. A filter\n * with an `or` returns all the items that match the filter as defined up to\n * the `or` method, the items that match the filter passed to the `or`\n * method, and the items that match both.\n *\n * The 'or()' method is designed to work with 2 or more queries or filters.\n * If you use it on its own, it will return all the items in a collection.\n * @public\n * @documentationMaturity preview\n * @param filter - A filter to add to the initial filter as an `or` condition.\n * @requiredField filter\n * @returns An object representing the refined filter.\n */\n or(filter: WixDataFilter): WixDataFilter\n\n /**\n * Adds an `and` condition to the filter.\n *\n * A filter with an `and` condition returns all items that meet the conditions defined on both sides of the condition.\n *\n * Use the `and()` method when performing compound queries. For example, the final filter in this set of\n * queries returns results where status is either pending or rejected **and** age is either less than 25 or greater\n * than 65.\n *\n * ```js\n * let statusFilter = wixClient.items.filter()\n * .eq(\"status\", \"pending\")\n * .or(wixClient.items.filter().eq(\"status\", \"rejected\"));\n *\n * let ageFilter = wixClient.items.filter()\n * .lt(\"age\", 25)\n * .or(wixData.items.filter().gt(\"age\", 65));\n *\n * let statusAndAgeFilter = statusFilter.and(ageFilter);\n * ```\n *\n * > **Notes**:\n * > The `and()` method is designed to work with 2 or more queries or filters. If used with a single query or filter, it returns all items in a collection.\n * > When chaining multiple `WixDataFilter` methods to a filter, an `and` condition is implied. In such cases, you do not need to call the `and()` method explicitly. For example, this filter returns results where an item `status` is `active` and `age` is greater than 25:\n *\n * ```js\n * wixClient.items.filter().eq(\"status\", \"active\").gt(\"age\", 25);\n * ```\n *\n * @public\n * @documentationMaturity preview\n * @param filter - `WixDataFilter` used with an `and` condition.\n * @requiredField filter\n * @returns The compound filter.\n */\n and(filter: WixDataFilter): WixDataFilter\n\n /**\n * Adds a `not` condition to the filter.\n *\n * The `not()` method adds a `not` condition to this filter. A filter with a `not`\n * returns all the items that match the filter as defined up to the `not`\n * method, but don't match the filter passed to the `not` method.\n *\n * If the filter only contains a `not()` method, it returns all the items\n * that don't match the filter defined by the `not` method.\n *\n * @public\n * @documentationMaturity preview\n * @param filter - A filter to add to the initial filter as a `not` condition.\n * @requiredField filter\n * @returns An object representing the refined filter.\n */\n not(filter: WixDataFilter): WixDataFilter\n\n /**\n * Refines a filter to match items whose specified field value is within the defined range.\n *\n * The `between()` method refines this filter to match items for which the value of the specified field is greater than or equal to `rangeStart` and less than `rangeEnd`. The method only matches values of [the same type](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-type).\n *\n * The following types can be compared:\n * - Number: Compared numerically.\n * - Date: Compared as JavaScript Date objects.\n * - String: Compared lexicographically:\n * - `\"A\"` and `\"M\"` are considered between `\"A\"` and `\"Z\"`, but `\"a\"`, `\"m\"`, `\"z\"` and `\"Z\"` are not.\n * - `\"A\"`, `\"M\"`, `\"Z\"`, and `\"a\"` are considered between `\"A\"` and `\"z\"`, but `\"z\"` is not.\n *\n *\n * > **Note**: Items that do not have a value for the specified field are considered as the lowest comparable value and are ranked last.\n *\n * @public\n * @documentationMaturity preview\n * @param field - field whose value is compared with `rangeStart` and `rangeEnd`.\n * @requiredField field\n * @param rangeStart - Starting value of the range to match.\n * @requiredField rangeStart\n * @param rangeEnd - Ending value of the range to match.\n * @requiredField rangeEnd\n * @returns Refined filter.\n */\n between<T extends Comparable>(\n field: string,\n rangeStart: T,\n rangeEnd: T\n ): WixDataFilter\n}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/api/WixDataQuery.ts"],"sourcesContent":["import { WixDataQueryOptions, WixDataReadOptions } from './types'\nimport { WixDataResult } from './WixDataResult'\nimport { WixDataFilter } from './WixDataFilter'\n\ntype Comparable = string | number | Date\n\n/**\n * @builder\n */\nexport interface WixDataQuery {\n /**\n * Adds a sort to a query or sort, sorting by the specified properties in descending order.\n *\n * The `descending()` method refines this query to sort in descending order of the specified properties. If you\n * specify more than one property, descending() sorts the results in descending order by each property in the order\n * they are listed.\n *\n * You can sort the following types:\n *\n * Number: Sorts numerically.\n * - Date: Sorts by date and time.\n * - String: Sorts lexicographically, so `\"abc\"` comes before `\"XYZ\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n *\n * If a property contains a number as a String, that value is sorted alphabetically and not numerically. Items\n * that do not have a value for the specified sort property are ranked lowest.\n * @public\n * @documentationMaturity preview\n * @param fields - Fields used in the sort.\n * @requiredField fields\n * @returns Refined query.\n */\n descending(...fields: string[]): WixDataQuery\n\n descending(fields: string[]): WixDataQuery\n\n descending(...fields: any): WixDataQuery\n\n /**\n * Adds a sort to a query or sort, sorting by the specified properties in ascending order.\n *\n * The `ascending()` method refines this query in ascending order of the specified properties. If you specify more\n * than one property, ascending() sorts the results in ascending order by each property in the order they are listed.\n *\n * You can sort the following types:\n * - Number: Sorts numerically.\n * - Date: Sorts by date and time.\n * - String: Sorts lexicographically, so `\"abc\"` comes after `\"XYZ\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n *\n * If a property contains a number as a String, that value is sorted alphabetically and not numerically.\n * Items that do not have a value for the specified sort property are ranked lowest.\n * @public\n * @documentationMaturity preview\n * @param fields - Fields used in the sort.\n * @requiredField fields\n * @returns Refined query.\n */\n ascending(...fields: string[]): WixDataQuery\n\n ascending(fields: string[]): WixDataQuery\n\n ascending(...fields: any): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value equals the specified value.\n *\n * The `eq()` method refines this query to only\n * match items where Value of the specified property equals the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * Matching strings with `eq()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If `field` points to a collection field of type Array, `eq()` includes the item\n * as long as at least one Array element matches the specified `value`.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined query.\n */\n eq(field: string, value: any): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value does not equal the specified value.\n *\n * The `ne()` method refines this query to only\n * match items where the value of the specified property does not equal the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type is considered not equal to the same number stored as a Number type.\n *\n * Matching strings with `ne()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of the `field` property is an Array, `ne()` includes items\n * in which none of the elements of the Array match the specified `value`.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined query.\n */\n ne(field: string, value: any): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value is greater than or equal to the specified\n * value.\n *\n * The `ge()` method refines this query to only\n * match items where the value of the specified property is greater than or\n * equal to the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a property contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified property are ranked lowest.\n *\n * The following types of properties can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically,\n * so `\"abc\"` is greater than or equal to `\"ABC\"` (because of the greater than),\n * but `\"ABC\"` is not greater than or equal to `\"abc\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined query.\n */\n ge(field: string, value: Comparable): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value is greater than the specified value.\n *\n * The `gt()` method refines this query to only match\n * items where the value of the specified property is greater than the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a property contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified property are ranked lowest.\n *\n * The following types of properties can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically, so `\"text\"` is greater than `\"Text\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns An object with the query definition, based on the supplied parameters.\n */\n gt(field: string, value: Comparable): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value is less than or equal to the specified\n * value.\n *\n * The `le()` method refines this query to only match\n * items where the value of the specified property is less than or equal to the\n * specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a property contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified property are ranked lowest.\n *\n * The following types of properties can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically,\n * so `\"ABC\"` is less than or equal to `\"abc\"` (because of the less than),\n * but `\"abc\"` is not less than or equal to `\"ABC\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined query.\n */\n le(field: string, value: Comparable): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value is less than the specified value.\n *\n * The `lt()` method refines this query to only match\n * items where the value of the specified property is less than the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a property contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified property are ranked lowest.\n *\n * The following types of properties can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically, so `\"Text\"` is less than `\"text\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns An object with the query definition, based on the supplied parameters.\n */\n lt(field: string, value: Comparable): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property has any value.\n *\n * The `isNotEmpty()` method refines this query to only match items where the\n * value of the specified property is not `null` or `undefined`.\n *\n * If the property contains any value at all for a given item, including the\n * empty string or an invalid value, that item will match the query.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for a value.\n * @requiredField field\n * @returns Refined query.\n */\n isNotEmpty(field: string): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property does not exist or does not have any value.\n *\n * The `isEmpty()` method refines this query to only match items where the\n * value of the specified property is `null` or `undefined` or the property does\n * not exist.\n *\n * If the property contains any value at all for a given item, including the\n * empty string or an invalid value, that item will match the query.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for a value.\n * @requiredField field\n * @returns Refined query.\n */\n isEmpty(field: string): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value starts with a specified string.\n *\n * The `startsWith()` method refines this query to\n * only match items where the value of the specified property starts with the\n * defined `string`. Matching with `startsWith()` is not case sensitive, so `\"TEXT\"` starts\n * with `\"tex\"`.\n *\n * You can only use `startsWith()` with a property whose value is a String or Reference.\n * When using a Reference, `startsWith()` matches by the ID of the referenced item as Strings.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the `value` parameter.\n * @requiredField field\n * @param value - The string to look for at the beginning of the specified property value.\n * @requiredField value\n * @returns A `WixDataQuery` object representing the refined query.\n */\n startsWith(field: string, value: string): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value ends with a specified string.\n *\n * The `endsWith()` method refines this query to only\n * match items where the value of the specified property ends with the specified\n * `string`. Matching with `endsWith()` is not case sensitive, so `\"TEXT\"` ends\n * with `\"ext\"`.\n *\n * You can only use `endsWith()` with a property whose value is a String or Reference.\n * When using a Reference, `endsWith()` matches by the ID of the referenced item as Strings.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the string.\n * @requiredField field\n * @param value - The string to look for at the end of the specified property value.\n * @requiredField value\n * @returns A `WixDataQuery` object representing the refined query.\n */\n endsWith(field: string, value: string): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value contains a specified string.\n *\n * The `contains()` method refines this query to\n * only match items where the value of the specified property contains the\n * specified `string`. Matching with `contains()` is not case sensitive, so\n * `\"text\"` does contain `\"Tex\"`.\n *\n * You can use `contains()` with a property whose value is a String or a Reference.\n * For properties of type reference it is recommended that you use the [`eq()`](#eq)\n * method instead of `contains()`. With properties that are References, `contains()`\n * matches by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the string.\n * @requiredField field\n * @param value - The string to look for inside the specified property value.\n * @requiredField value\n * @returns Refined query.\n */\n contains(field: string, value: string): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value equals any of the specified `values`\n * parameters.\n *\n * The `hasSome()` method refines this query to\n * only match items where the value of the specified property equals any of\n * the specified values.\n *\n * Matching strings with `hasSome()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of the specified property is an array, `hasSome()` will match\n * if any of the elements of that array match any of the specified values.\n *\n * If the specified property contains multiple references, pass item IDs in the\n * `value` property. In such a case, `hasSome()` will match if any of the\n * multiple references match any of the specified ID values.\n *\n * You can specify a list of values to match by providing an array of\n * String, Number, or Date types as the `value` parameters.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param values - Values to match.\n * @requiredField values\n * @returns Refined query.\n */\n hasSome(field: string, ...values: Comparable[]): WixDataQuery\n\n /**\n * Overload for `hasSome()`\n * @public\n * @documentationMaturity preview\n */\n hasSome(field: string, values: Comparable[]): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property values equals all of the specified `value`\n * parameters.\n *\n * The `hasAll()` method refines this query to\n * only match items where the value of the specified property equals all of\n * the specified values.\n *\n * Matching strings with `hasAll()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of the specified property is an array, `hasAll()` will match\n * if there is a match in the elements of that array for all of the specified\n * values.\n *\n * You can specify a list of values to match by providing an array of\n * String, Number, or Date types as the `value` parameters.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param values - Values to match.\n * @requiredField values\n * @returns Refined query.\n */\n hasAll(field: string, ...values: Comparable[]): WixDataQuery\n\n /**\n * Overload for `hasAll()`\n * @public\n * @documentationMaturity preview\n */\n hasAll(field: string, values: Comparable[]): WixDataQuery\n\n /**\n * Adds an `or` condition to the query or filter.\n *\n * The `or()` method adds an inclusive `or` condition to this filter. A query or filter\n * with an `or` returns all the items that match the query or filter as defined up to\n * the `or` method, the items that match the query or filter passed to the `or`\n * method, and the items that match both.\n *\n * The 'or()' method is designed to work with 2 or more queries or filters.\n * If you use it on its own, it will return all the items in a collection.\n * @public\n * @documentationMaturity preview\n * @param filter - Filter to add to the initial filter as an `or` condition.\n * @requiredField filter\n * @returns Refined query.\n */\n or(filter: WixDataFilter): WixDataQuery\n\n /**\n * Adds an `and` condition to the query or filter.\n *\n * The `and()` method adds an and condition to this query. A query or filter with an `and` returns all the items\n * that match the query or filter as defined up to the `and` method and also match the query or filter passed to\n * the `and` method.\n *\n * Note that when chaining multiple `WixDataFilter` methods to a query an and condition is assumed. In such cases,\n * you do not need to add a call to the `and()` method. For example, this query returns results where status is\n * active **and** age is greater than 25.\n * ```js\n * wixClient.items.query(\"myCollection\").eq(\"status\", \"active\").gt(\"age\", 25);\n * ```\n *\n * The `and()` method is needed when performing compound queries. For example, the final query in this set of\n * queries returns results where status is either pending or rejected **and** age is either less than 25 or greater\n * than 65.\n * ```js\n * let statusQuery = wixClient.items\n * .query(\"myCollection\")\n * .eq(\"status\", \"pending\")\n * .or(wixClient.items.filter().eq(\"status\", \"rejected\"));\n *\n * let ageQuery = wixClient.items\n * .filter()\n * .lt(\"age\", 25)\n * .or(wixClient.items.filter().gt(\"age\", 65));\n *\n * let statusAndAgeQuery = statusQuery.and(ageQuery);\n * ```\n *\n * The `and()` method is designed to work with 2 or more queries or filters. When used on its own, it returns all the items in a collection.\n * @public\n * @documentationMaturity preview\n * @param filter - Filter to add to the initial query as an `and` condition.\n * @requiredField filter\n * @returns Refined query.\n */\n and(filter: WixDataFilter): WixDataQuery\n\n /**\n * Adds a `not` condition to the query or filter.\n *\n * The `not()` method adds a `not` condition to this query. A query with a `not`\n * returns all the items that match the query as defined up to the `not`\n * method, but don't match the filter passed to the `not` method.\n *\n * If the query only contains a `not()` method, it returns all the items\n * that don't match the filter defined by the `not` method.\n *\n * @public\n * @documentationMaturity preview\n * @param filter - Filter to add to the initial filter as a `not` condition.\n * @requiredField filter\n * @returns Refined query.\n */\n not(filter: WixDataFilter): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value is within a specified range.\n *\n * The `between()` method refines this query to only match items where the value of the specified property is\n * greater than or equal to `rangeStart` and less than `rangeEnd`.\n *\n * It only matches values of the same type. For example, a number value stored as a String type does not match the\n * same number stored as a Number type.\n *\n * If a property contains a number as a String, that value is compared alphabetically and not numerically. Items\n * that do not have a value for the specified property are ranked lowest.\n *\n * The following types of properties can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically, so\n * - `\"A\"` and `\"M\"` are between `\"A\"` and `\"Z\"`, but `\"a\"`, `\"m\"`, `\"z\"` and `\"Z\"` are not.\n * - `\"A\"`, `\"M\"`, `\"Z\"`, and `\"a\"` are between `\"A\"` and `\"z\"`, but `\"z\"` is not.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with rangeStart and rangeEnd.\n * @requiredField field\n * @param rangeStart - Starting value of the range to match.\n * @requiredField rangeStart\n * @param rangeEnd - Ending value of the range to match.\n * @requiredField rangeEnd\n * @returns Refined query.\n */\n between<T extends Comparable>(\n field: string,\n rangeStart: T,\n rangeEnd: T\n ): WixDataQuery\n\n /**\n * Returns the number of items that match the query.\n *\n * The `count()` method returns a Promise that resolves to the number of\n * items that match the query. The Promise is rejected if `count()` is called\n * with incorrect permissions or if any of the methods used to refine the\n * query is invalid.\n *\n * Calling the `count()` method triggers the `beforeCount()` and `afterCount()` hooks if they have been defined.\n *\n * Use the `options` parameter to run `count()` without checking for permissions\n * or without its registered hooks.\n *\n * Any method that does not filter query results (e.g., [`ascending()`](#ascending))\n * does not affect the result of `count()`.\n *\n * If you build a query and don't refine it with any `WixDataQuery` methods,\n * `count()` returns the total number of items in the collection.\n *\n * > **Note**: You can also retrieve the number of query results by calling `find()` and setting the `returnTotalCount` property to `true`.\n *\n * @public\n * @documentationMaturity preview\n * @param options - Options to use when processing this operation.\n * @returns Number of items that match the query.\n */\n count(options?: WixDataReadOptions): Promise<number>\n\n /**\n * Returns the distinct values that match the query, without duplicates.\n *\n * The `distinct()` method returns a Promise that resolves to:\n * - The distinct values found in the specified field when running the query.\n * - Additional information about the results, such as the number of values that match the query.\n *\n * Unlike `find()`, which returns all item objects that match the query, `distinct()` returns matching field values,\n * and eliminates duplicate field values from the query result. You cannot use `find()` and `distinct()` together.\n *\n * For an item to be resolved as distinct, only the specified field must be distinct. Other fields for that item in\n * the collection are not evaluated when resolving the promise.\n *\n * The Promise is rejected if `distinct()` is called with incorrect permissions or if any of the\n * methods used to refine the query is invalid.\n *\n * >**Note:** Only site visitors with [Data Read](https://support.wix.com/en/article/collection-permissions-an-overview#permissions)\n * permissions can retrieve and view data. You can override the permissions in backend code by setting the\n * `suppressAuth` option to `true`.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared for distinct values.\n * @requiredField field\n * @param options - An object containing options to use when processing this operation.\n * @returns A Promise that resolves to the results of the query.\n */\n distinct(\n field: string,\n options?: WixDataQueryOptions\n ): Promise<WixDataResult<any>>\n\n /**\n * Returns the items that match the query.\n *\n * The `find()` method returns a Promise that resolves to the results found\n * by the query and some information about the results. The Promise is\n * rejected if `find()` is called with incorrect permissions or if any of the\n * methods used to refine the query is invalid.\n *\n * Calling the `find()` method triggers the `beforeQuery()` and `afterQuery()` hooks if they have been defined.\n *\n * > **Note:**\n * > Calling `find()` triggers hooks for the specified collection only. It doesn't trigger hooks for referenced\n * > collections.\n *\n * Use the `options` parameter to override default preferences:\n * - Override permission checks with `suppressAuth`.\n * - Ensure the most up-to-date data is retrieved with `consistentRead`.\n * - Prevent hooks from running with `suppressHooks`.\n * - Speed up execution with `omitTotalCount`, if you don't need a count of items matching the query.\n *\n * If you build a query and don't refine it with any `wixDataQuery` methods,\n * `find()` returns the entire collection.\n * @public\n * @documentationMaturity preview\n * @param options - Options to use when processing this operation.\n * @returns Promise that resolves to the results of the query.\n */\n find(options?: WixDataQueryOptions): Promise<WixDataResult>\n\n /**\n * Lists the fields to return in a query's results.\n *\n * The `fields()` method returns only the specified fields in the query's results.\n *\n * You can use `include()` in conjunction with `fields()` to get referenced items.\n *\n * When `fields()` receives an empty or invalid property, the query behaves as follows:\n * - When no fields are specified, the query returns all fields.\n * - When multiple fields are specified but some are invalid, invalid fields are ignored and valid fields are returned.\n * - When only invalid fields are specified, only the default `_id` field is returned.\n * @public\n * @documentationMaturity preview\n * @param fields - Properties to return.\n * @requiredField fields\n * @returns A `WixDataQuery` object representing the query.\n */\n fields(...fields: string[]): WixDataQuery\n\n /**\n * Limits the number of items the query returns.\n *\n * The `limit()` method defines the number of results a query returns in each\n * page. Only one page of results is retrieved at a time. The `next()`\n * and `prev()` methods are used to\n * navigate the pages of a query result.\n *\n * By default, `limit` is set to `50`.\n *\n * The maximum value that `limit()` can accept is `1000`.\n *\n * Note that for some Wix app collections, the maximum value `limit()` can accept is\n * less than `1000`. For example, the maximum limit for the Wix `Stores/Product` collection is 100.\n * @public\n * @documentationMaturity preview\n * @param limitNumber - Number of items to return, which is also the `pageSize` of the results object.\n * @requiredField limitNumber\n * @returns `WixDataQuery` object representing the refined query.\n */\n limit(limitNumber: number): WixDataQuery\n\n /**\n * Sets the number of items to skip before returning query results.\n *\n * The `skip()` method defines the number of results to skip in the query\n * results before returning new query results.\n *\n * For example, if you query a collection and 50 items match your query, but\n * you set `skip` to 10, the results returned will skip the first 10 items\n * that match and return the 11th through 50th items.\n *\n * By default, `skip` is set to 0.\n * @public\n * @documentationMaturity preview\n * @param skipCount - Number of items to skip in the query results before returning the results.\n * @requiredField skipCount\n * @returns `WixDataQuery` object representing the refined query.\n */\n skip(skipCount: number): WixDataQuery\n\n /**\n * Includes referenced items for the specified properties in a query's results.\n *\n * The `include()` method refines a query so that the items returned in the\n * query's results include the full referenced items for the specified properties.\n *\n * For example, suppose you have a **books** collection with an **author**\n * field that references an **authors** collection. Querying the **books**\n * collection with an `include(\"author\")` returns the relevant book items\n * and each item will include the full referenced author item in the book's\n * `author` property.\n *\n * When querying a collection that contains a reference field without using the\n * `include()` method:\n * - Single reference field: returned items contain only the ID of the\n * referenced item, and not the full referenced items.\n * - Multiple reference field: returned items do not contain the multiple\n * reference field at all.\n *\n * When including a property with multiple references, the following limitations\n * apply:\n * - Only one property with multiple references can be included.\n * - The query will return an error if more than 50 items are returned, regardless\n * of any query limit set using the `limit()` method.\n * - Each returned item can include up to 50 referenced items. If there are more\n * than 50 referenced items, only 50 are returned when the query is run\n * and the `partialIncludes`\n * property of the returned `WixDataQueryResult`\n * is `true`. To retrieve more than 50 referenced items, use the\n * `queryReferenced()` method.\n *\n * For a discussion of when to use the similar `queryReferenced()`\n * method and when to use `include()`, see [Querying Items that Reference Other Items](https://support.wix.com/en/article/including-referenced-data-when-filtering).\n *\n * > **Notes:**\n * > - Calling the `include()` method does not trigger any hooks.\n * > - The `include()` method is not supported for Single Item Collections.\n * @public\n * @documentationMaturity preview\n * @param fields - Fields for which to include referenced items.\n * @requiredField fields\n * @returns A `WixDataQuery` object representing the query.\n */\n include(...fields: string[]): WixDataQuery\n\n /**\n * Overload for `include()`\n * @public\n * @documentationMaturity preview\n */\n include(field: string, limit?: number): WixDataQuery\n\n /**\n * Overload for `include()`\n * @public\n * @documentationMaturity preview\n */\n include(field1: string, field2: string, limit?: number): WixDataQuery\n\n /**\n * Overload for `include()`\n * @public\n * @documentationMaturity preview\n */\n include(\n field1: string,\n field2: string,\n field3: string,\n limit?: number\n ): WixDataQuery\n\n /**\n * Overload for `include()`\n * @public\n * @documentationMaturity preview\n */\n include(\n field1: string,\n field2: string,\n field3: string,\n field4: string,\n limit?: number\n ): WixDataQuery\n\n /**\n * Overload for `include()`\n * @public\n * @documentationMaturity preview\n */\n include(\n field1: string,\n field2: string,\n field3: string,\n field4: string,\n field5: string,\n limit?: number\n ): WixDataQuery\n\n /**\n * Overload for `include()`\n * @public\n * @documentationMaturity preview\n */\n include(...fieldNamesAndLimit: [...string[], number]): WixDataQuery\n\n /**\n * Overload for `include()`\n * @public\n * @documentationMaturity preview\n */\n include(...args: unknown[]): WixDataQuery\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["../../../src/api/WixDataQuery.ts"],"sourcesContent":["import { WixDataQueryOptions, WixDataReadOptions } from './types'\nimport { WixDataResult } from './WixDataResult'\nimport { WixDataFilter } from './WixDataFilter'\nimport type { Comparable } from './types'\n\n/**\n * @builder\n */\nexport interface WixDataQuery {\n /**\n * Adds a sort to a query or sort, sorting by the specified properties in descending order.\n *\n * The `descending()` method refines this query to sort in descending order of the specified properties. If you\n * specify more than one property, descending() sorts the results in descending order by each property in the order\n * they are listed.\n *\n * You can sort the following types:\n *\n * Number: Sorts numerically.\n * - Date: Sorts by date and time.\n * - String: Sorts lexicographically, so `\"abc\"` comes before `\"XYZ\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n *\n * If a property contains a number as a String, that value is sorted alphabetically and not numerically. Items\n * that do not have a value for the specified sort property are ranked lowest.\n * @public\n * @documentationMaturity preview\n * @param fields - Fields used in the sort.\n * @requiredField fields\n * @returns Refined query.\n */\n descending(...fields: string[]): WixDataQuery\n\n descending(fields: string[]): WixDataQuery\n\n descending(...fields: any): WixDataQuery\n\n /**\n * Adds a sort to a query or sort, sorting by the specified properties in ascending order.\n *\n * The `ascending()` method refines this query in ascending order of the specified properties. If you specify more\n * than one property, ascending() sorts the results in ascending order by each property in the order they are listed.\n *\n * You can sort the following types:\n * - Number: Sorts numerically.\n * - Date: Sorts by date and time.\n * - String: Sorts lexicographically, so `\"abc\"` comes after `\"XYZ\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n *\n * If a property contains a number as a String, that value is sorted alphabetically and not numerically.\n * Items that do not have a value for the specified sort property are ranked lowest.\n * @public\n * @documentationMaturity preview\n * @param fields - Fields used in the sort.\n * @requiredField fields\n * @returns Refined query.\n */\n ascending(...fields: string[]): WixDataQuery\n\n ascending(fields: string[]): WixDataQuery\n\n ascending(...fields: any): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value equals the specified value.\n *\n * The `eq()` method refines this query to only\n * match items where Value of the specified property equals the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * Matching strings with `eq()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If `field` points to a collection field of type Array, `eq()` includes the item\n * as long as at least one Array element matches the specified `value`.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined query.\n */\n eq(field: string, value: any): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value does not equal the specified value.\n *\n * The `ne()` method refines this query to only\n * match items where the value of the specified property does not equal the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type is considered not equal to the same number stored as a Number type.\n *\n * Matching strings with `ne()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of the `field` property is an Array, `ne()` includes items\n * in which none of the elements of the Array match the specified `value`.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined query.\n */\n ne(field: string, value: any): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value is greater than or equal to the specified\n * value.\n *\n * The `ge()` method refines this query to only\n * match items where the value of the specified property is greater than or\n * equal to the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a property contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified property are ranked lowest.\n *\n * The following types of properties can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically,\n * so `\"abc\"` is greater than or equal to `\"ABC\"` (because of the greater than),\n * but `\"ABC\"` is not greater than or equal to `\"abc\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined query.\n */\n ge(field: string, value: Comparable): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value is greater than the specified value.\n *\n * The `gt()` method refines this query to only match\n * items where the value of the specified property is greater than the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a property contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified property are ranked lowest.\n *\n * The following types of properties can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically, so `\"text\"` is greater than `\"Text\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns An object with the query definition, based on the supplied parameters.\n */\n gt(field: string, value: Comparable): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value is less than or equal to the specified\n * value.\n *\n * The `le()` method refines this query to only match\n * items where the value of the specified property is less than or equal to the\n * specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a property contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified property are ranked lowest.\n *\n * The following types of properties can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically,\n * so `\"ABC\"` is less than or equal to `\"abc\"` (because of the less than),\n * but `\"abc\"` is not less than or equal to `\"ABC\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined query.\n */\n le(field: string, value: Comparable): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value is less than the specified value.\n *\n * The `lt()` method refines this query to only match\n * items where the value of the specified property is less than the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a property contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified property are ranked lowest.\n *\n * The following types of properties can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically, so `\"Text\"` is less than `\"text\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns An object with the query definition, based on the supplied parameters.\n */\n lt(field: string, value: Comparable): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property has any value.\n *\n * The `isNotEmpty()` method refines this query to only match items where the\n * value of the specified property is not `null` or `undefined`.\n *\n * If the property contains any value at all for a given item, including the\n * empty string or an invalid value, that item will match the query.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for a value.\n * @requiredField field\n * @returns Refined query.\n */\n isNotEmpty(field: string): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property does not exist or does not have any value.\n *\n * The `isEmpty()` method refines this query to only match items where the\n * value of the specified property is `null` or `undefined` or the property does\n * not exist.\n *\n * If the property contains any value at all for a given item, including the\n * empty string or an invalid value, that item will match the query.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for a value.\n * @requiredField field\n * @returns Refined query.\n */\n isEmpty(field: string): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value starts with a specified string.\n *\n * The `startsWith()` method refines this query to\n * only match items where the value of the specified property starts with the\n * defined `string`. Matching with `startsWith()` is not case sensitive, so `\"TEXT\"` starts\n * with `\"tex\"`.\n *\n * You can only use `startsWith()` with a property whose value is a String or Reference.\n * When using a Reference, `startsWith()` matches by the ID of the referenced item as Strings.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the `value` parameter.\n * @requiredField field\n * @param value - The string to look for at the beginning of the specified property value.\n * @requiredField value\n * @returns A `WixDataQuery` object representing the refined query.\n */\n startsWith(field: string, value: string): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value ends with a specified string.\n *\n * The `endsWith()` method refines this query to only\n * match items where the value of the specified property ends with the specified\n * `string`. Matching with `endsWith()` is not case sensitive, so `\"TEXT\"` ends\n * with `\"ext\"`.\n *\n * You can only use `endsWith()` with a property whose value is a String or Reference.\n * When using a Reference, `endsWith()` matches by the ID of the referenced item as Strings.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the string.\n * @requiredField field\n * @param value - The string to look for at the end of the specified property value.\n * @requiredField value\n * @returns A `WixDataQuery` object representing the refined query.\n */\n endsWith(field: string, value: string): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value contains a specified string.\n *\n * The `contains()` method refines this query to\n * only match items where the value of the specified property contains the\n * specified `string`. Matching with `contains()` is not case sensitive, so\n * `\"text\"` does contain `\"Tex\"`.\n *\n * You can use `contains()` with a property whose value is a String or a Reference.\n * For properties of type reference it is recommended that you use the [`eq()`](#eq)\n * method instead of `contains()`. With properties that are References, `contains()`\n * matches by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the string.\n * @requiredField field\n * @param value - The string to look for inside the specified property value.\n * @requiredField value\n * @returns Refined query.\n */\n contains(field: string, value: string): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value equals any of the specified `values`\n * parameters.\n *\n * The `hasSome()` method refines this query to\n * only match items where the value of the specified property equals any of\n * the specified values.\n *\n * Matching strings with `hasSome()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of the specified property is an array, `hasSome()` will match\n * if any of the elements of that array match any of the specified values.\n *\n * If the specified property contains multiple references, pass item IDs in the\n * `value` property. In such a case, `hasSome()` will match if any of the\n * multiple references match any of the specified ID values.\n *\n * You can specify a list of values to match by providing an array of\n * String, Number, or Date types as the `value` parameters.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param values - Values to match.\n * @requiredField values\n * @returns Refined query.\n */\n hasSome(field: string, ...values: Comparable[]): WixDataQuery\n\n /**\n * Overload for `hasSome()`\n * @public\n * @documentationMaturity preview\n */\n hasSome(field: string, values: Comparable[]): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property values equals all of the specified `value`\n * parameters.\n *\n * The `hasAll()` method refines this query to\n * only match items where the value of the specified property equals all of\n * the specified values.\n *\n * Matching strings with `hasAll()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of the specified property is an array, `hasAll()` will match\n * if there is a match in the elements of that array for all of the specified\n * values.\n *\n * You can specify a list of values to match by providing an array of\n * String, Number, or Date types as the `value` parameters.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param values - Values to match.\n * @requiredField values\n * @returns Refined query.\n */\n hasAll(field: string, ...values: Comparable[]): WixDataQuery\n\n /**\n * Overload for `hasAll()`\n * @public\n * @documentationMaturity preview\n */\n hasAll(field: string, values: Comparable[]): WixDataQuery\n\n /**\n * Adds an `or` condition to the query or filter.\n *\n * The `or()` method adds an inclusive `or` condition to this filter. A query or filter\n * with an `or` returns all the items that match the query or filter as defined up to\n * the `or` method, the items that match the query or filter passed to the `or`\n * method, and the items that match both.\n *\n * The 'or()' method is designed to work with 2 or more queries or filters.\n * If you use it on its own, it will return all the items in a collection.\n * @public\n * @documentationMaturity preview\n * @param filter - Filter to add to the initial filter as an `or` condition.\n * @requiredField filter\n * @returns Refined query.\n */\n or(filter: WixDataFilter): WixDataQuery\n\n /**\n * Adds an `and` condition to the query or filter.\n *\n * The `and()` method adds an and condition to this query. A query or filter with an `and` returns all the items\n * that match the query or filter as defined up to the `and` method and also match the query or filter passed to\n * the `and` method.\n *\n * Note that when chaining multiple `WixDataFilter` methods to a query an and condition is assumed. In such cases,\n * you do not need to add a call to the `and()` method. For example, this query returns results where status is\n * active **and** age is greater than 25.\n * ```js\n * wixClient.items.query(\"myCollection\").eq(\"status\", \"active\").gt(\"age\", 25);\n * ```\n *\n * The `and()` method is needed when performing compound queries. For example, the final query in this set of\n * queries returns results where status is either pending or rejected **and** age is either less than 25 or greater\n * than 65.\n * ```js\n * let statusQuery = wixClient.items\n * .query(\"myCollection\")\n * .eq(\"status\", \"pending\")\n * .or(wixClient.items.filter().eq(\"status\", \"rejected\"));\n *\n * let ageQuery = wixClient.items\n * .filter()\n * .lt(\"age\", 25)\n * .or(wixClient.items.filter().gt(\"age\", 65));\n *\n * let statusAndAgeQuery = statusQuery.and(ageQuery);\n * ```\n *\n * The `and()` method is designed to work with 2 or more queries or filters. When used on its own, it returns all the items in a collection.\n * @public\n * @documentationMaturity preview\n * @param filter - Filter to add to the initial query as an `and` condition.\n * @requiredField filter\n * @returns Refined query.\n */\n and(filter: WixDataFilter): WixDataQuery\n\n /**\n * Adds a `not` condition to the query or filter.\n *\n * The `not()` method adds a `not` condition to this query. A query with a `not`\n * returns all the items that match the query as defined up to the `not`\n * method, but don't match the filter passed to the `not` method.\n *\n * If the query only contains a `not()` method, it returns all the items\n * that don't match the filter defined by the `not` method.\n *\n * @public\n * @documentationMaturity preview\n * @param filter - Filter to add to the initial filter as a `not` condition.\n * @requiredField filter\n * @returns Refined query.\n */\n not(filter: WixDataFilter): WixDataQuery\n\n /**\n * Refines a query to match items whose specified property value is within a specified range.\n *\n * The `between()` method refines this query to only match items where the value of the specified property is\n * greater than or equal to `rangeStart` and less than `rangeEnd`.\n *\n * It only matches values of the same type. For example, a number value stored as a String type does not match the\n * same number stored as a Number type.\n *\n * If a property contains a number as a String, that value is compared alphabetically and not numerically. Items\n * that do not have a value for the specified property are ranked lowest.\n *\n * The following types of properties can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically, so\n * - `\"A\"` and `\"M\"` are between `\"A\"` and `\"Z\"`, but `\"a\"`, `\"m\"`, `\"z\"` and `\"Z\"` are not.\n * - `\"A\"`, `\"M\"`, `\"Z\"`, and `\"a\"` are between `\"A\"` and `\"z\"`, but `\"z\"` is not.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with rangeStart and rangeEnd.\n * @requiredField field\n * @param rangeStart - Starting value of the range to match.\n * @requiredField rangeStart\n * @param rangeEnd - Ending value of the range to match.\n * @requiredField rangeEnd\n * @returns Refined query.\n */\n between<T extends Comparable>(\n field: string,\n rangeStart: T,\n rangeEnd: T\n ): WixDataQuery\n\n /**\n * Returns the number of items that match the query.\n *\n * The `count()` method returns a Promise that resolves to the number of\n * items that match the query. The Promise is rejected if `count()` is called\n * with incorrect permissions or if any of the methods used to refine the\n * query is invalid.\n *\n * Calling the `count()` method triggers the `beforeCount()` and `afterCount()` hooks if they have been defined.\n *\n * Use the `options` parameter to run `count()` without checking for permissions\n * or without its registered hooks.\n *\n * Any method that does not filter query results (e.g., [`ascending()`](#ascending))\n * does not affect the result of `count()`.\n *\n * If you build a query and don't refine it with any `WixDataQuery` methods,\n * `count()` returns the total number of items in the collection.\n *\n * > **Note**: You can also retrieve the number of query results by calling `find()` and setting the `returnTotalCount` property to `true`.\n *\n * @public\n * @documentationMaturity preview\n * @param options - Options to use when processing this operation.\n * @returns Number of items that match the query.\n */\n count(options?: WixDataReadOptions): Promise<number>\n\n /**\n * Returns the distinct values that match the query, without duplicates.\n *\n * The `distinct()` method returns a Promise that resolves to:\n * - The distinct values found in the specified field when running the query.\n * - Additional information about the results, such as the number of values that match the query.\n *\n * Unlike `find()`, which returns all item objects that match the query, `distinct()` returns matching field values,\n * and eliminates duplicate field values from the query result. You cannot use `find()` and `distinct()` together.\n *\n * For an item to be resolved as distinct, only the specified field must be distinct. Other fields for that item in\n * the collection are not evaluated when resolving the promise.\n *\n * The Promise is rejected if `distinct()` is called with incorrect permissions or if any of the\n * methods used to refine the query is invalid.\n *\n * >**Note:** Only site visitors with [Data Read](https://support.wix.com/en/article/collection-permissions-an-overview#permissions)\n * permissions can retrieve and view data. You can override the permissions in backend code by setting the\n * `suppressAuth` option to `true`.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared for distinct values.\n * @requiredField field\n * @param options - An object containing options to use when processing this operation.\n * @returns A Promise that resolves to the results of the query.\n */\n distinct(\n field: string,\n options?: WixDataQueryOptions\n ): Promise<WixDataResult<any>>\n\n /**\n * Returns the items that match the query.\n *\n * The `find()` method returns a Promise that resolves to the results found\n * by the query and some information about the results. The Promise is\n * rejected if `find()` is called with incorrect permissions or if any of the\n * methods used to refine the query is invalid.\n *\n * Calling the `find()` method triggers the `beforeQuery()` and `afterQuery()` hooks if they have been defined.\n *\n * > **Note:**\n * > Calling `find()` triggers hooks for the specified collection only. It doesn't trigger hooks for referenced\n * > collections.\n *\n * Use the `options` parameter to override default preferences:\n * - Override permission checks with `suppressAuth`.\n * - Ensure the most up-to-date data is retrieved with `consistentRead`.\n * - Prevent hooks from running with `suppressHooks`.\n * - Speed up execution with `omitTotalCount`, if you don't need a count of items matching the query.\n *\n * If you build a query and don't refine it with any `wixDataQuery` methods,\n * `find()` returns the entire collection.\n * @public\n * @documentationMaturity preview\n * @param options - Options to use when processing this operation.\n * @returns Promise that resolves to the results of the query.\n */\n find(options?: WixDataQueryOptions): Promise<WixDataResult>\n\n /**\n * Lists the fields to return in a query's results.\n *\n * The `fields()` method returns only the specified fields in the query's results.\n *\n * You can use `include()` in conjunction with `fields()` to get referenced items.\n *\n * When `fields()` receives an empty or invalid property, the query behaves as follows:\n * - When no fields are specified, the query returns all fields.\n * - When multiple fields are specified but some are invalid, invalid fields are ignored and valid fields are returned.\n * - When only invalid fields are specified, only the default `_id` field is returned.\n * @public\n * @documentationMaturity preview\n * @param fields - Properties to return.\n * @requiredField fields\n * @returns A `WixDataQuery` object representing the query.\n */\n fields(...fields: string[]): WixDataQuery\n\n /**\n * Limits the number of items the query returns.\n *\n * The `limit()` method defines the number of results a query returns in each\n * page. Only one page of results is retrieved at a time. The `next()`\n * and `prev()` methods are used to\n * navigate the pages of a query result.\n *\n * By default, `limit` is set to `50`.\n *\n * The maximum value that `limit()` can accept is `1000`.\n *\n * Note that for some Wix app collections, the maximum value `limit()` can accept is\n * less than `1000`. For example, the maximum limit for the Wix `Stores/Product` collection is 100.\n * @public\n * @documentationMaturity preview\n * @param limitNumber - Number of items to return, which is also the `pageSize` of the results object.\n * @requiredField limitNumber\n * @returns `WixDataQuery` object representing the refined query.\n */\n limit(limitNumber: number): WixDataQuery\n\n /**\n * Sets the number of items to skip before returning query results.\n *\n * The `skip()` method defines the number of results to skip in the query\n * results before returning new query results.\n *\n * For example, if you query a collection and 50 items match your query, but\n * you set `skip` to 10, the results returned will skip the first 10 items\n * that match and return the 11th through 50th items.\n *\n * By default, `skip` is set to 0.\n * @public\n * @documentationMaturity preview\n * @param skipCount - Number of items to skip in the query results before returning the results.\n * @requiredField skipCount\n * @returns `WixDataQuery` object representing the refined query.\n */\n skip(skipCount: number): WixDataQuery\n\n /**\n * Includes referenced items for the specified properties in a query's results.\n *\n * The `include()` method refines a query so that the items returned in the\n * query's results include the full referenced items for the specified properties.\n *\n * For example, suppose you have a **books** collection with an **author**\n * field that references an **authors** collection. Querying the **books**\n * collection with an `include(\"author\")` returns the relevant book items\n * and each item will include the full referenced author item in the book's\n * `author` property.\n *\n * When querying a collection that contains a reference field without using the\n * `include()` method:\n * - Single reference field: returned items contain only the ID of the\n * referenced item, and not the full referenced items.\n * - Multiple reference field: returned items do not contain the multiple\n * reference field at all.\n *\n * When including a property with multiple references, the following limitations\n * apply:\n * - Only one property with multiple references can be included.\n * - The query will return an error if more than 50 items are returned, regardless\n * of any query limit set using the `limit()` method.\n * - Each returned item can include up to 50 referenced items. If there are more\n * than 50 referenced items, only 50 are returned when the query is run\n * and the `partialIncludes`\n * property of the returned `WixDataQueryResult`\n * is `true`. To retrieve more than 50 referenced items, use the\n * `queryReferenced()` method.\n *\n * For a discussion of when to use the similar `queryReferenced()`\n * method and when to use `include()`, see [Querying Items that Reference Other Items](https://support.wix.com/en/article/including-referenced-data-when-filtering).\n *\n * > **Notes:**\n * > - Calling the `include()` method does not trigger any hooks.\n * > - The `include()` method is not supported for Single Item Collections.\n * @public\n * @documentationMaturity preview\n * @param fields - Fields for which to include referenced items.\n * @requiredField fields\n * @returns A `WixDataQuery` object representing the query.\n */\n include(...fields: string[]): WixDataQuery\n\n /**\n * Overload for `include()`\n * @public\n * @documentationMaturity preview\n */\n include(field: string, limit?: number): WixDataQuery\n\n /**\n * Overload for `include()`\n * @public\n * @documentationMaturity preview\n */\n include(field1: string, field2: string, limit?: number): WixDataQuery\n\n /**\n * Overload for `include()`\n * @public\n * @documentationMaturity preview\n */\n include(\n field1: string,\n field2: string,\n field3: string,\n limit?: number\n ): WixDataQuery\n\n /**\n * Overload for `include()`\n * @public\n * @documentationMaturity preview\n */\n include(\n field1: string,\n field2: string,\n field3: string,\n field4: string,\n limit?: number\n ): WixDataQuery\n\n /**\n * Overload for `include()`\n * @public\n * @documentationMaturity preview\n */\n include(\n field1: string,\n field2: string,\n field3: string,\n field4: string,\n field5: string,\n limit?: number\n ): WixDataQuery\n\n /**\n * Overload for `include()`\n * @public\n * @documentationMaturity preview\n */\n include(...fieldNamesAndLimit: [...string[], number]): WixDataQuery\n\n /**\n * Overload for `include()`\n * @public\n * @documentationMaturity preview\n */\n include(...args: unknown[]): WixDataQuery\n}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"names":["_WixDataQuery","require","exports","WixDataQuery","_WixDataApi","WixDataApi","_WixDataResult","WixDataResult","_QueryValidator","QueryValidator","_WixDataAggregate","WixDataAggregate","_QueryBase","QueryBase","_WixDataPatch","WixDataPatch","WixDataBulkPatch","_WixDataFilter","WixDataFilter","_types","WixDataOptions","WixDataReadOptions","WixDataReadWithProjectionOptions","WixDataUpdateOptions","WixDataQueryOptions","WixDataItem","WixDataReference","WixDataBulkError","WixDataBulkResult"],"sources":["../../../src/api/index.ts"],"sourcesContent":["export { WixDataQuery } from './WixDataQuery'\nexport { WixDataApi } from './WixDataApi'\nexport { WixDataResult } from './WixDataResult'\nexport { QueryValidator } from './QueryValidator'\nexport { WixDataAggregate } from './WixDataAggregate'\nexport { QueryBase } from './QueryBase'\nexport { WixDataPatch, WixDataBulkPatch } from './WixDataPatch'\nexport { WixDataFilter } from './WixDataFilter'\nexport {\n WixDataOptions,\n WixDataReadOptions,\n WixDataReadWithProjectionOptions,\n WixDataUpdateOptions,\n WixDataQueryOptions,\n WixDataItem,\n WixDataReference,\n WixDataBulkError,\n WixDataBulkResult,\n} from './types'\nexport type { WixDataItemOrId } from './types'\n"],"mappings":";;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAA6CC,OAAA,CAAAC,YAAA,GAAAH,aAAA,CAAAG,YAAA;AAC7C,IAAAC,WAAA,GAAAH,OAAA;AAAyCC,OAAA,CAAAG,UAAA,GAAAD,WAAA,CAAAC,UAAA;AACzC,IAAAC,cAAA,GAAAL,OAAA;AAA+CC,OAAA,CAAAK,aAAA,GAAAD,cAAA,CAAAC,aAAA;AAC/C,IAAAC,eAAA,GAAAP,OAAA;AAAiDC,OAAA,CAAAO,cAAA,GAAAD,eAAA,CAAAC,cAAA;AACjD,IAAAC,iBAAA,GAAAT,OAAA;AAAqDC,OAAA,CAAAS,gBAAA,GAAAD,iBAAA,CAAAC,gBAAA;AACrD,IAAAC,UAAA,GAAAX,OAAA;AAAuCC,OAAA,CAAAW,SAAA,GAAAD,UAAA,CAAAC,SAAA;AACvC,IAAAC,aAAA,GAAAb,OAAA;AAA+DC,OAAA,CAAAa,YAAA,GAAAD,aAAA,CAAAC,YAAA;AAAAb,OAAA,CAAAc,gBAAA,GAAAF,aAAA,CAAAE,gBAAA;AAC/D,IAAAC,cAAA,GAAAhB,OAAA;AAA+CC,OAAA,CAAAgB,aAAA,GAAAD,cAAA,CAAAC,aAAA;AAC/C,IAAAC,MAAA,GAAAlB,OAAA;AAUgBC,OAAA,CAAAkB,cAAA,GAAAD,MAAA,CAAAC,cAAA;AAAAlB,OAAA,CAAAmB,kBAAA,GAAAF,MAAA,CAAAE,kBAAA;AAAAnB,OAAA,CAAAoB,gCAAA,GAAAH,MAAA,CAAAG,gCAAA;AAAApB,OAAA,CAAAqB,oBAAA,GAAAJ,MAAA,CAAAI,oBAAA;AAAArB,OAAA,CAAAsB,mBAAA,GAAAL,MAAA,CAAAK,mBAAA;AAAAtB,OAAA,CAAAuB,WAAA,GAAAN,MAAA,CAAAM,WAAA;AAAAvB,OAAA,CAAAwB,gBAAA,GAAAP,MAAA,CAAAO,gBAAA;AAAAxB,OAAA,CAAAyB,gBAAA,GAAAR,MAAA,CAAAQ,gBAAA;AAAAzB,OAAA,CAAA0B,iBAAA,GAAAT,MAAA,CAAAS,iBAAA"}
1
+ {"version":3,"names":["_WixDataQuery","require","exports","WixDataQuery","_WixDataApi","WixDataApi","_WixDataResult","WixDataResult","_QueryValidator","QueryValidator","_WixDataAggregate","WixDataAggregate","_QueryBase","QueryBase","_WixDataPatch","WixDataPatch","WixDataBulkPatch","_WixDataFilter","WixDataFilter","_types","WixDataOptions","WixDataReadOptions","WixDataReadWithProjectionOptions","WixDataUpdateOptions","WixDataQueryOptions","WixDataItem","WixDataReference","WixDataBulkError","WixDataBulkResult"],"sources":["../../../src/api/index.ts"],"sourcesContent":["export { WixDataQuery } from './WixDataQuery'\nexport { WixDataApi } from './WixDataApi'\nexport { WixDataResult } from './WixDataResult'\nexport { QueryValidator } from './QueryValidator'\nexport { WixDataAggregate } from './WixDataAggregate'\nexport { QueryBase } from './QueryBase'\nexport { WixDataPatch, WixDataBulkPatch } from './WixDataPatch'\nexport { WixDataFilter } from './WixDataFilter'\nexport {\n WixDataOptions,\n WixDataReadOptions,\n WixDataReadWithProjectionOptions,\n WixDataUpdateOptions,\n WixDataQueryOptions,\n WixDataItem,\n WixDataReference,\n WixDataBulkError,\n WixDataBulkResult,\n} from './types'\nexport type { WixDataItemOrId, Comparable } from './types'\n"],"mappings":";;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAA6CC,OAAA,CAAAC,YAAA,GAAAH,aAAA,CAAAG,YAAA;AAC7C,IAAAC,WAAA,GAAAH,OAAA;AAAyCC,OAAA,CAAAG,UAAA,GAAAD,WAAA,CAAAC,UAAA;AACzC,IAAAC,cAAA,GAAAL,OAAA;AAA+CC,OAAA,CAAAK,aAAA,GAAAD,cAAA,CAAAC,aAAA;AAC/C,IAAAC,eAAA,GAAAP,OAAA;AAAiDC,OAAA,CAAAO,cAAA,GAAAD,eAAA,CAAAC,cAAA;AACjD,IAAAC,iBAAA,GAAAT,OAAA;AAAqDC,OAAA,CAAAS,gBAAA,GAAAD,iBAAA,CAAAC,gBAAA;AACrD,IAAAC,UAAA,GAAAX,OAAA;AAAuCC,OAAA,CAAAW,SAAA,GAAAD,UAAA,CAAAC,SAAA;AACvC,IAAAC,aAAA,GAAAb,OAAA;AAA+DC,OAAA,CAAAa,YAAA,GAAAD,aAAA,CAAAC,YAAA;AAAAb,OAAA,CAAAc,gBAAA,GAAAF,aAAA,CAAAE,gBAAA;AAC/D,IAAAC,cAAA,GAAAhB,OAAA;AAA+CC,OAAA,CAAAgB,aAAA,GAAAD,cAAA,CAAAC,aAAA;AAC/C,IAAAC,MAAA,GAAAlB,OAAA;AAUgBC,OAAA,CAAAkB,cAAA,GAAAD,MAAA,CAAAC,cAAA;AAAAlB,OAAA,CAAAmB,kBAAA,GAAAF,MAAA,CAAAE,kBAAA;AAAAnB,OAAA,CAAAoB,gCAAA,GAAAH,MAAA,CAAAG,gCAAA;AAAApB,OAAA,CAAAqB,oBAAA,GAAAJ,MAAA,CAAAI,oBAAA;AAAArB,OAAA,CAAAsB,mBAAA,GAAAL,MAAA,CAAAK,mBAAA;AAAAtB,OAAA,CAAAuB,WAAA,GAAAN,MAAA,CAAAM,WAAA;AAAAvB,OAAA,CAAAwB,gBAAA,GAAAP,MAAA,CAAAO,gBAAA;AAAAxB,OAAA,CAAAyB,gBAAA,GAAAR,MAAA,CAAAQ,gBAAA;AAAAzB,OAAA,CAAA0B,iBAAA,GAAAT,MAAA,CAAAS,iBAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/api/types.ts"],"sourcesContent":["export interface WixDataOptions {\n /**\n * Prevents hooks from running for the operation. Can only be used in backend code.\n */\n suppressHooks?: boolean\n\n /**\n * If `true`, operations work on draft items too.\n * Read operations includes draft items in response.\n * Write operations modifies draft items.\n */\n showDrafts?: boolean\n\n /**\n * Optional instructions for accessing Wix App Collections.\n */\n appOptions?: Record<string, any>\n}\n\nexport interface WixDataReadOptions extends WixDataOptions {\n /**\n * Language to translate result text into, in\n * [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n * If provided, the result text is returned in the specified language.\n *\n * **Note:** Translation for the specified language must be enabled for the collection in\n * [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).\n *\n * If not provided, result text is not translated.\n */\n language?: string\n\n /**\n * When true, reads data from the primary database instance. This decreases performance but ensures data retrieved is\n * up-to-date even immediately after an update. Learn more about [Wix Data and Eventual Consistency](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency).\n */\n consistentRead?: boolean\n}\n\nexport interface WixDataReadWithProjectionOptions\n extends WixDataReadOptions,\n ProjectionOptions {}\n\nexport interface WixDataUpdateOptions extends WixDataOptions {\n /**\n * If true, referenced items will be included.\n * @internal\n */\n includeReferences?: boolean\n}\n\nexport interface WixDataQueryOptions extends WixDataReadOptions {\n /**\n * When `true`, the query result include a `totalCount` and `totalPages` properties containing the totals of items\n * matching query. Requesting total count slows down the query.\n *\n * Default: `false`\n */\n returnTotalCount?: boolean\n}\n\nexport interface WixDataQueryReferencedOptions\n extends WixDataQueryOptions,\n ProjectionOptions {\n /**\n * Order of the returned referenced items. Sorted by the date each item was referenced.\n *\n * Default: `'asc'`\n */\n order?: 'asc' | 'desc'\n\n /**\n * Number of items to load.\n *\n * Default: `50`\n */\n skip?: number\n\n /**\n * Number of items to skip in the current sort order.\n *\n * Default: `0`\n */\n limit?: number\n}\n\ninterface ProjectionOptions {\n /**\n * Lists of fields to return in a result.\n */\n fields?: string[]\n}\n\nexport interface WixDataItem {\n /**\n * Data item ID.\n */\n _id: string\n\n /**\n * Date and time the item was added to the collection.\n */\n _createdDate?: Date\n\n /**\n * Date and time the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have\n * the same value.\n */\n _updatedDate?: Date\n\n /**\n * ID of the user who created the item. Can be modified with site owner permissions.\n */\n _owner?: string\n\n /**\n * Data item contents.\n */\n [key: string]: any\n}\n\nexport type WixDataItemOrId = WixDataItem | string\n\nexport interface WixDataReference {\n relationshipName: string\n left: WixDataItemOrId\n right: WixDataItemOrId\n}\n\nexport interface Provider<T> {\n get(): T | Promise<T>\n}\n\nexport interface WixDataBulkError extends Error {\n /**\n * The description of the error.\n */\n message: string\n\n /**\n * The error code.\n */\n code: string\n\n /**\n * Index of the item within the request array. Allows for correlation between request and response items.\n */\n originalIndex: number\n\n /**\n * The failed item (or ID in case of `bulkRemove`).\n */\n item: WixDataItem | string\n}\n\nexport interface WixDataBulkResult {\n /**\n * The number of inserted items.\n */\n inserted: number\n\n /**\n * The number of updated items.\n */\n updated: number\n\n /**\n * The number of removed items.\n */\n removed: number\n\n /**\n * The number of skipped items.\n */\n skipped: number\n\n /**\n * List of errors.\n */\n errors: WixDataBulkError[]\n\n /**\n * List of IDs of inserted items.\n */\n insertedItemIds: string[]\n\n /**\n * List of IDs of updated items.\n */\n updatedItemIds: string[]\n\n /**\n * List of IDs of removed items.\n */\n removedItemIds: string[]\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["../../../src/api/types.ts"],"sourcesContent":["export interface WixDataOptions {\n /**\n * Prevents hooks from running for the operation. Can only be used in backend code.\n */\n suppressHooks?: boolean\n\n /**\n * If `true`, operations work on draft items too.\n * Read operations includes draft items in response.\n * Write operations modifies draft items.\n */\n showDrafts?: boolean\n\n /**\n * Optional instructions for accessing Wix App Collections.\n */\n appOptions?: Record<string, any>\n}\n\nexport interface WixDataReadOptions extends WixDataOptions {\n /**\n * Language to translate result text into, in\n * [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n * If provided, the result text is returned in the specified language.\n *\n * **Note:** Translation for the specified language must be enabled for the collection in\n * [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).\n *\n * If not provided, result text is not translated.\n */\n language?: string\n\n /**\n * When true, reads data from the primary database instance. This decreases performance but ensures data retrieved is\n * up-to-date even immediately after an update. Learn more about [Wix Data and Eventual Consistency](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency).\n */\n consistentRead?: boolean\n}\n\nexport interface WixDataReadWithProjectionOptions\n extends WixDataReadOptions,\n ProjectionOptions {}\n\nexport interface WixDataUpdateOptions extends WixDataOptions {\n /**\n * If true, referenced items will be included.\n * @internal\n */\n includeReferences?: boolean\n}\n\nexport interface WixDataQueryOptions extends WixDataReadOptions {\n /**\n * When `true`, the query result include a `totalCount` and `totalPages` properties containing the totals of items\n * matching query. Requesting total count slows down the query.\n *\n * Default: `false`\n */\n returnTotalCount?: boolean\n}\n\nexport interface WixDataQueryReferencedOptions\n extends WixDataQueryOptions,\n ProjectionOptions {\n /**\n * Order of the returned referenced items. Sorted by the date each item was referenced.\n *\n * Default: `'asc'`\n */\n order?: 'asc' | 'desc'\n\n /**\n * Number of items to load.\n *\n * Default: `50`\n */\n skip?: number\n\n /**\n * Number of items to skip in the current sort order.\n *\n * Default: `0`\n */\n limit?: number\n}\n\ninterface ProjectionOptions {\n /**\n * Lists of fields to return in a result.\n */\n fields?: string[]\n}\n\nexport interface WixDataItem {\n /**\n * Data item ID.\n */\n _id: string\n\n /**\n * Date and time the item was added to the collection.\n */\n _createdDate?: Date\n\n /**\n * Date and time the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have\n * the same value.\n */\n _updatedDate?: Date\n\n /**\n * ID of the user who created the item. Can be modified with site owner permissions.\n */\n _owner?: string\n\n /**\n * Data item contents.\n */\n [key: string]: any\n}\n\nexport type WixDataItemOrId = WixDataItem | string\nexport type Comparable = string | number | Date\n\nexport interface WixDataReference {\n relationshipName: string\n left: WixDataItemOrId\n right: WixDataItemOrId\n}\n\nexport interface Provider<T> {\n get(): T | Promise<T>\n}\n\nexport interface WixDataBulkError extends Error {\n /**\n * The description of the error.\n */\n message: string\n\n /**\n * The error code.\n */\n code: string\n\n /**\n * Index of the item within the request array. Allows for correlation between request and response items.\n */\n originalIndex: number\n\n /**\n * The failed item (or ID in case of `bulkRemove`).\n */\n item: WixDataItem | string\n}\n\nexport interface WixDataBulkResult {\n /**\n * The number of inserted items.\n */\n inserted: number\n\n /**\n * The number of updated items.\n */\n updated: number\n\n /**\n * The number of removed items.\n */\n removed: number\n\n /**\n * The number of skipped items.\n */\n skipped: number\n\n /**\n * List of errors.\n */\n errors: WixDataBulkError[]\n\n /**\n * List of IDs of inserted items.\n */\n insertedItemIds: string[]\n\n /**\n * List of IDs of updated items.\n */\n updatedItemIds: string[]\n\n /**\n * List of IDs of removed items.\n */\n removedItemIds: string[]\n}\n"],"mappings":""}
package/dist/cjs/index.js CHANGED
@@ -3,113 +3,44 @@
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  exports.__esModule = true;
5
5
  var _exportNames = {
6
- encode: true,
7
- decode: true,
8
- isObject: true,
9
- isArray: true,
10
- isDate: true,
11
- isNumber: true,
12
- isBoolean: true,
13
- isString: true,
14
- isFunction: true,
15
- typeForDisplay: true,
16
- isUndefined: true,
17
- isNull: true,
18
- clone: true,
19
- base64url: true,
20
- filterBuilderFactory: true,
21
- platformizedFilterBuilder: true,
22
- PlatformizedFilterBuilder: true,
23
- filterMixin: true,
24
- validateFilterTree: true,
25
- validateFilterOrThrow: true,
26
- WithFilter: true,
27
6
  optimiseQuery: true,
28
7
  wixDataEncoder: true,
29
- messages: true,
30
- codes: true,
31
- wixDataError: true,
32
- validationError: true,
33
- BulkError: true,
34
- apiValidator: true,
35
- AggregatingValidator: true,
36
- RejectingValidator: true,
37
- sortMixin: true,
38
- WixDataApi: true,
39
- WixDataBulkPatch: true,
40
- WixDataQuery: true,
41
- WixDataPatch: true,
42
- WixDataResult: true,
43
- QueryValidator: true,
44
- WixDataOptions: true,
45
- WixDataReadOptions: true,
46
- WixDataReadWithProjectionOptions: true,
47
- WixDataUpdateOptions: true,
48
- WixDataQueryOptions: true,
49
- WixDataItem: true,
50
- WixDataReference: true,
51
- WixDataBulkError: true,
52
- WixDataBulkResult: true,
53
- WixDataAggregate: true,
54
- QueryBase: true,
55
- WixDataFilter: true
8
+ sortMixin: true
56
9
  };
57
- var _utils = require("./utils");
58
- exports.encode = _utils.encode;
59
- exports.decode = _utils.decode;
60
- exports.isObject = _utils.isObject;
61
- exports.isArray = _utils.isArray;
62
- exports.isDate = _utils.isDate;
63
- exports.isNumber = _utils.isNumber;
64
- exports.isBoolean = _utils.isBoolean;
65
- exports.isString = _utils.isString;
66
- exports.isFunction = _utils.isFunction;
67
- exports.typeForDisplay = _utils.typeForDisplay;
68
- exports.isUndefined = _utils.isUndefined;
69
- exports.isNull = _utils.isNull;
70
- exports.clone = _utils.clone;
71
- exports.base64url = _utils.base64url;
72
- var _filter = require("./filter");
73
- exports.filterBuilderFactory = _filter.filterBuilderFactory;
74
- exports.platformizedFilterBuilder = _filter.platformizedFilterBuilder;
75
- exports.PlatformizedFilterBuilder = _filter.PlatformizedFilterBuilder;
76
- exports.filterMixin = _filter.filterMixin;
77
- exports.validateFilterTree = _filter.validateFilterTree;
78
- exports.validateFilterOrThrow = _filter.validateFilterOrThrow;
79
- exports.WithFilter = _filter.WithFilter;
10
+ exports.wixDataEncoder = exports.optimiseQuery = void 0;
11
+ var _sortMixin = _interopRequireDefault(require("./sort/sortMixin"));
12
+ exports.sortMixin = _sortMixin.default;
80
13
  var _filterBuilder = require("@wix/filter-builder");
81
14
  exports.optimiseQuery = _filterBuilder.optimiseQuery;
82
15
  exports.wixDataEncoder = _filterBuilder.wixDataEncoder;
16
+ var _utils = require("./utils");
17
+ Object.keys(_utils).forEach(function (key) {
18
+ if (key === "default" || key === "__esModule") return;
19
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
20
+ if (key in exports && exports[key] === _utils[key]) return;
21
+ exports[key] = _utils[key];
22
+ });
23
+ var _filter = require("./filter");
24
+ Object.keys(_filter).forEach(function (key) {
25
+ if (key === "default" || key === "__esModule") return;
26
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
27
+ if (key in exports && exports[key] === _filter[key]) return;
28
+ exports[key] = _filter[key];
29
+ });
83
30
  var _errors = require("./errors");
84
- exports.messages = _errors.messages;
85
- exports.codes = _errors.codes;
86
- exports.wixDataError = _errors.wixDataError;
87
- exports.validationError = _errors.validationError;
88
- exports.BulkError = _errors.BulkError;
89
- exports.apiValidator = _errors.apiValidator;
90
- exports.AggregatingValidator = _errors.AggregatingValidator;
91
- exports.RejectingValidator = _errors.RejectingValidator;
92
- var _sortMixin = _interopRequireDefault(require("./sort/sortMixin"));
93
- exports.sortMixin = _sortMixin.default;
31
+ Object.keys(_errors).forEach(function (key) {
32
+ if (key === "default" || key === "__esModule") return;
33
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
34
+ if (key in exports && exports[key] === _errors[key]) return;
35
+ exports[key] = _errors[key];
36
+ });
94
37
  var _api = require("./api");
95
- exports.WixDataApi = _api.WixDataApi;
96
- exports.WixDataBulkPatch = _api.WixDataBulkPatch;
97
- exports.WixDataQuery = _api.WixDataQuery;
98
- exports.WixDataPatch = _api.WixDataPatch;
99
- exports.WixDataResult = _api.WixDataResult;
100
- exports.QueryValidator = _api.QueryValidator;
101
- exports.WixDataOptions = _api.WixDataOptions;
102
- exports.WixDataReadOptions = _api.WixDataReadOptions;
103
- exports.WixDataReadWithProjectionOptions = _api.WixDataReadWithProjectionOptions;
104
- exports.WixDataUpdateOptions = _api.WixDataUpdateOptions;
105
- exports.WixDataQueryOptions = _api.WixDataQueryOptions;
106
- exports.WixDataItem = _api.WixDataItem;
107
- exports.WixDataReference = _api.WixDataReference;
108
- exports.WixDataBulkError = _api.WixDataBulkError;
109
- exports.WixDataBulkResult = _api.WixDataBulkResult;
110
- exports.WixDataAggregate = _api.WixDataAggregate;
111
- exports.QueryBase = _api.QueryBase;
112
- exports.WixDataFilter = _api.WixDataFilter;
38
+ Object.keys(_api).forEach(function (key) {
39
+ if (key === "default" || key === "__esModule") return;
40
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
41
+ if (key in exports && exports[key] === _api[key]) return;
42
+ exports[key] = _api[key];
43
+ });
113
44
  var _types = require("./types");
114
45
  Object.keys(_types).forEach(function (key) {
115
46
  if (key === "default" || key === "__esModule") return;
@@ -1 +1 @@
1
- {"version":3,"names":["_utils","require","exports","encode","decode","isObject","isArray","isDate","isNumber","isBoolean","isString","isFunction","typeForDisplay","isUndefined","isNull","clone","base64url","_filter","filterBuilderFactory","platformizedFilterBuilder","PlatformizedFilterBuilder","filterMixin","validateFilterTree","validateFilterOrThrow","WithFilter","_filterBuilder","optimiseQuery","wixDataEncoder","_errors","messages","codes","wixDataError","validationError","BulkError","apiValidator","AggregatingValidator","RejectingValidator","_sortMixin","_interopRequireDefault","sortMixin","default","_api","WixDataApi","WixDataBulkPatch","WixDataQuery","WixDataPatch","WixDataResult","QueryValidator","WixDataOptions","WixDataReadOptions","WixDataReadWithProjectionOptions","WixDataUpdateOptions","WixDataQueryOptions","WixDataItem","WixDataReference","WixDataBulkError","WixDataBulkResult","WixDataAggregate","QueryBase","WixDataFilter","_types","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames"],"sources":["../../src/index.ts"],"sourcesContent":["import {\n encode,\n decode,\n isObject,\n isArray,\n isDate,\n isNumber,\n isBoolean,\n isString,\n isFunction,\n typeForDisplay,\n isUndefined,\n isNull,\n clone,\n base64url,\n} from './utils'\nimport type { FilterTree } from './filter'\nimport {\n filterBuilderFactory,\n platformizedFilterBuilder,\n PlatformizedFilterBuilder,\n filterMixin,\n validateFilterTree,\n validateFilterOrThrow,\n WithFilter,\n} from './filter'\nimport { optimiseQuery, wixDataEncoder } from '@wix/filter-builder'\nimport {\n messages,\n codes,\n wixDataError,\n validationError,\n BulkError,\n apiValidator,\n AggregatingValidator,\n RejectingValidator,\n} from './errors'\nimport sortMixin from './sort/sortMixin'\nimport {\n WixDataApi,\n WixDataBulkPatch,\n WixDataQuery,\n WixDataPatch,\n WixDataResult,\n QueryValidator,\n WixDataOptions,\n WixDataReadOptions,\n WixDataReadWithProjectionOptions,\n WixDataUpdateOptions,\n WixDataQueryOptions,\n WixDataItem,\n WixDataReference,\n WixDataBulkError,\n WixDataBulkResult,\n WixDataAggregate,\n QueryBase,\n WixDataFilter,\n} from './api'\nimport type { HttpApiClientFactory, RequestInterceptor } from './types'\nimport type { WixDataItemOrId } from './api'\n\nexport type {\n FilterTree,\n HttpApiClientFactory,\n RequestInterceptor,\n WixDataItemOrId,\n}\nexport * from './types'\nexport {\n encode,\n decode,\n isObject,\n isArray,\n isDate,\n isNumber,\n isBoolean,\n isString,\n isFunction,\n typeForDisplay,\n isUndefined,\n isNull,\n clone,\n base64url,\n filterMixin,\n filterBuilderFactory,\n platformizedFilterBuilder,\n PlatformizedFilterBuilder,\n optimiseQuery,\n validateFilterOrThrow,\n validateFilterTree,\n wixDataEncoder,\n WithFilter,\n messages,\n codes,\n wixDataError,\n validationError,\n BulkError,\n apiValidator,\n AggregatingValidator,\n RejectingValidator,\n sortMixin,\n WixDataApi,\n WixDataBulkPatch,\n WixDataQuery,\n WixDataPatch,\n WixDataResult,\n QueryValidator,\n WixDataOptions,\n WixDataReadOptions,\n WixDataReadWithProjectionOptions,\n WixDataUpdateOptions,\n WixDataQueryOptions,\n WixDataItem,\n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AA;AAAA7C,OAAA,CAAA8C,cAAA,GAAAP,IAAA,CAAAO,cAAA;AAAA9C,OAAA,CAAA+C,kBAAA,GAAAR,IAAA,CAAAQ,kBAAA;AAAA/C,OAAA,CAAAgD,gCAAA,GAAAT,IAAA,CAAAS,gCAAA;AAAAhD,OAAA,CAAAiD,oBAAA,GAAAV,IAAA,CAAAU,oBAAA;AAAAjD,OAAA,CAAAkD,mBAAA,GAAAX,IAAA,CAAAW,mBAAA;AAAAlD,OAAA,CAAAmD,WAAA,GAAAZ,IAAA,CAAAY,WAAA;AAAAnD,OAAA,CAAAoD,gBAAA,GAAAb,IAAA,CAAAa,gBAAA;AAAApD,OAAA,CAAAqD,gBAAA,GAAAd,IAAA,CAAAc,gBAAA;AAAArD,OAAA,CAAAsD,iBAAA,GAAAf,IAAA,CAAAe,iBAAA;AAAAtD,OAAA,CAAAuD,gBAAA,GAAAhB,IAAA,CAAAgB,gBAAA;AAAAvD,OAAA,CAAAwD,SAAA,GAAAjB,IAAA,CAAAiB,SAAA;AAAAxD,OAAA,CAAAyD,aAAA,GAAAlB,IAAA,CAAAkB,aAAA;AAUd,IAAAC,MAAA,GAAA3D,OAAA;AAAA4D,MAAA,CAAAC,IAAA,CAAAF,MAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAA9D,OAAA,IAAAA,OAAA,CAAA8D,GAAA,MAAAJ,MAAA,CAAAI,GAAA;EAAA9D,OAAA,CAAA8D,GAAA,IAAAJ,MAAA,CAAAI,GAAA;AAAA"}
1
+ {"version":3,"names":["_sortMixin","_interopRequireDefault","require","exports","sortMixin","default","_filterBuilder","optimiseQuery","wixDataEncoder","_utils","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","_filter","_errors","_api","_types"],"sources":["../../src/index.ts"],"sourcesContent":["import sortMixin from './sort/sortMixin'\n\nexport { sortMixin }\nexport { optimiseQuery, wixDataEncoder } from '@wix/filter-builder'\nexport * from './utils'\nexport * from './filter'\nexport * from './errors'\nexport * from './api'\nexport * from './types'\nexport type { FilterTree } from './filter'\nexport type { HttpApiClientFactory, RequestInterceptor } from './types'\nexport type { WixDataItemOrId, Comparable } from './api'\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAwCC,OAAA,CAAAC,SAAA,GAAAJ,UAAA,CAAAK,OAAA;AAGxC,IAAAC,cAAA,GAAAJ,OAAA;AAAmEC,OAAA,CAAAI,aAAA,GAAAD,cAAA,CAAAC,aAAA;AAAAJ,OAAA,CAAAK,cAAA,GAAAF,cAAA,CAAAE,cAAA;AACnE,IAAAC,MAAA,GAAAP,OAAA;AAAAQ,MAAA,CAAAC,IAAA,CAAAF,MAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAV,OAAA,IAAAA,OAAA,CAAAU,GAAA,MAAAJ,MAAA,CAAAI,GAAA;EAAAV,OAAA,CAAAU,GAAA,IAAAJ,MAAA,CAAAI,GAAA;AAAA;AACA,IAAAK,OAAA,GAAAhB,OAAA;AAAAQ,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAV,OAAA,IAAAA,OAAA,CAAAU,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAV,OAAA,CAAAU,GAAA,IAAAK,OAAA,CAAAL,GAAA;AAAA;AACA,IAAAM,OAAA,GAAAjB,OAAA;AAAAQ,MAAA,CAAAC,IAAA,CAAAQ,OAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAV,OAAA,IAAAA,OAAA,CAAAU,GAAA,MAAAM,OAAA,CAAAN,GAAA;EAAAV,OAAA,CAAAU,GAAA,IAAAM,OAAA,CAAAN,GAAA;AAAA;AACA,IAAAO,IAAA,GAAAlB,OAAA;AAAAQ,MAAA,CAAAC,IAAA,CAAAS,IAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAV,OAAA,IAAAA,OAAA,CAAAU,GAAA,MAAAO,IAAA,CAAAP,GAAA;EAAAV,OAAA,CAAAU,GAAA,IAAAO,IAAA,CAAAP,GAAA;AAAA;AACA,IAAAQ,MAAA,GAAAnB,OAAA;AAAAQ,MAAA,CAAAC,IAAA,CAAAU,MAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAV,OAAA,IAAAA,OAAA,CAAAU,GAAA,MAAAQ,MAAA,CAAAR,GAAA;EAAAV,OAAA,CAAAU,GAAA,IAAAQ,MAAA,CAAAR,GAAA;AAAA"}
package/dist/esm/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { encode, decode, isObject, isArray, isDate, isNumber, isBoolean, isString, isFunction, typeForDisplay, isUndefined, isNull, clone, base64url, } from './utils';
2
- import { filterBuilderFactory, platformizedFilterBuilder, PlatformizedFilterBuilder, filterMixin, validateFilterTree, validateFilterOrThrow, } from './filter';
3
- import { optimiseQuery, wixDataEncoder } from '@wix/filter-builder';
4
- import { messages, codes, wixDataError, validationError, BulkError, apiValidator, AggregatingValidator, RejectingValidator, } from './errors';
5
1
  import sortMixin from './sort/sortMixin';
6
- import { WixDataApi, WixDataBulkPatch, WixDataPatch, QueryValidator, QueryBase, } from './api';
2
+ export { sortMixin };
3
+ export { optimiseQuery, wixDataEncoder } from '@wix/filter-builder';
4
+ export * from './utils';
5
+ export * from './filter';
6
+ export * from './errors';
7
+ export * from './api';
7
8
  export * from './types';
8
- export { encode, decode, isObject, isArray, isDate, isNumber, isBoolean, isString, isFunction, typeForDisplay, isUndefined, isNull, clone, base64url, filterMixin, filterBuilderFactory, platformizedFilterBuilder, PlatformizedFilterBuilder, optimiseQuery, validateFilterOrThrow, validateFilterTree, wixDataEncoder, messages, codes, wixDataError, validationError, BulkError, apiValidator, AggregatingValidator, RejectingValidator, sortMixin, WixDataApi, WixDataBulkPatch, WixDataPatch, QueryValidator, QueryBase, };
9
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAO,EACP,MAAM,EACN,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,cAAc,EACd,WAAW,EACX,MAAM,EACN,KAAK,EACL,SAAS,GACV,MAAM,SAAS,CAAA;AAEhB,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,WAAW,EACX,kBAAkB,EAClB,qBAAqB,GAEtB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACnE,OAAO,EACL,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,eAAe,EACf,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,UAAU,CAAA;AACjB,OAAO,SAAS,MAAM,kBAAkB,CAAA;AACxC,OAAO,EACL,UAAU,EACV,gBAAgB,EAEhB,YAAY,EAEZ,cAAc,EAWd,SAAS,GAEV,MAAM,OAAO,CAAA;AAUd,cAAc,SAAS,CAAA;AACvB,OAAO,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAO,EACP,MAAM,EACN,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,cAAc,EACd,WAAW,EACX,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EAEd,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,eAAe,EACf,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,gBAAgB,EAEhB,YAAY,EAEZ,cAAc,EAWd,SAAS,GAEV,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,kBAAkB,CAAA;AAExC,OAAO,EAAE,SAAS,EAAE,CAAA;AACpB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACnE,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA"}
@@ -1,4 +1,4 @@
1
- type Comparable = string | number | Date;
1
+ import type { Comparable } from './types';
2
2
  /**
3
3
  * @builder
4
4
  */
@@ -409,5 +409,4 @@ export interface WixDataFilter {
409
409
  */
410
410
  between<T extends Comparable>(field: string, rangeStart: T, rangeEnd: T): WixDataFilter;
411
411
  }
412
- export {};
413
412
  //# source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M,GAAG,aAAa,CAAA;IAErD;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,UAAU,EAAE,GAAG,aAAa,CAAA;IAE9D;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,aAAa,CAAA;IAE3D;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,UAAU,EAAE,GAAG,aAAa,CAAA;IAE7D;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,aAAa,CAAA;IAE1D;;;;;;;;;;;;;;;OAeG;IACH,EAAE,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,CAAA;IAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,GAAG,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,CAAA;IAEzC;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,CAAA;IAEzC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,OAAO,CAAC,CAAC,SAAS,UAAU,EAC1B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,CAAC,EACb,QAAQ,EAAE,CAAC,GACV,aAAa,CAAA;CACjB"}
@@ -1,7 +1,7 @@
1
1
  import { WixDataQueryOptions, WixDataReadOptions } from './types';
2
2
  import { WixDataResult } from './WixDataResult';
3
3
  import { WixDataFilter } from './WixDataFilter';
4
- type Comparable = string | number | Date;
4
+ import type { Comparable } from './types';
5
5
  /**
6
6
  * @builder
7
7
  */
@@ -697,5 +697,4 @@ export interface WixDataQuery {
697
697
  */
698
698
  include(...args: unknown[]): WixDataQuery;
699
699
  }
700
- export {};
701
700
  //# sourceMappingURL=WixData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;;;;OAIG;IACH,OAAO,CACL,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,GACb,YAAY,CAAA;IAEf;;;;OAIG;IACH,OAAO,CACL,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,GACb,YAAY,CAAA;IAEf;;;;OAIG;IACH,OAAO,CACL,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,GACb,YAAY,CAAA;IAEf;;;;OAIG;IACH,OAAO,CAAC,GAAG,kBAAkB,EAAE,CAAC,GAAG,MAAM,EAAE,EAAE,MAAM,CAAC,GAAG,YAAY,CAAA;IAEnE;;;;OAIG;IACH,OAAO,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,YAAY,CAAA;CAC1C"}
@@ -7,5 +7,5 @@ export { QueryBase } from './QueryBase';
7
7
  export { WixDataPatch, WixDataBulkPatch } from './WixDataPatch';
8
8
  export { WixDataFilter } from './WixDataFilter';
9
9
  export { WixDataOptions, WixDataReadOptions, WixDataReadWithProjectionOptions, WixDataUpdateOptions, WixDataQueryOptions, WixDataItem, WixDataReference, WixDataBulkError, WixDataBulkResult, } from './types';
10
- export type { WixDataItemOrId } from './types';
10
+ export type { WixDataItemOrId, Comparable } from './types';
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,gCAAgC,EAChC,oBAAoB,EACpB,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,SAAS,CAAA;AAChB,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,gCAAgC,EAChC,oBAAoB,EACpB,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,SAAS,CAAA;AAChB,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA"}
@@ -100,6 +100,7 @@ export interface WixDataItem {
100
100
  [key: string]: any;
101
101
  }
102
102
  export type WixDataItemOrId = WixDataItem | string;
103
+ export type Comparable = string | number | Date;
103
104
  export interface WixDataReference {
104
105
  relationshipName: string;
105
106
  left: WixDataItemOrId;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/api/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CACjC;AAED,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,MAAM,WAAW,gCACf,SAAQ,kBAAkB,EACxB,iBAAiB;CAAG;AAExB,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,MAAM,WAAW,6BACf,SAAQ,mBAAmB,EACzB,iBAAiB;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IAEtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,UAAU,iBAAiB;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IAEX;;O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,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;AAE/C,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,EAAE,MAAM,CAAA;IACxB,IAAI,EAAE,eAAe,CAAA;IACrB,KAAK,EAAE,eAAe,CAAA;CACvB;AAED,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,GAAG,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;CACtB;AAED,MAAM,WAAW,gBAAiB,SAAQ,KAAK;IAC7C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,IAAI,EAAE,WAAW,GAAG,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAE1B;;OAEG;IACH,eAAe,EAAE,MAAM,EAAE,CAAA;IAEzB;;OAEG;IACH,cAAc,EAAE,MAAM,EAAE,CAAA;IAExB;;OAEG;IACH,cAAc,EAAE,MAAM,EAAE,CAAA;CACzB"}
@@ -1,13 +1,12 @@
1
- import { encode, decode, isObject, isArray, isDate, isNumber, isBoolean, isString, isFunction, typeForDisplay, isUndefined, isNull, clone, base64url } from './utils';
2
- import type { FilterTree } from './filter';
3
- import { filterBuilderFactory, platformizedFilterBuilder, PlatformizedFilterBuilder, filterMixin, validateFilterTree, validateFilterOrThrow, WithFilter } from './filter';
4
- import { optimiseQuery, wixDataEncoder } from '@wix/filter-builder';
5
- import { messages, codes, wixDataError, validationError, BulkError, apiValidator, AggregatingValidator, RejectingValidator } from './errors';
6
1
  import sortMixin from './sort/sortMixin';
7
- import { WixDataApi, WixDataBulkPatch, WixDataQuery, WixDataPatch, WixDataResult, QueryValidator, WixDataOptions, WixDataReadOptions, WixDataReadWithProjectionOptions, WixDataUpdateOptions, WixDataQueryOptions, WixDataItem, WixDataReference, WixDataBulkError, WixDataBulkResult, WixDataAggregate, QueryBase, WixDataFilter } from './api';
8
- import type { HttpApiClientFactory, RequestInterceptor } from './types';
9
- import type { WixDataItemOrId } from './api';
10
- export type { FilterTree, HttpApiClientFactory, RequestInterceptor, WixDataItemOrId, };
2
+ export { sortMixin };
3
+ export { optimiseQuery, wixDataEncoder } from '@wix/filter-builder';
4
+ export * from './utils';
5
+ export * from './filter';
6
+ export * from './errors';
7
+ export * from './api';
11
8
  export * from './types';
12
- export { encode, decode, isObject, isArray, isDate, isNumber, isBoolean, isString, isFunction, typeForDisplay, isUndefined, isNull, clone, base64url, filterMixin, filterBuilderFactory, platformizedFilterBuilder, PlatformizedFilterBuilder, optimiseQuery, validateFilterOrThrow, validateFilterTree, wixDataEncoder, WithFilter, messages, codes, wixDataError, validationError, BulkError, apiValidator, AggregatingValidator, RejectingValidator, sortMixin, WixDataApi, WixDataBulkPatch, WixDataQuery, WixDataPatch, WixDataResult, QueryValidator, WixDataOptions, WixDataReadOptions, WixDataReadWithProjectionOptions, WixDataUpdateOptions, WixDataQueryOptions, WixDataItem, WixDataReference, WixDataBulkError, WixDataBulkResult, WixDataAggregate, QueryBase, WixDataFilter, };
9
+ export type { FilterTree } from './filter';
10
+ export type { HttpApiClientFactory, RequestInterceptor } from './types';
11
+ export type { WixDataItemOrId, Comparable } from './api';
13
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAO,EACP,MAAM,EACN,QAAQ,EACR,SAAS,EACT,QAAQ,E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AqB,EACrB,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,eAAe,EACf,SAAS,EACT,YAAY,EACZ,oBAAoB,EACpB,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,gCAAgC,EAChC,oBAAoB,EACpB,mBAAmB,EACnB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,EACT,aAAa,GACd,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,kBAAkB,CAAA;AAExC,OAAO,EAAE,SAAS,EAAE,CAAA;AACpB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACnE,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC1C,YAAY,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AACvE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/wix-data-items-common",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Rimvydas Gimbutas",
@@ -32,7 +32,7 @@
32
32
  "@babel/runtime": "^7.26.0",
33
33
  "@types/kind-of": "^6.0.3",
34
34
  "@types/safe-json-stringify": "^1.1.5",
35
- "@wix/filter-builder": "1.0.84",
35
+ "@wix/filter-builder": "1.0.85",
36
36
  "kind-of": "^6.0.3",
37
37
  "safe-json-stringify": "^1.2.0"
38
38
  },
@@ -85,5 +85,5 @@
85
85
  "wallaby": {
86
86
  "autoDetect": true
87
87
  },
88
- "falconPackageHash": "d743652489d9de5935487924c26046a4b44113e439361974945742c5"
88
+ "falconPackageHash": "cb4b448adbc0e8d488ef37f04791ba848a299e16afceb070d7482691"
89
89
  }