@wix/wix-data-items-common 1.0.200 → 1.0.201

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.
Files changed (57) hide show
  1. package/dist/cjs/api/expressions/Expression.js +18 -0
  2. package/dist/cjs/api/expressions/Expression.js.map +1 -1
  3. package/dist/cjs/api/stages/FilterStage.js +2 -0
  4. package/dist/cjs/api/stages/FilterStage.js.map +1 -1
  5. package/dist/cjs/api/stages/GroupStage.js +2 -0
  6. package/dist/cjs/api/stages/GroupStage.js.map +1 -1
  7. package/dist/cjs/api/stages/LimitStage.js +2 -0
  8. package/dist/cjs/api/stages/LimitStage.js.map +1 -1
  9. package/dist/cjs/api/stages/ObjectToArrayStage.js +2 -0
  10. package/dist/cjs/api/stages/ObjectToArrayStage.js.map +1 -1
  11. package/dist/cjs/api/stages/ProjectStage.js +2 -0
  12. package/dist/cjs/api/stages/ProjectStage.js.map +1 -1
  13. package/dist/cjs/api/stages/SkipStage.js +2 -0
  14. package/dist/cjs/api/stages/SkipStage.js.map +1 -1
  15. package/dist/cjs/api/stages/SortStage.js +2 -0
  16. package/dist/cjs/api/stages/SortStage.js.map +1 -1
  17. package/dist/cjs/api/stages/UnwindStage.js +2 -0
  18. package/dist/cjs/api/stages/UnwindStage.js.map +1 -1
  19. package/dist/cjs/api/stages/stages.js.map +1 -1
  20. package/dist/esm/api/expressions/Expression.js +18 -0
  21. package/dist/esm/api/expressions/Expression.js.map +1 -1
  22. package/dist/esm/api/stages/FilterStage.js +1 -0
  23. package/dist/esm/api/stages/FilterStage.js.map +1 -1
  24. package/dist/esm/api/stages/GroupStage.js +1 -0
  25. package/dist/esm/api/stages/GroupStage.js.map +1 -1
  26. package/dist/esm/api/stages/LimitStage.js +1 -0
  27. package/dist/esm/api/stages/LimitStage.js.map +1 -1
  28. package/dist/esm/api/stages/ObjectToArrayStage.js +1 -0
  29. package/dist/esm/api/stages/ObjectToArrayStage.js.map +1 -1
  30. package/dist/esm/api/stages/ProjectStage.js +1 -0
  31. package/dist/esm/api/stages/ProjectStage.js.map +1 -1
  32. package/dist/esm/api/stages/SkipStage.js +1 -0
  33. package/dist/esm/api/stages/SkipStage.js.map +1 -1
  34. package/dist/esm/api/stages/SortStage.js +1 -0
  35. package/dist/esm/api/stages/SortStage.js.map +1 -1
  36. package/dist/esm/api/stages/UnwindStage.js +1 -0
  37. package/dist/esm/api/stages/UnwindStage.js.map +1 -1
  38. package/dist/types/api/expressions/Expression.d.ts +19 -1
  39. package/dist/types/api/expressions/Expression.d.ts.map +1 -1
  40. package/dist/types/api/stages/FilterStage.d.ts +1 -0
  41. package/dist/types/api/stages/FilterStage.d.ts.map +1 -1
  42. package/dist/types/api/stages/GroupStage.d.ts +1 -0
  43. package/dist/types/api/stages/GroupStage.d.ts.map +1 -1
  44. package/dist/types/api/stages/LimitStage.d.ts +1 -0
  45. package/dist/types/api/stages/LimitStage.d.ts.map +1 -1
  46. package/dist/types/api/stages/ObjectToArrayStage.d.ts +1 -0
  47. package/dist/types/api/stages/ObjectToArrayStage.d.ts.map +1 -1
  48. package/dist/types/api/stages/ProjectStage.d.ts +1 -0
  49. package/dist/types/api/stages/ProjectStage.d.ts.map +1 -1
  50. package/dist/types/api/stages/SkipStage.d.ts +1 -0
  51. package/dist/types/api/stages/SkipStage.d.ts.map +1 -1
  52. package/dist/types/api/stages/SortStage.d.ts +1 -0
  53. package/dist/types/api/stages/SortStage.d.ts.map +1 -1
  54. package/dist/types/api/stages/UnwindStage.d.ts +1 -0
  55. package/dist/types/api/stages/UnwindStage.d.ts.map +1 -1
  56. package/dist/types/api/stages/stages.d.ts +1 -1
  57. package/package.json +2 -2
