@wix/wix-data-items-common 1.0.160 → 1.0.162

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/WixDataSearch.ts"],"sourcesContent":["import { WixDataResult } from './WixDataResult'\nimport { WixDataReadOptions } from './types'\nimport { WixDataFilter } from './WixDataFilter'\n\n/**\n * @builder\n * Represents a search operation to be performed on a Wix Data collection.\n * Allows for building complex search requests by specifying search expressions, modes, filters, sorting, and pagination.\n */\nexport interface WixDataSearch {\n /**\n * Specifies the text to search for in the collection.\n *\n * The `expression()` method sets the search query. Search terms are separated by whitespace.\n *\n * @param queryText - Text to search for across all fields in the collection.\n * @returns Current WixDataSearch object for method chaining.\n */\n expression(queryText: string): WixDataSearch\n\n /**\n * Enables fuzzy search for approximate text matching.\n *\n * The `fuzzy()` method enables fuzzy search, which allows for approximate matches of the search expression. When fuzzy search is enabled, the search will return results that closely match the search expression even if they don't exactly match.\n *\n * @returns The current WixDataSearch instance for method chaining.\n */\n fuzzy(): WixDataSearch\n\n /**\n * Sets the search mode to **AND** for expression terms.\n *\n * When in **AND** mode, all specified search term or filter conditions must be present for an item to be included in the results. For example, with expression \"red car\" in AND mode, only items that include both \"red\" and \"car\" are included in the results.\n *\n * @returns Current WixDataSearch object.\n */\n andMode(): WixDataSearch\n\n /**\n * Sets the search mode to **OR** for expression terms.\n *\n * When in **OR** mode, an item is included in the results if it contains any of the specified search terms in the expression.\n *\n * For example, with expression \"red car\" in **OR** mode, items that include either \"red\" or \"car\" (or both) are included in the results.\n *\n * @returns Current WixDataSearch object.\n */\n orMode(): WixDataSearch\n\n /**\n * *\n * Runs the search operation.\n *\n * The `run()` method searches the collection for the specified expression. It returns a Promise that resolves to a `WixDataResult` that contains the matching items and search metadata.\n *\n * Search operations are [eventually consistent](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency) and may not reflect recent changes.\n * @param options - Configuration options for building the search operation.\n * @returns A Promise that resolves to a WixDataResult containing the matching items and search metadata.\n */\n run(options?: WixDataReadOptions): Promise<WixDataResult>\n\n /**\n * Sorts search results by the specified fields in descending order.\n *\n * The `descending()` method refines the search to sort results in descending order of the specified fields.\n * If you specify more than one field, `descending()` sorts the results in descending order by each field 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 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.\n * Items that do not have a value for the specified sort property are ranked lowest.\n *\n * @public\n * @documentationMaturity preview\n * @param fields - Fields by which to sort results in descending order.\n * @requiredField fields\n * @returns The current WixDataSearch instance, refined with the specified sort order.\n */\n descending(...fields: string[]): WixDataSearch\n /**\n * @param fields - An array of fields to sort by in descending order.\n * @returns The current WixDataSearch instance, refined with the specified sort order.\n */\n descending(fields: string[]): WixDataSearch\n /**\n * @param fields - Fields used in the sort.\n * @returns The current WixDataSearch instance, refined with the specified sort order.\n */\n descending(...fields: any): WixDataSearch\n\n /**\n * Sorts search results by the specified fields in ascending order.\n *\n * The `ascending()` method refines the search to sort results in ascending order of the specified fields.\n * If you specify more than one field, `ascending()` sorts the results in ascending order by each field 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 *\n * @public\n * @documentationMaturity preview\n * @param fields - Fields by which to sort results in ascending order.\n * @requiredField fields\n * @returns The current WixDataSearch instance, refined with the specified sort order.\n */\n ascending(...fields: string[]): WixDataSearch\n /**\n * @param fields - An array of fields to sort by in ascending order.\n * @returns The current WixDataSearch instance, refined with the specified sort order.\n */\n ascending(fields: string[]): WixDataSearch\n /**\n * @param fields - Fields used in the sort.\n * @returns The current WixDataSearch instance, refined with the specified sort order.\n */\n ascending(...fields: any): WixDataSearch\n\n /**\n * Refines a search to match items whose specified field value equals the specified value.\n *\n * The `eq()` method refines the search to only match items where the value of the specified field equals the specified `value`. The method only matches values of the same type. For example, a number value stored 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 the field contains an array, `eq()` matches the item if at least one array element equals the specified `value`.\n *\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 Current WixDataSearch object, refined with the equality filter.\n */\n eq(field: string, value: any): WixDataSearch\n\n /**\n * Refines a search to match items whose specified property value does not equal the specified value.\n *\n * The `ne()` method refines this search 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 not match.\n * @requiredField value\n * @returns The current WixDataSearch instance, refined with the inequality filter.\n */\n ne(field: string, value: any): WixDataSearch\n\n /**\n * Refines a search to match items whose specified property value is greater than or equal to the specified\n * value.\n *\n * The `ge()` method refines this search 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 compare against.\n * @requiredField value\n * @returns The current WixDataSearch instance, refined with the 'greater than or equal' filter.\n */\n ge(field: string, value: string | number | Date): WixDataSearch\n\n /**\n * Refines a search to match items whose specified property value is greater than the specified value.\n *\n * The `gt()` method refines this search 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 compare against.\n * @requiredField value\n * @returns The current WixDataSearch instance, refined with the 'greater than' filter.\n */\n gt(field: string, value: string | number | Date): WixDataSearch\n\n /**\n * Refines a search to match items whose specified property value is less than or equal to the specified\n * value.\n *\n * The `le()` method refines this search 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 compare against.\n * @requiredField value\n * @returns The current WixDataSearch instance, refined with the 'less than or equal' filter.\n */\n le(field: string, value: string | number | Date): WixDataSearch\n\n /**\n * Refines a search to match items whose specified property value is less than the specified value.\n *\n * The `lt()` method refines this search 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 compare against.\n * @requiredField value\n * @returns The current WixDataSearch instance, refined with the 'less than' filter.\n */\n lt(field: string, value: string | number | Date): WixDataSearch\n\n /**\n * Refines a search to match items whose specified property has any value (is not null or undefined).\n *\n * The `isNotEmpty()` method refines this search 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 search filter.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for a non-empty value.\n * @requiredField field\n * @returns The current WixDataSearch instance, refined with the 'is not empty' filter.\n */\n isNotEmpty(field: string): WixDataSearch\n\n /**\n * Refines a search to match items whose specified property does not exist or does not have any value (is null or undefined).\n *\n * The `isEmpty()` method refines this search 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 not match the search filter.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for an empty or non-existent value.\n * @requiredField field\n * @returns The current WixDataSearch instance, refined with the 'is empty' filter.\n */\n isEmpty(field: string): WixDataSearch\n\n /**\n * Refines a search to match items whose specified property value starts with a specified string.\n *\n * The `startsWith()` method refines this search 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 - String to look for at the beginning of the specified property value.\n * @requiredField value\n * @returns The current `WixDataSearch` instance, refined with the 'starts with' filter.\n */\n startsWith(field: string, value: string): WixDataSearch\n\n /**\n * Refines a search to match items whose specified field value equals any of the specified values.\n *\n * The `hasSome()` method refines the search to only match items where the value of the specified field equals any of the specified values.\n *\n * Matching strings with `hasSome()` is case-sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the specified field contains an array, `hasSome()` matches if any of the elements in that array match any of the specified values.\n *\n * If the specified field contains multiple references, pass item IDs as the values. `hasSome()` matches if any of the multiple references match any of the specified ID values.\n *\n * You can specify multiple values to match by providing an array of 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 The current WixDataSearch instance, refined with the 'has some' filter.\n */\n hasSome(field: string, ...values: string[] | number[] | Date[]): WixDataSearch\n\n /**\n * Overload for `hasSome()`. Refines a search to match items whose specified property value equals any of the specified values.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the provided values.\n * @requiredField field\n * @param values - An array of values to match.\n * @requiredField values\n * @returns The current WixDataSearch instance, refined with the 'has some' filter.\n */\n hasSome(field: string, values: string[] | number[] | Date[]): WixDataSearch\n\n /**\n * Refines a search to match items whose specified property values equals all of the specified `value`\n * parameters.\n *\n * The `hasAll()` method refines this search 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. All specified values must be present.\n * @requiredField values\n * @returns The current WixDataSearch instance, refined with the 'has all' filter.\n */\n hasAll(field: string, ...values: string[] | number[] | Date[]): WixDataSearch\n\n /**\n * Overload for `hasAll()`. Refines a search to match items whose specified property values equals all of the specified values.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the provided values.\n * @requiredField field\n * @param values - An array of values to match. All values in the array must be present.\n * @requiredField values\n * @returns The current WixDataSearch instance, refined with the 'has all' filter.\n */\n hasAll(field: string, values: string[] | number[] | Date[]): WixDataSearch\n\n /**\n * Adds an `or` condition to the search filter.\n *\n * The `or()` method adds an inclusive `or` condition to this search filter. The search returns all the items that match the filter as defined up to the `or()` method, the items that match the filter passed to the `or()` method, and the items that match both.\n *\n * > **Note**: The `or()` method is designed to work with 2 or more filters. Used on its own, it might produce unexpected results.\n * @public\n * @documentationMaturity preview\n * @param filter - Filter to add to the initial filter as an `or` condition.\n * @requiredField filter\n * @returns The current WixDataSearch instance, refined with the 'or' condition.\n */\n or(filter: WixDataFilter): WixDataSearch\n\n /**\n * Adds an `and` condition to the search filter.\n *\n * The `and()` method adds an `and` condition to the search filter. A search with an `and` returns all the items that match the filter as defined up to the `and()` method, as well as the filter passed to the `and()` method.\n *\n * When chaining multiple filter methods to a search, an `and` condition is often assumed by default. For example, this search returns results whose status is active **and** age is greater than 25:\n *\n * ```javascript\n * wixData.search(\"myCollection\").expression(\"some text\").eq(\"status\", \"active\").gt(\"age\", 25);\n * ```\n *\n * The `and()` method is needed when performing compound filters. For example, the final search in this set of operations returns results whose status is either pending or rejected **and** age is either less than 25 or greater than 65:\n *\n * ```javascript\n * let statusFilter = wixData.filter().eq(\"status\", \"pending\").or(wixData.filter().eq(\"status\", \"rejected\"));\n *\n * let ageFilter = wixData.filter().lt(\"age\", 25).or(wixData.filter().gt(\"age\", 65));\n *\n * let finalSearch = wixData.search(\"myCollection\").expression(\"some text\").and(statusFilter).and(ageFilter);\n * ```\n *\n * > **Note**: The `and()` method is designed to work with 2 or more filters.\n *\n * @public\n * @documentationMaturity preview\n * @param filter - Filter to add to the initial search filter as an `and` condition.\n * @requiredField filter\n * @returns The current WixDataSearch instance, refined with the 'and' condition.\n */\n and(filter: WixDataFilter): WixDataSearch\n\n /**\n * Adds a `not` condition to the search filter.\n *\n * The `not()` method adds a `not` condition to the search filter. A search with a `not` returns all the items that match the filter as defined up to the `not()` method and don't match the filter passed to the `not()` method.\n *\n * If the search filter only contains a `not()` method, it returns all the items that don't match the filter specified to the 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 The current WixDataSearch instance, refined with the 'not' condition.\n */\n not(filter: WixDataFilter): WixDataSearch\n\n /**\n * Refines a search to match items whose specified property value is within a specified range.\n *\n * The `between()` method refines this search 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 (inclusive).\n * @requiredField rangeStart\n * @param rangeEnd - Ending value of the range to match (exclusive).\n * @requiredField rangeEnd\n * @returns The current WixDataSearch instance, refined with the 'between' filter.\n */\n between(\n field: string,\n rangeStart: string | number | Date,\n rangeEnd: string | number | Date\n ): WixDataSearch\n\n /**\n * Lists the fields to return in a search's results.\n *\n * The `fields()` method specifies which fields to return in the search 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 search behaves as follows:\n * - When no fields are specified, the search 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 The current `WixDataSearch` instance, configured to return specified fields.\n */\n fields(...fields: string[]): WixDataSearch\n\n /**\n * Limits the number of items the search returns.\n *\n * The `limit()` method defines the number of results a search returns in each\n * page. Only one page of results is retrieved at a time. The `next()`\n * and `prev()` methods of the `WixDataResult` object are used to\n * navigate the pages of a search result.\n *\n * By default, `limit` is set to `100`.\n *\n * The maximum value that `limit()` can accept is `1000`.\n *\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 The current `WixDataSearch` instance, refined with the specified limit.\n */\n limit(limitNumber: number): WixDataSearch\n\n /**\n * Sets the number of items to skip before returning search results.\n *\n * The `skip()` method defines the number of results to skip in the search\n * results before returning new search results.\n *\n * For example, if your search matches 50 items, 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 search results before returning the results.\n * @requiredField skipCount\n * @returns The current `WixDataSearch` instance, refined with the specified skip count.\n */\n skip(skipCount: number): WixDataSearch\n\n /**\n * Includes referenced items for the specified properties in a search's results.\n *\n * The `include()` method refines a search so that the items returned in the\n * search'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. Searching 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 searching 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 search will return an error if more than 50 items are returned, regardless\n * of any search 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 search is run\n * and the `partialIncludes` property of the returned `WixDataResult` is `true`.\n *\n * > **Note:** The `include()` method is not supported for [single-item collections](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection).\n *\n * @public\n * @documentationMaturity preview\n * @param fields - Fields for which to include referenced items.\n * @requiredField fields\n * @returns The current `WixDataSearch` instance, configured to include referenced items.\n */\n include(...fields: string[]): WixDataSearch\n\n /**\n * Overload for `include()`. Includes referenced items for the specified property in a search's results.\n * @public\n * @documentationMaturity preview\n * @param field - Field for which to include referenced items.\n * @param limit - Optional limit for the number of referenced items to include (behavior may vary).\n * @returns The current `WixDataSearch` instance.\n */\n include(field: string, limit?: number): WixDataSearch\n\n /**\n * Overload for `include()`. Includes referenced items for the specified properties in a search's results.\n * @public\n * @documentationMaturity preview\n * @param field1 - First field for which to include referenced items.\n * @param field2 - Second field for which to include referenced items.\n * @param limit - Optional limit for the number of referenced items to include (behavior may vary).\n * @returns The current `WixDataSearch` instance.\n */\n include(field1: string, field2: string, limit?: number): WixDataSearch\n\n /**\n * Overload for `include()`. Includes referenced items for the specified properties in a search's results.\n * @public\n * @documentationMaturity preview\n * @param field1 - First field.\n * @param field2 - Second field.\n * @param field3 - Third field.\n * @param limit - Optional limit.\n * @returns The current `WixDataSearch` instance.\n */\n include(\n field1: string,\n field2: string,\n field3: string,\n limit?: number\n ): WixDataSearch\n\n /**\n * Overload for `include()`. Includes referenced items for the specified properties in a search's results.\n * @public\n * @documentationMaturity preview\n * @param field1 - First field.\n * @param field2 - Second field.\n * @param field3 - Third field.\n * @param field4 - Fourth field.\n * @param limit - Optional limit.\n * @returns The current `WixDataSearch` instance.\n */\n include(\n field1: string,\n field2: string,\n field3: string,\n field4: string,\n limit?: number\n ): WixDataSearch\n\n /**\n * Overload for `include()`. Includes referenced items for the specified properties in a search's results.\n * @public\n * @documentationMaturity preview\n * @param field1 - First field.\n * @param field2 - Second field.\n * @param field3 - Third field.\n * @param field4 - Fourth field.\n * @param field5 - Fifth field.\n * @param limit - Optional limit.\n * @returns The current `WixDataSearch` instance.\n */\n include(\n field1: string,\n field2: string,\n field3: string,\n field4: string,\n field5: string,\n limit?: number\n ): WixDataSearch\n\n /**\n * Overload for `include()`. Includes referenced items for the specified properties in a search's results.\n * Allows specifying multiple field names and an optional limit.\n * @public\n * @documentationMaturity preview\n * @param fieldNamesAndLimit - An array of field names, optionally followed by a limit number.\n * @returns The current `WixDataSearch` instance.\n */\n include(...fieldNamesAndLimit: [...string[], number]): WixDataSearch\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../src/api/WixDataSearch.ts"],"sourcesContent":["import { WixDataResult } from './WixDataResult'\nimport { WixDataReadOptions } from './types'\nimport { WixDataFilter } from './WixDataFilter'\n\n/**\n * @builder\n * Represents a search operation to be performed on a Wix Data collection.\n * Allows for building complex search requests by specifying search expressions, modes, filters, sorting, and pagination.\n */\nexport interface WixDataSearch {\n /**\n * Specifies the text to search for in the collection.\n *\n * The `expression()` method sets the search query. Search terms are separated by whitespace.\n *\n * @param queryText - Text to search for in the collection.\n * @returns Refined WixDataSearch object.\n */\n expression(queryText: string): WixDataSearch\n\n /**\n * Enables fuzzy search for approximate text matching.\n *\n * The `fuzzy()` method enables fuzzy search. This allows for approximate matches that closely resemble the search expression even if they don't match exactly.\n *\n * @returns Refined WixDataSearch object.\n */\n fuzzy(): WixDataSearch\n\n /**\n * Sets the search mode to **AND** for expression terms.\n *\n * When in **AND** mode, an item must include all specified search terms, and meet all filter conditions, to be included in the results. For example, the search expression \"red car\" in **AND** mode only retrieves items that include both \"red\" and \"car\".\n *\n * @returns Refined WixDataSearch object.\n */\n andMode(): WixDataSearch\n\n /**\n * Sets the search mode to **OR** for expression terms.\n *\n * When in **OR** mode, an item must include at least one of the specified search terms to be included in the results. For example, the search expression \"red car\" in **OR** mode retrieves items that include \"red\", \"car\", or both.\n *\n * @returns Refined WixDataSearch object.\n */\n orMode(): WixDataSearch\n\n /**\n * Runs the search operation.\n *\n * The `run()` method searches the collection for the specified expression. It returns a Promise that resolves to a `WixDataResult` that contains the matching items and search metadata.\n *\n * Search operations are [eventually consistent](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency) and may not reflect recent changes.\n * @param options - Configuration options for building the search operation.\n * @returns Promise that resolves to a WixDataResult containing the matching items and search metadata.\n */\n run(options?: WixDataReadOptions): Promise<WixDataResult>\n\n /**\n * Sorts search results by the specified fields in descending order.\n *\n * The `descending()` method refines the search to sort results in descending order of the specified fields.\n * If you specify more than one field, `descending()` sorts the results in descending order by each field 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 before `\"XYZ\"`.\n * - **Reference**: Compares by the ID of the referenced item as a String.\n *\n * If a field 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 field are ranked lowest.\n *\n * @public\n * @documentationMaturity preview\n * @param fields - Fields by which to sort results in descending order.\n * @requiredField fields\n * @returns Refined WixDataSearch object.\n */\n descending(...fields: string[]): WixDataSearch\n /**\n * @param fields - Array of fields to sort by in descending order.\n * @returns Refined WixDataSearch object.\n */\n descending(fields: string[]): WixDataSearch\n /**\n * @param fields - Fields used in the sort.\n * @returns Refined WixDataSearch object.\n */\n descending(...fields: any): WixDataSearch\n\n /**\n * Sorts search results by the specified fields in ascending order.\n *\n * The `ascending()` method refines the search to sort results in ascending order of the specified fields.\n * If you specify more than one field, `ascending()` sorts the results in ascending order by each field 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 before `\"XYZ\"`.\n * - **Reference**: Compares by the ID of the referenced item as a String.\n *\n * If a field 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 field are ranked lowest.\n *\n * @public\n * @documentationMaturity preview\n * @param fields - Fields by which to sort results in ascending order.\n * @requiredField fields\n * @returns Refined WixDataSearch object.\n */\n ascending(...fields: string[]): WixDataSearch\n /**\n * @param fields - Array of fields to sort by in ascending order.\n * @returns Refined WixDataSearch object.\n */\n ascending(fields: string[]): WixDataSearch\n /**\n * @param fields - Fields used in the sort.\n * @returns Refined WixDataSearch object.\n */\n ascending(...fields: any): WixDataSearch\n\n /**\n * Refines a search to match items whose specified field value equals the specified value.\n *\n * The `eq()` method refines the search to only match items where the value of the specified field equals the specified `value`. It only matches values of the same type. For example, a number value stored 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 the field contains an array, `eq()` matches the item if at least one array element equals the specified `value`.\n *\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 WixDataSearch object.\n */\n eq(field: string, value: any): WixDataSearch\n\n /**\n * Refines a search to match items whose specified field value does not equal the specified value.\n *\n * The `ne()` method refines this search 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 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 not match.\n * @requiredField value\n * @returns Refined WixDataSearch object.\n */\n ne(field: string, value: any): WixDataSearch\n\n /**\n * Refines a search to match items whose specified field value is greater than or equal to the specified\n * value.\n *\n * The `ge()` method refines this search 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 types of fields 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 compare against.\n * @requiredField value\n * @returns Refined WixDataSearch object.\n */\n ge(field: string, value: string | number | Date): WixDataSearch\n\n /**\n * Refines a search to match items whose specified field value is greater than the specified value.\n *\n * The `gt()` method refines this search to only match 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 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 alphabetically and not numerically. Items that do not have a value for the specified field are ranked lowest.\n *\n * The following types of fields 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 compare against.\n * @requiredField value\n * @returns Refined WixDataSearch object.\n */\n gt(field: string, value: string | number | Date): WixDataSearch\n\n /**\n * Refines a search to match items whose specified field value is less than or equal to the specified\n * value.\n *\n * The `le()` method refines this search 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 types of fields 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 compare against.\n * @requiredField value\n * @returns Refined WixDataSearch object.\n */\n le(field: string, value: string | number | Date): WixDataSearch\n\n /**\n * Refines a search to match items whose specified field value is less than the specified value.\n *\n * The `lt()` method refines this search 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 types of fields 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 compare against.\n * @requiredField value\n * @returns Refined WixDataSearch object.\n */\n lt(field: string, value: string | number | Date): WixDataSearch\n\n /**\n * Refines a search to match items whose specified field has any value (is not null or undefined).\n *\n * The `isNotEmpty()` method refines this search 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 search filter.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for a non-empty value.\n * @requiredField field\n * @returns Refined WixDataSearch object.\n */\n isNotEmpty(field: string): WixDataSearch\n\n /**\n * Refines a search to match items whose specified field does not exist or does not have any value (is null or undefined).\n *\n * The `isEmpty()` method refines this search 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 not match the search filter.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for an empty or non-existent value.\n * @requiredField field\n * @returns Refined WixDataSearch object.\n */\n isEmpty(field: string): WixDataSearch\n\n /**\n * Refines a search to match items whose specified field value starts with a specified string.\n *\n * The `startsWith()` method refines this search to only match items where the value of the specified field starts with the specified `string`. Matching with `startsWith()` is case-sensitive, so searching for `\"Sun\"` does not retrieve an item that contains the text `\"sunshine\"`.\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 - String to look for at the beginning of the specified field value.\n * @requiredField value\n * @returns Refined WixDataSearch object.\n */\n startsWith(field: string, value: string): WixDataSearch\n\n /**\n * Refines a search to match items whose specified field value equals any of the specified values.\n *\n * The `hasSome()` method refines the search to only match items where the value of the specified field equals any of the specified values.\n *\n * Matching strings with `hasSome()` is case-sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the specified field contains an array, `hasSome()` matches if any of the elements in that array match any of the specified values.\n *\n * If the specified field contains multiple references, pass item IDs as the values. `hasSome()` matches if any of the multiple references match any of the specified ID values.\n *\n * You can specify multiple values to match by providing an array of String, Number, or Date types as the `values` 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 Refined WixDataSearch object.\n */\n hasSome(field: string, ...values: string[] | number[] | Date[]): WixDataSearch\n\n /**\n * Overload for `hasSome()`. Refines a search to match items whose specified field value equals any of the specified values.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the provided values.\n * @requiredField field\n * @param values - An array of values to match.\n * @requiredField values\n * @returns Refined WixDataSearch object.\n */\n hasSome(field: string, values: string[] | number[] | Date[]): WixDataSearch\n\n /**\n * Refines a search to match items whose specified field value equals all of the specified values.\n *\n * The `hasAll()` method refines this search 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 `values` 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. All specified values must be present.\n * @requiredField values\n * @returns Refined WixDataSearch object.\n */\n hasAll(field: string, ...values: string[] | number[] | Date[]): WixDataSearch\n\n /**\n * Overload for `hasAll()`. Refines a search to match items whose specified field values equals all of the specified values.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the provided values.\n * @requiredField field\n * @param values - Array of values to match. All values in the array must be present.\n * @requiredField values\n * @returns Refined WixDataSearch object.\n */\n hasAll(field: string, values: string[] | number[] | Date[]): WixDataSearch\n\n /**\n * Adds an `or` condition to the search filter.\n *\n * The `or()` method adds an inclusive `or` condition to this search filter. The search returns all the items that match the filter as defined up to the `or()` method, the items that match the filter passed to the `or()` method, and the items that match both.\n *\n * > **Note**: The `or()` method is designed to work with 2 or more filters. Used on its own, it might produce unexpected results.\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 WixDataSearch object.\n */\n or(filter: WixDataFilter): WixDataSearch\n\n /**\n * Adds an `and` condition to the search filter.\n *\n * The `and()` method adds an `and` condition to the search filter. A search with an `and` returns all the items that match the filter as defined up to the `and()` method, as well as the filter passed to the `and()` method.\n *\n * When chaining multiple filter methods to a search, an `and` condition is often assumed by default. For example, this search returns results whose status is active **and** age is greater than 25:\n *\n * ```javascript\n * items.search(\"myCollection\").expression(\"some text\").eq(\"status\", \"active\").gt(\"age\", 25);\n * ```\n *\n * The `and()` method is needed when performing compound filters. For example, the final search in this set of operations returns results whose status is either pending or rejected **and** age is either less than 25 or greater than 65:\n *\n * ```javascript\n * let statusFilter = items.filter().eq(\"status\", \"pending\").or(items.filter().eq(\"status\", \"rejected\"));\n *\n * let ageFilter = items.filter().lt(\"age\", 25).or(items.filter().gt(\"age\", 65));\n *\n * let finalSearch = items.search(\"myCollection\").expression(\"some text\").and(statusFilter).and(ageFilter);\n * ```\n *\n * > **Note**: The `and()` method is designed to work with 2 or more filters.\n *\n * @public\n * @documentationMaturity preview\n * @param filter - Filter to add to the initial search filter as an `and` condition.\n * @requiredField filter\n * @returns Refined WixDataSearch object.\n */\n and(filter: WixDataFilter): WixDataSearch\n\n /**\n * Adds a `not` condition to the search filter.\n *\n * The `not()` method adds a `not` condition to the search filter. A search with a `not` returns all the items that match the filter as defined up to the `not()` method and don't match the filter passed to the `not()` method.\n *\n * If the search filter only contains a `not()` method, it returns all the items that don't match the filter specified to the 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 WixDataSearch object.\n */\n not(filter: WixDataFilter): WixDataSearch\n\n /**\n * Refines a search to match items whose specified field value is within a specified range.\n *\n * The `between()` method refines this search to only match items where the value of the specified field 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 field 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 field are ranked lowest.\n *\n * The following types of fields 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 (inclusive).\n * @requiredField rangeStart\n * @param rangeEnd - Ending value of the range to match (exclusive).\n * @requiredField rangeEnd\n * @returns Refined WixDataSearch object.\n */\n between(\n field: string,\n rangeStart: string | number | Date,\n rangeEnd: string | number | Date\n ): WixDataSearch\n\n /**\n * Lists the fields to return in a search's results.\n *\n * The `fields()` method specifies which fields to return in the search results.\n *\n * You can use `include()` in conjunction with `fields()` to get referenced items.\n *\n * When `fields()` receives an empty or invalid field, the search behaves as follows:\n * - When no fields are specified, the search 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 - Fields to return.\n * @requiredField fields\n * @returns Refined WixDataSearch object.\n */\n fields(...fields: string[]): WixDataSearch\n\n /**\n * Limits the number of items the search returns.\n *\n * The `limit()` method defines the number of results a search returns in each\n * page. Only one page of results is retrieved at a time. The `next()`\n * and `prev()` methods of the `WixDataResult` object are used to\n * navigate the pages of a search result.\n *\n * By default, `limit` is set to `100`.\n *\n * The maximum value that `limit()` can accept is `1000`.\n *\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 Refined WixDataSearch object.\n */\n limit(limitNumber: number): WixDataSearch\n\n /**\n * Sets the number of items to skip before returning search results.\n *\n * The `skip()` method defines the number of results to skip in the search\n * results before returning new search results.\n *\n * For example, if your search matches 50 items, 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 search results before returning the results.\n * @requiredField skipCount\n * @returns Refined WixDataSearch object.\n */\n skip(skipCount: number): WixDataSearch\n\n /**\n * Includes referenced items for the specified fields in a search's results.\n *\n * The `include()` method refines a search so that the items returned in the\n * search's results include the full referenced items for the specified fields.\n *\n * For example, suppose you have a **books** collection with an **author** field that references an **authors** collection. Searching the **books** collection with an `include(\"author\")` returns the relevant book items and each item will include the full referenced author item in the book's `author` field.\n *\n * When searching 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 field with multiple references, the following limitations\n * apply:\n * - Only one field with multiple references can be included.\n * - The search will return an error if more than 50 items are returned, regardless\n * of any search 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 search is run\n * and the `partialIncludes` field of the returned `WixDataResult` is `true`.\n *\n * > **Note:** The `include()` method is not supported for [single-item collections](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection).\n *\n * @public\n * @documentationMaturity preview\n * @param fields - Fields for which to include referenced items.\n * @requiredField fields\n * @returns Refined WixDataSearch object.\n */\n include(...fields: string[]): WixDataSearch\n\n /**\n * Overload for `include()`. Includes referenced items for the specified field in a search's results.\n * @public\n * @documentationMaturity preview\n * @param field - Field for which to include referenced items.\n * @param limit - Optional limit for the number of referenced items to include (behavior may vary).\n * @returns Refined WixDataSearch object.\n */\n include(field: string, limit?: number): WixDataSearch\n\n /**\n * Overload for `include()`. Includes referenced items for the specified fields in a search's results.\n * @public\n * @documentationMaturity preview\n * @param field1 - First field for which to include referenced items.\n * @param field2 - Second field for which to include referenced items.\n * @param limit - Optional limit for the number of referenced items to include (behavior may vary).\n * @returns Refined WixDataSearch object.\n */\n include(field1: string, field2: string, limit?: number): WixDataSearch\n\n /**\n * Overload for `include()`. Includes referenced items for the specified fields in a search's results.\n * @public\n * @documentationMaturity preview\n * @param field1 - First field.\n * @param field2 - Second field.\n * @param field3 - Third field.\n * @param limit - Optional limit.\n * @returns Refined WixDataSearch object.\n */\n include(\n field1: string,\n field2: string,\n field3: string,\n limit?: number\n ): WixDataSearch\n\n /**\n * Overload for `include()`. Includes referenced items for the specified fields in a search's results.\n * @public\n * @documentationMaturity preview\n * @param field1 - First field.\n * @param field2 - Second field.\n * @param field3 - Third field.\n * @param field4 - Fourth field.\n * @param limit - Optional limit.\n * @returns Refined WixDataSearch object.\n */\n include(\n field1: string,\n field2: string,\n field3: string,\n field4: string,\n limit?: number\n ): WixDataSearch\n\n /**\n * Overload for `include()`. Includes referenced items for the specified fields in a search's results.\n * @public\n * @documentationMaturity preview\n * @param field1 - First field.\n * @param field2 - Second field.\n * @param field3 - Third field.\n * @param field4 - Fourth field.\n * @param field5 - Fifth field.\n * @param limit - Optional limit.\n * @returns Refined WixDataSearch object.\n */\n include(\n field1: string,\n field2: string,\n field3: string,\n field4: string,\n field5: string,\n limit?: number\n ): WixDataSearch\n\n /**\n * Overload for `include()`. Includes referenced items for the specified fields in a search's results.\n * Allows specifying multiple field names and an optional limit.\n * @public\n * @documentationMaturity preview\n * @param fieldNamesAndLimit - Array of field names, optionally followed by a limit number.\n * @returns Refined WixDataSearch object.\n */\n include(...fieldNamesAndLimit: [...string[], number]): WixDataSearch\n}\n"],"mappings":"","ignoreList":[]}
@@ -12,45 +12,42 @@ export interface WixDataSearch {
12
12
  *
13
13
  * The `expression()` method sets the search query. Search terms are separated by whitespace.
14
14
  *
15
- * @param queryText - Text to search for across all fields in the collection.
16
- * @returns Current WixDataSearch object for method chaining.
15
+ * @param queryText - Text to search for in the collection.
16
+ * @returns Refined WixDataSearch object.
17
17
  */
18
18
  expression(queryText: string): WixDataSearch;
19
19
  /**
20
20
  * Enables fuzzy search for approximate text matching.
21
21
  *
22
- * The `fuzzy()` method enables fuzzy search, which allows for approximate matches of the search expression. When fuzzy search is enabled, the search will return results that closely match the search expression even if they don't exactly match.
22
+ * The `fuzzy()` method enables fuzzy search. This allows for approximate matches that closely resemble the search expression even if they don't match exactly.
23
23
  *
24
- * @returns The current WixDataSearch instance for method chaining.
24
+ * @returns Refined WixDataSearch object.
25
25
  */
26
26
  fuzzy(): WixDataSearch;
27
27
  /**
28
28
  * Sets the search mode to **AND** for expression terms.
29
29
  *
30
- * When in **AND** mode, all specified search term or filter conditions must be present for an item to be included in the results. For example, with expression "red car" in AND mode, only items that include both "red" and "car" are included in the results.
30
+ * When in **AND** mode, an item must include all specified search terms, and meet all filter conditions, to be included in the results. For example, the search expression "red car" in **AND** mode only retrieves items that include both "red" and "car".
31
31
  *
32
- * @returns Current WixDataSearch object.
32
+ * @returns Refined WixDataSearch object.
33
33
  */
34
34
  andMode(): WixDataSearch;
35
35
  /**
36
36
  * Sets the search mode to **OR** for expression terms.
37
37
  *
38
- * When in **OR** mode, an item is included in the results if it contains any of the specified search terms in the expression.
38
+ * When in **OR** mode, an item must include at least one of the specified search terms to be included in the results. For example, the search expression "red car" in **OR** mode retrieves items that include "red", "car", or both.
39
39
  *
40
- * For example, with expression "red car" in **OR** mode, items that include either "red" or "car" (or both) are included in the results.
41
- *
42
- * @returns Current WixDataSearch object.
40
+ * @returns Refined WixDataSearch object.
43
41
  */
44
42
  orMode(): WixDataSearch;
45
43
  /**
46
- * *
47
44
  * Runs the search operation.
48
45
  *
49
46
  * The `run()` method searches the collection for the specified expression. It returns a Promise that resolves to a `WixDataResult` that contains the matching items and search metadata.
50
47
  *
51
48
  * Search operations are [eventually consistent](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency) and may not reflect recent changes.
52
49
  * @param options - Configuration options for building the search operation.
53
- * @returns A Promise that resolves to a WixDataResult containing the matching items and search metadata.
50
+ * @returns Promise that resolves to a WixDataResult containing the matching items and search metadata.
54
51
  */
55
52
  run(options?: WixDataReadOptions): Promise<WixDataResult>;
56
53
  /**
@@ -65,24 +62,24 @@ export interface WixDataSearch {
65
62
  * - **String**: Sorts lexicographically, so `"abc"` comes before `"XYZ"`.
66
63
  * - **Reference**: Compares by the ID of the referenced item as a String.
67
64
  *
68
- * If a property contains a number as a String, that value is sorted alphabetically and not numerically.
69
- * Items that do not have a value for the specified sort property are ranked lowest.
65
+ * If a field contains a number as a String, that value is sorted alphabetically and not numerically.
66
+ * Items that do not have a value for the specified sort field are ranked lowest.
70
67
  *
71
68
  * @public
72
69
  * @documentationMaturity preview
73
70
  * @param fields - Fields by which to sort results in descending order.
74
71
  * @requiredField fields
75
- * @returns The current WixDataSearch instance, refined with the specified sort order.
72
+ * @returns Refined WixDataSearch object.
76
73
  */
77
74
  descending(...fields: string[]): WixDataSearch;
78
75
  /**
79
- * @param fields - An array of fields to sort by in descending order.
80
- * @returns The current WixDataSearch instance, refined with the specified sort order.
76
+ * @param fields - Array of fields to sort by in descending order.
77
+ * @returns Refined WixDataSearch object.
81
78
  */
82
79
  descending(fields: string[]): WixDataSearch;
83
80
  /**
84
81
  * @param fields - Fields used in the sort.
85
- * @returns The current WixDataSearch instance, refined with the specified sort order.
82
+ * @returns Refined WixDataSearch object.
86
83
  */
87
84
  descending(...fields: any): WixDataSearch;
88
85
  /**
@@ -94,33 +91,33 @@ export interface WixDataSearch {
94
91
  * You can sort the following types:
95
92
  * - **Number**: Sorts numerically.
96
93
  * - **Date**: Sorts by date and time.
97
- * - **String**: Sorts lexicographically, so `"abc"` comes after `"XYZ"`.
94
+ * - **String**: Sorts lexicographically, so `"abc"` comes before `"XYZ"`.
98
95
  * - **Reference**: Compares by the ID of the referenced item as a String.
99
96
  *
100
- * If a property contains a number as a String, that value is sorted alphabetically and not numerically.
101
- * Items that do not have a value for the specified sort property are ranked lowest.
97
+ * If a field contains a number as a String, that value is sorted alphabetically and not numerically.
98
+ * Items that do not have a value for the specified sort field are ranked lowest.
102
99
  *
103
100
  * @public
104
101
  * @documentationMaturity preview
105
102
  * @param fields - Fields by which to sort results in ascending order.
106
103
  * @requiredField fields
107
- * @returns The current WixDataSearch instance, refined with the specified sort order.
104
+ * @returns Refined WixDataSearch object.
108
105
  */
109
106
  ascending(...fields: string[]): WixDataSearch;
110
107
  /**
111
- * @param fields - An array of fields to sort by in ascending order.
112
- * @returns The current WixDataSearch instance, refined with the specified sort order.
108
+ * @param fields - Array of fields to sort by in ascending order.
109
+ * @returns Refined WixDataSearch object.
113
110
  */
114
111
  ascending(fields: string[]): WixDataSearch;
115
112
  /**
116
113
  * @param fields - Fields used in the sort.
117
- * @returns The current WixDataSearch instance, refined with the specified sort order.
114
+ * @returns Refined WixDataSearch object.
118
115
  */
119
116
  ascending(...fields: any): WixDataSearch;
120
117
  /**
121
118
  * Refines a search to match items whose specified field value equals the specified value.
122
119
  *
123
- * The `eq()` method refines the search to only match items where the value of the specified field equals the specified `value`. The method only matches values of the same type. For example, a number value stored as a String type does not match the same number stored as a Number type.
120
+ * The `eq()` method refines the search to only match items where the value of the specified field equals the specified `value`. It only matches values of the same type. For example, a number value stored as a String type does not match the same number stored as a Number type.
124
121
  *
125
122
  * Matching strings with `eq()` is case-sensitive, so `"text"` is not equal to `"Text"`.
126
123
  *
@@ -132,47 +129,46 @@ export interface WixDataSearch {
132
129
  * @requiredField field
133
130
  * @param value - Value to match.
134
131
  * @requiredField value
135
- * @returns Current WixDataSearch object, refined with the equality filter.
132
+ * @returns Refined WixDataSearch object.
136
133
  */
137
134
  eq(field: string, value: any): WixDataSearch;
138
135
  /**
139
- * Refines a search to match items whose specified property value does not equal the specified value.
136
+ * Refines a search to match items whose specified field value does not equal the specified value.
140
137
  *
141
138
  * The `ne()` method refines this search to only
142
- * match items where the value of the specified property does not equal the specified `value`.
139
+ * match items where the value of the specified field does not equal the specified `value`.
143
140
  *
144
141
  * It only matches values of the same type. For example, a number value stored
145
142
  * as a String type is considered not equal to the same number stored as a Number type.
146
143
  *
147
- * Matching strings with `ne()` is case sensitive, so `"text"` is not equal to `"Text"`.
144
+ * Matching strings with `ne()` is case-sensitive, so `"text"` is not equal to `"Text"`.
148
145
  *
149
- * If the value of the `field` property is an array, `ne()` includes items
150
- * in which none of the elements of the array match the specified `value`.
146
+ * If the value of `field` is an array, `ne()` includes items in which none of the elements of the array match the specified `value`.
151
147
  * @public
152
148
  * @documentationMaturity preview
153
149
  * @param field - Field whose value is compared with `value`.
154
150
  * @requiredField field
155
151
  * @param value - Value to not match.
156
152
  * @requiredField value
157
- * @returns The current WixDataSearch instance, refined with the inequality filter.
153
+ * @returns Refined WixDataSearch object.
158
154
  */
159
155
  ne(field: string, value: any): WixDataSearch;
160
156
  /**
161
- * Refines a search to match items whose specified property value is greater than or equal to the specified
157
+ * Refines a search to match items whose specified field value is greater than or equal to the specified
162
158
  * value.
163
159
  *
164
160
  * The `ge()` method refines this search to only
165
- * match items where the value of the specified property is greater than or
161
+ * match items where the value of the specified field is greater than or
166
162
  * equal to the specified `value`.
167
163
  *
168
164
  * It only matches values of the same type. For example, a number value stored
169
165
  * as a String type does not match the same number stored as a Number type.
170
166
  *
171
- * If a property contains a number as a String, that value is compared
167
+ * If a field contains a number as a String, that value is compared
172
168
  * alphabetically and not numerically. Items that do not have a value for the
173
- * specified property are ranked lowest.
169
+ * specified field are ranked lowest.
174
170
  *
175
- * The following types of properties can be compared:
171
+ * The following types of fields can be compared:
176
172
  * - Number: Compares numerically.
177
173
  * - Date: Compares JavaScript Date objects.
178
174
  * - String: Compares lexicographically,
@@ -185,52 +181,48 @@ export interface WixDataSearch {
185
181
  * @requiredField field
186
182
  * @param value - Value to compare against.
187
183
  * @requiredField value
188
- * @returns The current WixDataSearch instance, refined with the 'greater than or equal' filter.
184
+ * @returns Refined WixDataSearch object.
189
185
  */
190
186
  ge(field: string, value: string | number | Date): WixDataSearch;
191
187
  /**
192
- * Refines a search to match items whose specified property value is greater than the specified value.
188
+ * Refines a search to match items whose specified field value is greater than the specified value.
193
189
  *
194
- * The `gt()` method refines this search to only match
195
- * items where the value of the specified property is greater than the specified `value`.
190
+ * The `gt()` method refines this search to only match items where the value of the specified field is greater than the specified `value`.
196
191
  *
197
- * It only matches values of the same type. For example, a number value stored
198
- * as a String type does not match the same number stored as a Number type.
192
+ * It only matches values of the same type. For example, a number value stored as a String type does not match the same number stored as a Number type.
199
193
  *
200
- * If a property contains a number as a String, that value is compared
201
- * alphabetically and not numerically. Items that do not have a value for the
202
- * specified property are ranked lowest.
194
+ * If a field contains a number as a String, that value is compared alphabetically and not numerically. Items that do not have a value for the specified field are ranked lowest.
203
195
  *
204
- * The following types of properties can be compared:
196
+ * The following types of fields can be compared:
205
197
  * - Number: Compares numerically.
206
198
  * - Date: Compares JavaScript Date objects.
207
199
  * - String: Compares lexicographically, so `"text"` is greater than `"Text"`.
208
200
  * - Reference: Compares by the ID of the referenced item as a String.
209
201
  * @public
210
202
  * @documentationMaturity preview
211
- * @param field - Field whose value is compared with `value`.
203
+ * @param field - field whose value is compared with `value`.
212
204
  * @requiredField field
213
205
  * @param value - Value to compare against.
214
206
  * @requiredField value
215
- * @returns The current WixDataSearch instance, refined with the 'greater than' filter.
207
+ * @returns Refined WixDataSearch object.
216
208
  */
217
209
  gt(field: string, value: string | number | Date): WixDataSearch;
218
210
  /**
219
- * Refines a search to match items whose specified property value is less than or equal to the specified
211
+ * Refines a search to match items whose specified field value is less than or equal to the specified
220
212
  * value.
221
213
  *
222
214
  * The `le()` method refines this search to only match
223
- * items where the value of the specified property is less than or equal to the
215
+ * items where the value of the specified field is less than or equal to the
224
216
  * specified `value`.
225
217
  *
226
218
  * It only matches values of the same type. For example, a number value stored
227
219
  * as a String type does not match the same number stored as a Number type.
228
220
  *
229
- * If a property contains a number as a String, that value is compared
221
+ * If a field contains a number as a String, that value is compared
230
222
  * alphabetically and not numerically. Items that do not have a value for the
231
- * specified property are ranked lowest.
223
+ * specified field are ranked lowest.
232
224
  *
233
- * The following types of properties can be compared:
225
+ * The following types of fields can be compared:
234
226
  * - Number: Compares numerically.
235
227
  * - Date: Compares JavaScript Date objects.
236
228
  * - String: Compares lexicographically,
@@ -243,23 +235,23 @@ export interface WixDataSearch {
243
235
  * @requiredField field
244
236
  * @param value - Value to compare against.
245
237
  * @requiredField value
246
- * @returns The current WixDataSearch instance, refined with the 'less than or equal' filter.
238
+ * @returns Refined WixDataSearch object.
247
239
  */
248
240
  le(field: string, value: string | number | Date): WixDataSearch;
249
241
  /**
250
- * Refines a search to match items whose specified property value is less than the specified value.
242
+ * Refines a search to match items whose specified field value is less than the specified value.
251
243
  *
252
244
  * The `lt()` method refines this search to only match
253
- * items where the value of the specified property is less than the specified `value`.
245
+ * items where the value of the specified field is less than the specified `value`.
254
246
  *
255
247
  * It only matches values of the same type. For example, a number value stored
256
248
  * as a String type does not match the same number stored as a Number type.
257
249
  *
258
- * If a property contains a number as a String, that value is compared
250
+ * If a field contains a number as a String, that value is compared
259
251
  * alphabetically and not numerically. Items that do not have a value for the
260
- * specified property are ranked lowest.
252
+ * specified field are ranked lowest.
261
253
  *
262
- * The following types of properties can be compared:
254
+ * The following types of fields can be compared:
263
255
  * - Number: Compares numerically.
264
256
  * - Date: Compares JavaScript Date objects.
265
257
  * - String: Compares lexicographically, so `"Text"` is less than `"text"`.
@@ -270,57 +262,54 @@ export interface WixDataSearch {
270
262
  * @requiredField field
271
263
  * @param value - Value to compare against.
272
264
  * @requiredField value
273
- * @returns The current WixDataSearch instance, refined with the 'less than' filter.
265
+ * @returns Refined WixDataSearch object.
274
266
  */
275
267
  lt(field: string, value: string | number | Date): WixDataSearch;
276
268
  /**
277
- * Refines a search to match items whose specified property has any value (is not null or undefined).
269
+ * Refines a search to match items whose specified field has any value (is not null or undefined).
278
270
  *
279
271
  * The `isNotEmpty()` method refines this search to only match items where the
280
- * value of the specified property is not `null` or `undefined`.
272
+ * value of the specified field is not `null` or `undefined`.
281
273
  *
282
- * If the property contains any value at all for a given item, including the
274
+ * If the field contains any value at all for a given item, including the
283
275
  * empty string or an invalid value, that item will match the search filter.
284
276
  * @public
285
277
  * @documentationMaturity preview
286
278
  * @param field - Field in which to check for a non-empty value.
287
279
  * @requiredField field
288
- * @returns The current WixDataSearch instance, refined with the 'is not empty' filter.
280
+ * @returns Refined WixDataSearch object.
289
281
  */
290
282
  isNotEmpty(field: string): WixDataSearch;
291
283
  /**
292
- * Refines a search to match items whose specified property does not exist or does not have any value (is null or undefined).
284
+ * Refines a search to match items whose specified field does not exist or does not have any value (is null or undefined).
293
285
  *
294
286
  * The `isEmpty()` method refines this search to only match items where the
295
- * value of the specified property is `null` or `undefined` or the property does
287
+ * value of the specified field is `null` or `undefined` or the field does
296
288
  * not exist.
297
289
  *
298
- * If the property contains any value at all for a given item, including the
290
+ * If the field contains any value at all for a given item, including the
299
291
  * empty string or an invalid value, that item will not match the search filter.
300
292
  * @public
301
293
  * @documentationMaturity preview
302
294
  * @param field - Field in which to check for an empty or non-existent value.
303
295
  * @requiredField field
304
- * @returns The current WixDataSearch instance, refined with the 'is empty' filter.
296
+ * @returns Refined WixDataSearch object.
305
297
  */
306
298
  isEmpty(field: string): WixDataSearch;
307
299
  /**
308
- * Refines a search to match items whose specified property value starts with a specified string.
300
+ * Refines a search to match items whose specified field value starts with a specified string.
309
301
  *
310
- * The `startsWith()` method refines this search to
311
- * only match items where the value of the specified property starts with the
312
- * defined `string`. Matching with `startsWith()` is not case sensitive, so `"TEXT"` starts
313
- * with `"tex"`.
302
+ * The `startsWith()` method refines this search to only match items where the value of the specified field starts with the specified `string`. Matching with `startsWith()` is case-sensitive, so searching for `"Sun"` does not retrieve an item that contains the text `"sunshine"`.
314
303
  *
315
- * You can only use `startsWith()` with a property whose value is a String or Reference.
304
+ * You can only use `startsWith()` with a field whose value is a String or Reference.
316
305
  * When using a Reference, `startsWith()` matches by the ID of the referenced item as Strings.
317
306
  * @public
318
307
  * @documentationMaturity preview
319
308
  * @param field - Field whose value is compared with the `value` parameter.
320
309
  * @requiredField field
321
- * @param value - String to look for at the beginning of the specified property value.
310
+ * @param value - String to look for at the beginning of the specified field value.
322
311
  * @requiredField value
323
- * @returns The current `WixDataSearch` instance, refined with the 'starts with' filter.
312
+ * @returns Refined WixDataSearch object.
324
313
  */
325
314
  startsWith(field: string, value: string): WixDataSearch;
326
315
  /**
@@ -334,61 +323,60 @@ export interface WixDataSearch {
334
323
  *
335
324
  * If the specified field contains multiple references, pass item IDs as the values. `hasSome()` matches if any of the multiple references match any of the specified ID values.
336
325
  *
337
- * You can specify multiple values to match by providing an array of String, Number, or Date types as the `value` parameters.
326
+ * You can specify multiple values to match by providing an array of String, Number, or Date types as the `values` parameters.
338
327
  * @public
339
328
  * @documentationMaturity preview
340
- * @param field - Field whose value is compared with `value`.
329
+ * @param field - Field whose value is compared with `values`.
341
330
  * @requiredField field
342
331
  * @param values - Values to match.
343
332
  * @requiredField values
344
- * @returns The current WixDataSearch instance, refined with the 'has some' filter.
333
+ * @returns Refined WixDataSearch object.
345
334
  */
346
335
  hasSome(field: string, ...values: string[] | number[] | Date[]): WixDataSearch;
347
336
  /**
348
- * Overload for `hasSome()`. Refines a search to match items whose specified property value equals any of the specified values.
337
+ * Overload for `hasSome()`. Refines a search to match items whose specified field value equals any of the specified values.
349
338
  * @public
350
339
  * @documentationMaturity preview
351
340
  * @param field - Field whose value is compared with the provided values.
352
341
  * @requiredField field
353
342
  * @param values - An array of values to match.
354
343
  * @requiredField values
355
- * @returns The current WixDataSearch instance, refined with the 'has some' filter.
344
+ * @returns Refined WixDataSearch object.
356
345
  */
357
346
  hasSome(field: string, values: string[] | number[] | Date[]): WixDataSearch;
358
347
  /**
359
- * Refines a search to match items whose specified property values equals all of the specified `value`
360
- * parameters.
348
+ * Refines a search to match items whose specified field value equals all of the specified values.
361
349
  *
362
350
  * The `hasAll()` method refines this search to
363
- * only match items where the value of the specified property equals all of
351
+ * only match items where the value of the specified field equals all of
364
352
  * the specified values.
365
353
  *
366
- * Matching strings with `hasAll()` is case sensitive, so `"text"` is not equal to `"Text"`.
354
+ * Matching strings with `hasAll()` is case-sensitive, so `"text"` is not equal to `"Text"`.
367
355
  *
368
- * If the value of the specified property is an array, `hasAll()` will match
356
+ * If the value of the specified field is an array, `hasAll()` will match
369
357
  * if there is a match in the elements of that array for all of the specified
370
358
  * values.
371
359
  *
372
360
  * You can specify a list of values to match by providing an array of
373
- * String, Number, or Date types as the `value` parameters.
361
+ * String, Number, or Date types as the `values` parameters.
374
362
  * @public
375
363
  * @documentationMaturity preview
376
- * @param field - Field whose value is compared with `value`.
364
+ * @param field - Field whose value is compared with `values`.
377
365
  * @requiredField field
378
366
  * @param values - Values to match. All specified values must be present.
379
367
  * @requiredField values
380
- * @returns The current WixDataSearch instance, refined with the 'has all' filter.
368
+ * @returns Refined WixDataSearch object.
381
369
  */
382
370
  hasAll(field: string, ...values: string[] | number[] | Date[]): WixDataSearch;
383
371
  /**
384
- * Overload for `hasAll()`. Refines a search to match items whose specified property values equals all of the specified values.
372
+ * Overload for `hasAll()`. Refines a search to match items whose specified field values equals all of the specified values.
385
373
  * @public
386
374
  * @documentationMaturity preview
387
375
  * @param field - Field whose value is compared with the provided values.
388
376
  * @requiredField field
389
- * @param values - An array of values to match. All values in the array must be present.
377
+ * @param values - Array of values to match. All values in the array must be present.
390
378
  * @requiredField values
391
- * @returns The current WixDataSearch instance, refined with the 'has all' filter.
379
+ * @returns Refined WixDataSearch object.
392
380
  */
393
381
  hasAll(field: string, values: string[] | number[] | Date[]): WixDataSearch;
394
382
  /**
@@ -401,7 +389,7 @@ export interface WixDataSearch {
401
389
  * @documentationMaturity preview
402
390
  * @param filter - Filter to add to the initial filter as an `or` condition.
403
391
  * @requiredField filter
404
- * @returns The current WixDataSearch instance, refined with the 'or' condition.
392
+ * @returns Refined WixDataSearch object.
405
393
  */
406
394
  or(filter: WixDataFilter): WixDataSearch;
407
395
  /**
@@ -412,17 +400,17 @@ export interface WixDataSearch {
412
400
  * When chaining multiple filter methods to a search, an `and` condition is often assumed by default. For example, this search returns results whose status is active **and** age is greater than 25:
413
401
  *
414
402
  * ```javascript
415
- * wixData.search("myCollection").expression("some text").eq("status", "active").gt("age", 25);
403
+ * items.search("myCollection").expression("some text").eq("status", "active").gt("age", 25);
416
404
  * ```
417
405
  *
418
406
  * The `and()` method is needed when performing compound filters. For example, the final search in this set of operations returns results whose status is either pending or rejected **and** age is either less than 25 or greater than 65:
419
407
  *
420
408
  * ```javascript
421
- * let statusFilter = wixData.filter().eq("status", "pending").or(wixData.filter().eq("status", "rejected"));
409
+ * let statusFilter = items.filter().eq("status", "pending").or(items.filter().eq("status", "rejected"));
422
410
  *
423
- * let ageFilter = wixData.filter().lt("age", 25).or(wixData.filter().gt("age", 65));
411
+ * let ageFilter = items.filter().lt("age", 25).or(items.filter().gt("age", 65));
424
412
  *
425
- * let finalSearch = wixData.search("myCollection").expression("some text").and(statusFilter).and(ageFilter);
413
+ * let finalSearch = items.search("myCollection").expression("some text").and(statusFilter).and(ageFilter);
426
414
  * ```
427
415
  *
428
416
  * > **Note**: The `and()` method is designed to work with 2 or more filters.
@@ -431,7 +419,7 @@ export interface WixDataSearch {
431
419
  * @documentationMaturity preview
432
420
  * @param filter - Filter to add to the initial search filter as an `and` condition.
433
421
  * @requiredField filter
434
- * @returns The current WixDataSearch instance, refined with the 'and' condition.
422
+ * @returns Refined WixDataSearch object.
435
423
  */
436
424
  and(filter: WixDataFilter): WixDataSearch;
437
425
  /**
@@ -445,22 +433,22 @@ export interface WixDataSearch {
445
433
  * @documentationMaturity preview
446
434
  * @param filter - Filter to add to the initial filter as a `not` condition.
447
435
  * @requiredField filter
448
- * @returns The current WixDataSearch instance, refined with the 'not' condition.
436
+ * @returns Refined WixDataSearch object.
449
437
  */
450
438
  not(filter: WixDataFilter): WixDataSearch;
451
439
  /**
452
- * Refines a search to match items whose specified property value is within a specified range.
440
+ * Refines a search to match items whose specified field value is within a specified range.
453
441
  *
454
- * The `between()` method refines this search to only match items where the value of the specified property is
442
+ * The `between()` method refines this search to only match items where the value of the specified field is
455
443
  * greater than or equal to `rangeStart` and less than `rangeEnd`.
456
444
  *
457
445
  * It only matches values of the same type. For example, a number value stored as a String type does not match the
458
446
  * same number stored as a Number type.
459
447
  *
460
- * If a property contains a number as a String, that value is compared alphabetically and not numerically. Items
461
- * that do not have a value for the specified property are ranked lowest.
448
+ * If a field contains a number as a String, that value is compared alphabetically and not numerically. Items
449
+ * that do not have a value for the specified field are ranked lowest.
462
450
  *
463
- * The following types of properties can be compared:
451
+ * The following types of fields can be compared:
464
452
  * - Number: Compares numerically.
465
453
  * - Date: Compares JavaScript Date objects.
466
454
  * - String: Compares lexicographically, so
@@ -474,7 +462,7 @@ export interface WixDataSearch {
474
462
  * @requiredField rangeStart
475
463
  * @param rangeEnd - Ending value of the range to match (exclusive).
476
464
  * @requiredField rangeEnd
477
- * @returns The current WixDataSearch instance, refined with the 'between' filter.
465
+ * @returns Refined WixDataSearch object.
478
466
  */
479
467
  between(field: string, rangeStart: string | number | Date, rangeEnd: string | number | Date): WixDataSearch;
480
468
  /**
@@ -484,15 +472,15 @@ export interface WixDataSearch {
484
472
  *
485
473
  * You can use `include()` in conjunction with `fields()` to get referenced items.
486
474
  *
487
- * When `fields()` receives an empty or invalid property, the search behaves as follows:
475
+ * When `fields()` receives an empty or invalid field, the search behaves as follows:
488
476
  * - When no fields are specified, the search returns all fields.
489
477
  * - When multiple fields are specified but some are invalid, invalid fields are ignored and valid fields are returned.
490
478
  * - When only invalid fields are specified, only the default `_id` field is returned.
491
479
  * @public
492
480
  * @documentationMaturity preview
493
- * @param fields - Properties to return.
481
+ * @param fields - Fields to return.
494
482
  * @requiredField fields
495
- * @returns The current `WixDataSearch` instance, configured to return specified fields.
483
+ * @returns Refined WixDataSearch object.
496
484
  */
497
485
  fields(...fields: string[]): WixDataSearch;
498
486
  /**
@@ -511,7 +499,7 @@ export interface WixDataSearch {
511
499
  * @documentationMaturity preview
512
500
  * @param limitNumber - Number of items to return, which is also the `pageSize` of the results object.
513
501
  * @requiredField limitNumber
514
- * @returns The current `WixDataSearch` instance, refined with the specified limit.
502
+ * @returns Refined WixDataSearch object.
515
503
  */
516
504
  limit(limitNumber: number): WixDataSearch;
517
505
  /**
@@ -529,20 +517,16 @@ export interface WixDataSearch {
529
517
  * @documentationMaturity preview
530
518
  * @param skipCount - Number of items to skip in the search results before returning the results.
531
519
  * @requiredField skipCount
532
- * @returns The current `WixDataSearch` instance, refined with the specified skip count.
520
+ * @returns Refined WixDataSearch object.
533
521
  */
534
522
  skip(skipCount: number): WixDataSearch;
535
523
  /**
536
- * Includes referenced items for the specified properties in a search's results.
524
+ * Includes referenced items for the specified fields in a search's results.
537
525
  *
538
526
  * The `include()` method refines a search so that the items returned in the
539
- * search's results include the full referenced items for the specified properties.
527
+ * search's results include the full referenced items for the specified fields.
540
528
  *
541
- * For example, suppose you have a **books** collection with an **author**
542
- * field that references an **authors** collection. Searching the **books**
543
- * collection with an `include("author")` returns the relevant book items
544
- * and each item will include the full referenced author item in the book's
545
- * `author` property.
529
+ * For example, suppose you have a **books** collection with an **author** field that references an **authors** collection. Searching the **books** collection with an `include("author")` returns the relevant book items and each item will include the full referenced author item in the book's `author` field.
546
530
  *
547
531
  * When searching a collection that contains a reference field without using the
548
532
  * `include()` method:
@@ -551,14 +535,14 @@ export interface WixDataSearch {
551
535
  * - Multiple reference field: returned items do not contain the multiple
552
536
  * reference field at all.
553
537
  *
554
- * When including a property with multiple references, the following limitations
538
+ * When including a field with multiple references, the following limitations
555
539
  * apply:
556
- * - Only one property with multiple references can be included.
540
+ * - Only one field with multiple references can be included.
557
541
  * - The search will return an error if more than 50 items are returned, regardless
558
542
  * of any search limit set using the `limit()` method.
559
543
  * - Each returned item can include up to 50 referenced items. If there are more
560
544
  * than 50 referenced items, only 50 are returned when the search is run
561
- * and the `partialIncludes` property of the returned `WixDataResult` is `true`.
545
+ * and the `partialIncludes` field of the returned `WixDataResult` is `true`.
562
546
  *
563
547
  * > **Note:** The `include()` method is not supported for [single-item collections](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection).
564
548
  *
@@ -566,41 +550,41 @@ export interface WixDataSearch {
566
550
  * @documentationMaturity preview
567
551
  * @param fields - Fields for which to include referenced items.
568
552
  * @requiredField fields
569
- * @returns The current `WixDataSearch` instance, configured to include referenced items.
553
+ * @returns Refined WixDataSearch object.
570
554
  */
571
555
  include(...fields: string[]): WixDataSearch;
572
556
  /**
573
- * Overload for `include()`. Includes referenced items for the specified property in a search's results.
557
+ * Overload for `include()`. Includes referenced items for the specified field in a search's results.
574
558
  * @public
575
559
  * @documentationMaturity preview
576
560
  * @param field - Field for which to include referenced items.
577
561
  * @param limit - Optional limit for the number of referenced items to include (behavior may vary).
578
- * @returns The current `WixDataSearch` instance.
562
+ * @returns Refined WixDataSearch object.
579
563
  */
580
564
  include(field: string, limit?: number): WixDataSearch;
581
565
  /**
582
- * Overload for `include()`. Includes referenced items for the specified properties in a search's results.
566
+ * Overload for `include()`. Includes referenced items for the specified fields in a search's results.
583
567
  * @public
584
568
  * @documentationMaturity preview
585
569
  * @param field1 - First field for which to include referenced items.
586
570
  * @param field2 - Second field for which to include referenced items.
587
571
  * @param limit - Optional limit for the number of referenced items to include (behavior may vary).
588
- * @returns The current `WixDataSearch` instance.
572
+ * @returns Refined WixDataSearch object.
589
573
  */
590
574
  include(field1: string, field2: string, limit?: number): WixDataSearch;
591
575
  /**
592
- * Overload for `include()`. Includes referenced items for the specified properties in a search's results.
576
+ * Overload for `include()`. Includes referenced items for the specified fields in a search's results.
593
577
  * @public
594
578
  * @documentationMaturity preview
595
579
  * @param field1 - First field.
596
580
  * @param field2 - Second field.
597
581
  * @param field3 - Third field.
598
582
  * @param limit - Optional limit.
599
- * @returns The current `WixDataSearch` instance.
583
+ * @returns Refined WixDataSearch object.
600
584
  */
601
585
  include(field1: string, field2: string, field3: string, limit?: number): WixDataSearch;
602
586
  /**
603
- * Overload for `include()`. Includes referenced items for the specified properties in a search's results.
587
+ * Overload for `include()`. Includes referenced items for the specified fields in a search's results.
604
588
  * @public
605
589
  * @documentationMaturity preview
606
590
  * @param field1 - First field.
@@ -608,11 +592,11 @@ export interface WixDataSearch {
608
592
  * @param field3 - Third field.
609
593
  * @param field4 - Fourth field.
610
594
  * @param limit - Optional limit.
611
- * @returns The current `WixDataSearch` instance.
595
+ * @returns Refined WixDataSearch object.
612
596
  */
613
597
  include(field1: string, field2: string, field3: string, field4: string, limit?: number): WixDataSearch;
614
598
  /**
615
- * Overload for `include()`. Includes referenced items for the specified properties in a search's results.
599
+ * Overload for `include()`. Includes referenced items for the specified fields in a search's results.
616
600
  * @public
617
601
  * @documentationMaturity preview
618
602
  * @param field1 - First field.
@@ -621,16 +605,16 @@ export interface WixDataSearch {
621
605
  * @param field4 - Fourth field.
622
606
  * @param field5 - Fifth field.
623
607
  * @param limit - Optional limit.
624
- * @returns The current `WixDataSearch` instance.
608
+ * @returns Refined WixDataSearch object.
625
609
  */
626
610
  include(field1: string, field2: string, field3: string, field4: string, field5: string, limit?: number): WixDataSearch;
627
611
  /**
628
- * Overload for `include()`. Includes referenced items for the specified properties in a search's results.
612
+ * Overload for `include()`. Includes referenced items for the specified fields in a search's results.
629
613
  * Allows specifying multiple field names and an optional limit.
630
614
  * @public
631
615
  * @documentationMaturity preview
632
- * @param fieldNamesAndLimit - An array of field names, optionally followed by a limit number.
633
- * @returns The current `WixDataSearch` instance.
616
+ * @param fieldNamesAndLimit - Array of field names, optionally followed by a limit number.
617
+ * @returns Refined WixDataSearch object.
634
618
  */
635
619
  include(...fieldNamesAndLimit: [...string[], number]): WixDataSearch;
636
620
  }
@@ -1 +1 @@
1
- {"version":3,"file":"WixDataSearch.d.ts","sourceRoot":"","sources":["../../../src/api/WixDataSearch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;OAOG;IACH,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,CAAA;IAE5C;;;;;;OAMG;IACH,KAAK,IAAI,aAAa,CAAA;IAEtB;;;;;;OAMG;IACH,OAAO,IAAI,aAAa,CAAA;IAExB;;;;;;;;OAQG;IACH,MAAM,IAAI,aAAa,CAAA;IAEvB;;;;;;;;;OASG;IACH,GAAG,CAAC,O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;;;;;;;;;OAgBG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,CAAA;IAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,OAAO,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAA;IAE3C;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,aAAa,CAAA;IAErD;;;;;;;;OAQG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,aAAa,CAAA;IAEtE;;;;;;;;;OASG;IACH,OAAO,CACL,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,GACb,aAAa,CAAA;IAEhB;;;;;;;;;;OAUG;IACH,OAAO,CACL,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,GACb,aAAa,CAAA;IAEhB;;;;;;;;;;;OAWG;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,aAAa,CAAA;IAEhB;;;;;;;OAOG;IACH,OAAO,CAAC,GAAG,kBAAkB,EAAE,CAAC,GAAG,MAAM,EAAE,EAAE,MAAM,CAAC,GAAG,aAAa,CAAA;CACrE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/wix-data-items-common",
3
- "version": "1.0.160",
3
+ "version": "1.0.162",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Rimvydas Gimbutas",
@@ -85,5 +85,5 @@
85
85
  "wallaby": {
86
86
  "autoDetect": true
87
87
  },
88
- "falconPackageHash": "8b421f8c9aa2e27b3b8965795a17a01dd691d3388de8977232045a1e"
88
+ "falconPackageHash": "3bf14352d7a7f1ecab4a8739435139f4e5100c598b90f8464670d225"
89
89
  }