@wix/auto_sdk_data_scheduled-workflows 1.0.3 → 1.0.5

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 (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +9 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +78 -11
  5. package/build/cjs/index.typings.js +9 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +78 -1
  8. package/build/cjs/meta.js +9 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +8 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +78 -11
  14. package/build/es/index.typings.mjs +8 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +78 -1
  17. package/build/es/meta.mjs +8 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +9 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +78 -11
  23. package/build/internal/cjs/index.typings.js +9 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +78 -1
  26. package/build/internal/cjs/meta.js +9 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +8 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +78 -11
  32. package/build/internal/es/index.typings.mjs +8 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +78 -1
  35. package/build/internal/es/meta.mjs +8 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1221,6 +1221,83 @@ interface TransformationTransformationOneOf {
1221
1221
  }
1222
1222
  interface TestTransformation {
1223
1223
  }
1224
+ /** Maps and filters source fields onto destination fields. */
1225
+ interface FieldMapping {
1226
+ /**
1227
+ * Column mappings. Any source field not listed here is excluded from the import.
1228
+ * @minSize 1
1229
+ * @maxSize 1000
1230
+ */
1231
+ mappings?: FieldMappingEntry[];
1232
+ }
1233
+ interface FieldMappingEntry extends FieldMappingEntryConversionOneOf {
1234
+ /** Boolean token mapping. Set when field_type is BOOLEAN. */
1235
+ booleanOptions?: BooleanOptions;
1236
+ /** Date-time format. Set when field_type is DATETIME. */
1237
+ datetimeOptions?: DateTimeOptions;
1238
+ /**
1239
+ * Source field key (e.g. a CSV column header).
1240
+ * @minLength 1
1241
+ * @maxLength 1024
1242
+ */
1243
+ sourceKey?: string;
1244
+ /**
1245
+ * Destination field key. Must already exist in the destination collection.
1246
+ * Use "_id" to control the item ID. May target a multi-reference or array
1247
+ * field (use field_type = ARRAY; the cell must be a JSON array).
1248
+ * @minLength 1
1249
+ * @maxLength 1024
1250
+ */
1251
+ targetKey?: string;
1252
+ /**
1253
+ * Destination field data type, used to coerce the source string value.
1254
+ * ARRAY / OBJECT parse the cell as JSON. Default: ANY (pass-through).
1255
+ */
1256
+ fieldType?: FieldTypeWithLiterals;
1257
+ }
1258
+ /** @oneof */
1259
+ interface FieldMappingEntryConversionOneOf {
1260
+ /** Boolean token mapping. Set when field_type is BOOLEAN. */
1261
+ booleanOptions?: BooleanOptions;
1262
+ /** Date-time format. Set when field_type is DATETIME. */
1263
+ datetimeOptions?: DateTimeOptions;
1264
+ }
1265
+ /**
1266
+ * Maps source tokens to boolean values. Matching is case-insensitive.
1267
+ * When both lists are empty, booleans are converted best-effort ("true"/"false").
1268
+ * Values matching neither list are kept as-is.
1269
+ */
1270
+ interface BooleanOptions {
1271
+ /**
1272
+ * Source tokens representing boolean true (e.g. "true", "yes", "1").
1273
+ * @maxSize 64
1274
+ * @maxLength 256
1275
+ */
1276
+ trueValues?: string[];
1277
+ /**
1278
+ * Source tokens representing boolean false (e.g. "false", "no", "0").
1279
+ * @maxSize 64
1280
+ * @maxLength 256
1281
+ */
1282
+ falseValues?: string[];
1283
+ }
1284
+ /** How to parse a source date-time value. */
1285
+ interface DateTimeOptions {
1286
+ format?: DateFormatWithLiterals;
1287
+ }
1288
+ /** Known source date / date-time formats. Extend with new formats as needed. */
1289
+ declare enum DateFormat {
1290
+ /** Try to detect and parse the value automatically. */
1291
+ BEST_EFFORT = "BEST_EFFORT",
1292
+ /** ISO 8601, e.g. "2026-07-03T14:04:31.000Z". */
1293
+ ISO_8601 = "ISO_8601",
1294
+ /** "MM/DD/YYYY HH:mm", e.g. "07/03/2026 14:04". */
1295
+ MM_DD_YYYY_HH_MM = "MM_DD_YYYY_HH_MM",
1296
+ /** "DD/MM/YYYY HH:mm", e.g. "03/07/2026 14:04". */
1297
+ DD_MM_YYYY_HH_MM = "DD_MM_YYYY_HH_MM"
1298
+ }
1299
+ /** @enumType */
1300
+ type DateFormatWithLiterals = DateFormat | 'BEST_EFFORT' | 'ISO_8601' | 'MM_DD_YYYY_HH_MM' | 'DD_MM_YYYY_HH_MM';
1224
1301
  interface CreateScheduledDataWorkflowRequest {
1225
1302
  /** Scheduled data movement workflow to create. */
1226
1303
  scheduledDataWorkflow: ScheduledDataWorkflow;
@@ -1582,7 +1659,6 @@ interface JobsCreatedEnvelope {
1582
1659
  * @webhook
1583
1660
  * @eventType wix.data.sync.v1.jobs_created
1584
1661
  * @slug created
1585
- * @documentationMaturity preview
1586
1662
  */
1587
1663
  declare function onJobsCreated(handler: (event: JobsCreatedEnvelope) => void | Promise<void>): void;
1588
1664
  interface JobsDeletedEnvelope {
@@ -1594,7 +1670,6 @@ interface JobsDeletedEnvelope {
1594
1670
  * @webhook
1595
1671
  * @eventType wix.data.sync.v1.jobs_deleted
1596
1672
  * @slug deleted
1597
- * @documentationMaturity preview
1598
1673
  */
1599
1674
  declare function onJobsDeleted(handler: (event: JobsDeletedEnvelope) => void | Promise<void>): void;
1600
1675
  interface JobsUpdatedEnvelope {
@@ -1607,7 +1682,6 @@ interface JobsUpdatedEnvelope {
1607
1682
  * @webhook
1608
1683
  * @eventType wix.data.sync.v1.jobs_updated
1609
1684
  * @slug updated
1610
- * @documentationMaturity preview
1611
1685
  */
1612
1686
  declare function onJobsUpdated(handler: (event: JobsUpdatedEnvelope) => void | Promise<void>): void;
1613
1687
  /**
@@ -1617,7 +1691,6 @@ declare function onJobsUpdated(handler: (event: JobsUpdatedEnvelope) => void | P
1617
1691
  * Each execution creates a new [data workflow](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/introduction) with its `scheduleId` set to this scheduled data workflow's ID.
1618
1692
  * @param scheduledDataWorkflow - Scheduled data movement workflow to create.
1619
1693
  * @public
1620
- * @documentationMaturity preview
1621
1694
  * @requiredField scheduledDataWorkflow
1622
1695
  * @requiredField scheduledDataWorkflow._id
1623
1696
  * @requiredField scheduledDataWorkflow.workflow
@@ -1644,7 +1717,6 @@ interface CreateScheduledDataWorkflowOptions {
1644
1717
  * Only applies to `enabled` scheduled data workflows.
1645
1718
  * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to reschedule.
1646
1719
  * @public
1647
- * @documentationMaturity preview
1648
1720
  * @requiredField scheduledDataWorkflowId
1649
1721
  * @permissionId data:sync:v1:jobs:reschedule_scheduled_data_workflow
1650
1722
  * @fqn wix.hub.v1.DataMovementSchedulerService.RescheduleScheduledDataWorkflow
@@ -1665,7 +1737,6 @@ interface RescheduleScheduledDataWorkflowOptions {
1665
1737
  * TimeCapsule runs.
1666
1738
  * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to run immediately.
1667
1739
  * @public
1668
- * @documentationMaturity preview
1669
1740
  * @requiredField scheduledDataWorkflowId
1670
1741
  * @permissionId data:sync:v1:jobs:trigger_scheduled_data_workflow_now
1671
1742
  * @fqn wix.hub.v1.DataMovementSchedulerService.TriggerScheduledDataWorkflowNow
@@ -1675,7 +1746,6 @@ declare function triggerScheduledDataWorkflowNow(scheduledDataWorkflowId: string
1675
1746
  * Updates an existing scheduled data workflow.
1676
1747
  * @param scheduledDataWorkflow - Scheduled data movement workflow information to update.
1677
1748
  * @public
1678
- * @documentationMaturity preview
1679
1749
  * @requiredField scheduledDataWorkflow
1680
1750
  * @requiredField scheduledDataWorkflow.workflow
1681
1751
  * @requiredField scheduledDataWorkflow.workflow.steps
@@ -1697,7 +1767,6 @@ interface UpdateScheduledDataWorkflowOptions {
1697
1767
  * This permanently removes the schedule and prevents future executions. Any currently running data workflows triggered by the schedule continue to completion.
1698
1768
  * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to delete.
1699
1769
  * @public
1700
- * @documentationMaturity preview
1701
1770
  * @requiredField scheduledDataWorkflowId
1702
1771
  * @permissionId data:sync:v1:jobs:delete_scheduled_data_workflow
1703
1772
  * @fqn wix.hub.v1.DataMovementSchedulerService.DeleteScheduledDataWorkflow
@@ -1707,7 +1776,6 @@ declare function deleteScheduledDataWorkflow(scheduledDataWorkflowId: string): P
1707
1776
  * Retrieves a scheduled data workflow by ID.
1708
1777
  * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to retrieve.
1709
1778
  * @public
1710
- * @documentationMaturity preview
1711
1779
  * @requiredField scheduledDataWorkflowId
1712
1780
  * @permissionId data:sync:v1:jobs:get_scheduled_data_workflow
1713
1781
  * @returns Retrieved scheduled data movement workflow.
@@ -1726,7 +1794,6 @@ interface GetScheduledDataWorkflowOptions {
1726
1794
  *
1727
1795
  * The current implementation returns both enabled and disabled schedules. Request `paging` and `filter` fields are accepted for forward compatibility but are not applied by the service.
1728
1796
  * @public
1729
- * @documentationMaturity preview
1730
1797
  * @permissionId data:sync:v1:jobs:list_scheduled_data_workflows
1731
1798
  * @fqn wix.hub.v1.DataMovementSchedulerService.ListScheduledDataWorkflows
1732
1799
  */
@@ -1743,4 +1810,4 @@ interface ListScheduledDataWorkflowsOptions {
1743
1810
  filter?: Record<string, any> | null;
1744
1811
  }
1745
1812
 
1746
- export { type AbsOperation, type AccountInfo, type AccountInfoMetadata, type Accumulator, type AccumulatorExpressionOneOf, type ActionEvent, type AddField, type AddFields, type AddOperation, type AggregationPipeline, type AggregationPipelinePagingMethodOneOf, type AggregationQuery, 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 };
1813
+ export { type AbsOperation, type AccountInfo, type AccountInfoMetadata, type Accumulator, type AccumulatorExpressionOneOf, type ActionEvent, type AddField, type AddFields, type AddOperation, type AggregationPipeline, type AggregationPipelinePagingMethodOneOf, type AggregationQuery, type Avg, type BaseEventMetadata, type BooleanOptions, type CeilOperation, type CommonCursorPaging, type CommonSorting, type ConcatOperation, type ConditionOperation, type CreateScheduledDataWorkflowOptions, type CreateScheduledDataWorkflowRequest, type CreateScheduledDataWorkflowResponse, type CursorPaging, type CursorPagingMetadata, type Cursors, type DataMovementJobLogs, DateFormat, type DateFormatWithLiterals, type DateTimeOptions, 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 FieldMapping, type FieldMappingEntry, type FieldMappingEntryConversionOneOf, 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 };
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // index.typings.ts
21
21
  var index_typings_exports = {};
22
22
  __export(index_typings_exports, {
23
+ DateFormat: () => DateFormat,
23
24
  FieldType: () => FieldType,
24
25
  Fields: () => Fields,
25
26
  FileFormat: () => FileFormat,
@@ -583,6 +584,13 @@ var WritePolicy = /* @__PURE__ */ ((WritePolicy2) => {
583
584
  WritePolicy2["OVERWRITE"] = "OVERWRITE";
584
585
  return WritePolicy2;
585
586
  })(WritePolicy || {});
587
+ var DateFormat = /* @__PURE__ */ ((DateFormat2) => {
588
+ DateFormat2["BEST_EFFORT"] = "BEST_EFFORT";
589
+ DateFormat2["ISO_8601"] = "ISO_8601";
590
+ DateFormat2["MM_DD_YYYY_HH_MM"] = "MM_DD_YYYY_HH_MM";
591
+ DateFormat2["DD_MM_YYYY_HH_MM"] = "DD_MM_YYYY_HH_MM";
592
+ return DateFormat2;
593
+ })(DateFormat || {});
586
594
  var Fields = /* @__PURE__ */ ((Fields2) => {
587
595
  Fields2["NEXT_SCHEDULE_EXECUTION"] = "NEXT_SCHEDULE_EXECUTION";
588
596
  return Fields2;
@@ -792,6 +800,7 @@ async function listScheduledDataWorkflows2(options) {
792
800
  }
793
801
  // Annotate the CommonJS export names for ESM import in node:
794
802
  0 && (module.exports = {
803
+ DateFormat,
795
804
  FieldType,
796
805
  Fields,
797
806
  FileFormat,