@wix/wix-data-items-common 1.0.342 → 1.0.344

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 (45) hide show
  1. package/dist/cjs/api/expressions/Expression.js +69 -1
  2. package/dist/cjs/api/expressions/Expression.js.map +1 -1
  3. package/dist/cjs/api/expressions/expressions.js +4 -0
  4. package/dist/cjs/api/expressions/expressions.js.map +1 -1
  5. package/dist/cjs/api/index.js +12 -2
  6. package/dist/cjs/api/index.js.map +1 -1
  7. package/dist/cjs/api/stages/AddFieldsStage.js +30 -0
  8. package/dist/cjs/api/stages/AddFieldsStage.js.map +1 -0
  9. package/dist/cjs/api/stages/LookupStage.js +27 -0
  10. package/dist/cjs/api/stages/LookupStage.js.map +1 -0
  11. package/dist/cjs/api/stages/UnionWithStage.js +23 -0
  12. package/dist/cjs/api/stages/UnionWithStage.js.map +1 -0
  13. package/dist/cjs/api/stages/stages.js +6 -0
  14. package/dist/cjs/api/stages/stages.js.map +1 -1
  15. package/dist/cjs/types/data-item-types.js.map +1 -1
  16. package/dist/esm/api/expressions/Expression.js +50 -0
  17. package/dist/esm/api/expressions/Expression.js.map +1 -1
  18. package/dist/esm/api/expressions/expressions.js +5 -1
  19. package/dist/esm/api/expressions/expressions.js.map +1 -1
  20. package/dist/esm/api/index.js.map +1 -1
  21. package/dist/esm/api/stages/AddFieldsStage.js +14 -0
  22. package/dist/esm/api/stages/AddFieldsStage.js.map +1 -0
  23. package/dist/esm/api/stages/LookupStage.js +20 -0
  24. package/dist/esm/api/stages/LookupStage.js.map +1 -0
  25. package/dist/esm/api/stages/UnionWithStage.js +16 -0
  26. package/dist/esm/api/stages/UnionWithStage.js.map +1 -0
  27. package/dist/esm/api/stages/stages.js +6 -0
  28. package/dist/esm/api/stages/stages.js.map +1 -1
  29. package/dist/types/api/expressions/Expression.d.ts +39 -0
  30. package/dist/types/api/expressions/Expression.d.ts.map +1 -1
  31. package/dist/types/api/expressions/expressions.d.ts +36 -1
  32. package/dist/types/api/expressions/expressions.d.ts.map +1 -1
  33. package/dist/types/api/index.d.ts +4 -1
  34. package/dist/types/api/index.d.ts.map +1 -1
  35. package/dist/types/api/stages/AddFieldsStage.d.ts +22 -0
  36. package/dist/types/api/stages/AddFieldsStage.d.ts.map +1 -0
  37. package/dist/types/api/stages/LookupStage.d.ts +15 -0
  38. package/dist/types/api/stages/LookupStage.d.ts.map +1 -0
  39. package/dist/types/api/stages/UnionWithStage.d.ts +13 -0
  40. package/dist/types/api/stages/UnionWithStage.d.ts.map +1 -0
  41. package/dist/types/api/stages/stages.d.ts +30 -0
  42. package/dist/types/api/stages/stages.d.ts.map +1 -1
  43. package/dist/types/types/data-item-types.d.ts +93 -0
  44. package/dist/types/types/data-item-types.d.ts.map +1 -1
  45. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.ToUpperExpressionImpl = exports.ToLowerExpressionImpl = exports.TextExpressionImpl = exports.SumExpressionImpl = exports.SubtractExpressionImpl = exports.SubstringExpressionImpl = exports.StringifyExpressionImpl = exports.NumericExpressionImpl = exports.MultiplyExpressionImpl = exports.ModExpressionImpl = exports.LengthExpressionImpl = exports.FloorExpressionImpl = exports.FieldExpressionImpl = exports.DivideExpressionImpl = exports.ConcatExpressionImpl = exports.CeilExpressionImpl = exports.AddExpressionImpl = exports.AbsExpressionImpl = void 0;
4
+ exports.ToUpperExpressionImpl = exports.ToLowerExpressionImpl = exports.TextExpressionImpl = exports.SumExpressionImpl = exports.SubtractExpressionImpl = exports.SubstringExpressionImpl = exports.StringifyExpressionImpl = exports.SizeExpressionImpl = exports.NumericExpressionImpl = exports.MultiplyExpressionImpl = exports.ModExpressionImpl = exports.LengthExpressionImpl = exports.GreaterThanExpressionImpl = exports.FloorExpressionImpl = exports.FieldExpressionImpl = exports.DivideExpressionImpl = exports.ConditionExpressionImpl = exports.ConcatExpressionImpl = exports.CeilExpressionImpl = exports.BooleanExpressionImpl = exports.AddExpressionImpl = exports.AbsExpressionImpl = void 0;
5
5
  /**
6
6
  * @builder
7
7
  */
@@ -332,5 +332,73 @@ class LengthExpressionImpl {
332
332
  };
333
333
  }
334
334
  }
335
+
336
+ /** @builder */
335
337
  exports.LengthExpressionImpl = LengthExpressionImpl;
338
+ class BooleanExpressionImpl {
339
+ constructor(value) {
340
+ this.value = value;
341
+ }
342
+ /** @private */
343
+ build() {
344
+ return {
345
+ boolean: this.value
346
+ };
347
+ }
348
+ }
349
+
350
+ /** @builder */
351
+ exports.BooleanExpressionImpl = BooleanExpressionImpl;
352
+ class ConditionExpressionImpl {
353
+ constructor(ifExpression, whenTrue, whenFalse) {
354
+ this.ifExpression = ifExpression;
355
+ this.whenTrue = whenTrue;
356
+ this.whenFalse = whenFalse;
357
+ }
358
+ /** @private */
359
+ build() {
360
+ return {
361
+ condition: {
362
+ ifExpression: this.ifExpression.build(),
363
+ whenTrue: this.whenTrue.build(),
364
+ whenFalse: this.whenFalse.build()
365
+ }
366
+ };
367
+ }
368
+ }
369
+
370
+ /** @builder */
371
+ exports.ConditionExpressionImpl = ConditionExpressionImpl;
372
+ class GreaterThanExpressionImpl {
373
+ constructor(first, second) {
374
+ this.first = first;
375
+ this.second = second;
376
+ }
377
+ /** @private */
378
+ build() {
379
+ return {
380
+ gt: {
381
+ firstExpression: this.first.build(),
382
+ secondExpression: this.second.build()
383
+ }
384
+ };
385
+ }
386
+ }
387
+
388
+ /** @builder */
389
+ exports.GreaterThanExpressionImpl = GreaterThanExpressionImpl;
390
+ class SizeExpressionImpl {
391
+ constructor(expression) {
392
+ this.expression = expression;
393
+ }
394
+ /** @private */
395
+ build() {
396
+ return {
397
+ size: {
398
+ expression: this.expression.build()
399
+ }
400
+ };
401
+ }
402
+ }
403
+ exports.SizeExpressionImpl = SizeExpressionImpl;
336
404
  //# sourceMappingURL=Expression.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FieldExpressionImpl","constructor","fieldPath","build","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 build(): 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 build(): 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 build(): 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 build(): 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 build(): apiTypes.Expression {\n return {\n add: {\n expressions: this.expressions.map((e) => e.build()),\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 build(): apiTypes.Expression {\n return {\n subtract: {\n firstExpression: this.firstExpression.build(),\n secondExpression: this.secondExpression.build(),\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 build(): apiTypes.Expression {\n return {\n multiply: {\n expressions: this.expressions.map((e) => e.build()),\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 build(): apiTypes.Expression {\n return {\n divide: {\n firstExpression: this.firstExpression.build(),\n secondExpression: this.secondExpression.build(),\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 build(): apiTypes.Expression {\n return {\n sum: {\n expressions: this.expressions.map((e) => e.build()),\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 build(): apiTypes.Expression {\n return {\n abs: {\n expression: this.expression.build(),\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 build(): apiTypes.Expression {\n return {\n mod: {\n firstExpression: this.firstExpression.build(),\n secondExpression: this.secondExpression.build(),\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 build(): apiTypes.Expression {\n return {\n floor: {\n expression: this.expression.build(),\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 build(): apiTypes.Expression {\n return {\n ceil: {\n expression: this.expression.build(),\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 build(): apiTypes.Expression {\n return {\n concat: {\n expressions: this.expressions.map((e) => e.build()),\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 build(): apiTypes.Expression {\n return {\n stringify: {\n expression: this.expression.build(),\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 build(): apiTypes.Expression {\n return {\n toLower: {\n expression: this.expression.build(),\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 build(): apiTypes.Expression {\n return {\n toUpper: {\n expression: this.expression.build(),\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 build(): apiTypes.Expression {\n const proto: any = {\n substring: {\n expression: this.expression.build(),\n startExpression: this.startExpression.build(),\n },\n }\n if (this.lengthExpression) {\n proto.substring.lengthExpression = this.lengthExpression.build()\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 build(): apiTypes.Expression {\n return {\n length: { expression: this.expression.build() },\n }\n }\n}\n"],"mappings":";;;;AASA;AACA;AACA;;AAGO,MAAMA,mBAA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B;EAAG;EAC7C;EACAvB,KAAKA,CAAA,EAAwB;IAC3B,OAAO;MACL6C,MAAM,EAAE;QAAEtB,UAAU,EAAE,IAAI,CAACA,UAAU,CAACvB,KAAK,CAAC;MAAE;IAChD,CAAC;EACH;AACF;AAACC,OAAA,CAAA2C,oBAAA,GAAAA,oBAAA","ignoreList":[]}
