@wix/auto_sdk_data_scheduled-workflows 1.0.0 → 1.0.2

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 (49) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +325 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +699 -10
  5. package/build/cjs/index.typings.js +219 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +697 -8
  8. package/build/cjs/meta.js +219 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +1278 -12
  11. package/build/cjs/schemas.js +6180 -707
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +1 -1
  14. package/build/es/index.mjs +324 -0
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +699 -10
  17. package/build/es/index.typings.mjs +218 -0
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +697 -8
  20. package/build/es/meta.mjs +218 -0
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +1278 -12
  23. package/build/es/schemas.mjs +6180 -707
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +1 -1
  26. package/build/internal/cjs/index.js +325 -0
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +699 -10
  29. package/build/internal/cjs/index.typings.js +219 -0
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +697 -8
  32. package/build/internal/cjs/meta.js +219 -0
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +1278 -12
  35. package/build/internal/cjs/schemas.js +6180 -707
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +1 -1
  38. package/build/internal/es/index.mjs +324 -0
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +699 -10
  41. package/build/internal/es/index.typings.mjs +218 -0
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +697 -8
  44. package/build/internal/es/meta.mjs +218 -0
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +1278 -12
  47. package/build/internal/es/schemas.mjs +6180 -707
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -171,6 +171,675 @@ declare enum WixDataEnvironment {
171
171
  }
172
172
  /** @enumType */
173
173
  type WixDataEnvironmentWithLiterals = WixDataEnvironment | 'LIVE' | 'SANDBOX';
