@kontent-ai/migration-toolkit 1.4.0 → 1.5.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 (83) hide show
  1. package/README.md +1 -4
  2. package/dist/es2022/core/helpers/workflow-helper.d.ts +1 -0
  3. package/dist/es2022/core/helpers/workflow-helper.js +6 -4
  4. package/dist/es2022/core/helpers/workflow-helper.js.map +1 -1
  5. package/dist/es2022/core/logs/loggers.js +13 -22
  6. package/dist/es2022/core/logs/loggers.js.map +1 -1
  7. package/dist/es2022/core/models/core.models.d.ts +16 -6
  8. package/dist/es2022/core/models/migration.schema.d.ts +247 -0
  9. package/dist/es2022/core/models/migration.schema.js +12 -2
  10. package/dist/es2022/core/models/migration.schema.js.map +1 -1
  11. package/dist/es2022/core/utils/array.utils.js.map +1 -1
  12. package/dist/es2022/core/utils/binary-data.utils.js +2 -6
  13. package/dist/es2022/core/utils/binary-data.utils.js.map +1 -1
  14. package/dist/es2022/core/utils/confirm.utils.js +10 -14
  15. package/dist/es2022/core/utils/confirm.utils.js.map +1 -1
  16. package/dist/es2022/core/utils/error.utils.js +35 -27
  17. package/dist/es2022/core/utils/error.utils.js.map +1 -1
  18. package/dist/es2022/core/utils/http.utils.js +7 -11
  19. package/dist/es2022/core/utils/http.utils.js.map +1 -1
  20. package/dist/es2022/core/utils/management-client-utils.d.ts +2 -1
  21. package/dist/es2022/core/utils/management-client-utils.js +11 -1
  22. package/dist/es2022/core/utils/management-client-utils.js.map +1 -1
  23. package/dist/es2022/core/utils/run.utils.js +12 -10
  24. package/dist/es2022/core/utils/run.utils.js.map +1 -1
  25. package/dist/es2022/export/context/export-context-fetcher.js +2 -1
  26. package/dist/es2022/export/context/export-context-fetcher.js.map +1 -1
  27. package/dist/es2022/export/export-manager.js +8 -0
  28. package/dist/es2022/export/export-manager.js.map +1 -1
  29. package/dist/es2022/export/export.models.d.ts +2 -1
  30. package/dist/es2022/import/comparers/asset-comparer.d.ts +2 -1
  31. package/dist/es2022/import/comparers/asset-comparer.js +9 -17
  32. package/dist/es2022/import/comparers/asset-comparer.js.map +1 -1
  33. package/dist/es2022/import/context/import-context-fetcher.js +120 -40
  34. package/dist/es2022/import/context/import-context-fetcher.js.map +1 -1
  35. package/dist/es2022/import/import.models.d.ts +2 -1
  36. package/dist/es2022/import/importers/assets-importer.js +12 -2
  37. package/dist/es2022/import/importers/assets-importer.js.map +1 -1
  38. package/dist/es2022/import/importers/language-variant-importer.js +95 -87
  39. package/dist/es2022/import/importers/language-variant-importer.js.map +1 -1
  40. package/dist/es2022/import/importers/workflow-importer.d.ts +41 -4
  41. package/dist/es2022/import/importers/workflow-importer.js +158 -17
  42. package/dist/es2022/import/importers/workflow-importer.js.map +1 -1
  43. package/dist/es2022/metadata.js +2 -2
  44. package/dist/es2022/node/cli/app.js +8 -12
  45. package/dist/es2022/node/cli/app.js.map +1 -1
  46. package/dist/es2022/node/cli/args/args-fetcher.js +9 -10
  47. package/dist/es2022/node/cli/args/args-fetcher.js.map +1 -1
  48. package/dist/es2022/toolkit/migrate.d.ts +1 -3
  49. package/dist/es2022/toolkit/migrate.js.map +1 -1
  50. package/dist/es2022/translation/extraction/items-extraction.processor.js +17 -17
  51. package/dist/es2022/translation/extraction/items-extraction.processor.js.map +1 -1
  52. package/dist/es2022/zip/zip-packager.js +13 -18
  53. package/dist/es2022/zip/zip-packager.js.map +1 -1
  54. package/dist/es2022/zip/zip-transformer.js +3 -1
  55. package/dist/es2022/zip/zip-transformer.js.map +1 -1
  56. package/lib/core/helpers/workflow-helper.ts +8 -8
  57. package/lib/core/logs/loggers.ts +14 -22
  58. package/lib/core/models/core.models.ts +23 -4
  59. package/lib/core/models/migration.schema.ts +13 -2
  60. package/lib/core/utils/array.utils.ts +2 -10
  61. package/lib/core/utils/binary-data.utils.ts +2 -7
  62. package/lib/core/utils/confirm.utils.ts +18 -24
  63. package/lib/core/utils/error.utils.ts +50 -30
  64. package/lib/core/utils/http.utils.ts +14 -15
  65. package/lib/core/utils/management-client-utils.ts +188 -176
  66. package/lib/core/utils/run.utils.ts +27 -18
  67. package/lib/export/context/export-context-fetcher.ts +2 -1
  68. package/lib/export/export-manager.ts +14 -3
  69. package/lib/export/export.models.ts +3 -1
  70. package/lib/import/comparers/asset-comparer.ts +16 -24
  71. package/lib/import/context/import-context-fetcher.ts +179 -85
  72. package/lib/import/import.models.ts +2 -0
  73. package/lib/import/importers/assets-importer.ts +19 -12
  74. package/lib/import/importers/language-variant-importer.ts +119 -111
  75. package/lib/import/importers/workflow-importer.ts +228 -20
  76. package/lib/metadata.ts +2 -2
  77. package/lib/node/cli/app.ts +11 -12
  78. package/lib/node/cli/args/args-fetcher.ts +12 -14
  79. package/lib/toolkit/migrate.ts +1 -3
  80. package/lib/translation/extraction/items-extraction.processor.ts +93 -93
  81. package/lib/zip/zip-packager.ts +26 -28
  82. package/lib/zip/zip-transformer.ts +3 -1
  83. package/package.json +13 -12