@@ -10,6 +10,7 @@ class FieldExpressionImpl {
10
10
  constructor(fieldPath) {
11
11
  this.fieldPath = fieldPath;
12
12
  }
13
+ /** @private */
13
14
  toProto() {
14
15
  return {
15
16
  fieldPath: this.fieldPath
@@ -25,6 +26,7 @@ class TextExpressionImpl {
25
26
  constructor(value) {
26
27
  this.value = value;
27
28
  }
29
+ /** @private */
28
30
  toProto() {
29
31
  return {
30
32
  text: this.value
@@ -40,6 +42,7 @@ class NumericExpressionImpl {
40
42
  constructor(value) {
41
43
  this.value = value;
42
44
  }
45
+ /** @private */
43
46
  toProto() {
44
47
  return {
45
48
  numeric: this.value
@@ -55,6 +58,7 @@ class AddExpressionImpl {
55
58
  constructor(expressions) {
56
59
  this.expressions = expressions;
57
60
  }
61
+ /** @private */
58
62
  toProto() {
59
63
  return {
60
64
  add: {
@@ -73,6 +77,7 @@ class SubtractExpressionImpl {
73
77
  this.firstExpression = firstExpression;
74
78
  this.secondExpression = secondExpression;
75
79
  }
80
+ /** @private */
76
81
  toProto() {
77
82
  return {
78
83
  subtract: {
@@ -91,6 +96,7 @@ class MultiplyExpressionImpl {
91
96
  constructor(expressions) {
92
97
  this.expressions = expressions;
93
98
  }
99
+ /** @private */
94
100
  toProto() {
95
101
  return {
96
102
  multiply: {
@@ -109,6 +115,7 @@ class DivideExpressionImpl {
109
115
  this.firstExpression = firstExpression;
110
116
  this.secondExpression = secondExpression;
111
117
  }
118
+ /** @private */
112
119
  toProto() {
113
120
  return {
114
121
  divide: {
@@ -127,6 +134,7 @@ class SumExpressionImpl {
127
134
  constructor(expressions) {
128
135
  this.expressions = expressions;
129
136
  }
137
+ /** @private */
130
138
  toProto() {
131
139
  return {
132
140
  sum: {
@@ -144,6 +152,7 @@ class AbsExpressionImpl {
144
152
  constructor(expression) {
145
153
  this.expression = expression;
146
154
  }
155
+ /** @private */
147
156
  toProto() {
148
157
  return {
149
158
  abs: {
@@ -162,6 +171,7 @@ class ModExpressionImpl {
162
171
  this.firstExpression = firstExpression;
163
172
  this.secondExpression = secondExpression;
164
173
  }
174
+ /** @private */
165
175
  toProto() {
166
176
  return {
167
177
  mod: {
@@ -180,6 +190,7 @@ class FloorExpressionImpl {
180
190
  constructor(expression) {
181
191
  this.expression = expression;
182
192
  }
193
+ /** @private */
183
194
  toProto() {
184
195
  return {
185
196
  floor: {
@@ -197,6 +208,7 @@ class CeilExpressionImpl {
197
208
  constructor(expression) {
198
209
  this.expression = expression;
199
210
  }
211
+ /** @private */
200
212
  toProto() {
201
213
  return {
202
214
  ceil: {
@@ -214,6 +226,7 @@ class ConcatExpressionImpl {
214
226
  constructor(expressions) {
215
227
  this.expressions = expressions;
216
228
  }
229
+ /** @private */
217
230
  toProto() {
218
231
  return {
219
232
  concat: {
@@ -231,6 +244,7 @@ class StringifyExpressionImpl {
231
244
  constructor(expression) {
232
245
  this.expression = expression;
233
246
  }
247
+ /** @private */
234
248
  toProto() {
235
249
  return {
236
250
  stringify: {
@@ -248,6 +262,7 @@ class ToLowerExpressionImpl {
248
262
  constructor(expression) {
249
263
  this.expression = expression;
250
264
  }
265
+ /** @private */
251
266
  toProto() {
252
267
  return {
253
268
  toLower: {
@@ -265,6 +280,7 @@ class ToUpperExpressionImpl {
265
280
  constructor(expression) {
266
281
  this.expression = expression;
267
282
  }
283
+ /** @private */
268
284
  toProto() {
269
285
  return {
270
286
  toUpper: {
@@ -284,6 +300,7 @@ class SubstringExpressionImpl {
284
300
  this.startExpression = startExpression;
285
301
  this.lengthExpression = lengthExpression;
286
302
  }
303
+ /** @private */
287
304
  toProto() {
288
305
  const proto = {
289
306
  substring: {
@@ -306,6 +323,7 @@ class LengthExpressionImpl {
306
323
  constructor(expression) {
307
324
  this.expression = expression;
308
325
  }
326
+ /** @private */
309
327
  toProto() {
310
328
  return {
311
329
  length: {
@@ -1 +1 @@
1
- {"version":3,"names":["FieldExpressionImpl","constructor","fieldPath","toProto","exports","TextExpressionImpl","value","text","NumericExpressionImpl","numeric","AddExpressionImpl","expressions","add","map","e","SubtractExpressionImpl","firstExpression","secondExpression","subtract","MultiplyExpressionImpl","multiply","DivideExpressionImpl","divide","SumExpressionImpl","sum","AbsExpressionImpl","expression","abs","ModExpressionImpl","mod","FloorExpressionImpl","floor","CeilExpressionImpl","ceil","ConcatExpressionImpl","concat","StringifyExpressionImpl","stringify","ToLowerExpressionImpl","toLower","ToUpperExpressionImpl","toUpper","SubstringExpressionImpl","startExpression","lengthExpression","proto","substring","LengthExpressionImpl","length"],"sources":["../../../../src/api/expressions/Expression.ts"],"sourcesContent":["import * as apiTypes from '../../types/data-item-types'\n\nexport interface Expression {\n /**\n * @internal\n */\n toProto(): apiTypes.Expression\n}\n\n/**\n * @builder\n */\nexport interface FieldExpression extends Expression {}\n\nexport class FieldExpressionImpl implements FieldExpression {\n constructor(private fieldPath: string) {}\n toProto(): apiTypes.Expression {\n return { fieldPath: this.fieldPath }\n }\n}\n\n/**\n * @builder\n */\nexport interface TextExpression extends Expression {}\n\nexport class TextExpressionImpl implements TextExpression {\n constructor(private value: string) {}\n toProto(): apiTypes.Expression {\n return { text: this.value }\n }\n}\n\n/**\n * @builder\n */\nexport interface NumericExpression extends Expression {}\n\nexport class NumericExpressionImpl implements NumericExpression {\n constructor(private value: number) {}\n toProto(): apiTypes.Expression {\n return { numeric: this.value }\n }\n}\n\n/**\n * @builder\n */\nexport interface AddExpression extends Expression {}\n\nexport class AddExpressionImpl implements AddExpression {\n constructor(private expressions: Expression[]) {}\n toProto(): apiTypes.Expression {\n return {\n add: {\n expressions: this.expressions.map((e) => e.toProto()),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface SubtractExpression extends Expression {}\n\nexport class SubtractExpressionImpl implements SubtractExpression {\n constructor(\n private firstExpression: Expression,\n private secondExpression: Expression\n ) {}\n toProto(): apiTypes.Expression {\n return {\n subtract: {\n firstExpression: this.firstExpression.toProto(),\n secondExpression: this.secondExpression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface MultiplyExpression extends Expression {}\n\nexport class MultiplyExpressionImpl implements MultiplyExpression {\n constructor(private expressions: Expression[]) {}\n toProto(): apiTypes.Expression {\n return {\n multiply: {\n expressions: this.expressions.map((e) => e.toProto()),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface DivideExpression extends Expression {}\n\nexport class DivideExpressionImpl implements DivideExpression {\n constructor(\n private firstExpression: Expression,\n private secondExpression: Expression\n ) {}\n toProto(): apiTypes.Expression {\n return {\n divide: {\n firstExpression: this.firstExpression.toProto(),\n secondExpression: this.secondExpression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface SumExpression extends Expression {}\n\nexport class SumExpressionImpl implements SumExpression {\n constructor(private expressions: Expression[]) {}\n toProto(): apiTypes.Expression {\n return {\n sum: {\n expressions: this.expressions.map((e) => e.toProto()),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface AbsExpression extends Expression {}\n\nexport class AbsExpressionImpl implements AbsExpression {\n constructor(private expression: Expression) {}\n toProto(): apiTypes.Expression {\n return {\n abs: {\n expression: this.expression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface ModExpression extends Expression {}\n\nexport class ModExpressionImpl implements ModExpression {\n constructor(\n private firstExpression: Expression,\n private secondExpression: Expression\n ) {}\n toProto(): apiTypes.Expression {\n return {\n mod: {\n firstExpression: this.firstExpression.toProto(),\n secondExpression: this.secondExpression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface FloorExpression extends Expression {}\n\nexport class FloorExpressionImpl implements FloorExpression {\n constructor(private expression: Expression) {}\n toProto(): apiTypes.Expression {\n return {\n floor: {\n expression: this.expression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface CeilExpression extends Expression {}\n\nexport class CeilExpressionImpl implements CeilExpression {\n constructor(private expression: Expression) {}\n toProto(): apiTypes.Expression {\n return {\n ceil: {\n expression: this.expression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface ConcatExpression extends Expression {}\n\nexport class ConcatExpressionImpl implements ConcatExpression {\n constructor(private expressions: Expression[]) {}\n toProto(): apiTypes.Expression {\n return {\n concat: {\n expressions: this.expressions.map((e) => e.toProto()),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface StringifyExpression extends Expression {}\n\nexport class StringifyExpressionImpl implements StringifyExpression {\n constructor(private expression: Expression) {}\n toProto(): apiTypes.Expression {\n return {\n stringify: {\n expression: this.expression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface ToLowerExpression extends Expression {}\n\nexport class ToLowerExpressionImpl implements ToLowerExpression {\n constructor(private expression: Expression) {}\n toProto(): apiTypes.Expression {\n return {\n toLower: {\n expression: this.expression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface ToUpperExpression extends Expression {}\n\nexport class ToUpperExpressionImpl implements ToUpperExpression {\n constructor(private expression: Expression) {}\n toProto(): apiTypes.Expression {\n return {\n toUpper: {\n expression: this.expression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface SubstringExpression extends Expression {}\n\nexport class SubstringExpressionImpl implements SubstringExpression {\n constructor(\n private expression: Expression,\n private startExpression: Expression,\n private lengthExpression?: Expression\n ) {}\n toProto(): apiTypes.Expression {\n const proto: any = {\n substring: {\n expression: this.expression.toProto(),\n startExpression: this.startExpression.toProto(),\n },\n }\n if (this.lengthExpression) {\n proto.substring.lengthExpression = this.lengthExpression.toProto()\n }\n return proto\n }\n}\n\n/**\n * @builder\n */\nexport interface LengthExpression extends Expression {}\n\nexport class LengthExpressionImpl implements LengthExpression {\n constructor(private expression: Expression) {}\n toProto(): apiTypes.Expression {\n return {\n length: { expression: this.expression.toProto() },\n }\n }\n}\n"],"mappings":";;;;AASA;AACA;AACA;;AAGO,MAAMA,mBAAmB,CAA4B;EAC1DC,WAAWA,CAASC,SAAiB,EAAE;IAAA,KAAnBA,SAAiB,GAAjBA,SAAiB;EAAG;EACxCC,OAAOA,CAAA,EAAwB;IAC7B,OAAO;MAAED,SAAS,EAAE,IAAI,CAACA;IAAU,CAAC;EACtC;AACF;;AAEA;AACA;AACA;AAFAE,OAAA,CAAAJ,mBAAA,GAAAA,mBAAA;AAKO,MAAMK,kBAAkB,CAA2B;EACxDJ,WAAWA,CAASK,KAAa,EAAE;IAAA,KAA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F,CAAC;EACH;AACF;;AAEA;AACA;AACA;AAFAC,OAAA,CAAAoC,qBAAA,GAAAA,qBAAA;AAKO,MAAME,uBAAuB,CAAgC;EAClEzC,WAAWA,CACDyB,UAAsB,EACtBiB,eAA2B,EAC3BC,gBAA6B,EACrC;IAAA,KAHQlB,UAAsB,GAAtBA,UAAsB;IAAA,KACtBiB,eAA2B,GAA3BA,eAA2B;IAAA,KAC3BC,gBAA6B,GAA7BA,gBAA6B;EACpC;EACHzC,OAAOA,CAAA,EAAwB;IAC7B,MAAM0C,KAAU,GAAG;MACjBC,SAAS,EAAE;QACTpB,UAAU,EAAE,IAAI,CAACA,UAAU,CAACvB,OAAO,CAAC,CAAC;QACrCwC,eAAe,EAAE,IAAI,CAACA,eAAe,CAACxC,OAAO,CAAC;MAChD;IACF,CAAC;IACD,IAAI,IAAI,CAACyC,gBAAgB,EAAE;MACzBC,KAAK,CAACC,SAAS,CAACF,gBAAgB,GAAG,IAAI,CAACA,gBAAgB,CAACzC,OAAO,CAAC,CAAC;IACpE;IACA,OAAO0C,KAAK;EACd;AACF;;AAEA;AACA;AACA;AAFAzC,OAAA,CAAAsC,uBAAA,GAAAA,uBAAA;AAKO,MAAMK,oBAAoB,CAA6B;EAC5D9C,WAAWA,CAASyB,UAAsB,EAAE;IAAA,KAAxBA,UAAsB,GAAtBA,UAAsB;EAAG;EAC7CvB,OAAOA,CAAA,EAAwB;IAC7B,OAAO;MACL6C,MAAM,EAAE;QAAEtB,UAAU,EAAE,IAAI,CAACA,UAAU,CAACvB,OAAO,CAAC;MAAE;IAClD,CAAC;EACH;AACF;AAACC,OAAA,CAAA2C,oBAAA,GAAAA,oBAAA","ignoreList":[]}
1
+ {"version":3,"names":["FieldExpressionImpl","constructor","fieldPath","toProto","exports","TextExpressionImpl","value","text","NumericExpressionImpl","numeric","AddExpressionImpl","expressions","add","map","e","SubtractExpressionImpl","firstExpression","secondExpression","subtract","MultiplyExpressionImpl","multiply","DivideExpressionImpl","divide","SumExpressionImpl","sum","AbsExpressionImpl","expression","abs","ModExpressionImpl","mod","FloorExpressionImpl","floor","CeilExpressionImpl","ceil","ConcatExpressionImpl","concat","StringifyExpressionImpl","stringify","ToLowerExpressionImpl","toLower","ToUpperExpressionImpl","toUpper","SubstringExpressionImpl","startExpression","lengthExpression","proto","substring","LengthExpressionImpl","length"],"sources":["../../../../src/api/expressions/Expression.ts"],"sourcesContent":["import * as apiTypes from '../../types/data-item-types'\n\nexport interface Expression {\n /**\n * @private\n */\n toProto(): apiTypes.Expression\n}\n\n/**\n * @builder\n */\nexport interface FieldExpression extends Expression {}\n\nexport class FieldExpressionImpl implements FieldExpression {\n constructor(private fieldPath: string) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return { fieldPath: this.fieldPath }\n }\n}\n\n/**\n * @builder\n */\nexport interface TextExpression extends Expression {}\n\nexport class TextExpressionImpl implements TextExpression {\n constructor(private value: string) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return { text: this.value }\n }\n}\n\n/**\n * @builder\n */\nexport interface NumericExpression extends Expression {}\n\nexport class NumericExpressionImpl implements NumericExpression {\n constructor(private value: number) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return { numeric: this.value }\n }\n}\n\n/**\n * @builder\n */\nexport interface AddExpression extends Expression {}\n\nexport class AddExpressionImpl implements AddExpression {\n constructor(private expressions: Expression[]) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return {\n add: {\n expressions: this.expressions.map((e) => e.toProto()),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface SubtractExpression extends Expression {}\n\nexport class SubtractExpressionImpl implements SubtractExpression {\n constructor(\n private firstExpression: Expression,\n private secondExpression: Expression\n ) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return {\n subtract: {\n firstExpression: this.firstExpression.toProto(),\n secondExpression: this.secondExpression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface MultiplyExpression extends Expression {}\n\nexport class MultiplyExpressionImpl implements MultiplyExpression {\n constructor(private expressions: Expression[]) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return {\n multiply: {\n expressions: this.expressions.map((e) => e.toProto()),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface DivideExpression extends Expression {}\n\nexport class DivideExpressionImpl implements DivideExpression {\n constructor(\n private firstExpression: Expression,\n private secondExpression: Expression\n ) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return {\n divide: {\n firstExpression: this.firstExpression.toProto(),\n secondExpression: this.secondExpression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface SumExpression extends Expression {}\n\nexport class SumExpressionImpl implements SumExpression {\n constructor(private expressions: Expression[]) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return {\n sum: {\n expressions: this.expressions.map((e) => e.toProto()),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface AbsExpression extends Expression {}\n\nexport class AbsExpressionImpl implements AbsExpression {\n constructor(private expression: Expression) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return {\n abs: {\n expression: this.expression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface ModExpression extends Expression {}\n\nexport class ModExpressionImpl implements ModExpression {\n constructor(\n private firstExpression: Expression,\n private secondExpression: Expression\n ) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return {\n mod: {\n firstExpression: this.firstExpression.toProto(),\n secondExpression: this.secondExpression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface FloorExpression extends Expression {}\n\nexport class FloorExpressionImpl implements FloorExpression {\n constructor(private expression: Expression) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return {\n floor: {\n expression: this.expression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface CeilExpression extends Expression {}\n\nexport class CeilExpressionImpl implements CeilExpression {\n constructor(private expression: Expression) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return {\n ceil: {\n expression: this.expression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface ConcatExpression extends Expression {}\n\nexport class ConcatExpressionImpl implements ConcatExpression {\n constructor(private expressions: Expression[]) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return {\n concat: {\n expressions: this.expressions.map((e) => e.toProto()),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface StringifyExpression extends Expression {}\n\nexport class StringifyExpressionImpl implements StringifyExpression {\n constructor(private expression: Expression) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return {\n stringify: {\n expression: this.expression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface ToLowerExpression extends Expression {}\n\nexport class ToLowerExpressionImpl implements ToLowerExpression {\n constructor(private expression: Expression) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return {\n toLower: {\n expression: this.expression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface ToUpperExpression extends Expression {}\n\nexport class ToUpperExpressionImpl implements ToUpperExpression {\n constructor(private expression: Expression) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return {\n toUpper: {\n expression: this.expression.toProto(),\n },\n }\n }\n}\n\n/**\n * @builder\n */\nexport interface SubstringExpression extends Expression {}\n\nexport class SubstringExpressionImpl implements SubstringExpression {\n constructor(\n private expression: Expression,\n private startExpression: Expression,\n private lengthExpression?: Expression\n ) {}\n /** @private */\n toProto(): apiTypes.Expression {\n const proto: any = {\n substring: {\n expression: this.expression.toProto(),\n startExpression: this.startExpression.toProto(),\n },\n }\n if (this.lengthExpression) {\n proto.substring.lengthExpression = this.lengthExpression.toProto()\n }\n return proto\n }\n}\n\n/**\n * @builder\n */\nexport interface LengthExpression extends Expression {}\n\nexport class LengthExpressionImpl implements LengthExpression {\n constructor(private expression: Expression) {}\n /** @private */\n toProto(): apiTypes.Expression {\n return {\n length: { expression: this.expression.toProto() },\n }\n }\n}\n"],"mappings":";;;;AASA;AACA;AACA;;AAGO,MAAMA,mBAAmB,CAA4B;EAC1DC,WAAWA,CAASC,SAAiB,E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;IAC7B,OAAO;MACL6C,MAAM,EAAE;QAAEtB,UAAU,EAAE,IAAI,CAACA,UAAU,CAACvB,OAAO,CAAC;MAAE;IAClD,CAAC;EACH;AACF;AAACC,OAAA,CAAA2C,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -26,6 +26,8 @@ class FilterStageImpl extends _QueryBase.QueryBase {
26
26
  get invalidArguments() {
27
27
  return [];
28
28
  }
29
+
30
+ /** @private */
29
31
  toProto() {
30
32
  return {
31
33
  filter: this.filterBuilder.build()
@@ -1 +1 @@
1
- {"version":3,"names":["_QueryBase","require","FilterStageImpl","QueryBase","constructor","origin","collectionName","filterBuilder","copy","params","invalidArguments","toProto","filter","build","exports"],"sources":["../../../../src/api/stages/FilterStage.ts"],"sourcesContent":["import { QueryBase } from '../QueryBase'\nimport { PlatformizedFilterBuilder, WithFilter } from '../../filter'\nimport * as apiTypes from '../../types/data-item-types'\nimport { PipelineStage } from './stages'\n\ntype Comparable = string | number | Date\n\n/**\n * @builder\n * Filter stage for aggregate pipeline operations. This interface provides filtering capabilities\n * specifically designed for use within aggregate pipelines, typically used with `stages.filter()`\n * in pipeline arrays to refine data based on specified conditions.\n */\nexport interface FilterStage extends PipelineStage, WithFilter<FilterStage> {\n /**\n * @internal\n */\n readonly filterTree: Record<string, any>\n\n /**\n * @internal\n */\n readonly invalidArguments: string[]\n\n /**\n * Filters pipeline data to match items whose specified field value equals the specified value.\n *\n * The `eq()` method refines this aggregate pipeline filter to only\n * match items where the value of the specified field equals the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * Matching strings with `eq()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If `field` points to a collection field of type array, `eq()` includes the item as long as at least one array element matches the specified `value`.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to compare with.\n * @requiredField value\n * @returns Refined filter.\n */\n eq(field: string, value: any): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value does not equal the specified value.\n *\n * The `ne()` method refines this aggregate pipeline filter to only\n * match items where the value of the specified field does not equal the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type is considered not equal to the same number stored as a Number type.\n *\n * Matching strings with `ne()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of `field` is an array, `ne()` includes items\n * in which none of the elements of the array match the specified `value`.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined filter.\n */\n ne(field: string, value: any): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value is greater than or equal to the specified\n * value.\n *\n * The `ge()` method refines this aggregate pipeline filter to only\n * match items where the value of the specified field is greater than or\n * equal to the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically,\n * so `\"abc\"` is greater than or equal to `\"ABC\"` (because of the greater than),\n * but `\"ABC\"` is not greater than or equal to `\"abc\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined filter.\n */\n ge(field: string, value: string | number | Date): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value is greater than the specified value.\n *\n * The `gt()` method refines this aggregate pipeline filter to only match\n * items where the value of the specified field is greater than the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically, so `\"text\"` is greater than `\"Text\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns An object with the filter definition, based on the supplied parameters.\n */\n gt(field: string, value: string | number | Date): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value is less than or equal to the specified\n * value.\n *\n * The `le()` method refines this aggregate pipeline filter to only match\n * items where the value of the specified field is less than or equal to the\n * specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically,\n * so `\"ABC\"` is less than or equal to `\"abc\"` (because of the less than),\n * but `\"abc\"` is not less than or equal to `\"ABC\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined filter.\n */\n le(field: string, value: string | number | Date): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value is less than the specified value.\n *\n * The `lt()` method refines this aggregate pipeline filter to only match\n * items where the value of the specified field is less than the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically, so `\"Text\"` is less than `\"text\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns An object with the filter definition, based on the supplied parameters.\n */\n lt(field: string, value: string | number | Date): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field has any value.\n *\n * The `isNotEmpty()` method refines this aggregate pipeline filter to only match items where the\n * value of the specified field is not `null` or `undefined`.\n *\n * If the field contains any value at all for a given item, including the\n * empty string or an invalid value, that item will match the filter.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for a value.\n * @requiredField field\n * @returns Refined filter.\n */\n isNotEmpty(field: string): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field does not exist or does not have any value.\n *\n * The `isEmpty()` method refines this aggregate pipeline filter to only match items where the\n * value of the specified field is `null` or `undefined` or the field does\n * not exist.\n *\n * If the field contains any value at all for a given item, including the\n * empty string or an invalid value, that item will match the filter.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for a value.\n * @requiredField field\n * @returns An object representing the refined filter.\n */\n isEmpty(field: string): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value starts with a specified string.\n *\n * The `startsWith()` method refines this aggregate pipeline filter to\n * only match items where the value of the specified field starts with the\n * defined `string`. Matching with `startsWith()` is not case sensitive, so `\"TEXT\"` starts\n * with `\"tex\"`.\n *\n * You can only use `startsWith()` with a field whose value is a String or Reference.\n * When using a Reference, `startsWith()` matches by the ID of the referenced item as Strings.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the `value` parameter.\n * @requiredField field\n * @param value - Value to look for at the beginning of the specified field value.\n * @requiredField value\n * @returns Refined filter.\n */\n startsWith(field: string, value: string): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value ends with a specified string.\n *\n * The `endsWith()` method refines this aggregate pipeline filter to only\n * match items where the value of the specified field ends with the specified\n * `string`. Matching with `endsWith()` is not case sensitive, so `\"TEXT\"` ends\n * with `\"ext\"`.\n *\n * You can only use `endsWith()` with a field whose value is a String or Reference.\n * When using a Reference, `endsWith()` matches by the ID of the referenced item as Strings.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the string.\n * @requiredField field\n * @param value - Value to look for at the end of the specified field value.\n * @requiredField value\n * @returns Refined filter.\n */\n endsWith(field: string, value: string): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value contains the specified value.\n *\n * The `contains()` method refines the aggregate pipeline filter to only match items for which the value of the specified field contains the specified value. `contains()` is not case-sensitive, so the value `sunday` is considered to contain the value `Sun`.\n *\n * You can use `contains()` with a field whose type is a string or a reference. However, for fields whose type is reference, `contains()` matches by the ID of the referenced item as a string. Instead, use the [`eq()`](https://dev.wix.com/docs/sdk/backend-modules/data/wix-data-items-sdk-1-0-0/wix-data-filter/eq) method.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the provided value.\n * @requiredField field\n * @param value - Value to locate in the specified field value.\n * @requiredField value\n * @returns Refined filter.\n */\n contains(field: string, value: string): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value equals any of the specified `values`\n * parameters.\n *\n * The `hasSome()` method refines this aggregate pipeline filter to\n * only match items where the value of the specified field equals any of\n * the specified values.\n *\n * Matching strings with `hasSome()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of the specified field is an array, `hasSome()` will match\n * if any of the elements of that array match any of the specified values.\n *\n * If the specified field contains multiple references, pass item IDs in the\n * `value` field. In such a case, `hasSome()` will match if any of the\n * multiple references match any of the specified ID values.\n *\n * You can specify a list of values to match by providing an array of\n * String, Number, or Date types as the `value` parameters.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param values - Values to match.\n * @requiredField values\n * @returns An object representing the refined filter.\n */\n hasSome(field: string, ...values: Comparable[]): FilterStage\n\n /**\n * Overload for `hasSome()`\n * @public\n * @documentationMaturity preview\n */\n hasSome(field: string, values: Comparable[]): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field values equals all of the specified `value`\n * parameters.\n *\n * The `hasAll()` method refines this aggregate pipeline filter to\n * only match items where the value of the specified field equals all of\n * the specified values.\n *\n * Matching strings with `hasAll()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of the specified field is an array, `hasAll()` will match\n * if there is a match in the elements of that array for all of the specified\n * values.\n *\n * You can specify a list of values to match by providing an array of\n * String, Number, or Date types as the `value` parameters.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `values`.\n * @requiredField field\n * @param values - Values to match.\n * @requiredField values\n * @returns An object representing the refined filter.\n */\n hasAll(field: string, ...values: Comparable[]): FilterStage\n\n /**\n * Overload for `hasAll()`\n * @public\n * @documentationMaturity preview\n */\n hasAll(field: string, values: Comparable[]): FilterStage\n\n /**\n * Adds an `or` condition to the aggregate pipeline filter.\n *\n * The `or()` method adds an inclusive `or` condition to this pipeline filter. A filter\n * with an `or` returns all the items that match the filter as defined up to\n * the `or` method, the items that match the filter passed to the `or`\n * method, and the items that match both.\n *\n * The `or()` method is designed to work with 2 or more queries or filters.\n * If you use it on its own, it will return all the items in a collection.\n * @public\n * @documentationMaturity preview\n * @param filter - Filter to add to the initial filter as an `or` condition.\n * @requiredField filter\n * @returns Object representing the refined filter.\n */\n or(filter: FilterStage): FilterStage\n\n /**\n * Adds an `and` condition to the aggregate pipeline filter.\n *\n * A pipeline filter with an `and` condition returns all items that meet the conditions defined on both sides of the condition.\n *\n * Use the `and()` method when performing compound queries. For example, the final filter in this set of\n * queries returns results where status is either pending or rejected **and** age is either less than 25 or greater\n * than 65.\n *\n * ```js\n * let statusFilter = stages.filter()\n * .eq(\"status\", \"pending\")\n * .or(stages.filter().eq(\"status\", \"rejected\"));\n *\n * let ageFilter = stages.filter()\n * .lt(\"age\", 25)\n * .or(stages.filter().gt(\"age\", 65));\n *\n * let statusAndAgeFilter = statusFilter.and(ageFilter);\n * ```\n *\n * > **Notes**:\n * > - The `and()` method is designed to work with 2 or more queries or filters. If used with a single query or filter, it returns all items in a collection.\n * > - When chaining multiple `FilterStage` methods to a filter, an `and` condition is implied. In such cases, you do not need to call the `and()` method explicitly. For example, this filter returns results where an item `status` is `active` and `age` is greater than 25:\n *\n * ```js\n * stages.filter().eq(\"status\", \"active\").gt(\"age\", 25);\n * ```\n *\n * @public\n * @documentationMaturity preview\n * @param filter - `FilterStage` used with an `and` condition.\n * @requiredField filter\n * @returns The compound filter.\n */\n and(filter: FilterStage): FilterStage\n\n /**\n * Adds a `not` condition to the aggregate pipeline filter.\n *\n * The `not()` method adds a `not` condition to this pipeline filter. A filter with a `not`\n * returns all the items that match the filter as defined up to the `not`\n * method, but don't match the filter passed to the `not` method.\n *\n * If the filter only contains a `not()` method, it returns all the items\n * that don't match the filter defined by the `not` method.\n *\n * @public\n * @documentationMaturity preview\n * @param filter - Filter to add to the initial filter as a `not` condition.\n * @requiredField filter\n * @returns Object representing the refined filter.\n */\n not(filter: FilterStage): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value is within the defined range.\n *\n * The `between()` method refines this aggregate pipeline filter to match items for which the value of the specified field is greater than or equal to `rangeStart` and less than `rangeEnd`. The method only matches values of [the same type](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-type).\n *\n * The following types can be compared:\n * - Number: Compared numerically.\n * - Date: Compared as JavaScript Date objects.\n * - String: Compared lexicographically:\n * - `\"A\"` and `\"M\"` are considered between `\"A\"` and `\"Z\"`, but `\"a\"`, `\"m\"`, `\"z\"` and `\"Z\"` are not.\n * - `\"A\"`, `\"M\"`, `\"Z\"`, and `\"a\"` are considered between `\"A\"` and `\"z\"`, but `\"z\"` is not.\n *\n * > **Note**: Items that do not have a value for the specified field are considered as the lowest comparable value and are ranked last.\n *\n * @public\n * @documentationMaturity preview\n * @param field - Field to compare with `rangeStart` and `rangeEnd`.\n * @requiredField field\n * @param rangeStart - Starting value of the range to match.\n * @requiredField rangeStart\n * @param rangeEnd - Ending value of the range to match.\n * @requiredField rangeEnd\n * @returns Refined filter.\n */\n between(\n field: string,\n rangeStart: string | number | Date,\n rangeEnd: string | number | Date\n ): FilterStage\n}\n\nexport class FilterStageImpl\n extends QueryBase<FilterStageImpl>\n implements FilterStage\n{\n constructor(origin?: {\n collectionName?: string\n filterBuilder?: PlatformizedFilterBuilder\n }) {\n super({\n collectionName: origin?.collectionName || '',\n filterBuilder: origin?.filterBuilder,\n })\n }\n\n protected copy(params: any): FilterStageImpl {\n return new FilterStageImpl({\n collectionName: this.collectionName,\n filterBuilder: params.filterBuilder || this.filterBuilder,\n })\n }\n\n get invalidArguments(): string[] {\n return []\n }\n\n toProto(): apiTypes.Stage {\n return { filter: this.filterBuilder.build() }\n }\n}\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAOA;AACA;AACA;AACA;AACA;AACA;;AAubO,MAAMC,eAAe,SAClBC,oBAAS,CAEnB;EACEC,WAAWA,CAACC,MAGX,EAAE;IACD,KAAK,CAAC;MACJC,cAAc,EAAE,CAAAD,MAAM,oBAANA,MAAM,CAAEC,cAAc,KAAI,EAAE;MAC5CC,aAAa,EAAEF,MAAM,oBAANA,MAAM,CAAEE;IACzB,CAAC,CAAC;EACJ;EAEUC,IAAIA,CAACC,MAAW,EAAmB;IAC3C,OAAO,IAAIP,eAAe,CAAC;MACzBI,cAAc,EAAE,IAAI,CAACA,cAAc;MACnCC,aAAa,EAAEE,MAAM,CAACF,aAAa,IAAI,IAAI,CAACA;IAC9C,CAAC,CAAC;EACJ;EAEA,IAAIG,gBAAgBA,CAAA,EAAa;IAC/B,OAAO,EAAE;EACX;EAEAC,OAAOA,CAAA,EAAmB;IACxB,OAAO;MAAEC,MAAM,EAAE,IAAI,CAACL,aAAa,CAACM,KAAK,CAAC;IAAE,CAAC;EAC/C;AACF;AAACC,OAAA,CAAAZ,eAAA,GAAAA,eAAA","ignoreList":[]}
1
+ {"version":3,"names":["_QueryBase","require","FilterStageImpl","QueryBase","constructor","origin","collectionName","filterBuilder","copy","params","invalidArguments","toProto","filter","build","exports"],"sources":["../../../../src/api/stages/FilterStage.ts"],"sourcesContent":["import { QueryBase } from '../QueryBase'\nimport { PlatformizedFilterBuilder, WithFilter } from '../../filter'\nimport * as apiTypes from '../../types/data-item-types'\nimport { PipelineStage } from './stages'\n\ntype Comparable = string | number | Date\n\n/**\n * @builder\n * Filter stage for aggregate pipeline operations. This interface provides filtering capabilities\n * specifically designed for use within aggregate pipelines, typically used with `stages.filter()`\n * in pipeline arrays to refine data based on specified conditions.\n */\nexport interface FilterStage extends PipelineStage, WithFilter<FilterStage> {\n /**\n * @internal\n */\n readonly filterTree: Record<string, any>\n\n /**\n * @internal\n */\n readonly invalidArguments: string[]\n\n /**\n * Filters pipeline data to match items whose specified field value equals the specified value.\n *\n * The `eq()` method refines this aggregate pipeline filter to only\n * match items where the value of the specified field equals the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * Matching strings with `eq()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If `field` points to a collection field of type array, `eq()` includes the item as long as at least one array element matches the specified `value`.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to compare with.\n * @requiredField value\n * @returns Refined filter.\n */\n eq(field: string, value: any): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value does not equal the specified value.\n *\n * The `ne()` method refines this aggregate pipeline filter to only\n * match items where the value of the specified field does not equal the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type is considered not equal to the same number stored as a Number type.\n *\n * Matching strings with `ne()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of `field` is an array, `ne()` includes items\n * in which none of the elements of the array match the specified `value`.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined filter.\n */\n ne(field: string, value: any): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value is greater than or equal to the specified\n * value.\n *\n * The `ge()` method refines this aggregate pipeline filter to only\n * match items where the value of the specified field is greater than or\n * equal to the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically,\n * so `\"abc\"` is greater than or equal to `\"ABC\"` (because of the greater than),\n * but `\"ABC\"` is not greater than or equal to `\"abc\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined filter.\n */\n ge(field: string, value: string | number | Date): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value is greater than the specified value.\n *\n * The `gt()` method refines this aggregate pipeline filter to only match\n * items where the value of the specified field is greater than the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically, so `\"text\"` is greater than `\"Text\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns An object with the filter definition, based on the supplied parameters.\n */\n gt(field: string, value: string | number | Date): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value is less than or equal to the specified\n * value.\n *\n * The `le()` method refines this aggregate pipeline filter to only match\n * items where the value of the specified field is less than or equal to the\n * specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically,\n * so `\"ABC\"` is less than or equal to `\"abc\"` (because of the less than),\n * but `\"abc\"` is not less than or equal to `\"ABC\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns Refined filter.\n */\n le(field: string, value: string | number | Date): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value is less than the specified value.\n *\n * The `lt()` method refines this aggregate pipeline filter to only match\n * items where the value of the specified field is less than the specified `value`.\n *\n * It only matches values of the same type. For example, a number value stored\n * as a String type does not match the same number stored as a Number type.\n *\n * If a field contains a number as a String, that value is compared\n * alphabetically and not numerically. Items that do not have a value for the\n * specified field are ranked lowest.\n *\n * The following field types can be compared:\n * - Number: Compares numerically.\n * - Date: Compares JavaScript Date objects.\n * - String: Compares lexicographically, so `\"Text\"` is less than `\"text\"`.\n * - Reference: Compares by the ID of the referenced item as a String.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param value - Value to match.\n * @requiredField value\n * @returns An object with the filter definition, based on the supplied parameters.\n */\n lt(field: string, value: string | number | Date): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field has any value.\n *\n * The `isNotEmpty()` method refines this aggregate pipeline filter to only match items where the\n * value of the specified field is not `null` or `undefined`.\n *\n * If the field contains any value at all for a given item, including the\n * empty string or an invalid value, that item will match the filter.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for a value.\n * @requiredField field\n * @returns Refined filter.\n */\n isNotEmpty(field: string): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field does not exist or does not have any value.\n *\n * The `isEmpty()` method refines this aggregate pipeline filter to only match items where the\n * value of the specified field is `null` or `undefined` or the field does\n * not exist.\n *\n * If the field contains any value at all for a given item, including the\n * empty string or an invalid value, that item will match the filter.\n * @public\n * @documentationMaturity preview\n * @param field - Field in which to check for a value.\n * @requiredField field\n * @returns An object representing the refined filter.\n */\n isEmpty(field: string): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value starts with a specified string.\n *\n * The `startsWith()` method refines this aggregate pipeline filter to\n * only match items where the value of the specified field starts with the\n * defined `string`. Matching with `startsWith()` is not case sensitive, so `\"TEXT\"` starts\n * with `\"tex\"`.\n *\n * You can only use `startsWith()` with a field whose value is a String or Reference.\n * When using a Reference, `startsWith()` matches by the ID of the referenced item as Strings.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the `value` parameter.\n * @requiredField field\n * @param value - Value to look for at the beginning of the specified field value.\n * @requiredField value\n * @returns Refined filter.\n */\n startsWith(field: string, value: string): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value ends with a specified string.\n *\n * The `endsWith()` method refines this aggregate pipeline filter to only\n * match items where the value of the specified field ends with the specified\n * `string`. Matching with `endsWith()` is not case sensitive, so `\"TEXT\"` ends\n * with `\"ext\"`.\n *\n * You can only use `endsWith()` with a field whose value is a String or Reference.\n * When using a Reference, `endsWith()` matches by the ID of the referenced item as Strings.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the string.\n * @requiredField field\n * @param value - Value to look for at the end of the specified field value.\n * @requiredField value\n * @returns Refined filter.\n */\n endsWith(field: string, value: string): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value contains the specified value.\n *\n * The `contains()` method refines the aggregate pipeline filter to only match items for which the value of the specified field contains the specified value. `contains()` is not case-sensitive, so the value `sunday` is considered to contain the value `Sun`.\n *\n * You can use `contains()` with a field whose type is a string or a reference. However, for fields whose type is reference, `contains()` matches by the ID of the referenced item as a string. Instead, use the [`eq()`](https://dev.wix.com/docs/sdk/backend-modules/data/wix-data-items-sdk-1-0-0/wix-data-filter/eq) method.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with the provided value.\n * @requiredField field\n * @param value - Value to locate in the specified field value.\n * @requiredField value\n * @returns Refined filter.\n */\n contains(field: string, value: string): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value equals any of the specified `values`\n * parameters.\n *\n * The `hasSome()` method refines this aggregate pipeline filter to\n * only match items where the value of the specified field equals any of\n * the specified values.\n *\n * Matching strings with `hasSome()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of the specified field is an array, `hasSome()` will match\n * if any of the elements of that array match any of the specified values.\n *\n * If the specified field contains multiple references, pass item IDs in the\n * `value` field. In such a case, `hasSome()` will match if any of the\n * multiple references match any of the specified ID values.\n *\n * You can specify a list of values to match by providing an array of\n * String, Number, or Date types as the `value` parameters.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `value`.\n * @requiredField field\n * @param values - Values to match.\n * @requiredField values\n * @returns An object representing the refined filter.\n */\n hasSome(field: string, ...values: Comparable[]): FilterStage\n\n /**\n * Overload for `hasSome()`\n * @public\n * @documentationMaturity preview\n */\n hasSome(field: string, values: Comparable[]): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field values equals all of the specified `value`\n * parameters.\n *\n * The `hasAll()` method refines this aggregate pipeline filter to\n * only match items where the value of the specified field equals all of\n * the specified values.\n *\n * Matching strings with `hasAll()` is case sensitive, so `\"text\"` is not equal to `\"Text\"`.\n *\n * If the value of the specified field is an array, `hasAll()` will match\n * if there is a match in the elements of that array for all of the specified\n * values.\n *\n * You can specify a list of values to match by providing an array of\n * String, Number, or Date types as the `value` parameters.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is compared with `values`.\n * @requiredField field\n * @param values - Values to match.\n * @requiredField values\n * @returns An object representing the refined filter.\n */\n hasAll(field: string, ...values: Comparable[]): FilterStage\n\n /**\n * Overload for `hasAll()`\n * @public\n * @documentationMaturity preview\n */\n hasAll(field: string, values: Comparable[]): FilterStage\n\n /**\n * Adds an `or` condition to the aggregate pipeline filter.\n *\n * The `or()` method adds an inclusive `or` condition to this pipeline filter. A filter\n * with an `or` returns all the items that match the filter as defined up to\n * the `or` method, the items that match the filter passed to the `or`\n * method, and the items that match both.\n *\n * The `or()` method is designed to work with 2 or more queries or filters.\n * If you use it on its own, it will return all the items in a collection.\n * @public\n * @documentationMaturity preview\n * @param filter - Filter to add to the initial filter as an `or` condition.\n * @requiredField filter\n * @returns Object representing the refined filter.\n */\n or(filter: FilterStage): FilterStage\n\n /**\n * Adds an `and` condition to the aggregate pipeline filter.\n *\n * A pipeline filter with an `and` condition returns all items that meet the conditions defined on both sides of the condition.\n *\n * Use the `and()` method when performing compound queries. For example, the final filter in this set of\n * queries returns results where status is either pending or rejected **and** age is either less than 25 or greater\n * than 65.\n *\n * ```js\n * let statusFilter = stages.filter()\n * .eq(\"status\", \"pending\")\n * .or(stages.filter().eq(\"status\", \"rejected\"));\n *\n * let ageFilter = stages.filter()\n * .lt(\"age\", 25)\n * .or(stages.filter().gt(\"age\", 65));\n *\n * let statusAndAgeFilter = statusFilter.and(ageFilter);\n * ```\n *\n * > **Notes**:\n * > - The `and()` method is designed to work with 2 or more queries or filters. If used with a single query or filter, it returns all items in a collection.\n * > - When chaining multiple `FilterStage` methods to a filter, an `and` condition is implied. In such cases, you do not need to call the `and()` method explicitly. For example, this filter returns results where an item `status` is `active` and `age` is greater than 25:\n *\n * ```js\n * stages.filter().eq(\"status\", \"active\").gt(\"age\", 25);\n * ```\n *\n * @public\n * @documentationMaturity preview\n * @param filter - `FilterStage` used with an `and` condition.\n * @requiredField filter\n * @returns The compound filter.\n */\n and(filter: FilterStage): FilterStage\n\n /**\n * Adds a `not` condition to the aggregate pipeline filter.\n *\n * The `not()` method adds a `not` condition to this pipeline filter. A filter with a `not`\n * returns all the items that match the filter as defined up to the `not`\n * method, but don't match the filter passed to the `not` method.\n *\n * If the filter only contains a `not()` method, it returns all the items\n * that don't match the filter defined by the `not` method.\n *\n * @public\n * @documentationMaturity preview\n * @param filter - Filter to add to the initial filter as a `not` condition.\n * @requiredField filter\n * @returns Object representing the refined filter.\n */\n not(filter: FilterStage): FilterStage\n\n /**\n * Filters pipeline data to match items whose specified field value is within the defined range.\n *\n * The `between()` method refines this aggregate pipeline filter to match items for which the value of the specified field is greater than or equal to `rangeStart` and less than `rangeEnd`. The method only matches values of [the same type](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-type).\n *\n * The following types can be compared:\n * - Number: Compared numerically.\n * - Date: Compared as JavaScript Date objects.\n * - String: Compared lexicographically:\n * - `\"A\"` and `\"M\"` are considered between `\"A\"` and `\"Z\"`, but `\"a\"`, `\"m\"`, `\"z\"` and `\"Z\"` are not.\n * - `\"A\"`, `\"M\"`, `\"Z\"`, and `\"a\"` are considered between `\"A\"` and `\"z\"`, but `\"z\"` is not.\n *\n * > **Note**: Items that do not have a value for the specified field are considered as the lowest comparable value and are ranked last.\n *\n * @public\n * @documentationMaturity preview\n * @param field - Field to compare with `rangeStart` and `rangeEnd`.\n * @requiredField field\n * @param rangeStart - Starting value of the range to match.\n * @requiredField rangeStart\n * @param rangeEnd - Ending value of the range to match.\n * @requiredField rangeEnd\n * @returns Refined filter.\n */\n between(\n field: string,\n rangeStart: string | number | Date,\n rangeEnd: string | number | Date\n ): FilterStage\n}\n\nexport class FilterStageImpl\n extends QueryBase<FilterStageImpl>\n implements FilterStage\n{\n constructor(origin?: {\n collectionName?: string\n filterBuilder?: PlatformizedFilterBuilder\n }) {\n super({\n collectionName: origin?.collectionName || '',\n filterBuilder: origin?.filterBuilder,\n })\n }\n\n protected copy(params: any): FilterStageImpl {\n return new FilterStageImpl({\n collectionName: this.collectionName,\n filterBuilder: params.filterBuilder || this.filterBuilder,\n })\n }\n\n get invalidArguments(): string[] {\n return []\n }\n\n /** @private */\n toProto(): apiTypes.Stage {\n return { filter: this.filterBuilder.build() }\n }\n}\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAOA;AACA;AACA;AACA;AACA;AACA;;AAubO,MAAMC,eAAe,SAClBC,oBAAS,CAEnB;EACEC,WAAWA,CAACC,MAGX,EAAE;IACD,KAAK,CAAC;MACJC,cAAc,EAAE,CAAAD,MAAM,oBAANA,MAAM,CAAEC,cAAc,KAAI,EAAE;MAC5CC,aAAa,EAAEF,MAAM,oBAANA,MAAM,CAAEE;IACzB,CAAC,CAAC;EACJ;EAEUC,IAAIA,CAACC,MAAW,EAAmB;IAC3C,OAAO,IAAIP,eAAe,CAAC;MACzBI,cAAc,EAAE,IAAI,CAACA,cAAc;MACnCC,aAAa,EAAEE,MAAM,CAACF,aAAa,IAAI,IAAI,CAACA;IAC9C,CAAC,CAAC;EACJ;EAEA,IAAIG,gBAAgBA,CAAA,EAAa;IAC/B,OAAO,EAAE;EACX;;EAEA;EACAC,OAAOA,CAAA,EAAmB;IACxB,OAAO;MAAEC,MAAM,EAAE,IAAI,CAACL,aAAa,CAACM,KAAK,CAAC;IAAE,CAAC;EAC/C;AACF;AAACC,OAAA,CAAAZ,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -53,6 +53,8 @@ class GroupStageImpl {
53
53
  });
54
54
  return this;
55
55
  }
56
+
57
+ /** @private */
56
58
  toProto() {
57
59
  return {
58
60
  group: {
@@ -1 +1 @@
1
- {"version":3,"names":["_Expression","require","GroupStageImpl","constructor","_defineProperty2","default","by","expression","key","ids","push","sum","resultFieldName","addAccumulator","avg","min","max","count","NumericExpressionImpl","first","last","type","accumulators","toProto","group","groupIds","map","id","accumulator","exports"],"sources":["../../../../src/api/stages/GroupStage.ts"],"sourcesContent":["import { Expression, NumericExpressionImpl } from '../expressions/Expression'\nimport * as apiTypes from '../../types/data-item-types'\nimport { PipelineStage } from './stages'\n\n/**\n * @builder\n */\nexport interface GroupStage extends PipelineStage {\n by(expression: Expression, key: string): GroupStage\n sum(expression: Expression, resultFieldName: string): GroupStage\n avg(expression: Expression, resultFieldName: string): GroupStage\n min(expression: Expression, resultFieldName: string): GroupStage\n max(expression: Expression, resultFieldName: string): GroupStage\n count(resultFieldName: string): GroupStage\n first(expression: Expression, resultFieldName: string): GroupStage\n last(expression: Expression, resultFieldName: string): GroupStage\n push(expression: Expression, resultFieldName: string): GroupStage\n}\n\nexport class GroupStageImpl implements GroupStage {\n private ids: Id[] = []\n private accumulators: Accumulator[] = []\n\n by(expression: Expression, key: string): GroupStage {\n this.ids.push({ expression, key })\n return this\n }\n\n sum(expression: Expression, resultFieldName: string): GroupStage {\n return this.addAccumulator(expression, 'sum', resultFieldName)\n }\n\n avg(expression: Expression, resultFieldName: string): GroupStage {\n return this.addAccumulator(expression, 'avg', resultFieldName)\n }\n\n min(expression: Expression, resultFieldName: string): GroupStage {\n return this.addAccumulator(expression, 'min', resultFieldName)\n }\n\n max(expression: Expression, resultFieldName: string): GroupStage {\n return this.addAccumulator(expression, 'max', resultFieldName)\n }\n\n count(resultFieldName: string): GroupStage {\n return this.addAccumulator(\n new NumericExpressionImpl(1),\n 'sum',\n resultFieldName\n )\n }\n\n first(expression: Expression, resultFieldName: string): GroupStage {\n return this.addAccumulator(expression, 'first', resultFieldName)\n }\n\n last(expression: Expression, resultFieldName: string): GroupStage {\n return this.addAccumulator(expression, 'last', resultFieldName)\n }\n\n push(expression: Expression, resultFieldName: string): GroupStage {\n return this.addAccumulator(expression, 'push', resultFieldName)\n }\n\n private addAccumulator(\n expression: Expression,\n type: AccumulatorType,\n resultFieldName: string\n ): GroupStage {\n this.accumulators.push({ type, expression, resultFieldName })\n return this\n }\n\n toProto(): apiTypes.Stage {\n return {\n group: {\n groupIds: this.ids.map((id) => ({\n expression: id.expression.toProto(),\n key: id.key,\n })),\n accumulators: this.accumulators.map((accumulator) => ({\n [accumulator.type]: {\n expression: accumulator.expression.toProto(),\n },\n resultFieldName: accumulator.resultFieldName,\n })),\n },\n }\n }\n}\n\ntype AccumulatorType = 'avg' | 'min' | 'max' | 'sum' | 'first' | 'last' | 'push'\n\ninterface Id {\n expression: Expression\n key: string\n}\n\ninterface Accumulator {\n type: AccumulatorType\n expression: Expression\n resultFieldName: string\n}\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAIA;AACA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AsB,EAAEK,eAAuB,EAAc;IAChE,OAAO,IAAI,CAACC,cAAc,CAACN,UAAU,EAAE,MAAM,EAAEK,eAAe,CAAC;EACjE;EAEQC,cAAcA,CACpBN,UAAsB,EACtBc,IAAqB,EACrBT,eAAuB,EACX;IACZ,IAAI,CAACU,YAAY,CAACZ,IAAI,CAAC;MAAEW,IAAI;MAAEd,UAAU;MAAEK;IAAgB,CAAC,CAAC;IAC7D,OAAO,IAAI;EACb;EAEAW,OAAOA,CAAA,EAAmB;IACxB,OAAO;MACLC,KAAK,EAAE;QACLC,QAAQ,EAAE,IAAI,CAAChB,GAAG,CAACiB,GAAG,CAAEC,EAAE,KAAM;UAC9BpB,UAAU,EAAEoB,EAAE,CAACpB,UAAU,CAACgB,OAAO,CAAC,CAAC;UACnCf,GAAG,EAAEmB,EAAE,CAACnB;QACV,CAAC,CAAC,CAAC;QACHc,YAAY,EAAE,IAAI,CAACA,YAAY,CAACI,GAAG,CAAEE,WAAW,KAAM;UACpD,CAACA,WAAW,CAACP,IAAI,GAAG;YAClBd,UAAU,EAAEqB,WAAW,CAACrB,UAAU,CAACgB,OAAO,CAAC;UAC7C,CAAC;UACDX,eAAe,EAAEgB,WAAW,CAAChB;QAC/B,CAAC,CAAC;MACJ;IACF,CAAC;EACH;AACF;AAACiB,OAAA,CAAA3B,cAAA,GAAAA,cAAA","ignoreList":[]}
1
+ {"version":3,"names":["_Expression","require","GroupStageImpl","constructor","_defineProperty2","default","by","expression","key","ids","push","sum","resultFieldName","addAccumulator","avg","min","max","count","NumericExpressionImpl","first","last","type","accumulators","toProto","group","groupIds","map","id","accumulator","exports"],"sources":["../../../../src/api/stages/GroupStage.ts"],"sourcesContent":["import { Expression, NumericExpressionImpl } from '../expressions/Expression'\nimport * as apiTypes from '../../types/data-item-types'\nimport { PipelineStage } from './stages'\n\n/**\n * @builder\n */\nexport interface GroupStage extends PipelineStage {\n by(expression: Expression, key: string): GroupStage\n sum(expression: Expression, resultFieldName: string): GroupStage\n avg(expression: Expression, resultFieldName: string): GroupStage\n min(expression: Expression, resultFieldName: string): GroupStage\n max(expression: Expression, resultFieldName: string): GroupStage\n count(resultFieldName: string): GroupStage\n first(expression: Expression, resultFieldName: string): GroupStage\n last(expression: Expression, resultFieldName: string): GroupStage\n push(expression: Expression, resultFieldName: string): GroupStage\n}\n\nexport class GroupStageImpl implements GroupStage {\n private ids: Id[] = []\n private accumulators: Accumulator[] = []\n\n by(expression: Expression, key: string): GroupStage {\n this.ids.push({ expression, key })\n return this\n }\n\n sum(expression: Expression, resultFieldName: string): GroupStage {\n return this.addAccumulator(expression, 'sum', resultFieldName)\n }\n\n avg(expression: Expression, resultFieldName: string): GroupStage {\n return this.addAccumulator(expression, 'avg', resultFieldName)\n }\n\n min(expression: Expression, resultFieldName: string): GroupStage {\n return this.addAccumulator(expression, 'min', resultFieldName)\n }\n\n max(expression: Expression, resultFieldName: string): GroupStage {\n return this.addAccumulator(expression, 'max', resultFieldName)\n }\n\n count(resultFieldName: string): GroupStage {\n return this.addAccumulator(\n new NumericExpressionImpl(1),\n 'sum',\n resultFieldName\n )\n }\n\n first(expression: Expression, resultFieldName: string): GroupStage {\n return this.addAccumulator(expression, 'first', resultFieldName)\n }\n\n last(expression: Expression, resultFieldName: string): GroupStage {\n return this.addAccumulator(expression, 'last', resultFieldName)\n }\n\n push(expression: Expression, resultFieldName: string): GroupStage {\n return this.addAccumulator(expression, 'push', resultFieldName)\n }\n\n private addAccumulator(\n expression: Expression,\n type: AccumulatorType,\n resultFieldName: string\n ): GroupStage {\n this.accumulators.push({ type, expression, resultFieldName })\n return this\n }\n\n /** @private */\n toProto(): apiTypes.Stage {\n return {\n group: {\n groupIds: this.ids.map((id) => ({\n expression: id.expression.toProto(),\n key: id.key,\n })),\n accumulators: this.accumulators.map((accumulator) => ({\n [accumulator.type]: {\n expression: accumulator.expression.toProto(),\n },\n resultFieldName: accumulator.resultFieldName,\n })),\n },\n }\n }\n}\n\ntype AccumulatorType = 'avg' | 'min' | 'max' | 'sum' | 'first' | 'last' | 'push'\n\ninterface Id {\n expression: Expression\n key: string\n}\n\ninterface Accumulator {\n type: AccumulatorType\n expression: Expression\n resultFieldName: string\n}\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAIA;AACA;AACA;;AAaO,MAAMC,cAAc,CAAuB;EAAAC,YAAA;IAAA,IAAAC,gBAAA,CAAAC,OAAA,eAC5B,EAAE;IAAA,IAAAD,gBAAA,CAAAC,OAAA,wBACgB,EAAE;EAAA;EAExCC,EAAEA,CAACC,UAAsB,EAAEC,GAAW,EAAc;IAClD,IAAI,CAACC,GAAG,CAACC,IAAI,CAAC;MAAEH,UAAU;MAAEC;IAAI,CAAC,CAAC;IAClC,OAAO,IAAI;EACb;EAEAG,GAAGA,CAACJ,UAAsB,EAAEK,eAAuB,EAAc;IAC/D,OAAO,IAAI,CAACC,cAAc,CAACN,UAAU,EAAE,KAAK,EAAEK,eAAe,CAAC;EAChE;EAEAE,GAAGA,CAACP,UAAsB,EAAEK,eAAuB,EAAc;IAC/D,OAAO,IAAI,CAACC,cAAc,CAACN,UAAU,EAAE,KAAK,EAAEK,eAAe,CAAC;EAChE;EAEAG,GAAGA,CAACR,UAAsB,EAAEK,eAAuB,EAAc;IAC/D,OAAO,IAAI,CAACC,cAAc,CAACN,UAAU,EAAE,KAAK,EAAEK,eAAe,CAAC;EAChE;EAEAI,GAAGA,CAACT,UAAsB,EAAEK,eAAuB,EAAc;IAC/D,OAAO,IAAI,CAACC,cAAc,CAACN,UAAU,EAAE,KAAK,EAAEK,eAAe,CAAC;EAChE;EAEAK,KAAKA,CAACL,eAAuB,EAAc;IACzC,OAAO,IAAI,CAACC,cAAc,CACxB,IAAIK,iCAAqB,CAAC,CAAC,CAAC,EAC5B,KAAK,EACLN,eACF,CAAC;EACH;EAEAO,KAAKA,CAACZ,UAAsB,EAAEK,eAAuB,EAAc;IACjE,OAAO,IAAI,CAACC,cAAc,CAACN,UAAU,EAAE,OAAO,EAAEK,eAAe,CAAC;EAClE;EAEAQ,IAAIA,CAACb,UAAsB,EAAEK,eAAuB,EAAc;IAChE,OAAO,IAAI,CAACC,cAAc,CAACN,UAAU,EAAE,MAAM,EAAEK,eAAe,CAAC;EACjE;EAEAF,IAAIA,CAACH,UAAsB,EAAEK,eAAuB,EAAc;IAChE,OAAO,IAAI,CAACC,cAAc,CAACN,UAAU,EAAE,MAAM,EAAEK,eAAe,CAAC;EACjE;EAEQC,cAAcA,CACpBN,UAAsB,EACtBc,IAAqB,EACrBT,eAAuB,EACX;IACZ,IAAI,CAACU,YAAY,CAACZ,IAAI,CAAC;MAAEW,IAAI;MAAEd,UAAU;MAAEK;IAAgB,CAAC,CAAC;IAC7D,OAAO,IAAI;EACb;;EAEA;EACAW,OAAOA,CAAA,EAAmB;IACxB,OAAO;MACLC,KAAK,EAAE;QACLC,QAAQ,EAAE,IAAI,CAAChB,GAAG,CAACiB,GAAG,CAAEC,EAAE,KAAM;UAC9BpB,UAAU,EAAEoB,EAAE,CAACpB,UAAU,CAACgB,OAAO,CAAC,CAAC;UACnCf,GAAG,EAAEmB,EAAE,CAACnB;QACV,CAAC,CAAC,CAAC;QACHc,YAAY,EAAE,IAAI,CAACA,YAAY,CAACI,GAAG,CAAEE,WAAW,KAAM;UACpD,CAACA,WAAW,CAACP,IAAI,GAAG;YAClBd,UAAU,EAAEqB,WAAW,CAACrB,UAAU,CAACgB,OAAO,CAAC;UAC7C,CAAC;UACDX,eAAe,EAAEgB,WAAW,CAAChB;QAC/B,CAAC,CAAC;MACJ;IACF,CAAC;EACH;AACF;AAACiB,OAAA,CAAA3B,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -10,6 +10,8 @@ class LimitStageImpl {
10
10
  constructor(count) {
11
11
  this.count = count;
12
12
  }
13
+
14
+ /** @private */
13
15
  toProto() {
14
16
  return {
15
17
  limit: this.count
@@ -1 +1 @@
1
- {"version":3,"names":["LimitStageImpl","constructor","count","toProto","limit","exports"],"sources":["../../../../src/api/stages/LimitStage.ts"],"sourcesContent":["import { PipelineStage } from './stages'\nimport * as apiTypes from '../../types/data-item-types'\n\n/**\n * @builder\n */\nexport interface LimitStage extends PipelineStage {}\n\nexport class LimitStageImpl implements LimitStage {\n constructor(private count: number) {}\n\n toProto(): apiTypes.Stage {\n return { limit: this.count }\n }\n}\n"],"mappings":";;;;AAGA;AACA;AACA;;AAGO,MAAMA,cAAc,CAAuB;EAChDC,WAAWA,CAASC,KAAa,EAAE;IAAA,KAAfA,KAAa,GAAbA,KAAa;EAAG;EAEpCC,OAAOA,CAAA,EAAmB;IACxB,OAAO;MAAEC,KAAK,EAAE,IAAI,CAACF;IAAM,CAAC;EAC9B;AACF;AAACG,OAAA,CAAAL,cAAA,GAAAA,cAAA","ignoreList":[]}
1
+ {"version":3,"names":["LimitStageImpl","constructor","count","toProto","limit","exports"],"sources":["../../../../src/api/stages/LimitStage.ts"],"sourcesContent":["import { PipelineStage } from './stages'\nimport * as apiTypes from '../../types/data-item-types'\n\n/**\n * @builder\n */\nexport interface LimitStage extends PipelineStage {}\n\nexport class LimitStageImpl implements LimitStage {\n constructor(private count: number) {}\n\n /** @private */\n toProto(): apiTypes.Stage {\n return { limit: this.count }\n }\n}\n"],"mappings":";;;;AAGA;AACA;AACA;;AAGO,MAAMA,cAAc,CAAuB;EAChDC,WAAWA,CAASC,KAAa,EAAE;IAAA,KAAfA,KAAa,GAAbA,KAAa;EAAG;;EAEpC;EACAC,OAAOA,CAAA,EAAmB;IACxB,OAAO;MAAEC,KAAK,EAAE,IAAI,CAACF;IAAM,CAAC;EAC9B;AACF;AAACG,OAAA,CAAAL,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -11,6 +11,8 @@ class ObjectToArrayStageImpl {
11
11
  this.objectFieldName = objectFieldName;
12
12
  this.destinationFieldName = destinationFieldName;
13
13
  }
14
+
15
+ /** @private */
14
16
  toProto() {
15
17
  return {
16
18
  objectToArray: {
@@ -1 +1 @@
1
- {"version":3,"names":["ObjectToArrayStageImpl","constructor","objectFieldName","destinationFieldName","toProto","objectToArray","exports"],"sources":["../../../../src/api/stages/ObjectToArrayStage.ts"],"sourcesContent":["import * as apiTypes from '../../types/data-item-types'\nimport { PipelineStage } from './stages'\n\n/**\n * @builder\n */\nexport interface ObjectToArrayStage extends PipelineStage {}\n\nexport class ObjectToArrayStageImpl implements ObjectToArrayStage {\n constructor(\n private objectFieldName: string,\n private destinationFieldName: string\n ) {}\n\n toProto(): apiTypes.Stage {\n return {\n objectToArray: {\n objectFieldName: this.objectFieldName,\n destinationFieldName: this.destinationFieldName,\n },\n }\n }\n}\n"],"mappings":";;;;AAGA;AACA;AACA;;AAGO,MAAMA,sBAAsB,CAA+B;EAChEC,WAAWA,CACDC,eAAuB,EACvBC,oBAA4B,EACpC;IAAA,KAFQD,eAAuB,GAAvBA,eAAuB;IAAA,KACvBC,oBAA4B,GAA5BA,oBAA4B;EACnC;EAEHC,OAAOA,CAAA,EAAmB;IACxB,OAAO;MACLC,aAAa,EAAE;QACbH,eAAe,EAAE,IAAI,CAACA,eAAe;QACrCC,oBAAoB,EAAE,IAAI,CAACA;MAC7B;IACF,CAAC;EACH;AACF;AAACG,OAAA,CAAAN,sBAAA,GAAAA,sBAAA","ignoreList":[]}
1
+ {"version":3,"names":["ObjectToArrayStageImpl","constructor","objectFieldName","destinationFieldName","toProto","objectToArray","exports"],"sources":["../../../../src/api/stages/ObjectToArrayStage.ts"],"sourcesContent":["import * as apiTypes from '../../types/data-item-types'\nimport { PipelineStage } from './stages'\n\n/**\n * @builder\n */\nexport interface ObjectToArrayStage extends PipelineStage {}\n\nexport class ObjectToArrayStageImpl implements ObjectToArrayStage {\n constructor(\n private objectFieldName: string,\n private destinationFieldName: string\n ) {}\n\n /** @private */\n toProto(): apiTypes.Stage {\n return {\n objectToArray: {\n objectFieldName: this.objectFieldName,\n destinationFieldName: this.destinationFieldName,\n },\n }\n }\n}\n"],"mappings":";;;;AAGA;AACA;AACA;;AAGO,MAAMA,sBAAsB,CAA+B;EAChEC,WAAWA,CACDC,eAAuB,EACvBC,oBAA4B,EACpC;IAAA,KAFQD,eAAuB,GAAvBA,eAAuB;IAAA,KACvBC,oBAA4B,GAA5BA,oBAA4B;EACnC;;EAEH;EACAC,OAAOA,CAAA,EAAmB;IACxB,OAAO;MACLC,aAAa,EAAE;QACbH,eAAe,EAAE,IAAI,CAACA,eAAe;QACrCC,oBAAoB,EAAE,IAAI,CAACA;MAC7B;IACF,CAAC;EACH;AACF;AAACG,OAAA,CAAAN,sBAAA,GAAAA,sBAAA","ignoreList":[]}
@@ -57,6 +57,8 @@ class ProjectStageImpl {
57
57
  });
58
58
  return this;
59
59
  }
60
+
61
+ /** @private */
60
62
  toProto() {
61
63
  return {
62
64
  projection: {
@@ -1 +1 @@
1
- {"version":3,"names":["ProjectStageImpl","constructor","_defineProperty2","default","include","fieldNames","forEach","fieldName","fields","push","exclude","reshape","expression","addField","nested","stage","addNestedProjectionField","resultFieldName","toProto","projectNested","projection","exports"],"sources":["../../../../src/api/stages/ProjectStage.ts"],"sourcesContent":["import { Expression } from '../expressions/Expression'\nimport * as apiTypes from '../../types/data-item-types'\nimport { PipelineStage } from './stages'\n\n/**\n * @builder\n */\nexport interface ProjectStage extends PipelineStage {\n /**\n * @internal\n */\n fields: apiTypes.Field[]\n\n include(...fieldNames: string[]): ProjectStage\n exclude(...fieldNames: string[]): ProjectStage\n reshape(expression: Expression, fieldName: string): ProjectStage\n nested(stage: ProjectStage, fieldName: string): ProjectStage\n}\n\nexport class ProjectStageImpl implements ProjectStage {\n fields: apiTypes.Field[] = []\n\n include(...fieldNames: string[]): ProjectStage {\n fieldNames.forEach((fieldName) => {\n this.fields.push({ include: { fieldName } })\n })\n return this\n }\n\n exclude(...fieldNames: string[]): ProjectStage {\n fieldNames.forEach((fieldName) => {\n this.fields.push({ exclude: { fieldName } })\n })\n return this\n }\n\n reshape(expression: Expression, fieldName: string): ProjectStage {\n this.addField(expression, fieldName)\n return this\n }\n\n nested(stage: ProjectStage, fieldName: string): ProjectStage {\n return this.addNestedProjectionField(fieldName, stage.fields)\n }\n\n private addField(\n expression: Expression,\n resultFieldName: string\n ): ProjectStage {\n this.fields.push({\n reshape: { resultFieldName, expression: expression.toProto() },\n })\n return this\n }\n\n private addNestedProjectionField(\n resultFieldName: string,\n fields: apiTypes.Field[]\n ): ProjectStage {\n this.fields.push({ projectNested: { resultFieldName, fields } })\n return this\n }\n\n toProto(): apiTypes.Stage {\n return { projection: { fields: this.fields } }\n }\n}\n"],"mappings":";;;;;;AAIA;AACA;AACA;;AAaO,MAAMA,gBAAgB,CAAyB;EAAAC,YAAA;IAAA,IAAAC,gBAAA,CAAAC,OAAA,kBACzB,EAAE;EAAA;EAE7BC,OAAOA,CAAC,GAAGC,UAAoB,EAAgB;IAC7CA,UAAU,CAACC,OAAO,CAAEC,SAAS,IAAK;MAChC,IAAI,CAACC,MAAM,CAACC,IAAI,CAAC;QAAEL,OAAO,EAAE;UAAEG;QAAU;MAAE,CAAC,CAAC;IAC9C,CAAC,CAAC;IACF,OAAO,IAAI;EACb;EAEAG,OAAOA,CAAC,GAAGL,UAAoB,EAAgB;IAC7CA,UAAU,CAACC,OAAO,CAAEC,SAAS,IAAK;MAChC,IAAI,CAACC,MAAM,CAACC,IAAI,CAAC;QAAEC,OAAO,EAAE;UAAEH;QAAU;MAAE,CAAC,CAAC;IAC9C,CAAC,CAAC;IACF,OAAO,IAAI;EACb;EAEAI,OAAOA,CAACC,UAAsB,EAAEL,SAAiB,EAAgB;IAC/D,IAAI,CAACM,QAAQ,CAACD,UAAU,EAAEL,SAAS,CAAC;IACpC,OAAO,IAAI;EACb;EAEAO,MAAMA,CAACC,KAAmB,EAAER,SAAiB,EAAgB;IAC3D,OAAO,IAAI,CAACS,wBAAwB,CAACT,SAAS,EAAEQ,KAAK,CAACP,MAAM,CAAC;EAC/D;EAEQK,QAAQA,CACdD,UAAsB,EACtBK,eAAuB,EACT;IACd,IAAI,CAACT,MAAM,CAACC,IAAI,CAAC;MACfE,OAAO,EAAE;QAAEM,eAAe;QAAEL,UAAU,EAAEA,UAAU,CAACM,OAAO,CAAC;MAAE;IAC/D,CAAC,CAAC;IACF,OAAO,IAAI;EACb;EAEQF,wBAAwBA,CAC9BC,eAAuB,EACvBT,MAAwB,EACV;IACd,IAAI,CAACA,MAAM,CAACC,IAAI,CAAC;MAAEU,aAAa,EAAE;QAAEF,eAAe;QAAET;MAAO;IAAE,CAAC,CAAC;IAChE,OAAO,IAAI;EACb;EAEAU,OAAOA,CAAA,EAAmB;IACxB,OAAO;MAAEE,UAAU,EAAE;QAAEZ,MAAM,EAAE,IAAI,CAACA;MAAO;IAAE,CAAC;EAChD;AACF;AAACa,OAAA,CAAArB,gBAAA,GAAAA,gBAAA","ignoreList":[]}
1
+ {"version":3,"names":["ProjectStageImpl","constructor","_defineProperty2","default","include","fieldNames","forEach","fieldName","fields","push","exclude","reshape","expression","addField","nested","stage","addNestedProjectionField","resultFieldName","toProto","projectNested","projection","exports"],"sources":["../../../../src/api/stages/ProjectStage.ts"],"sourcesContent":["import { Expression } from '../expressions/Expression'\nimport * as apiTypes from '../../types/data-item-types'\nimport { PipelineStage } from './stages'\n\n/**\n * @builder\n */\nexport interface ProjectStage extends PipelineStage {\n /**\n * @internal\n */\n fields: apiTypes.Field[]\n\n include(...fieldNames: string[]): ProjectStage\n exclude(...fieldNames: string[]): ProjectStage\n reshape(expression: Expression, fieldName: string): ProjectStage\n nested(stage: ProjectStage, fieldName: string): ProjectStage\n}\n\nexport class ProjectStageImpl implements ProjectStage {\n fields: apiTypes.Field[] = []\n\n include(...fieldNames: string[]): ProjectStage {\n fieldNames.forEach((fieldName) => {\n this.fields.push({ include: { fieldName } })\n })\n return this\n }\n\n exclude(...fieldNames: string[]): ProjectStage {\n fieldNames.forEach((fieldName) => {\n this.fields.push({ exclude: { fieldName } })\n })\n return this\n }\n\n reshape(expression: Expression, fieldName: string): ProjectStage {\n this.addField(expression, fieldName)\n return this\n }\n\n nested(stage: ProjectStage, fieldName: string): ProjectStage {\n return this.addNestedProjectionField(fieldName, stage.fields)\n }\n\n private addField(\n expression: Expression,\n resultFieldName: string\n ): ProjectStage {\n this.fields.push({\n reshape: { resultFieldName, expression: expression.toProto() },\n })\n return this\n }\n\n private addNestedProjectionField(\n resultFieldName: string,\n fields: apiTypes.Field[]\n ): ProjectStage {\n this.fields.push({ projectNested: { resultFieldName, fields } })\n return this\n }\n\n /** @private */\n toProto(): apiTypes.Stage {\n return { projection: { fields: this.fields } }\n }\n}\n"],"mappings":";;;;;;AAIA;AACA;AACA;;AAaO,MAAMA,gBAAgB,CAAyB;EAAAC,YAAA;IAAA,IAAAC,gBAAA,CAAAC,OAAA,kBACzB,EAAE;EAAA;EAE7BC,OAAOA,CAAC,GAAGC,UAAoB,EAAgB;IAC7CA,UAAU,CAACC,OAAO,CAAEC,SAAS,IAAK;MAChC,IAAI,CAACC,MAAM,CAACC,IAAI,CAAC;QAAEL,OAAO,EAAE;UAAEG;QAAU;MAAE,CAAC,CAAC;IAC9C,CAAC,CAAC;IACF,OAAO,IAAI;EACb;EAEAG,OAAOA,CAAC,GAAGL,UAAoB,EAAgB;IAC7CA,UAAU,CAACC,OAAO,CAAEC,SAAS,IAAK;MAChC,IAAI,CAACC,MAAM,CAACC,IAAI,CAAC;QAAEC,OAAO,EAAE;UAAEH;QAAU;MAAE,CAAC,CAAC;IAC9C,CAAC,CAAC;IACF,OAAO,IAAI;EACb;EAEAI,OAAOA,CAACC,UAAsB,EAAEL,SAAiB,EAAgB;IAC/D,IAAI,CAACM,QAAQ,CAACD,UAAU,EAAEL,SAAS,CAAC;IACpC,OAAO,IAAI;EACb;EAEAO,MAAMA,CAACC,KAAmB,EAAER,SAAiB,EAAgB;IAC3D,OAAO,IAAI,CAACS,wBAAwB,CAACT,SAAS,EAAEQ,KAAK,CAACP,MAAM,CAAC;EAC/D;EAEQK,QAAQA,CACdD,UAAsB,EACtBK,eAAuB,EACT;IACd,IAAI,CAACT,MAAM,CAACC,IAAI,CAAC;MACfE,OAAO,EAAE;QAAEM,eAAe;QAAEL,UAAU,EAAEA,UAAU,CAACM,OAAO,CAAC;MAAE;IAC/D,CAAC,CAAC;IACF,OAAO,IAAI;EACb;EAEQF,wBAAwBA,CAC9BC,eAAuB,EACvBT,MAAwB,EACV;IACd,IAAI,CAACA,MAAM,CAACC,IAAI,CAAC;MAAEU,aAAa,EAAE;QAAEF,eAAe;QAAET;MAAO;IAAE,CAAC,CAAC;IAChE,OAAO,IAAI;EACb;;EAEA;EACAU,OAAOA,CAAA,EAAmB;IACxB,OAAO;MAAEE,UAAU,EAAE;QAAEZ,MAAM,EAAE,IAAI,CAACA;MAAO;IAAE,CAAC;EAChD;AACF;AAACa,OAAA,CAAArB,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -10,6 +10,8 @@ class SkipStageImpl {
10
10
  constructor(count) {
11
11
  this.count = count;
12
12
  }
13
+
14
+ /** @private */
13
15
  toProto() {
14
16
  return {
15
17
  skip: this.count
@@ -1 +1 @@
1
- {"version":3,"names":["SkipStageImpl","constructor","count","toProto","skip","exports"],"sources":["../../../../src/api/stages/SkipStage.ts"],"sourcesContent":["import { PipelineStage } from './stages'\nimport * as apiTypes from '../../types/data-item-types'\n\n/**\n * @builder\n */\nexport interface SkipStage extends PipelineStage {}\n\nexport class SkipStageImpl implements SkipStage {\n constructor(private count: number) {}\n\n toProto(): apiTypes.Stage {\n return { skip: this.count }\n }\n}\n"],"mappings":";;;;AAGA;AACA;AACA;;AAGO,MAAMA,aAAa,CAAsB;EAC9CC,WAAWA,CAASC,KAAa,EAAE;IAAA,KAAfA,KAAa,GAAbA,KAAa;EAAG;EAEpCC,OAAOA,CAAA,EAAmB;IACxB,OAAO;MAAEC,IAAI,EAAE,IAAI,CAACF;IAAM,CAAC;EAC7B;AACF;AAACG,OAAA,CAAAL,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["SkipStageImpl","constructor","count","toProto","skip","exports"],"sources":["../../../../src/api/stages/SkipStage.ts"],"sourcesContent":["import { PipelineStage } from './stages'\nimport * as apiTypes from '../../types/data-item-types'\n\n/**\n * @builder\n */\nexport interface SkipStage extends PipelineStage {}\n\nexport class SkipStageImpl implements SkipStage {\n constructor(private count: number) {}\n\n /** @private */\n toProto(): apiTypes.Stage {\n return { skip: this.count }\n }\n}\n"],"mappings":";;;;AAGA;AACA;AACA;;AAGO,MAAMA,aAAa,CAAsB;EAC9CC,WAAWA,CAASC,KAAa,EAAE;IAAA,KAAfA,KAAa,GAAbA,KAAa;EAAG;;EAEpC;EACAC,OAAOA,CAAA,EAAmB;IACxB,OAAO;MAAEC,IAAI,EAAE,IAAI,CAACF;IAAM,CAAC;EAC7B;AACF;AAACG,OAAA,CAAAL,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -32,6 +32,8 @@ class SortStageImpl {
32
32
  });
33
33
  return this;
34
34
  }
35
+
36
+ /** @private */
35
37
  toProto() {
36
38
  return {
37
39
  sort: {
@@ -1 +1 @@
1
- {"version":3,"names":["apiTypes","_interopRequireWildcard","require","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SortStageImpl","constructor","_defineProperty2","ascending","fields","forEach","field","sortFields","push","fieldName","order","SortOrder","ASC","descending","DESC","toProto","sort","values","exports"],"sources":["../../../../src/api/stages/SortStage.ts"],"sourcesContent":["import { PipelineStage } from './stages'\nimport * as apiTypes from '../../types/data-item-types'\n\n/**\n * @builder\n */\nexport interface SortStage extends PipelineStage {\n ascending(...fields: string[]): SortStage\n descending(...fields: string[]): SortStage\n}\n\nexport class SortStageImpl implements SortStage {\n private sortFields: apiTypes.Sorting[] = []\n\n ascending(...fields: string[]): SortStage {\n fields.forEach((field) => {\n this.sortFields.push({ fieldName: field, order: apiTypes.SortOrder.ASC })\n })\n return this\n }\n\n descending(...fields: string[]): SortStage {\n fields.forEach((field) => {\n this.sortFields.push({ fieldName: field, order: apiTypes.Sort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B,EAAa;IACxCA,MAAM,CAACC,OAAO,CAAEC,KAAK,IAAK;MACxB,IAAI,CAACC,UAAU,CAACC,IAAI,CAAC;QAAEC,SAAS,EAAEH,KAAK;QAAEI,KAAK,EAAEhC,QAAQ,CAACiC,SAAS,CAACC;MAAI,CAAC,CAAC;IAC3E,CAAC,CAAC;IACF,OAAO,IAAI;EACb;EAEAC,UAAUA,CAAC,GAAGT,MAAgB,EAAa;IACzCA,MAAM,CAACC,OAAO,CAAEC,KAAK,IAAK;MACxB,IAAI,CAACC,UAAU,CAACC,IAAI,CAAC;QAAEC,SAAS,EAAEH,KAAK;QAAEI,KAAK,EAAEhC,QAAQ,CAACiC,SAAS,CAACG;MAAK,CAAC,CAAC;IAC5E,CAAC,CAAC;IACF,OAAO,IAAI;EACb;EAEAC,OAAOA,CAAA,EAAmB;IACxB,OAAO;MAAEC,IAAI,EAAE;QAAEC,MAAM,EAAE,IAAI,CAACV;MAAW;IAAE,CAAC;EAC9C;AACF;AAACW,OAAA,CAAAlB,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["apiTypes","_interopRequireWildcard","require","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SortStageImpl","constructor","_defineProperty2","ascending","fields","forEach","field","sortFields","push","fieldName","order","SortOrder","ASC","descending","DESC","toProto","sort","values","exports"],"sources":["../../../../src/api/stages/SortStage.ts"],"sourcesContent":["import { PipelineStage } from './stages'\nimport * as apiTypes from '../../types/data-item-types'\n\n/**\n * @builder\n */\nexport interface SortStage extends PipelineStage {\n ascending(...fields: string[]): SortStage\n descending(...fields: string[]): SortStage\n}\n\nexport class SortStageImpl implements SortStage {\n private sortFields: apiTypes.Sorting[] = []\n\n ascending(...fields: string[]): SortStage {\n fields.forEach((field) => {\n this.sortFields.push({ fieldName: field, order: apiTypes.SortOrder.ASC })\n })\n return this\n }\n\n descending(...fields: string[]): SortStage {\n fields.forEach((field) => {\n this.sortFields.push({ fieldName: field, order: apiTypes.SortOrder.DESC })\n })\n return this\n }\n\n /** @private */\n toProto(): apiTypes.Stage {\n return { sort: { values: this.sortFields } }\n }\n}\n"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAuD,SAAAD,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAEvD;AACA;AACA;;AAMO,MAAMkB,aAAa,CAAsB;EAAAC,YAAA;IAAA,IAAAC,gBAAA,CAAAX,OAAA,sBACL,EAAE;EAAA;EAE3CY,SAASA,CAAC,GAAGC,MAAgB,EAAa;IACxCA,MAAM,CAACC,OAAO,CAAEC,KAAK,IAAK;MACxB,IAAI,CAACC,UAAU,CAACC,IAAI,CAAC;QAAEC,SAAS,EAAEH,KAAK;QAAEI,KAAK,EAAEhC,QAAQ,CAACiC,SAAS,CAACC;MAAI,CAAC,CAAC;IAC3E,CAAC,CAAC;IACF,OAAO,IAAI;EACb;EAEAC,UAAUA,CAAC,GAAGT,MAAgB,EAAa;IACzCA,MAAM,CAACC,OAAO,CAAEC,KAAK,IAAK;MACxB,IAAI,CAACC,UAAU,CAACC,IAAI,CAAC;QAAEC,SAAS,EAAEH,KAAK;QAAEI,KAAK,EAAEhC,QAAQ,CAACiC,SAAS,CAACG;MAAK,CAAC,CAAC;IAC5E,CAAC,CAAC;IACF,OAAO,IAAI;EACb;;EAEA;EACAC,OAAOA,CAAA,EAAmB;IACxB,OAAO;MAAEC,IAAI,EAAE;QAAEC,MAAM,EAAE,IAAI,CAACV;MAAW;IAAE,CAAC;EAC9C;AACF;AAACW,OAAA,CAAAlB,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -10,6 +10,8 @@ class UnwindStageImpl {
10
10
  constructor(arrayFieldName) {
11
11
  this.arrayFieldName = arrayFieldName;
12
12
  }
13
+
14
+ /** @private */
13
15
  toProto() {
14
16
  return {
15
17
  unwindArray: {
@@ -1 +1 @@
1
- {"version":3,"names":["UnwindStageImpl","constructor","arrayFieldName","toProto","unwindArray","exports"],"sources":["../../../../src/api/stages/UnwindStage.ts"],"sourcesContent":["import * as apiTypes from '../../types/data-item-types'\nimport { PipelineStage } from './stages'\n\n/**\n * @builder\n */\nexport interface UnwindStage extends PipelineStage {}\n\nexport class UnwindStageImpl implements UnwindStage {\n constructor(private arrayFieldName: string) {}\n\n toProto(): apiTypes.Stage {\n return { unwindArray: { arrayFieldName: this.arrayFieldName } }\n }\n}\n"],"mappings":";;;;AAGA;AACA;AACA;;AAGO,MAAMA,eAAe,CAAwB;EAClDC,WAAWA,CAASC,cAAsB,EAAE;IAAA,KAAxBA,cAAsB,GAAtBA,cAAsB;EAAG;EAE7CC,OAAOA,CAAA,EAAmB;IACxB,OAAO;MAAEC,WAAW,EAAE;QAAEF,cAAc,EAAE,IAAI,CAACA;MAAe;IAAE,CAAC;EACjE;AACF;AAACG,OAAA,CAAAL,eAAA,GAAAA,eAAA","ignoreList":[]}
1
+ {"version":3,"names":["UnwindStageImpl","constructor","arrayFieldName","toProto","unwindArray","exports"],"sources":["../../../../src/api/stages/UnwindStage.ts"],"sourcesContent":["import * as apiTypes from '../../types/data-item-types'\nimport { PipelineStage } from './stages'\n\n/**\n * @builder\n */\nexport interface UnwindStage extends PipelineStage {}\n\nexport class UnwindStageImpl implements UnwindStage {\n constructor(private arrayFieldName: string) {}\n\n /** @private */\n toProto(): apiTypes.Stage {\n return { unwindArray: { arrayFieldName: this.arrayFieldName } }\n }\n}\n"],"mappings":";;;;AAGA;AACA;AACA;;AAGO,MAAMA,eAAe,CAAwB;EAClDC,WAAWA,CAASC,cAAsB,EAAE;IAAA,KAAxBA,cAAsB,GAAtBA,cAAsB;EAAG;;EAE7C;EACAC,OAAOA,CAAA,EAAmB;IACxB,OAAO;MAAEC,WAAW,EAAE;QAAEF,cAAc,EAAE,IAAI,CAACA;MAAe;IAAE,CAAC;EACjE;AACF;AAACG,OAAA,CAAAL,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_FilterStage","require","_ProjectStage","_GroupStage","_UnwindStage","_SortStage","_LimitStage","_SkipStage","_ObjectToArrayStage","stages","exports","filter","FilterStageImpl","project","ProjectStageImpl","group","GroupStageImpl","unwind","arrayFieldName","UnwindStageImpl","sort","SortStageImpl","limit","count","LimitStageImpl","skip","SkipStageImpl","objectToArray","objectFieldName","destinationFieldName","ObjectToArrayStageImpl"],"sources":["../../../../src/api/stages/stages.ts"],"sourcesContent":["import { FilterStage, FilterStageImpl } from './FilterStage'\nimport { ProjectStage, ProjectStageImpl } from './ProjectStage'\nimport { GroupStage, GroupStageImpl } from './GroupStage'\nimport { UnwindStage, UnwindStageImpl } from './UnwindStage'\nimport { SortStage, SortStageImpl } from './SortStage'\nimport { LimitStage, LimitStageImpl } from './LimitStage'\nimport { SkipStage, SkipStageImpl } from './SkipStage'\nimport * as apiTypes from '../../types/data-item-types'\nimport {\n ObjectToArrayStage,\n ObjectToArrayStageImpl,\n} from './ObjectToArrayStage'\n\nexport const stages: WixDataAggregatePipelineStages = {\n filter: () => new FilterStageImpl(),\n project: () => new ProjectStageImpl(),\n group: () => new GroupStageImpl(),\n unwind: (arrayFieldName: string) => new UnwindStageImpl(arrayFieldName),\n sort: () => new SortStageImpl(),\n limit: (count: number) => new LimitStageImpl(count),\n skip: (count: number) => new SkipStageImpl(count),\n objectToArray: (objectFieldName: string, destinationFieldName: string) =>\n new ObjectToArrayStageImpl(objectFieldName, destinationFieldName),\n}\n\n/**\n * @builder\n */\nexport interface WixDataAggregatePipelineStages {\n filter(): FilterStage\n project(): ProjectStage\n group(): GroupStage\n unwind(arrayFieldName: string): UnwindStage\n sort(): SortStage\n limit(count: number): LimitStage\n skip(count: number): SkipStage\n objectToArray(\n objectFieldName: string,\n destinationFieldName: string\n ): ObjectToArrayStage\n}\n\nexport interface PipelineStage {\n /**\n * @internal\n */\n toProto(): apiTypes.Stage\n}\n"],"mappings":";;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAEA,IAAAO,mBAAA,GAAAP,OAAA;AAKO,MAAMQ,MAAsC,GAAAC,OAAA,CAAAD,MAAA,GAAG;EACpDE,MAAM,EAAEA,CAAA,KAAM,IAAIC,4BAAe,CAAC,CAAC;EACnCC,OAAO,EAAEA,CAAA,KAAM,IAAIC,8BAAgB,CAAC,CAAC;EACrCC,KAAK,EAAEA,CAAA,KAAM,IAAIC,0BAAc,CAAC,CAAC;EACjCC,MAAM,EAAGC,cAAsB,IAAK,IAAIC,4BAAe,CAACD,cAAc,CAAC;EACvEE,IAAI,EAAEA,CAAA,KAAM,IAAIC,wBAAa,CAAC,CAAC;EAC/BC,KAAK,EAAGC,KAAa,IAAK,IAAIC,0BAAc,CAACD,KAAK,CAAC;EACnDE,IAAI,EAAGF,KAAa,IAAK,IAAIG,wBAAa,CAACH,KAAK,CAAC;EACjDI,aAAa,EAAEA,CAACC,eAAuB,EAAEC,oBAA4B,KACnE,IAAIC,0CAAsB,CAACF,eAAe,EAAEC,oBAAoB;AACpE,CAAC;;AAED;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["_FilterStage","require","_ProjectStage","_GroupStage","_UnwindStage","_SortStage","_LimitStage","_SkipStage","_ObjectToArrayStage","stages","exports","filter","FilterStageImpl","project","ProjectStageImpl","group","GroupStageImpl","unwind","arrayFieldName","UnwindStageImpl","sort","SortStageImpl","limit","count","LimitStageImpl","skip","SkipStageImpl","objectToArray","objectFieldName","destinationFieldName","ObjectToArrayStageImpl"],"sources":["../../../../src/api/stages/stages.ts"],"sourcesContent":["import { FilterStage, FilterStageImpl } from './FilterStage'\nimport { ProjectStage, ProjectStageImpl } from './ProjectStage'\nimport { GroupStage, GroupStageImpl } from './GroupStage'\nimport { UnwindStage, UnwindStageImpl } from './UnwindStage'\nimport { SortStage, SortStageImpl } from './SortStage'\nimport { LimitStage, LimitStageImpl } from './LimitStage'\nimport { SkipStage, SkipStageImpl } from './SkipStage'\nimport * as apiTypes from '../../types/data-item-types'\nimport {\n ObjectToArrayStage,\n ObjectToArrayStageImpl,\n} from './ObjectToArrayStage'\n\nexport const stages: WixDataAggregatePipelineStages = {\n filter: () => new FilterStageImpl(),\n project: () => new ProjectStageImpl(),\n group: () => new GroupStageImpl(),\n unwind: (arrayFieldName: string) => new UnwindStageImpl(arrayFieldName),\n sort: () => new SortStageImpl(),\n limit: (count: number) => new LimitStageImpl(count),\n skip: (count: number) => new SkipStageImpl(count),\n objectToArray: (objectFieldName: string, destinationFieldName: string) =>\n new ObjectToArrayStageImpl(objectFieldName, destinationFieldName),\n}\n\n/**\n * @builder\n */\nexport interface WixDataAggregatePipelineStages {\n filter(): FilterStage\n project(): ProjectStage\n group(): GroupStage\n unwind(arrayFieldName: string): UnwindStage\n sort(): SortStage\n limit(count: number): LimitStage\n skip(count: number): SkipStage\n objectToArray(\n objectFieldName: string,\n destinationFieldName: string\n ): ObjectToArrayStage\n}\n\nexport interface PipelineStage {\n /**\n * @private\n */\n toProto(): apiTypes.Stage\n}\n"],"mappings":";;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAEA,IAAAO,mBAAA,GAAAP,OAAA;AAKO,MAAMQ,MAAsC,GAAAC,OAAA,CAAAD,MAAA,GAAG;EACpDE,MAAM,EAAEA,CAAA,KAAM,IAAIC,4BAAe,CAAC,CAAC;EACnCC,OAAO,EAAEA,CAAA,KAAM,IAAIC,8BAAgB,CAAC,CAAC;EACrCC,KAAK,EAAEA,CAAA,KAAM,IAAIC,0BAAc,CAAC,CAAC;EACjCC,MAAM,EAAGC,cAAsB,IAAK,IAAIC,4BAAe,CAACD,cAAc,CAAC;EACvEE,IAAI,EAAEA,CAAA,KAAM,IAAIC,wBAAa,CAAC,CAAC;EAC/BC,KAAK,EAAGC,KAAa,IAAK,IAAIC,0BAAc,CAACD,KAAK,CAAC;EACnDE,IAAI,EAAGF,KAAa,IAAK,IAAIG,wBAAa,CAACH,KAAK,CAAC;EACjDI,aAAa,EAAEA,CAACC,eAAuB,EAAEC,oBAA4B,KACnE,IAAIC,0CAAsB,CAACF,eAAe,EAAEC,oBAAoB;AACpE,CAAC;;AAED;AACA;AACA","ignoreList":[]}
@@ -2,6 +2,7 @@ export class FieldExpressionImpl {
2
2
  constructor(fieldPath) {
3
3
  this.fieldPath = fieldPath;
4
4
  }
5
+ /** @private */
5
6
  toProto() {
6
7
  return { fieldPath: this.fieldPath };
7
8
  }
@@ -10,6 +11,7 @@ export class TextExpressionImpl {
10
11
  constructor(value) {
11
12
  this.value = value;
12
13
  }
14
+ /** @private */
13
15
  toProto() {
14
16
  return { text: this.value };
15
17
  }
@@ -18,6 +20,7 @@ export class NumericExpressionImpl {
18
20
  constructor(value) {
19
21
  this.value = value;
20
22
  }
23
+ /** @private */
21
24
  toProto() {
22
25
  return { numeric: this.value };
23
26
  }
@@ -26,6 +29,7 @@ export class AddExpressionImpl {
26
29
  constructor(expressions) {
27
30
  this.expressions = expressions;
28
31
  }
32
+ /** @private */
29
33
  toProto() {
30
34
  return {
31
35
  add: {
@@ -39,6 +43,7 @@ export class SubtractExpressionImpl {
39
43
  this.firstExpression = firstExpression;
40
44
  this.secondExpression = secondExpression;
41
45
  }
46
+ /** @private */
42
47
  toProto() {
43
48
  return {
44
49
  subtract: {
@@ -52,6 +57,7 @@ export class MultiplyExpressionImpl {
52
57
  constructor(expressions) {
53
58
  this.expressions = expressions;
54
59
  }
60
+ /** @private */
55
61
  toProto() {
56
62
  return {
57
63
  multiply: {
@@ -65,6 +71,7 @@ export class DivideExpressionImpl {
65
71
  this.firstExpression = firstExpression;
66
72
  this.secondExpression = secondExpression;
67
73
  }
74
+ /** @private */
68
75
  toProto() {
69
76
  return {
70
77
  divide: {
@@ -78,6 +85,7 @@ export class SumExpressionImpl {
78
85
  constructor(expressions) {
79
86
  this.expressions = expressions;
80
87
  }
88
+ /** @private */
81
89
  toProto() {
82
90
  return {
83
91
  sum: {
@@ -90,6 +98,7 @@ export class AbsExpressionImpl {
90
98
  constructor(expression) {
91
99
  this.expression = expression;
92
100
  }
101
+ /** @private */
93
102
  toProto() {
94
103
  return {
95
104
  abs: {
@@ -103,6 +112,7 @@ export class ModExpressionImpl {
103
112
  this.firstExpression = firstExpression;
104
113
  this.secondExpression = secondExpression;
105
114
  }
115
+ /** @private */
106
116
  toProto() {
107
117
  return {
108
118
  mod: {
@@ -116,6 +126,7 @@ export class FloorExpressionImpl {
116
126
  constructor(expression) {
117
127
  this.expression = expression;
118
128
  }
129
+ /** @private */
119
130
  toProto() {
120
131
  return {
121
132
  floor: {
@@ -128,6 +139,7 @@ export class CeilExpressionImpl {
128
139
  constructor(expression) {
129
140
  this.expression = expression;
130
141
  }
142
+ /** @private */
131
143
  toProto() {
132
144
  return {
133
145
  ceil: {
@@ -140,6 +152,7 @@ export class ConcatExpressionImpl {
140
152
  constructor(expressions) {
141
153
  this.expressions = expressions;
142
154
  }
155
+ /** @private */
143
156
  toProto() {
144
157
  return {
145
158
  concat: {
@@ -152,6 +165,7 @@ export class StringifyExpressionImpl {
152
165
  constructor(expression) {
153
166
  this.expression = expression;
154
167
  }
168
+ /** @private */
155
169
  toProto() {
156
170
  return {
157
171
  stringify: {
@@ -164,6 +178,7 @@ export class ToLowerExpressionImpl {
164
178
  constructor(expression) {
165
179
  this.expression = expression;
166
180
  }
181
+ /** @private */
167
182
  toProto() {
168
183
  return {
169
184
  toLower: {
@@ -176,6 +191,7 @@ export class ToUpperExpressionImpl {
176
191
  constructor(expression) {
177
192
  this.expression = expression;
178
193
  }
194
+ /** @private */
179
195
  toProto() {
180
196
  return {
181
197
  toUpper: {
@@ -190,6 +206,7 @@ export class SubstringExpressionImpl {
190
206
  this.startExpression = startExpression;
191
207
  this.lengthExpression = lengthExpression;
192
208
  }
209
+ /** @private */
193
210
  toProto() {
194
211
  const proto = {
195
212
  substring: {
@@ -207,6 +224,7 @@ export class LengthExpressionImpl {
207
224
  constructor(expression) {
208
225
  this.expression = expression;
209
226
  }
227
+ /** @private */
210
228
  toProto() {
211
229
  return {
212
230
  length: { expression: this.expression.toProto() },
@@ -1 +1 @@
1
- {"version":3,"file":"Expression.js","sourceRoot":"","sources":["../../../../src/api/expressions/Expression.ts"],"names":[],"mappings":"AAcA,MAAM,OAAO,mBAAmB;IAC9B,YAAoB,SAAiB;QAAjB,cAAS,GAAT,SAAS,CAAQ;IAAG,CAAC;IACzC,OAAO;QACL,OAAO,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAA;IACtC,CAAC;CACF;AAOD,MAAM,OAAO,kBAAkB;IAC7B,YAAoB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;IACrC,OAAO;QACL,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,CAAA;IAC7B,CAAC;CACF;AAOD,MAAM,OAAO,qBAAqB;IAChC,YAAoB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;IACrC,OAAO;QACL,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,EAAE,CAAA;IAChC,CAAC;CACF;AAOD,MAAM,OAAO,iBAAiB;IAC5B,YAAoB,WAAyB;QAAzB,gBAAW,GAAX,WAAW,CAAc;IAAG,CAAC;IACjD,OAAO;QACL,OAAO;YACL,GAAG,EAAE;gBACH,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;aACtD;SACF,CAAA;IACH,CAAC;CACF;AAOD,MAAM,OAAO,sBAAsB;IACjC,YACU,eAA2B,EAC3B,gBAA4B;QAD5B,oBAAe,GAAf,eAAe,CAAY;QAC3B,qBAAgB,GAAhB,gBAAgB,CAAY;IACnC,CAAC;IACJ,OAAO;QACL,OAAO;YACL,QAAQ,EAAE;gBACR,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE;gBAC/C,gBAAgB,EAAE,IAAI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@@ -15,6 +15,7 @@ export class FilterStageImpl extends QueryBase {
15
15
  get invalidArguments() {
16
16
  return [];
17
17
  }
18
+ /** @private */
18
19
  toProto() {
19
20
  return { filter: this.filterBuilder.build() };
20
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FilterStage.js","sourceRoot":"","sources":["../../../../src/api/stages/FilterStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAmcxC,MAAM,OAAO,eACX,SAAQ,SAA0B;IAGlC,YAAY,MAGX;QACC,KAAK,CAAC;YACJ,cAAc,EAAE,MAAM,EAAE,cAAc,IAAI,EAAE;YAC5C,aAAa,EAAE,MAAM,EAAE,aAAa;SACrC,CAAC,CAAA;IACJ,CAAC;IAES,IAAI,CAAC,MAAW;QACxB,OAAO,IAAI,eAAe,CAAC;YACzB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,aAAa,EAAE,MAAM,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa;SAC1D,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,gBAAgB;QAClB,OAAO,EAAE,CAAA;IACX,CAAC;IAED,OAAO;QACL,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,CAAA;IAC/C,CAAC;CACF"}
1
+ {"version":3,"file":"FilterStage.js","sourceRoot":"","sources":["../../../../src/api/stages/FilterStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAmcxC,MAAM,OAAO,eACX,SAAQ,SAA0B;IAGlC,YAAY,MAGX;QACC,KAAK,CAAC;YACJ,cAAc,EAAE,MAAM,EAAE,cAAc,IAAI,EAAE;YAC5C,aAAa,EAAE,MAAM,EAAE,aAAa;SACrC,CAAC,CAAA;IACJ,CAAC;IAES,IAAI,CAAC,MAAW;QACxB,OAAO,IAAI,eAAe,CAAC;YACzB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,aAAa,EAAE,MAAM,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa;SAC1D,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,gBAAgB;QAClB,OAAO,EAAE,CAAA;IACX,CAAC;IAED,eAAe;IACf,OAAO;QACL,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,CAAA;IAC/C,CAAC;CACF"}
@@ -36,6 +36,7 @@ export class GroupStageImpl {
36
36
  this.accumulators.push({ type, expression, resultFieldName });
37
37
  return this;
38
38
  }
39
+ /** @private */
39
40
  toProto() {
40
41
  return {
41
42
  group: {
@@ -1 +1 @@
1
- {"version":3,"file":"GroupStage.js","sourceRoot":"","sources":["../../../../src/api/stages/GroupStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AAmB7E,MAAM,OAAO,cAAc;IAA3B;QACU,QAAG,GAAS,EAAE,CAAA;QACd,iBAAY,GAAkB,EAAE,CAAA;IAoE1C,CAAC;IAlEC,EAAE,CAAC,UAAsB,EAAE,GAAW;QACpC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAA;QAClC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,GAAG,CAAC,UAAsB,EAAE,eAAuB;QACjD,OAAO,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,KAAK,EAAE,eAAe,CAAC,CAAA;IAChE,CAAC;IAED,GAAG,CAAC,UAAsB,EAAE,eAAuB;QACjD,OAAO,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,KAAK,EAAE,eAAe,CAAC,CAAA;IAChE,CAAC;IAED,GAAG,CAAC,UAAsB,EAAE,eAAuB;QACjD,OAAO,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,KAAK,EAAE,eAAe,CAAC,CAAA;IAChE,CAAC;IAED,GAAG,CAAC,UAAsB,EAAE,eAAuB;QACjD,OA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EAAE,eAAe,CAAC,CAAA;IAClE,CAAC;IAED,IAAI,CAAC,UAAsB,EAAE,eAAuB;QAClD,OAAO,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,eAAe,CAAC,CAAA;IACjE,CAAC;IAED,IAAI,CAAC,UAAsB,EAAE,eAAuB;QAClD,OAAO,IAAI,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,eAAe,CAAC,CAAA;IACjE,CAAC;IAEO,cAAc,CACpB,UAAsB,EACtB,IAAqB,EACrB,eAAuB;QAEvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC,CAAA;QAC7D,OAAO,IAAI,CAAA;IACb,CAAC;IAED,eAAe;IACf,OAAO;QACL,OAAO;YACL,KAAK,EAAE;gBACL,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;oBAC9B,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE;oBACnC,GAAG,EAAE,EAAE,CAAC,GAAG;iBACZ,CAAC,CAAC;gBACH,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;oBACpD,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;wBAClB,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC,OAAO,EAAE;qBAC7C;oBACD,eAAe,EAAE,WAAW,CAAC,eAAe;iBAC7C,CAAC,CAAC;aACJ;SACF,CAAA;IACH,CAAC;CACF"}
@@ -2,6 +2,7 @@ export class LimitStageImpl {
2
2
  constructor(count) {
3
3
  this.count = count;
4
4
  }
5
+ /** @private */
5
6
  toProto() {
6
7
  return { limit: this.count };
7
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"LimitStage.js","sourceRoot":"","sources":["../../../../src/api/stages/LimitStage.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,cAAc;IACzB,YAAoB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;IAErC,OAAO;QACL,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAA;IAC9B,CAAC;CACF"}
1
+ {"version":3,"file":"LimitStage.js","sourceRoot":"","sources":["../../../../src/api/stages/LimitStage.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,cAAc;IACzB,YAAoB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;IAErC,eAAe;IACf,OAAO;QACL,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAA;IAC9B,CAAC;CACF"}
@@ -3,6 +3,7 @@ export class ObjectToArrayStageImpl {
3
3
  this.objectFieldName = objectFieldName;
4
4
  this.destinationFieldName = destinationFieldName;
5
5
  }
6
+ /** @private */
6
7
  toProto() {
7
8
  return {
8
9
  objectToArray: {
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectToArrayStage.js","sourceRoot":"","sources":["../../../../src/api/stages/ObjectToArrayStage.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,sBAAsB;IACjC,YACU,eAAuB,EACvB,oBAA4B;QAD5B,oBAAe,GAAf,eAAe,CAAQ;QACvB,yBAAoB,GAApB,oBAAoB,CAAQ;IACnC,CAAC;IAEJ,OAAO;QACL,OAAO;YACL,aAAa,EAAE;gBACb,eAAe,EAAE,IAAI,CAAC,eAAe;gBACrC,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;aAChD;SACF,CAAA;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"ObjectToArrayStage.js","sourceRoot":"","sources":["../../../../src/api/stages/ObjectToArrayStage.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,sBAAsB;IACjC,YACU,eAAuB,EACvB,oBAA4B;QAD5B,oBAAe,GAAf,eAAe,CAAQ;QACvB,yBAAoB,GAApB,oBAAoB,CAAQ;IACnC,CAAC;IAEJ,eAAe;IACf,OAAO;QACL,OAAO;YACL,aAAa,EAAE;gBACb,eAAe,EAAE,IAAI,CAAC,eAAe;gBACrC,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;aAChD;SACF,CAAA;IACH,CAAC;CACF"}
@@ -31,6 +31,7 @@ export class ProjectStageImpl {
31
31
  this.fields.push({ projectNested: { resultFieldName, fields } });
32
32
  return this;
33
33
  }
34
+ /** @private */
34
35
  toProto() {
35
36
  return { projection: { fields: this.fields } };
36
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectStage.js","sourceRoot":"","sources":["../../../../src/api/stages/ProjectStage.ts"],"names":[],"mappings":"AAmBA,MAAM,OAAO,gBAAgB;IAA7B;QACE,WAAM,GAAqB,EAAE,CAAA;IA8C/B,CAAC;IA5CC,OAAO,CAAC,GAAG,UAAoB;QAC7B,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YAC/B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,EAAE,CAAC,CAAA;QAC9C,CAAC,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,CAAC,GAAG,UAAoB;QAC7B,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YAC/B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,EAAE,CAAC,CAAA;QAC9C,CAAC,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,CAAC,UAAsB,EAAE,SAAiB;QAC/C,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;QACpC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,MAAM,CAAC,KAAmB,EAAE,SAAiB;QAC3C,OAAO,IAAI,CAAC,wBAAwB,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC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AC,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;QACpC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,MAAM,CAAC,KAAmB,EAAE,SAAiB;QAC3C,OAAO,IAAI,CAAC,wBAAwB,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/D,CAAC;IAEO,QAAQ,CACd,UAAsB,EACtB,eAAuB;QAEvB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;YACf,OAAO,EAAE,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE;SAC/D,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;IAEO,wBAAwB,CAC9B,eAAuB,EACvB,MAAwB;QAExB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA;QAChE,OAAO,IAAI,CAAA;IACb,CAAC;IAED,eAAe;IACf,OAAO;QACL,OAAO,EAAE,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAA;IAChD,CAAC;CACF"}
@@ -2,6 +2,7 @@ export class SkipStageImpl {
2
2
  constructor(count) {
3
3
  this.count = count;
4
4
  }
5
+ /** @private */
5
6
  toProto() {
6
7
  return { skip: this.count };
7
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SkipStage.js","sourceRoot":"","sources":["../../../../src/api/stages/SkipStage.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,aAAa;IACxB,YAAoB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;IAErC,OAAO;QACL,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,CAAA;IAC7B,CAAC;CACF"}
1
+ {"version":3,"file":"SkipStage.js","sourceRoot":"","sources":["../../../../src/api/stages/SkipStage.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,aAAa;IACxB,YAAoB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;IAAG,CAAC;IAErC,eAAe;IACf,OAAO;QACL,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,CAAA;IAC7B,CAAC;CACF"}
@@ -15,6 +15,7 @@ export class SortStageImpl {
15
15
  });
16
16
  return this;
17
17
  }
18
+ /** @private */
18
19
  toProto() {
19
20
  return { sort: { values: this.sortFields } };
20
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SortStage.js","sourceRoot":"","sources":["../../../../src/api/stages/SortStage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AAUvD,MAAM,OAAO,aAAa;IAA1B;QACU,eAAU,GAAuB,EAAE,CAAA;IAmB7C,CAAC;IAjBC,SAAS,CAAC,GAAG,MAAgB;QAC3B,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YACvB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,CAAA;QAC3E,CAAC,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;IAED,UAAU,CAAC,GAAG,MAAgB;QAC5B,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YACvB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAA;QAC5E,CAAC,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO;QACL,OAAO,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,CAAA;IAC9C,CAAC;CACF"}
1
+ {"version":3,"file":"SortStage.js","sourceRoot":"","sources":["../../../../src/api/stages/SortStage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AAUvD,MAAM,OAAO,aAAa;IAA1B;QACU,eAAU,GAAuB,EAAE,CAAA;IAoB7C,CAAC;IAlBC,SAAS,CAAC,GAAG,MAAgB;QAC3B,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YACvB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,CAAA;QAC3E,CAAC,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;IAED,UAAU,CAAC,GAAG,MAAgB;QAC5B,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YACvB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAA;QAC5E,CAAC,CAAC,CAAA;QACF,OAAO,IAAI,CAAA;IACb,CAAC;IAED,eAAe;IACf,OAAO;QACL,OAAO,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,CAAA;IAC9C,CAAC;CACF"}
@@ -2,6 +2,7 @@ export class UnwindStageImpl {
2
2
  constructor(arrayFieldName) {
3
3
  this.arrayFieldName = arrayFieldName;
4
4
  }
5
+ /** @private */
5
6
  toProto() {
6
7
  return { unwindArray: { arrayFieldName: this.arrayFieldName } };
7
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"UnwindStage.js","sourceRoot":"","sources":["../../../../src/api/stages/UnwindStage.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,eAAe;IAC1B,YAAoB,cAAsB;QAAtB,mBAAc,GAAd,cAAc,CAAQ;IAAG,CAAC;IAE9C,OAAO;QACL,OAAO,EAAE,WAAW,EAAE,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,EAAE,CAAA;IACjE,CAAC;CACF"}
1
+ {"version":3,"file":"UnwindStage.js","sourceRoot":"","sources":["../../../../src/api/stages/UnwindStage.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,eAAe;IAC1B,YAAoB,cAAsB;QAAtB,mBAAc,GAAd,cAAc,CAAQ;IAAG,CAAC;IAE9C,eAAe;IACf,OAAO;QACL,OAAO,EAAE,WAAW,EAAE,EAAE,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,EAAE,CAAA;IACjE,CAAC;CACF"}
@@ -1,7 +1,7 @@
1
1
  import * as apiTypes from '../../types/data-item-types';
2
2
  export interface Expression {
3
3
  /**
4
- * @internal
4
+ * @private
5
5
  */
6
6
  toProto(): apiTypes.Expression;
7
7
  }
@@ -13,6 +13,7 @@ export interface FieldExpression extends Expression {
13
13
  export declare class FieldExpressionImpl implements FieldExpression {
14
14
  private fieldPath;
15
15
  constructor(fieldPath: string);
16
+ /** @private */
16
17
  toProto(): apiTypes.Expression;
17
18
  }
18
19
  /**
@@ -23,6 +24,7 @@ export interface TextExpression extends Expression {
23
24
  export declare class TextExpressionImpl implements TextExpression {
24
25
  private value;
25
26
  constructor(value: string);
27
+ /** @private */
26
28
  toProto(): apiTypes.Expression;
27
29
  }
28
30
  /**
@@ -33,6 +35,7 @@ export interface NumericExpression extends Expression {
33
35
  export declare class NumericExpressionImpl implements NumericExpression {
34
36
  private value;
35
37
  constructor(value: number);
38
+ /** @private */
36
39
  toProto(): apiTypes.Expression;
37
40
  }
38
41
  /**
@@ -43,6 +46,7 @@ export interface AddExpression extends Expression {
43
46
  export declare class AddExpressionImpl implements AddExpression {
44
47
  private expressions;
45
48
  constructor(expressions: Expression[]);
49
+ /** @private */
46
50
  toProto(): apiTypes.Expression;
47
51
  }
48
52
  /**
@@ -54,6 +58,7 @@ export declare class SubtractExpressionImpl implements SubtractExpression {
54
58
  private firstExpression;
55
59
  private secondExpression;
56
60
  constructor(firstExpression: Expression, secondExpression: Expression);
61
+ /** @private */
57
62
  toProto(): apiTypes.Expression;
58
63
  }
59
64
  /**
@@ -64,6 +69,7 @@ export interface MultiplyExpression extends Expression {
64
69
  export declare class MultiplyExpressionImpl implements MultiplyExpression {
65
70
  private expressions;
66
71
  constructor(expressions: Expression[]);
72
+ /** @private */
67
73
  toProto(): apiTypes.Expression;
68
74
  }
69
75
  /**
@@ -75,6 +81,7 @@ export declare class DivideExpressionImpl implements DivideExpression {
75
81
  private firstExpression;
76
82
  private secondExpression;
77
83
  constructor(firstExpression: Expression, secondExpression: Expression);
84
+ /** @private */
78
85
  toProto(): apiTypes.Expression;
79
86
  }
80
87
  /**
@@ -85,6 +92,7 @@ export interface SumExpression extends Expression {
85
92
  export declare class SumExpressionImpl implements SumExpression {
86
93
  private expressions;
87
94
  constructor(expressions: Expression[]);
95
+ /** @private */
88
96
  toProto(): apiTypes.Expression;
89
97
  }
90
98
  /**
@@ -95,6 +103,7 @@ export interface AbsExpression extends Expression {
95
103
  export declare class AbsExpressionImpl implements AbsExpression {
96
104
  private expression;
97
105
  constructor(expression: Expression);
106
+ /** @private */
98
107
  toProto(): apiTypes.Expression;
99
108
  }
100
109
  /**
@@ -106,6 +115,7 @@ export declare class ModExpressionImpl implements ModExpression {
106
115
  private firstExpression;
107
116
  private secondExpression;
108
117
  constructor(firstExpression: Expression, secondExpression: Expression);
118
+ /** @private */
109
119
  toProto(): apiTypes.Expression;
110
120
  }
111
121
  /**
@@ -116,6 +126,7 @@ export interface FloorExpression extends Expression {
116
126
  export declare class FloorExpressionImpl implements FloorExpression {
117
127
  private expression;
118
128
  constructor(expression: Expression);
129
+ /** @private */
119
130
  toProto(): apiTypes.Expression;
120
131
  }
121
132
  /**
@@ -126,6 +137,7 @@ export interface CeilExpression extends Expression {
126
137
  export declare class CeilExpressionImpl implements CeilExpression {
127
138
  private expression;
128
139
  constructor(expression: Expression);
140
+ /** @private */
129
141
  toProto(): apiTypes.Expression;
130
142
  }
131
143
  /**
@@ -136,6 +148,7 @@ export interface ConcatExpression extends Expression {
136
148
  export declare class ConcatExpressionImpl implements ConcatExpression {
137
149
  private expressions;
138
150
  constructor(expressions: Expression[]);
151
+ /** @private */
139
152
  toProto(): apiTypes.Expression;
140
153
  }
141
154
  /**
@@ -146,6 +159,7 @@ export interface StringifyExpression extends Expression {
146
159
  export declare class StringifyExpressionImpl implements StringifyExpression {
147
160
  private expression;
148
161
  constructor(expression: Expression);
162
+ /** @private */
149
163
  toProto(): apiTypes.Expression;
150
164
  }
151
165
  /**
@@ -156,6 +170,7 @@ export interface ToLowerExpression extends Expression {
156
170
  export declare class ToLowerExpressionImpl implements ToLowerExpression {
157
171
  private expression;
158
172
  constructor(expression: Expression);
173
+ /** @private */
159
174
  toProto(): apiTypes.Expression;
160
175
  }
161
176
  /**
@@ -166,6 +181,7 @@ export interface ToUpperExpression extends Expression {
166
181
  export declare class ToUpperExpressionImpl implements ToUpperExpression {
167
182
  private expression;
168
183
  constructor(expression: Expression);
184
+ /** @private */
169
185
  toProto(): apiTypes.Expression;
170
186
  }
171
187
  /**
@@ -178,6 +194,7 @@ export declare class SubstringExpressionImpl implements SubstringExpression {
178
194
  private startExpression;
179
195
  private lengthExpression?;
180
196
  constructor(expression: Expression, startExpression: Expression, lengthExpression?: Expression | undefined);
197
+ /** @private */
181
198
  toProto(): apiTypes.Expression;
182
199
  }
183
200
  /**
@@ -188,6 +205,7 @@ export interface LengthExpression extends Expression {
188
205
  export declare class LengthExpressionImpl implements LengthExpression {
189
206
  private expression;
190
207
  constructor(expression: Expression);
208
+ /** @private */
191
209
  toProto(): apiTypes.Expression;
192
210
  }
193
211
  //# sourceMappingURL=Expression.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Expression.d.ts","sourceRoot":"","sources":["../../../../src/api/expressions/Expression.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AAEvD,MAAM,WAAW,UAAU;IACzB;;OAEG;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AC,UAAU;IAClB,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,gBAAgB,CAAC;gBAFjB,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,UAAU,EAC3B,gBAAgB,CAAC,wBAAY;IAEvC,eAAe;IACf,OAAO,IAAI,QAAQ,CAAC,UAAU;CAY/B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,UAAU;CAAG;AAEvD,qBAAa,oBAAqB,YAAW,gBAAgB;IAC/C,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAC1C,eAAe;IACf,OAAO,IAAI,QAAQ,CAAC,UAAU;CAK/B"}
@@ -429,6 +429,7 @@ export declare class FilterStageImpl extends QueryBase<FilterStageImpl> implemen
429
429
  });
430
430
  protected copy(params: any): FilterStageImpl;
431
431
  get invalidArguments(): string[];
432
+ /** @private */
432
433
  toProto(): apiTypes.Stage;
433
434
  }
434
435
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"FilterStage.d.ts","sourceRoot":"","sources":["../../../../src/api/stages/FilterStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,yBAAyB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACpE,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,KAAK,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;AAExC;;;;;GAKG;AACH,MAAM,WAAW,WAAY,SAAQ,aAAa,EAAE,UAAU,CAAC,WAAW,CAAC;IACzE;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAExC;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAEnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,EAAE,CAAC,KAAK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pC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,GAAG,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW,CAAA;IAErC;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW,CAAA;IAErC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CACL,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EAClC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAC/B,WAAW,CAAA;CACf;AAED,qBAAa,eACX,SAAQ,SAAS,CAAC,eAAe,CACjC,YAAW,WAAW;gBAEV,MAAM,CAAC,EAAE;QACnB,cAAc,CAAC,EAAE,MAAM,CAAA;QACvB,aAAa,CAAC,EAAE,yBAAyB,CAAA;KAC1C;IAOD,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,eAAe;IAO5C,IAAI,gBAAgB,IAAI,MAAM,EAAE,CAE/B;IAED,eAAe;IACf,OAAO,IAAI,QAAQ,CAAC,KAAK;CAG1B"}
@@ -28,6 +28,7 @@ export declare class GroupStageImpl implements GroupStage {
28
28
  last(expression: Expression, resultFieldName: string): GroupStage;
29
29
  push(expression: Expression, resultFieldName: string): GroupStage;
30
30
  private addAccumulator;
31
+ /** @private */
31
32
  toProto(): apiTypes.Stage;
32
33
  }
33
34
  //# sourceMappingURL=GroupStage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GroupStage.d.ts","sourceRoot":"","sources":["../../../../src/api/stages/GroupStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAyB,MAAM,2BAA2B,CAAA;AAC7E,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,aAAa;IAC/C,EAAE,C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AAW,UAAU;IAC/C,OAAO,CAAC,GAAG,CAAW;IACtB,OAAO,CAAC,YAAY,CAAoB;IAExC,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,UAAU;IAKnD,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,GAAG,UAAU;IAIhE,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,GAAG,UAAU;IAIhE,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,GAAG,UAAU;IAIhE,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,GAAG,UAAU;IAIhE,KAAK,CAAC,eAAe,EAAE,MAAM,GAAG,UAAU;IAQ1C,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,GAAG,UAAU;IAIlE,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,GAAG,UAAU;IAIjE,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,GAAG,UAAU;IAIjE,OAAO,CAAC,cAAc;IAStB,eAAe;IACf,OAAO,IAAI,QAAQ,CAAC,KAAK;CAgB1B"}
@@ -8,6 +8,7 @@ export interface LimitStage extends PipelineStage {
8
8
  export declare class LimitStageImpl implements LimitStage {
9
9
  private count;
10
10
  constructor(count: number);
11
+ /** @private */
11
12
  toProto(): apiTypes.Stage;
12
13
  }
13
14
  //# sourceMappingURL=LimitStage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LimitStage.d.ts","sourceRoot":"","sources":["../../../../src/api/stages/LimitStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AAEvD;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,aAAa;CAAG;AAEpD,qBAAa,cAAe,YAAW,UAAU;IACnC,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,MAAM;IAEjC,OAAO,IAAI,QAAQ,CAAC,KAAK;CAG1B"}
1
+ {"version":3,"file":"LimitStage.d.ts","sourceRoot":"","sources":["../../../../src/api/stages/LimitStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AAEvD;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,aAAa;CAAG;AAEpD,qBAAa,cAAe,YAAW,UAAU;IACnC,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,MAAM;IAEjC,eAAe;IACf,OAAO,IAAI,QAAQ,CAAC,KAAK;CAG1B"}
@@ -9,6 +9,7 @@ export declare class ObjectToArrayStageImpl implements ObjectToArrayStage {
9
9
  private objectFieldName;
10
10
  private destinationFieldName;
11
11
  constructor(objectFieldName: string, destinationFieldName: string);
12
+ /** @private */
12
13
  toProto(): apiTypes.Stage;
13
14
  }
14
15
  //# sourceMappingURL=ObjectToArrayStage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectToArrayStage.d.ts","sourceRoot":"","sources":["../../../../src/api/stages/ObjectToArrayStage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,aAAa;CAAG;AAE5D,qBAAa,sBAAuB,YAAW,kBAAkB;IAE7D,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,oBAAoB;gBADpB,eAAe,EAAE,MAAM,EACvB,oBAAoB,EAAE,MAAM;IAGtC,OAAO,IAAI,QAAQ,CAAC,KAAK;CAQ1B"}
1
+ {"version":3,"file":"ObjectToArrayStage.d.ts","sourceRoot":"","sources":["../../../../src/api/stages/ObjectToArrayStage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,aAAa;CAAG;AAE5D,qBAAa,sBAAuB,YAAW,kBAAkB;IAE7D,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,oBAAoB;gBADpB,eAAe,EAAE,MAAM,EACvB,oBAAoB,EAAE,MAAM;IAGtC,eAAe;IACf,OAAO,IAAI,QAAQ,CAAC,KAAK;CAQ1B"}
@@ -22,6 +22,7 @@ export declare class ProjectStageImpl implements ProjectStage {
22
22
  nested(stage: ProjectStage, fieldName: string): ProjectStage;
23
23
  private addField;
24
24
  private addNestedProjectionField;
25
+ /** @private */
25
26
  toProto(): apiTypes.Stage;
26
27
  }
27
28
  //# sourceMappingURL=ProjectStage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectStage.d.ts","sourceRoot":"","sources":["../../../../src/api/stages/ProjectStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AACtD,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAA;IAExB,OAAO,CAAC,GAAG,UAAU,EAAE,MAAM,EAAE,GAAG,YAAY,CAAA;IAC9C,OAAO,CAAC,GAAG,UAAU,EAAE,MAAM,EAAE,GAAG,YAAY,CAAA;IAC9C,OAAO,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,GAAG,YAAY,CAAA;IAChE,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,YAAY,CAAA;CAC7D;A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AY;IAO9C,OAAO,CAAC,GAAG,UAAU,EAAE,MAAM,EAAE,GAAG,YAAY;IAO9C,OAAO,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,GAAG,YAAY;IAKhE,MAAM,CAAC,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,YAAY;IAI5D,OAAO,CAAC,QAAQ;IAUhB,OAAO,CAAC,wBAAwB;IAQhC,eAAe;IACf,OAAO,IAAI,QAAQ,CAAC,KAAK;CAG1B"}
@@ -8,6 +8,7 @@ export interface SkipStage extends PipelineStage {
8
8
  export declare class SkipStageImpl implements SkipStage {
9
9
  private count;
10
10
  constructor(count: number);
11
+ /** @private */
11
12
  toProto(): apiTypes.Stage;
12
13
  }
13
14
  //# sourceMappingURL=SkipStage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SkipStage.d.ts","sourceRoot":"","sources":["../../../../src/api/stages/SkipStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AAEvD;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,aAAa;CAAG;AAEnD,qBAAa,aAAc,YAAW,SAAS;IACjC,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,MAAM;IAEjC,OAAO,IAAI,QAAQ,CAAC,KAAK;CAG1B"}
1
+ {"version":3,"file":"SkipStage.d.ts","sourceRoot":"","sources":["../../../../src/api/stages/SkipStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AAEvD;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,aAAa;CAAG;AAEnD,qBAAa,aAAc,YAAW,SAAS;IACjC,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,MAAM;IAEjC,eAAe;IACf,OAAO,IAAI,QAAQ,CAAC,KAAK;CAG1B"}
@@ -11,6 +11,7 @@ export declare class SortStageImpl implements SortStage {
11
11
  private sortFields;
12
12
  ascending(...fields: string[]): SortStage;
13
13
  descending(...fields: string[]): SortStage;
14
+ /** @private */
14
15
  toProto(): apiTypes.Stage;
15
16
  }
16
17
  //# sourceMappingURL=SortStage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SortStage.d.ts","sourceRoot":"","sources":["../../../../src/api/stages/SortStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AAEvD;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,aAAa;IAC9C,SAAS,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACzC,UAAU,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CAC3C;AAED,qBAAa,aAAc,YAAW,SAAS;IAC7C,OAAO,CAAC,UAAU,CAAyB;IAE3C,SAAS,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS;IAOzC,UAAU,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS;IAO1C,OAAO,IAAI,QAAQ,CAAC,KAAK;CAG1B"}
1
+ {"version":3,"file":"SortStage.d.ts","sourceRoot":"","sources":["../../../../src/api/stages/SortStage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AAEvD;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,aAAa;IAC9C,SAAS,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IACzC,UAAU,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;CAC3C;AAED,qBAAa,aAAc,YAAW,SAAS;IAC7C,OAAO,CAAC,UAAU,CAAyB;IAE3C,SAAS,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS;IAOzC,UAAU,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS;IAO1C,eAAe;IACf,OAAO,IAAI,QAAQ,CAAC,KAAK;CAG1B"}
@@ -8,6 +8,7 @@ export interface UnwindStage extends PipelineStage {
8
8
  export declare class UnwindStageImpl implements UnwindStage {
9
9
  private arrayFieldName;
10
10
  constructor(arrayFieldName: string);
11
+ /** @private */
11
12
  toProto(): apiTypes.Stage;
12
13
  }
13
14
  //# sourceMappingURL=UnwindStage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnwindStage.d.ts","sourceRoot":"","sources":["../../../../src/api/stages/UnwindStage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,aAAa;CAAG;AAErD,qBAAa,eAAgB,YAAW,WAAW;IACrC,OAAO,CAAC,cAAc;gBAAd,cAAc,EAAE,MAAM;IAE1C,OAAO,IAAI,QAAQ,CAAC,KAAK;CAG1B"}
1
+ {"version":3,"file":"UnwindStage.d.ts","sourceRoot":"","sources":["../../../../src/api/stages/UnwindStage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,6BAA6B,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,aAAa;CAAG;AAErD,qBAAa,eAAgB,YAAW,WAAW;IACrC,OAAO,CAAC,cAAc;gBAAd,cAAc,EAAE,MAAM;IAE1C,eAAe;IACf,OAAO,IAAI,QAAQ,CAAC,KAAK;CAG1B"}
@@ -23,7 +23,7 @@ export interface WixDataAggregatePipelineStages {
23
23
  }
24
24
  export interface PipelineStage {
25
25
  /**
26
- * @internal
26
+ * @private
27
27
  */
28
28
  toProto(): apiTypes.Stage;
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/wix-data-items-common",
3
- "version": "1.0.200",
3
+ "version": "1.0.201",
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": "b9fea364426622cb5a9b394deb510c77dbd2c3421b3727cab36e948a"
88
+ "falconPackageHash": "aeab68596ddcacc89983fc397404399db8a68e4af2bf6f4b8006a3ab"
89
89
  }