@wix/wix-data-items-common 1.0.236 → 1.0.237
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/PipelineBuilder.js +2 -2
- package/dist/cjs/api/PipelineBuilder.js.map +1 -1
- package/dist/cjs/api/WixDataAggregate.js.map +1 -1
- package/dist/cjs/api/WixDataFilter.js.map +1 -1
- package/dist/cjs/api/WixDataQuery.js.map +1 -1
- package/dist/cjs/api/WixDataSearch.js.map +1 -1
- package/dist/cjs/api/expressions/expressions.js.map +1 -1
- package/dist/cjs/api/stages/FilterStage.js.map +1 -1
- package/dist/cjs/api/stages/GroupStage.js +3 -1
- package/dist/cjs/api/stages/GroupStage.js.map +1 -1
- package/dist/cjs/api/stages/ProjectStage.js.map +1 -1
- package/dist/cjs/api/stages/SortStage.js.map +1 -1
- package/dist/cjs/api/stages/stages.js.map +1 -1
- package/dist/cjs/api/types.js.map +1 -1
- package/dist/cjs/filter/WithFilter.js.map +1 -1
- package/dist/cjs/types/data-item-types.js.map +1 -1
- package/dist/esm/api/PipelineBuilder.js +2 -2
- package/dist/esm/api/stages/FilterStage.js.map +1 -1
- package/dist/esm/api/stages/GroupStage.js +3 -1
- package/dist/esm/api/stages/GroupStage.js.map +1 -1
- package/dist/esm/api/stages/ProjectStage.js.map +1 -1
- package/dist/types/api/PipelineBuilder.d.ts +4 -4
- package/dist/types/api/WixDataAggregate.d.ts +7 -7
- package/dist/types/api/WixDataFilter.d.ts +50 -84
- package/dist/types/api/WixDataFilter.d.ts.map +1 -1
- package/dist/types/api/WixDataQuery.d.ts +44 -71
- package/dist/types/api/WixDataQuery.d.ts.map +1 -1
- package/dist/types/api/WixDataSearch.d.ts +33 -33
- package/dist/types/api/expressions/expressions.d.ts +13 -13
- package/dist/types/api/stages/FilterStage.d.ts +70 -123
- package/dist/types/api/stages/FilterStage.d.ts.map +1 -1
- package/dist/types/api/stages/GroupStage.d.ts +20 -19
- package/dist/types/api/stages/GroupStage.d.ts.map +1 -1
- package/dist/types/api/stages/ProjectStage.d.ts +6 -7
- package/dist/types/api/stages/ProjectStage.d.ts.map +1 -1
- package/dist/types/api/stages/SortStage.d.ts +2 -2
- package/dist/types/api/stages/stages.d.ts +16 -8
- package/dist/types/api/stages/stages.d.ts.map +1 -1
- package/dist/types/api/types.d.ts +2 -2
- package/dist/types/filter/WithFilter.d.ts +26 -42
- package/dist/types/filter/WithFilter.d.ts.map +1 -1
- package/dist/types/types/data-item-types.d.ts +6 -6
- package/package.json +2 -2
|
@@ -15,7 +15,7 @@ export interface WixDataAggregatePipelineStages {
|
|
|
15
15
|
/**
|
|
16
16
|
* Adds a filter stage to the aggregation pipeline.
|
|
17
17
|
*
|
|
18
|
-
* The `filter()` method adds a pipeline stage that only processes items that match the specified criteria. You can configure the filter by chaining one or more [`
|
|
18
|
+
* The `filter()` method adds a pipeline stage that only processes items that match the specified criteria. You can configure the filter by chaining one or more [`FilterStage`](https://dev.wix.com/docs/sdk/backend-modules/data/items/filter-stage/introduction) methods.
|
|
19
19
|
*
|
|
20
20
|
* @public
|
|
21
21
|
* @documentationMaturity preview
|
|
@@ -25,7 +25,7 @@ export interface WixDataAggregatePipelineStages {
|
|
|
25
25
|
/**
|
|
26
26
|
* Adds a project stage to the aggregation pipeline.
|
|
27
27
|
*
|
|
28
|
-
* The `project()` method adds a pipeline stage that transforms items by including, excluding, or reshaping fields. You can configure the projection by chaining one or more [`
|
|
28
|
+
* The `project()` method adds a pipeline stage that transforms items by including, excluding, or reshaping fields. You can configure the projection by chaining one or more [`ProjectStage`](https://dev.wix.com/docs/sdk/backend-modules/data/items/project-stage/introduction) methods.
|
|
29
29
|
*
|
|
30
30
|
* @public
|
|
31
31
|
* @documentationMaturity preview
|
|
@@ -35,7 +35,7 @@ export interface WixDataAggregatePipelineStages {
|
|
|
35
35
|
/**
|
|
36
36
|
* Adds a group stage to the aggregation pipeline.
|
|
37
37
|
*
|
|
38
|
-
* The `group()` method adds a pipeline stage that groups items by specified fields and calculates aggregate values. You can configure the grouping by chaining one or more [`
|
|
38
|
+
* The `group()` method adds a pipeline stage that groups items by specified fields and calculates aggregate values. You can configure the grouping by chaining one or more [`GroupStage`](https://dev.wix.com/docs/sdk/backend-modules/data/items/group-stage/introduction) methods.
|
|
39
39
|
*
|
|
40
40
|
* @public
|
|
41
41
|
* @documentationMaturity preview
|
|
@@ -49,7 +49,7 @@ export interface WixDataAggregatePipelineStages {
|
|
|
49
49
|
*
|
|
50
50
|
* @public
|
|
51
51
|
* @documentationMaturity preview
|
|
52
|
-
* @param arrayFieldName -
|
|
52
|
+
* @param arrayFieldName - Array field to unwind. Use dot notation to specify a nested array. For example, `user.products` or `product.colors`.
|
|
53
53
|
*
|
|
54
54
|
* Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
|
|
55
55
|
* @returns UnwindStage object.
|
|
@@ -58,7 +58,7 @@ export interface WixDataAggregatePipelineStages {
|
|
|
58
58
|
/**
|
|
59
59
|
* Adds a sort stage to the aggregation pipeline.
|
|
60
60
|
*
|
|
61
|
-
* The `sort()` method adds a pipeline stage that sorts items by specified fields. You can configure the sorting by chaining one or more [`
|
|
61
|
+
* The `sort()` method adds a pipeline stage that sorts items by specified fields. You can configure the sorting by chaining one or more [`SortStage`](https://dev.wix.com/docs/sdk/backend-modules/data/items/sort-stage/introduction) methods.
|
|
62
62
|
*
|
|
63
63
|
* @public
|
|
64
64
|
* @documentationMaturity preview
|
|
@@ -91,14 +91,22 @@ export interface WixDataAggregatePipelineStages {
|
|
|
91
91
|
/**
|
|
92
92
|
* Adds an objectToArray stage to the aggregation pipeline.
|
|
93
93
|
*
|
|
94
|
-
* The `objectToArray()` method adds a pipeline stage that converts an object into an array. Each property becomes an array element
|
|
94
|
+
* The `objectToArray()` method adds a pipeline stage that converts an object into an array of objects with key-value pairs. Each property of the object becomes an element in the new array. Each element contains that property's key and value, as well as all other properties from the original object.
|
|
95
|
+
*
|
|
96
|
+
* For example, with a destination name of `variantInventory`, the object `{ "red": 10, "blue": 5, "green": 3 }` is transformed into the following array:
|
|
97
|
+
*
|
|
98
|
+
* `"variantInventory": [
|
|
99
|
+
* { "k": "red", "v": 10 },
|
|
100
|
+
* { "k": "blue", "v": 5 },
|
|
101
|
+
* { "k": "green", "v": 3 }
|
|
102
|
+
* ]`.
|
|
95
103
|
*
|
|
96
104
|
* @public
|
|
97
105
|
* @documentationMaturity preview
|
|
98
|
-
* @param objectFieldName -
|
|
106
|
+
* @param objectFieldName - Field to convert to an array. Use dot notation to specify nested fields. For example, `user.name` or `product.price`.
|
|
99
107
|
*
|
|
100
108
|
* Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
|
|
101
|
-
* @param destinationFieldName -
|
|
109
|
+
* @param destinationFieldName - Field to create in the result item.
|
|
102
110
|
*
|
|
103
111
|
* Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
|
|
104
112
|
* @returns ObjectToArrayStage object.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stages.d.ts","sourceRoot":"","sources":["../../../../src/api/stages/stages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAmB,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAoB,MAAM,gBAAgB,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAkB,MAAM,cAAc,CAAA;AACzD,OAAO,EAAE,WAAW,EAAmB,MAAM,eAAe,CAAA;AAC5D,OAAO,EAAE,SAAS,EAAiB,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,UAAU,EAAkB,MAAM,cAAc,CAAA;AACzD,OAAO,EAAE,SAAS,EAAiB,MAAM,aAAa,CAAA;AACtD,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AACvD,OAAO,EACL,kBAAkB,EAEnB,MAAM,sBAAs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I,YAAY,CAAA;IAEvB;;;;;;;;OAQG;IACH,KAAK,IAAI,UAAU,CAAA;IAEnB;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,cAAc,EAAE,MAAM,GAAG,WAAW,CAAA;IAE3C;;;;;;;;OAQG;IACH,IAAI,IAAI,SAAS,CAAA;IAEjB;;;;;;;;;OASG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAAA;IAEhC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IAE9B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,aAAa,CACX,eAAe,EAAE,MAAM,EACvB,oBAAoB,EAAE,MAAM,GAC3B,kBAAkB,CAAA;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,KAAK,IAAI,QAAQ,CAAC,KAAK,CAAA;CACxB"}
|
|
@@ -31,7 +31,7 @@ export interface WixDataReadOptions extends WixDataOptions, WithAppOptions {
|
|
|
31
31
|
language?: string;
|
|
32
32
|
/**
|
|
33
33
|
* When `true`, reads data from the primary database instance. This decreases performance but ensures data retrieved is
|
|
34
|
-
* up-to-date even immediately after an update. Learn more about [Wix Data and
|
|
34
|
+
* 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).
|
|
35
35
|
*/
|
|
36
36
|
consistentRead?: boolean;
|
|
37
37
|
}
|
|
@@ -50,7 +50,7 @@ export interface WixDataAggregateOptions extends WixDataQueryOptions {
|
|
|
50
50
|
}
|
|
51
51
|
export interface WixDataQueryOptions extends WixDataReadOptions {
|
|
52
52
|
/**
|
|
53
|
-
* When `true`, the query
|
|
53
|
+
* When `true`, the query results include a `totalCount` and `totalPages` properties containing the totals of items
|
|
54
54
|
* matching query. Requesting total count slows down the query.
|
|
55
55
|
*
|
|
56
56
|
* Default: `false`
|
|
@@ -20,8 +20,8 @@ export default interface WithFilter<Self extends WithFilter<Self>> {
|
|
|
20
20
|
* The `eq()` function refines this filter to only
|
|
21
21
|
* match items where the value of the specified property equals the specified `value`.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
24
|
-
* as a
|
|
23
|
+
* The method only matches values of the same [data type](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-types-in-wix-data). For example, a number value stored
|
|
24
|
+
* as a number does not match the same number stored as a string.
|
|
25
25
|
*
|
|
26
26
|
* Matching strings with `eq()` is case sensitive, so `"text"` is not equal to `"Text"`.
|
|
27
27
|
*
|
|
@@ -42,8 +42,8 @@ export default interface WithFilter<Self extends WithFilter<Self>> {
|
|
|
42
42
|
* The `ne()` function refines this filter to only
|
|
43
43
|
* match items where the value of the specified property does not equal the specified `value`.
|
|
44
44
|
*
|
|
45
|
-
*
|
|
46
|
-
* as a
|
|
45
|
+
* The method only matches values of the same [data type](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-types-in-wix-data). For example, a number value stored
|
|
46
|
+
* as a number is considered not equal to the same number stored as a string.
|
|
47
47
|
*
|
|
48
48
|
* Matching strings with `ne()` is case sensitive, so `"text"` is not equal to `"Text"`.
|
|
49
49
|
*
|
|
@@ -66,8 +66,8 @@ export default interface WithFilter<Self extends WithFilter<Self>> {
|
|
|
66
66
|
* match items where the value of the specified property is greater than or
|
|
67
67
|
* equal to the specified `value`.
|
|
68
68
|
*
|
|
69
|
-
*
|
|
70
|
-
* as a
|
|
69
|
+
* The method only matches values of the same [data type](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-types-in-wix-data). For example, a number value stored
|
|
70
|
+
* as a number does not match the same number stored as a string.
|
|
71
71
|
*
|
|
72
72
|
* If a property contains a number as a String, that value will be compared
|
|
73
73
|
* alphabetically and not numerically. Items that do not have a value for the
|
|
@@ -100,8 +100,8 @@ export default interface WithFilter<Self extends WithFilter<Self>> {
|
|
|
100
100
|
* The `gt()` function refines this filter to only match
|
|
101
101
|
* items where the value of the specified property is greater than the specified `value`.
|
|
102
102
|
*
|
|
103
|
-
*
|
|
104
|
-
* as a
|
|
103
|
+
* The method only matches values of the same [data type](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-types-in-wix-data). For example, a number value stored
|
|
104
|
+
* as a number does not match the same number stored as a string.
|
|
105
105
|
*
|
|
106
106
|
* If a property contains a number as a String, that value will be compared
|
|
107
107
|
* alphabetically and not numerically. Items that do not have a value for the
|
|
@@ -129,8 +129,8 @@ export default interface WithFilter<Self extends WithFilter<Self>> {
|
|
|
129
129
|
* items where the value of the specified property is less than or equal to the
|
|
130
130
|
* specified `value`.
|
|
131
131
|
*
|
|
132
|
-
*
|
|
133
|
-
* as a
|
|
132
|
+
* The method only matches values of the same [data type](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-types-in-wix-data). For example, a number value stored
|
|
133
|
+
* as a number does not match the same number stored as a string.
|
|
134
134
|
*
|
|
135
135
|
* If a property contains a number as a String, that value will be compared
|
|
136
136
|
* alphabetically and not numerically. Items that do not have a value for the
|
|
@@ -163,8 +163,8 @@ export default interface WithFilter<Self extends WithFilter<Self>> {
|
|
|
163
163
|
* The `lt()` function refines this filter to only match
|
|
164
164
|
* items where the value of the specified property is less than the specified `value`.
|
|
165
165
|
*
|
|
166
|
-
*
|
|
167
|
-
* as a
|
|
166
|
+
* The method only matches values of the same [data type](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-types-in-wix-data). For example, a number value stored
|
|
167
|
+
* as a number does not match the same number stored as a string.
|
|
168
168
|
*
|
|
169
169
|
* If a property contains a number as a String, that value will be compared
|
|
170
170
|
* alphabetically and not numerically. Items that do not have a value for the
|
|
@@ -216,37 +216,29 @@ export default interface WithFilter<Self extends WithFilter<Self>> {
|
|
|
216
216
|
*/
|
|
217
217
|
isEmpty(field: string): Self;
|
|
218
218
|
/**
|
|
219
|
-
* Refines a query or filter to match items
|
|
219
|
+
* Refines a query or filter to match items where the value of the specified field starts with a specified value.
|
|
220
220
|
*
|
|
221
|
-
* The `startsWith()` function refines this filter to
|
|
222
|
-
* only match items where the value of the specified property starts with the
|
|
223
|
-
* defined `string`. Matching with `startsWith()` is not case sensitive, so `"TEXT"` starts
|
|
224
|
-
* with `"tex"`.
|
|
221
|
+
* The `startsWith()` function refines this filter to only match items where the value of the specified field starts with the specified value. Matching with `startsWith()` is not case sensitive, so `"TEXT"` is considered to start with `"tex"`.
|
|
225
222
|
*
|
|
226
|
-
* You can only use `startsWith()` with a
|
|
227
|
-
* When using a Reference, `startsWith()` matches by the ID of the referenced item as Strings.
|
|
223
|
+
* You can only use `startsWith()` with a [field of type](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-types-in-wix-data) string or reference. When matching a field of type reference, `startsWith()` matches by the ID of the referenced item as a string.
|
|
228
224
|
* @public
|
|
229
225
|
* @documentationMaturity preview
|
|
230
|
-
* @param field -
|
|
226
|
+
* @param field - Field whose value will be compared with the specified value.
|
|
231
227
|
* @requiredField field
|
|
232
|
-
* @param value - String to look for at the beginning of the specified
|
|
228
|
+
* @param value - String to look for at the beginning of the specified field value.
|
|
233
229
|
* @requiredField value
|
|
234
230
|
* @returns `WixDataQuery` object representing the refined query.
|
|
235
231
|
*/
|
|
236
232
|
startsWith(field: string, value: string): Self;
|
|
237
233
|
/**
|
|
238
|
-
* Refines a query or filter to match items
|
|
234
|
+
* Refines a query or filter to match items where the value of the specified field ends with a specified value.
|
|
239
235
|
*
|
|
240
|
-
* The `endsWith()` function refines this filter to only
|
|
241
|
-
* match items where the value of the specified property ends with the specified
|
|
242
|
-
* `string`. Matching with `endsWith()` is not case sensitive, so `"TEXT"` ends
|
|
243
|
-
* with `"ext"`.
|
|
236
|
+
* The `endsWith()` function refines this filter to only match items where the value of the specified field ends with the specified value. Matching with `endsWith()` is not case sensitive, so `"TEXT"` is considered to end with `"ext"`.
|
|
244
237
|
*
|
|
245
|
-
* You can only use `endsWith()` with a
|
|
246
|
-
* When using a Reference, `endsWith()` matches by the ID of the referenced item as Strings.
|
|
238
|
+
* You can only use `endsWith()` with a [field of type](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-types-in-wix-data) string or reference. When matching a field of type reference, `endsWith()` matches by the ID of the referenced item as a string.
|
|
247
239
|
* @public
|
|
248
240
|
* @documentationMaturity preview
|
|
249
|
-
* @param field -
|
|
241
|
+
* @param field - Field whose value will be compared with the specified value.
|
|
250
242
|
* @requiredField field
|
|
251
243
|
* @param value - String to look for at the end of the specified property value.
|
|
252
244
|
* @requiredField value
|
|
@@ -254,17 +246,11 @@ export default interface WithFilter<Self extends WithFilter<Self>> {
|
|
|
254
246
|
*/
|
|
255
247
|
endsWith(field: string, value: string): Self;
|
|
256
248
|
/**
|
|
257
|
-
* Refines a query or filter to match items whose specified property value contains a specified
|
|
249
|
+
* Refines a query or filter to match items whose specified property value contains a specified value.
|
|
258
250
|
*
|
|
259
|
-
* The `contains()`
|
|
260
|
-
* only match items where the value of the specified property contains the
|
|
261
|
-
* specified `string`. Matching with `contains()` is not case sensitive, so
|
|
262
|
-
* `"text"` does contain `"Tex"`.
|
|
251
|
+
* The `contains()` method refines the filter to only match items where the value of the specified property contains the specified value. Matching with `contains()` is not case sensitive, so `"text"` is considered to contain `"Tex"`.
|
|
263
252
|
*
|
|
264
|
-
* You can use `contains()` with a
|
|
265
|
-
* For properties of type reference it is recommended that you use the [`eq()`](#eq)
|
|
266
|
-
* function instead of `contains()`. With properties that are References, `contains()`
|
|
267
|
-
* matches by the ID of the referenced item as a String.
|
|
253
|
+
* You can use `contains()` with a [field of type](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-types-in-wix-data) string or reference.
|
|
268
254
|
* @public
|
|
269
255
|
* @documentationMaturity preview
|
|
270
256
|
* @param field - The property whose value will be compared with the string.
|
|
@@ -442,11 +428,9 @@ export default interface WithFilter<Self extends WithFilter<Self>> {
|
|
|
442
428
|
* The `between()` function refines this query to only match items where the value of the specified property is
|
|
443
429
|
* greater than or equal to `rangeStart` and less than `rangeEnd`.
|
|
444
430
|
*
|
|
445
|
-
*
|
|
446
|
-
* same number stored as a Number type.
|
|
431
|
+
* The method only matches values of the same [data type](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-types-in-wix-data). For example, a number value stored as a number does not match the same number stored as a string.
|
|
447
432
|
*
|
|
448
|
-
* If a property contains a number as a
|
|
449
|
-
* that do not have a value for the specified property are ranked lowest.
|
|
433
|
+
* If a property contains a number as a string, that value will be compared alphabetically and not numerically. Items that do not have a value for the specified property are ranked lowest.
|
|
450
434
|
*
|
|
451
435
|
* The following types of properties can be compared:
|
|
452
436
|
* - Number: Compares numerically.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithFilter.d.ts","sourceRoot":"","sources":["../../../src/filter/WithFilter.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;AAExC;;;GAGG;AACH,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC,IAAI,SAAS,UAAU,CAAC,IAAI,CAAC;IAC/D;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAExC;;;OAGG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAEnC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAAA;IAEnC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAAA;IAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAAA;IAE1C;;;OAGG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAAA;IAE3C;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,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1946
|
export interface Include {
|
|
1947
1947
|
/**
|
|
1948
|
-
*
|
|
1948
|
+
* Field to include in the result.
|
|
1949
1949
|
*
|
|
1950
1950
|
* Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
|
|
1951
1951
|
* @maxLength 1000
|
|
@@ -1954,7 +1954,7 @@ export interface Include {
|
|
|
1954
1954
|
}
|
|
1955
1955
|
export interface Exclude {
|
|
1956
1956
|
/**
|
|
1957
|
-
*
|
|
1957
|
+
* Field to exclude from the result.
|
|
1958
1958
|
*
|
|
1959
1959
|
* Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
|
|
1960
1960
|
* @maxLength 1000
|
|
@@ -1963,7 +1963,7 @@ export interface Exclude {
|
|
|
1963
1963
|
}
|
|
1964
1964
|
export interface Reshape {
|
|
1965
1965
|
/**
|
|
1966
|
-
*
|
|
1966
|
+
* Field to create in the result item.
|
|
1967
1967
|
*
|
|
1968
1968
|
* Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
|
|
1969
1969
|
* @maxLength 1000
|
|
@@ -2034,7 +2034,7 @@ export interface Accumulator extends AccumulatorExpressionOneOf {
|
|
|
2034
2034
|
/** Collects values from all items in the group into an array. */
|
|
2035
2035
|
push?: Push;
|
|
2036
2036
|
/**
|
|
2037
|
-
*
|
|
2037
|
+
* Field to create in the output item to contain the aggregation result.
|
|
2038
2038
|
* @maxLength 1000
|
|
2039
2039
|
*/
|
|
2040
2040
|
resultFieldName?: string;
|
|
@@ -2062,7 +2062,7 @@ export interface Stage extends StageStageOneOf {
|
|
|
2062
2062
|
/**
|
|
2063
2063
|
* Aggregation filter. Only collection items that match the filter are processed.
|
|
2064
2064
|
*
|
|
2065
|
-
* Learn more about [filters in API Query Language](https://dev.wix.com/docs/
|
|
2065
|
+
* Learn more about [filters in API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language#filters).
|
|
2066
2066
|
*
|
|
2067
2067
|
* > **Note:** The values you provide for each filter field must adhere to that field's data type. For example, when filtering by a field whose type is Date and Time, use an object in the following format: `"someDateAndTimeFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}`. Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/data-types-in-wix-data).
|
|
2068
2068
|
*/
|
|
@@ -2099,7 +2099,7 @@ export interface StageStageOneOf {
|
|
|
2099
2099
|
/**
|
|
2100
2100
|
* Aggregation filter. Only collection items that match the filter are processed.
|
|
2101
2101
|
*
|
|
2102
|
-
* Learn more about [filters in API Query Language](https://dev.wix.com/docs/
|
|
2102
|
+
* Learn more about [filters in API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language#filters).
|
|
2103
2103
|
*
|
|
2104
2104
|
* > **Note:** The values you provide for each filter field must adhere to that field's data type. For example, when filtering by a field whose type is Date and Time, use an object in the following format: `"someDateAndTimeFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}`. Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/data-types-in-wix-data).
|
|
2105
2105
|
*/
|
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.237",
|
|
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": "
|
|
88
|
+
"falconPackageHash": "5330829ce834e54252381de59f0d66e3e035a5f13fecae065f1d9952"
|
|
89
89
|
}
|