package/README.md CHANGED
@@ -263,10 +263,7 @@ migrate functions.
263
263
 
264
264
  ## Limitations
265
265
 
266
- 1. Asset folder assignments are not preserved during migration because folders can be referenced only by id's and not codenames.
267
- 2. Assets element values are not preserved during migration because elements can be referenced only by id's and not codenames.
268
- 3. Language variants in `Scheduled` workflow step do not preserve their workflow status because the API does not provide an information
269
- about scheduled times
266
+ 1. Custom asset elements are not supported (= values of these elements are not exported or imported )
270
267
 
271
268
  ## FAQ
272
269
 
@@ -33,5 +33,6 @@ export declare function workflowHelper(workflows: readonly Readonly<WorkflowMode
33
33
  isPublishedStepByCodename: (stepCodename: string) => boolean;
34
34
  isArchivedStepByCodename: (stepCodename: string) => boolean;
35
35
  isScheduledStepByCodename: (stepCodename: string) => boolean;
36
+ isPublishedStepById: (stepId: string) => boolean;
36
37
  };
37
38
  export {};
@@ -11,9 +11,7 @@ export function workflowHelper(workflows) {
11
11
  return getWorkflow({
12
12
  errorMessage: [
13
13
  `Workflow with codename '${chalk.red(workflowCodename)}' does not exist in target project`,
14
- `Available workflows are (${workflows.length}): ${workflows
15
- .map((m) => chalk.cyan(m.codename))
16
- .join(', ')}`
14
+ `Available workflows are (${workflows.length}): ${workflows.map((m) => chalk.cyan(m.codename)).join(', ')}`
17
15
  ].join(', '),
18
16
  match: (workflow) => workflow.codename.toLowerCase() === workflowCodename.toLowerCase()
19
17
  });
@@ -52,6 +50,9 @@ export function workflowHelper(workflows) {
52
50
  const isScheduledStepByCodename = (stepCodename) => {
53
51
  return workflows.find((workflow) => workflow.scheduledStep.codename === stepCodename) ? true : false;
54
52
  };
53
+ const isPublishedStepById = (stepId) => {
54
+ return workflows.find((workflow) => workflow.publishedStep.id === stepId) ? true : false;
55
+ };
55
56
  return {
56
57
  getWorkflowByCodename,
57
58
  getWorkflowStepByCodename,
@@ -61,7 +62,8 @@ export function workflowHelper(workflows) {
61
62
  getWorkflow,
62
63
  isPublishedStepByCodename,
63
64
  isArchivedStepByCodename,
64
- isScheduledStepByCodename
65
+ isScheduledStepByCodename,
66
+ isPublishedStepById
65
67
  };
66
68
  }
67
69
  //# sourceMappingURL=workflow-helper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-helper.js","sourceRoot":"","sources":["../../../../lib/core/helpers/workflow-helper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAgBvD,MAAM,UAAU,cAAc,CAAC,SAAuD;IAClF,MAAM,eAAe,GAAG,CAAC,QAA2C,EAAE,WAAwB,EAAgB,EAAE;QAC5G,OAAO,YAAY,CACf,CAAC,GAAG,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,YAAY,EAAE,QAAQ,CAAC,aAAa,EAAE,QAAQ,CAAC,aAAa,CAAC,EAC1F,WAAW,CAAC,KAAK,EACjB,WAAW,CAAC,YAAY,CAC3B,CAAC;IACN,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,CAAC,eAAgC,EAAqC,EAAE;QACxF,O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-pattern';
3
4
  const originalWarn = console.warn;
4
5
  export function getDefaultLogger() {
5
- const currentEnv = getCurrentEnvironment();
6
- if (currentEnv === 'node') {
7
- return defaultNodeLogger;
8
- }
9
- if (currentEnv === 'browser') {
10
- return defaultBrowserLogger;
11
- }
12
- throw Error(`Invalid environment`);
6
+ return match(getCurrentEnvironment())
7
+ .with('node', () => defaultNodeLogger)
8
+ .with('browser', () => defaultBrowserLogger)
9
+ .exhaustive();
13
10
  }
14
11
  const defaultNodeLogger = {
15
12
  log: (data) => console.log(getLogDataMessage(data)),
@@ -48,19 +45,13 @@ const defaultBrowserLogger = {
48
45
  }
49
46
  };
50
47
  function getLogDataMessage(data) {
51
- let typeColor = chalk.yellow;
52
- if (data.type === 'info') {
53
- typeColor = chalk.cyan;
54
- }
55
- else if (data.type === 'error' || data.type === 'errorData' || data.type === 'warning' || data.type === 'cancel') {
56
- typeColor = chalk.red;
57
- }
58
- else if (data.type === 'completed') {
59
- typeColor = chalk.green;
60
- }
61
- else if (data.type === 'skip') {
62
- typeColor = chalk.gray;
63
- }
64
- return `${typeColor(data.type)}: ${data.message}`;
48
+ const color = match(data.type)
49
+ .returnType()
50
+ .with('info', () => chalk.cyan)
51
+ .with(P.union('error', 'errorData', 'warning', 'cancel'), () => chalk.red)
52
+ .with('completed', () => chalk.green)
53
+ .with('skip', () => chalk.gray)
54
+ .otherwise(() => chalk.yellow);
55
+ return `${color(data.type)}: ${data.message}`;
65
56
  }
66
57
  //# sourceMappingURL=loggers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loggers.js","sourceRoot":"","sources":["../../../../lib/core/logs/loggers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;AAElC,MAAM,UAAU,gBAAgB;IAC5B,MAAM,UAAU,GAAG,qBAAqB,EAAE,CAAC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I,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;SAC9B,SAAS,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAEnC,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;AAClD,CAAC"}
@@ -1,12 +1,18 @@
1
1
  import { AssetModels, ContentItemModels, ContentTypeElements, LanguageVariantModels, WorkflowModels } from '@kontent-ai/management-sdk';
2
2
  import { MigrationElementType } from './migration.models.js';
3
- import { WorkflowStep } from '../helpers/workflow-helper.js';
3
+ export type LiteralUnion<T extends string> = T | (string & {});
4
4
  export type TargetItemState = 'exists' | 'doesNotExists';
5
5
  export type CliAction = 'export' | 'import' | 'migrate';
6
6
  export type EnvContext = 'browser' | 'node';
7
- export type MapiAction = 'list' | 'view' | 'archive' | 'unpublish' | 'changeWorkflowStep' | 'publish' | 'upload' | 'create' | 'upsert' | 'createNewVersion';
7
+ export type MapiAction = 'list' | 'view' | 'archive' | 'unpublish' | 'changeWorkflowStep' | 'publish' | 'upload' | 'create' | 'upsert' | 'schedulePublish' | 'scheduleUnpublish' | 'cancelScheduledPublish' | 'cancelScheduledUnpublish' | 'createNewVersion';
8
8
  export type MigrationItemType = 'exportItem';
9
- export type MapiType = 'contentType' | 'asset' | 'contentTypeSnippet' | 'contentItem' | 'languageVariant' | 'language' | 'collection' | 'taxonomy' | 'binaryFile' | 'workflow';
9
+ export type MapiType = 'contentType' | 'assetFolder' | 'asset' | 'contentTypeSnippet' | 'contentItem' | 'languageVariant' | 'language' | 'collection' | 'taxonomy' | 'binaryFile' | 'workflow';
10
+ export type LanguageVariantWorkflowStateValues = 'published' | 'archived' | 'draft' | 'scheduled';
11
+ export type LanguageVariantSchedulesStateValues = 'scheduledPublish' | 'scheduledUnpublish' | 'n/a';
12
+ export type LanguageVariantWorkflowState = {
13
+ readonly workflowState: LanguageVariantWorkflowStateValues;
14
+ readonly scheduledState: LanguageVariantSchedulesStateValues;
15
+ } | undefined;
10
16
  export interface ItemInfo {
11
17
  readonly title: string;
12
18
  readonly itemType: MapiType | MigrationItemType;
@@ -42,13 +48,17 @@ export interface ItemStateInTargetEnvironmentByCodename {
42
48
  readonly item: Readonly<ContentItemModels.ContentItem> | undefined;
43
49
  readonly externalIdToUse: string;
44
50
  }
51
+ export interface LanguageVariantStateData {
52
+ readonly languageVariant: Readonly<LanguageVariantModels.ContentItemLanguageVariant> | undefined;
53
+ readonly workflow: Readonly<WorkflowModels.Workflow> | undefined;
54
+ readonly workflowState: LanguageVariantWorkflowState;
55
+ }
45
56
  export interface LanguageVariantStateInTargetEnvironmentByCodename {
46
57
  readonly state: TargetItemState;
47
58
  readonly itemCodename: string;
48
59
  readonly languageCodename: string;
49
- readonly languageVariant: Readonly<LanguageVariantModels.ContentItemLanguageVariant> | undefined;
50
- readonly workflow: Readonly<WorkflowModels.Workflow> | undefined;
51
- readonly step: Readonly<WorkflowStep> | undefined;
60
+ readonly publishedLanguageVariant: LanguageVariantStateData | undefined;
61
+ readonly draftLanguageVariant: LanguageVariantStateData | undefined;
52
62
  }
53
63
  export interface AssetStateInTargetEnvironmentByCodename {
54
64
  readonly state: TargetItemState;
@@ -36,6 +36,22 @@ export declare const MigrationReferenceSchema: z.ZodReadonly<z.ZodObject<{
36
36
  }, {
37
37
  codename: string;
38
38
  }>>;
39
+ export declare const ScheduleSchema: z.ZodReadonly<z.ZodObject<{
40
+ publish_time: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
41
+ publish_display_timezone: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
42
+ unpublish_time: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
43
+ unpublish_display_timezone: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
44
+ }, "strict", z.ZodTypeAny, {
45
+ publish_time?: string | undefined;
46
+ publish_display_timezone?: string | undefined;
47
+ unpublish_time?: string | undefined;
48
+ unpublish_display_timezone?: string | undefined;
49
+ }, {
50
+ publish_time?: string | undefined;
51
+ publish_display_timezone?: string | undefined;
52
+ unpublish_time?: string | undefined;
53
+ unpublish_display_timezone?: string | undefined;
54
+ }>>;
39
55
  /**
40
56
  * ZodType is needed to be specified here due to the use of 'lazy' & circular dependency between types
41
57
  * Otherwise TS has no way of statically inferring the type
@@ -362,16 +378,44 @@ export declare const MigrationItemVersionSchema: z.ZodReadonly<z.ZodObject<{
362
378
  codename: string;
363
379
  }>>;
364
380
  elements: z.ZodReadonly<z.ZodType<Elements, z.ZodTypeDef, Elements>>;
381
+ schedule: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
382
+ publish_time: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
383
+ publish_display_timezone: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
384
+ unpublish_time: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
385
+ unpublish_display_timezone: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
386
+ }, "strict", z.ZodTypeAny, {
387
+ publish_time?: string | undefined;
388
+ publish_display_timezone?: string | undefined;
389
+ unpublish_time?: string | undefined;
390
+ unpublish_display_timezone?: string | undefined;
391
+ }, {
392
+ publish_time?: string | undefined;
393
+ publish_display_timezone?: string | undefined;
394
+ unpublish_time?: string | undefined;
395
+ unpublish_display_timezone?: string | undefined;
396
+ }>>>;
365
397
  }, "strict", z.ZodTypeAny, {
366
398
  elements: Readonly<Elements>;
367
399
  workflow_step: Readonly<{
368
400
  codename: string;
369
401
  }>;
402
+ schedule?: Readonly<{
403
+ publish_time?: string | undefined;
404
+ publish_display_timezone?: string | undefined;
405
+ unpublish_time?: string | undefined;
406
+ unpublish_display_timezone?: string | undefined;
407
+ }> | undefined;
370
408
  }, {
371
409
  elements: Readonly<Elements>;
372
410
  workflow_step: Readonly<{
373
411
  codename: string;
374
412
  }>;
413
+ schedule?: Readonly<{
414
+ publish_time?: string | undefined;
415
+ publish_display_timezone?: string | undefined;
416
+ unpublish_time?: string | undefined;
417
+ unpublish_display_timezone?: string | undefined;
418
+ }> | undefined;
375
419
  }>>;
376
420
  export declare const MigrationItemSystemSchema: z.ZodObject<{
377
421
  codename: z.ZodString;
@@ -507,16 +551,44 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
507
551
  codename: string;
508
552
  }>>;
509
553
  elements: z.ZodReadonly<z.ZodType<Elements, z.ZodTypeDef, Elements>>;
554
+ schedule: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
555
+ publish_time: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
556
+ publish_display_timezone: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
557
+ unpublish_time: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
558
+ unpublish_display_timezone: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
559
+ }, "strict", z.ZodTypeAny, {
560
+ publish_time?: string | undefined;
561
+ publish_display_timezone?: string | undefined;
562
+ unpublish_time?: string | undefined;
563
+ unpublish_display_timezone?: string | undefined;
564
+ }, {
565
+ publish_time?: string | undefined;
566
+ publish_display_timezone?: string | undefined;
567
+ unpublish_time?: string | undefined;
568
+ unpublish_display_timezone?: string | undefined;
569
+ }>>>;
510
570
  }, "strict", z.ZodTypeAny, {
511
571
  elements: Readonly<Elements>;
512
572
  workflow_step: Readonly<{
513
573
  codename: string;
514
574
  }>;
575
+ schedule?: Readonly<{
576
+ publish_time?: string | undefined;
577
+ publish_display_timezone?: string | undefined;
578
+ unpublish_time?: string | undefined;
579
+ unpublish_display_timezone?: string | undefined;
580
+ }> | undefined;
515
581
  }, {
516
582
  elements: Readonly<Elements>;
517
583
  workflow_step: Readonly<{
518
584
  codename: string;
519
585
  }>;
586
+ schedule?: Readonly<{
587
+ publish_time?: string | undefined;
588
+ publish_display_timezone?: string | undefined;
589
+ unpublish_time?: string | undefined;
590
+ unpublish_display_timezone?: string | undefined;
591
+ }> | undefined;
520
592
  }>>, "many">>;
521
593
  }, "strict", z.ZodTypeAny, {
522
594
  system: {
@@ -540,6 +612,12 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
540
612
  workflow_step: Readonly<{
541
613
  codename: string;
542
614
  }>;
615
+ schedule?: Readonly<{
616
+ publish_time?: string | undefined;
617
+ publish_display_timezone?: string | undefined;
618
+ unpublish_time?: string | undefined;
619
+ unpublish_display_timezone?: string | undefined;
620
+ }> | undefined;
543
621
  }>[];
544
622
  }, {
545
623
  system: {
@@ -563,6 +641,12 @@ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
563
641
  workflow_step: Readonly<{
564
642
  codename: string;
565
643
  }>;
644
+ schedule?: Readonly<{
645
+ publish_time?: string | undefined;
646
+ publish_display_timezone?: string | undefined;
647
+ unpublish_time?: string | undefined;
648
+ unpublish_display_timezone?: string | undefined;
649
+ }> | undefined;
566
650
  }>[];
567
651
  }>>;
568
652
  export declare const MigrationAssetDescriptionSchema: z.ZodReadonly<z.ZodObject<{
@@ -616,6 +700,13 @@ export declare const MigrationAssetSchema: z.ZodReadonly<z.ZodObject<z.objectUti
616
700
  }>;
617
701
  description?: string | undefined;
618
702
  }>>, "many">>>;
703
+ folder: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
704
+ codename: z.ZodReadonly<z.ZodString>;
705
+ }, "strict", z.ZodTypeAny, {
706
+ codename: string;
707
+ }, {
708
+ codename: string;
709
+ }>>>;
619
710
  }, {
620
711
  binaryData: z.ZodUnion<[z.ZodType<Buffer, z.ZodTypeDef, Buffer>, z.ZodType<import("buffer").Blob, z.ZodTypeDef, import("buffer").Blob>]>;
621
712
  }>, "strict", z.ZodTypeAny, {
@@ -632,6 +723,9 @@ export declare const MigrationAssetSchema: z.ZodReadonly<z.ZodObject<z.objectUti
632
723
  }>;
633
724
  description?: string | undefined;
634
725
  }>[] | undefined;
726
+ folder?: Readonly<{
727
+ codename: string;
728
+ }> | undefined;
635
729
  }, {
636
730
  codename: string;
637
731
  filename: string;
@@ -646,6 +740,9 @@ export declare const MigrationAssetSchema: z.ZodReadonly<z.ZodObject<z.objectUti
646
740
  }>;
647
741
  description?: string | undefined;
648
742
  }>[] | undefined;
743
+ folder?: Readonly<{
744
+ codename: string;
745
+ }> | undefined;
649
746
  }>>;
650
747
  export declare const ZipMigrationAssetSchema: z.ZodReadonly<z.ZodObject<z.objectUtil.extendShape<{
651
748
  codename: z.ZodString;
@@ -678,6 +775,13 @@ export declare const ZipMigrationAssetSchema: z.ZodReadonly<z.ZodObject<z.object
678
775
  }>;
679
776
  description?: string | undefined;
680
777
  }>>, "many">>>;
778
+ folder: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
779
+ codename: z.ZodReadonly<z.ZodString>;
780
+ }, "strict", z.ZodTypeAny, {
781
+ codename: string;
782
+ }, {
783
+ codename: string;
784
+ }>>>;
681
785
  }, {
682
786
  _zipFilename: z.ZodString;
683
787
  }>, "strict", z.ZodTypeAny, {
@@ -694,6 +798,9 @@ export declare const ZipMigrationAssetSchema: z.ZodReadonly<z.ZodObject<z.object
694
798
  }>;
695
799
  description?: string | undefined;
696
800
  }>[] | undefined;
801
+ folder?: Readonly<{
802
+ codename: string;
803
+ }> | undefined;
697
804
  }, {
698
805
  codename: string;
699
806
  filename: string;
@@ -708,6 +815,9 @@ export declare const ZipMigrationAssetSchema: z.ZodReadonly<z.ZodObject<z.object
708
815
  }>;
709
816
  description?: string | undefined;
710
817
  }>[] | undefined;
818
+ folder?: Readonly<{
819
+ codename: string;
820
+ }> | undefined;
711
821
  }>>;
712
822
  export declare const MigrationAssetsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<z.objectUtil.extendShape<{
713
823
  codename: z.ZodString;
@@ -740,6 +850,13 @@ export declare const MigrationAssetsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadon
740
850
  }>;
741
851
  description?: string | undefined;
742
852
  }>>, "many">>>;
853
+ folder: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
854
+ codename: z.ZodReadonly<z.ZodString>;
855
+ }, "strict", z.ZodTypeAny, {
856
+ codename: string;
857
+ }, {
858
+ codename: string;
859
+ }>>>;
743
860
  }, {
744
861
  binaryData: z.ZodUnion<[z.ZodType<Buffer, z.ZodTypeDef, Buffer>, z.ZodType<import("buffer").Blob, z.ZodTypeDef, import("buffer").Blob>]>;
745
862
  }>, "strict", z.ZodTypeAny, {
@@ -756,6 +873,9 @@ export declare const MigrationAssetsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadon
756
873
  }>;
757
874
  description?: string | undefined;
758
875
  }>[] | undefined;
876
+ folder?: Readonly<{
877
+ codename: string;
878
+ }> | undefined;
759
879
  }, {
760
880
  codename: string;
761
881
  filename: string;
@@ -770,6 +890,9 @@ export declare const MigrationAssetsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadon
770
890
  }>;
771
891
  description?: string | undefined;
772
892
  }>[] | undefined;
893
+ folder?: Readonly<{
894
+ codename: string;
895
+ }> | undefined;
773
896
  }>>, "many">>;
774
897
  export declare const ZipMigrationAssetsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<z.objectUtil.extendShape<{
775
898
  codename: z.ZodString;
@@ -802,6 +925,13 @@ export declare const ZipMigrationAssetsSchema: z.ZodReadonly<z.ZodArray<z.ZodRea
802
925
  }>;
803
926
  description?: string | undefined;
804
927
  }>>, "many">>>;
928
+ folder: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
929
+ codename: z.ZodReadonly<z.ZodString>;
930
+ }, "strict", z.ZodTypeAny, {
931
+ codename: string;
932
+ }, {
933
+ codename: string;
934
+ }>>>;
805
935
  }, {
806
936
  _zipFilename: z.ZodString;
807
937
  }>, "strict", z.ZodTypeAny, {
@@ -818,6 +948,9 @@ export declare const ZipMigrationAssetsSchema: z.ZodReadonly<z.ZodArray<z.ZodRea
818
948
  }>;
819
949
  description?: string | undefined;
820
950
  }>[] | undefined;
951
+ folder?: Readonly<{
952
+ codename: string;
953
+ }> | undefined;
821
954
  }, {
822
955
  codename: string;
823
956
  filename: string;
@@ -832,6 +965,9 @@ export declare const ZipMigrationAssetsSchema: z.ZodReadonly<z.ZodArray<z.ZodRea
832
965
  }>;
833
966
  description?: string | undefined;
834
967
  }>[] | undefined;
968
+ folder?: Readonly<{
969
+ codename: string;
970
+ }> | undefined;
835
971
  }>>, "many">>;
836
972
  export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
837
973
  system: z.ZodObject<{
@@ -905,16 +1041,44 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
905
1041
  codename: string;
906
1042
  }>>;
907
1043
  elements: z.ZodReadonly<z.ZodType<Elements, z.ZodTypeDef, Elements>>;
1044
+ schedule: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
1045
+ publish_time: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
1046
+ publish_display_timezone: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
1047
+ unpublish_time: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
1048
+ unpublish_display_timezone: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
1049
+ }, "strict", z.ZodTypeAny, {
1050
+ publish_time?: string | undefined;
1051
+ publish_display_timezone?: string | undefined;
1052
+ unpublish_time?: string | undefined;
1053
+ unpublish_display_timezone?: string | undefined;
1054
+ }, {
1055
+ publish_time?: string | undefined;
1056
+ publish_display_timezone?: string | undefined;
1057
+ unpublish_time?: string | undefined;
1058
+ unpublish_display_timezone?: string | undefined;
1059
+ }>>>;
908
1060
  }, "strict", z.ZodTypeAny, {
909
1061
  elements: Readonly<Elements>;
910
1062
  workflow_step: Readonly<{
911
1063
  codename: string;
912
1064
  }>;
1065
+ schedule?: Readonly<{
1066
+ publish_time?: string | undefined;
1067
+ publish_display_timezone?: string | undefined;
1068
+ unpublish_time?: string | undefined;
1069
+ unpublish_display_timezone?: string | undefined;
1070
+ }> | undefined;
913
1071
  }, {
914
1072
  elements: Readonly<Elements>;
915
1073
  workflow_step: Readonly<{
916
1074
  codename: string;
917
1075
  }>;
1076
+ schedule?: Readonly<{
1077
+ publish_time?: string | undefined;
1078
+ publish_display_timezone?: string | undefined;
1079
+ unpublish_time?: string | undefined;
1080
+ unpublish_display_timezone?: string | undefined;
1081
+ }> | undefined;
918
1082
  }>>, "many">>;
919
1083
  }, "strict", z.ZodTypeAny, {
920
1084
  system: {
@@ -938,6 +1102,12 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
938
1102
  workflow_step: Readonly<{
939
1103
  codename: string;
940
1104
  }>;
1105
+ schedule?: Readonly<{
1106
+ publish_time?: string | undefined;
1107
+ publish_display_timezone?: string | undefined;
1108
+ unpublish_time?: string | undefined;
1109
+ unpublish_display_timezone?: string | undefined;
1110
+ }> | undefined;
941
1111
  }>[];
942
1112
  }, {
943
1113
  system: {
@@ -961,6 +1131,12 @@ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonl
961
1131
  workflow_step: Readonly<{
962
1132
  codename: string;
963
1133
  }>;
1134
+ schedule?: Readonly<{
1135
+ publish_time?: string | undefined;
1136
+ publish_display_timezone?: string | undefined;
1137
+ unpublish_time?: string | undefined;
1138
+ unpublish_display_timezone?: string | undefined;
1139
+ }> | undefined;
964
1140
  }>[];
965
1141
  }>>, "many">>;
966
1142
  export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
@@ -1036,16 +1212,44 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1036
1212
  codename: string;
1037
1213
  }>>;
1038
1214
  elements: z.ZodReadonly<z.ZodType<Elements, z.ZodTypeDef, Elements>>;
1215
+ schedule: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
1216
+ publish_time: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
1217
+ publish_display_timezone: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
1218
+ unpublish_time: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
1219
+ unpublish_display_timezone: z.ZodReadonly<z.ZodOptional<z.ZodString>>;
1220
+ }, "strict", z.ZodTypeAny, {
1221
+ publish_time?: string | undefined;
1222
+ publish_display_timezone?: string | undefined;
1223
+ unpublish_time?: string | undefined;
1224
+ unpublish_display_timezone?: string | undefined;
1225
+ }, {
1226
+ publish_time?: string | undefined;
1227
+ publish_display_timezone?: string | undefined;
1228
+ unpublish_time?: string | undefined;
1229
+ unpublish_display_timezone?: string | undefined;
1230
+ }>>>;
1039
1231
  }, "strict", z.ZodTypeAny, {
1040
1232
  elements: Readonly<Elements>;
1041
1233
  workflow_step: Readonly<{
1042
1234
  codename: string;
1043
1235
  }>;
1236
+ schedule?: Readonly<{
1237
+ publish_time?: string | undefined;
1238
+ publish_display_timezone?: string | undefined;
1239
+ unpublish_time?: string | undefined;
1240
+ unpublish_display_timezone?: string | undefined;
1241
+ }> | undefined;
1044
1242
  }, {
1045
1243
  elements: Readonly<Elements>;
1046
1244
  workflow_step: Readonly<{
1047
1245
  codename: string;
1048
1246
  }>;
1247
+ schedule?: Readonly<{
1248
+ publish_time?: string | undefined;
1249
+ publish_display_timezone?: string | undefined;
1250
+ unpublish_time?: string | undefined;
1251
+ unpublish_display_timezone?: string | undefined;
1252
+ }> | undefined;
1049
1253
  }>>, "many">>;
1050
1254
  }, "strict", z.ZodTypeAny, {
1051
1255
  system: {
@@ -1069,6 +1273,12 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1069
1273
  workflow_step: Readonly<{
1070
1274
  codename: string;
1071
1275
  }>;
1276
+ schedule?: Readonly<{
1277
+ publish_time?: string | undefined;
1278
+ publish_display_timezone?: string | undefined;
1279
+ unpublish_time?: string | undefined;
1280
+ unpublish_display_timezone?: string | undefined;
1281
+ }> | undefined;
1072
1282
  }>[];
1073
1283
  }, {
1074
1284
  system: {
@@ -1092,6 +1302,12 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1092
1302
  workflow_step: Readonly<{
1093
1303
  codename: string;
1094
1304
  }>;
1305
+ schedule?: Readonly<{
1306
+ publish_time?: string | undefined;
1307
+ publish_display_timezone?: string | undefined;
1308
+ unpublish_time?: string | undefined;
1309
+ unpublish_display_timezone?: string | undefined;
1310
+ }> | undefined;
1095
1311
  }>[];
1096
1312
  }>>, "many">>;
1097
1313
  assets: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<z.objectUtil.extendShape<{
@@ -1125,6 +1341,13 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1125
1341
  }>;
1126
1342
  description?: string | undefined;
1127
1343
  }>>, "many">>>;
1344
+ folder: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
1345
+ codename: z.ZodReadonly<z.ZodString>;
1346
+ }, "strict", z.ZodTypeAny, {
1347
+ codename: string;
1348
+ }, {
1349
+ codename: string;
1350
+ }>>>;
1128
1351
  }, {
1129
1352
  binaryData: z.ZodUnion<[z.ZodType<Buffer, z.ZodTypeDef, Buffer>, z.ZodType<import("buffer").Blob, z.ZodTypeDef, import("buffer").Blob>]>;
1130
1353
  }>, "strict", z.ZodTypeAny, {
@@ -1141,6 +1364,9 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1141
1364
  }>;
1142
1365
  description?: string | undefined;
1143
1366
  }>[] | undefined;
1367
+ folder?: Readonly<{
1368
+ codename: string;
1369
+ }> | undefined;
1144
1370
  }, {
1145
1371
  codename: string;
1146
1372
  filename: string;
@@ -1155,6 +1381,9 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1155
1381
  }>;
1156
1382
  description?: string | undefined;
1157
1383
  }>[] | undefined;
1384
+ folder?: Readonly<{
1385
+ codename: string;
1386
+ }> | undefined;
1158
1387
  }>>, "many">>;
1159
1388
  }, "strict", z.ZodTypeAny, {
1160
1389
  items: readonly Readonly<{
@@ -1179,6 +1408,12 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1179
1408
  workflow_step: Readonly<{
1180
1409
  codename: string;
1181
1410
  }>;
1411
+ schedule?: Readonly<{
1412
+ publish_time?: string | undefined;
1413
+ publish_display_timezone?: string | undefined;
1414
+ unpublish_time?: string | undefined;
1415
+ unpublish_display_timezone?: string | undefined;
1416
+ }> | undefined;
1182
1417
  }>[];
1183
1418
  }>[];
1184
1419
  assets: readonly Readonly<{
@@ -1195,6 +1430,9 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1195
1430
  }>;
1196
1431
  description?: string | undefined;
1197
1432
  }>[] | undefined;
1433
+ folder?: Readonly<{
1434
+ codename: string;
1435
+ }> | undefined;
1198
1436
  }>[];
1199
1437
  }, {
1200
1438
  items: readonly Readonly<{
@@ -1219,6 +1457,12 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1219
1457
  workflow_step: Readonly<{
1220
1458
  codename: string;
1221
1459
  }>;
1460
+ schedule?: Readonly<{
1461
+ publish_time?: string | undefined;
1462
+ publish_display_timezone?: string | undefined;
1463
+ unpublish_time?: string | undefined;
1464
+ unpublish_display_timezone?: string | undefined;
1465
+ }> | undefined;
1222
1466
  }>[];
1223
1467
  }>[];
1224
1468
  assets: readonly Readonly<{
@@ -1235,6 +1479,9 @@ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
1235
1479
  }>;
1236
1480
  description?: string | undefined;
1237
1481
  }>[] | undefined;
1482
+ folder?: Readonly<{
1483
+ codename: string;
1484
+ }> | undefined;
1238
1485
  }>[];
1239
1486
  }>>;
1240
1487
  export {};