@wix/wix-data-items-common 1.0.294 → 1.0.295
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/WixDataSearchBuilder.js +20 -0
- package/dist/cjs/api/WixDataSearchBuilder.js.map +1 -0
- package/dist/cjs/api/index.js +4 -1
- package/dist/cjs/api/index.js.map +1 -1
- package/dist/cjs/api/types.js.map +1 -1
- package/dist/esm/api/WixDataSearchBuilder.js +5 -0
- package/dist/esm/api/WixDataSearchBuilder.js.map +1 -0
- package/dist/esm/api/index.js +1 -0
- package/dist/esm/api/index.js.map +1 -1
- package/dist/types/api/WixDataSearchBuilder.d.ts +26 -0
- package/dist/types/api/WixDataSearchBuilder.d.ts.map +1 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/index.d.ts.map +1 -1
- package/dist/types/api/types.d.ts +3 -3
- package/dist/types/api/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.SearchParams = exports.SearchBuilder = void 0;
|
|
5
|
+
var _searchBuilderUtils = require("@wix/sdk-runtime/search-builder-utils");
|
|
6
|
+
/**
|
|
7
|
+
* WixData SearchSpec - allows searching/sorting on any string field
|
|
8
|
+
* since WixData collections are dynamic and don't have a fixed schema.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* WixData SearchBuilder type.
|
|
13
|
+
* Omits withAggregation and withTimeZone which are not supported by WixData search.
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const searchUtils = (0, _searchBuilderUtils.createSearchUtils)();
|
|
18
|
+
const SearchBuilder = exports.SearchBuilder = searchUtils.SearchBuilder;
|
|
19
|
+
const SearchParams = exports.SearchParams = searchUtils.SearchParams;
|
|
20
|
+
//# sourceMappingURL=WixDataSearchBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_searchBuilderUtils","require","searchUtils","createSearchUtils","SearchBuilder","exports","SearchParams"],"sources":["../../../src/api/WixDataSearchBuilder.ts"],"sourcesContent":["import { createSearchUtils } from '@wix/sdk-runtime/search-builder-utils'\nimport type {\n SearchSpec,\n SearchBuilder as SDKSearchBuilder,\n SearchRequest,\n} from '@wix/sdk-types'\nimport type { WixDataItem } from './types'\n\n/**\n * WixData SearchSpec - allows searching/sorting on any string field\n * since WixData collections are dynamic and don't have a fixed schema.\n */\ninterface WixDataSearchSpec extends SearchSpec {\n wql: [\n {\n fields: string[]\n sort: 'BOTH'\n }\n ]\n paging: 'offset' | 'cursor'\n}\n\ntype WixDataSearchRequest = SearchRequest<WixDataItem, WixDataSearchSpec>\n\n/**\n * WixData SearchBuilder type.\n * Omits withAggregation and withTimeZone which are not supported by WixData search.\n * @internal\n */\nexport type WixDataSearchBuilder = Omit<\n SDKSearchBuilder<WixDataItem, WixDataSearchSpec, WixDataSearchRequest>,\n 'withAggregation' | 'withTimeZone'\n>\n\nconst searchUtils = createSearchUtils<WixDataItem, WixDataSearchSpec>()\n\nexport const SearchBuilder: () => WixDataSearchBuilder =\n searchUtils.SearchBuilder\nexport const SearchParams = searchUtils.SearchParams\n"],"mappings":";;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AAQA;AACA;AACA;AACA;;AAaA;AACA;AACA;AACA;AACA;;AAMA,MAAMC,WAAW,GAAG,IAAAC,qCAAiB,EAAiC,CAAC;AAEhE,MAAMC,aAAyC,GAAAC,OAAA,CAAAD,aAAA,GACpDF,WAAW,CAACE,aAAa;AACpB,MAAME,YAAY,GAAAD,OAAA,CAAAC,YAAA,GAAGJ,WAAW,CAACI,YAAY","ignoreList":[]}
|
package/dist/cjs/api/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.stages = exports.pipelineBuilder = exports.expressions = exports.WixDataUpdateOptions = exports.WixDataSearchRequest = exports.WixDataSearch = exports.WixDataSaveOptions = exports.WixDataResult = exports.WixDataRemoveOptions = exports.WixDataReference = exports.WixDataReadWithProjectionOptions = exports.WixDataReadOptions = exports.WixDataQuerySpec = exports.WixDataQueryRequest = exports.WixDataQueryReferencedOptions = exports.WixDataQueryOptions = exports.WixDataQueryBuilder = exports.WixDataQuery = exports.WixDataPatchOptions = exports.WixDataPatch = exports.WixDataOptions = exports.WixDataItem = exports.WixDataInsertOptions = exports.WixDataGetOptions = exports.WixDataFilter = exports.WixDataDistinctOptions = exports.WixDataDirectSearchOptions = exports.WixDataDirectQueryOptions = exports.WixDataCountOptions = exports.WixDataBulkUpdateOptions = exports.WixDataBulkResult = exports.WixDataBulkRemoveOptions = exports.WixDataBulkPatchOptions = exports.WixDataBulkPatch = exports.WixDataBulkError = exports.WixDataApi = exports.WixDataAggregatePipelineStages = exports.WixDataAggregatePipelineExpressions = exports.WixDataAggregateOptions = exports.WixDataAggregate = exports.WithIncludeFieldGroupsOption = exports.UnwindStage = exports.ToUpperExpression = exports.ToLowerExpression = exports.TextExpression = exports.SumExpression = exports.SubtractExpression = exports.SubstringExpression = exports.StringifyExpression = exports.SortStage = exports.Sort = exports.SkipStage = exports.QueryValidator = exports.QueryBuilder = exports.QueryBase = exports.ProjectStage = exports.PipelineStage = exports.PipelineBuilder = exports.ObjectToArrayStage = exports.NumericExpression = exports.MultiplyExpression = exports.ModExpression = exports.LimitStage = exports.LengthExpression = exports.GroupStage = exports.FloorExpression = exports.FilterStage = exports.Filter = exports.FieldExpression = exports.DivideExpression = exports.ConcatExpression = exports.CeilExpression = exports.AddExpression = exports.AbsExpression = void 0;
|
|
4
|
+
exports.stages = exports.pipelineBuilder = exports.expressions = exports.WixDataUpdateOptions = exports.WixDataSearchRequest = exports.WixDataSearch = exports.WixDataSaveOptions = exports.WixDataResult = exports.WixDataRemoveOptions = exports.WixDataReference = exports.WixDataReadWithProjectionOptions = exports.WixDataReadOptions = exports.WixDataQuerySpec = exports.WixDataQueryRequest = exports.WixDataQueryReferencedOptions = exports.WixDataQueryOptions = exports.WixDataQueryBuilder = exports.WixDataQuery = exports.WixDataPatchOptions = exports.WixDataPatch = exports.WixDataOptions = exports.WixDataItem = exports.WixDataInsertOptions = exports.WixDataGetOptions = exports.WixDataFilter = exports.WixDataDistinctOptions = exports.WixDataDirectSearchOptions = exports.WixDataDirectQueryOptions = exports.WixDataCountOptions = exports.WixDataBulkUpdateOptions = exports.WixDataBulkResult = exports.WixDataBulkRemoveOptions = exports.WixDataBulkPatchOptions = exports.WixDataBulkPatch = exports.WixDataBulkError = exports.WixDataApi = exports.WixDataAggregatePipelineStages = exports.WixDataAggregatePipelineExpressions = exports.WixDataAggregateOptions = exports.WixDataAggregate = exports.WithIncludeFieldGroupsOption = exports.UnwindStage = exports.ToUpperExpression = exports.ToLowerExpression = exports.TextExpression = exports.SumExpression = exports.SubtractExpression = exports.SubstringExpression = exports.StringifyExpression = exports.SortStage = exports.Sort = exports.SkipStage = exports.SearchParams = exports.SearchBuilder = exports.QueryValidator = exports.QueryBuilder = exports.QueryBase = exports.ProjectStage = exports.PipelineStage = exports.PipelineBuilder = exports.ObjectToArrayStage = exports.NumericExpression = exports.MultiplyExpression = exports.ModExpression = exports.LimitStage = exports.LengthExpression = exports.GroupStage = exports.FloorExpression = exports.FilterStage = exports.Filter = exports.FieldExpression = exports.DivideExpression = exports.ConcatExpression = exports.CeilExpression = exports.AddExpression = exports.AbsExpression = void 0;
|
|
5
5
|
var _WixDataQuery = require("./WixDataQuery");
|
|
6
6
|
exports.WixDataQuery = _WixDataQuery.WixDataQuery;
|
|
7
7
|
var _WixDataSearch = require("./WixDataSearch");
|
|
@@ -77,6 +77,9 @@ exports.QueryBuilder = _WixDataQueryBuilder.QueryBuilder;
|
|
|
77
77
|
exports.Sort = _WixDataQueryBuilder.Sort;
|
|
78
78
|
exports.Filter = _WixDataQueryBuilder.Filter;
|
|
79
79
|
exports.WixDataQueryBuilder = _WixDataQueryBuilder.WixDataQueryBuilder;
|
|
80
|
+
var _WixDataSearchBuilder = require("./WixDataSearchBuilder");
|
|
81
|
+
exports.SearchBuilder = _WixDataSearchBuilder.SearchBuilder;
|
|
82
|
+
exports.SearchParams = _WixDataSearchBuilder.SearchParams;
|
|
80
83
|
var _expressions = require("./expressions/expressions");
|
|
81
84
|
exports.expressions = _expressions.expressions;
|
|
82
85
|
exports.WixDataAggregatePipelineExpressions = _expressions.WixDataAggregatePipelineExpressions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_WixDataQuery","require","exports","WixDataQuery","_WixDataSearch","WixDataSearch","_WixDataApi","WixDataApi","_WixDataResult","WixDataResult","_QueryValidator","QueryValidator","_WixDataAggregate","WixDataAggregate","_QueryBase","QueryBase","_WixDataPatch","WixDataPatch","WixDataBulkPatch","_WixDataFilter","WixDataFilter","_types","WixDataOptions","WixDataReadOptions","WixDataReadWithProjectionOptions","WithIncludeFieldGroupsOption","WixDataGetOptions","WixDataUpdateOptions","WixDataPatchOptions","WixDataQueryOptions","WixDataDirectQueryOptions","WixDataQueryRequest","WixDataQuerySpec","WixDataItem","WixDataReference","WixDataBulkError","WixDataSaveOptions","WixDataBulkPatchOptions","WixDataBulkUpdateOptions","WixDataBulkRemoveOptions","WixDataInsertOptions","WixDataBulkResult","WixDataQueryReferencedOptions","WixDataAggregateOptions","WixDataRemoveOptions","WixDataDistinctOptions","WixDataCountOptions","WixDataSearchRequest","WixDataDirectSearchOptions","_stages","stages","PipelineStage","WixDataAggregatePipelineStages","_FilterStage","FilterStage","_ProjectStage","ProjectStage","_GroupStage","GroupStage","_UnwindStage","UnwindStage","_SortStage","SortStage","_LimitStage","LimitStage","_SkipStage","SkipStage","_ObjectToArrayStage","ObjectToArrayStage","_PipelineBuilder","PipelineBuilder","pipelineBuilder","_WixDataQueryBuilder","QueryBuilder","Sort","Filter","WixDataQueryBuilder","_expressions","expressions","WixDataAggregatePipelineExpressions","_Expression","FieldExpression","TextExpression","NumericExpression","AddExpression","SubtractExpression","MultiplyExpression","DivideExpression","SumExpression","AbsExpression","ModExpression","FloorExpression","CeilExpression","ConcatExpression","StringifyExpression","ToLowerExpression","ToUpperExpression","SubstringExpression","LengthExpression"],"sources":["../../../src/api/index.ts"],"sourcesContent":["export { WixDataQuery } from './WixDataQuery'\nexport { WixDataSearch } from './WixDataSearch'\nexport { WixDataApi } from './WixDataApi'\nexport { WixDataResult } from './WixDataResult'\nexport { QueryValidator } from './QueryValidator'\nexport { WixDataAggregate } from './WixDataAggregate'\nexport { QueryBase } from './QueryBase'\nexport { WixDataPatch, WixDataBulkPatch } from './WixDataPatch'\nexport { WixDataFilter } from './WixDataFilter'\nexport {\n WixDataOptions,\n WixDataReadOptions,\n WixDataReadWithProjectionOptions,\n WithIncludeFieldGroupsOption,\n WixDataGetOptions,\n WixDataUpdateOptions,\n WixDataPatchOptions,\n WixDataQueryOptions,\n WixDataDirectQueryOptions,\n WixDataQueryRequest,\n WixDataQuerySpec,\n WixDataItem,\n WixDataReference,\n WixDataBulkError,\n WixDataSaveOptions,\n WixDataBulkPatchOptions,\n WixDataBulkUpdateOptions,\n WixDataBulkRemoveOptions,\n WixDataInsertOptions,\n WixDataBulkResult,\n WixDataQueryReferencedOptions,\n WixDataAggregateOptions,\n WixDataRemoveOptions,\n WixDataDistinctOptions,\n WixDataCountOptions,\n WixDataSearchRequest,\n WixDataDirectSearchOptions,\n} from './types'\nexport type { WixDataItemOrId } from './types'\nexport {\n stages,\n PipelineStage,\n WixDataAggregatePipelineStages,\n} from './stages/stages'\nexport { FilterStage } from './stages/FilterStage'\nexport { ProjectStage } from './stages/ProjectStage'\nexport { GroupStage } from './stages/GroupStage'\nexport { UnwindStage } from './stages/UnwindStage'\nexport { SortStage } from './stages/SortStage'\nexport { LimitStage } from './stages/LimitStage'\nexport { SkipStage } from './stages/SkipStage'\nexport { ObjectToArrayStage } from './stages/ObjectToArrayStage'\nexport { PipelineBuilder, pipelineBuilder } from './PipelineBuilder'\nexport {\n QueryBuilder,\n Sort,\n Filter,\n WixDataQueryBuilder,\n} from './WixDataQueryBuilder'\nexport {\n expressions,\n WixDataAggregatePipelineExpressions,\n} from './expressions/expressions'\nexport {\n FieldExpression,\n TextExpression,\n NumericExpression,\n AddExpression,\n SubtractExpression,\n MultiplyExpression,\n DivideExpression,\n SumExpression,\n AbsExpression,\n ModExpression,\n FloorExpression,\n CeilExpression,\n ConcatExpression,\n StringifyExpression,\n ToLowerExpression,\n ToUpperExpression,\n SubstringExpression,\n LengthExpression,\n} from './expressions/Expression'\n"],"mappings":";;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAA6CC,OAAA,CAAAC,YAAA,GAAAH,aAAA,CAAAG,YAAA;AAC7C,IAAAC,cAAA,GAAAH,OAAA;AAA+CC,OAAA,CAAAG,aAAA,GAAAD,cAAA,CAAAC,aAAA;AAC/C,IAAAC,WAAA,GAAAL,OAAA;AAAyCC,OAAA,CAAAK,UAAA,GAAAD,WAAA,CAAAC,UAAA;AACzC,IAAAC,cAAA,GAAAP,OAAA;AAA+CC,OAAA,CAAAO,aAAA,GAAAD,cAAA,CAAAC,aAAA;AAC/C,IAAAC,eAAA,GAAAT,OAAA;AAAiDC,OAAA,CAAAS,cAAA,GAAAD,eAAA,CAAAC,cAAA;AACjD,IAAAC,iBAAA,GAAAX,OAAA;AAAqDC,OAAA,CAAAW,gBAAA,GAAAD,iBAAA,CAAAC,gBAAA;AACrD,IAAAC,UAAA,GAAAb,OAAA;AAAuCC,OAAA,CAAAa,SAAA,GAAAD,UAAA,CAAAC,SAAA;AACvC,IAAAC,aAAA,GAAAf,OAAA;AAA+DC,OAAA,CAAAe,YAAA,GAAAD,aAAA,CAAAC,YAAA;AAAAf,OAAA,CAAAgB,gBAAA,GAAAF,aAAA,CAAAE,gBAAA;AAC/D,IAAAC,cAAA,GAAAlB,OAAA;AAA+CC,OAAA,CAAAkB,aAAA,GAA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AAC9C,IAAAC,mBAAA,GAAAlE,OAAA;AAAgEC,OAAA,CAAAkE,kBAAA,GAAAD,mBAAA,CAAAC,kBAAA;AAChE,IAAAC,gBAAA,GAAApE,OAAA;AAAoEC,OAAA,CAAAoE,eAAA,GAAAD,gBAAA,CAAAC,eAAA;AAAApE,OAAA,CAAAqE,eAAA,GAAAF,gBAAA,CAAAE,eAAA;AACpE,IAAAC,oBAAA,GAAAvE,OAAA;AAK8BC,OAAA,CAAAuE,YAAA,GAAAD,oBAAA,CAAAC,YAAA;AAAAvE,OAAA,CAAAwE,IAAA,GAAAF,oBAAA,CAAAE,IAAA;AAAAxE,OAAA,CAAAyE,MAAA,GAAAH,oBAAA,CAAAG,MAAA;AAAAzE,OAAA,CAAA0E,mBAAA,GAAAJ,oBAAA,CAAAI,mBAAA;AAC9B,IAAAC,
|
|
1
|
+
{"version":3,"names":["_WixDataQuery","require","exports","WixDataQuery","_WixDataSearch","WixDataSearch","_WixDataApi","WixDataApi","_WixDataResult","WixDataResult","_QueryValidator","QueryValidator","_WixDataAggregate","WixDataAggregate","_QueryBase","QueryBase","_WixDataPatch","WixDataPatch","WixDataBulkPatch","_WixDataFilter","WixDataFilter","_types","WixDataOptions","WixDataReadOptions","WixDataReadWithProjectionOptions","WithIncludeFieldGroupsOption","WixDataGetOptions","WixDataUpdateOptions","WixDataPatchOptions","WixDataQueryOptions","WixDataDirectQueryOptions","WixDataQueryRequest","WixDataQuerySpec","WixDataItem","WixDataReference","WixDataBulkError","WixDataSaveOptions","WixDataBulkPatchOptions","WixDataBulkUpdateOptions","WixDataBulkRemoveOptions","WixDataInsertOptions","WixDataBulkResult","WixDataQueryReferencedOptions","WixDataAggregateOptions","WixDataRemoveOptions","WixDataDistinctOptions","WixDataCountOptions","WixDataSearchRequest","WixDataDirectSearchOptions","_stages","stages","PipelineStage","WixDataAggregatePipelineStages","_FilterStage","FilterStage","_ProjectStage","ProjectStage","_GroupStage","GroupStage","_UnwindStage","UnwindStage","_SortStage","SortStage","_LimitStage","LimitStage","_SkipStage","SkipStage","_ObjectToArrayStage","ObjectToArrayStage","_PipelineBuilder","PipelineBuilder","pipelineBuilder","_WixDataQueryBuilder","QueryBuilder","Sort","Filter","WixDataQueryBuilder","_WixDataSearchBuilder","SearchBuilder","SearchParams","_expressions","expressions","WixDataAggregatePipelineExpressions","_Expression","FieldExpression","TextExpression","NumericExpression","AddExpression","SubtractExpression","MultiplyExpression","DivideExpression","SumExpression","AbsExpression","ModExpression","FloorExpression","CeilExpression","ConcatExpression","StringifyExpression","ToLowerExpression","ToUpperExpression","SubstringExpression","LengthExpression"],"sources":["../../../src/api/index.ts"],"sourcesContent":["export { WixDataQuery } from './WixDataQuery'\nexport { WixDataSearch } from './WixDataSearch'\nexport { WixDataApi } from './WixDataApi'\nexport { WixDataResult } from './WixDataResult'\nexport { QueryValidator } from './QueryValidator'\nexport { WixDataAggregate } from './WixDataAggregate'\nexport { QueryBase } from './QueryBase'\nexport { WixDataPatch, WixDataBulkPatch } from './WixDataPatch'\nexport { WixDataFilter } from './WixDataFilter'\nexport {\n WixDataOptions,\n WixDataReadOptions,\n WixDataReadWithProjectionOptions,\n WithIncludeFieldGroupsOption,\n WixDataGetOptions,\n WixDataUpdateOptions,\n WixDataPatchOptions,\n WixDataQueryOptions,\n WixDataDirectQueryOptions,\n WixDataQueryRequest,\n WixDataQuerySpec,\n WixDataItem,\n WixDataReference,\n WixDataBulkError,\n WixDataSaveOptions,\n WixDataBulkPatchOptions,\n WixDataBulkUpdateOptions,\n WixDataBulkRemoveOptions,\n WixDataInsertOptions,\n WixDataBulkResult,\n WixDataQueryReferencedOptions,\n WixDataAggregateOptions,\n WixDataRemoveOptions,\n WixDataDistinctOptions,\n WixDataCountOptions,\n WixDataSearchRequest,\n WixDataDirectSearchOptions,\n} from './types'\nexport type { WixDataItemOrId } from './types'\nexport {\n stages,\n PipelineStage,\n WixDataAggregatePipelineStages,\n} from './stages/stages'\nexport { FilterStage } from './stages/FilterStage'\nexport { ProjectStage } from './stages/ProjectStage'\nexport { GroupStage } from './stages/GroupStage'\nexport { UnwindStage } from './stages/UnwindStage'\nexport { SortStage } from './stages/SortStage'\nexport { LimitStage } from './stages/LimitStage'\nexport { SkipStage } from './stages/SkipStage'\nexport { ObjectToArrayStage } from './stages/ObjectToArrayStage'\nexport { PipelineBuilder, pipelineBuilder } from './PipelineBuilder'\nexport {\n QueryBuilder,\n Sort,\n Filter,\n WixDataQueryBuilder,\n} from './WixDataQueryBuilder'\nexport { SearchBuilder, SearchParams } from './WixDataSearchBuilder'\nexport {\n expressions,\n WixDataAggregatePipelineExpressions,\n} from './expressions/expressions'\nexport {\n FieldExpression,\n TextExpression,\n NumericExpression,\n AddExpression,\n SubtractExpression,\n MultiplyExpression,\n DivideExpression,\n SumExpression,\n AbsExpression,\n ModExpression,\n FloorExpression,\n CeilExpression,\n ConcatExpression,\n StringifyExpression,\n ToLowerExpression,\n ToUpperExpression,\n SubstringExpression,\n LengthExpression,\n} from './expressions/Expression'\n"],"mappings":";;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAA6CC,OAAA,CAAAC,YAAA,GAAAH,aAAA,CAAAG,YAAA;AAC7C,IAAAC,cAAA,GAAAH,OAAA;AAA+CC,OAAA,CAAAG,aAAA,GAAAD,cAAA,CAAAC,aAAA;AAC/C,IAAAC,WAAA,GAAAL,OAAA;AAAyCC,OAAA,CAAAK,UAAA,GAAAD,WAAA,CAAAC,UAAA;AACzC,IAAAC,cAAA,GAAAP,OAAA;AAA+CC,OAAA,CAAAO,aAAA,GAAAD,cAAA,CAAAC,aAAA;AAC/C,IAAAC,eAAA,GAAAT,OAAA;AAAiDC,OAAA,CAAAS,cAAA,GAAAD,eAAA,CAAAC,cAAA;AACjD,IAAAC,iBAAA,GAAAX,OAAA;AAAqDC,OAAA,CAAAW,gBAAA,GAAAD,iBAAA,CAAAC,gBAAA;AACrD,IAAAC,UAAA,GAAAb,OAAA;AAAuCC,OAAA,CAAAa,SAAA,GAAAD,UAA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AAApF,OAAA,CAAAqF,aAAA,GAAAJ,WAAA,CAAAI,aAAA;AAAArF,OAAA,CAAAsF,kBAAA,GAAAL,WAAA,CAAAK,kBAAA;AAAAtF,OAAA,CAAAuF,kBAAA,GAAAN,WAAA,CAAAM,kBAAA;AAAAvF,OAAA,CAAAwF,gBAAA,GAAAP,WAAA,CAAAO,gBAAA;AAAAxF,OAAA,CAAAyF,aAAA,GAAAR,WAAA,CAAAQ,aAAA;AAAAzF,OAAA,CAAA0F,aAAA,GAAAT,WAAA,CAAAS,aAAA;AAAA1F,OAAA,CAAA2F,aAAA,GAAAV,WAAA,CAAAU,aAAA;AAAA3F,OAAA,CAAA4F,eAAA,GAAAX,WAAA,CAAAW,eAAA;AAAA5F,OAAA,CAAA6F,cAAA,GAAAZ,WAAA,CAAAY,cAAA;AAAA7F,OAAA,CAAA8F,gBAAA,GAAAb,WAAA,CAAAa,gBAAA;AAAA9F,OAAA,CAAA+F,mBAAA,GAAAd,WAAA,CAAAc,mBAAA;AAAA/F,OAAA,CAAAgG,iBAAA,GAAAf,WAAA,CAAAe,iBAAA;AAAAhG,OAAA,CAAAiG,iBAAA,GAAAhB,WAAA,CAAAgB,iBAAA;AAAAjG,OAAA,CAAAkG,mBAAA,GAAAjB,WAAA,CAAAiB,mBAAA;AAAAlG,OAAA,CAAAmG,gBAAA,GAAAlB,WAAA,CAAAkB,gBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../../src/api/types.ts"],"sourcesContent":["import type { QueryRequest as SDKQueryRequest, QuerySpec } from '@wix/sdk-types'\nimport type { SortOrder } from '../types/data-item-types'\nimport { WixDataFilter } from './WixDataFilter'\n\nexport interface BaseOptions {\n /**\n * Prevents hooks from running for the operation. Can only be used in the [backend code of a Wix site](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/about-the-site-backend).\n *\n * Default: `false`.\n */\n suppressHooks?: boolean\n\n /**\n * When `true`, operations include draft items. Read operations include draft items in their response, and write operations modify draft items.\n *\n * Default: `false`.\n */\n showDrafts?: boolean\n}\n\nexport interface WithAppOptions {\n /**\n * Options for [querying Wix app collections](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-app-collections/querying-wix-app-collections).\n */\n appOptions?: Record<string, any>\n}\n\n/**\n * Options for including referenced items in results.\n */\nexport interface IncludeReferencesOptions {\n /**\n * Reference fields to resolve in the results. When specified, the referenced items\n * are included in the response for the given fields.\n *\n * Each entry identifies a reference `field` by name and an optional `limit` that caps the number\n * of referenced items returned per queried item (relevant for multi-reference fields).\n */\n includeReferences?: { field: string; limit?: number }[]\n}\n\nexport interface WixDataRemoveOptions extends WixDataOptions {\n /**\n * If provided, item will be updated only if condition is met.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataBulkPatchOptions extends WixDataOptions {\n /**\n * If provided, only items matching condition will be patched.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataOptions extends BaseOptions, WithAppOptions {}\n\nexport interface WixDataReadOptions extends WixDataOptions, WithAppOptions {\n /**\n * Language to translate result text into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n * If provided, the result text is returned in the specified language. If not provided, the result text is not translated.\n *\n * > **Note:** Translation for the specified language must be enabled for the collection in [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).\n *\n */\n language?: string\n\n /**\n * When `true`, reads data from the primary database instance. This decreases performance but ensures data retrieved is\n * up-to-date even immediately after an update. Learn more about [Wix Data and eventual consistency](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency).\n */\n consistentRead?: boolean\n}\n\n/**\n * Options for standalone count queries.\n * @internal\n */\nexport interface WixDataCountOptions extends WixDataReadOptions {\n filter?: Record<string, any>\n}\n\nexport interface WixDataReadWithProjectionOptions\n extends WixDataReadOptions,\n ProjectionOptions,\n IncludeReferencesOptions {}\n\nexport interface WithIncludeFieldGroupsOption {\n /**\n * Requests conditional fields. Currently used in App Collections.\n * Please refer to app collection documentation for a list of valid values.\n */\n includeFieldGroups?: string[]\n}\n\nexport interface WixDataGetOptions\n extends WixDataReadWithProjectionOptions,\n WithIncludeFieldGroupsOption {}\n\nexport interface WixDataSaveOptions extends WixDataOptions {\n /**\n * If true, referenced items are included.\n * @internal\n */\n includeReferences?: boolean\n}\n\nexport interface WixDataInsertOptions extends WixDataOptions {\n /**\n * If true, referenced items are included.\n * @internal\n */\n includeReferences?: boolean\n}\n\nexport interface WixDataUpdateOptions extends WixDataOptions {\n /**\n * If true, referenced items are included.\n * @internal\n */\n includeReferences?: boolean\n /**\n * If provided, item will be updated only if condition is met.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataBulkUpdateOptions extends WixDataOptions {\n /**\n * If provided, only items matching condition will be updated.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataBulkRemoveOptions extends WixDataOptions {\n /**\n * If provided, only items matching condition will be removed.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataPatchOptions extends BaseOptions {\n /**\n * If provided, item will be patched only if condition is met.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataAggregateOptions extends WixDataQueryOptions {}\n\n/**\n * Options for standalone distinct field value queries.\n * @internal\n */\nexport interface WixDataDistinctOptions extends WixDataQueryOptions {\n filter?: Record<string, any>\n order?: SortOrder\n paging?: { limit?: number; offset?: number }\n cursorPaging?: { cursor?: string; limit?: number }\n}\n\n/**\n * WixData query specification.\n * Since WixData collections are dynamic, we allow any string field.\n * @internal\n */\nexport interface WixDataQuerySpec extends QuerySpec {\n wql: [\n {\n fields: string[]\n sort: 'BOTH'\n }\n ]\n paging: 'offset'\n}\n\n/**\n * Request object for direct query execution.\n * Extends the SDK's QueryRequest with WixData-specific fields.\n * Use this with `wixData.query(collectionName, queryRequest)` for one-shot queries.\n * @internal\n */\nexport interface WixDataQueryRequest\n extends Omit<SDKQueryRequest<WixDataItem, WixDataQuerySpec>, 'filter'> {\n /**\n * Filter object. Supports operators like `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`,\n * `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.\n *\n * Example:\n * ```js\n * { status: 'active', age: { $gt: 25 } }\n * ```\n */\n filter?: Record<string, any>\n\n /**\n * Cursor-based paging. Use this as an alternative to offset paging.\n *\n * Example:\n * ```js\n * { limit: 10, cursor: 'abc123' }\n * ```\n */\n cursorPaging?: {\n /** Maximum number of items to return. */\n limit?: number\n /** Cursor token pointing to a page of results. */\n cursor?: string\n }\n}\n\nexport interface WixDataQueryOptions extends WixDataReadOptions {\n /**\n * When `true`, the query results include a `totalCount` and `totalPages` properties containing the totals of items\n * matching query. Requesting total count slows down the query.\n *\n * Default: `false`\n */\n returnTotalCount?: boolean\n}\n\n/**\n * Options for direct query execution.\n * @internal\n */\nexport interface WixDataDirectQueryOptions\n extends WixDataQueryOptions,\n IncludeReferencesOptions {\n /**\n * Requests conditional fields. Currently used in App Collections.\n * Please refer to app collection documentation for a list of valid values.\n */\n includeFieldGroups?: string[]\n}\n\n/**\n * Request object for direct search execution.\n * Matches the shape produced by `SearchBuilder().build()` so it can be passed directly.\n * Use this with `wixData.search(collectionName, searchRequest)` for direct search execution.\n * @internal\n */\nexport interface WixDataSearchRequest {\n /** Search parameters. */\n search?: {\n /** Search text expression. */\n expression?: string\n /** Whether to enable fuzzy matching. */\n fuzzy?: boolean\n /** Search mode: 'OR' (any term) or 'AND' (all terms). */\n mode?: 'OR' | 'AND'\n }\n /** Filter object. */\n filter?: Record<string, any>\n /** Sort array. */\n sort?: { fieldName: string; order?: 'ASC' | 'DESC' }[]\n /** Fields to return in results. */\n fields?: string[]\n /** Paging options. */\n paging?: { limit?: number; offset?: number }\n /** Cursor-based paging. */\n cursorPaging?: { cursor?: string; limit?: number }\n}\n\n/**\n * Options for direct search execution.\n * @internal\n */\nexport interface WixDataDirectSearchOptions\n extends WixDataReadOptions,\n IncludeReferencesOptions {}\n\nexport interface WixDataQueryReferencedOptions\n extends WixDataQueryOptions,\n ProjectionOptions {\n /**\n * Order of the returned referenced items. Sorted by the date each item was referenced.\n *\n * Default: `asc`\n */\n order?: 'asc' | 'desc'\n\n /**\n * Number of items to skip in the current sort order.\n *\n * Default: `0`\n */\n skip?: number\n\n /**\n * Number of items to load.\n *\n * Default: `50`\n */\n limit?: number\n}\n\ninterface ProjectionOptions {\n /**\n * Lists of fields to return in a result.\n */\n fields?: string[]\n}\n\nexport interface WixDataItem {\n /**\n * Data item ID.\n */\n _id: string\n\n /**\n * Date and time the item was added to the collection.\n * @readonly\n */\n _createdDate?: Date\n\n /**\n * Date and time the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have\n * the same value.\n * @readonly\n */\n _updatedDate?: Date\n\n /**\n * ID of the user who created the item. Can be modified with site owner permissions.\n */\n _owner?: string\n\n /**\n * Data item contents.\n */\n [key: string]: any\n}\n\nexport type WixDataItemOrId = WixDataItem | string\nexport type Comparable = string | number | Date\n\nexport interface WixDataReference {\n relationshipName: string\n left: WixDataItemOrId\n right: WixDataItemOrId\n}\n\nexport interface Provider<T> {\n get(): T | Promise<T>\n}\n\nexport interface WixDataBulkError extends Error {\n /**\n * Description of the error.\n */\n message: string\n\n /**\n * Error code.\n */\n code: string\n\n /**\n * Index of the item within the request array. Allows for correlation between request and response items.\n */\n originalIndex: number\n\n /**\n * Failed item (or ID in case of `bulkRemove()`).\n */\n item: WixDataItem | string\n}\n\nexport interface WixDataBulkResult {\n /**\n * Number of inserted items.\n */\n inserted: number\n\n /**\n * Number of updated items.\n */\n updated: number\n\n /**\n * Number of removed items.\n */\n removed: number\n\n /**\n * Number of skipped items.\n */\n skipped: number\n\n /**\n * List of errors.\n */\n errors: WixDataBulkError[]\n\n /**\n * List of IDs of inserted items.\n */\n insertedItemIds: string[]\n\n /**\n * List of IDs of updated items.\n */\n updatedItemIds: string[]\n\n /**\n * List of IDs of removed items.\n */\n removedItemIds: string[]\n}\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/api/types.ts"],"sourcesContent":["import type { QueryRequest as SDKQueryRequest, QuerySpec } from '@wix/sdk-types'\nimport type { SortOrder } from '../types/data-item-types'\nimport { WixDataFilter } from './WixDataFilter'\n\nexport interface BaseOptions {\n /**\n * Prevents hooks from running for the operation. Can only be used in the [backend code of a Wix site](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/about-the-site-backend).\n *\n * Default: `false`.\n */\n suppressHooks?: boolean\n\n /**\n * When `true`, operations include draft items. Read operations include draft items in their response, and write operations modify draft items.\n *\n * Default: `false`.\n */\n showDrafts?: boolean\n}\n\nexport interface WithAppOptions {\n /**\n * Options for [querying Wix app collections](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-app-collections/querying-wix-app-collections).\n */\n appOptions?: Record<string, any>\n}\n\n/**\n * Options for including referenced items in results.\n */\nexport interface IncludeReferencesOptions {\n /**\n * Reference fields to resolve in the results. When specified, the referenced items\n * are included in the response for the given fields.\n *\n * Each entry identifies a reference `field` by name and an optional `limit` that caps the number\n * of referenced items returned per queried item (relevant for multi-reference fields).\n */\n includeReferences?: { field: string; limit?: number }[]\n}\n\nexport interface WixDataRemoveOptions extends WixDataOptions {\n /**\n * If provided, item will be updated only if condition is met.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataBulkPatchOptions extends WixDataOptions {\n /**\n * If provided, only items matching condition will be patched.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataOptions extends BaseOptions, WithAppOptions {}\n\nexport interface WixDataReadOptions extends WixDataOptions, WithAppOptions {\n /**\n * Language to translate result text into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n * If provided, the result text is returned in the specified language. If not provided, the result text is not translated.\n *\n * > **Note:** Translation for the specified language must be enabled for the collection in [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).\n *\n */\n language?: string\n\n /**\n * When `true`, reads data from the primary database instance. This decreases performance but ensures data retrieved is\n * up-to-date even immediately after an update. Learn more about [Wix Data and eventual consistency](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency).\n */\n consistentRead?: boolean\n}\n\n/**\n * Options for standalone count queries.\n * @internal\n */\nexport interface WixDataCountOptions extends WixDataReadOptions {\n filter?: Record<string, any>\n}\n\nexport interface WixDataReadWithProjectionOptions\n extends WixDataReadOptions,\n ProjectionOptions,\n IncludeReferencesOptions {}\n\nexport interface WithIncludeFieldGroupsOption {\n /**\n * Requests conditional fields. Currently used in App Collections.\n * Please refer to app collection documentation for a list of valid values.\n */\n includeFieldGroups?: string[]\n}\n\nexport interface WixDataGetOptions\n extends WixDataReadWithProjectionOptions,\n WithIncludeFieldGroupsOption {}\n\nexport interface WixDataSaveOptions extends WixDataOptions {\n /**\n * If true, referenced items are included.\n * @internal\n */\n includeReferences?: boolean\n}\n\nexport interface WixDataInsertOptions extends WixDataOptions {\n /**\n * If true, referenced items are included.\n * @internal\n */\n includeReferences?: boolean\n}\n\nexport interface WixDataUpdateOptions extends WixDataOptions {\n /**\n * If true, referenced items are included.\n * @internal\n */\n includeReferences?: boolean\n /**\n * If provided, item will be updated only if condition is met.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataBulkUpdateOptions extends WixDataOptions {\n /**\n * If provided, only items matching condition will be updated.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataBulkRemoveOptions extends WixDataOptions {\n /**\n * If provided, only items matching condition will be removed.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataPatchOptions extends BaseOptions {\n /**\n * If provided, item will be patched only if condition is met.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataAggregateOptions extends WixDataQueryOptions {}\n\n/**\n * Options for standalone distinct field value queries.\n * @internal\n */\nexport interface WixDataDistinctOptions extends WixDataQueryOptions {\n filter?: Record<string, any>\n order?: SortOrder\n paging?: { limit?: number; offset?: number }\n cursorPaging?: { cursor?: string; limit?: number }\n}\n\n/**\n * WixData query specification.\n * Since WixData collections are dynamic, we allow any string field.\n * @internal\n */\nexport interface WixDataQuerySpec extends QuerySpec {\n wql: [\n {\n fields: string[]\n sort: 'BOTH'\n }\n ]\n paging: 'offset'\n}\n\n/**\n * Request object for direct query execution.\n * Extends the SDK's QueryRequest with WixData-specific fields.\n * Use this with `wixData.query(collectionName, queryRequest)` for one-shot queries.\n * @internal\n */\nexport interface WixDataQueryRequest\n extends Omit<SDKQueryRequest<WixDataItem, WixDataQuerySpec>, 'filter'> {\n /**\n * Filter object. Supports operators like `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`,\n * `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.\n *\n * Example:\n * ```js\n * { status: 'active', age: { $gt: 25 } }\n * ```\n */\n filter?: Record<string, any>\n\n /**\n * Cursor-based paging. Use this as an alternative to offset paging.\n *\n * Example:\n * ```js\n * { limit: 10, cursor: 'abc123' }\n * ```\n */\n cursorPaging?: {\n /** Maximum number of items to return. */\n limit?: number\n /** Cursor token pointing to a page of results. */\n cursor?: string\n }\n}\n\nexport interface WixDataQueryOptions extends WixDataReadOptions {\n /**\n * When `true`, the query results include a `totalCount` and `totalPages` properties containing the totals of items\n * matching query. Requesting total count slows down the query.\n *\n * Default: `false`\n */\n returnTotalCount?: boolean\n}\n\n/**\n * Options for direct query execution.\n * @internal\n */\nexport interface WixDataDirectQueryOptions\n extends WixDataQueryOptions,\n IncludeReferencesOptions {\n /**\n * Requests conditional fields. Currently used in App Collections.\n * Please refer to app collection documentation for a list of valid values.\n */\n includeFieldGroups?: string[]\n}\n\n/**\n * Request object for direct search execution.\n * Matches the shape produced by `SearchBuilder().build()` so it can be passed directly.\n * Use this with `wixData.search(collectionName, searchRequest)` for direct search execution.\n * @internal\n */\nexport interface WixDataSearchRequest {\n /** Search parameters. */\n search?: {\n /** Search text expression. */\n expression?: string | null\n /** Whether to enable fuzzy matching. */\n fuzzy?: boolean | null\n /** Search mode: 'OR' (any term) or 'AND' (all terms). */\n mode?: 'OR' | 'AND' | null\n }\n /** Filter object. */\n filter?: Record<string, any>\n /** Sort array. */\n sort?: { fieldName: string; order?: 'ASC' | 'DESC' }[]\n /** Fields to return in results. */\n fields?: string[]\n /** Paging options. */\n paging?: { limit?: number; offset?: number }\n /** Cursor-based paging. */\n cursorPaging?: { cursor?: string; limit?: number }\n}\n\n/**\n * Options for direct search execution.\n * @internal\n */\nexport interface WixDataDirectSearchOptions\n extends WixDataReadOptions,\n IncludeReferencesOptions {}\n\nexport interface WixDataQueryReferencedOptions\n extends WixDataQueryOptions,\n ProjectionOptions {\n /**\n * Order of the returned referenced items. Sorted by the date each item was referenced.\n *\n * Default: `asc`\n */\n order?: 'asc' | 'desc'\n\n /**\n * Number of items to skip in the current sort order.\n *\n * Default: `0`\n */\n skip?: number\n\n /**\n * Number of items to load.\n *\n * Default: `50`\n */\n limit?: number\n}\n\ninterface ProjectionOptions {\n /**\n * Lists of fields to return in a result.\n */\n fields?: string[]\n}\n\nexport interface WixDataItem {\n /**\n * Data item ID.\n */\n _id: string\n\n /**\n * Date and time the item was added to the collection.\n * @readonly\n */\n _createdDate?: Date\n\n /**\n * Date and time the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have\n * the same value.\n * @readonly\n */\n _updatedDate?: Date\n\n /**\n * ID of the user who created the item. Can be modified with site owner permissions.\n */\n _owner?: string\n\n /**\n * Data item contents.\n */\n [key: string]: any\n}\n\nexport type WixDataItemOrId = WixDataItem | string\nexport type Comparable = string | number | Date\n\nexport interface WixDataReference {\n relationshipName: string\n left: WixDataItemOrId\n right: WixDataItemOrId\n}\n\nexport interface Provider<T> {\n get(): T | Promise<T>\n}\n\nexport interface WixDataBulkError extends Error {\n /**\n * Description of the error.\n */\n message: string\n\n /**\n * Error code.\n */\n code: string\n\n /**\n * Index of the item within the request array. Allows for correlation between request and response items.\n */\n originalIndex: number\n\n /**\n * Failed item (or ID in case of `bulkRemove()`).\n */\n item: WixDataItem | string\n}\n\nexport interface WixDataBulkResult {\n /**\n * Number of inserted items.\n */\n inserted: number\n\n /**\n * Number of updated items.\n */\n updated: number\n\n /**\n * Number of removed items.\n */\n removed: number\n\n /**\n * Number of skipped items.\n */\n skipped: number\n\n /**\n * List of errors.\n */\n errors: WixDataBulkError[]\n\n /**\n * List of IDs of inserted items.\n */\n insertedItemIds: string[]\n\n /**\n * List of IDs of updated items.\n */\n updatedItemIds: string[]\n\n /**\n * List of IDs of removed items.\n */\n removedItemIds: string[]\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createSearchUtils } from '@wix/sdk-runtime/search-builder-utils';
|
|
2
|
+
const searchUtils = createSearchUtils();
|
|
3
|
+
export const SearchBuilder = searchUtils.SearchBuilder;
|
|
4
|
+
export const SearchParams = searchUtils.SearchParams;
|
|
5
|
+
//# sourceMappingURL=WixDataSearchBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WixDataSearchBuilder.js","sourceRoot":"","sources":["../../../src/api/WixDataSearchBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAA;AAkCzE,MAAM,WAAW,GAAG,iBAAiB,EAAkC,CAAA;AAEvE,MAAM,CAAC,MAAM,aAAa,GACxB,WAAW,CAAC,aAAa,CAAA;AAC3B,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC,YAAY,CAAA"}
|
package/dist/esm/api/index.js
CHANGED
|
@@ -4,5 +4,6 @@ export { QueryBase } from './QueryBase';
|
|
|
4
4
|
export { stages, } from './stages/stages';
|
|
5
5
|
export { pipelineBuilder } from './PipelineBuilder';
|
|
6
6
|
export { QueryBuilder, Sort, Filter, } from './WixDataQueryBuilder';
|
|
7
|
+
export { SearchBuilder, SearchParams } from './WixDataSearchBuilder';
|
|
7
8
|
export { expressions, } from './expressions/expressions';
|
|
8
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAiCvC,OAAO,EACL,MAAM,GAGP,MAAM,iBAAiB,CAAA;AASxB,OAAO,EAAmB,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACpE,OAAO,EACL,YAAY,EACZ,IAAI,EACJ,MAAM,GAEP,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,WAAW,GAEZ,MAAM,2BAA2B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAiCvC,OAAO,EACL,MAAM,GAGP,MAAM,iBAAiB,CAAA;AASxB,OAAO,EAAmB,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACpE,OAAO,EACL,YAAY,EACZ,IAAI,EACJ,MAAM,GAEP,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EACL,WAAW,GAEZ,MAAM,2BAA2B,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { SearchSpec, SearchBuilder as SDKSearchBuilder, SearchRequest } from '@wix/sdk-types';
|
|
2
|
+
import type { WixDataItem } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* WixData SearchSpec - allows searching/sorting on any string field
|
|
5
|
+
* since WixData collections are dynamic and don't have a fixed schema.
|
|
6
|
+
*/
|
|
7
|
+
interface WixDataSearchSpec extends SearchSpec {
|
|
8
|
+
wql: [
|
|
9
|
+
{
|
|
10
|
+
fields: string[];
|
|
11
|
+
sort: 'BOTH';
|
|
12
|
+
}
|
|
13
|
+
];
|
|
14
|
+
paging: 'offset' | 'cursor';
|
|
15
|
+
}
|
|
16
|
+
type WixDataSearchRequest = SearchRequest<WixDataItem, WixDataSearchSpec>;
|
|
17
|
+
/**
|
|
18
|
+
* WixData SearchBuilder type.
|
|
19
|
+
* Omits withAggregation and withTimeZone which are not supported by WixData search.
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export type WixDataSearchBuilder = Omit<SDKSearchBuilder<WixDataItem, WixDataSearchSpec, WixDataSearchRequest>, 'withAggregation' | 'withTimeZone'>;
|
|
23
|
+
export declare const SearchBuilder: () => WixDataSearchBuilder;
|
|
24
|
+
export declare const SearchParams: import("@wix/sdk-types").SearchParamsFactory<WixDataSearchSpec>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=WixDataSearchBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WixDataSearchBuilder.d.ts","sourceRoot":"","sources":["../../../src/api/WixDataSearchBuilder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,IAAI,gBAAgB,EACjC,aAAa,EACd,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C;;;GAGG;AACH,UAAU,iBAAkB,SAAQ,UAAU;IAC5C,GAAG,EAAE;QACH;YACE,MAAM,EAAE,MAAM,EAAE,CAAA;YAChB,IAAI,EAAE,MAAM,CAAA;SACb;KACF,CAAA;IACD,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAA;CAC5B;AAED,KAAK,oBAAoB,GAAG,aAAa,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAA;AAEzE;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,IAAI,CACrC,gBAAgB,CAAC,WAAW,EAAE,iBAAiB,EAAE,oBAAoB,CAAC,EACtE,iBAAiB,GAAG,cAAc,CACnC,CAAA;AAID,eAAO,MAAM,aAAa,EAAE,MAAM,oBACP,CAAA;AAC3B,eAAO,MAAM,YAAY,iEAA2B,CAAA"}
|
|
@@ -20,6 +20,7 @@ export { SkipStage } from './stages/SkipStage';
|
|
|
20
20
|
export { ObjectToArrayStage } from './stages/ObjectToArrayStage';
|
|
21
21
|
export { PipelineBuilder, pipelineBuilder } from './PipelineBuilder';
|
|
22
22
|
export { QueryBuilder, Sort, Filter, WixDataQueryBuilder, } from './WixDataQueryBuilder';
|
|
23
|
+
export { SearchBuilder, SearchParams } from './WixDataSearchBuilder';
|
|
23
24
|
export { expressions, WixDataAggregatePipelineExpressions, } from './expressions/expressions';
|
|
24
25
|
export { FieldExpression, TextExpression, NumericExpression, AddExpression, SubtractExpression, MultiplyExpression, DivideExpression, SumExpression, AbsExpression, ModExpression, FloorExpression, CeilExpression, ConcatExpression, StringifyExpression, ToLowerExpression, ToUpperExpression, SubstringExpression, LengthExpression, } from './expressions/Expression';
|
|
25
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,M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B,EACjB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,0BAA0B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,gCAAgC,EAChC,4BAA4B,EAC5B,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,EACpB,iBAAiB,EACjB,6BAA6B,EAC7B,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,SAAS,CAAA;AAChB,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAC9C,OAAO,EACL,MAAM,EACN,aAAa,EACb,8BAA8B,GAC/B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACpE,OAAO,EACL,YAAY,EACZ,IAAI,EACJ,MAAM,EACN,mBAAmB,GACpB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EACL,WAAW,EACX,mCAAmC,GACpC,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,aAAa,EACb,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,0BAA0B,CAAA"}
|
|
@@ -221,11 +221,11 @@ export interface WixDataSearchRequest {
|
|
|
221
221
|
/** Search parameters. */
|
|
222
222
|
search?: {
|
|
223
223
|
/** Search text expression. */
|
|
224
|
-
expression?: string;
|
|
224
|
+
expression?: string | null;
|
|
225
225
|
/** Whether to enable fuzzy matching. */
|
|
226
|
-
fuzzy?: boolean;
|
|
226
|
+
fuzzy?: boolean | null;
|
|
227
227
|
/** Search mode: 'OR' (any term) or 'AND' (all terms). */
|
|
228
|
-
mode?: 'OR' | 'AND';
|
|
228
|
+
mode?: 'OR' | 'AND' | null;
|
|
229
229
|
};
|
|
230
230
|
/** Filter object. */
|
|
231
231
|
filter?: Record<string, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/api/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CACxD;AAED,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,CAAA;CAC1B;AAED,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,CAAA;CAC1B;AAED,MAAM,WAAW,cAAe,SAAQ,WAAW,EAAE,cAAc;CAAG;AAEtE,MAAM,WAAW,kBAAmB,SAAQ,cAAc,EAAE,cAAc;I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A;IACxB,IAAI,EAAE,eAAe,CAAA;IACrB,KAAK,EAAE,eAAe,CAAA;CACvB;AAED,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,GAAG,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;CACtB;AAED,MAAM,WAAW,gBAAiB,SAAQ,KAAK;IAC7C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,IAAI,EAAE,WAAW,GAAG,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAE1B;;OAEG;IACH,eAAe,EAAE,MAAM,EAAE,CAAA;IAEzB;;OAEG;IACH,cAAc,EAAE,MAAM,EAAE,CAAA;IAExB;;OAEG;IACH,cAAc,EAAE,MAAM,EAAE,CAAA;CACzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/wix-data-items-common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.295",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Rimvydas Gimbutas",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"wallaby": {
|
|
83
83
|
"autoDetect": true
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "6386cc4f4204e40b2fdfd469c30bb555ec87ed8bd5c9422bc311b408"
|
|
86
86
|
}
|