@wix/auto_sdk_data_scheduled-workflows 1.0.0
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 +98 -0
- package/build/cjs/index.js +723 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1035 -0
- package/build/cjs/index.typings.js +594 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +839 -0
- package/build/cjs/meta.js +531 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/schemas.d.ts +595 -0
- package/build/cjs/schemas.js +1090 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +98 -0
- package/build/es/index.mjs +681 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1035 -0
- package/build/es/index.typings.mjs +555 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +839 -0
- package/build/es/meta.mjs +489 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/schemas.d.mts +595 -0
- package/build/es/schemas.mjs +1040 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +98 -0
- package/build/internal/cjs/index.js +723 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1046 -0
- package/build/internal/cjs/index.typings.js +594 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +839 -0
- package/build/internal/cjs/meta.js +531 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/schemas.d.ts +595 -0
- package/build/internal/cjs/schemas.js +1090 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +98 -0
- package/build/internal/es/index.mjs +681 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +1046 -0
- package/build/internal/es/index.typings.mjs +555 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +839 -0
- package/build/internal/es/meta.mjs +489 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/internal/es/schemas.d.mts +595 -0
- package/build/internal/es/schemas.mjs +1040 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +61 -0
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { ScheduledDataWorkflow, CreateScheduledDataWorkflowOptions, RescheduleScheduledDataWorkflowOptions, RescheduleScheduledDataWorkflowResponse, UpdateScheduledDataWorkflowOptions, GetScheduledDataWorkflowOptions, ListScheduledDataWorkflowsOptions, ListScheduledDataWorkflowsResponse, JobsCreatedEnvelope, JobsDeletedEnvelope, JobsUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, BaseEventMetadata, CreateScheduledDataWorkflowRequest, CreateScheduledDataWorkflowResponse, CursorPaging, CursorPagingMetadata, Cursors, DataMovementJobLogs, DeleteScheduledDataWorkflowRequest, DeleteScheduledDataWorkflowResponse, Destination, DestinationDestinationOneOf, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalFileSource, Field, FieldType, FieldTypeWithLiterals, Fields, FieldsWithLiterals, FileDestination, FileFormat, FileFormatWithLiterals, FileSource, GetScheduledDataWorkflowRequest, GetScheduledDataWorkflowResponse, GoogleSheetsSource, IdentificationData, IdentificationDataIdOneOf, JobSpec, JobSpecSiteOverrideOneOf, ListScheduledDataWorkflowsRequest, LocalizationDestination, LocalizationSource, MediaType, MediaTypeWithLiterals, MessageEnvelope, RescheduleScheduledDataWorkflowRequest, RestoreInfo, ScheduledDataWorkflowSpec, Schema, Source, SourceSourceOneOf, StoresCatalogInventoryDestination, StoresCatalogProductsDestination, TestDestination, TestSource, TestTransformation, Transformation, TransformationTransformationOneOf, TriggerScheduledDataWorkflowNowRequest, TriggerScheduledDataWorkflowNowResponse, UpdateScheduledDataWorkflowRequest, UpdateScheduledDataWorkflowResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixDataCollectionDefinitionDestination, WixDataCollectionDefinitionSource, WixDataDestination, WixDataDestinationWritePolicy, WixDataDestinationWritePolicyWithLiterals, WixDataEnvironment, WixDataEnvironmentWithLiterals, WixDataSource, WixMediaDestination, WixMediaDestinationWritePolicy, WixMediaDestinationWritePolicyWithLiterals, WixMediaSource, WritePolicy, WritePolicyWithLiterals } from './index.typings.js';
|
|
4
|
+
|
|
5
|
+
declare function createScheduledDataWorkflow$1(httpClient: HttpClient): CreateScheduledDataWorkflowSignature;
|
|
6
|
+
interface CreateScheduledDataWorkflowSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a scheduled data workflow with a cron schedule.
|
|
9
|
+
*
|
|
10
|
+
* The scheduled data workflow automatically runs according to the specified cron expression.
|
|
11
|
+
* 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.
|
|
12
|
+
* @param - Scheduled data movement workflow to create.
|
|
13
|
+
* @returns Created scheduled data movement workflow.
|
|
14
|
+
*/
|
|
15
|
+
(scheduledDataWorkflow: NonNullablePaths<ScheduledDataWorkflow, `_id` | `workflow` | `workflow.steps`, 3>, options?: CreateScheduledDataWorkflowOptions): Promise<NonNullablePaths<ScheduledDataWorkflow, `_id` | `name` | `enabled` | `cronExpression` | `workflow.steps` | `workflow.steps.${number}.sourceSiteId` | `workflow.steps.${number}.destinationSiteId` | `workflow.steps.${number}.source.wixDataCollection.collectionId` | `workflow.steps.${number}.source.file.format` | `workflow.steps.${number}.source.file.fileId` | `workflow.steps.${number}.source.file.url` | `workflow.steps.${number}.destination.wixDataCollection.collectionId` | `workflow.steps.${number}.destination.wixDataCollection.writePolicy` | `workflow.steps.${number}.destination.file.format` | `workflow.steps.${number}.destination.file.url` | `lastWorkflowId`, 7>>;
|
|
16
|
+
}
|
|
17
|
+
declare function rescheduleScheduledDataWorkflow$1(httpClient: HttpClient): RescheduleScheduledDataWorkflowSignature;
|
|
18
|
+
interface RescheduleScheduledDataWorkflowSignature {
|
|
19
|
+
/**
|
|
20
|
+
* Reinitializes a scheduled data workflow based on the current cron expression.
|
|
21
|
+
*
|
|
22
|
+
* This is needed in case an [updated](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-sync-jobs/update-data-sync-job) scheduled data workflow gets out of sync.
|
|
23
|
+
* For example, if you update the cron expression, it may not initially run according to the new expression.
|
|
24
|
+
* This reschedules it to run according to the new expression.
|
|
25
|
+
*
|
|
26
|
+
* Only applies to `enabled` scheduled data workflows.
|
|
27
|
+
* @param - ID of the scheduled data movement workflow to reschedule.
|
|
28
|
+
*/
|
|
29
|
+
(scheduledDataWorkflowId: string, options?: RescheduleScheduledDataWorkflowOptions): Promise<RescheduleScheduledDataWorkflowResponse>;
|
|
30
|
+
}
|
|
31
|
+
declare function triggerScheduledDataWorkflowNow$1(httpClient: HttpClient): TriggerScheduledDataWorkflowNowSignature;
|
|
32
|
+
interface TriggerScheduledDataWorkflowNowSignature {
|
|
33
|
+
/**
|
|
34
|
+
* Enqueues an immediate execution for a scheduled data workflow.
|
|
35
|
+
*
|
|
36
|
+
* This custom action doesn't change the cron schedule.
|
|
37
|
+
* It triggers the same data workflow execution path used by scheduled
|
|
38
|
+
* TimeCapsule runs.
|
|
39
|
+
* @param - ID of the scheduled data movement workflow to run immediately.
|
|
40
|
+
*/
|
|
41
|
+
(scheduledDataWorkflowId: string): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
declare function updateScheduledDataWorkflow$1(httpClient: HttpClient): UpdateScheduledDataWorkflowSignature;
|
|
44
|
+
interface UpdateScheduledDataWorkflowSignature {
|
|
45
|
+
/**
|
|
46
|
+
* Updates an existing scheduled data workflow.
|
|
47
|
+
* @param - Scheduled data movement workflow information to update.
|
|
48
|
+
* @returns Updated scheduled data movement workflow.
|
|
49
|
+
*/
|
|
50
|
+
(scheduledDataWorkflow: NonNullablePaths<ScheduledDataWorkflow, `workflow` | `workflow.steps`, 3>, options?: UpdateScheduledDataWorkflowOptions): Promise<NonNullablePaths<ScheduledDataWorkflow, `_id` | `name` | `enabled` | `cronExpression` | `workflow.steps` | `workflow.steps.${number}.sourceSiteId` | `workflow.steps.${number}.destinationSiteId` | `workflow.steps.${number}.source.wixDataCollection.collectionId` | `workflow.steps.${number}.source.file.format` | `workflow.steps.${number}.source.file.fileId` | `workflow.steps.${number}.source.file.url` | `workflow.steps.${number}.destination.wixDataCollection.collectionId` | `workflow.steps.${number}.destination.wixDataCollection.writePolicy` | `workflow.steps.${number}.destination.file.format` | `workflow.steps.${number}.destination.file.url` | `lastWorkflowId`, 7>>;
|
|
51
|
+
}
|
|
52
|
+
declare function deleteScheduledDataWorkflow$1(httpClient: HttpClient): DeleteScheduledDataWorkflowSignature;
|
|
53
|
+
interface DeleteScheduledDataWorkflowSignature {
|
|
54
|
+
/**
|
|
55
|
+
* Deletes a scheduled data workflow.
|
|
56
|
+
*
|
|
57
|
+
* This permanently removes the schedule and prevents future executions. Any currently running data workflows triggered by the schedule continue to completion.
|
|
58
|
+
* @param - ID of the scheduled data movement workflow to delete.
|
|
59
|
+
*/
|
|
60
|
+
(scheduledDataWorkflowId: string): Promise<void>;
|
|
61
|
+
}
|
|
62
|
+
declare function getScheduledDataWorkflow$1(httpClient: HttpClient): GetScheduledDataWorkflowSignature;
|
|
63
|
+
interface GetScheduledDataWorkflowSignature {
|
|
64
|
+
/**
|
|
65
|
+
* Retrieves a scheduled data workflow by ID.
|
|
66
|
+
* @param - ID of the scheduled data movement workflow to retrieve.
|
|
67
|
+
* @returns Retrieved scheduled data movement workflow.
|
|
68
|
+
*/
|
|
69
|
+
(scheduledDataWorkflowId: string, options?: GetScheduledDataWorkflowOptions): Promise<NonNullablePaths<ScheduledDataWorkflow, `_id` | `name` | `enabled` | `cronExpression` | `workflow.steps` | `workflow.steps.${number}.sourceSiteId` | `workflow.steps.${number}.destinationSiteId` | `workflow.steps.${number}.source.wixDataCollection.collectionId` | `workflow.steps.${number}.source.file.format` | `workflow.steps.${number}.source.file.fileId` | `workflow.steps.${number}.source.file.url` | `workflow.steps.${number}.destination.wixDataCollection.collectionId` | `workflow.steps.${number}.destination.wixDataCollection.writePolicy` | `workflow.steps.${number}.destination.file.format` | `workflow.steps.${number}.destination.file.url` | `lastWorkflowId`, 7>>;
|
|
70
|
+
}
|
|
71
|
+
declare function listScheduledDataWorkflows$1(httpClient: HttpClient): ListScheduledDataWorkflowsSignature;
|
|
72
|
+
interface ListScheduledDataWorkflowsSignature {
|
|
73
|
+
/**
|
|
74
|
+
* Retrieves all scheduled data workflows for the current site.
|
|
75
|
+
*
|
|
76
|
+
* 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.
|
|
77
|
+
*/
|
|
78
|
+
(options?: ListScheduledDataWorkflowsOptions): Promise<NonNullablePaths<ListScheduledDataWorkflowsResponse, `scheduledDataWorkflows` | `scheduledDataWorkflows.${number}._id` | `scheduledDataWorkflows.${number}.name` | `scheduledDataWorkflows.${number}.enabled` | `scheduledDataWorkflows.${number}.cronExpression` | `scheduledDataWorkflows.${number}.lastWorkflowId`, 4>>;
|
|
79
|
+
}
|
|
80
|
+
declare const onJobsCreated$1: EventDefinition<JobsCreatedEnvelope, "wix.data.sync.v1.jobs_created">;
|
|
81
|
+
declare const onJobsDeleted$1: EventDefinition<JobsDeletedEnvelope, "wix.data.sync.v1.jobs_deleted">;
|
|
82
|
+
declare const onJobsUpdated$1: EventDefinition<JobsUpdatedEnvelope, "wix.data.sync.v1.jobs_updated">;
|
|
83
|
+
|
|
84
|
+
declare const createScheduledDataWorkflow: MaybeContext<BuildRESTFunction<typeof createScheduledDataWorkflow$1> & typeof createScheduledDataWorkflow$1>;
|
|
85
|
+
declare const rescheduleScheduledDataWorkflow: MaybeContext<BuildRESTFunction<typeof rescheduleScheduledDataWorkflow$1> & typeof rescheduleScheduledDataWorkflow$1>;
|
|
86
|
+
declare const triggerScheduledDataWorkflowNow: MaybeContext<BuildRESTFunction<typeof triggerScheduledDataWorkflowNow$1> & typeof triggerScheduledDataWorkflowNow$1>;
|
|
87
|
+
declare const updateScheduledDataWorkflow: MaybeContext<BuildRESTFunction<typeof updateScheduledDataWorkflow$1> & typeof updateScheduledDataWorkflow$1>;
|
|
88
|
+
declare const deleteScheduledDataWorkflow: MaybeContext<BuildRESTFunction<typeof deleteScheduledDataWorkflow$1> & typeof deleteScheduledDataWorkflow$1>;
|
|
89
|
+
declare const getScheduledDataWorkflow: MaybeContext<BuildRESTFunction<typeof getScheduledDataWorkflow$1> & typeof getScheduledDataWorkflow$1>;
|
|
90
|
+
declare const listScheduledDataWorkflows: MaybeContext<BuildRESTFunction<typeof listScheduledDataWorkflows$1> & typeof listScheduledDataWorkflows$1>;
|
|
91
|
+
/** */
|
|
92
|
+
declare const onJobsCreated: BuildEventDefinition<typeof onJobsCreated$1> & typeof onJobsCreated$1;
|
|
93
|
+
/** */
|
|
94
|
+
declare const onJobsDeleted: BuildEventDefinition<typeof onJobsDeleted$1> & typeof onJobsDeleted$1;
|
|
95
|
+
/** */
|
|
96
|
+
declare const onJobsUpdated: BuildEventDefinition<typeof onJobsUpdated$1> & typeof onJobsUpdated$1;
|
|
97
|
+
|
|
98
|
+
export { CreateScheduledDataWorkflowOptions, GetScheduledDataWorkflowOptions, JobsCreatedEnvelope, JobsDeletedEnvelope, JobsUpdatedEnvelope, ListScheduledDataWorkflowsOptions, ListScheduledDataWorkflowsResponse, RescheduleScheduledDataWorkflowOptions, RescheduleScheduledDataWorkflowResponse, ScheduledDataWorkflow, UpdateScheduledDataWorkflowOptions, createScheduledDataWorkflow, deleteScheduledDataWorkflow, getScheduledDataWorkflow, listScheduledDataWorkflows, onJobsCreated, onJobsDeleted, onJobsUpdated, rescheduleScheduledDataWorkflow, triggerScheduledDataWorkflowNow, updateScheduledDataWorkflow };
|