@kontent-ai/migration-toolkit 1.0.1 → 1.2.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 (55) hide show
  1. package/README.md +1 -1
  2. package/dist/es2022/core/index.d.ts +1 -0
  3. package/dist/es2022/core/index.js +1 -0
  4. package/dist/es2022/core/index.js.map +1 -1
  5. package/dist/es2022/core/logs/loggers.js +1 -4
  6. package/dist/es2022/core/logs/loggers.js.map +1 -1
  7. package/dist/es2022/core/models/core.models.d.ts +9 -10
  8. package/dist/es2022/core/models/log.models.d.ts +2 -2
  9. package/dist/es2022/core/models/migration.models.d.ts +47 -133
  10. package/dist/es2022/core/models/migration.schema.d.ts +1240 -0
  11. package/dist/es2022/core/models/migration.schema.js +113 -0
  12. package/dist/es2022/core/models/migration.schema.js.map +1 -0
  13. package/dist/es2022/core/utils/confirm.utils.js +3 -3
  14. package/dist/es2022/core/utils/confirm.utils.js.map +1 -1
  15. package/dist/es2022/core/utils/error.utils.js +8 -2
  16. package/dist/es2022/core/utils/error.utils.js.map +1 -1
  17. package/dist/es2022/core/utils/global.utils.d.ts +4 -1
  18. package/dist/es2022/core/utils/global.utils.js +1 -3
  19. package/dist/es2022/core/utils/global.utils.js.map +1 -1
  20. package/dist/es2022/export/context/export-context-fetcher.js +11 -7
  21. package/dist/es2022/export/context/export-context-fetcher.js.map +1 -1
  22. package/dist/es2022/export/export-manager.js +3 -3
  23. package/dist/es2022/export/export-manager.js.map +1 -1
  24. package/dist/es2022/import/import-manager.js.map +1 -1
  25. package/dist/es2022/metadata.js +2 -2
  26. package/dist/es2022/node/cli/actions/export-action.js +2 -2
  27. package/dist/es2022/node/cli/actions/export-action.js.map +1 -1
  28. package/dist/es2022/node/cli/actions/import-action.js +2 -2
  29. package/dist/es2022/node/cli/actions/import-action.js.map +1 -1
  30. package/dist/es2022/toolkit/file.js +3 -3
  31. package/dist/es2022/toolkit/file.js.map +1 -1
  32. package/dist/es2022/translation/transforms/export-transforms.js.map +1 -1
  33. package/dist/es2022/zip/zip-transformer.js +9 -6
  34. package/dist/es2022/zip/zip-transformer.js.map +1 -1
  35. package/dist/es2022/zip/zip.models.d.ts +1 -1
  36. package/lib/core/index.ts +1 -0
  37. package/lib/core/logs/loggers.ts +1 -6
  38. package/lib/core/models/core.models.ts +11 -17
  39. package/lib/core/models/log.models.ts +7 -4
  40. package/lib/core/models/migration.models.ts +78 -158
  41. package/lib/core/models/migration.schema.ts +178 -0
  42. package/lib/core/utils/confirm.utils.ts +4 -4
  43. package/lib/core/utils/error.utils.ts +9 -6
  44. package/lib/core/utils/global.utils.ts +3 -3
  45. package/lib/export/context/export-context-fetcher.ts +23 -55
  46. package/lib/export/export-manager.ts +16 -20
  47. package/lib/import/import-manager.ts +2 -6
  48. package/lib/metadata.ts +2 -2
  49. package/lib/node/cli/actions/export-action.ts +2 -2
  50. package/lib/node/cli/actions/import-action.ts +2 -2
  51. package/lib/toolkit/file.ts +3 -9
  52. package/lib/translation/transforms/export-transforms.ts +1 -4
  53. package/lib/zip/zip-transformer.ts +25 -11
  54. package/lib/zip/zip.models.ts +1 -1
  55. package/package.json +10 -9