174
+ /** Filter and field selection query. */
175
+ interface FilterQuery {
176
+ /**
177
+ * Filter to apply to the items. Only items that pass the filter are moved.
178
+ *
179
+ * Learn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
180
+ */
181
+ filter?: Record<string, any> | null;
182
+ /** Item fields to move. If not set, the method moves the full items. */
183
+ fields?: string[];
184
+ }
185
+ interface AggregationPipeline extends AggregationPipelinePagingMethodOneOf {
186
+ /**
187
+ * Paging options to limit and skip the number of results.
188
+ *
189
+ * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).
190
+ */
191
+ paging?: Paging;
192
+ /**
193
+ * Cursor token referring to a page of results.
194
+ *
195
+ * Not used in the first request. Subsequent requests use the cursor token and not `filter` or `sort`.
196
+ */
197
+ cursorPaging?: CursorPaging;
198
+ /**
199
+ * Sequence of aggregation operations to apply to the data.
200
+ *
201
+ * Stages are processed in order, with each stage operating on the output of the previous stage.
202
+ * @maxSize 100
203
+ */
204
+ stages?: Stage[];
205
+ }
206
+ /** @oneof */
207
+ interface AggregationPipelinePagingMethodOneOf {
208
+ /**
209
+ * Paging options to limit and skip the number of results.
210
+ *
211
+ * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).
212
+ */
213
+ paging?: Paging;
214
+ /**
215
+ * Cursor token referring to a page of results.
216
+ *
217
+ * Not used in the first request. Subsequent requests use the cursor token and not `filter` or `sort`.
218
+ */
219
+ cursorPaging?: CursorPaging;
220
+ }
221
+ interface Stage extends StageStageOneOf {
222
+ /** Groups aggregated items to new result items. */
223
+ group?: Group;
224
+ /**
225
+ * Aggregation filter. Only items that match the filter are processed.
226
+ *
227
+ * Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).
228
+ *
229
+ * > **Note:** The values you provide for each filter field must adhere to that field's data type. For example, when filtering by a field whose type is Date and Time, use an object in the following format: `"someDateAndTimeFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}`. Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/data-types-in-wix-data).
230
+ */
231
+ filter?: Record<string, any> | null;
232
+ /**
233
+ * Sorting preferences.
234
+ *
235
+ * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).
236
+ */
237
+ sort?: Sorting;
238
+ /** Transforms items by including, excluding, or reshaping fields. */
239
+ projection?: Projection;
240
+ /** Transforms an object into an array where each object property becomes a new array element containing the property's key and value, as well as all other properties from the original object. */
241
+ objectToArray?: ObjectToArray;
242
+ /** Creates a result item for each array element. Each result contains the full original item, with the array field replaced by an element whose key is the array name and whose value is the array element. */
243
+ unwindArray?: UnwindArray;
244
+ /** Number of results to skip from the beginning of the result set. */
245
+ skip?: number;
246
+ /** Maximum number of results to return. */
247
+ limit?: number;
248
+ }
249
+ /** @oneof */
250
+ interface StageStageOneOf {
251
+ /** Groups aggregated items to new result items. */
252
+ group?: Group;
253
+ /**
254
+ * Aggregation filter. Only items that match the filter are processed.
255
+ *
256
+ * Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).
257
+ *
258
+ * > **Note:** The values you provide for each filter field must adhere to that field's data type. For example, when filtering by a field whose type is Date and Time, use an object in the following format: `"someDateAndTimeFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}`. Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/data-types-in-wix-data).
259
+ */
260
+ filter?: Record<string, any> | null;
261
+ /**
262
+ * Sorting preferences.
263
+ *
264
+ * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).
265
+ */
266
+ sort?: Sorting;
267
+ /** Transforms items by including, excluding, or reshaping fields. */
268
+ projection?: Projection;
269
+ /** Transforms an object into an array where each object property becomes a new array element containing the property's key and value, as well as all other properties from the original object. */
270
+ objectToArray?: ObjectToArray;
271
+ /** Creates a result item for each array element. Each result contains the full original item, with the array field replaced by an element whose key is the array name and whose value is the array element. */
272
+ unwindArray?: UnwindArray;
273
+ /** Number of results to skip from the beginning of the result set. */
274
+ skip?: number;
275
+ /** Maximum number of results to return. */
276
+ limit?: number;
277
+ }
278
+ interface Group {
279
+ /**
280
+ * Grouping criteria by which to organize items.
281
+ *
282
+ * Each `groupId` specifies a field by which to group items, and serves as the result item's unique `_id` property.
283
+ *
284
+ * Items with identical values for the specified `expression` are placed in the same group based on the specified `key`. If empty, all items are treated as a single group.
285
+ * @maxSize 1000
286
+ */
287
+ groupIds?: GroupId[];
288
+ /**
289
+ * Accumulation operations to run on each group.
290
+ *
291
+ * Accumulators aggregate data across all items in the group and return the result in a new field.
292
+ *
293
+ * > **Note:** When using accumulators, the type of expression must be compatible with the operation type. For example, when using the `sum` accumulator, the specified expression must resolve to a number.
294
+ * @maxSize 1000
295
+ */
296
+ accumulators?: Accumulator[];
297
+ }
298
+ interface Expression extends ExpressionValueOneOf {
299
+ /**
300
+ * Path to the field containing the value to resolve.
301
+ *
302
+ * Use dot notation to specify nested fields. For example, `user.name` or `product.price`.
303
+ * @maxLength 1000
304
+ */
305
+ fieldPath?: string;
306
+ /**
307
+ * Text value.
308
+ * @maxLength 1000
309
+ */
310
+ text?: string;
311
+ /** Number value. */
312
+ numeric?: number;
313
+ /** Adds the specified expressions together. */
314
+ add?: AddOperation;
315
+ /** Calculates the total sum of multiple expressions. */
316
+ sum?: SumOperation;
317
+ /** Subtracts 1 expression from another. */
318
+ subtract?: SubtractOperation;
319
+ /** Multiplies multiple expressions together. */
320
+ multiply?: MultiplyOperation;
321
+ /** Divides 1 expression by another. */
322
+ divide?: DivideOperation;
323
+ /** Finds the absolute value of an expression. */
324
+ abs?: AbsOperation;
325
+ /** Finds the remainder when dividing 1 expression by another. */
326
+ mod?: ModOperation;
327
+ /** Rounds an expression down to the nearest whole number. */
328
+ floor?: FloorOperation;
329
+ /** Rounds an expression up to the nearest whole number. */
330
+ ceil?: CeilOperation;
331
+ /** Joins multiple expressions together to create a string. */
332
+ concat?: ConcatOperation;
333
+ /** Converts an expression to a string. */
334
+ stringify?: StringifyOperation;
335
+ /** Converts an expression to lowercase. */
336
+ toLower?: ToLowerOperation;
337
+ /** Converts an expression to uppercase. */
338
+ toUpper?: ToUpperOperation;
339
+ /** Extracts a portion of a string expression. */
340
+ substring?: SubstringOperation;
341
+ /** Finds the length of a string expression. */
342
+ length?: LengthOperation;
343
+ }
344
+ /** @oneof */
345
+ interface ExpressionValueOneOf {
346
+ /**
347
+ * Path to the field containing the value to resolve.
348
+ *
349
+ * Use dot notation to specify nested fields. For example, `user.name` or `product.price`.
350
+ * @maxLength 1000
351
+ */
352
+ fieldPath?: string;
353
+ /**
354
+ * Text value.
355
+ * @maxLength 1000
356
+ */
357
+ text?: string;
358
+ /** Number value. */
359
+ numeric?: number;
360
+ /** Adds the specified expressions together. */
361
+ add?: AddOperation;
362
+ /** Calculates the total sum of multiple expressions. */
363
+ sum?: SumOperation;
364
+ /** Subtracts 1 expression from another. */
365
+ subtract?: SubtractOperation;
366
+ /** Multiplies multiple expressions together. */
367
+ multiply?: MultiplyOperation;
368
+ /** Divides 1 expression by another. */
369
+ divide?: DivideOperation;
370
+ /** Finds the absolute value of an expression. */
371
+ abs?: AbsOperation;
372
+ /** Finds the remainder when dividing 1 expression by another. */
373
+ mod?: ModOperation;
374
+ /** Rounds an expression down to the nearest whole number. */
375
+ floor?: FloorOperation;
376
+ /** Rounds an expression up to the nearest whole number. */
377
+ ceil?: CeilOperation;
378
+ /** Joins multiple expressions together to create a string. */
379
+ concat?: ConcatOperation;
380
+ /** Converts an expression to a string. */
381
+ stringify?: StringifyOperation;
382
+ /** Converts an expression to lowercase. */
383
+ toLower?: ToLowerOperation;
384
+ /** Converts an expression to uppercase. */
385
+ toUpper?: ToUpperOperation;
386
+ /** Extracts a portion of a string expression. */
387
+ substring?: SubstringOperation;
388
+ /** Finds the length of a string expression. */
389
+ length?: LengthOperation;
390
+ }
391
+ interface AddOperation {
392
+ /**
393
+ * Expressions to add together.
394
+ *
395
+ * All expressions must resolve to numbers.
396
+ * @maxSize 1000
397
+ */
398
+ expressions?: Expression[];
399
+ }
400
+ interface SumOperation {
401
+ /**
402
+ * Expressions to calculate the total sum of.
403
+ *
404
+ * All expressions must resolve to numbers.
405
+ * @maxSize 1000
406
+ */
407
+ expressions?: Expression[];
408
+ }
409
+ interface SubtractOperation {
410
+ /**
411
+ * Expression to subtract `secondExpression` from.
412
+ *
413
+ * Expression must resolve to a number.
414
+ */
415
+ firstExpression?: Expression;
416
+ /**
417
+ * Expression to subtract from `firstExpression`.
418
+ *
419
+ * Expression must resolve to a number.
420
+ */
421
+ secondExpression?: Expression;
422
+ }
423
+ interface MultiplyOperation {
424
+ /**
425
+ * Expressions to multiply.
426
+ *
427
+ * All expressions must resolve to numbers.
428
+ * @maxSize 1000
429
+ */
430
+ expressions?: Expression[];
431
+ }
432
+ interface DivideOperation {
433
+ /**
434
+ * Expression to divide by `secondExpression`.
435
+ *
436
+ * Expression must resolve to a number.
437
+ */
438
+ firstExpression?: Expression;
439
+ /**
440
+ * Expression to divide `firstExpression` by.
441
+ *
442
+ * Expression must resolve to a non-zero number.
443
+ */
444
+ secondExpression?: Expression;
445
+ }
446
+ interface AbsOperation {
447
+ /**
448
+ * Expression to find the absolute value of.
449
+ *
450
+ * Expression must resolve to a number.
451
+ */
452
+ expression?: Expression;
453
+ }
454
+ interface ModOperation {
455
+ /**
456
+ * Expression to divide by `secondExpression` to find the remainder.
457
+ *
458
+ * Expression must resolve to a number.
459
+ */
460
+ firstExpression?: Expression;
461
+ /**
462
+ * Expression to divide `firstExpression` by.
463
+ *
464
+ * Expression must resolve to a non-zero number.
465
+ */
466
+ secondExpression?: Expression;
467
+ }
468
+ interface FloorOperation {
469
+ /**
470
+ * Expression to round down to the nearest whole number.
471
+ *
472
+ * Expression must resolve to a number.
473
+ */
474
+ expression?: Expression;
475
+ }
476
+ interface CeilOperation {
477
+ /**
478
+ * Expression to round up to the nearest whole number.
479
+ *
480
+ * Expression must resolve to a number.
481
+ */
482
+ expression?: Expression;
483
+ }
484
+ interface ConcatOperation {
485
+ /**
486
+ * Expressions to join together.
487
+ *
488
+ * All expressions must resolve to strings.
489
+ * @maxSize 1000
490
+ */
491
+ expressions?: Expression[];
492
+ }
493
+ interface StringifyOperation {
494
+ /** Expression to convert to a string. */
495
+ expression?: Expression;
496
+ }
497
+ interface ToLowerOperation {
498
+ /**
499
+ * Expression to convert to lowercase.
500
+ *
501
+ * Expression must resolve to a string.
502
+ */
503
+ expression?: Expression;
504
+ }
505
+ interface ToUpperOperation {
506
+ /**
507
+ * Expression to convert to uppercase.
508
+ *
509
+ * Expression must resolve to a string.
510
+ */
511
+ expression?: Expression;
512
+ }
513
+ interface SubstringOperation {
514
+ /**
515
+ * Expression to extract a substring from.
516
+ *
517
+ * Expression must resolve to a string.
518
+ */
519
+ expression?: Expression;
520
+ /**
521
+ * Starting position of the substring to extract, specified in zero-based indexing.
522
+ *
523
+ * Expression must resolve to a number.
524
+ */
525
+ startExpression?: Expression;
526
+ /**
527
+ * Number of characters to extract from the starting position.
528
+ *
529
+ * Expression must resolve to a number.
530
+ */
531
+ lengthExpression?: Expression;
532
+ }
533
+ interface LengthOperation {
534
+ /**
535
+ * Expression to count the total number of characters of.
536
+ *
537
+ * Expression must resolve to a string.
538
+ */
539
+ expression?: Expression;
540
+ }
541
+ interface ConditionOperation {
542
+ /** Expression to evaluate as a condition. */
543
+ ifExpression?: Expression;
544
+ /** Expression to return when `ifExpression` resolves to `true`. */
545
+ whenTrue?: Expression;
546
+ /** Expression to return when `ifExpression` resolves to `false`. */
547
+ whenFalse?: Expression;
548
+ }
549
+ interface GreaterThanOperation {
550
+ /** Expression on the left side of the comparison. */
551
+ firstExpression?: Expression;
552
+ /** Expression on the right side of the comparison. */
553
+ secondExpression?: Expression;
554
+ }
555
+ interface SizeOperation {
556
+ /** Expression containing the array whose size to return. */
557
+ expression?: Expression;
558
+ }
559
+ interface GroupId {
560
+ /**
561
+ * Name of the field to group items by.
562
+ *
563
+ * This becomes the field name in the result's `_id` property.
564
+ * @maxLength 1000
565
+ */
566
+ key?: string;
567
+ /** Expression to determine the grouping value. Items whose expression resolves to the same value are grouped together in the result item's `_id` property. */
568
+ expression?: Expression;
569
+ }
570
+ interface Accumulator extends AccumulatorExpressionOneOf {
571
+ /** Calculates the average value across all items in the group based on the specified expression. */
572
+ avg?: Avg;
573
+ /** Finds the minimum value across all items in the group. */
574
+ min?: Min;
575
+ /** Finds the maximum value across all items in the group. */
576
+ max?: Max;
577
+ /** Calculates the sum of the specified expression across all items in the group. */
578
+ sum?: Sum;
579
+ /** Finds the first item in the group. */
580
+ first?: First;
581
+ /** Finds the last item in the group. */
582
+ last?: Last;
583
+ /** Collects values from all items in the group into an array. */
584
+ push?: Push;
585
+ /**
586
+ * Field key in the output item to store the result in.
587
+ * @maxLength 1000
588
+ */
589
+ resultFieldName?: string;
590
+ }
591
+ /** @oneof */
592
+ interface AccumulatorExpressionOneOf {
593
+ /** Calculates the average value across all items in the group based on the specified expression. */
594
+ avg?: Avg;
595
+ /** Finds the minimum value across all items in the group. */
596
+ min?: Min;
597
+ /** Finds the maximum value across all items in the group. */
598
+ max?: Max;
599
+ /** Calculates the sum of the specified expression across all items in the group. */
600
+ sum?: Sum;
601
+ /** Finds the first item in the group. */
602
+ first?: First;
603
+ /** Finds the last item in the group. */
604
+ last?: Last;
605
+ /** Collects values from all items in the group into an array. */
606
+ push?: Push;
607
+ }
608
+ interface Avg {
609
+ /**
610
+ * Expression to calculate the group's average value.
611
+ *
612
+ * Expression must resolve to a number.
613
+ */
614
+ expression?: Expression;
615
+ }
616
+ interface Min {
617
+ /**
618
+ * Expression to find the group's minimum value.
619
+ *
620
+ * Expression must resolve to a comparable value, such as a number or string.
621
+ */
622
+ expression?: Expression;
623
+ }
624
+ interface Max {
625
+ /**
626
+ * Expression to find the group's maximum value.
627
+ *
628
+ * Expression must resolve to a comparable value, such as a number or string.
629
+ */
630
+ expression?: Expression;
631
+ }
632
+ interface Sum {
633
+ /**
634
+ * Expression to calculate the group's total sum.
635
+ *
636
+ * Expression must resolve to a number.
637
+ */
638
+ expression?: Expression;
639
+ }
640
+ interface First {
641
+ /** Expression to find the first item in the group. */
642
+ expression?: Expression;
643
+ }
644
+ interface Last {
645
+ /** Expression to find the last item in the group. */
646
+ expression?: Expression;
647
+ }
648
+ interface Push {
649
+ /** Expression to collect items into an array. */
650
+ expression?: Expression;
651
+ }
652
+ interface Sorting {
653
+ /**
654
+ * Fields to sort the results by.
655
+ * @maxSize 1000
656
+ */
657
+ values?: CommonSorting[];
658
+ }
659
+ interface CommonSorting {
660
+ /**
661
+ * Name of the field to sort by.
662
+ * @minLength 1
663
+ * @maxLength 1000
664
+ */
665
+ fieldName?: string;
666
+ /** Sort order. */
667
+ order?: SortOrderWithLiterals;
668
+ }
669
+ declare enum SortOrder {
670
+ ASC = "ASC",
671
+ DESC = "DESC"
672
+ }
673
+ /** @enumType */
674
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
675
+ /** Transforms collection items by including, excluding, or reshaping fields. */
676
+ interface Projection {
677
+ /**
678
+ * Fields to include, exclude, or reshape.
679
+ * @maxSize 1000
680
+ */
681
+ fields?: Field[];
682
+ }
683
+ interface Include {
684
+ /**
685
+ * Key of the field to include in the result.
686
+ *
687
+ * Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
688
+ * @maxLength 1000
689
+ */
690
+ fieldName?: string;
691
+ }
692
+ interface Exclude {
693
+ /**
694
+ * Key of the field to exclude from the result.
695
+ *
696
+ * Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
697
+ * @maxLength 1000
698
+ */
699
+ fieldName?: string;
700
+ }
701
+ interface Reshape {
702
+ /**
703
+ * Key of the field to create in the result item.
704
+ *
705
+ * 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).
706
+ * @maxLength 1000
707
+ */
708
+ resultFieldName?: string;
709
+ /** Expression to resolve. The result of the expression becomes the value of the new field. */
710
+ expression?: Expression;
711
+ }
712
+ interface ProjectNested {
713
+ /**
714
+ * Key of the parent field for the nested fields.
715
+ *
716
+ * 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).
717
+ * @maxLength 1000
718
+ */
719
+ resultFieldName?: string;
720
+ /**
721
+ * Nested fields to include, exclude, or reshape.
722
+ * @maxSize 1000
723
+ */
724
+ fields?: Field[];
725
+ }
726
+ interface Field extends FieldProjectionOneOf {
727
+ /** When specified, includes only the specified field in the result. All other fields are excluded. */
728
+ include?: Include;
729
+ /** When specified, excludes the specified field from the result. All other fields are included. */
730
+ exclude?: Exclude;
731
+ /** Reshapes a new field based on the specified expression. The field used by the expression is not included in the result. */
732
+ reshape?: Reshape;
733
+ /** Creates nested fields by including, excluding, or reshaping fields. */
734
+ projectNested?: ProjectNested;
735
+ }
736
+ /** @oneof */
737
+ interface FieldProjectionOneOf {
738
+ /** When specified, includes only the specified field in the result. All other fields are excluded. */
739
+ include?: Include;
740
+ /** When specified, excludes the specified field from the result. All other fields are included. */
741
+ exclude?: Exclude;
742
+ /** Reshapes a new field based on the specified expression. The field used by the expression is not included in the result. */
743
+ reshape?: Reshape;
744
+ /** Creates nested fields by including, excluding, or reshaping fields. */
745
+ projectNested?: ProjectNested;
746
+ }
747
+ /** Converts an object to an array. */
748
+ interface ObjectToArray {
749
+ /**
750
+ * Key of the object field to convert to an array.
751
+ *
752
+ * Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).
753
+ * @maxLength 1000
754
+ */
755
+ objectFieldName?: string;
756
+ /**
757
+ * Key of the new array to create in the result item.
758
+ *
759
+ * 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).
760
+ * @maxLength 1000
761
+ */
762
+ destinationFieldName?: string;
763
+ }
764
+ /** Unwinds an array. */
765
+ interface UnwindArray {
766
+ /**
767
+ * Key of the array field to unwind.
768
+ *
769
+ * Use dot notation to specify a nested array. For example, `user.products` or `product.colors`. 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).
770
+ * @maxLength 1000
771
+ */
772
+ arrayFieldName?: string;
773
+ }
774
+ interface AddFields {
775
+ /**
776
+ * Fields to add or replace in the result items.
777
+ * @maxSize 1000
778
+ */
779
+ fields?: AddField[];
780
+ }
781
+ interface AddField {
782
+ /**
783
+ * Key of the field to add or replace in the result item.
784
+ * @maxLength 1000
785
+ */
786
+ fieldName?: string;
787
+ /** Expression to resolve. The result of the expression becomes the value of the field. */
788
+ expression?: Expression;
789
+ }
790
+ interface Lookup {
791
+ /**
792
+ * ID of the collection to join with.
793
+ * @maxLength 256
794
+ */
795
+ dataCollectionId?: string;
796
+ /**
797
+ * Key of the local field whose value is used for matching items in the joined collection.
798
+ * @maxLength 1000
799
+ */
800
+ localField?: string;
801
+ /**
802
+ * Key of the field in the joined collection to match against the local field value.
803
+ * @maxLength 1000
804
+ */
805
+ foreignField?: string;
806
+ /**
807
+ * Key of the array field where matching joined items are stored.
808
+ * @maxLength 1000
809
+ */
810
+ asField?: string;
811
+ }
812
+ interface UnionWith {
813
+ /**
814
+ * ID of the collection whose results are appended to the current pipeline results.
815
+ * @maxLength 256
816
+ */
817
+ dataCollectionId?: string;
818
+ /** Pipeline to run on the union collection before appending its results. */
819
+ pipeline?: AggregationPipeline;
820
+ }
821
+ interface Paging {
822
+ /** Number of items to load. */
823
+ limit?: number | null;
824
+ /** Number of items to skip in the current sort order. */
825
+ offset?: number | null;
826
+ }
827
+ interface CursorPaging {
828
+ /**
829
+ * Number of items to load.
830
+ * @max 1000
831
+ */
832
+ limit?: number | null;
833
+ /**
834
+ * Pointer to the next or previous page in the list of results.
835
+ *
836
+ * You can get the relevant cursor token
837
+ * from the `pagingMetadata` object in the previous call's response.
838
+ * Not relevant for the first request.
839
+ * @maxLength 150000
840
+ */
841
+ cursor?: string | null;
842
+ }
174
843
  declare enum FileFormat {
175
844
  /** Unknown format. */
176
845
  UNKNOWN = "UNKNOWN",
@@ -196,7 +865,11 @@ declare enum MediaType {
196
865
  /** @enumType */
197
866
  type MediaTypeWithLiterals = MediaType | 'ALL' | 'IMAGE' | 'VIDEO' | 'AUDIO' | 'DOCUMENT';
198
867
  /** Wix data collection. */
199
- interface WixDataSource {
868
+ interface WixDataSource extends WixDataSourceQueryOneOf {
869
+ /** Filter and field selection to apply to the collection items. */
870
+ filterQuery?: FilterQuery;
871
+ /** Aggregation pipeline to run on the collection. */
872
+ aggregationPipeline?: AggregationPipeline;
200
873
  /**
201
874
  * ID of the data collection.
202
875
  * @minLength 1
@@ -207,11 +880,27 @@ interface WixDataSource {
207
880
  * Filter to apply to the items. Only items that pass the filter are moved.
208
881
  *
209
882
  * Learn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
883
+ * Deprecated: Use `filter_query.filter` instead.
884
+ * @deprecated
885
+ * @replacedBy filter_query
886
+ * @targetRemovalDate 2027-01-01
210
887
  */
211
888
  filter?: Record<string, any> | null;
212
- /** Item fields to move. If not set, the method moves the full items. */
889
+ /**
890
+ * Deprecated: Use `filter_query.fields` instead.
891
+ * @deprecated
892
+ * @replacedBy filter_query
893
+ * @targetRemovalDate 2027-01-01
894
+ */
213
895
  fields?: string[];
214
896
  }
897
+ /** @oneof */
898
+ interface WixDataSourceQueryOneOf {
899
+ /** Filter and field selection to apply to the collection items. */
900
+ filterQuery?: FilterQuery;
901
+ /** Aggregation pipeline to run on the collection. */
902
+ aggregationPipeline?: AggregationPipeline;
903
+ }
215
904
  interface LocalizationSource {
216
905
  /**
217
906
  * Translated CMS content in the specified languages. Content in these languages is exported to the destination, with the first specified language treated as the main one.
@@ -418,9 +1107,9 @@ interface Schema {
418
1107
  * Item fields to move to the destination file.
419
1108
  * @maxSize 1000
420
1109
  */
421
- fields?: Field[];
1110
+ fields?: V1Field[];
422
1111
  }
423
- interface Field {
1112
+ interface V1Field {
424
1113
  /**
425
1114
  * Field ID.
426
1115
  *
@@ -614,11 +1303,11 @@ interface ListScheduledDataWorkflowsRequest {
614
1303
  */
615
1304
  fields?: FieldsWithLiterals[];
616
1305
  /** Reserved for future server-side paging support. Currently ignored. */
617
- paging?: CursorPaging;
1306
+ paging?: CommonCursorPaging;
618
1307
  /** Reserved for future server-side filtering support. Currently ignored. */
619
1308
  filter?: Record<string, any> | null;
620
1309
  }
621
- interface CursorPaging {
1310
+ interface CommonCursorPaging {
622
1311
  /**
623
1312
  * Maximum number of items to return in the results.
624
1313
  * @max 100
@@ -693,7 +1382,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
693
1382
  /** If present, indicates the action that triggered the event. */
694
1383
  originatedFrom?: string | null;
695
1384
  /**
696
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
1385
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
697
1386
  * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
698
1387
  */
699
1388
  entityEventSequence?: string | null;
@@ -858,7 +1547,7 @@ interface EventMetadata extends BaseEventMetadata {
858
1547
  /** If present, indicates the action that triggered the event. */
859
1548
  originatedFrom?: string | null;
860
1549
  /**
861
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
1550
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.
862
1551
  * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
863
1552
  */
864
1553
  entityEventSequence?: string | null;
@@ -1038,9 +1727,9 @@ interface ListScheduledDataWorkflowsOptions {
1038
1727
  */
1039
1728
  fields?: FieldsWithLiterals[];
1040
1729
  /** Reserved for future server-side paging support. Currently ignored. */
1041
- paging?: CursorPaging;
1730
+ paging?: CommonCursorPaging;
1042
1731
  /** Reserved for future server-side filtering support. Currently ignored. */
1043
1732
  filter?: Record<string, any> | null;
1044
1733
  }
1045
1734
 
1046
- export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type BaseEventMetadata, type CreateScheduledDataWorkflowOptions, type CreateScheduledDataWorkflowRequest, type CreateScheduledDataWorkflowResponse, type CursorPaging, type CursorPagingMetadata, type Cursors, type DataMovementJobLogs, type DeleteScheduledDataWorkflowRequest, type DeleteScheduledDataWorkflowResponse, type Destination, type DestinationDestinationOneOf, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExternalFileSource, type Field, FieldType, type FieldTypeWithLiterals, Fields, type FieldsWithLiterals, type FileDestination, FileFormat, type FileFormatWithLiterals, type FileSource, type GetScheduledDataWorkflowOptions, type GetScheduledDataWorkflowRequest, type GetScheduledDataWorkflowResponse, type GoogleSheetsSource, type IdentificationData, type IdentificationDataIdOneOf, type JobSpec, type JobSpecSiteOverrideOneOf, type JobsCreatedEnvelope, type JobsDeletedEnvelope, type JobsUpdatedEnvelope, type ListScheduledDataWorkflowsOptions, type ListScheduledDataWorkflowsRequest, type ListScheduledDataWorkflowsResponse, type LocalizationDestination, type LocalizationSource, MediaType, type MediaTypeWithLiterals, type MessageEnvelope, type RescheduleScheduledDataWorkflowOptions, type RescheduleScheduledDataWorkflowRequest, type RescheduleScheduledDataWorkflowResponse, type RestoreInfo, type ScheduledDataWorkflow, type ScheduledDataWorkflowSpec, type Schema, type Source, type SourceSourceOneOf, type StoresCatalogInventoryDestination, type StoresCatalogProductsDestination, type TestDestination, type TestSource, type TestTransformation, type Transformation, type TransformationTransformationOneOf, type TriggerScheduledDataWorkflowNowRequest, type TriggerScheduledDataWorkflowNowResponse, type UpdateScheduledDataWorkflowOptions, type UpdateScheduledDataWorkflowRequest, type UpdateScheduledDataWorkflowResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixDataCollectionDefinitionDestination, type WixDataCollectionDefinitionSource, type WixDataDestination, WixDataDestinationWritePolicy, type WixDataDestinationWritePolicyWithLiterals, WixDataEnvironment, type WixDataEnvironmentWithLiterals, type WixDataSource, type WixMediaDestination, WixMediaDestinationWritePolicy, type WixMediaDestinationWritePolicyWithLiterals, type WixMediaSource, WritePolicy, type WritePolicyWithLiterals, createScheduledDataWorkflow, deleteScheduledDataWorkflow, getScheduledDataWorkflow, listScheduledDataWorkflows, onJobsCreated, onJobsDeleted, onJobsUpdated, rescheduleScheduledDataWorkflow, triggerScheduledDataWorkflowNow, updateScheduledDataWorkflow };
1735
+ export { type AbsOperation, type AccountInfo, type AccountInfoMetadata, type Accumulator, type AccumulatorExpressionOneOf, type ActionEvent, type AddField, type AddFields, type AddOperation, type AggregationPipeline, type AggregationPipelinePagingMethodOneOf, type Avg, type BaseEventMetadata, type CeilOperation, type CommonCursorPaging, type CommonSorting, type ConcatOperation, type ConditionOperation, type CreateScheduledDataWorkflowOptions, type CreateScheduledDataWorkflowRequest, type CreateScheduledDataWorkflowResponse, type CursorPaging, type CursorPagingMetadata, type Cursors, type DataMovementJobLogs, type DeleteScheduledDataWorkflowRequest, type DeleteScheduledDataWorkflowResponse, type Destination, type DestinationDestinationOneOf, type DivideOperation, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type Exclude, type Expression, type ExpressionValueOneOf, type ExternalFileSource, type Field, type FieldProjectionOneOf, FieldType, type FieldTypeWithLiterals, Fields, type FieldsWithLiterals, type FileDestination, FileFormat, type FileFormatWithLiterals, type FileSource, type FilterQuery, type First, type FloorOperation, type GetScheduledDataWorkflowOptions, type GetScheduledDataWorkflowRequest, type GetScheduledDataWorkflowResponse, type GoogleSheetsSource, type GreaterThanOperation, type Group, type GroupId, type IdentificationData, type IdentificationDataIdOneOf, type Include, type JobSpec, type JobSpecSiteOverrideOneOf, type JobsCreatedEnvelope, type JobsDeletedEnvelope, type JobsUpdatedEnvelope, type Last, type LengthOperation, type ListScheduledDataWorkflowsOptions, type ListScheduledDataWorkflowsRequest, type ListScheduledDataWorkflowsResponse, type LocalizationDestination, type LocalizationSource, type Lookup, type Max, MediaType, type MediaTypeWithLiterals, type MessageEnvelope, type Min, type ModOperation, type MultiplyOperation, type ObjectToArray, type Paging, type ProjectNested, type Projection, type Push, type RescheduleScheduledDataWorkflowOptions, type RescheduleScheduledDataWorkflowRequest, type RescheduleScheduledDataWorkflowResponse, type Reshape, type RestoreInfo, type ScheduledDataWorkflow, type ScheduledDataWorkflowSpec, type Schema, type SizeOperation, SortOrder, type SortOrderWithLiterals, type Sorting, type Source, type SourceSourceOneOf, type Stage, type StageStageOneOf, type StoresCatalogInventoryDestination, type StoresCatalogProductsDestination, type StringifyOperation, type SubstringOperation, type SubtractOperation, type Sum, type SumOperation, type TestDestination, type TestSource, type TestTransformation, type ToLowerOperation, type ToUpperOperation, type Transformation, type TransformationTransformationOneOf, type TriggerScheduledDataWorkflowNowRequest, type TriggerScheduledDataWorkflowNowResponse, type UnionWith, type UnwindArray, type UpdateScheduledDataWorkflowOptions, type UpdateScheduledDataWorkflowRequest, type UpdateScheduledDataWorkflowResponse, type V1Field, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WixDataCollectionDefinitionDestination, type WixDataCollectionDefinitionSource, type WixDataDestination, WixDataDestinationWritePolicy, type WixDataDestinationWritePolicyWithLiterals, WixDataEnvironment, type WixDataEnvironmentWithLiterals, type WixDataSource, type WixDataSourceQueryOneOf, type WixMediaDestination, WixMediaDestinationWritePolicy, type WixMediaDestinationWritePolicyWithLiterals, type WixMediaSource, WritePolicy, type WritePolicyWithLiterals, createScheduledDataWorkflow, deleteScheduledDataWorkflow, getScheduledDataWorkflow, listScheduledDataWorkflows, onJobsCreated, onJobsDeleted, onJobsUpdated, rescheduleScheduledDataWorkflow, triggerScheduledDataWorkflowNow, updateScheduledDataWorkflow };