@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.
Files changed (52) hide show
  1. package/build/cjs/index.d.ts +98 -0
  2. package/build/cjs/index.js +723 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1035 -0
  5. package/build/cjs/index.typings.js +594 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +839 -0
  8. package/build/cjs/meta.js +531 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/schemas.d.ts +595 -0
  11. package/build/cjs/schemas.js +1090 -0
  12. package/build/cjs/schemas.js.map +1 -0
  13. package/build/es/index.d.mts +98 -0
  14. package/build/es/index.mjs +681 -0
  15. package/build/es/index.mjs.map +1 -0
  16. package/build/es/index.typings.d.mts +1035 -0
  17. package/build/es/index.typings.mjs +555 -0
  18. package/build/es/index.typings.mjs.map +1 -0
  19. package/build/es/meta.d.mts +839 -0
  20. package/build/es/meta.mjs +489 -0
  21. package/build/es/meta.mjs.map +1 -0
  22. package/build/es/package.json +3 -0
  23. package/build/es/schemas.d.mts +595 -0
  24. package/build/es/schemas.mjs +1040 -0
  25. package/build/es/schemas.mjs.map +1 -0
  26. package/build/internal/cjs/index.d.ts +98 -0
  27. package/build/internal/cjs/index.js +723 -0
  28. package/build/internal/cjs/index.js.map +1 -0
  29. package/build/internal/cjs/index.typings.d.ts +1046 -0
  30. package/build/internal/cjs/index.typings.js +594 -0
  31. package/build/internal/cjs/index.typings.js.map +1 -0
  32. package/build/internal/cjs/meta.d.ts +839 -0
  33. package/build/internal/cjs/meta.js +531 -0
  34. package/build/internal/cjs/meta.js.map +1 -0
  35. package/build/internal/cjs/schemas.d.ts +595 -0
  36. package/build/internal/cjs/schemas.js +1090 -0
  37. package/build/internal/cjs/schemas.js.map +1 -0
  38. package/build/internal/es/index.d.mts +98 -0
  39. package/build/internal/es/index.mjs +681 -0
  40. package/build/internal/es/index.mjs.map +1 -0
  41. package/build/internal/es/index.typings.d.mts +1046 -0
  42. package/build/internal/es/index.typings.mjs +555 -0
  43. package/build/internal/es/index.typings.mjs.map +1 -0
  44. package/build/internal/es/meta.d.mts +839 -0
  45. package/build/internal/es/meta.mjs +489 -0
  46. package/build/internal/es/meta.mjs.map +1 -0
  47. package/build/internal/es/schemas.d.mts +595 -0
  48. package/build/internal/es/schemas.mjs +1040 -0
  49. package/build/internal/es/schemas.mjs.map +1 -0
  50. package/meta/package.json +3 -0
  51. package/package.json +61 -0
  52. package/schemas/package.json +3 -0