@@ -0,0 +1,1240 @@
1
+ import { z } from 'zod';
2
+ interface Elements {
3
+ readonly [key: string]: Element;
4
+ }
5
+ type UrlSlugMode = 'autogenerated' | 'custom';
6
+ type UrlSlugElementValue = {
7
+ readonly value?: string;
8
+ readonly mode: UrlSlugMode;
9
+ };
10
+ type Reference = {
11
+ readonly codename: string;
12
+ };
13
+ type Component = {
14
+ readonly system: {
15
+ readonly id: string;
16
+ readonly type: Reference;
17
+ };
18
+ readonly elements: Elements;
19
+ };
20
+ type RichTextElementValue = {
21
+ readonly value: string;
22
+ readonly components: Readonly<Component[]>;
23
+ };
24
+ type ElementValue = string | undefined | number | Reference[] | RichTextElementValue | UrlSlugElementValue;
25
+ type Element = {
26
+ readonly type: ElementType;
27
+ readonly value?: ElementValue;
28
+ };
29
+ type ElementType = 'text' | 'rich_text' | 'number' | 'multiple_choice' | 'date_time' | 'asset' | 'modular_content' | 'taxonomy' | 'url_slug' | 'custom' | 'subpages';
30
+ export declare const MigrationUrlSlugModeSchema: z.ZodReadonly<z.ZodEnum<["autogenerated", "custom"]>>;
31
+ export declare const MigrationElementTypeSchema: z.ZodReadonly<z.ZodEnum<["text", "rich_text", "number", "multiple_choice", "date_time", "asset", "modular_content", "taxonomy", "url_slug", "custom", "subpages"]>>;
32
+ export declare const MigrationReferenceSchema: z.ZodReadonly<z.ZodObject<{
33
+ codename: z.ZodReadonly<z.ZodString>;
34
+ }, "strict", z.ZodTypeAny, {
35
+ codename: string;
36
+ }, {
37
+ codename: string;
38
+ }>>;
39
+ /**
40
+ * ZodType is needed to be specified here due to the use of 'lazy' & circular dependency between types
41
+ * Otherwise TS has no way of statically inferring the type
42
+ */
43
+ export declare const MigrationElementsSchema: z.ZodReadonly<z.ZodType<Elements>>;
44
+ export declare const MigrationComponentSchema: z.ZodReadonly<z.ZodObject<{
45
+ system: z.ZodObject<{
46
+ id: z.ZodString;
47
+ type: z.ZodReadonly<z.ZodObject<{
48
+ codename: z.ZodReadonly<z.ZodString>;
49
+ }, "strict", z.ZodTypeAny, {
50
+ codename: string;
51
+ }, {
52
+ codename: string;
53
+ }>>;
54
+ }, "strict", z.ZodTypeAny, {
55
+ type: Readonly<{
56
+ codename: string;
57
+ }>;
58
+ id: string;
59
+ }, {
60
+ type: Readonly<{
61
+ codename: string;
62
+ }>;
63
+ id: string;
64
+ }>;
65
+ elements: z.ZodReadonly<z.ZodType<Elements, z.ZodTypeDef, Elements>>;
66
+ }, "strict", z.ZodTypeAny, {
67
+ system: {
68
+ type: Readonly<{
69
+ codename: string;
70
+ }>;
71
+ id: string;
72
+ };
73
+ elements: Readonly<Elements>;
74
+ }, {
75
+ system: {
76
+ type: Readonly<{
77
+ codename: string;
78
+ }>;
79
+ id: string;
80
+ };
81
+ elements: Readonly<Elements>;
82
+ }>>;
83
+ export declare const MigrationUrlSlugElementValueSchema: z.ZodReadonly<z.ZodObject<{
84
+ value: z.ZodOptional<z.ZodString>;
85
+ mode: z.ZodReadonly<z.ZodEnum<["autogenerated", "custom"]>>;
86
+ }, "strict", z.ZodTypeAny, {
87
+ mode: "autogenerated" | "custom";
88
+ value?: string | undefined;
89
+ }, {
90
+ mode: "autogenerated" | "custom";
91
+ value?: string | undefined;
92
+ }>>;
93
+ export declare const MigrationRichTextElementValueSchema: z.ZodReadonly<z.ZodObject<{
94
+ value: z.ZodString;
95
+ components: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
96
+ system: z.ZodObject<{
97
+ id: z.ZodString;
98
+ type: z.ZodReadonly<z.ZodObject<{
99
+ codename: z.ZodReadonly<z.ZodString>;
100
+ }, "strict", z.ZodTypeAny, {
101
+ codename: string;
102
+ }, {
103
+ codename: string;
104
+ }>>;
105
+ }, "strict", z.ZodTypeAny, {
106
+ type: Readonly<{
107
+ codename: string;
108
+ }>;
109
+ id: string;
110
+ }, {
111
+ type: Readonly<{
112
+ codename: string;
113
+ }>;
114
+ id: string;
115
+ }>;
116
+ elements: z.ZodReadonly<z.ZodType<Elements, z.ZodTypeDef, Elements>>;
117
+ }, "strict", z.ZodTypeAny, {
118
+ system: {
119
+ type: Readonly<{
120
+ codename: string;
121
+ }>;
122
+ id: string;
123
+ };
124
+ elements: Readonly<Elements>;
125
+ }, {
126
+ system: {
127
+ type: Readonly<{
128
+ codename: string;
129
+ }>;
130
+ id: string;
131
+ };
132
+ elements: Readonly<Elements>;
133
+ }>>, "many">>;
134
+ }, "strict", z.ZodTypeAny, {
135
+ value: string;
136
+ components: readonly Readonly<{
137
+ system: {
138
+ type: Readonly<{
139
+ codename: string;
140
+ }>;
141
+ id: string;
142
+ };
143
+ elements: Readonly<Elements>;
144
+ }>[];
145
+ }, {
146
+ value: string;
147
+ components: readonly Readonly<{
148
+ system: {
149
+ type: Readonly<{
150
+ codename: string;
151
+ }>;
152
+ id: string;
153
+ };
154
+ elements: Readonly<Elements>;
155
+ }>[];
156
+ }>>;
157
+ export declare const MigrationElementValueSchema: z.ZodUnion<[z.ZodString, z.ZodUndefined, z.ZodNumber, z.ZodArray<z.ZodReadonly<z.ZodObject<{
158
+ codename: z.ZodReadonly<z.ZodString>;
159
+ }, "strict", z.ZodTypeAny, {
160
+ codename: string;
161
+ }, {
162
+ codename: string;
163
+ }>>, "many">, z.ZodReadonly<z.ZodObject<{
164
+ value: z.ZodString;
165
+ components: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
166
+ system: z.ZodObject<{
167
+ id: z.ZodString;
168
+ type: z.ZodReadonly<z.ZodObject<{
169
+ codename: z.ZodReadonly<z.ZodString>;
170
+ }, "strict", z.ZodTypeAny, {
171
+ codename: string;
172
+ }, {
173
+ codename: string;
174
+ }>>;
175
+ }, "strict", z.ZodTypeAny, {
176
+ type: Readonly<{
177
+ codename: string;
178
+ }>;
179
+ id: string;
180
+ }, {
181
+ type: Readonly<{
182
+ codename: string;
183
+ }>;
184
+ id: string;
185
+ }>;
186
+ elements: z.ZodReadonly<z.ZodType<Elements, z.ZodTypeDef, Elements>>;
187
+ }, "strict", z.ZodTypeAny, {
188
+ system: {
189
+ type: Readonly<{
190
+ codename: string;
191
+ }>;
192
+ id: string;
193
+ };
194
+ elements: Readonly<Elements>;
195
+ }, {
196
+ system: {
197
+ type: Readonly<{
198
+ codename: string;
199
+ }>;
200
+ id: string;
201
+ };
202
+ elements: Readonly<Elements>;
203
+ }>>, "many">>;
204
+ }, "strict", z.ZodTypeAny, {
205
+ value: string;
206
+ components: readonly Readonly<{
207
+ system: {
208
+ type: Readonly<{
209
+ codename: string;
210
+ }>;
211
+ id: string;
212
+ };
213
+ elements: Readonly<Elements>;
214
+ }>[];
215
+ }, {
216
+ value: string;
217
+ components: readonly Readonly<{
218
+ system: {
219
+ type: Readonly<{
220
+ codename: string;
221
+ }>;
222
+ id: string;
223
+ };
224
+ elements: Readonly<Elements>;
225
+ }>[];
226
+ }>>, z.ZodReadonly<z.ZodObject<{
227
+ value: z.ZodOptional<z.ZodString>;
228
+ mode: z.ZodReadonly<z.ZodEnum<["autogenerated", "custom"]>>;
229
+ }, "strict", z.ZodTypeAny, {
230
+ mode: "autogenerated" | "custom";
231
+ value?: string | undefined;
232
+ }, {
233
+ mode: "autogenerated" | "custom";
234
+ value?: string | undefined;
235
+ }>>]>;
236
+ export declare const MigrationElementSchema: z.ZodReadonly<z.ZodObject<{
237
+ type: z.ZodReadonly<z.ZodEnum<["text", "rich_text", "number", "multiple_choice", "date_time", "asset", "modular_content", "taxonomy", "url_slug", "custom", "subpages"]>>;
238
+ value: z.ZodUnion<[z.ZodString, z.ZodUndefined, z.ZodNumber, z.ZodArray<z.ZodReadonly<z.ZodObject<{
239
+ codename: z.ZodReadonly<z.ZodString>;
240
+ }, "strict", z.ZodTypeAny, {
241
+ codename: string;
242
+ }, {
243
+ codename: string;
244
+ }>>, "many">, z.ZodReadonly<z.ZodObject<{
245
+ value: z.ZodString;
246
+ components: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
247
+ system: z.ZodObject<{
248
+ id: z.ZodString;
249
+ type: z.ZodReadonly<z.ZodObject<{
250
+ codename: z.ZodReadonly<z.ZodString>;
251
+ }, "strict", z.ZodTypeAny, {
252
+ codename: string;
253
+ }, {
254
+ codename: string;
255
+ }>>;
256
+ }, "strict", z.ZodTypeAny, {
257
+ type: Readonly<{
258
+ codename: string;
259
+ }>;
260
+ id: string;
261
+ }, {
262
+ type: Readonly<{
263
+ codename: string;
264
+ }>;
265
+ id: string;
266
+ }>;
267
+ elements: z.ZodReadonly<z.ZodType<Elements, z.ZodTypeDef, Elements>>;
268
+ }, "strict", z.ZodTypeAny, {
269
+ system: {
270
+ type: Readonly<{
271
+ codename: string;
272
+ }>;
273
+ id: string;
274
+ };
275
+ elements: Readonly<Elements>;
276
+ }, {
277
+ system: {
278
+ type: Readonly<{
279
+ codename: string;
280
+ }>;
281
+ id: string;
282
+ };
283
+ elements: Readonly<Elements>;
284
+ }>>, "many">>;
285
+ }, "strict", z.ZodTypeAny, {
286
+ value: string;
287
+ components: readonly Readonly<{
288
+ system: {
289
+ type: Readonly<{
290
+ codename: string;
291
+ }>;
292
+ id: string;
293
+ };
294
+ elements: Readonly<Elements>;
295
+ }>[];
296
+ }, {
297
+ value: string;
298
+ components: readonly Readonly<{
299
+ system: {
300
+ type: Readonly<{
301
+ codename: string;
302
+ }>;
303
+ id: string;
304
+ };
305
+ elements: Readonly<Elements>;
306
+ }>[];
307
+ }>>, z.ZodReadonly<z.ZodObject<{
308
+ value: z.ZodOptional<z.ZodString>;
309
+ mode: z.ZodReadonly<z.ZodEnum<["autogenerated", "custom"]>>;
310
+ }, "strict", z.ZodTypeAny, {
311
+ mode: "autogenerated" | "custom";
312
+ value?: string | undefined;
313
+ }, {
314
+ mode: "autogenerated" | "custom";
315
+ value?: string | undefined;
316
+ }>>]>;
317
+ }, "strict", z.ZodTypeAny, {
318
+ type: "number" | "custom" | "text" | "rich_text" | "multiple_choice" | "date_time" | "asset" | "modular_content" | "taxonomy" | "url_slug" | "subpages";
319
+ value?: string | number | Readonly<{
320
+ codename: string;
321
+ }>[] | Readonly<{
322
+ value: string;
323
+ components: readonly Readonly<{
324
+ system: {
325
+ type: Readonly<{
326
+ codename: string;
327
+ }>;
328
+ id: string;
329
+ };
330
+ elements: Readonly<Elements>;
331
+ }>[];
332
+ }> | Readonly<{
333
+ mode: "autogenerated" | "custom";
334
+ value?: string | undefined;
335
+ }> | undefined;
336
+ }, {
337
+ type: "number" | "custom" | "text" | "rich_text" | "multiple_choice" | "date_time" | "asset" | "modular_content" | "taxonomy" | "url_slug" | "subpages";
338
+ value?: string | number | Readonly<{
339
+ codename: string;
340
+ }>[] | Readonly<{
341
+ value: string;
342
+ components: readonly Readonly<{
343
+ system: {
344
+ type: Readonly<{
345
+ codename: string;
346
+ }>;
347
+ id: string;
348
+ };
349
+ elements: Readonly<Elements>;
350
+ }>[];
351
+ }> | Readonly<{
352
+ mode: "autogenerated" | "custom";
353
+ value?: string | undefined;
354
+ }> | undefined;
355
+ }>>;
356
+ export declare const MigrationItemVersionSchema: z.ZodReadonly<z.ZodObject<{
357
+ workflow_step: z.ZodReadonly<z.ZodObject<{
358
+ codename: z.ZodReadonly<z.ZodString>;
359
+ }, "strict", z.ZodTypeAny, {
360
+ codename: string;
361
+ }, {
362
+ codename: string;
363
+ }>>;
364
+ elements: z.ZodReadonly<z.ZodType<Elements, z.ZodTypeDef, Elements>>;
365
+ }, "strict", z.ZodTypeAny, {
366
+ elements: Readonly<Elements>;
367
+ workflow_step: Readonly<{
368
+ codename: string;
369
+ }>;
370
+ }, {
371
+ elements: Readonly<Elements>;
372
+ workflow_step: Readonly<{
373
+ codename: string;
374
+ }>;
375
+ }>>;
376
+ export declare const MigrationItemSystemSchema: z.ZodObject<{
377
+ codename: z.ZodString;
378
+ name: z.ZodString;
379
+ language: z.ZodReadonly<z.ZodObject<{
380
+ codename: z.ZodReadonly<z.ZodString>;
381
+ }, "strict", z.ZodTypeAny, {
382
+ codename: string;
383
+ }, {
384
+ codename: string;
385
+ }>>;
386
+ type: z.ZodReadonly<z.ZodObject<{
387
+ codename: z.ZodReadonly<z.ZodString>;
388
+ }, "strict", z.ZodTypeAny, {
389
+ codename: string;
390
+ }, {
391
+ codename: string;
392
+ }>>;
393
+ collection: z.ZodReadonly<z.ZodObject<{
394
+ codename: z.ZodReadonly<z.ZodString>;
395
+ }, "strict", z.ZodTypeAny, {
396
+ codename: string;
397
+ }, {
398
+ codename: string;
399
+ }>>;
400
+ workflow: z.ZodReadonly<z.ZodObject<{
401
+ codename: z.ZodReadonly<z.ZodString>;
402
+ }, "strict", z.ZodTypeAny, {
403
+ codename: string;
404
+ }, {
405
+ codename: string;
406
+ }>>;
407
+ }, "strict", z.ZodTypeAny, {
408
+ codename: string;
409
+ type: Readonly<{
410
+ codename: string;
411
+ }>;
412
+ name: string;
413
+ language: Readonly<{
414
+ codename: string;
415
+ }>;
416
+ collection: Readonly<{
417
+ codename: string;
418
+ }>;
419
+ workflow: Readonly<{
420
+ codename: string;
421
+ }>;
422
+ }, {
423
+ codename: string;
424
+ type: Readonly<{
425
+ codename: string;
426
+ }>;
427
+ name: string;
428
+ language: Readonly<{
429
+ codename: string;
430
+ }>;
431
+ collection: Readonly<{
432
+ codename: string;
433
+ }>;
434
+ workflow: Readonly<{
435
+ codename: string;
436
+ }>;
437
+ }>;
438
+ export declare const MigrationItemSchema: z.ZodReadonly<z.ZodObject<{
439
+ system: z.ZodObject<{
440
+ codename: z.ZodString;
441
+ name: z.ZodString;
442
+ language: z.ZodReadonly<z.ZodObject<{
443
+ codename: z.ZodReadonly<z.ZodString>;
444
+ }, "strict", z.ZodTypeAny, {
445
+ codename: string;
446
+ }, {
447
+ codename: string;
448
+ }>>;
449
+ type: z.ZodReadonly<z.ZodObject<{
450
+ codename: z.ZodReadonly<z.ZodString>;
451
+ }, "strict", z.ZodTypeAny, {
452
+ codename: string;
453
+ }, {
454
+ codename: string;
455
+ }>>;
456
+ collection: z.ZodReadonly<z.ZodObject<{
457
+ codename: z.ZodReadonly<z.ZodString>;
458
+ }, "strict", z.ZodTypeAny, {
459
+ codename: string;
460
+ }, {
461
+ codename: string;
462
+ }>>;
463
+ workflow: z.ZodReadonly<z.ZodObject<{
464
+ codename: z.ZodReadonly<z.ZodString>;
465
+ }, "strict", z.ZodTypeAny, {
466
+ codename: string;
467
+ }, {
468
+ codename: string;
469
+ }>>;
470
+ }, "strict", z.ZodTypeAny, {
471
+ codename: string;
472
+ type: Readonly<{
473
+ codename: string;
474
+ }>;
475
+ name: string;
476
+ language: Readonly<{
477
+ codename: string;
478
+ }>;
479
+ collection: Readonly<{
480
+ codename: string;
481
+ }>;
482
+ workflow: Readonly<{
483
+ codename: string;
484
+ }>;
485
+ }, {
486
+ codename: string;
487
+ type: Readonly<{
488
+ codename: string;
489
+ }>;
490
+ name: string;
491
+ language: Readonly<{
492
+ codename: string;
493
+ }>;
494
+ collection: Readonly<{
495
+ codename: string;
496
+ }>;
497
+ workflow: Readonly<{
498
+ codename: string;
499
+ }>;
500
+ }>;
501
+ versions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
502
+ workflow_step: z.ZodReadonly<z.ZodObject<{
503
+ codename: z.ZodReadonly<z.ZodString>;
504
+ }, "strict", z.ZodTypeAny, {
505
+ codename: string;
506
+ }, {
507
+ codename: string;
508
+ }>>;
509
+ elements: z.ZodReadonly<z.ZodType<Elements, z.ZodTypeDef, Elements>>;
510
+ }, "strict", z.ZodTypeAny, {
511
+ elements: Readonly<Elements>;
512
+ workflow_step: Readonly<{
513
+ codename: string;
514
+ }>;
515
+ }, {
516
+ elements: Readonly<Elements>;
517
+ workflow_step: Readonly<{
518
+ codename: string;
519
+ }>;
520
+ }>>, "many">>;
521
+ }, "strict", z.ZodTypeAny, {
522
+ system: {
523
+ codename: string;
524
+ type: Readonly<{
525
+ codename: string;
526
+ }>;
527
+ name: string;
528
+ language: Readonly<{
529
+ codename: string;
530
+ }>;
531
+ collection: Readonly<{
532
+ codename: string;
533
+ }>;
534
+ workflow: Readonly<{
535
+ codename: string;
536
+ }>;
537
+ };
538
+ versions: readonly Readonly<{
539
+ elements: Readonly<Elements>;
540
+ workflow_step: Readonly<{
541
+ codename: string;
542
+ }>;
543
+ }>[];
544
+ }, {
545
+ system: {
546
+ codename: string;
547
+ type: Readonly<{
548
+ codename: string;
549
+ }>;
550
+ name: string;
551
+ language: Readonly<{
552
+ codename: string;
553
+ }>;
554
+ collection: Readonly<{
555
+ codename: string;
556
+ }>;
557
+ workflow: Readonly<{
558
+ codename: string;
559
+ }>;
560
+ };
561
+ versions: readonly Readonly<{
562
+ elements: Readonly<Elements>;
563
+ workflow_step: Readonly<{
564
+ codename: string;
565
+ }>;
566
+ }>[];
567
+ }>>;
568
+ export declare const MigrationAssetDescriptionSchema: z.ZodReadonly<z.ZodObject<{
569
+ language: z.ZodReadonly<z.ZodObject<{
570
+ codename: z.ZodReadonly<z.ZodString>;
571
+ }, "strict", z.ZodTypeAny, {
572
+ codename: string;
573
+ }, {
574
+ codename: string;
575
+ }>>;
576
+ description: z.ZodOptional<z.ZodString>;
577
+ }, "strict", z.ZodTypeAny, {
578
+ language: Readonly<{
579
+ codename: string;
580
+ }>;
581
+ description?: string | undefined;
582
+ }, {
583
+ language: Readonly<{
584
+ codename: string;
585
+ }>;
586
+ description?: string | undefined;
587
+ }>>;
588
+ export declare const MigrationAssetSchema: z.ZodReadonly<z.ZodObject<z.objectUtil.extendShape<{
589
+ codename: z.ZodString;
590
+ filename: z.ZodString;
591
+ title: z.ZodString;
592
+ collection: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
593
+ codename: z.ZodReadonly<z.ZodString>;
594
+ }, "strict", z.ZodTypeAny, {
595
+ codename: string;
596
+ }, {
597
+ codename: string;
598
+ }>>>;
599
+ descriptions: z.ZodReadonly<z.ZodOptional<z.ZodArray<z.ZodReadonly<z.ZodObject<{
600
+ language: z.ZodReadonly<z.ZodObject<{
601
+ codename: z.ZodReadonly<z.ZodString>;
602
+ }, "strict", z.ZodTypeAny, {
603
+ codename: string;
604
+ }, {
605
+ codename: string;
606
+ }>>;
607
+ description: z.ZodOptional<z.ZodString>;
608
+ }, "strict", z.ZodTypeAny, {
609
+ language: Readonly<{
610
+ codename: string;
611
+ }>;
612
+ description?: string | undefined;
613
+ }, {
614
+ language: Readonly<{
615
+ codename: string;
616
+ }>;
617
+ description?: string | undefined;
618
+ }>>, "many">>>;
619
+ }, {
620
+ binaryData: z.ZodUnion<[z.ZodType<Buffer, z.ZodTypeDef, Buffer>, z.ZodType<import("buffer").Blob, z.ZodTypeDef, import("buffer").Blob>]>;
621
+ }>, "strict", z.ZodTypeAny, {
622
+ codename: string;
623
+ filename: string;
624
+ title: string;
625
+ binaryData: Buffer | import("buffer").Blob;
626
+ collection?: Readonly<{
627
+ codename: string;
628
+ }> | undefined;
629
+ descriptions?: readonly Readonly<{
630
+ language: Readonly<{
631
+ codename: string;
632
+ }>;
633
+ description?: string | undefined;
634
+ }>[] | undefined;
635
+ }, {
636
+ codename: string;
637
+ filename: string;
638
+ title: string;
639
+ binaryData: Buffer | import("buffer").Blob;
640
+ collection?: Readonly<{
641
+ codename: string;
642
+ }> | undefined;
643
+ descriptions?: readonly Readonly<{
644
+ language: Readonly<{
645
+ codename: string;
646
+ }>;
647
+ description?: string | undefined;
648
+ }>[] | undefined;
649
+ }>>;
650
+ export declare const ZipMigrationAssetSchema: z.ZodReadonly<z.ZodObject<z.objectUtil.extendShape<{
651
+ codename: z.ZodString;
652
+ filename: z.ZodString;
653
+ title: z.ZodString;
654
+ collection: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
655
+ codename: z.ZodReadonly<z.ZodString>;
656
+ }, "strict", z.ZodTypeAny, {
657
+ codename: string;
658
+ }, {
659
+ codename: string;
660
+ }>>>;
661
+ descriptions: z.ZodReadonly<z.ZodOptional<z.ZodArray<z.ZodReadonly<z.ZodObject<{
662
+ language: z.ZodReadonly<z.ZodObject<{
663
+ codename: z.ZodReadonly<z.ZodString>;
664
+ }, "strict", z.ZodTypeAny, {
665
+ codename: string;
666
+ }, {
667
+ codename: string;
668
+ }>>;
669
+ description: z.ZodOptional<z.ZodString>;
670
+ }, "strict", z.ZodTypeAny, {
671
+ language: Readonly<{
672
+ codename: string;
673
+ }>;
674
+ description?: string | undefined;
675
+ }, {
676
+ language: Readonly<{
677
+ codename: string;
678
+ }>;
679
+ description?: string | undefined;
680
+ }>>, "many">>>;
681
+ }, {
682
+ _zipFilename: z.ZodString;
683
+ }>, "strict", z.ZodTypeAny, {
684
+ codename: string;
685
+ filename: string;
686
+ title: string;
687
+ _zipFilename: string;
688
+ collection?: Readonly<{
689
+ codename: string;
690
+ }> | undefined;
691
+ descriptions?: readonly Readonly<{
692
+ language: Readonly<{
693
+ codename: string;
694
+ }>;
695
+ description?: string | undefined;
696
+ }>[] | undefined;
697
+ }, {
698
+ codename: string;
699
+ filename: string;
700
+ title: string;
701
+ _zipFilename: string;
702
+ collection?: Readonly<{
703
+ codename: string;
704
+ }> | undefined;
705
+ descriptions?: readonly Readonly<{
706
+ language: Readonly<{
707
+ codename: string;
708
+ }>;
709
+ description?: string | undefined;
710
+ }>[] | undefined;
711
+ }>>;
712
+ export declare const MigrationAssetsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<z.objectUtil.extendShape<{
713
+ codename: z.ZodString;
714
+ filename: z.ZodString;
715
+ title: z.ZodString;
716
+ collection: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
717
+ codename: z.ZodReadonly<z.ZodString>;
718
+ }, "strict", z.ZodTypeAny, {
719
+ codename: string;
720
+ }, {
721
+ codename: string;
722
+ }>>>;
723
+ descriptions: z.ZodReadonly<z.ZodOptional<z.ZodArray<z.ZodReadonly<z.ZodObject<{
724
+ language: z.ZodReadonly<z.ZodObject<{
725
+ codename: z.ZodReadonly<z.ZodString>;
726
+ }, "strict", z.ZodTypeAny, {
727
+ codename: string;
728
+ }, {
729
+ codename: string;
730
+ }>>;
731
+ description: z.ZodOptional<z.ZodString>;
732
+ }, "strict", z.ZodTypeAny, {
733
+ language: Readonly<{
734
+ codename: string;
735
+ }>;
736
+ description?: string | undefined;
737
+ }, {
738
+ language: Readonly<{
739
+ codename: string;
740
+ }>;
741
+ description?: string | undefined;
742
+ }>>, "many">>>;
743
+ }, {
744
+ binaryData: z.ZodUnion<[z.ZodType<Buffer, z.ZodTypeDef, Buffer>, z.ZodType<import("buffer").Blob, z.ZodTypeDef, import("buffer").Blob>]>;
745
+ }>, "strict", z.ZodTypeAny, {
746
+ codename: string;
747
+ filename: string;
748
+ title: string;
749
+ binaryData: Buffer | import("buffer").Blob;
750
+ collection?: Readonly<{
751
+ codename: string;
752
+ }> | undefined;
753
+ descriptions?: readonly Readonly<{
754
+ language: Readonly<{
755
+ codename: string;
756
+ }>;
757
+ description?: string | undefined;
758
+ }>[] | undefined;
759
+ }, {
760
+ codename: string;
761
+ filename: string;
762
+ title: string;
763
+ binaryData: Buffer | import("buffer").Blob;
764
+ collection?: Readonly<{
765
+ codename: string;
766
+ }> | undefined;
767
+ descriptions?: readonly Readonly<{
768
+ language: Readonly<{
769
+ codename: string;
770
+ }>;
771
+ description?: string | undefined;
772
+ }>[] | undefined;
773
+ }>>, "many">>;
774
+ export declare const ZipMigrationAssetsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<z.objectUtil.extendShape<{
775
+ codename: z.ZodString;
776
+ filename: z.ZodString;
777
+ title: z.ZodString;
778
+ collection: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
779
+ codename: z.ZodReadonly<z.ZodString>;
780
+ }, "strict", z.ZodTypeAny, {
781
+ codename: string;
782
+ }, {
783
+ codename: string;
784
+ }>>>;
785
+ descriptions: z.ZodReadonly<z.ZodOptional<z.ZodArray<z.ZodReadonly<z.ZodObject<{
786
+ language: z.ZodReadonly<z.ZodObject<{
787
+ codename: z.ZodReadonly<z.ZodString>;
788
+ }, "strict", z.ZodTypeAny, {
789
+ codename: string;
790
+ }, {
791
+ codename: string;
792
+ }>>;
793
+ description: z.ZodOptional<z.ZodString>;
794
+ }, "strict", z.ZodTypeAny, {
795
+ language: Readonly<{
796
+ codename: string;
797
+ }>;
798
+ description?: string | undefined;
799
+ }, {
800
+ language: Readonly<{
801
+ codename: string;
802
+ }>;
803
+ description?: string | undefined;
804
+ }>>, "many">>>;
805
+ }, {
806
+ _zipFilename: z.ZodString;
807
+ }>, "strict", z.ZodTypeAny, {
808
+ codename: string;
809
+ filename: string;
810
+ title: string;
811
+ _zipFilename: string;
812
+ collection?: Readonly<{
813
+ codename: string;
814
+ }> | undefined;
815
+ descriptions?: readonly Readonly<{
816
+ language: Readonly<{
817
+ codename: string;
818
+ }>;
819
+ description?: string | undefined;
820
+ }>[] | undefined;
821
+ }, {
822
+ codename: string;
823
+ filename: string;
824
+ title: string;
825
+ _zipFilename: string;
826
+ collection?: Readonly<{
827
+ codename: string;
828
+ }> | undefined;
829
+ descriptions?: readonly Readonly<{
830
+ language: Readonly<{
831
+ codename: string;
832
+ }>;
833
+ description?: string | undefined;
834
+ }>[] | undefined;
835
+ }>>, "many">>;
836
+ export declare const MigrationItemsSchema: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
837
+ system: z.ZodObject<{
838
+ codename: z.ZodString;
839
+ name: z.ZodString;
840
+ language: z.ZodReadonly<z.ZodObject<{
841
+ codename: z.ZodReadonly<z.ZodString>;
842
+ }, "strict", z.ZodTypeAny, {
843
+ codename: string;
844
+ }, {
845
+ codename: string;
846
+ }>>;
847
+ type: z.ZodReadonly<z.ZodObject<{
848
+ codename: z.ZodReadonly<z.ZodString>;
849
+ }, "strict", z.ZodTypeAny, {
850
+ codename: string;
851
+ }, {
852
+ codename: string;
853
+ }>>;
854
+ collection: z.ZodReadonly<z.ZodObject<{
855
+ codename: z.ZodReadonly<z.ZodString>;
856
+ }, "strict", z.ZodTypeAny, {
857
+ codename: string;
858
+ }, {
859
+ codename: string;
860
+ }>>;
861
+ workflow: z.ZodReadonly<z.ZodObject<{
862
+ codename: z.ZodReadonly<z.ZodString>;
863
+ }, "strict", z.ZodTypeAny, {
864
+ codename: string;
865
+ }, {
866
+ codename: string;
867
+ }>>;
868
+ }, "strict", z.ZodTypeAny, {
869
+ codename: string;
870
+ type: Readonly<{
871
+ codename: string;
872
+ }>;
873
+ name: string;
874
+ language: Readonly<{
875
+ codename: string;
876
+ }>;
877
+ collection: Readonly<{
878
+ codename: string;
879
+ }>;
880
+ workflow: Readonly<{
881
+ codename: string;
882
+ }>;
883
+ }, {
884
+ codename: string;
885
+ type: Readonly<{
886
+ codename: string;
887
+ }>;
888
+ name: string;
889
+ language: Readonly<{
890
+ codename: string;
891
+ }>;
892
+ collection: Readonly<{
893
+ codename: string;
894
+ }>;
895
+ workflow: Readonly<{
896
+ codename: string;
897
+ }>;
898
+ }>;
899
+ versions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
900
+ workflow_step: z.ZodReadonly<z.ZodObject<{
901
+ codename: z.ZodReadonly<z.ZodString>;
902
+ }, "strict", z.ZodTypeAny, {
903
+ codename: string;
904
+ }, {
905
+ codename: string;
906
+ }>>;
907
+ elements: z.ZodReadonly<z.ZodType<Elements, z.ZodTypeDef, Elements>>;
908
+ }, "strict", z.ZodTypeAny, {
909
+ elements: Readonly<Elements>;
910
+ workflow_step: Readonly<{
911
+ codename: string;
912
+ }>;
913
+ }, {
914
+ elements: Readonly<Elements>;
915
+ workflow_step: Readonly<{
916
+ codename: string;
917
+ }>;
918
+ }>>, "many">>;
919
+ }, "strict", z.ZodTypeAny, {
920
+ system: {
921
+ codename: string;
922
+ type: Readonly<{
923
+ codename: string;
924
+ }>;
925
+ name: string;
926
+ language: Readonly<{
927
+ codename: string;
928
+ }>;
929
+ collection: Readonly<{
930
+ codename: string;
931
+ }>;
932
+ workflow: Readonly<{
933
+ codename: string;
934
+ }>;
935
+ };
936
+ versions: readonly Readonly<{
937
+ elements: Readonly<Elements>;
938
+ workflow_step: Readonly<{
939
+ codename: string;
940
+ }>;
941
+ }>[];
942
+ }, {
943
+ system: {
944
+ codename: string;
945
+ type: Readonly<{
946
+ codename: string;
947
+ }>;
948
+ name: string;
949
+ language: Readonly<{
950
+ codename: string;
951
+ }>;
952
+ collection: Readonly<{
953
+ codename: string;
954
+ }>;
955
+ workflow: Readonly<{
956
+ codename: string;
957
+ }>;
958
+ };
959
+ versions: readonly Readonly<{
960
+ elements: Readonly<Elements>;
961
+ workflow_step: Readonly<{
962
+ codename: string;
963
+ }>;
964
+ }>[];
965
+ }>>, "many">>;
966
+ export declare const MigrationDataSchema: z.ZodReadonly<z.ZodObject<{
967
+ items: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
968
+ system: z.ZodObject<{
969
+ codename: z.ZodString;
970
+ name: z.ZodString;
971
+ language: z.ZodReadonly<z.ZodObject<{
972
+ codename: z.ZodReadonly<z.ZodString>;
973
+ }, "strict", z.ZodTypeAny, {
974
+ codename: string;
975
+ }, {
976
+ codename: string;
977
+ }>>;
978
+ type: z.ZodReadonly<z.ZodObject<{
979
+ codename: z.ZodReadonly<z.ZodString>;
980
+ }, "strict", z.ZodTypeAny, {
981
+ codename: string;
982
+ }, {
983
+ codename: string;
984
+ }>>;
985
+ collection: z.ZodReadonly<z.ZodObject<{
986
+ codename: z.ZodReadonly<z.ZodString>;
987
+ }, "strict", z.ZodTypeAny, {
988
+ codename: string;
989
+ }, {
990
+ codename: string;
991
+ }>>;
992
+ workflow: z.ZodReadonly<z.ZodObject<{
993
+ codename: z.ZodReadonly<z.ZodString>;
994
+ }, "strict", z.ZodTypeAny, {
995
+ codename: string;
996
+ }, {
997
+ codename: string;
998
+ }>>;
999
+ }, "strict", z.ZodTypeAny, {
1000
+ codename: string;
1001
+ type: Readonly<{
1002
+ codename: string;
1003
+ }>;
1004
+ name: string;
1005
+ language: Readonly<{
1006
+ codename: string;
1007
+ }>;
1008
+ collection: Readonly<{
1009
+ codename: string;
1010
+ }>;
1011
+ workflow: Readonly<{
1012
+ codename: string;
1013
+ }>;
1014
+ }, {
1015
+ codename: string;
1016
+ type: Readonly<{
1017
+ codename: string;
1018
+ }>;
1019
+ name: string;
1020
+ language: Readonly<{
1021
+ codename: string;
1022
+ }>;
1023
+ collection: Readonly<{
1024
+ codename: string;
1025
+ }>;
1026
+ workflow: Readonly<{
1027
+ codename: string;
1028
+ }>;
1029
+ }>;
1030
+ versions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
1031
+ workflow_step: z.ZodReadonly<z.ZodObject<{
1032
+ codename: z.ZodReadonly<z.ZodString>;
1033
+ }, "strict", z.ZodTypeAny, {
1034
+ codename: string;
1035
+ }, {
1036
+ codename: string;
1037
+ }>>;
1038
+ elements: z.ZodReadonly<z.ZodType<Elements, z.ZodTypeDef, Elements>>;
1039
+ }, "strict", z.ZodTypeAny, {
1040
+ elements: Readonly<Elements>;
1041
+ workflow_step: Readonly<{
1042
+ codename: string;
1043
+ }>;
1044
+ }, {
1045
+ elements: Readonly<Elements>;
1046
+ workflow_step: Readonly<{
1047
+ codename: string;
1048
+ }>;
1049
+ }>>, "many">>;
1050
+ }, "strict", z.ZodTypeAny, {
1051
+ system: {
1052
+ codename: string;
1053
+ type: Readonly<{
1054
+ codename: string;
1055
+ }>;
1056
+ name: string;
1057
+ language: Readonly<{
1058
+ codename: string;
1059
+ }>;
1060
+ collection: Readonly<{
1061
+ codename: string;
1062
+ }>;
1063
+ workflow: Readonly<{
1064
+ codename: string;
1065
+ }>;
1066
+ };
1067
+ versions: readonly Readonly<{
1068
+ elements: Readonly<Elements>;
1069
+ workflow_step: Readonly<{
1070
+ codename: string;
1071
+ }>;
1072
+ }>[];
1073
+ }, {
1074
+ system: {
1075
+ codename: string;
1076
+ type: Readonly<{
1077
+ codename: string;
1078
+ }>;
1079
+ name: string;
1080
+ language: Readonly<{
1081
+ codename: string;
1082
+ }>;
1083
+ collection: Readonly<{
1084
+ codename: string;
1085
+ }>;
1086
+ workflow: Readonly<{
1087
+ codename: string;
1088
+ }>;
1089
+ };
1090
+ versions: readonly Readonly<{
1091
+ elements: Readonly<Elements>;
1092
+ workflow_step: Readonly<{
1093
+ codename: string;
1094
+ }>;
1095
+ }>[];
1096
+ }>>, "many">>;
1097
+ assets: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<z.objectUtil.extendShape<{
1098
+ codename: z.ZodString;
1099
+ filename: z.ZodString;
1100
+ title: z.ZodString;
1101
+ collection: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
1102
+ codename: z.ZodReadonly<z.ZodString>;
1103
+ }, "strict", z.ZodTypeAny, {
1104
+ codename: string;
1105
+ }, {
1106
+ codename: string;
1107
+ }>>>;
1108
+ descriptions: z.ZodReadonly<z.ZodOptional<z.ZodArray<z.ZodReadonly<z.ZodObject<{
1109
+ language: z.ZodReadonly<z.ZodObject<{
1110
+ codename: z.ZodReadonly<z.ZodString>;
1111
+ }, "strict", z.ZodTypeAny, {
1112
+ codename: string;
1113
+ }, {
1114
+ codename: string;
1115
+ }>>;
1116
+ description: z.ZodOptional<z.ZodString>;
1117
+ }, "strict", z.ZodTypeAny, {
1118
+ language: Readonly<{
1119
+ codename: string;
1120
+ }>;
1121
+ description?: string | undefined;
1122
+ }, {
1123
+ language: Readonly<{
1124
+ codename: string;
1125
+ }>;
1126
+ description?: string | undefined;
1127
+ }>>, "many">>>;
1128
+ }, {
1129
+ binaryData: z.ZodUnion<[z.ZodType<Buffer, z.ZodTypeDef, Buffer>, z.ZodType<import("buffer").Blob, z.ZodTypeDef, import("buffer").Blob>]>;
1130
+ }>, "strict", z.ZodTypeAny, {
1131
+ codename: string;
1132
+ filename: string;
1133
+ title: string;
1134
+ binaryData: Buffer | import("buffer").Blob;
1135
+ collection?: Readonly<{
1136
+ codename: string;
1137
+ }> | undefined;
1138
+ descriptions?: readonly Readonly<{
1139
+ language: Readonly<{
1140
+ codename: string;
1141
+ }>;
1142
+ description?: string | undefined;
1143
+ }>[] | undefined;
1144
+ }, {
1145
+ codename: string;
1146
+ filename: string;
1147
+ title: string;
1148
+ binaryData: Buffer | import("buffer").Blob;
1149
+ collection?: Readonly<{
1150
+ codename: string;
1151
+ }> | undefined;
1152
+ descriptions?: readonly Readonly<{
1153
+ language: Readonly<{
1154
+ codename: string;
1155
+ }>;
1156
+ description?: string | undefined;
1157
+ }>[] | undefined;
1158
+ }>>, "many">>;
1159
+ }, "strict", z.ZodTypeAny, {
1160
+ items: readonly Readonly<{
1161
+ system: {
1162
+ codename: string;
1163
+ type: Readonly<{
1164
+ codename: string;
1165
+ }>;
1166
+ name: string;
1167
+ language: Readonly<{
1168
+ codename: string;
1169
+ }>;
1170
+ collection: Readonly<{
1171
+ codename: string;
1172
+ }>;
1173
+ workflow: Readonly<{
1174
+ codename: string;
1175
+ }>;
1176
+ };
1177
+ versions: readonly Readonly<{
1178
+ elements: Readonly<Elements>;
1179
+ workflow_step: Readonly<{
1180
+ codename: string;
1181
+ }>;
1182
+ }>[];
1183
+ }>[];
1184
+ assets: readonly Readonly<{
1185
+ codename: string;
1186
+ filename: string;
1187
+ title: string;
1188
+ binaryData: Buffer | import("buffer").Blob;
1189
+ collection?: Readonly<{
1190
+ codename: string;
1191
+ }> | undefined;
1192
+ descriptions?: readonly Readonly<{
1193
+ language: Readonly<{
1194
+ codename: string;
1195
+ }>;
1196
+ description?: string | undefined;
1197
+ }>[] | undefined;
1198
+ }>[];
1199
+ }, {
1200
+ items: readonly Readonly<{
1201
+ system: {
1202
+ codename: string;
1203
+ type: Readonly<{
1204
+ codename: string;
1205
+ }>;
1206
+ name: string;
1207
+ language: Readonly<{
1208
+ codename: string;
1209
+ }>;
1210
+ collection: Readonly<{
1211
+ codename: string;
1212
+ }>;
1213
+ workflow: Readonly<{
1214
+ codename: string;
1215
+ }>;
1216
+ };
1217
+ versions: readonly Readonly<{
1218
+ elements: Readonly<Elements>;
1219
+ workflow_step: Readonly<{
1220
+ codename: string;
1221
+ }>;
1222
+ }>[];
1223
+ }>[];
1224
+ assets: readonly Readonly<{
1225
+ codename: string;
1226
+ filename: string;
1227
+ title: string;
1228
+ binaryData: Buffer | import("buffer").Blob;
1229
+ collection?: Readonly<{
1230
+ codename: string;
1231
+ }> | undefined;
1232
+ descriptions?: readonly Readonly<{
1233
+ language: Readonly<{
1234
+ codename: string;
1235
+ }>;
1236
+ description?: string | undefined;
1237
+ }>[] | undefined;
1238
+ }>[];
1239
+ }>>;
1240
+ export {};