1
+ {"version":3,"names":["FieldExpressionImpl","constructor","fieldPath","build","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","BooleanExpressionImpl","boolean","ConditionExpressionImpl","ifExpression","whenTrue","whenFalse","condition","GreaterThanExpressionImpl","first","second","gt","SizeExpressionImpl","size"],"sources":["../../../../src/api/expressions/Expression.ts"],"sourcesContent":["import * as apiTypes from '../../types/data-item-types'\n\nexport interface Expression {\n /**\n * @private\n */\n build(): 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 build(): 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 build(): 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 build(): 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 build(): apiTypes.Expression {\n return {\n add: {\n expressions: this.expressions.map((e) => e.build()),\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 build(): apiTypes.Expression {\n return {\n subtract: {\n firstExpression: this.firstExpression.build(),\n secondExpression: this.secondExpression.build(),\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 build(): apiTypes.Expression {\n return {\n multiply: {\n expressions: this.expressions.map((e) => e.build()),\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 build(): apiTypes.Expression {\n return {\n divide: {\n firstExpression: this.firstExpression.build(),\n secondExpression: this.secondExpression.build(),\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 build(): apiTypes.Expression {\n return {\n sum: {\n expressions: this.expressions.map((e) => e.build()),\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 build(): apiTypes.Expression {\n return {\n abs: {\n expression: this.expression.build(),\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 build(): apiTypes.Expression {\n return {\n mod: {\n firstExpression: this.firstExpression.build(),\n secondExpression: this.secondExpression.build(),\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 build(): apiTypes.Expression {\n return {\n floor: {\n expression: this.expression.build(),\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 build(): apiTypes.Expression {\n return {\n ceil: {\n expression: this.expression.build(),\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 build(): apiTypes.Expression {\n return {\n concat: {\n expressions: this.expressions.map((e) => e.build()),\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 build(): apiTypes.Expression {\n return {\n stringify: {\n expression: this.expression.build(),\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 build(): apiTypes.Expression {\n return {\n toLower: {\n expression: this.expression.build(),\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 build(): apiTypes.Expression {\n return {\n toUpper: {\n expression: this.expression.build(),\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 build(): apiTypes.Expression {\n const proto: any = {\n substring: {\n expression: this.expression.build(),\n startExpression: this.startExpression.build(),\n },\n }\n if (this.lengthExpression) {\n proto.substring.lengthExpression = this.lengthExpression.build()\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 build(): apiTypes.Expression {\n return {\n length: { expression: this.expression.build() },\n }\n }\n}\n\n/** @builder */\nexport interface BooleanExpression extends Expression {}\n\nexport class BooleanExpressionImpl implements BooleanExpression {\n constructor(private value: boolean) {}\n /** @private */\n build(): apiTypes.Expression {\n return { boolean: this.value }\n }\n}\n\n/** @builder */\nexport interface ConditionExpression extends Expression {}\n\nexport class ConditionExpressionImpl implements ConditionExpression {\n constructor(\n private ifExpression: Expression,\n private whenTrue: Expression,\n private whenFalse: Expression\n ) {}\n /** @private */\n build(): apiTypes.Expression {\n return {\n condition: {\n ifExpression: this.ifExpression.build(),\n whenTrue: this.whenTrue.build(),\n whenFalse: this.whenFalse.build(),\n },\n }\n }\n}\n\n/** @builder */\nexport interface GreaterThanExpression extends Expression {}\n\nexport class GreaterThanExpressionImpl implements GreaterThanExpression {\n constructor(private first: Expression, private second: Expression) {}\n /** @private */\n build(): apiTypes.Expression {\n return {\n gt: {\n firstExpression: this.first.build(),\n secondExpression: this.second.build(),\n },\n }\n }\n}\n\n/** @builder */\nexport interface SizeExpression extends Expression {}\n\nexport class SizeExpressionImpl implements SizeExpression {\n constructor(private expression: Expression) {}\n /** @private */\n build(): apiTypes.Expression {\n return { size: { expression: this.expression.build() } }\n }\n}\n"],"mappings":";;;;AASA;AACA;AACA;;AAGO,MAAMA,mBAAmB,CAA4B;EAC1DC,WAAWA,CAASC,SAAiB,EAAE;IAAA,KAAnBA,SAAiB,GAAjBA,SAAiB;EAAG;EACxC;EACAC,KAAKA,CAAA,EAAwB;IAC3B,OAAO;MAAED,SAA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;;AAEA;AAAAC,OAAA,CAAAoD,yBAAA,GAAAA,yBAAA;AAGO,MAAMI,kBAAkB,CAA2B;EACxD3D,WAAWA,CAASyB,UAAsB,EAAE;IAAA,KAAxBA,UAAsB,GAAtBA,UAAsB;EAAG;EAC7C;EACAvB,KAAKA,CAAA,EAAwB;IAC3B,OAAO;MAAE0D,IAAI,EAAE;QAAEnC,UAAU,EAAE,IAAI,CAACA,UAAU,CAACvB,KAAK,CAAC;MAAE;IAAE,CAAC;EAC1D;AACF;AAACC,OAAA,CAAAwD,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -4,6 +4,10 @@ exports.__esModule = true;
4
4
  exports.expressions = void 0;
5
5
  var _Expression = require("./Expression");
6
6
  const expressions = exports.expressions = {
7
+ boolean: value => new _Expression.BooleanExpressionImpl(value),
8
+ condition: (ifExpression, whenTrue, whenFalse) => new _Expression.ConditionExpressionImpl(ifExpression, whenTrue, whenFalse),
9
+ gt: (first, second) => new _Expression.GreaterThanExpressionImpl(first, second),
10
+ size: expression => new _Expression.SizeExpressionImpl(expression),
7
11
  field: fieldPath => new _Expression.FieldExpressionImpl(fieldPath),
8
12
  text: value => new _Expression.TextExpressionImpl(value),
9
13
  numeric: value => new _Expression.NumericExpressionImpl(value),
@@ -1 +1 @@
1
- {"version":3,"names":["_Expression","require","expressions","exports","field","fieldPath","FieldExpressionImpl","text","value","TextExpressionImpl","numeric","NumericExpressionImpl","add","AddExpressionImpl","subtract","first","second","SubtractExpressionImpl","multiply","MultiplyExpressionImpl","divide","DivideExpressionImpl","sum","SumExpressionImpl","abs","expression","AbsExpressionImpl","mod","ModExpressionImpl","floor","FloorExpressionImpl","ceil","CeilExpressionImpl","concat","ConcatExpressionImpl","stringify","StringifyExpressionImpl","toLower","ToLowerExpressionImpl","toUpper","ToUpperExpressionImpl","substring","start","length","SubstringExpressionImpl","LengthExpressionImpl"],"sources":["../../../../src/api/expressions/expressions.ts"],"sourcesContent":["import {\n Expression,\n FieldExpression,\n FieldExpressionImpl,\n TextExpression,\n TextExpressionImpl,\n NumericExpression,\n NumericExpressionImpl,\n AddExpression,\n AddExpressionImpl,\n SubtractExpression,\n SubtractExpressionImpl,\n MultiplyExpression,\n MultiplyExpressionImpl,\n DivideExpression,\n DivideExpressionImpl,\n SumExpression,\n SumExpressionImpl,\n AbsExpression,\n AbsExpressionImpl,\n ModExpression,\n ModExpressionImpl,\n FloorExpression,\n FloorExpressionImpl,\n CeilExpression,\n CeilExpressionImpl,\n ConcatExpression,\n ConcatExpressionImpl,\n StringifyExpression,\n StringifyExpressionImpl,\n ToLowerExpression,\n ToLowerExpressionImpl,\n ToUpperExpression,\n ToUpperExpressionImpl,\n SubstringExpression,\n SubstringExpressionImpl,\n LengthExpression,\n LengthExpressionImpl,\n} from './Expression'\n\nexport const expressions: WixDataAggregatePipelineExpressions = {\n field: (fieldPath: string): FieldExpression =>\n new FieldExpressionImpl(fieldPath),\n text: (value: string): TextExpression => new TextExpressionImpl(value),\n numeric: (value: number): NumericExpression =>\n new NumericExpressionImpl(value),\n add: (...expressions: Expression[]): AddExpression =>\n new AddExpressionImpl(expressions),\n subtract: (first: Expression, second: Expression): SubtractExpression =>\n new SubtractExpressionImpl(first, second),\n multiply: (...expressions: Expression[]): MultiplyExpression =>\n new MultiplyExpressionImpl(expressions),\n divide: (first: Expression, second: Expression): DivideExpression =>\n new DivideExpressionImpl(first, second),\n sum: (...expressions: Expression[]): SumExpression =>\n new SumExpressionImpl(expressions),\n abs: (expression: Expression): AbsExpression =>\n new AbsExpressionImpl(expression),\n mod: (first: Expression, second: Expression): ModExpression =>\n new ModExpressionImpl(first, second),\n\n floor: (expression: Expression): FloorExpression =>\n new FloorExpressionImpl(expression),\n ceil: (expression: Expression): CeilExpression =>\n new CeilExpressionImpl(expression),\n concat: (...expressions: Expression[]): ConcatExpression =>\n new ConcatExpressionImpl(expressions),\n stringify: (expression: Expression): StringifyExpression =>\n new StringifyExpressionImpl(expression),\n toLower: (expression: Expression): ToLowerExpression =>\n new ToLowerExpressionImpl(expression),\n toUpper: (expression: Expression): ToUpperExpression =>\n new ToUpperExpressionImpl(expression),\n substring: (\n expression: Expression,\n start: Expression,\n length?: Expression\n ): SubstringExpression =>\n new SubstringExpressionImpl(expression, start, length),\n length: (expression: Expression): LengthExpression =>\n new LengthExpressionImpl(expression),\n}\n\n/**\n * @builder\n */\nexport interface WixDataAggregatePipelineExpressions {\n /**\n * Specifies which field to resolve.\n *\n * The `field()` method configures the aggregation pipeline to resolve the value of the specified field as an expression.\n *\n * @public\n * @documentationMaturity preview\n * @param fieldPath - Path to the field containing the value to resolve. Use dot notation to specify nested fields. For example, `user.name` or `product.price`.\n * @returns FieldExpression object.\n */\n field(fieldPath: string): FieldExpression\n /**\n * String.\n *\n * The `text()` method configures the aggregation pipeline to run the aggregation on the specified string.\n *\n * @public\n * @documentationMaturity preview\n * @param value - String to run the aggregation on.\n * @returns TextExpression object.\n */\n text(value: string): TextExpression\n /**\n * Number.\n *\n * The `numeric()` method configures the aggregation pipeline to run the aggregation on the specified number.\n *\n * @public\n * @documentationMaturity preview\n * @param value - Number to run the aggregation on.\n * @returns NumericExpression object.\n */\n numeric(value: number): NumericExpression\n /**\n * Adds the specified expressions.\n *\n * The `add()` method configures the aggregation pipeline to add the values of the specified expressions.\n *\n * @public\n * @documentationMaturity preview\n * @param expressions - Expressions to add together. All expressions must resolve to numbers. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns AddExpression object.\n */\n add(...expressions: Expression[]): AddExpression\n /**\n * Subtracts 1 expression from another.\n *\n * The `subtract()` method configures the aggregation pipeline to subtract the second expression from the first expression.\n *\n * @public\n * @documentationMaturity preview\n * @param first - Expression to subtract `second` from. Expression must resolve to a number.\n * @param second - Expression to subtract from `first`. Expression must resolve to a number.\n * @returns SubtractExpression object.\n */\n subtract(first: Expression, second: Expression): SubtractExpression\n /**\n * Multiplies multiple expressions together.\n *\n * The `multiply()` method configures the aggregation pipeline to multiply the specified expressions.\n *\n * @public\n * @documentationMaturity preview\n * @param expressions - Expressions to multiply. All expressions must resolve to numbers. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns MultiplyExpression object.\n */\n multiply(...expressions: Expression[]): MultiplyExpression\n /**\n * Divides 1 expression by another.\n *\n * The `divide()` method configures the aggregation pipeline to divide the first expression by the second expression.\n *\n * @public\n * @documentationMaturity preview\n * @param first - Expression to divide by `second`. Expression must resolve to a number.\n * @param second - Expression to divide `first` by. Expression must resolve to a non-zero number.\n * @returns DivideExpression object.\n */\n divide(first: Expression, second: Expression): DivideExpression\n /**\n * Calculates the total sum of multiple expressions.\n *\n * The `sum()` method configures the aggregation pipeline to calculate the total sum of the specified expressions.\n *\n * @public\n * @documentationMaturity preview\n * @param expressions - Expressions to calculate the total sum of. All expressions must resolve to numbers. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns SumExpression object.\n */\n sum(...expressions: Expression[]): SumExpression\n /**\n * Finds the absolute value of an expression.\n *\n * The `abs()` method configures the aggregation pipeline to find the absolute value of the specified expression.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to find the absolute value of. Expression must resolve to a number. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns AbsExpression object.\n */\n abs(expression: Expression): AbsExpression\n /**\n * Finds the remainder when dividing 1 expression by another.\n *\n * The `mod()` method configures the aggregation pipeline to find the remainder when dividing the first expression by the second expression.\n *\n * @public\n * @documentationMaturity preview\n * @param first - Expression to divide by `second` to find the remainder. Expression must resolve to a number.\n * @param second - Expression to divide `first` by. Expression must resolve to a non-zero number.\n * @returns ModExpression object.\n */\n mod(first: Expression, second: Expression): ModExpression\n /**\n * Rounds an expression down to the nearest whole number.\n *\n * The `floor()` method configures the aggregation pipeline to round the specified expression down to the nearest integer.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to round down to the nearest whole number. Expression must resolve to a number. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns FloorExpression object.\n */\n floor(expression: Expression): FloorExpression\n /**\n * Rounds an expression up to the nearest whole number.\n *\n * The `ceil()` method configures the aggregation pipeline to round the specified expression up to the nearest integer.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to round up to the nearest whole number. Expression must resolve to a number. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns CeilExpression object.\n */\n ceil(expression: Expression): CeilExpression\n /**\n * Joins multiple expressions together to create a string.\n *\n * The `concat()` method configures the aggregation pipeline to join multiple expressions together to create a new string.\n *\n * @public\n * @documentationMaturity preview\n * @param expressions - Expressions to join together. All expressions must resolve to strings. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns ConcatExpression object.\n */\n concat(...expressions: Expression[]): ConcatExpression\n /**\n * Converts an expression to a string.\n *\n * The `stringify()` method configures the aggregation pipeline to convert the specified expression to a string.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to convert to a string. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns StringifyExpression object.\n */\n stringify(expression: Expression): StringifyExpression\n /**\n * Converts an expression to lowercase.\n *\n * The `toLower()` method configures the aggregation pipeline to convert the specified expression to lowercase.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to convert to lowercase. Expression must resolve to a string. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns ToLowerExpression object.\n */\n toLower(expression: Expression): ToLowerExpression\n /**\n * Converts an expression to uppercase.\n *\n * The `toUpper()` method configures the aggregation pipeline to convert the specified expression to uppercase.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to convert to uppercase. Expression must resolve to a string. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns ToUpperExpression object.\n */\n toUpper(expression: Expression): ToUpperExpression\n /**\n * Extracts a portion of a string expression.\n *\n * The `substring()` method configures the aggregation pipeline to extract a portion of the specified string expression.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to extract a substring from. Expression must resolve to a string. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @param start - Starting position of the substring to extract, specified in zero-based indexing. Expression must resolve to a number.\n * @param length - Number of characters to extract from the starting position. Expression must resolve to a number.\n * @returns SubstringExpression object.\n */\n substring(\n expression: Expression,\n start: Expression,\n length?: Expression\n ): SubstringExpression\n\n /**\n * Finds the length of a string expression.\n *\n * The `length()` method configures the aggregation pipeline to find the length of the specified expression.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to find the total number of characters of. Expression must resolve to a string. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns LengthExpression object.\n */\n length(expression: Expression): LengthExpression\n}\n"],"mappings":";;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAwCO,MAAMC,WAAgD,GAAAC,OAAA,CAAAD,WAAA,GAAG;EAC9DE,KAAK,EAAGC,SAAiB,IACvB,IAAIC,+BAAmB,CAACD,SAAS,CAAC;EACpCE,IAAI,EAAGC,KAAa,IAAqB,IAAIC,8BAAkB,CAACD,KAAK,CAAC;EACtEE,OAAO,EAAGF,KAA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,CAAC;EACxDA,MAAM,EAAGlB,UAAsB,IAC7B,IAAIoB,gCAAoB,CAACpB,UAAU;AACvC,CAAC;;AAED;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["_Expression","require","expressions","exports","boolean","value","BooleanExpressionImpl","condition","ifExpression","whenTrue","whenFalse","ConditionExpressionImpl","gt","first","second","GreaterThanExpressionImpl","size","expression","SizeExpressionImpl","field","fieldPath","FieldExpressionImpl","text","TextExpressionImpl","numeric","NumericExpressionImpl","add","AddExpressionImpl","subtract","SubtractExpressionImpl","multiply","MultiplyExpressionImpl","divide","DivideExpressionImpl","sum","SumExpressionImpl","abs","AbsExpressionImpl","mod","ModExpressionImpl","floor","FloorExpressionImpl","ceil","CeilExpressionImpl","concat","ConcatExpressionImpl","stringify","StringifyExpressionImpl","toLower","ToLowerExpressionImpl","toUpper","ToUpperExpressionImpl","substring","start","length","SubstringExpressionImpl","LengthExpressionImpl"],"sources":["../../../../src/api/expressions/expressions.ts"],"sourcesContent":["import {\n BooleanExpression,\n BooleanExpressionImpl,\n ConditionExpression,\n ConditionExpressionImpl,\n GreaterThanExpression,\n GreaterThanExpressionImpl,\n SizeExpression,\n SizeExpressionImpl,\n Expression,\n FieldExpression,\n FieldExpressionImpl,\n TextExpression,\n TextExpressionImpl,\n NumericExpression,\n NumericExpressionImpl,\n AddExpression,\n AddExpressionImpl,\n SubtractExpression,\n SubtractExpressionImpl,\n MultiplyExpression,\n MultiplyExpressionImpl,\n DivideExpression,\n DivideExpressionImpl,\n SumExpression,\n SumExpressionImpl,\n AbsExpression,\n AbsExpressionImpl,\n ModExpression,\n ModExpressionImpl,\n FloorExpression,\n FloorExpressionImpl,\n CeilExpression,\n CeilExpressionImpl,\n ConcatExpression,\n ConcatExpressionImpl,\n StringifyExpression,\n StringifyExpressionImpl,\n ToLowerExpression,\n ToLowerExpressionImpl,\n ToUpperExpression,\n ToUpperExpressionImpl,\n SubstringExpression,\n SubstringExpressionImpl,\n LengthExpression,\n LengthExpressionImpl,\n} from './Expression'\n\nexport const expressions: WixDataAggregatePipelineExpressions = {\n boolean: (value: boolean) => new BooleanExpressionImpl(value),\n condition: (\n ifExpression: Expression,\n whenTrue: Expression,\n whenFalse: Expression\n ) => new ConditionExpressionImpl(ifExpression, whenTrue, whenFalse),\n gt: (first: Expression, second: Expression) =>\n new GreaterThanExpressionImpl(first, second),\n size: (expression: Expression) => new SizeExpressionImpl(expression),\n\n field: (fieldPath: string): FieldExpression =>\n new FieldExpressionImpl(fieldPath),\n text: (value: string): TextExpression => new TextExpressionImpl(value),\n numeric: (value: number): NumericExpression =>\n new NumericExpressionImpl(value),\n add: (...expressions: Expression[]): AddExpression =>\n new AddExpressionImpl(expressions),\n subtract: (first: Expression, second: Expression): SubtractExpression =>\n new SubtractExpressionImpl(first, second),\n multiply: (...expressions: Expression[]): MultiplyExpression =>\n new MultiplyExpressionImpl(expressions),\n divide: (first: Expression, second: Expression): DivideExpression =>\n new DivideExpressionImpl(first, second),\n sum: (...expressions: Expression[]): SumExpression =>\n new SumExpressionImpl(expressions),\n abs: (expression: Expression): AbsExpression =>\n new AbsExpressionImpl(expression),\n mod: (first: Expression, second: Expression): ModExpression =>\n new ModExpressionImpl(first, second),\n\n floor: (expression: Expression): FloorExpression =>\n new FloorExpressionImpl(expression),\n ceil: (expression: Expression): CeilExpression =>\n new CeilExpressionImpl(expression),\n concat: (...expressions: Expression[]): ConcatExpression =>\n new ConcatExpressionImpl(expressions),\n stringify: (expression: Expression): StringifyExpression =>\n new StringifyExpressionImpl(expression),\n toLower: (expression: Expression): ToLowerExpression =>\n new ToLowerExpressionImpl(expression),\n toUpper: (expression: Expression): ToUpperExpression =>\n new ToUpperExpressionImpl(expression),\n substring: (\n expression: Expression,\n start: Expression,\n length?: Expression\n ): SubstringExpression =>\n new SubstringExpressionImpl(expression, start, length),\n length: (expression: Expression): LengthExpression =>\n new LengthExpressionImpl(expression),\n}\n\n/**\n * @builder\n */\nexport interface WixDataAggregatePipelineExpressions {\n /**\n * Creates a Boolean literal expression.\n * @public\n * @documentationMaturity preview\n * @param value - Boolean literal value.\n * @returns BooleanExpression object.\n */\n boolean(value: boolean): BooleanExpression\n /**\n * Returns whenTrue or whenFalse based on the condition expression.\n * @public\n * @documentationMaturity preview\n * @param ifExpression - Expression that resolves to a Boolean condition.\n * @param whenTrue - Expression returned when the condition is true.\n * @param whenFalse - Expression returned when the condition is false.\n * @returns ConditionExpression object.\n */\n condition(\n ifExpression: Expression,\n whenTrue: Expression,\n whenFalse: Expression\n ): ConditionExpression\n /**\n * Checks whether the first expression is greater than the second expression.\n * @public\n * @documentationMaturity preview\n * @param first - Left operand of the comparison.\n * @param second - Right operand of the comparison.\n * @returns GreaterThanExpression object.\n */\n gt(first: Expression, second: Expression): GreaterThanExpression\n /**\n * Returns the number of elements in an array expression.\n * @public\n * @documentationMaturity preview\n * @param expression - Expression that resolves to an array.\n * @returns SizeExpression object.\n */\n size(expression: Expression): SizeExpression\n\n /**\n * Specifies which field to resolve.\n *\n * The `field()` method configures the aggregation pipeline to resolve the value of the specified field as an expression.\n *\n * @public\n * @documentationMaturity preview\n * @param fieldPath - Path to the field containing the value to resolve. Use dot notation to specify nested fields. For example, `user.name` or `product.price`.\n * @returns FieldExpression object.\n */\n field(fieldPath: string): FieldExpression\n /**\n * String.\n *\n * The `text()` method configures the aggregation pipeline to run the aggregation on the specified string.\n *\n * @public\n * @documentationMaturity preview\n * @param value - String to run the aggregation on.\n * @returns TextExpression object.\n */\n text(value: string): TextExpression\n /**\n * Number.\n *\n * The `numeric()` method configures the aggregation pipeline to run the aggregation on the specified number.\n *\n * @public\n * @documentationMaturity preview\n * @param value - Number to run the aggregation on.\n * @returns NumericExpression object.\n */\n numeric(value: number): NumericExpression\n /**\n * Adds the specified expressions.\n *\n * The `add()` method configures the aggregation pipeline to add the values of the specified expressions.\n *\n * @public\n * @documentationMaturity preview\n * @param expressions - Expressions to add together. All expressions must resolve to numbers. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns AddExpression object.\n */\n add(...expressions: Expression[]): AddExpression\n /**\n * Subtracts 1 expression from another.\n *\n * The `subtract()` method configures the aggregation pipeline to subtract the second expression from the first expression.\n *\n * @public\n * @documentationMaturity preview\n * @param first - Expression to subtract `second` from. Expression must resolve to a number.\n * @param second - Expression to subtract from `first`. Expression must resolve to a number.\n * @returns SubtractExpression object.\n */\n subtract(first: Expression, second: Expression): SubtractExpression\n /**\n * Multiplies multiple expressions together.\n *\n * The `multiply()` method configures the aggregation pipeline to multiply the specified expressions.\n *\n * @public\n * @documentationMaturity preview\n * @param expressions - Expressions to multiply. All expressions must resolve to numbers. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns MultiplyExpression object.\n */\n multiply(...expressions: Expression[]): MultiplyExpression\n /**\n * Divides 1 expression by another.\n *\n * The `divide()` method configures the aggregation pipeline to divide the first expression by the second expression.\n *\n * @public\n * @documentationMaturity preview\n * @param first - Expression to divide by `second`. Expression must resolve to a number.\n * @param second - Expression to divide `first` by. Expression must resolve to a non-zero number.\n * @returns DivideExpression object.\n */\n divide(first: Expression, second: Expression): DivideExpression\n /**\n * Calculates the total sum of multiple expressions.\n *\n * The `sum()` method configures the aggregation pipeline to calculate the total sum of the specified expressions.\n *\n * @public\n * @documentationMaturity preview\n * @param expressions - Expressions to calculate the total sum of. All expressions must resolve to numbers. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns SumExpression object.\n */\n sum(...expressions: Expression[]): SumExpression\n /**\n * Finds the absolute value of an expression.\n *\n * The `abs()` method configures the aggregation pipeline to find the absolute value of the specified expression.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to find the absolute value of. Expression must resolve to a number. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns AbsExpression object.\n */\n abs(expression: Expression): AbsExpression\n /**\n * Finds the remainder when dividing 1 expression by another.\n *\n * The `mod()` method configures the aggregation pipeline to find the remainder when dividing the first expression by the second expression.\n *\n * @public\n * @documentationMaturity preview\n * @param first - Expression to divide by `second` to find the remainder. Expression must resolve to a number.\n * @param second - Expression to divide `first` by. Expression must resolve to a non-zero number.\n * @returns ModExpression object.\n */\n mod(first: Expression, second: Expression): ModExpression\n /**\n * Rounds an expression down to the nearest whole number.\n *\n * The `floor()` method configures the aggregation pipeline to round the specified expression down to the nearest integer.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to round down to the nearest whole number. Expression must resolve to a number. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns FloorExpression object.\n */\n floor(expression: Expression): FloorExpression\n /**\n * Rounds an expression up to the nearest whole number.\n *\n * The `ceil()` method configures the aggregation pipeline to round the specified expression up to the nearest integer.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to round up to the nearest whole number. Expression must resolve to a number. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns CeilExpression object.\n */\n ceil(expression: Expression): CeilExpression\n /**\n * Joins multiple expressions together to create a string.\n *\n * The `concat()` method configures the aggregation pipeline to join multiple expressions together to create a new string.\n *\n * @public\n * @documentationMaturity preview\n * @param expressions - Expressions to join together. All expressions must resolve to strings. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns ConcatExpression object.\n */\n concat(...expressions: Expression[]): ConcatExpression\n /**\n * Converts an expression to a string.\n *\n * The `stringify()` method configures the aggregation pipeline to convert the specified expression to a string.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to convert to a string. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns StringifyExpression object.\n */\n stringify(expression: Expression): StringifyExpression\n /**\n * Converts an expression to lowercase.\n *\n * The `toLower()` method configures the aggregation pipeline to convert the specified expression to lowercase.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to convert to lowercase. Expression must resolve to a string. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns ToLowerExpression object.\n */\n toLower(expression: Expression): ToLowerExpression\n /**\n * Converts an expression to uppercase.\n *\n * The `toUpper()` method configures the aggregation pipeline to convert the specified expression to uppercase.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to convert to uppercase. Expression must resolve to a string. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns ToUpperExpression object.\n */\n toUpper(expression: Expression): ToUpperExpression\n /**\n * Extracts a portion of a string expression.\n *\n * The `substring()` method configures the aggregation pipeline to extract a portion of the specified string expression.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to extract a substring from. Expression must resolve to a string. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @param start - Starting position of the substring to extract, specified in zero-based indexing. Expression must resolve to a number.\n * @param length - Number of characters to extract from the starting position. Expression must resolve to a number.\n * @returns SubstringExpression object.\n */\n substring(\n expression: Expression,\n start: Expression,\n length?: Expression\n ): SubstringExpression\n\n /**\n * Finds the length of a string expression.\n *\n * The `length()` method configures the aggregation pipeline to find the length of the specified expression.\n *\n * @public\n * @documentationMaturity preview\n * @param expression - Expression to find the total number of characters of. Expression must resolve to a string. Learn more about using [expressions in aggregation pipelines](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-aggregate-pipeline-expressions/introduction).\n * @returns LengthExpression object.\n */\n length(expression: Expression): LengthExpression\n}\n"],"mappings":";;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAgDO,MAAMC,WAAgD,GAAAC,OAAA,CAAAD,WAAA,GAAG;EAC9DE,OAAO,EAAGC,KAAc,IAAK,IAAIC,iCAAqB,CAACD,KAAK,CAAC;EAC7DE,SAAS,EAAEA,CACTC,YAAwB,EACxBC,QAAoB,EACpBC,SAAqB,KAClB,IAAIC,mCAAuB,CAACH,YAAY,EAAEC,QAAQ,EAAEC,SAAS,CAAC;EACnEE,EAAE,EAAEA,CAACC,KAAiB,EAAEC,MAAkB,KACxC,IAAIC,qCAAyB,CAACF,KAAK,EAAEC,MAAM,CAAC;EAC9CE,IAAI,EAAGC,UAAsB,IAAK,IAAIC,8BAAkB,CAACD,UAAU,CAAC;EAEpEE,KAAK,EAAGC,SAAiB,IACvB,IAAIC,+BAAmB,CAACD,SAAS,CAAC;EACpCE,IAAI,EAAGjB,KAAa,IAAqB,IAAIkB,8BAAkB,CAAClB,KAAK,CAAC;EACtEmB,OAAO,EAAGnB,KAAa,IACrB,IAAIoB,iCAAqB,CAACpB,KAAK,CAAC;EAClCqB,GAAG,EAAEA,CAAC,GAAGxB,WAAyB,KAChC,IAAIyB,6BAAiB,CAACzB,WAAW,CAAC;EACpC0B,QAAQ,EAAEA,CAACf,KAAiB,EAAEC,MAAkB,KAC9C,IAAIe,kCAAsB,CAAChB,KAAK,EAAEC,MAAM,CAAC;EAC3CgB,QAAQ,EAAEA,CAAC,GAAG5B,WAAyB,KACrC,IAAI6B,kCAAsB,CAAC7B,WAAW,CAAC;EACzC8B,MAAM,EAAEA,CAACnB,KAAiB,EAAEC,MAAkB,KAC5C,IAAImB,gCAAoB,CAACpB,KAAK,EAAEC,MAAM,CAAC;EACzCoB,GAAG,EAAEA,CAAC,GAAGhC,WAAyB,KAChC,IAAIiC,6BAAiB,CAACjC,WAAW,CAAC;EACpCkC,GAAG,EAAGnB,UAAsB,IAC1B,IAAIoB,6BAAiB,CAACpB,UAAU,CAAC;EACnCqB,GAAG,EAAEA,CAACzB,KAAiB,EAAEC,MAAkB,KACzC,IAAIyB,6BAAiB,CAAC1B,KAAK,EAAEC,MAAM,CAAC;EAEtC0B,KAAK,EAAGvB,UAAsB,IAC5B,IAAIwB,+BAAmB,CAACxB,UAAU,CAAC;EACrCyB,IAAI,EAAGzB,UAAsB,IAC3B,IAAI0B,8BAAkB,CAAC1B,UAAU,CAAC;EACpC2B,MAAM,EAAEA,CAAC,GAAG1C,WAAyB,KACnC,IAAI2C,gCAAoB,CAAC3C,WAAW,CAAC;EACvC4C,SAAS,EAAG7B,UAAsB,IAChC,IAAI8B,mCAAuB,CAAC9B,UAAU,CAAC;EACzC+B,OAAO,EAAG/B,UAAsB,IAC9B,IAAIgC,iCAAqB,CAAChC,UAAU,CAAC;EACvCiC,OAAO,EAAGjC,UAAsB,IAC9B,IAAIkC,iCAAqB,CAAClC,UAAU,CAAC;EACvCmC,SAAS,EAAEA,CACTnC,UAAsB,EACtBoC,KAAiB,EACjBC,MAAmB,KAEnB,IAAIC,mCAAuB,CAACtC,UAAU,EAAEoC,KAAK,EAAEC,MAAM,CAAC;EACxDA,MAAM,EAAGrC,UAAsB,IAC7B,IAAIuC,gCAAoB,CAACvC,UAAU;AACvC,CAAC;;AAED;AACA;AACA","ignoreList":[]}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.WixDataInsertOptions = exports.WixDataGetOptions = exports.WixDataFilterInput = exports.WixDataFilter = exports.WixDataFieldModificationsBuilder = exports.WixDataDistinctResponse = exports.WixDataDistinctOptions = exports.WixDataCountOptions = exports.WixDataBulkUpdateOptions = exports.WixDataBulkUnpublishDataItemsOptions = exports.WixDataBulkSaveOptions = exports.WixDataBulkResult = exports.WixDataBulkRemoveOptions = exports.WixDataBulkPublishDataItemDraftsOptions = exports.WixDataBulkPatchOptions = exports.WixDataBulkPatch = exports.WixDataBulkInsertOptions = exports.WixDataBulkError = exports.WixDataBulkDraftResult = exports.WixDataAsyncRemoveByFilterResponse = exports.WixDataAsyncRemoveByFilterOptions = exports.WixDataAsyncPatchByFilterResponse = exports.WixDataAsyncPatchByFilterOptions = exports.WixDataAsyncJobStatusValue = exports.WixDataAsyncJobStatus = exports.WixDataAsyncJob = exports.WixDataAsyncByFilterOptions = exports.WixDataApi = exports.WixDataAggregateResponse = exports.WixDataAggregatePipelineStages = exports.WixDataAggregatePipelineExpressions = exports.WixDataAggregateOptions = exports.WixDataAggregate = exports.WithIncludeFieldGroupsOption = exports.WithId = exports.UpdateOptionsBuilder = exports.UnwindStage = exports.UnresolvedReference = exports.ToUpperExpression = exports.ToLowerExpression = exports.TextExpression = exports.SumExpression = exports.SubtractExpression = exports.SubstringExpression = exports.StringifyExpression = exports.SortStage = exports.Sort = exports.SkipStage = exports.SetField = exports.SearchParams = exports.SearchOptionsBuilder = exports.SearchBuilder = exports.SaveOptionsBuilder = exports.RemoveOptionsBuilder = exports.RemoveFromArray = exports.RemoveField = exports.ReferencedResult = exports.QueryValidator = exports.QueryReferencedItemsOptionsBuilder = exports.QueryOptionsBuilder = exports.QueryBuilder = exports.QueryBase = exports.ProjectStage = exports.PipelineStage = exports.PipelineBuilder = exports.PatchOptionsBuilder = exports.PagingMetadata = exports.ObjectToArrayStage = exports.NumericExpression = exports.MultiplyExpression = exports.ModExpression = exports.LimitStage = exports.LengthExpression = exports.IsReferencedOptionsBuilder = exports.InsertOptionsBuilder = exports.IncrementField = exports.GroupStage = exports.GetOptionsBuilder = exports.FloorExpression = exports.FilterStage = exports.Filter = exports.FieldModificationsBuilder = exports.FieldModification = exports.FieldExpression = exports.DivideExpression = exports.DistinctOptionsBuilder = exports.CountOptionsBuilder = exports.ConcatExpression = exports.CeilExpression = exports.BulkUpdateOptionsBuilder = exports.BulkSaveOptionsBuilder = exports.BulkRemoveOptionsBuilder = exports.BulkPatchOptionsBuilder = exports.BulkInsertOptionsBuilder = exports.AsyncRemoveByFilterOptionsBuilder = exports.AsyncPatchByFilterOptionsBuilder = exports.AppendToArray = exports.AggregateOptionsBuilder = exports.AddExpression = exports.AbsExpression = void 0;
5
- exports.stages = exports.pipelineBuilder = exports.expressions = exports.WixDataUpdateOptions = exports.WixDataUnpublishDataItemOptions = exports.WixDataSearchResponse = exports.WixDataSearchRequest = exports.WixDataSearchOptions = exports.WixDataSearch = exports.WixDataSaveOptions = exports.WixDataResult = exports.WixDataRemoveOptions = exports.WixDataReference = exports.WixDataReadWithProjectionOptions = exports.WixDataReadOptions = exports.WixDataQuerySpec = exports.WixDataQueryResponse = exports.WixDataQueryRequest = exports.WixDataQueryReferencedOptions = exports.WixDataQueryReferencedItemsResponse = exports.WixDataQueryReferencedItemsOptions = exports.WixDataQueryOptions = exports.WixDataQueryBuilder = exports.WixDataQuery = exports.WixDataPatchOptions = exports.WixDataPatchByFilter = exports.WixDataPatch = exports.WixDataOptions = exports.WixDataItem = void 0;
4
+ exports.WixDataCountOptions = exports.WixDataBulkUpdateOptions = exports.WixDataBulkUnpublishDataItemsOptions = exports.WixDataBulkSaveOptions = exports.WixDataBulkResult = exports.WixDataBulkRemoveOptions = exports.WixDataBulkPublishDataItemDraftsOptions = exports.WixDataBulkPatchOptions = exports.WixDataBulkPatch = exports.WixDataBulkInsertOptions = exports.WixDataBulkError = exports.WixDataBulkDraftResult = exports.WixDataAsyncRemoveByFilterResponse = exports.WixDataAsyncRemoveByFilterOptions = exports.WixDataAsyncPatchByFilterResponse = exports.WixDataAsyncPatchByFilterOptions = exports.WixDataAsyncJobStatusValue = exports.WixDataAsyncJobStatus = exports.WixDataAsyncJob = exports.WixDataAsyncByFilterOptions = exports.WixDataApi = exports.WixDataAggregateResponse = exports.WixDataAggregatePipelineStages = exports.WixDataAggregatePipelineExpressions = exports.WixDataAggregateOptions = exports.WixDataAggregate = exports.WithIncludeFieldGroupsOption = exports.WithId = exports.UpdateOptionsBuilder = exports.UnwindStage = exports.UnresolvedReference = exports.UnionWithStage = exports.ToUpperExpression = exports.ToLowerExpression = exports.TextExpression = exports.SumExpression = exports.SubtractExpression = exports.SubstringExpression = exports.StringifyExpression = exports.SortStage = exports.Sort = exports.SkipStage = exports.SizeExpression = exports.SetField = exports.SearchParams = exports.SearchOptionsBuilder = exports.SearchBuilder = exports.SaveOptionsBuilder = exports.RemoveOptionsBuilder = exports.RemoveFromArray = exports.RemoveField = exports.ReferencedResult = exports.QueryValidator = exports.QueryReferencedItemsOptionsBuilder = exports.QueryOptionsBuilder = exports.QueryBuilder = exports.QueryBase = exports.ProjectStage = exports.PipelineStage = exports.PipelineBuilder = exports.PatchOptionsBuilder = exports.PagingMetadata = exports.ObjectToArrayStage = exports.NumericExpression = exports.MultiplyExpression = exports.ModExpression = exports.LookupStage = exports.LimitStage = exports.LengthExpression = exports.IsReferencedOptionsBuilder = exports.InsertOptionsBuilder = exports.IncrementField = exports.GroupStage = exports.GreaterThanExpression = exports.GetOptionsBuilder = exports.FloorExpression = exports.FilterStage = exports.Filter = exports.FieldModificationsBuilder = exports.FieldModification = exports.FieldExpression = exports.DivideExpression = exports.DistinctOptionsBuilder = exports.CountOptionsBuilder = exports.ConditionExpression = exports.ConcatExpression = exports.CeilExpression = exports.BulkUpdateOptionsBuilder = exports.BulkSaveOptionsBuilder = exports.BulkRemoveOptionsBuilder = exports.BulkPatchOptionsBuilder = exports.BulkInsertOptionsBuilder = exports.BooleanExpression = exports.AsyncRemoveByFilterOptionsBuilder = exports.AsyncPatchByFilterOptionsBuilder = exports.AppendToArray = exports.AggregateOptionsBuilder = exports.AddFieldsStage = exports.AddExpression = exports.AbsExpression = void 0;
5
+ exports.stages = exports.pipelineBuilder = exports.expressions = exports.WixDataUpdateOptions = exports.WixDataUnpublishDataItemOptions = exports.WixDataSearchResponse = exports.WixDataSearchRequest = exports.WixDataSearchOptions = exports.WixDataSearch = exports.WixDataSaveOptions = exports.WixDataResult = exports.WixDataRemoveOptions = exports.WixDataReference = exports.WixDataReadWithProjectionOptions = exports.WixDataReadOptions = exports.WixDataQuerySpec = exports.WixDataQueryResponse = exports.WixDataQueryRequest = exports.WixDataQueryReferencedOptions = exports.WixDataQueryReferencedItemsResponse = exports.WixDataQueryReferencedItemsOptions = exports.WixDataQueryOptions = exports.WixDataQueryBuilder = exports.WixDataQuery = exports.WixDataPatchOptions = exports.WixDataPatchByFilter = exports.WixDataPatch = exports.WixDataOptions = exports.WixDataItem = exports.WixDataInsertOptions = exports.WixDataGetOptions = exports.WixDataFilterInput = exports.WixDataFilter = exports.WixDataFieldModificationsBuilder = exports.WixDataDistinctResponse = exports.WixDataDistinctOptions = void 0;
6
6
  var _WixDataQuery = require("./WixDataQuery");
7
7
  exports.WixDataQuery = _WixDataQuery.WixDataQuery;
8
8
  var _WixDataSearch = require("./WixDataSearch");
@@ -109,6 +109,12 @@ var _LimitStage = require("./stages/LimitStage");
109
109
  exports.LimitStage = _LimitStage.LimitStage;
110
110
  var _SkipStage = require("./stages/SkipStage");
111
111
  exports.SkipStage = _SkipStage.SkipStage;
112
+ var _AddFieldsStage = require("./stages/AddFieldsStage");
113
+ exports.AddFieldsStage = _AddFieldsStage.AddFieldsStage;
114
+ var _LookupStage = require("./stages/LookupStage");
115
+ exports.LookupStage = _LookupStage.LookupStage;
116
+ var _UnionWithStage = require("./stages/UnionWithStage");
117
+ exports.UnionWithStage = _UnionWithStage.UnionWithStage;
112
118
  var _ObjectToArrayStage = require("./stages/ObjectToArrayStage");
113
119
  exports.ObjectToArrayStage = _ObjectToArrayStage.ObjectToArrayStage;
114
120
  var _PipelineBuilder = require("./PipelineBuilder");
@@ -184,4 +190,8 @@ exports.ToLowerExpression = _Expression.ToLowerExpression;
184
190
  exports.ToUpperExpression = _Expression.ToUpperExpression;
185
191
  exports.SubstringExpression = _Expression.SubstringExpression;
186
192
  exports.LengthExpression = _Expression.LengthExpression;
193
+ exports.BooleanExpression = _Expression.BooleanExpression;
194
+ exports.ConditionExpression = _Expression.ConditionExpression;
195
+ exports.GreaterThanExpression = _Expression.GreaterThanExpression;
196
+ exports.SizeExpression = _Expression.SizeExpression;
187
197
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_WixDataQuery","require","exports","WixDataQuery","_WixDataSearch","WixDataSearch","_WixDataApi","WixDataApi","_WixDataResult","WixDataResult","_WixDataQueryResponse","WixDataQueryResponse","_WixDataSearchResponse","WixDataSearchResponse","_WixDataAggregateResponse","WixDataAggregateResponse","_WixDataDistinctResponse","WixDataDistinctResponse","_WixDataQueryReferencedItemsResponse","WixDataQueryReferencedItemsResponse","ReferencedResult","UnresolvedReference","_PagingMetadata","PagingMetadata","_QueryValidator","QueryValidator","_WixDataAggregate","WixDataAggregate","_QueryBase","QueryBase","_WixDataPatch","WixDataPatch","WixDataBulkPatch","WixDataPatchByFilter","WixDataPatchOptions","WixDataBulkPatchOptions","_FieldModification","FieldModification","SetField","RemoveField","IncrementField","AppendToArray","RemoveFromArray","_WixDataFieldModificationsBuilder","FieldModificationsBuilder","WixDataFieldModificationsBuilder","_WixDataFilter","WixDataFilter","_types","WixDataOptions","WixDataReadOptions","WixDataReadWithProjectionOptions","WithIncludeFieldGroupsOption","WixDataGetOptions","WixDataUpdateOptions","WixDataQueryOptions","WixDataQueryRequest","WixDataQuerySpec","WixDataItem","WithId","WixDataReference","WixDataBulkError","WixDataSaveOptions","WixDataAsyncByFilterOptions","WixDataAsyncRemoveByFilterOptions","WixDataAsyncPatchByFilterOptions","WixDataAsyncJob","WixDataAsyncRemoveByFilterResponse","WixDataAsyncPatchByFilterResponse","WixDataAsyncJobStatus","WixDataAsyncJobStatusValue","WixDataFilterInput","WixDataBulkUpdateOptions","WixDataBulkRemoveOptions","WixDataBulkInsertOptions","WixDataBulkSaveOptions","WixDataInsertOptions","WixDataBulkResult","WixDataQueryReferencedOptions","WixDataQueryReferencedItemsOptions","WixDataAggregateOptions","WixDataRemoveOptions","WixDataUnpublishDataItemOptions","WixDataBulkPublishDataItemDraftsOptions","WixDataBulkUnpublishDataItemsOptions","WixDataBulkDraftResult","WixDataDistinctOptions","WixDataCountOptions","WixDataSearchRequest","WixDataSearchOptions","_stages","stages","PipelineStage","WixDataAggregatePipelineStages","_FilterStage","FilterStage","_ProjectStage","ProjectStage","_GroupStage","GroupStage","_UnwindStage","UnwindStage","_SortStage","SortStage","_LimitStage","LimitStage","_SkipStage","SkipStage","_ObjectToArrayStage","ObjectToArrayStage","_PipelineBuilder","PipelineBuilder","pipelineBuilder","_WixDataQueryBuilder","QueryBuilder","Sort","Filter","WixDataQueryBuilder","_WixDataSearchBuilder","SearchBuilder","SearchParams","_WixDataInsertOptionsBuilder","InsertOptionsBuilder","_WixDataSaveOptionsBuilder","SaveOptionsBuilder","_WixDataGetOptionsBuilder","GetOptionsBuilder","_WixDataQueryOptionsBuilder","QueryOptionsBuilder","_WixDataQueryReferencedItemsOptionsBuilder","QueryReferencedItemsOptionsBuilder","_WixDataAggregateOptionsBuilder","AggregateOptionsBuilder","_WixDataDistinctOptionsBuilder","DistinctOptionsBuilder","_WixDataCountOptionsBuilder","CountOptionsBuilder","_WixDataIsReferencedOptionsBuilder","IsReferencedOptionsBuilder","_WixDataSearchOptionsBuilder","SearchOptionsBuilder","_WixDataUpdateOptionsBuilder","UpdateOptionsBuilder","_WixDataBulkUpdateOptionsBuilder","BulkUpdateOptionsBuilder","_WixDataBulkInsertOptionsBuilder","BulkInsertOptionsBuilder","_WixDataBulkSaveOptionsBuilder","BulkSaveOptionsBuilder","_WixDataBulkRemoveOptionsBuilder","BulkRemoveOptionsBuilder","_WixDataPatchOptionsBuilder","PatchOptionsBuilder","_WixDataBulkPatchOptionsBuilder","BulkPatchOptionsBuilder","_WixDataRemoveOptionsBuilder","RemoveOptionsBuilder","_WixDataAsyncRemoveByFilterOptionsBuilder","AsyncRemoveByFilterOptionsBuilder","_WixDataAsyncPatchByFilterOptionsBuilder","AsyncPatchByFilterOptionsBuilder","_expressions","expressions","WixDataAggregatePipelineExpressions","_Expression","FieldExpression","TextExpression","NumericExpression","AddExpression","SubtractExpression","MultiplyExpression","DivideExpression","SumExpression","AbsExpression","ModExpression","FloorExpression","CeilExpression","ConcatExpression","StringifyExpression","ToLowerExpression","ToUpperExpression","SubstringExpression","LengthExpression"],"sources":["../../../src/api/index.ts"],"sourcesContent":["export { WixDataQuery } from './WixDataQuery'\nexport { WixDataSearch } from './WixDataSearch'\nexport { WixDataApi } from './WixDataApi'\nexport { WixDataResult } from './WixDataResult'\nexport { WixDataQueryResponse } from './WixDataQueryResponse'\nexport { WixDataSearchResponse } from './WixDataSearchResponse'\nexport { WixDataAggregateResponse } from './WixDataAggregateResponse'\nexport { WixDataDistinctResponse } from './WixDataDistinctResponse'\nexport {\n WixDataQueryReferencedItemsResponse,\n ReferencedResult,\n UnresolvedReference,\n} from './WixDataQueryReferencedItemsResponse'\nexport { PagingMetadata } from './PagingMetadata'\nexport { QueryValidator } from './QueryValidator'\nexport { WixDataAggregate } from './WixDataAggregate'\nexport { QueryBase } from './QueryBase'\nexport {\n WixDataPatch,\n WixDataBulkPatch,\n WixDataPatchByFilter,\n WixDataPatchOptions,\n WixDataBulkPatchOptions,\n} from './WixDataPatch'\nexport {\n FieldModification,\n SetField,\n RemoveField,\n IncrementField,\n AppendToArray,\n RemoveFromArray,\n} from './FieldModification'\nexport {\n FieldModificationsBuilder,\n WixDataFieldModificationsBuilder,\n} from './WixDataFieldModificationsBuilder'\nexport { WixDataFilter } from './WixDataFilter'\nexport {\n WixDataOptions,\n WixDataReadOptions,\n WixDataReadWithProjectionOptions,\n WithIncludeFieldGroupsOption,\n WixDataGetOptions,\n WixDataUpdateOptions,\n WixDataQueryOptions,\n WixDataQueryRequest,\n WixDataQuerySpec,\n WixDataItem,\n WithId,\n WixDataReference,\n WixDataBulkError,\n WixDataSaveOptions,\n WixDataAsyncByFilterOptions,\n WixDataAsyncRemoveByFilterOptions,\n WixDataAsyncPatchByFilterOptions,\n WixDataAsyncJob,\n WixDataAsyncRemoveByFilterResponse,\n WixDataAsyncPatchByFilterResponse,\n WixDataAsyncJobStatus,\n WixDataAsyncJobStatusValue,\n WixDataFilterInput,\n WixDataBulkUpdateOptions,\n WixDataBulkRemoveOptions,\n WixDataBulkInsertOptions,\n WixDataBulkSaveOptions,\n WixDataInsertOptions,\n WixDataBulkResult,\n WixDataQueryReferencedOptions,\n WixDataQueryReferencedItemsOptions,\n WixDataAggregateOptions,\n WixDataRemoveOptions,\n WixDataUnpublishDataItemOptions,\n WixDataBulkPublishDataItemDraftsOptions,\n WixDataBulkUnpublishDataItemsOptions,\n WixDataBulkDraftResult,\n WixDataDistinctOptions,\n WixDataCountOptions,\n WixDataSearchRequest,\n WixDataSearchOptions,\n} from './types'\nexport type { WixDataIsReferencedOptions, WixDataItemOrId } from './types'\nexport {\n stages,\n PipelineStage,\n WixDataAggregatePipelineStages,\n} from './stages/stages'\nexport { FilterStage } from './stages/FilterStage'\nexport { ProjectStage } from './stages/ProjectStage'\nexport { GroupStage } from './stages/GroupStage'\nexport { UnwindStage } from './stages/UnwindStage'\nexport { SortStage } from './stages/SortStage'\nexport { LimitStage } from './stages/LimitStage'\nexport { SkipStage } from './stages/SkipStage'\nexport { ObjectToArrayStage } from './stages/ObjectToArrayStage'\nexport { PipelineBuilder, pipelineBuilder } from './PipelineBuilder'\nexport {\n QueryBuilder,\n Sort,\n Filter,\n WixDataQueryBuilder,\n} from './WixDataQueryBuilder'\nexport { SearchBuilder, SearchParams } from './WixDataSearchBuilder'\nexport { InsertOptionsBuilder } from './WixDataInsertOptionsBuilder'\nexport type { WixDataInsertOptionsBuilder } from './WixDataInsertOptionsBuilder'\nexport { SaveOptionsBuilder } from './WixDataSaveOptionsBuilder'\nexport type { WixDataSaveOptionsBuilder } from './WixDataSaveOptionsBuilder'\nexport { GetOptionsBuilder } from './WixDataGetOptionsBuilder'\nexport type { WixDataGetOptionsBuilder } from './WixDataGetOptionsBuilder'\nexport { QueryOptionsBuilder } from './WixDataQueryOptionsBuilder'\nexport type { WixDataQueryOptionsBuilder } from './WixDataQueryOptionsBuilder'\nexport { QueryReferencedItemsOptionsBuilder } from './WixDataQueryReferencedItemsOptionsBuilder'\nexport type { WixDataQueryReferencedItemsOptionsBuilder } from './WixDataQueryReferencedItemsOptionsBuilder'\nexport { AggregateOptionsBuilder } from './WixDataAggregateOptionsBuilder'\nexport type { WixDataAggregateOptionsBuilder } from './WixDataAggregateOptionsBuilder'\nexport { DistinctOptionsBuilder } from './WixDataDistinctOptionsBuilder'\nexport type { WixDataDistinctOptionsBuilder } from './WixDataDistinctOptionsBuilder'\nexport { CountOptionsBuilder } from './WixDataCountOptionsBuilder'\nexport type { WixDataCountOptionsBuilder } from './WixDataCountOptionsBuilder'\nexport { IsReferencedOptionsBuilder } from './WixDataIsReferencedOptionsBuilder'\nexport type { WixDataIsReferencedOptionsBuilder } from './WixDataIsReferencedOptionsBuilder'\nexport { SearchOptionsBuilder } from './WixDataSearchOptionsBuilder'\nexport type { WixDataSearchOptionsBuilder } from './WixDataSearchOptionsBuilder'\nexport { UpdateOptionsBuilder } from './WixDataUpdateOptionsBuilder'\nexport type { WixDataUpdateOptionsBuilder } from './WixDataUpdateOptionsBuilder'\nexport { BulkUpdateOptionsBuilder } from './WixDataBulkUpdateOptionsBuilder'\nexport type { WixDataBulkUpdateOptionsBuilder } from './WixDataBulkUpdateOptionsBuilder'\nexport { BulkInsertOptionsBuilder } from './WixDataBulkInsertOptionsBuilder'\nexport type { WixDataBulkInsertOptionsBuilder } from './WixDataBulkInsertOptionsBuilder'\nexport { BulkSaveOptionsBuilder } from './WixDataBulkSaveOptionsBuilder'\nexport type { WixDataBulkSaveOptionsBuilder } from './WixDataBulkSaveOptionsBuilder'\nexport { BulkRemoveOptionsBuilder } from './WixDataBulkRemoveOptionsBuilder'\nexport type { WixDataBulkRemoveOptionsBuilder } from './WixDataBulkRemoveOptionsBuilder'\nexport { PatchOptionsBuilder } from './WixDataPatchOptionsBuilder'\nexport type { WixDataPatchOptionsBuilder } from './WixDataPatchOptionsBuilder'\nexport { BulkPatchOptionsBuilder } from './WixDataBulkPatchOptionsBuilder'\nexport type { WixDataBulkPatchOptionsBuilder } from './WixDataBulkPatchOptionsBuilder'\nexport { RemoveOptionsBuilder } from './WixDataRemoveOptionsBuilder'\nexport type { WixDataRemoveOptionsBuilder } from './WixDataRemoveOptionsBuilder'\nexport { AsyncRemoveByFilterOptionsBuilder } from './WixDataAsyncRemoveByFilterOptionsBuilder'\nexport type { WixDataAsyncRemoveByFilterOptionsBuilder } from './WixDataAsyncRemoveByFilterOptionsBuilder'\nexport { AsyncPatchByFilterOptionsBuilder } from './WixDataAsyncPatchByFilterOptionsBuilder'\nexport type { WixDataAsyncPatchByFilterOptionsBuilder } from './WixDataAsyncPatchByFilterOptionsBuilder'\nexport {\n expressions,\n WixDataAggregatePipelineExpressions,\n} from './expressions/expressions'\nexport {\n FieldExpression,\n TextExpression,\n NumericExpression,\n AddExpression,\n SubtractExpression,\n MultiplyExpression,\n DivideExpression,\n SumExpression,\n AbsExpression,\n ModExpression,\n FloorExpression,\n CeilExpression,\n ConcatExpression,\n StringifyExpression,\n ToLowerExpression,\n ToUpperExpression,\n SubstringExpression,\n LengthExpression,\n} from './expressions/Expression'\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAA6CC,OAAA,CAAAC,YAAA,GAAAH,aAAA,CAAAG,YAAA;AAC7C,IAAAC,cAAA,GAAAH,OAAA;AAA+CC,OAAA,CAAAG,aAAA,GAAAD,cAAA,CAAAC,aAAA;AAC/C,IAAAC,WAAA,GAAAL,OAAA;AAAyCC,OAAA,CAAAK,UAAA,GAAAD,WAAA,CAAAC,UAAA;AACzC,IAAAC,cAAA,GAAAP,OAAA;AAA+CC,OAAA,CAAAO,aAAA,GAAAD,cAAA,CAAAC,aAAA;AAC/C,IAAAC,qBAAA,GAAAT,OAAA;AAA6DC,OAAA,CAAAS,oBAAA,GAAAD,qBAAA,CAAAC,oBAAA;AAC7D,I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,WAAA,CAAAe,iBAAA;AAAAjL,OAAA,CAAAkL,iBAAA,GAAAhB,WAAA,CAAAgB,iBAAA;AAAAlL,OAAA,CAAAmL,mBAAA,GAAAjB,WAAA,CAAAiB,mBAAA;AAAAnL,OAAA,CAAAoL,gBAAA,GAAAlB,WAAA,CAAAkB,gBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_WixDataQuery","require","exports","WixDataQuery","_WixDataSearch","WixDataSearch","_WixDataApi","WixDataApi","_WixDataResult","WixDataResult","_WixDataQueryResponse","WixDataQueryResponse","_WixDataSearchResponse","WixDataSearchResponse","_WixDataAggregateResponse","WixDataAggregateResponse","_WixDataDistinctResponse","WixDataDistinctResponse","_WixDataQueryReferencedItemsResponse","WixDataQueryReferencedItemsResponse","ReferencedResult","UnresolvedReference","_PagingMetadata","PagingMetadata","_QueryValidator","QueryValidator","_WixDataAggregate","WixDataAggregate","_QueryBase","QueryBase","_WixDataPatch","WixDataPatch","WixDataBulkPatch","WixDataPatchByFilter","WixDataPatchOptions","WixDataBulkPatchOptions","_FieldModification","FieldModification","SetField","RemoveField","IncrementField","AppendToArray","RemoveFromArray","_WixDataFieldModificationsBuilder","FieldModificationsBuilder","WixDataFieldModificationsBuilder","_WixDataFilter","WixDataFilter","_types","WixDataOptions","WixDataReadOptions","WixDataReadWithProjectionOptions","WithIncludeFieldGroupsOption","WixDataGetOptions","WixDataUpdateOptions","WixDataQueryOptions","WixDataQueryRequest","WixDataQuerySpec","WixDataItem","WithId","WixDataReference","WixDataBulkError","WixDataSaveOptions","WixDataAsyncByFilterOptions","WixDataAsyncRemoveByFilterOptions","WixDataAsyncPatchByFilterOptions","WixDataAsyncJob","WixDataAsyncRemoveByFilterResponse","WixDataAsyncPatchByFilterResponse","WixDataAsyncJobStatus","WixDataAsyncJobStatusValue","WixDataFilterInput","WixDataBulkUpdateOptions","WixDataBulkRemoveOptions","WixDataBulkInsertOptions","WixDataBulkSaveOptions","WixDataInsertOptions","WixDataBulkResult","WixDataQueryReferencedOptions","WixDataQueryReferencedItemsOptions","WixDataAggregateOptions","WixDataRemoveOptions","WixDataUnpublishDataItemOptions","WixDataBulkPublishDataItemDraftsOptions","WixDataBulkUnpublishDataItemsOptions","WixDataBulkDraftResult","WixDataDistinctOptions","WixDataCountOptions","WixDataSearchRequest","WixDataSearchOptions","_stages","stages","PipelineStage","WixDataAggregatePipelineStages","_FilterStage","FilterStage","_ProjectStage","ProjectStage","_GroupStage","GroupStage","_UnwindStage","UnwindStage","_SortStage","SortStage","_LimitStage","LimitStage","_SkipStage","SkipStage","_AddFieldsStage","AddFieldsStage","_LookupStage","LookupStage","_UnionWithStage","UnionWithStage","_ObjectToArrayStage","ObjectToArrayStage","_PipelineBuilder","PipelineBuilder","pipelineBuilder","_WixDataQueryBuilder","QueryBuilder","Sort","Filter","WixDataQueryBuilder","_WixDataSearchBuilder","SearchBuilder","SearchParams","_WixDataInsertOptionsBuilder","InsertOptionsBuilder","_WixDataSaveOptionsBuilder","SaveOptionsBuilder","_WixDataGetOptionsBuilder","GetOptionsBuilder","_WixDataQueryOptionsBuilder","QueryOptionsBuilder","_WixDataQueryReferencedItemsOptionsBuilder","QueryReferencedItemsOptionsBuilder","_WixDataAggregateOptionsBuilder","AggregateOptionsBuilder","_WixDataDistinctOptionsBuilder","DistinctOptionsBuilder","_WixDataCountOptionsBuilder","CountOptionsBuilder","_WixDataIsReferencedOptionsBuilder","IsReferencedOptionsBuilder","_WixDataSearchOptionsBuilder","SearchOptionsBuilder","_WixDataUpdateOptionsBuilder","UpdateOptionsBuilder","_WixDataBulkUpdateOptionsBuilder","BulkUpdateOptionsBuilder","_WixDataBulkInsertOptionsBuilder","BulkInsertOptionsBuilder","_WixDataBulkSaveOptionsBuilder","BulkSaveOptionsBuilder","_WixDataBulkRemoveOptionsBuilder","BulkRemoveOptionsBuilder","_WixDataPatchOptionsBuilder","PatchOptionsBuilder","_WixDataBulkPatchOptionsBuilder","BulkPatchOptionsBuilder","_WixDataRemoveOptionsBuilder","RemoveOptionsBuilder","_WixDataAsyncRemoveByFilterOptionsBuilder","AsyncRemoveByFilterOptionsBuilder","_WixDataAsyncPatchByFilterOptionsBuilder","AsyncPatchByFilterOptionsBuilder","_expressions","expressions","WixDataAggregatePipelineExpressions","_Expression","FieldExpression","TextExpression","NumericExpression","AddExpression","SubtractExpression","MultiplyExpression","DivideExpression","SumExpression","AbsExpression","ModExpression","FloorExpression","CeilExpression","ConcatExpression","StringifyExpression","ToLowerExpression","ToUpperExpression","SubstringExpression","LengthExpression","BooleanExpression","ConditionExpression","GreaterThanExpression","SizeExpression"],"sources":["../../../src/api/index.ts"],"sourcesContent":["export { WixDataQuery } from './WixDataQuery'\nexport { WixDataSearch } from './WixDataSearch'\nexport { WixDataApi } from './WixDataApi'\nexport { WixDataResult } from './WixDataResult'\nexport { WixDataQueryResponse } from './WixDataQueryResponse'\nexport { WixDataSearchResponse } from './WixDataSearchResponse'\nexport { WixDataAggregateResponse } from './WixDataAggregateResponse'\nexport { WixDataDistinctResponse } from './WixDataDistinctResponse'\nexport {\n WixDataQueryReferencedItemsResponse,\n ReferencedResult,\n UnresolvedReference,\n} from './WixDataQueryReferencedItemsResponse'\nexport { PagingMetadata } from './PagingMetadata'\nexport { QueryValidator } from './QueryValidator'\nexport { WixDataAggregate } from './WixDataAggregate'\nexport { QueryBase } from './QueryBase'\nexport {\n WixDataPatch,\n WixDataBulkPatch,\n WixDataPatchByFilter,\n WixDataPatchOptions,\n WixDataBulkPatchOptions,\n} from './WixDataPatch'\nexport {\n FieldModification,\n SetField,\n RemoveField,\n IncrementField,\n AppendToArray,\n RemoveFromArray,\n} from './FieldModification'\nexport {\n FieldModificationsBuilder,\n WixDataFieldModificationsBuilder,\n} from './WixDataFieldModificationsBuilder'\nexport { WixDataFilter } from './WixDataFilter'\nexport {\n WixDataOptions,\n WixDataReadOptions,\n WixDataReadWithProjectionOptions,\n WithIncludeFieldGroupsOption,\n WixDataGetOptions,\n WixDataUpdateOptions,\n WixDataQueryOptions,\n WixDataQueryRequest,\n WixDataQuerySpec,\n WixDataItem,\n WithId,\n WixDataReference,\n WixDataBulkError,\n WixDataSaveOptions,\n WixDataAsyncByFilterOptions,\n WixDataAsyncRemoveByFilterOptions,\n WixDataAsyncPatchByFilterOptions,\n WixDataAsyncJob,\n WixDataAsyncRemoveByFilterResponse,\n WixDataAsyncPatchByFilterResponse,\n WixDataAsyncJobStatus,\n WixDataAsyncJobStatusValue,\n WixDataFilterInput,\n WixDataBulkUpdateOptions,\n WixDataBulkRemoveOptions,\n WixDataBulkInsertOptions,\n WixDataBulkSaveOptions,\n WixDataInsertOptions,\n WixDataBulkResult,\n WixDataQueryReferencedOptions,\n WixDataQueryReferencedItemsOptions,\n WixDataAggregateOptions,\n WixDataRemoveOptions,\n WixDataUnpublishDataItemOptions,\n WixDataBulkPublishDataItemDraftsOptions,\n WixDataBulkUnpublishDataItemsOptions,\n WixDataBulkDraftResult,\n WixDataDistinctOptions,\n WixDataCountOptions,\n WixDataSearchRequest,\n WixDataSearchOptions,\n} from './types'\nexport type { WixDataIsReferencedOptions, WixDataItemOrId } from './types'\nexport {\n stages,\n PipelineStage,\n WixDataAggregatePipelineStages,\n} from './stages/stages'\nexport { FilterStage } from './stages/FilterStage'\nexport { ProjectStage } from './stages/ProjectStage'\nexport { GroupStage } from './stages/GroupStage'\nexport { UnwindStage } from './stages/UnwindStage'\nexport { SortStage } from './stages/SortStage'\nexport { LimitStage } from './stages/LimitStage'\nexport { SkipStage } from './stages/SkipStage'\nexport { AddFieldsStage } from './stages/AddFieldsStage'\nexport { LookupStage } from './stages/LookupStage'\nexport { UnionWithStage } from './stages/UnionWithStage'\nexport { ObjectToArrayStage } from './stages/ObjectToArrayStage'\nexport { PipelineBuilder, pipelineBuilder } from './PipelineBuilder'\nexport {\n QueryBuilder,\n Sort,\n Filter,\n WixDataQueryBuilder,\n} from './WixDataQueryBuilder'\nexport { SearchBuilder, SearchParams } from './WixDataSearchBuilder'\nexport { InsertOptionsBuilder } from './WixDataInsertOptionsBuilder'\nexport type { WixDataInsertOptionsBuilder } from './WixDataInsertOptionsBuilder'\nexport { SaveOptionsBuilder } from './WixDataSaveOptionsBuilder'\nexport type { WixDataSaveOptionsBuilder } from './WixDataSaveOptionsBuilder'\nexport { GetOptionsBuilder } from './WixDataGetOptionsBuilder'\nexport type { WixDataGetOptionsBuilder } from './WixDataGetOptionsBuilder'\nexport { QueryOptionsBuilder } from './WixDataQueryOptionsBuilder'\nexport type { WixDataQueryOptionsBuilder } from './WixDataQueryOptionsBuilder'\nexport { QueryReferencedItemsOptionsBuilder } from './WixDataQueryReferencedItemsOptionsBuilder'\nexport type { WixDataQueryReferencedItemsOptionsBuilder } from './WixDataQueryReferencedItemsOptionsBuilder'\nexport { AggregateOptionsBuilder } from './WixDataAggregateOptionsBuilder'\nexport type { WixDataAggregateOptionsBuilder } from './WixDataAggregateOptionsBuilder'\nexport { DistinctOptionsBuilder } from './WixDataDistinctOptionsBuilder'\nexport type { WixDataDistinctOptionsBuilder } from './WixDataDistinctOptionsBuilder'\nexport { CountOptionsBuilder } from './WixDataCountOptionsBuilder'\nexport type { WixDataCountOptionsBuilder } from './WixDataCountOptionsBuilder'\nexport { IsReferencedOptionsBuilder } from './WixDataIsReferencedOptionsBuilder'\nexport type { WixDataIsReferencedOptionsBuilder } from './WixDataIsReferencedOptionsBuilder'\nexport { SearchOptionsBuilder } from './WixDataSearchOptionsBuilder'\nexport type { WixDataSearchOptionsBuilder } from './WixDataSearchOptionsBuilder'\nexport { UpdateOptionsBuilder } from './WixDataUpdateOptionsBuilder'\nexport type { WixDataUpdateOptionsBuilder } from './WixDataUpdateOptionsBuilder'\nexport { BulkUpdateOptionsBuilder } from './WixDataBulkUpdateOptionsBuilder'\nexport type { WixDataBulkUpdateOptionsBuilder } from './WixDataBulkUpdateOptionsBuilder'\nexport { BulkInsertOptionsBuilder } from './WixDataBulkInsertOptionsBuilder'\nexport type { WixDataBulkInsertOptionsBuilder } from './WixDataBulkInsertOptionsBuilder'\nexport { BulkSaveOptionsBuilder } from './WixDataBulkSaveOptionsBuilder'\nexport type { WixDataBulkSaveOptionsBuilder } from './WixDataBulkSaveOptionsBuilder'\nexport { BulkRemoveOptionsBuilder } from './WixDataBulkRemoveOptionsBuilder'\nexport type { WixDataBulkRemoveOptionsBuilder } from './WixDataBulkRemoveOptionsBuilder'\nexport { PatchOptionsBuilder } from './WixDataPatchOptionsBuilder'\nexport type { WixDataPatchOptionsBuilder } from './WixDataPatchOptionsBuilder'\nexport { BulkPatchOptionsBuilder } from './WixDataBulkPatchOptionsBuilder'\nexport type { WixDataBulkPatchOptionsBuilder } from './WixDataBulkPatchOptionsBuilder'\nexport { RemoveOptionsBuilder } from './WixDataRemoveOptionsBuilder'\nexport type { WixDataRemoveOptionsBuilder } from './WixDataRemoveOptionsBuilder'\nexport { AsyncRemoveByFilterOptionsBuilder } from './WixDataAsyncRemoveByFilterOptionsBuilder'\nexport type { WixDataAsyncRemoveByFilterOptionsBuilder } from './WixDataAsyncRemoveByFilterOptionsBuilder'\nexport { AsyncPatchByFilterOptionsBuilder } from './WixDataAsyncPatchByFilterOptionsBuilder'\nexport type { WixDataAsyncPatchByFilterOptionsBuilder } from './WixDataAsyncPatchByFilterOptionsBuilder'\nexport {\n expressions,\n WixDataAggregatePipelineExpressions,\n} from './expressions/expressions'\nexport {\n FieldExpression,\n TextExpression,\n NumericExpression,\n AddExpression,\n SubtractExpression,\n MultiplyExpression,\n DivideExpression,\n SumExpression,\n AbsExpression,\n ModExpression,\n FloorExpression,\n CeilExpression,\n ConcatExpression,\n StringifyExpression,\n ToLowerExpression,\n ToUpperExpression,\n SubstringExpression,\n LengthExpression,\n BooleanExpression,\n ConditionExpression,\n GreaterThanExpression,\n SizeExpression,\n} from './expressions/Expression'\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAA6CC,OAAA,CAAAC,YAAA,GAAAH,aAAA,CAAAG,YAAA;AAC7C,IAAAC,cAAA,GAAAH,OAAA;A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5K,OAAA,CAAA6K,kBAAA,GAAAL,WAAA,CAAAK,kBAAA;AAAA7K,OAAA,CAAA8K,kBAAA,GAAAN,WAAA,CAAAM,kBAAA;AAAA9K,OAAA,CAAA+K,gBAAA,GAAAP,WAAA,CAAAO,gBAAA;AAAA/K,OAAA,CAAAgL,aAAA,GAAAR,WAAA,CAAAQ,aAAA;AAAAhL,OAAA,CAAAiL,aAAA,GAAAT,WAAA,CAAAS,aAAA;AAAAjL,OAAA,CAAAkL,aAAA,GAAAV,WAAA,CAAAU,aAAA;AAAAlL,OAAA,CAAAmL,eAAA,GAAAX,WAAA,CAAAW,eAAA;AAAAnL,OAAA,CAAAoL,cAAA,GAAAZ,WAAA,CAAAY,cAAA;AAAApL,OAAA,CAAAqL,gBAAA,GAAAb,WAAA,CAAAa,gBAAA;AAAArL,OAAA,CAAAsL,mBAAA,GAAAd,WAAA,CAAAc,mBAAA;AAAAtL,OAAA,CAAAuL,iBAAA,GAAAf,WAAA,CAAAe,iBAAA;AAAAvL,OAAA,CAAAwL,iBAAA,GAAAhB,WAAA,CAAAgB,iBAAA;AAAAxL,OAAA,CAAAyL,mBAAA,GAAAjB,WAAA,CAAAiB,mBAAA;AAAAzL,OAAA,CAAA0L,gBAAA,GAAAlB,WAAA,CAAAkB,gBAAA;AAAA1L,OAAA,CAAA2L,iBAAA,GAAAnB,WAAA,CAAAmB,iBAAA;AAAA3L,OAAA,CAAA4L,mBAAA,GAAApB,WAAA,CAAAoB,mBAAA;AAAA5L,OAAA,CAAA6L,qBAAA,GAAArB,WAAA,CAAAqB,qBAAA;AAAA7L,OAAA,CAAA8L,cAAA,GAAAtB,WAAA,CAAAsB,cAAA","ignoreList":[]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ exports.AddFieldsStageImpl = void 0;
6
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
7
+ /** @builder */
8
+
9
+ class AddFieldsStageImpl {
10
+ constructor() {
11
+ (0, _defineProperty2.default)(this, "fields", []);
12
+ }
13
+ field(expression, fieldName) {
14
+ this.fields.push({
15
+ fieldName,
16
+ expression: expression.build()
17
+ });
18
+ return this;
19
+ }
20
+ /** @private */
21
+ build() {
22
+ return {
23
+ addFields: {
24
+ fields: this.fields
25
+ }
26
+ };
27
+ }
28
+ }
29
+ exports.AddFieldsStageImpl = AddFieldsStageImpl;
30
+ //# sourceMappingURL=AddFieldsStage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["AddFieldsStageImpl","constructor","_defineProperty2","default","field","expression","fieldName","fields","push","build","addFields","exports"],"sources":["../../../../src/api/stages/AddFieldsStage.ts"],"sourcesContent":["import * as apiTypes from '../../types/data-item-types'\nimport { Expression } from '../expressions/Expression'\nimport { PipelineStage } from './stages'\n\n/** @builder */\nexport interface AddFieldsStage extends PipelineStage {\n /**\n * Adds or replaces a field while retaining the other fields in the item.\n * @public\n * @documentationMaturity preview\n * @param expression - Expression providing the field value.\n * @param fieldName - Field to add or replace.\n * @returns AddFieldsStage object.\n */\n field(expression: Expression, fieldName: string): AddFieldsStage\n}\n\nexport class AddFieldsStageImpl implements AddFieldsStage {\n private fields: apiTypes.AddField[] = []\n field(expression: Expression, fieldName: string): AddFieldsStage {\n this.fields.push({ fieldName, expression: expression.build() })\n return this\n }\n /** @private */\n build(): apiTypes.Stage {\n return { addFields: { fields: this.fields } }\n }\n}\n"],"mappings":";;;;;;AAIA;;AAaO,MAAMA,kBAAkB,CAA2B;EAAAC,YAAA;IAAA,IAAAC,gBAAA,CAAAC,OAAA,kBAClB,EAAE;EAAA;EACxCC,KAAKA,CAACC,UAAsB,EAAEC,SAAiB,EAAkB;IAC/D,IAAI,CAACC,MAAM,CAACC,IAAI,CAAC;MAAEF,SAAS;MAAED,UAAU,EAAEA,UAAU,CAACI,KAAK,CAAC;IAAE,CAAC,CAAC;IAC/D,OAAO,IAAI;EACb;EACA;EACAA,KAAKA,CAAA,EAAmB;IACtB,OAAO;MAAEC,SAAS,EAAE;QAAEH,MAAM,EAAE,IAAI,CAACA;MAAO;IAAE,CAAC;EAC/C;AACF;AAACI,OAAA,CAAAX,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.LookupStageImpl = void 0;
5
+ /** @builder */
6
+
7
+ class LookupStageImpl {
8
+ constructor(dataCollectionId, localField, foreignField, asField) {
9
+ this.dataCollectionId = dataCollectionId;
10
+ this.localField = localField;
11
+ this.foreignField = foreignField;
12
+ this.asField = asField;
13
+ }
14
+ /** @private */
15
+ build() {
16
+ return {
17
+ lookup: {
18
+ dataCollectionId: this.dataCollectionId,
19
+ localField: this.localField,
20
+ foreignField: this.foreignField,
21
+ asField: this.asField
22
+ }
23
+ };
24
+ }
25
+ }
26
+ exports.LookupStageImpl = LookupStageImpl;
27
+ //# sourceMappingURL=LookupStage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["LookupStageImpl","constructor","dataCollectionId","localField","foreignField","asField","build","lookup","exports"],"sources":["../../../../src/api/stages/LookupStage.ts"],"sourcesContent":["import * as apiTypes from '../../types/data-item-types'\nimport { PipelineStage } from './stages'\n\n/** @builder */\nexport interface LookupStage extends PipelineStage {}\n\nexport class LookupStageImpl implements LookupStage {\n constructor(\n private dataCollectionId: string,\n private localField: string,\n private foreignField: string,\n private asField: string\n ) {}\n /** @private */\n build(): apiTypes.Stage {\n return {\n lookup: {\n dataCollectionId: this.dataCollectionId,\n localField: this.localField,\n foreignField: this.foreignField,\n asField: this.asField,\n },\n }\n }\n}\n"],"mappings":";;;;AAGA;;AAGO,MAAMA,eAAe,CAAwB;EAClDC,WAAWA,CACDC,gBAAwB,EACxBC,UAAkB,EAClBC,YAAoB,EACpBC,OAAe,EACvB;IAAA,KAJQH,gBAAwB,GAAxBA,gBAAwB;IAAA,KACxBC,UAAkB,GAAlBA,UAAkB;IAAA,KAClBC,YAAoB,GAApBA,YAAoB;IAAA,KACpBC,OAAe,GAAfA,OAAe;EACtB;EACH;EACAC,KAAKA,CAAA,EAAmB;IACtB,OAAO;MACLC,MAAM,EAAE;QACNL,gBAAgB,EAAE,IAAI,CAACA,gBAAgB;QACvCC,UAAU,EAAE,IAAI,CAACA,UAAU;QAC3BC,YAAY,EAAE,IAAI,CAACA,YAAY;QAC/BC,OAAO,EAAE,IAAI,CAACA;MAChB;IACF,CAAC;EACH;AACF;AAACG,OAAA,CAAAR,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.UnionWithStageImpl = void 0;
5
+ /** @builder */
6
+
7
+ class UnionWithStageImpl {
8
+ constructor(dataCollectionId, pipeline) {
9
+ this.dataCollectionId = dataCollectionId;
10
+ this.pipeline = pipeline;
11
+ }
12
+ /** @private */
13
+ build() {
14
+ return {
15
+ unionWith: {
16
+ dataCollectionId: this.dataCollectionId,
17
+ pipeline: this.pipeline
18
+ }
19
+ };
20
+ }
21
+ }
22
+ exports.UnionWithStageImpl = UnionWithStageImpl;
23
+ //# sourceMappingURL=UnionWithStage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["UnionWithStageImpl","constructor","dataCollectionId","pipeline","build","unionWith","exports"],"sources":["../../../../src/api/stages/UnionWithStage.ts"],"sourcesContent":["import * as apiTypes from '../../types/data-item-types'\nimport { PipelineStage } from './stages'\n\n/** @builder */\nexport interface UnionWithStage extends PipelineStage {}\n\nexport class UnionWithStageImpl implements UnionWithStage {\n constructor(\n private dataCollectionId: string,\n private pipeline?: apiTypes.AggregationPipeline\n ) {}\n /** @private */\n build(): apiTypes.Stage {\n return {\n unionWith: {\n dataCollectionId: this.dataCollectionId,\n pipeline: this.pipeline,\n },\n }\n }\n}\n"],"mappings":";;;;AAGA;;AAGO,MAAMA,kBAAkB,CAA2B;EACxDC,WAAWA,CACDC,gBAAwB,EACxBC,QAAuC,EAC/C;IAAA,KAFQD,gBAAwB,GAAxBA,gBAAwB;IAAA,KACxBC,QAAuC,GAAvCA,QAAuC;EAC9C;EACH;EACAC,KAAKA,CAAA,EAAmB;IACtB,OAAO;MACLC,SAAS,EAAE;QACTH,gBAAgB,EAAE,IAAI,CAACA,gBAAgB;QACvCC,QAAQ,EAAE,IAAI,CAACA;MACjB;IACF,CAAC;EACH;AACF;AAACG,OAAA,CAAAN,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -2,6 +2,9 @@
2
2
 
3
3
  exports.__esModule = true;
4
4
  exports.stages = void 0;
5
+ var _AddFieldsStage = require("./AddFieldsStage");
6
+ var _LookupStage = require("./LookupStage");
7
+ var _UnionWithStage = require("./UnionWithStage");
5
8
  var _FilterStage = require("./FilterStage");
6
9
  var _ProjectStage = require("./ProjectStage");
7
10
  var _GroupStage = require("./GroupStage");
@@ -11,6 +14,9 @@ var _LimitStage = require("./LimitStage");
11
14
  var _SkipStage = require("./SkipStage");
12
15
  var _ObjectToArrayStage = require("./ObjectToArrayStage");
13
16
  const stages = exports.stages = {
17
+ addFields: () => new _AddFieldsStage.AddFieldsStageImpl(),
18
+ lookup: (dataCollectionId, localField, foreignField, asField) => new _LookupStage.LookupStageImpl(dataCollectionId, localField, foreignField, asField),
19
+ unionWith: (dataCollectionId, pipeline) => new _UnionWithStage.UnionWithStageImpl(dataCollectionId, pipeline),
14
20
  filter: () => new _FilterStage.FilterStageImpl(),
15
21
  project: () => new _ProjectStage.ProjectStageImpl(),
16
22
  group: () => new _GroupStage.GroupStageImpl(),
@@ -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 /**\n * Adds a filter stage to the aggregation pipeline.\n *\n * The `filter()` method adds a pipeline stage that only processes items that match the specified criteria. You can configure the filter by chaining one or more [`FilterStage`](https://dev.wix.com/docs/sdk/backend-modules/data/items/filter-stage/introduction) methods.\n *\n * @public\n * @documentationMaturity preview\n * @returns FilterStage object.\n */\n filter(): FilterStage\n\n /**\n * Adds a project stage to the aggregation pipeline.\n *\n * The `project()` method adds a pipeline stage that transforms items by including, excluding, or reshaping fields. You can configure the projection by chaining one or more [`ProjectStage`](https://dev.wix.com/docs/sdk/backend-modules/data/items/project-stage/introduction) methods.\n *\n * @public\n * @documentationMaturity preview\n * @returns ProjectStage object.\n */\n project(): ProjectStage\n\n /**\n * Adds a group stage to the aggregation pipeline.\n *\n * The `group()` method adds a pipeline stage that groups items by specified fields and calculates aggregate values. You can configure the grouping by chaining one or more [`GroupStage`](https://dev.wix.com/docs/sdk/backend-modules/data/items/group-stage/introduction) methods.\n *\n * @public\n * @documentationMaturity preview\n * @returns GroupStage object.\n */\n group(): GroupStage\n\n /**\n * Adds an unwind stage to the aggregation pipeline.\n *\n * The `unwind()` method adds a pipeline stage that unwinds an array field by creating a new result item for each array element. Each result contains the array element and all other fields from the original item.\n *\n * @public\n * @documentationMaturity preview\n * @param arrayFieldName - Array field to unwind. Use dot notation to specify a nested array. For example, `user.products` or `product.colors`.\n *\n * Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @returns UnwindStage object.\n */\n unwind(arrayFieldName: string): UnwindStage\n\n /**\n * Adds a sort stage to the aggregation pipeline.\n *\n * The `sort()` method adds a pipeline stage that sorts items by specified fields. You can configure the sorting by chaining one or more [`SortStage`](https://dev.wix.com/docs/sdk/backend-modules/data/items/sort-stage/introduction) methods.\n *\n * @public\n * @documentationMaturity preview\n * @returns SortStage object.\n */\n sort(): SortStage\n\n /**\n * Adds a limit stage to the aggregation pipeline.\n *\n * The `limit()` method adds a pipeline stage that limits the number of results to the specified count.\n *\n * @public\n * @documentationMaturity preview\n * @param count - Maximum number of results.\n * @returns LimitStage object.\n */\n limit(count: number): LimitStage\n\n /**\n * Adds a skip stage to the aggregation pipeline.\n *\n * The `skip()` method adds a pipeline stage that skips the specified number of items from the beginning of the result set.\n *\n * @public\n * @documentationMaturity preview\n * @param count - Number of items to skip.\n * @requiredField count\n * @returns SkipStage object.\n */\n skip(count: number): SkipStage\n\n /**\n * Adds an objectToArray stage to the aggregation pipeline.\n *\n * The `objectToArray()` method adds a pipeline stage that converts an object into an array of objects with key-value pairs. Each property of the object becomes an element in the new array. Each element contains that property's key and value, as well as all other properties from the original object.\n *\n * For example, with a destination name of `variantInventory`, the object `{ \"red\": 10, \"blue\": 5, \"green\": 3 }` is transformed into the following array:\n *\n * `\"variantInventory\": [\n * { \"k\": \"red\", \"v\": 10 },\n * { \"k\": \"blue\", \"v\": 5 },\n * { \"k\": \"green\", \"v\": 3 }\n * ]`.\n *\n * @public\n * @documentationMaturity preview\n * @param objectFieldName - Field to convert to an array. Use dot notation to specify nested fields. For example, `user.name` or `product.price`.\n *\n * Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @param destinationFieldName - Field to create in the result item.\n *\n * Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @returns ObjectToArrayStage object.\n */\n objectToArray(\n objectFieldName: string,\n destinationFieldName: string\n ): ObjectToArrayStage\n}\n\nexport interface PipelineStage {\n /**\n * @private\n */\n build(): 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":["_AddFieldsStage","require","_LookupStage","_UnionWithStage","_FilterStage","_ProjectStage","_GroupStage","_UnwindStage","_SortStage","_LimitStage","_SkipStage","_ObjectToArrayStage","stages","exports","addFields","AddFieldsStageImpl","lookup","dataCollectionId","localField","foreignField","asField","LookupStageImpl","unionWith","pipeline","UnionWithStageImpl","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 { AddFieldsStage, AddFieldsStageImpl } from './AddFieldsStage'\nimport { LookupStage, LookupStageImpl } from './LookupStage'\nimport { UnionWithStage, UnionWithStageImpl } from './UnionWithStage'\nimport { 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 addFields: () => new AddFieldsStageImpl(),\n lookup: (dataCollectionId, localField, foreignField, asField) =>\n new LookupStageImpl(dataCollectionId, localField, foreignField, asField),\n unionWith: (dataCollectionId, pipeline) =>\n new UnionWithStageImpl(dataCollectionId, pipeline),\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 /**\n * Adds or replaces fields while retaining all other fields.\n * @public\n * @documentationMaturity preview\n * @returns AddFieldsStage object.\n */\n addFields(): AddFieldsStage\n /**\n * Joins matching items from another collection into an array field.\n * @public\n * @documentationMaturity preview\n * @param dataCollectionId - Collection to join.\n * @param localField - Local field used for matching.\n * @param foreignField - Field in the joined collection used for matching.\n * @param asField - Array field containing matching items.\n * @returns LookupStage object.\n */\n lookup(\n dataCollectionId: string,\n localField: string,\n foreignField: string,\n asField: string\n ): LookupStage\n /**\n * Appends results from another collection, optionally processed by a pipeline.\n * @public\n * @documentationMaturity preview\n * @param dataCollectionId - Collection whose results to append.\n * @param pipeline - Pipeline to run before appending results.\n * @returns UnionWithStage object.\n */\n unionWith(\n dataCollectionId: string,\n pipeline?: apiTypes.AggregationPipeline\n ): UnionWithStage\n\n /**\n * Adds a filter stage to the aggregation pipeline.\n *\n * The `filter()` method adds a pipeline stage that only processes items that match the specified criteria. You can configure the filter by chaining one or more [`FilterStage`](https://dev.wix.com/docs/sdk/backend-modules/data/items/filter-stage/introduction) methods.\n *\n * @public\n * @documentationMaturity preview\n * @returns FilterStage object.\n */\n filter(): FilterStage\n\n /**\n * Adds a project stage to the aggregation pipeline.\n *\n * The `project()` method adds a pipeline stage that transforms items by including, excluding, or reshaping fields. You can configure the projection by chaining one or more [`ProjectStage`](https://dev.wix.com/docs/sdk/backend-modules/data/items/project-stage/introduction) methods.\n *\n * @public\n * @documentationMaturity preview\n * @returns ProjectStage object.\n */\n project(): ProjectStage\n\n /**\n * Adds a group stage to the aggregation pipeline.\n *\n * The `group()` method adds a pipeline stage that groups items by specified fields and calculates aggregate values. You can configure the grouping by chaining one or more [`GroupStage`](https://dev.wix.com/docs/sdk/backend-modules/data/items/group-stage/introduction) methods.\n *\n * @public\n * @documentationMaturity preview\n * @returns GroupStage object.\n */\n group(): GroupStage\n\n /**\n * Adds an unwind stage to the aggregation pipeline.\n *\n * The `unwind()` method adds a pipeline stage that unwinds an array field by creating a new result item for each array element. Each result contains the array element and all other fields from the original item.\n *\n * @public\n * @documentationMaturity preview\n * @param arrayFieldName - Array field to unwind. Use dot notation to specify a nested array. For example, `user.products` or `product.colors`.\n *\n * Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @returns UnwindStage object.\n */\n unwind(arrayFieldName: string): UnwindStage\n\n /**\n * Adds a sort stage to the aggregation pipeline.\n *\n * The `sort()` method adds a pipeline stage that sorts items by specified fields. You can configure the sorting by chaining one or more [`SortStage`](https://dev.wix.com/docs/sdk/backend-modules/data/items/sort-stage/introduction) methods.\n *\n * @public\n * @documentationMaturity preview\n * @returns SortStage object.\n */\n sort(): SortStage\n\n /**\n * Adds a limit stage to the aggregation pipeline.\n *\n * The `limit()` method adds a pipeline stage that limits the number of results to the specified count.\n *\n * @public\n * @documentationMaturity preview\n * @param count - Maximum number of results.\n * @returns LimitStage object.\n */\n limit(count: number): LimitStage\n\n /**\n * Adds a skip stage to the aggregation pipeline.\n *\n * The `skip()` method adds a pipeline stage that skips the specified number of items from the beginning of the result set.\n *\n * @public\n * @documentationMaturity preview\n * @param count - Number of items to skip.\n * @requiredField count\n * @returns SkipStage object.\n */\n skip(count: number): SkipStage\n\n /**\n * Adds an objectToArray stage to the aggregation pipeline.\n *\n * The `objectToArray()` method adds a pipeline stage that converts an object into an array of objects with key-value pairs. Each property of the object becomes an element in the new array. Each element contains that property's key and value, as well as all other properties from the original object.\n *\n * For example, with a destination name of `variantInventory`, the object `{ \"red\": 10, \"blue\": 5, \"green\": 3 }` is transformed into the following array:\n *\n * `\"variantInventory\": [\n * { \"k\": \"red\", \"v\": 10 },\n * { \"k\": \"blue\", \"v\": 5 },\n * { \"k\": \"green\", \"v\": 3 }\n * ]`.\n *\n * @public\n * @documentationMaturity preview\n * @param objectFieldName - Field to convert to an array. Use dot notation to specify nested fields. For example, `user.name` or `product.price`.\n *\n * Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @param destinationFieldName - Field to create in the result item.\n *\n * Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @returns ObjectToArrayStage object.\n */\n objectToArray(\n objectFieldName: string,\n destinationFieldName: string\n ): ObjectToArrayStage\n}\n\nexport interface PipelineStage {\n /**\n * @private\n */\n build(): apiTypes.Stage\n}\n"],"mappings":";;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AAEA,IAAAU,mBAAA,GAAAV,OAAA;AAKO,MAAMW,MAAsC,GAAAC,OAAA,CAAAD,MAAA,GAAG;EACpDE,SAAS,EAAEA,CAAA,KAAM,IAAIC,kCAAkB,CAAC,CAAC;EACzCC,MAAM,EAAEA,CAACC,gBAAgB,EAAEC,UAAU,EAAEC,YAAY,EAAEC,OAAO,KAC1D,IAAIC,4BAAe,CAACJ,gBAAgB,EAAEC,UAAU,EAAEC,YAAY,EAAEC,OAAO,CAAC;EAC1EE,SAAS,EAAEA,CAACL,gBAAgB,EAAEM,QAAQ,KACpC,IAAIC,k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