@@ -0,0 +1,1035 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
3
+ /**
4
+ * A scheduled data workflow that automatically runs [data workflows](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-workflows/introduction) on a schedule.
5
+ *
6
+ * Scheduled data workflows use cron expressions to define when to move data between sources and destinations. Each scheduled execution creates a new [data workflow](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-workflows/introduction) that can be tracked separately.
7
+ */
8
+ interface ScheduledDataWorkflow {
9
+ /**
10
+ * Scheduled data workflow ID.
11
+ * @format GUID
12
+ * @readonly
13
+ */
14
+ _id?: string;
15
+ /**
16
+ * Revision number that increments by 1 each time the scheduled data workflow updates.
17
+ * To prevent conflicting changes, pass the current revision when updating.
18
+ *
19
+ * Ignored when creating a scheduled data workflow.
20
+ * @readonly
21
+ */
22
+ revision?: string | null;
23
+ /**
24
+ * Scheduled data workflow name.
25
+ * @maxLength 1024
26
+ */
27
+ name?: string;
28
+ /**
29
+ * Whether the scheduled data workflow is enabled for execution.
30
+ *
31
+ * When `true`, it runs according to the schedule defined by `cronExpression`. When `false`, it doesn't run.
32
+ */
33
+ enabled?: boolean;
34
+ /**
35
+ * [Cron expression](https://en.wikipedia.org/wiki/Cron#Cron_expression) defining when the scheduled data workflow should run.
36
+ *
37
+ * Uses standard 5-field cron format (minute, hour, day of month, month, day of week) in [UTC](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). Supports using `H` for minute randomization. For example, `0 2 * * *` runs daily at 2\:00 AM UTC, or `H 2 * * *` runs daily at 2\:XX AM UTC where XX is a random minute.
38
+ * @maxLength 200
39
+ */
40
+ cronExpression?: string;
41
+ /**
42
+ * Date and time when the scheduled data movement workflow was last run.
43
+ * @readonly
44
+ */
45
+ lastExecutionDate?: Date | null;
46
+ /**
47
+ * Date and time when the scheduled data movement workflow is scheduled to run next.
48
+ *
49
+ * Calculated based on the cron expression and current time. Returned only when the request includes `nextScheduleExecution` in the `fields` parameter.
50
+ * @readonly
51
+ */
52
+ nextExecutionDate?: Date | null;
53
+ /** Ordered workflow specification describing what should run when the schedule fires. */
54
+ workflow?: ScheduledDataWorkflowSpec;
55
+ /**
56
+ * ID of the data movement workflow created by the most recent execution.
57
+ * @format GUID
58
+ * @readonly
59
+ */
60
+ lastWorkflowId?: string;
61
+ }
62
+ /** Ordered workflow definition for scheduled execution. */
63
+ interface ScheduledDataWorkflowSpec {
64
+ /**
65
+ * Ordered workflow steps.
66
+ * @minSize 1
67
+ * @maxSize 100
68
+ */
69
+ steps?: JobSpec[];
70
+ }
71
+ /** Immutable specification for a single data movement step. */
72
+ interface JobSpec extends JobSpecSiteOverrideOneOf {
73
+ /**
74
+ * When moving data from the Wix data collection of a site other than the current site, the ID of the site to read from.
75
+ *
76
+ * By default, the `source` site is the current site. However, you can move data from any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).
77
+ *
78
+ * > **Note**: You can specify the ID of a `source` site or a `destination` site other than the current site, but not both.
79
+ * @format GUID
80
+ */
81
+ sourceSiteId?: string;
82
+ /**
83
+ * When moving data to the Wix data collection of a site other than the current site, the ID of the site to write to.
84
+ *
85
+ * By default, the `destination` site is the current site. However, you can move data to any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).
86
+ *
87
+ * > **Note**: You can specify the ID of a `destination` site or a `source` site other than the current site, but not both.
88
+ * @format GUID
89
+ */
90
+ destinationSiteId?: string;
91
+ /** Source to read data from. */
92
+ source?: Source;
93
+ /** Destination to write data to. */
94
+ destination?: Destination;
95
+ }
96
+ /** @oneof */
97
+ interface JobSpecSiteOverrideOneOf {
98
+ /**
99
+ * When moving data from the Wix data collection of a site other than the current site, the ID of the site to read from.
100
+ *
101
+ * By default, the `source` site is the current site. However, you can move data from any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).
102
+ *
103
+ * > **Note**: You can specify the ID of a `source` site or a `destination` site other than the current site, but not both.
104
+ * @format GUID
105
+ */
106
+ sourceSiteId?: string;
107
+ /**
108
+ * When moving data to the Wix data collection of a site other than the current site, the ID of the site to write to.
109
+ *
110
+ * By default, the `destination` site is the current site. However, you can move data to any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).
111
+ *
112
+ * > **Note**: You can specify the ID of a `destination` site or a `source` site other than the current site, but not both.
113
+ * @format GUID
114
+ */
115
+ destinationSiteId?: string;
116
+ }
117
+ interface Source extends SourceSourceOneOf {
118
+ /**
119
+ * Wix data collection.
120
+ *
121
+ * You can move items from native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).
122
+ */
123
+ wixDataCollection?: WixDataSource;
124
+ /**
125
+ * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.
126
+ *
127
+ * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).
128
+ */
129
+ localization?: LocalizationSource;
130
+ /**
131
+ * Source file.
132
+ *
133
+ * You can import data from files in CSV or JSONL formats. Uploading a file with an invalid format causes the movement job to fail.
134
+ *
135
+ * To upload a file, call Create File Upload Url ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/create-file-upload-url) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-movement-jobs/create-file-upload-url)) and use the `uploadUrl` from the response. For example:
136
+ *
137
+ * `curl --request PUT --upload-file "${path_to_file}" "${uploadUrl}"`
138
+ */
139
+ file?: FileSource;
140
+ }
141
+ /** @oneof */
142
+ interface SourceSourceOneOf {
143
+ /**
144
+ * Wix data collection.
145
+ *
146
+ * You can move items from native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).
147
+ */
148
+ wixDataCollection?: WixDataSource;
149
+ /**
150
+ * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.
151
+ *
152
+ * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).
153
+ */
154
+ localization?: LocalizationSource;
155
+ /**
156
+ * Source file.
157
+ *
158
+ * You can import data from files in CSV or JSONL formats. Uploading a file with an invalid format causes the movement job to fail.
159
+ *
160
+ * To upload a file, call Create File Upload Url ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/create-file-upload-url) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-movement-jobs/create-file-upload-url)) and use the `uploadUrl` from the response. For example:
161
+ *
162
+ * `curl --request PUT --upload-file "${path_to_file}" "${uploadUrl}"`
163
+ */
164
+ file?: FileSource;
165
+ }
166
+ declare enum WixDataEnvironment {
167
+ /** Collection's [live environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#sandbox-collections). */
168
+ LIVE = "LIVE",
169
+ /** Collection's [sandbox environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#live-collections). */
170
+ SANDBOX = "SANDBOX"
171
+ }
172
+ /** @enumType */
173
+ type WixDataEnvironmentWithLiterals = WixDataEnvironment | 'LIVE' | 'SANDBOX';
174
+ declare enum FileFormat {
175
+ /** Unknown format. */
176
+ UNKNOWN = "UNKNOWN",
177
+ /** CSV format. */
178
+ CSV = "CSV",
179
+ /** JSONL format. */
180
+ JSONL = "JSONL"
181
+ }
182
+ /** @enumType */
183
+ type FileFormatWithLiterals = FileFormat | 'UNKNOWN' | 'CSV' | 'JSONL';
184
+ declare enum MediaType {
185
+ /** All media types. */
186
+ ALL = "ALL",
187
+ /** Images. */
188
+ IMAGE = "IMAGE",
189
+ /** Videos. */
190
+ VIDEO = "VIDEO",
191
+ /** Audio files. */
192
+ AUDIO = "AUDIO",
193
+ /** Documents. */
194
+ DOCUMENT = "DOCUMENT"
195
+ }
196
+ /** @enumType */
197
+ type MediaTypeWithLiterals = MediaType | 'ALL' | 'IMAGE' | 'VIDEO' | 'AUDIO' | 'DOCUMENT';
198
+ /** Wix data collection. */
199
+ interface WixDataSource {
200
+ /**
201
+ * ID of the data collection.
202
+ * @minLength 1
203
+ * @maxLength 256
204
+ */
205
+ collectionId?: string;
206
+ /**
207
+ * Filter to apply to the items. Only items that pass the filter are moved.
208
+ *
209
+ * Learn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
210
+ */
211
+ filter?: Record<string, any> | null;
212
+ /** Item fields to move. If not set, the method moves the full items. */
213
+ fields?: string[];
214
+ }
215
+ interface LocalizationSource {
216
+ /**
217
+ * 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.
218
+ *
219
+ * Use two-letter language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. You can also specify a two-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.
220
+ *
221
+ * Learn more about [available languages in Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-languages-available).
222
+ * @format LANGUAGE_TAG
223
+ * @minSize 2
224
+ * @maxSize 64
225
+ */
226
+ languages?: string[];
227
+ }
228
+ /**
229
+ * File.
230
+ *
231
+ * To create a file upload URL, call the Create File Upload Url method and use the `uploadURL` in the response to upload the source file.
232
+ */
233
+ interface FileSource {
234
+ /** File format. If not specified, automatically determined by Wix. */
235
+ format?: FileFormatWithLiterals;
236
+ /**
237
+ * File ID as returned in the `fileId` property of the Create File Upload URL method's response.
238
+ * @maxLength 512
239
+ */
240
+ fileId?: string;
241
+ /**
242
+ * URL where the source file is uploaded. Automatically generated by Wix.
243
+ * @readonly
244
+ * @maxLength 2048
245
+ */
246
+ url?: string;
247
+ }
248
+ interface TestSource {
249
+ /**
250
+ * Discriminator value for a particular test source.
251
+ * @maxLength 512
252
+ */
253
+ type?: string;
254
+ /** Test source details. */
255
+ details?: Record<string, any> | null;
256
+ }
257
+ /** Job logs. */
258
+ interface DataMovementJobLogs {
259
+ /**
260
+ * ID of the job from which to export logs.
261
+ * @format GUID
262
+ */
263
+ jobId?: string;
264
+ }
265
+ /** File. */
266
+ interface ExternalFileSource {
267
+ /** File format. If not specified, automatically determined by Wix. */
268
+ format?: FileFormatWithLiterals;
269
+ /**
270
+ * URL where the source file is located.
271
+ * @maxLength 2048
272
+ * @format WEB_URL
273
+ */
274
+ url?: string;
275
+ }
276
+ /** Google Sheets source. */
277
+ interface GoogleSheetsSource {
278
+ /**
279
+ * ID of the Google Sheets spreadsheet.
280
+ * @minLength 1
281
+ * @maxLength 256
282
+ */
283
+ spreadsheetId?: string;
284
+ /**
285
+ * Name of the sheet within the spreadsheet.
286
+ * @maxLength 256
287
+ */
288
+ sheetName?: string | null;
289
+ /**
290
+ * Range of cells within the sheet.
291
+ * @maxLength 256
292
+ */
293
+ range?: string | null;
294
+ /**
295
+ * Entity ID of the saved OAuth token.
296
+ * @format GUID
297
+ */
298
+ oauthTokenId?: string;
299
+ }
300
+ /** Wix Media Manager source. */
301
+ interface WixMediaSource {
302
+ /**
303
+ * ID of the source folder in the Media Manager. If not specified, all media items are included.
304
+ * @maxLength 256
305
+ */
306
+ sourceFolderId?: string | null;
307
+ }
308
+ /** Exports collection structure (fields, permissions, etc.) from a site. */
309
+ interface WixDataCollectionDefinitionSource {
310
+ /**
311
+ * IDs of collections whose definitions to read.
312
+ * @minSize 1
313
+ * @maxSize 1000
314
+ * @maxLength 256
315
+ */
316
+ collectionIds?: string[];
317
+ }
318
+ interface Destination extends DestinationDestinationOneOf {
319
+ /**
320
+ * Wix data collection.
321
+ *
322
+ * You can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).
323
+ */
324
+ wixDataCollection?: WixDataDestination;
325
+ /**
326
+ * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.
327
+ *
328
+ * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).
329
+ */
330
+ localization?: LocalizationDestination;
331
+ /** Downloadable file with the moved items. */
332
+ file?: FileDestination;
333
+ }
334
+ /** @oneof */
335
+ interface DestinationDestinationOneOf {
336
+ /**
337
+ * Wix data collection.
338
+ *
339
+ * You can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).
340
+ */
341
+ wixDataCollection?: WixDataDestination;
342
+ /**
343
+ * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.
344
+ *
345
+ * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).
346
+ */
347
+ localization?: LocalizationDestination;
348
+ /** Downloadable file with the moved items. */
349
+ file?: FileDestination;
350
+ }
351
+ /** Wix data collection. */
352
+ interface WixDataDestination {
353
+ /**
354
+ * ID of the destination collection.
355
+ * @maxLength 256
356
+ */
357
+ collectionId?: string;
358
+ /**
359
+ * When items already exist in the destination collection, the data writing policy.
360
+ *
361
+ * Default: `OVERWRITE`.
362
+ */
363
+ writePolicy?: WixDataDestinationWritePolicyWithLiterals;
364
+ }
365
+ declare enum WixDataDestinationWritePolicy {
366
+ /** When an item with the same ID exists in the collection, overwrite it. */
367
+ OVERWRITE = "OVERWRITE",
368
+ /** When an item with the same ID exists in the collection, skip it. */
369
+ SKIP_EXISTING = "SKIP_EXISTING",
370
+ /** Clear the destination collection before moving data. When the job completes, the collection contains only the moved data. */
371
+ TRUNCATE_BEFORE = "TRUNCATE_BEFORE"
372
+ }
373
+ /** @enumType */
374
+ type WixDataDestinationWritePolicyWithLiterals = WixDataDestinationWritePolicy | 'OVERWRITE' | 'SKIP_EXISTING' | 'TRUNCATE_BEFORE';
375
+ interface LocalizationDestination {
376
+ /**
377
+ * Translated CMS content in the specified languages. Content in these languages is imported from the source, with the first specified language treated as the main one.
378
+ *
379
+ * Use two-letter language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. You can also specify a two-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.
380
+ *
381
+ * Learn more about [available languages in Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-languages-available).
382
+ * @minSize 2
383
+ * @maxSize 64
384
+ * @format LANGUAGE_TAG
385
+ */
386
+ languages?: string[];
387
+ }
388
+ /** Destination file. Creates a file and generates a download URL. */
389
+ interface FileDestination {
390
+ /** File format. */
391
+ format?: FileFormatWithLiterals;
392
+ /**
393
+ * File name.
394
+ * @maxLength 512
395
+ */
396
+ fileName?: string | null;
397
+ /**
398
+ * File download URL.
399
+ * @readonly
400
+ * @maxLength 2048
401
+ */
402
+ url?: string;
403
+ }
404
+ /** Schema used to specify item format. */
405
+ interface Schema {
406
+ /**
407
+ * Item fields to move to the destination file.
408
+ * @maxSize 1000
409
+ */
410
+ fields?: Field[];
411
+ }
412
+ interface Field {
413
+ /**
414
+ * Field ID.
415
+ *
416
+ * If the field type is `Array`, specify the item index. If the field type is `Object`, specify the field path. Use dot notation to specify nested fields, for example: `data.address.city`.
417
+ * @maxLength 1024
418
+ */
419
+ key?: string;
420
+ /**
421
+ * Field display name.
422
+ *
423
+ * When moving items to CSV files, use this to set the header of the target column.
424
+ * @maxLength 1024
425
+ */
426
+ displayName?: string;
427
+ /**
428
+ * Field data type. Default: `ANY`.
429
+ *
430
+ * Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data).
431
+ */
432
+ fieldType?: FieldTypeWithLiterals;
433
+ }
434
+ declare enum FieldType {
435
+ /** Any data type. */
436
+ ANY = "ANY",
437
+ /** String. */
438
+ STRING = "STRING",
439
+ /** Number. */
440
+ NUMBER = "NUMBER",
441
+ /** Boolean. */
442
+ BOOLEAN = "BOOLEAN",
443
+ /** Date string in ISO 8601 date format: `YYYY-MM-DD`. */
444
+ DATE = "DATE",
445
+ /** [Date object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) (SDK) or an object in the following format: `"someFieldKey": { "$date": "YYYY-MM-DDTHH:mm:ss.sssZ"}`. */
446
+ DATETIME = "DATETIME",
447
+ /** Binary file. */
448
+ BINARY = "BINARY",
449
+ /** object. */
450
+ OBJECT = "OBJECT",
451
+ /** Array. */
452
+ ARRAY = "ARRAY",
453
+ /** Web URL. */
454
+ URL = "URL",
455
+ WIX_MEDIA_URL = "WIX_MEDIA_URL",
456
+ WIX_MEDIA_IMAGE_URL = "WIX_MEDIA_IMAGE_URL",
457
+ WIX_MEDIA_VIDEO_URL = "WIX_MEDIA_VIDEO_URL",
458
+ WIX_MEDIA_DOCUMENT_URL = "WIX_MEDIA_DOCUMENT_URL",
459
+ IMAGE_URL = "IMAGE_URL",
460
+ VIDEO_URL = "VIDEO_URL"
461
+ }
462
+ /** @enumType */
463
+ type FieldTypeWithLiterals = FieldType | 'ANY' | 'STRING' | 'NUMBER' | 'BOOLEAN' | 'DATE' | 'DATETIME' | 'BINARY' | 'OBJECT' | 'ARRAY' | 'URL' | 'WIX_MEDIA_URL' | 'WIX_MEDIA_IMAGE_URL' | 'WIX_MEDIA_VIDEO_URL' | 'WIX_MEDIA_DOCUMENT_URL' | 'IMAGE_URL' | 'VIDEO_URL';
464
+ interface StoresCatalogProductsDestination {
465
+ }
466
+ /** Wix Media Manager destination. */
467
+ interface WixMediaDestination {
468
+ /**
469
+ * ID of the target folder in the Media Manager. If not specified, media is imported to the root folder.
470
+ * @maxLength 256
471
+ */
472
+ targetFolderId?: string | null;
473
+ }
474
+ declare enum WixMediaDestinationWritePolicy {
475
+ /** Overwrite existing media with the same name. */
476
+ OVERWRITE = "OVERWRITE",
477
+ /** Skip media that already exists. */
478
+ SKIP_EXISTING = "SKIP_EXISTING"
479
+ }
480
+ /** @enumType */
481
+ type WixMediaDestinationWritePolicyWithLiterals = WixMediaDestinationWritePolicy | 'OVERWRITE' | 'SKIP_EXISTING';
482
+ /** Creates empty Wix data collections (no data items are inserted). */
483
+ interface WixDataCollectionDefinitionDestination {
484
+ /** Policy for handling collections that already exist on the target site. */
485
+ writePolicy?: WritePolicyWithLiterals;
486
+ }
487
+ declare enum WritePolicy {
488
+ /** Only create new collections. Skip collections that already exist on the target site. */
489
+ SKIP_EXISTING = "SKIP_EXISTING",
490
+ /** Create new collections and overwrite existing ones. */
491
+ OVERWRITE = "OVERWRITE"
492
+ }
493
+ /** @enumType */
494
+ type WritePolicyWithLiterals = WritePolicy | 'SKIP_EXISTING' | 'OVERWRITE';
495
+ interface StoresCatalogInventoryDestination {
496
+ }
497
+ interface TestDestination {
498
+ /**
499
+ * Discriminator value for a particular test destination.
500
+ * @maxLength 512
501
+ */
502
+ type?: string;
503
+ /** Test destination details. */
504
+ details?: Record<string, any> | null;
505
+ }
506
+ interface Transformation extends TransformationTransformationOneOf {
507
+ }
508
+ /** @oneof */
509
+ interface TransformationTransformationOneOf {
510
+ }
511
+ interface TestTransformation {
512
+ }
513
+ interface CreateScheduledDataWorkflowRequest {
514
+ /** Scheduled data movement workflow to create. */
515
+ scheduledDataWorkflow: ScheduledDataWorkflow;
516
+ /**
517
+ * Additional fields to include in the response.
518
+ * @maxSize 1
519
+ */
520
+ fields?: FieldsWithLiterals[];
521
+ }
522
+ /** Additional fields to include in the response. */
523
+ declare enum Fields {
524
+ /** Date of the next scheduled execution. */
525
+ NEXT_SCHEDULE_EXECUTION = "NEXT_SCHEDULE_EXECUTION"
526
+ }
527
+ /** @enumType */
528
+ type FieldsWithLiterals = Fields | 'NEXT_SCHEDULE_EXECUTION';
529
+ interface CreateScheduledDataWorkflowResponse {
530
+ /** Created scheduled data movement workflow. */
531
+ scheduledDataWorkflow?: ScheduledDataWorkflow;
532
+ }
533
+ interface RescheduleScheduledDataWorkflowRequest {
534
+ /**
535
+ * ID of the scheduled data movement workflow to reschedule.
536
+ * @format GUID
537
+ */
538
+ scheduledDataWorkflowId: string;
539
+ /**
540
+ * Additional fields to include in the response.
541
+ * @maxSize 1
542
+ */
543
+ fields?: FieldsWithLiterals[];
544
+ }
545
+ interface RescheduleScheduledDataWorkflowResponse {
546
+ /**
547
+ * Date and time when the scheduled data movement workflow is next scheduled to run.
548
+ * @readonly
549
+ */
550
+ nextExecutionDate?: Date | null;
551
+ }
552
+ interface TriggerScheduledDataWorkflowNowRequest {
553
+ /**
554
+ * ID of the scheduled data movement workflow to run immediately.
555
+ * @format GUID
556
+ */
557
+ scheduledDataWorkflowId: string;
558
+ }
559
+ interface TriggerScheduledDataWorkflowNowResponse {
560
+ }
561
+ interface UpdateScheduledDataWorkflowRequest {
562
+ /** Scheduled data movement workflow information to update. */
563
+ scheduledDataWorkflow: ScheduledDataWorkflow;
564
+ /**
565
+ * Additional fields to include in the response.
566
+ * @maxSize 1
567
+ */
568
+ fields?: FieldsWithLiterals[];
569
+ }
570
+ interface UpdateScheduledDataWorkflowResponse {
571
+ /** Updated scheduled data movement workflow. */
572
+ scheduledDataWorkflow?: ScheduledDataWorkflow;
573
+ }
574
+ interface DeleteScheduledDataWorkflowRequest {
575
+ /**
576
+ * ID of the scheduled data movement workflow to delete.
577
+ * @format GUID
578
+ */
579
+ scheduledDataWorkflowId: string;
580
+ }
581
+ interface DeleteScheduledDataWorkflowResponse {
582
+ }
583
+ interface GetScheduledDataWorkflowRequest {
584
+ /**
585
+ * ID of the scheduled data movement workflow to retrieve.
586
+ * @format GUID
587
+ */
588
+ scheduledDataWorkflowId: string;
589
+ /**
590
+ * Additional fields to include in the response.
591
+ * @maxSize 1
592
+ */
593
+ fields?: FieldsWithLiterals[];
594
+ }
595
+ interface GetScheduledDataWorkflowResponse {
596
+ /** Retrieved scheduled data movement workflow. */
597
+ scheduledDataWorkflow?: ScheduledDataWorkflow;
598
+ }
599
+ interface ListScheduledDataWorkflowsRequest {
600
+ /**
601
+ * Additional fields to include in the response.
602
+ * @maxSize 1
603
+ */
604
+ fields?: FieldsWithLiterals[];
605
+ /** Reserved for future server-side paging support. Currently ignored. */
606
+ paging?: CursorPaging;
607
+ /** Reserved for future server-side filtering support. Currently ignored. */
608
+ filter?: Record<string, any> | null;
609
+ }
610
+ interface CursorPaging {
611
+ /**
612
+ * Maximum number of items to return in the results.
613
+ * @max 100
614
+ */
615
+ limit?: number | null;
616
+ /**
617
+ * Pointer to the next or previous page in the list of results.
618
+ *
619
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
620
+ * Not relevant for the first request.
621
+ * @maxLength 16000
622
+ */
623
+ cursor?: string | null;
624
+ }
625
+ interface ListScheduledDataWorkflowsResponse {
626
+ /** Retrieved scheduled data movement workflows. */
627
+ scheduledDataWorkflows?: ScheduledDataWorkflow[];
628
+ /** Paging metadata, when available. Currently omitted because server-side paging is not applied. */
629
+ pagingMetadata?: CursorPagingMetadata;
630
+ }
631
+ interface CursorPagingMetadata {
632
+ /** Number of items returned in current page. */
633
+ count?: number | null;
634
+ /** Cursor strings that point to the next page, previous page, or both. */
635
+ cursors?: Cursors;
636
+ /**
637
+ * Whether there are more pages to retrieve following the current page.
638
+ *
639
+ * + `true`: Another page of results can be retrieved.
640
+ * + `false`: This is the last page.
641
+ */
642
+ hasNext?: boolean | null;
643
+ }
644
+ interface Cursors {
645
+ /**
646
+ * Cursor string pointing to the next page in the list of results.
647
+ * @maxLength 16000
648
+ */
649
+ next?: string | null;
650
+ /**
651
+ * Cursor pointing to the previous page in the list of results.
652
+ * @maxLength 16000
653
+ */
654
+ prev?: string | null;
655
+ }
656
+ interface DomainEvent extends DomainEventBodyOneOf {
657
+ createdEvent?: EntityCreatedEvent;
658
+ updatedEvent?: EntityUpdatedEvent;
659
+ deletedEvent?: EntityDeletedEvent;
660
+ actionEvent?: ActionEvent;
661
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
662
+ _id?: string;
663
+ /**
664
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
665
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
666
+ */
667
+ entityFqdn?: string;
668
+ /**
669
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
670
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
671
+ */
672
+ slug?: string;
673
+ /** ID of the entity associated with the event. */
674
+ entityId?: string;
675
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
676
+ eventTime?: Date | null;
677
+ /**
678
+ * Whether the event was triggered as a result of a privacy regulation application
679
+ * (for example, GDPR).
680
+ */
681
+ triggeredByAnonymizeRequest?: boolean | null;
682
+ /** If present, indicates the action that triggered the event. */
683
+ originatedFrom?: string | null;
684
+ /**
685
+ * 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.
686
+ * 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.
687
+ */
688
+ entityEventSequence?: string | null;
689
+ }
690
+ /** @oneof */
691
+ interface DomainEventBodyOneOf {
692
+ createdEvent?: EntityCreatedEvent;
693
+ updatedEvent?: EntityUpdatedEvent;
694
+ deletedEvent?: EntityDeletedEvent;
695
+ actionEvent?: ActionEvent;
696
+ }
697
+ interface EntityCreatedEvent {
698
+ entity?: string;
699
+ }
700
+ interface RestoreInfo {
701
+ deletedDate?: Date | null;
702
+ }
703
+ interface EntityUpdatedEvent {
704
+ /**
705
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
706
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
707
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
708
+ */
709
+ currentEntity?: string;
710
+ }
711
+ interface EntityDeletedEvent {
712
+ /** Entity that was deleted. */
713
+ deletedEntity?: string | null;
714
+ }
715
+ interface ActionEvent {
716
+ body?: string;
717
+ }
718
+ interface MessageEnvelope {
719
+ /**
720
+ * App instance ID.
721
+ * @format GUID
722
+ */
723
+ instanceId?: string | null;
724
+ /**
725
+ * Event type.
726
+ * @maxLength 150
727
+ */
728
+ eventType?: string;
729
+ /** The identification type and identity data. */
730
+ identity?: IdentificationData;
731
+ /** Stringify payload. */
732
+ data?: string;
733
+ /** Details related to the account */
734
+ accountInfo?: AccountInfo;
735
+ }
736
+ interface IdentificationData extends IdentificationDataIdOneOf {
737
+ /**
738
+ * ID of a site visitor that has not logged in to the site.
739
+ * @format GUID
740
+ */
741
+ anonymousVisitorId?: string;
742
+ /**
743
+ * ID of a site visitor that has logged in to the site.
744
+ * @format GUID
745
+ */
746
+ memberId?: string;
747
+ /**
748
+ * ID of a Wix user (site owner, contributor, etc.).
749
+ * @format GUID
750
+ */
751
+ wixUserId?: string;
752
+ /**
753
+ * ID of an app.
754
+ * @format GUID
755
+ */
756
+ appId?: string;
757
+ /** @readonly */
758
+ identityType?: WebhookIdentityTypeWithLiterals;
759
+ }
760
+ /** @oneof */
761
+ interface IdentificationDataIdOneOf {
762
+ /**
763
+ * ID of a site visitor that has not logged in to the site.
764
+ * @format GUID
765
+ */
766
+ anonymousVisitorId?: string;
767
+ /**
768
+ * ID of a site visitor that has logged in to the site.
769
+ * @format GUID
770
+ */
771
+ memberId?: string;
772
+ /**
773
+ * ID of a Wix user (site owner, contributor, etc.).
774
+ * @format GUID
775
+ */
776
+ wixUserId?: string;
777
+ /**
778
+ * ID of an app.
779
+ * @format GUID
780
+ */
781
+ appId?: string;
782
+ }
783
+ declare enum WebhookIdentityType {
784
+ UNKNOWN = "UNKNOWN",
785
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
786
+ MEMBER = "MEMBER",
787
+ WIX_USER = "WIX_USER",
788
+ APP = "APP"
789
+ }
790
+ /** @enumType */
791
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
792
+ interface AccountInfo {
793
+ /**
794
+ * ID of the Wix account associated with the event.
795
+ * @format GUID
796
+ */
797
+ accountId?: string | null;
798
+ /**
799
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
800
+ * @format GUID
801
+ */
802
+ parentAccountId?: string | null;
803
+ /**
804
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
805
+ * @format GUID
806
+ */
807
+ siteId?: string | null;
808
+ }
809
+ interface BaseEventMetadata {
810
+ /**
811
+ * App instance ID.
812
+ * @format GUID
813
+ */
814
+ instanceId?: string | null;
815
+ /**
816
+ * Event type.
817
+ * @maxLength 150
818
+ */
819
+ eventType?: string;
820
+ /** The identification type and identity data. */
821
+ identity?: IdentificationData;
822
+ /** Details related to the account */
823
+ accountInfo?: AccountInfo;
824
+ }
825
+ interface EventMetadata extends BaseEventMetadata {
826
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
827
+ _id?: string;
828
+ /**
829
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
830
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
831
+ */
832
+ entityFqdn?: string;
833
+ /**
834
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
835
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
836
+ */
837
+ slug?: string;
838
+ /** ID of the entity associated with the event. */
839
+ entityId?: string;
840
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
841
+ eventTime?: Date | null;
842
+ /**
843
+ * Whether the event was triggered as a result of a privacy regulation application
844
+ * (for example, GDPR).
845
+ */
846
+ triggeredByAnonymizeRequest?: boolean | null;
847
+ /** If present, indicates the action that triggered the event. */
848
+ originatedFrom?: string | null;
849
+ /**
850
+ * 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.
851
+ * 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.
852
+ */
853
+ entityEventSequence?: string | null;
854
+ accountInfo?: AccountInfoMetadata;
855
+ }
856
+ interface AccountInfoMetadata {
857
+ /** ID of the Wix account associated with the event */
858
+ accountId: string;
859
+ /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */
860
+ siteId?: string;
861
+ /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */
862
+ parentAccountId?: string;
863
+ }
864
+ interface JobsCreatedEnvelope {
865
+ entity: ScheduledDataWorkflow;
866
+ metadata: EventMetadata;
867
+ }
868
+ /** @permissionScope Data Mover Manage Jobs
869
+ * @permissionScopeId SCOPE.DC-DATA.MANAGE_MOVEMENT_JOBS
870
+ * @permissionId WIX_DATA.DATA_SYNC_SCHEDULE
871
+ * @webhook
872
+ * @eventType wix.data.sync.v1.jobs_created
873
+ * @slug created
874
+ * @documentationMaturity preview
875
+ */
876
+ declare function onJobsCreated(handler: (event: JobsCreatedEnvelope) => void | Promise<void>): void;
877
+ interface JobsDeletedEnvelope {
878
+ metadata: EventMetadata;
879
+ }
880
+ /** @permissionScope Data Mover Manage Jobs
881
+ * @permissionScopeId SCOPE.DC-DATA.MANAGE_MOVEMENT_JOBS
882
+ * @permissionId WIX_DATA.DATA_SYNC_SCHEDULE
883
+ * @webhook
884
+ * @eventType wix.data.sync.v1.jobs_deleted
885
+ * @slug deleted
886
+ * @documentationMaturity preview
887
+ */
888
+ declare function onJobsDeleted(handler: (event: JobsDeletedEnvelope) => void | Promise<void>): void;
889
+ interface JobsUpdatedEnvelope {
890
+ entity: ScheduledDataWorkflow;
891
+ metadata: EventMetadata;
892
+ }
893
+ /** @permissionScope Data Mover Manage Jobs
894
+ * @permissionScopeId SCOPE.DC-DATA.MANAGE_MOVEMENT_JOBS
895
+ * @permissionId WIX_DATA.DATA_SYNC_SCHEDULE
896
+ * @webhook
897
+ * @eventType wix.data.sync.v1.jobs_updated
898
+ * @slug updated
899
+ * @documentationMaturity preview
900
+ */
901
+ declare function onJobsUpdated(handler: (event: JobsUpdatedEnvelope) => void | Promise<void>): void;
902
+ /**
903
+ * Creates a scheduled data workflow with a cron schedule.
904
+ *
905
+ * The scheduled data workflow automatically runs according to the specified cron expression.
906
+ * 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.
907
+ * @param scheduledDataWorkflow - Scheduled data movement workflow to create.
908
+ * @public
909
+ * @documentationMaturity preview
910
+ * @requiredField scheduledDataWorkflow
911
+ * @requiredField scheduledDataWorkflow._id
912
+ * @requiredField scheduledDataWorkflow.workflow
913
+ * @requiredField scheduledDataWorkflow.workflow.steps
914
+ * @permissionId data:sync:v1:jobs:create_scheduled_data_workflow
915
+ * @returns Created scheduled data movement workflow.
916
+ * @fqn wix.hub.v1.DataMovementSchedulerService.CreateScheduledDataWorkflow
917
+ */
918
+ declare function createScheduledDataWorkflow(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>>;
919
+ interface CreateScheduledDataWorkflowOptions {
920
+ /**
921
+ * Additional fields to include in the response.
922
+ * @maxSize 1
923
+ */
924
+ fields?: FieldsWithLiterals[];
925
+ }
926
+ /**
927
+ * Reinitializes a scheduled data workflow based on the current cron expression.
928
+ *
929
+ * 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.
930
+ * For example, if you update the cron expression, it may not initially run according to the new expression.
931
+ * This reschedules it to run according to the new expression.
932
+ *
933
+ * Only applies to `enabled` scheduled data workflows.
934
+ * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to reschedule.
935
+ * @public
936
+ * @documentationMaturity preview
937
+ * @requiredField scheduledDataWorkflowId
938
+ * @permissionId data:sync:v1:jobs:reschedule_scheduled_data_workflow
939
+ * @fqn wix.hub.v1.DataMovementSchedulerService.RescheduleScheduledDataWorkflow
940
+ */
941
+ declare function rescheduleScheduledDataWorkflow(scheduledDataWorkflowId: string, options?: RescheduleScheduledDataWorkflowOptions): Promise<RescheduleScheduledDataWorkflowResponse>;
942
+ interface RescheduleScheduledDataWorkflowOptions {
943
+ /**
944
+ * Additional fields to include in the response.
945
+ * @maxSize 1
946
+ */
947
+ fields?: FieldsWithLiterals[];
948
+ }
949
+ /**
950
+ * Enqueues an immediate execution for a scheduled data workflow.
951
+ *
952
+ * This custom action doesn't change the cron schedule.
953
+ * It triggers the same data workflow execution path used by scheduled
954
+ * TimeCapsule runs.
955
+ * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to run immediately.
956
+ * @public
957
+ * @documentationMaturity preview
958
+ * @requiredField scheduledDataWorkflowId
959
+ * @permissionId data:sync:v1:jobs:trigger_scheduled_data_workflow_now
960
+ * @fqn wix.hub.v1.DataMovementSchedulerService.TriggerScheduledDataWorkflowNow
961
+ */
962
+ declare function triggerScheduledDataWorkflowNow(scheduledDataWorkflowId: string): Promise<void>;
963
+ /**
964
+ * Updates an existing scheduled data workflow.
965
+ * @param scheduledDataWorkflow - Scheduled data movement workflow information to update.
966
+ * @public
967
+ * @documentationMaturity preview
968
+ * @requiredField scheduledDataWorkflow
969
+ * @requiredField scheduledDataWorkflow.workflow
970
+ * @requiredField scheduledDataWorkflow.workflow.steps
971
+ * @permissionId data:sync:v1:jobs:update_scheduled_data_workflow
972
+ * @returns Updated scheduled data movement workflow.
973
+ * @fqn wix.hub.v1.DataMovementSchedulerService.UpdateScheduledDataWorkflow
974
+ */
975
+ declare function updateScheduledDataWorkflow(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>>;
976
+ interface UpdateScheduledDataWorkflowOptions {
977
+ /**
978
+ * Additional fields to include in the response.
979
+ * @maxSize 1
980
+ */
981
+ fields?: FieldsWithLiterals[];
982
+ }
983
+ /**
984
+ * Deletes a scheduled data workflow.
985
+ *
986
+ * This permanently removes the schedule and prevents future executions. Any currently running data workflows triggered by the schedule continue to completion.
987
+ * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to delete.
988
+ * @public
989
+ * @documentationMaturity preview
990
+ * @requiredField scheduledDataWorkflowId
991
+ * @permissionId data:sync:v1:jobs:delete_scheduled_data_workflow
992
+ * @fqn wix.hub.v1.DataMovementSchedulerService.DeleteScheduledDataWorkflow
993
+ */
994
+ declare function deleteScheduledDataWorkflow(scheduledDataWorkflowId: string): Promise<void>;
995
+ /**
996
+ * Retrieves a scheduled data workflow by ID.
997
+ * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to retrieve.
998
+ * @public
999
+ * @documentationMaturity preview
1000
+ * @requiredField scheduledDataWorkflowId
1001
+ * @permissionId data:sync:v1:jobs:get_scheduled_data_workflow
1002
+ * @returns Retrieved scheduled data movement workflow.
1003
+ * @fqn wix.hub.v1.DataMovementSchedulerService.GetScheduledDataWorkflow
1004
+ */
1005
+ declare function getScheduledDataWorkflow(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>>;
1006
+ interface GetScheduledDataWorkflowOptions {
1007
+ /**
1008
+ * Additional fields to include in the response.
1009
+ * @maxSize 1
1010
+ */
1011
+ fields?: FieldsWithLiterals[];
1012
+ }
1013
+ /**
1014
+ * Retrieves all scheduled data workflows for the current site.
1015
+ *
1016
+ * 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.
1017
+ * @public
1018
+ * @documentationMaturity preview
1019
+ * @permissionId data:sync:v1:jobs:list_scheduled_data_workflows
1020
+ * @fqn wix.hub.v1.DataMovementSchedulerService.ListScheduledDataWorkflows
1021
+ */
1022
+ declare function listScheduledDataWorkflows(options?: ListScheduledDataWorkflowsOptions): Promise<NonNullablePaths<ListScheduledDataWorkflowsResponse, `scheduledDataWorkflows` | `scheduledDataWorkflows.${number}._id` | `scheduledDataWorkflows.${number}.name` | `scheduledDataWorkflows.${number}.enabled` | `scheduledDataWorkflows.${number}.cronExpression` | `scheduledDataWorkflows.${number}.lastWorkflowId`, 4>>;
1023
+ interface ListScheduledDataWorkflowsOptions {
1024
+ /**
1025
+ * Additional fields to include in the response.
1026
+ * @maxSize 1
1027
+ */
1028
+ fields?: FieldsWithLiterals[];
1029
+ /** Reserved for future server-side paging support. Currently ignored. */
1030
+ paging?: CursorPaging;
1031
+ /** Reserved for future server-side filtering support. Currently ignored. */
1032
+ filter?: Record<string, any> | null;
1033
+ }
1034
+
1035
+ 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 };