@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.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +9 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +78 -11
- package/build/cjs/index.typings.js +9 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +78 -1
- package/build/cjs/meta.js +9 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +8 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +78 -11
- package/build/es/index.typings.mjs +8 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +78 -1
- package/build/es/meta.mjs +8 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +9 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +78 -11
- package/build/internal/cjs/index.typings.js +9 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +78 -1
- package/build/internal/cjs/meta.js +9 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +8 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +78 -11
- package/build/internal/es/index.typings.mjs +8 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +78 -1
- package/build/internal/es/meta.mjs +8 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1210,6 +1210,83 @@ interface TransformationTransformationOneOf {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
interface TestTransformation {
|
|
1212
1212
|
}
|
|
1213
|
+
/** Maps and filters source fields onto destination fields. */
|
|
1214
|
+
interface FieldMapping {
|
|
1215
|
+
/**
|
|
1216
|
+
* Column mappings. Any source field not listed here is excluded from the import.
|
|
1217
|
+
* @minSize 1
|
|
1218
|
+
* @maxSize 1000
|
|
1219
|
+
*/
|
|
1220
|
+
mappings?: FieldMappingEntry[];
|
|
1221
|
+
}
|
|
1222
|
+
interface FieldMappingEntry extends FieldMappingEntryConversionOneOf {
|
|
1223
|
+
/** Boolean token mapping. Set when field_type is BOOLEAN. */
|
|
1224
|
+
booleanOptions?: BooleanOptions;
|
|
1225
|
+
/** Date-time format. Set when field_type is DATETIME. */
|
|
1226
|
+
datetimeOptions?: DateTimeOptions;
|
|
1227
|
+
/**
|
|
1228
|
+
* Source field key (e.g. a CSV column header).
|
|
1229
|
+
* @minLength 1
|
|
1230
|
+
* @maxLength 1024
|
|
1231
|
+
*/
|
|
1232
|
+
sourceKey?: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* Destination field key. Must already exist in the destination collection.
|
|
1235
|
+
* Use "_id" to control the item ID. May target a multi-reference or array
|
|
1236
|
+
* field (use field_type = ARRAY; the cell must be a JSON array).
|
|
1237
|
+
* @minLength 1
|
|
1238
|
+
* @maxLength 1024
|
|
1239
|
+
*/
|
|
1240
|
+
targetKey?: string;
|
|
1241
|
+
/**
|
|
1242
|
+
* Destination field data type, used to coerce the source string value.
|
|
1243
|
+
* ARRAY / OBJECT parse the cell as JSON. Default: ANY (pass-through).
|
|
1244
|
+
*/
|
|
1245
|
+
fieldType?: FieldTypeWithLiterals;
|
|
1246
|
+
}
|
|
1247
|
+
/** @oneof */
|
|
1248
|
+
interface FieldMappingEntryConversionOneOf {
|
|
1249
|
+
/** Boolean token mapping. Set when field_type is BOOLEAN. */
|
|
1250
|
+
booleanOptions?: BooleanOptions;
|
|
1251
|
+
/** Date-time format. Set when field_type is DATETIME. */
|
|
1252
|
+
datetimeOptions?: DateTimeOptions;
|
|
1253
|
+
}
|
|
1254
|
+
/**
|
|
1255
|
+
* Maps source tokens to boolean values. Matching is case-insensitive.
|
|
1256
|
+
* When both lists are empty, booleans are converted best-effort ("true"/"false").
|
|
1257
|
+
* Values matching neither list are kept as-is.
|
|
1258
|
+
*/
|
|
1259
|
+
interface BooleanOptions {
|
|
1260
|
+
/**
|
|
1261
|
+
* Source tokens representing boolean true (e.g. "true", "yes", "1").
|
|
1262
|
+
* @maxSize 64
|
|
1263
|
+
* @maxLength 256
|
|
1264
|
+
*/
|
|
1265
|
+
trueValues?: string[];
|
|
1266
|
+
/**
|
|
1267
|
+
* Source tokens representing boolean false (e.g. "false", "no", "0").
|
|
1268
|
+
* @maxSize 64
|
|
1269
|
+
* @maxLength 256
|
|
1270
|
+
*/
|
|
1271
|
+
falseValues?: string[];
|
|
1272
|
+
}
|
|
1273
|
+
/** How to parse a source date-time value. */
|
|
1274
|
+
interface DateTimeOptions {
|
|
1275
|
+
format?: DateFormatWithLiterals;
|
|
1276
|
+
}
|
|
1277
|
+
/** Known source date / date-time formats. Extend with new formats as needed. */
|
|
1278
|
+
declare enum DateFormat {
|
|
1279
|
+
/** Try to detect and parse the value automatically. */
|
|
1280
|
+
BEST_EFFORT = "BEST_EFFORT",
|
|
1281
|
+
/** ISO 8601, e.g. "2026-07-03T14:04:31.000Z". */
|
|
1282
|
+
ISO_8601 = "ISO_8601",
|
|
1283
|
+
/** "MM/DD/YYYY HH:mm", e.g. "07/03/2026 14:04". */
|
|
1284
|
+
MM_DD_YYYY_HH_MM = "MM_DD_YYYY_HH_MM",
|
|
1285
|
+
/** "DD/MM/YYYY HH:mm", e.g. "03/07/2026 14:04". */
|
|
1286
|
+
DD_MM_YYYY_HH_MM = "DD_MM_YYYY_HH_MM"
|
|
1287
|
+
}
|
|
1288
|
+
/** @enumType */
|
|
1289
|
+
type DateFormatWithLiterals = DateFormat | 'BEST_EFFORT' | 'ISO_8601' | 'MM_DD_YYYY_HH_MM' | 'DD_MM_YYYY_HH_MM';
|
|
1213
1290
|
interface CreateScheduledDataWorkflowRequest {
|
|
1214
1291
|
/** Scheduled data movement workflow to create. */
|
|
1215
1292
|
scheduledDataWorkflow: ScheduledDataWorkflow;
|
|
@@ -1571,7 +1648,6 @@ interface JobsCreatedEnvelope {
|
|
|
1571
1648
|
* @webhook
|
|
1572
1649
|
* @eventType wix.data.sync.v1.jobs_created
|
|
1573
1650
|
* @slug created
|
|
1574
|
-
* @documentationMaturity preview
|
|
1575
1651
|
*/
|
|
1576
1652
|
declare function onJobsCreated(handler: (event: JobsCreatedEnvelope) => void | Promise<void>): void;
|
|
1577
1653
|
interface JobsDeletedEnvelope {
|
|
@@ -1583,7 +1659,6 @@ interface JobsDeletedEnvelope {
|
|
|
1583
1659
|
* @webhook
|
|
1584
1660
|
* @eventType wix.data.sync.v1.jobs_deleted
|
|
1585
1661
|
* @slug deleted
|
|
1586
|
-
* @documentationMaturity preview
|
|
1587
1662
|
*/
|
|
1588
1663
|
declare function onJobsDeleted(handler: (event: JobsDeletedEnvelope) => void | Promise<void>): void;
|
|
1589
1664
|
interface JobsUpdatedEnvelope {
|
|
@@ -1596,7 +1671,6 @@ interface JobsUpdatedEnvelope {
|
|
|
1596
1671
|
* @webhook
|
|
1597
1672
|
* @eventType wix.data.sync.v1.jobs_updated
|
|
1598
1673
|
* @slug updated
|
|
1599
|
-
* @documentationMaturity preview
|
|
1600
1674
|
*/
|
|
1601
1675
|
declare function onJobsUpdated(handler: (event: JobsUpdatedEnvelope) => void | Promise<void>): void;
|
|
1602
1676
|
/**
|
|
@@ -1606,7 +1680,6 @@ declare function onJobsUpdated(handler: (event: JobsUpdatedEnvelope) => void | P
|
|
|
1606
1680
|
* 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.
|
|
1607
1681
|
* @param scheduledDataWorkflow - Scheduled data movement workflow to create.
|
|
1608
1682
|
* @public
|
|
1609
|
-
* @documentationMaturity preview
|
|
1610
1683
|
* @requiredField scheduledDataWorkflow
|
|
1611
1684
|
* @requiredField scheduledDataWorkflow._id
|
|
1612
1685
|
* @requiredField scheduledDataWorkflow.workflow
|
|
@@ -1633,7 +1706,6 @@ interface CreateScheduledDataWorkflowOptions {
|
|
|
1633
1706
|
* Only applies to `enabled` scheduled data workflows.
|
|
1634
1707
|
* @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to reschedule.
|
|
1635
1708
|
* @public
|
|
1636
|
-
* @documentationMaturity preview
|
|
1637
1709
|
* @requiredField scheduledDataWorkflowId
|
|
1638
1710
|
* @permissionId data:sync:v1:jobs:reschedule_scheduled_data_workflow
|
|
1639
1711
|
* @fqn wix.hub.v1.DataMovementSchedulerService.RescheduleScheduledDataWorkflow
|
|
@@ -1654,7 +1726,6 @@ interface RescheduleScheduledDataWorkflowOptions {
|
|
|
1654
1726
|
* TimeCapsule runs.
|
|
1655
1727
|
* @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to run immediately.
|
|
1656
1728
|
* @public
|
|
1657
|
-
* @documentationMaturity preview
|
|
1658
1729
|
* @requiredField scheduledDataWorkflowId
|
|
1659
1730
|
* @permissionId data:sync:v1:jobs:trigger_scheduled_data_workflow_now
|
|
1660
1731
|
* @fqn wix.hub.v1.DataMovementSchedulerService.TriggerScheduledDataWorkflowNow
|
|
@@ -1664,7 +1735,6 @@ declare function triggerScheduledDataWorkflowNow(scheduledDataWorkflowId: string
|
|
|
1664
1735
|
* Updates an existing scheduled data workflow.
|
|
1665
1736
|
* @param scheduledDataWorkflow - Scheduled data movement workflow information to update.
|
|
1666
1737
|
* @public
|
|
1667
|
-
* @documentationMaturity preview
|
|
1668
1738
|
* @requiredField scheduledDataWorkflow
|
|
1669
1739
|
* @requiredField scheduledDataWorkflow.workflow
|
|
1670
1740
|
* @requiredField scheduledDataWorkflow.workflow.steps
|
|
@@ -1686,7 +1756,6 @@ interface UpdateScheduledDataWorkflowOptions {
|
|
|
1686
1756
|
* This permanently removes the schedule and prevents future executions. Any currently running data workflows triggered by the schedule continue to completion.
|
|
1687
1757
|
* @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to delete.
|
|
1688
1758
|
* @public
|
|
1689
|
-
* @documentationMaturity preview
|
|
1690
1759
|
* @requiredField scheduledDataWorkflowId
|
|
1691
1760
|
* @permissionId data:sync:v1:jobs:delete_scheduled_data_workflow
|
|
1692
1761
|
* @fqn wix.hub.v1.DataMovementSchedulerService.DeleteScheduledDataWorkflow
|
|
@@ -1696,7 +1765,6 @@ declare function deleteScheduledDataWorkflow(scheduledDataWorkflowId: string): P
|
|
|
1696
1765
|
* Retrieves a scheduled data workflow by ID.
|
|
1697
1766
|
* @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to retrieve.
|
|
1698
1767
|
* @public
|
|
1699
|
-
* @documentationMaturity preview
|
|
1700
1768
|
* @requiredField scheduledDataWorkflowId
|
|
1701
1769
|
* @permissionId data:sync:v1:jobs:get_scheduled_data_workflow
|
|
1702
1770
|
* @returns Retrieved scheduled data movement workflow.
|
|
@@ -1715,7 +1783,6 @@ interface GetScheduledDataWorkflowOptions {
|
|
|
1715
1783
|
*
|
|
1716
1784
|
* 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.
|
|
1717
1785
|
* @public
|
|
1718
|
-
* @documentationMaturity preview
|
|
1719
1786
|
* @permissionId data:sync:v1:jobs:list_scheduled_data_workflows
|
|
1720
1787
|
* @fqn wix.hub.v1.DataMovementSchedulerService.ListScheduledDataWorkflows
|
|
1721
1788
|
*/
|
|
@@ -1732,4 +1799,4 @@ interface ListScheduledDataWorkflowsOptions {
|
|
|
1732
1799
|
filter?: Record<string, any> | null;
|
|
1733
1800
|
}
|
|
1734
1801
|
|
|
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 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 };
|
|
1802
|
+
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 };
|
|
@@ -544,6 +544,13 @@ var WritePolicy = /* @__PURE__ */ ((WritePolicy2) => {
|
|
|
544
544
|
WritePolicy2["OVERWRITE"] = "OVERWRITE";
|
|
545
545
|
return WritePolicy2;
|
|
546
546
|
})(WritePolicy || {});
|
|
547
|
+
var DateFormat = /* @__PURE__ */ ((DateFormat2) => {
|
|
548
|
+
DateFormat2["BEST_EFFORT"] = "BEST_EFFORT";
|
|
549
|
+
DateFormat2["ISO_8601"] = "ISO_8601";
|
|
550
|
+
DateFormat2["MM_DD_YYYY_HH_MM"] = "MM_DD_YYYY_HH_MM";
|
|
551
|
+
DateFormat2["DD_MM_YYYY_HH_MM"] = "DD_MM_YYYY_HH_MM";
|
|
552
|
+
return DateFormat2;
|
|
553
|
+
})(DateFormat || {});
|
|
547
554
|
var Fields = /* @__PURE__ */ ((Fields2) => {
|
|
548
555
|
Fields2["NEXT_SCHEDULE_EXECUTION"] = "NEXT_SCHEDULE_EXECUTION";
|
|
549
556
|
return Fields2;
|
|
@@ -752,6 +759,7 @@ async function listScheduledDataWorkflows2(options) {
|
|
|
752
759
|
}
|
|
753
760
|
}
|
|
754
761
|
export {
|
|
762
|
+
DateFormat,
|
|
755
763
|
FieldType,
|
|
756
764
|
Fields,
|
|
757
765
|
FileFormat,
|