@lokalise/content-conversion-schemas 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.
@@ -0,0 +1,1599 @@
1
+ import { z } from 'zod';
2
+ export declare const ITEM_EXPORT_OPTIONS_SCHEMA: z.ZodObject<{
3
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ languages?: string[] | undefined;
6
+ }, {
7
+ languages?: string[] | undefined;
8
+ }>;
9
+ export declare const BASE_EXPORT_OPTIONS_SCHEMA: z.ZodObject<{
10
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
11
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ languages?: string[] | undefined;
14
+ }, {
15
+ languages?: string[] | undefined;
16
+ }>>>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ items?: Record<string, {
19
+ languages?: string[] | undefined;
20
+ }> | undefined;
21
+ }, {
22
+ items?: Record<string, {
23
+ languages?: string[] | undefined;
24
+ }> | undefined;
25
+ }>;
26
+ /**
27
+ * This schema is utilized when only essential information about a content language is required.
28
+ * It includes the ID (e.g. to filter segments associated with a specific language), and the locale,
29
+ * which often is required in content translations and transformation. Alternative approaches, such as using the
30
+ * locale directly in each segment instead of exposing the content language ID, may exist, but this
31
+ * schema serves the current implementation needs.
32
+ */
33
+ export declare const CONTENT_LANGUAGE_IDENTIFIER_SCHEMA: z.ZodObject<{
34
+ id: z.ZodString;
35
+ locale: z.ZodString;
36
+ }, "strip", z.ZodTypeAny, {
37
+ id: string;
38
+ locale: string;
39
+ }, {
40
+ id: string;
41
+ locale: string;
42
+ }>;
43
+ export type ContentLanguageIdentifier = z.infer<typeof CONTENT_LANGUAGE_IDENTIFIER_SCHEMA>;
44
+ export declare const GIT_EXPORT_OPTIONS_SCHEMA: z.ZodObject<{
45
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
46
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ languages?: string[] | undefined;
49
+ }, {
50
+ languages?: string[] | undefined;
51
+ }>>>;
52
+ } & {
53
+ outputType: z.ZodLiteral<"GIT">;
54
+ branchName: z.ZodOptional<z.ZodString>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ outputType: "GIT";
57
+ items?: Record<string, {
58
+ languages?: string[] | undefined;
59
+ }> | undefined;
60
+ branchName?: string | undefined;
61
+ }, {
62
+ outputType: "GIT";
63
+ items?: Record<string, {
64
+ languages?: string[] | undefined;
65
+ }> | undefined;
66
+ branchName?: string | undefined;
67
+ }>;
68
+ export declare const SHOPIFY_EXPORT_OPTIONS_SCHEMA: z.ZodObject<{
69
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
70
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ languages?: string[] | undefined;
73
+ }, {
74
+ languages?: string[] | undefined;
75
+ }>>>;
76
+ } & {
77
+ outputType: z.ZodLiteral<"SHOPIFY">;
78
+ force: z.ZodOptional<z.ZodBoolean>;
79
+ useNonTranslatableMarkers: z.ZodOptional<z.ZodBoolean>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ outputType: "SHOPIFY";
82
+ items?: Record<string, {
83
+ languages?: string[] | undefined;
84
+ }> | undefined;
85
+ force?: boolean | undefined;
86
+ useNonTranslatableMarkers?: boolean | undefined;
87
+ }, {
88
+ outputType: "SHOPIFY";
89
+ items?: Record<string, {
90
+ languages?: string[] | undefined;
91
+ }> | undefined;
92
+ force?: boolean | undefined;
93
+ useNonTranslatableMarkers?: boolean | undefined;
94
+ }>;
95
+ export declare const FILE_EXPORT_OPTIONS_SCHEMA: z.ZodObject<{
96
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
97
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
98
+ }, "strip", z.ZodTypeAny, {
99
+ languages?: string[] | undefined;
100
+ }, {
101
+ languages?: string[] | undefined;
102
+ }>>>;
103
+ } & {
104
+ outputType: z.ZodLiteral<"FILE">;
105
+ }, "strip", z.ZodTypeAny, {
106
+ outputType: "FILE";
107
+ items?: Record<string, {
108
+ languages?: string[] | undefined;
109
+ }> | undefined;
110
+ }, {
111
+ outputType: "FILE";
112
+ items?: Record<string, {
113
+ languages?: string[] | undefined;
114
+ }> | undefined;
115
+ }>;
116
+ export declare const EXPORT_OPTIONS_SCHEMA: z.ZodDiscriminatedUnion<"outputType", [z.ZodObject<{
117
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
118
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ languages?: string[] | undefined;
121
+ }, {
122
+ languages?: string[] | undefined;
123
+ }>>>;
124
+ } & {
125
+ outputType: z.ZodLiteral<"FILE">;
126
+ }, "strip", z.ZodTypeAny, {
127
+ outputType: "FILE";
128
+ items?: Record<string, {
129
+ languages?: string[] | undefined;
130
+ }> | undefined;
131
+ }, {
132
+ outputType: "FILE";
133
+ items?: Record<string, {
134
+ languages?: string[] | undefined;
135
+ }> | undefined;
136
+ }>, z.ZodObject<{
137
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
138
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ languages?: string[] | undefined;
141
+ }, {
142
+ languages?: string[] | undefined;
143
+ }>>>;
144
+ } & {
145
+ outputType: z.ZodLiteral<"GIT">;
146
+ branchName: z.ZodOptional<z.ZodString>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ outputType: "GIT";
149
+ items?: Record<string, {
150
+ languages?: string[] | undefined;
151
+ }> | undefined;
152
+ branchName?: string | undefined;
153
+ }, {
154
+ outputType: "GIT";
155
+ items?: Record<string, {
156
+ languages?: string[] | undefined;
157
+ }> | undefined;
158
+ branchName?: string | undefined;
159
+ }>, z.ZodObject<{
160
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
161
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ languages?: string[] | undefined;
164
+ }, {
165
+ languages?: string[] | undefined;
166
+ }>>>;
167
+ } & {
168
+ outputType: z.ZodLiteral<"SHOPIFY">;
169
+ force: z.ZodOptional<z.ZodBoolean>;
170
+ useNonTranslatableMarkers: z.ZodOptional<z.ZodBoolean>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ outputType: "SHOPIFY";
173
+ items?: Record<string, {
174
+ languages?: string[] | undefined;
175
+ }> | undefined;
176
+ force?: boolean | undefined;
177
+ useNonTranslatableMarkers?: boolean | undefined;
178
+ }, {
179
+ outputType: "SHOPIFY";
180
+ items?: Record<string, {
181
+ languages?: string[] | undefined;
182
+ }> | undefined;
183
+ force?: boolean | undefined;
184
+ useNonTranslatableMarkers?: boolean | undefined;
185
+ }>]>;
186
+ export declare const SEGMENT_METADATA_SCHEMA: z.ZodObject<{
187
+ prefix: z.ZodOptional<z.ZodString>;
188
+ suffix: z.ZodOptional<z.ZodString>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ prefix?: string | undefined;
191
+ suffix?: string | undefined;
192
+ }, {
193
+ prefix?: string | undefined;
194
+ suffix?: string | undefined;
195
+ }>;
196
+ export type SegmentMetadata = z.infer<typeof SEGMENT_METADATA_SCHEMA>;
197
+ export declare const SEGMENT_SCHEMA: z.ZodObject<{
198
+ id: z.ZodString;
199
+ number: z.ZodNumber;
200
+ value: z.ZodString;
201
+ status: z.ZodNativeEnum<{
202
+ readonly TRANSLATING: "TRANSLATING";
203
+ readonly TRANSLATION_FAILED: "TRANSLATION_FAILED";
204
+ readonly LQA_IN_PROGRESS: "LQA_IN_PROGRESS";
205
+ readonly PENDING_REVIEW: "PENDING_REVIEW";
206
+ readonly APPROVED: "APPROVED";
207
+ }>;
208
+ contentLanguageId: z.ZodString;
209
+ contentUnitId: z.ZodString;
210
+ projectId: z.ZodString;
211
+ }, "strip", z.ZodTypeAny, {
212
+ number: number;
213
+ id: string;
214
+ value: string;
215
+ status: "TRANSLATING" | "TRANSLATION_FAILED" | "LQA_IN_PROGRESS" | "PENDING_REVIEW" | "APPROVED";
216
+ contentLanguageId: string;
217
+ contentUnitId: string;
218
+ projectId: string;
219
+ }, {
220
+ number: number;
221
+ id: string;
222
+ value: string;
223
+ status: "TRANSLATING" | "TRANSLATION_FAILED" | "LQA_IN_PROGRESS" | "PENDING_REVIEW" | "APPROVED";
224
+ contentLanguageId: string;
225
+ contentUnitId: string;
226
+ projectId: string;
227
+ }>;
228
+ export type Segment = z.infer<typeof SEGMENT_SCHEMA>;
229
+ export declare const EXPORTABLE_SEGMENT_SCHEMA: z.ZodObject<Pick<{
230
+ id: z.ZodString;
231
+ number: z.ZodNumber;
232
+ value: z.ZodString;
233
+ status: z.ZodNativeEnum<{
234
+ readonly TRANSLATING: "TRANSLATING";
235
+ readonly TRANSLATION_FAILED: "TRANSLATION_FAILED";
236
+ readonly LQA_IN_PROGRESS: "LQA_IN_PROGRESS";
237
+ readonly PENDING_REVIEW: "PENDING_REVIEW";
238
+ readonly APPROVED: "APPROVED";
239
+ }>;
240
+ contentLanguageId: z.ZodString;
241
+ contentUnitId: z.ZodString;
242
+ projectId: z.ZodString;
243
+ }, "number" | "id" | "value" | "contentLanguageId"> & {
244
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
245
+ prefix: z.ZodOptional<z.ZodString>;
246
+ suffix: z.ZodOptional<z.ZodString>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ prefix?: string | undefined;
249
+ suffix?: string | undefined;
250
+ }, {
251
+ prefix?: string | undefined;
252
+ suffix?: string | undefined;
253
+ }>>>;
254
+ }, "strip", z.ZodTypeAny, {
255
+ number: number;
256
+ id: string;
257
+ value: string;
258
+ contentLanguageId: string;
259
+ metadata?: {
260
+ prefix?: string | undefined;
261
+ suffix?: string | undefined;
262
+ } | null | undefined;
263
+ }, {
264
+ number: number;
265
+ id: string;
266
+ value: string;
267
+ contentLanguageId: string;
268
+ metadata?: {
269
+ prefix?: string | undefined;
270
+ suffix?: string | undefined;
271
+ } | null | undefined;
272
+ }>;
273
+ export type ExportableSegment = z.infer<typeof EXPORTABLE_SEGMENT_SCHEMA>;
274
+ export declare const EXPORTABLE_TEXT_UNIT_SCHEMA: z.ZodObject<{
275
+ id: z.ZodString;
276
+ metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
277
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
278
+ id: z.ZodString;
279
+ number: z.ZodNumber;
280
+ value: z.ZodString;
281
+ status: z.ZodNativeEnum<{
282
+ readonly TRANSLATING: "TRANSLATING";
283
+ readonly TRANSLATION_FAILED: "TRANSLATION_FAILED";
284
+ readonly LQA_IN_PROGRESS: "LQA_IN_PROGRESS";
285
+ readonly PENDING_REVIEW: "PENDING_REVIEW";
286
+ readonly APPROVED: "APPROVED";
287
+ }>;
288
+ contentLanguageId: z.ZodString;
289
+ contentUnitId: z.ZodString;
290
+ projectId: z.ZodString;
291
+ }, "number" | "id" | "value" | "contentLanguageId"> & {
292
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
293
+ prefix: z.ZodOptional<z.ZodString>;
294
+ suffix: z.ZodOptional<z.ZodString>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ prefix?: string | undefined;
297
+ suffix?: string | undefined;
298
+ }, {
299
+ prefix?: string | undefined;
300
+ suffix?: string | undefined;
301
+ }>>>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ number: number;
304
+ id: string;
305
+ value: string;
306
+ contentLanguageId: string;
307
+ metadata?: {
308
+ prefix?: string | undefined;
309
+ suffix?: string | undefined;
310
+ } | null | undefined;
311
+ }, {
312
+ number: number;
313
+ id: string;
314
+ value: string;
315
+ contentLanguageId: string;
316
+ metadata?: {
317
+ prefix?: string | undefined;
318
+ suffix?: string | undefined;
319
+ } | null | undefined;
320
+ }>, "many">>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ id: string;
323
+ metadata: Record<string, any>;
324
+ segments?: {
325
+ number: number;
326
+ id: string;
327
+ value: string;
328
+ contentLanguageId: string;
329
+ metadata?: {
330
+ prefix?: string | undefined;
331
+ suffix?: string | undefined;
332
+ } | null | undefined;
333
+ }[] | undefined;
334
+ }, {
335
+ id: string;
336
+ metadata: Record<string, any>;
337
+ segments?: {
338
+ number: number;
339
+ id: string;
340
+ value: string;
341
+ contentLanguageId: string;
342
+ metadata?: {
343
+ prefix?: string | undefined;
344
+ suffix?: string | undefined;
345
+ } | null | undefined;
346
+ }[] | undefined;
347
+ }>;
348
+ export type ExportableTextUnit = z.infer<typeof EXPORTABLE_TEXT_UNIT_SCHEMA>;
349
+ export declare const EXPORTABLE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
350
+ type: z.ZodNativeEnum<{
351
+ readonly TEXT: "TEXT";
352
+ readonly HTML: "HTML";
353
+ readonly JSON: "JSON";
354
+ readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
355
+ }>;
356
+ key: z.ZodString;
357
+ source: z.ZodString;
358
+ textUnits: z.ZodOptional<z.ZodArray<z.ZodObject<{
359
+ id: z.ZodString;
360
+ metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
361
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
362
+ id: z.ZodString;
363
+ number: z.ZodNumber;
364
+ value: z.ZodString;
365
+ status: z.ZodNativeEnum<{
366
+ readonly TRANSLATING: "TRANSLATING";
367
+ readonly TRANSLATION_FAILED: "TRANSLATION_FAILED";
368
+ readonly LQA_IN_PROGRESS: "LQA_IN_PROGRESS";
369
+ readonly PENDING_REVIEW: "PENDING_REVIEW";
370
+ readonly APPROVED: "APPROVED";
371
+ }>;
372
+ contentLanguageId: z.ZodString;
373
+ contentUnitId: z.ZodString;
374
+ projectId: z.ZodString;
375
+ }, "number" | "id" | "value" | "contentLanguageId"> & {
376
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
377
+ prefix: z.ZodOptional<z.ZodString>;
378
+ suffix: z.ZodOptional<z.ZodString>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ prefix?: string | undefined;
381
+ suffix?: string | undefined;
382
+ }, {
383
+ prefix?: string | undefined;
384
+ suffix?: string | undefined;
385
+ }>>>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ number: number;
388
+ id: string;
389
+ value: string;
390
+ contentLanguageId: string;
391
+ metadata?: {
392
+ prefix?: string | undefined;
393
+ suffix?: string | undefined;
394
+ } | null | undefined;
395
+ }, {
396
+ number: number;
397
+ id: string;
398
+ value: string;
399
+ contentLanguageId: string;
400
+ metadata?: {
401
+ prefix?: string | undefined;
402
+ suffix?: string | undefined;
403
+ } | null | undefined;
404
+ }>, "many">>;
405
+ }, "strip", z.ZodTypeAny, {
406
+ id: string;
407
+ metadata: Record<string, any>;
408
+ segments?: {
409
+ number: number;
410
+ id: string;
411
+ value: string;
412
+ contentLanguageId: string;
413
+ metadata?: {
414
+ prefix?: string | undefined;
415
+ suffix?: string | undefined;
416
+ } | null | undefined;
417
+ }[] | undefined;
418
+ }, {
419
+ id: string;
420
+ metadata: Record<string, any>;
421
+ segments?: {
422
+ number: number;
423
+ id: string;
424
+ value: string;
425
+ contentLanguageId: string;
426
+ metadata?: {
427
+ prefix?: string | undefined;
428
+ suffix?: string | undefined;
429
+ } | null | undefined;
430
+ }[] | undefined;
431
+ }>, "many">>;
432
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
433
+ }, "strip", z.ZodTypeAny, {
434
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
435
+ source: string;
436
+ key: string;
437
+ metadata?: Record<string, any> | undefined;
438
+ textUnits?: {
439
+ id: string;
440
+ metadata: Record<string, any>;
441
+ segments?: {
442
+ number: number;
443
+ id: string;
444
+ value: string;
445
+ contentLanguageId: string;
446
+ metadata?: {
447
+ prefix?: string | undefined;
448
+ suffix?: string | undefined;
449
+ } | null | undefined;
450
+ }[] | undefined;
451
+ }[] | undefined;
452
+ }, {
453
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
454
+ source: string;
455
+ key: string;
456
+ metadata?: Record<string, any> | undefined;
457
+ textUnits?: {
458
+ id: string;
459
+ metadata: Record<string, any>;
460
+ segments?: {
461
+ number: number;
462
+ id: string;
463
+ value: string;
464
+ contentLanguageId: string;
465
+ metadata?: {
466
+ prefix?: string | undefined;
467
+ suffix?: string | undefined;
468
+ } | null | undefined;
469
+ }[] | undefined;
470
+ }[] | undefined;
471
+ }>;
472
+ export type ExportableContentUnit = z.infer<typeof EXPORTABLE_CONTENT_UNIT_SCHEMA>;
473
+ export declare const ITEM_METADATA_SCHEMA: z.ZodObject<{
474
+ origin: z.ZodOptional<z.ZodString>;
475
+ importItemId: z.ZodOptional<z.ZodString>;
476
+ shopify: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
477
+ }, "strip", z.ZodTypeAny, {
478
+ origin?: string | undefined;
479
+ importItemId?: string | undefined;
480
+ shopify?: Record<string, unknown> | undefined;
481
+ }, {
482
+ origin?: string | undefined;
483
+ importItemId?: string | undefined;
484
+ shopify?: Record<string, unknown> | undefined;
485
+ }>;
486
+ export type ItemMetadata = z.infer<typeof ITEM_METADATA_SCHEMA>;
487
+ export declare const FILE_DETAILS_SCHEMA: z.ZodObject<{
488
+ id: z.ZodString;
489
+ storageId: z.ZodString;
490
+ path: z.ZodString;
491
+ format: z.ZodNativeEnum<{
492
+ readonly JSON: "JSON";
493
+ readonly YAML: "YAML";
494
+ readonly HTML: "HTML";
495
+ readonly DOCX: "DOCX";
496
+ readonly XLSX: "XLSX";
497
+ readonly PPTX: "PPTX";
498
+ readonly MARKDOWN: "MARKDOWN";
499
+ readonly IDML: "IDML";
500
+ }>;
501
+ }, "strip", z.ZodTypeAny, {
502
+ path: string;
503
+ id: string;
504
+ storageId: string;
505
+ format: "HTML" | "JSON" | "YAML" | "DOCX" | "XLSX" | "PPTX" | "MARKDOWN" | "IDML";
506
+ }, {
507
+ path: string;
508
+ id: string;
509
+ storageId: string;
510
+ format: "HTML" | "JSON" | "YAML" | "DOCX" | "XLSX" | "PPTX" | "MARKDOWN" | "IDML";
511
+ }>;
512
+ export type FileDetails = z.infer<typeof FILE_DETAILS_SCHEMA>;
513
+ export declare const EXPORTABLE_ITEM: z.ZodObject<{
514
+ id: z.ZodString;
515
+ type: z.ZodNativeEnum<{
516
+ readonly FILE: "FILE";
517
+ readonly GENERIC_CONTENT_ITEM: "GENERIC_CONTENT_ITEM";
518
+ }>;
519
+ name: z.ZodString;
520
+ metadata: z.ZodObject<{
521
+ origin: z.ZodOptional<z.ZodString>;
522
+ importItemId: z.ZodOptional<z.ZodString>;
523
+ shopify: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ origin?: string | undefined;
526
+ importItemId?: string | undefined;
527
+ shopify?: Record<string, unknown> | undefined;
528
+ }, {
529
+ origin?: string | undefined;
530
+ importItemId?: string | undefined;
531
+ shopify?: Record<string, unknown> | undefined;
532
+ }>;
533
+ file: z.ZodNullable<z.ZodObject<{
534
+ id: z.ZodString;
535
+ storageId: z.ZodString;
536
+ path: z.ZodString;
537
+ format: z.ZodNativeEnum<{
538
+ readonly JSON: "JSON";
539
+ readonly YAML: "YAML";
540
+ readonly HTML: "HTML";
541
+ readonly DOCX: "DOCX";
542
+ readonly XLSX: "XLSX";
543
+ readonly PPTX: "PPTX";
544
+ readonly MARKDOWN: "MARKDOWN";
545
+ readonly IDML: "IDML";
546
+ }>;
547
+ }, "strip", z.ZodTypeAny, {
548
+ path: string;
549
+ id: string;
550
+ storageId: string;
551
+ format: "HTML" | "JSON" | "YAML" | "DOCX" | "XLSX" | "PPTX" | "MARKDOWN" | "IDML";
552
+ }, {
553
+ path: string;
554
+ id: string;
555
+ storageId: string;
556
+ format: "HTML" | "JSON" | "YAML" | "DOCX" | "XLSX" | "PPTX" | "MARKDOWN" | "IDML";
557
+ }>>;
558
+ language: z.ZodObject<{
559
+ id: z.ZodString;
560
+ locale: z.ZodString;
561
+ }, "strip", z.ZodTypeAny, {
562
+ id: string;
563
+ locale: string;
564
+ }, {
565
+ id: string;
566
+ locale: string;
567
+ }>;
568
+ contentUnits: z.ZodArray<z.ZodObject<{
569
+ type: z.ZodNativeEnum<{
570
+ readonly TEXT: "TEXT";
571
+ readonly HTML: "HTML";
572
+ readonly JSON: "JSON";
573
+ readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
574
+ }>;
575
+ key: z.ZodString;
576
+ source: z.ZodString;
577
+ textUnits: z.ZodOptional<z.ZodArray<z.ZodObject<{
578
+ id: z.ZodString;
579
+ metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
580
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
581
+ id: z.ZodString;
582
+ number: z.ZodNumber;
583
+ value: z.ZodString;
584
+ status: z.ZodNativeEnum<{
585
+ readonly TRANSLATING: "TRANSLATING";
586
+ readonly TRANSLATION_FAILED: "TRANSLATION_FAILED";
587
+ readonly LQA_IN_PROGRESS: "LQA_IN_PROGRESS";
588
+ readonly PENDING_REVIEW: "PENDING_REVIEW";
589
+ readonly APPROVED: "APPROVED";
590
+ }>;
591
+ contentLanguageId: z.ZodString;
592
+ contentUnitId: z.ZodString;
593
+ projectId: z.ZodString;
594
+ }, "number" | "id" | "value" | "contentLanguageId"> & {
595
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
596
+ prefix: z.ZodOptional<z.ZodString>;
597
+ suffix: z.ZodOptional<z.ZodString>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ prefix?: string | undefined;
600
+ suffix?: string | undefined;
601
+ }, {
602
+ prefix?: string | undefined;
603
+ suffix?: string | undefined;
604
+ }>>>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ number: number;
607
+ id: string;
608
+ value: string;
609
+ contentLanguageId: string;
610
+ metadata?: {
611
+ prefix?: string | undefined;
612
+ suffix?: string | undefined;
613
+ } | null | undefined;
614
+ }, {
615
+ number: number;
616
+ id: string;
617
+ value: string;
618
+ contentLanguageId: string;
619
+ metadata?: {
620
+ prefix?: string | undefined;
621
+ suffix?: string | undefined;
622
+ } | null | undefined;
623
+ }>, "many">>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ id: string;
626
+ metadata: Record<string, any>;
627
+ segments?: {
628
+ number: number;
629
+ id: string;
630
+ value: string;
631
+ contentLanguageId: string;
632
+ metadata?: {
633
+ prefix?: string | undefined;
634
+ suffix?: string | undefined;
635
+ } | null | undefined;
636
+ }[] | undefined;
637
+ }, {
638
+ id: string;
639
+ metadata: Record<string, any>;
640
+ segments?: {
641
+ number: number;
642
+ id: string;
643
+ value: string;
644
+ contentLanguageId: string;
645
+ metadata?: {
646
+ prefix?: string | undefined;
647
+ suffix?: string | undefined;
648
+ } | null | undefined;
649
+ }[] | undefined;
650
+ }>, "many">>;
651
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
652
+ }, "strip", z.ZodTypeAny, {
653
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
654
+ source: string;
655
+ key: string;
656
+ metadata?: Record<string, any> | undefined;
657
+ textUnits?: {
658
+ id: string;
659
+ metadata: Record<string, any>;
660
+ segments?: {
661
+ number: number;
662
+ id: string;
663
+ value: string;
664
+ contentLanguageId: string;
665
+ metadata?: {
666
+ prefix?: string | undefined;
667
+ suffix?: string | undefined;
668
+ } | null | undefined;
669
+ }[] | undefined;
670
+ }[] | undefined;
671
+ }, {
672
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
673
+ source: string;
674
+ key: string;
675
+ metadata?: Record<string, any> | undefined;
676
+ textUnits?: {
677
+ id: string;
678
+ metadata: Record<string, any>;
679
+ segments?: {
680
+ number: number;
681
+ id: string;
682
+ value: string;
683
+ contentLanguageId: string;
684
+ metadata?: {
685
+ prefix?: string | undefined;
686
+ suffix?: string | undefined;
687
+ } | null | undefined;
688
+ }[] | undefined;
689
+ }[] | undefined;
690
+ }>, "atleastone">;
691
+ }, "strip", z.ZodTypeAny, {
692
+ name: string;
693
+ id: string;
694
+ type: "FILE" | "GENERIC_CONTENT_ITEM";
695
+ metadata: {
696
+ origin?: string | undefined;
697
+ importItemId?: string | undefined;
698
+ shopify?: Record<string, unknown> | undefined;
699
+ };
700
+ contentUnits: [{
701
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
702
+ source: string;
703
+ key: string;
704
+ metadata?: Record<string, any> | undefined;
705
+ textUnits?: {
706
+ id: string;
707
+ metadata: Record<string, any>;
708
+ segments?: {
709
+ number: number;
710
+ id: string;
711
+ value: string;
712
+ contentLanguageId: string;
713
+ metadata?: {
714
+ prefix?: string | undefined;
715
+ suffix?: string | undefined;
716
+ } | null | undefined;
717
+ }[] | undefined;
718
+ }[] | undefined;
719
+ }, ...{
720
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
721
+ source: string;
722
+ key: string;
723
+ metadata?: Record<string, any> | undefined;
724
+ textUnits?: {
725
+ id: string;
726
+ metadata: Record<string, any>;
727
+ segments?: {
728
+ number: number;
729
+ id: string;
730
+ value: string;
731
+ contentLanguageId: string;
732
+ metadata?: {
733
+ prefix?: string | undefined;
734
+ suffix?: string | undefined;
735
+ } | null | undefined;
736
+ }[] | undefined;
737
+ }[] | undefined;
738
+ }[]];
739
+ file: {
740
+ path: string;
741
+ id: string;
742
+ storageId: string;
743
+ format: "HTML" | "JSON" | "YAML" | "DOCX" | "XLSX" | "PPTX" | "MARKDOWN" | "IDML";
744
+ } | null;
745
+ language: {
746
+ id: string;
747
+ locale: string;
748
+ };
749
+ }, {
750
+ name: string;
751
+ id: string;
752
+ type: "FILE" | "GENERIC_CONTENT_ITEM";
753
+ metadata: {
754
+ origin?: string | undefined;
755
+ importItemId?: string | undefined;
756
+ shopify?: Record<string, unknown> | undefined;
757
+ };
758
+ contentUnits: [{
759
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
760
+ source: string;
761
+ key: string;
762
+ metadata?: Record<string, any> | undefined;
763
+ textUnits?: {
764
+ id: string;
765
+ metadata: Record<string, any>;
766
+ segments?: {
767
+ number: number;
768
+ id: string;
769
+ value: string;
770
+ contentLanguageId: string;
771
+ metadata?: {
772
+ prefix?: string | undefined;
773
+ suffix?: string | undefined;
774
+ } | null | undefined;
775
+ }[] | undefined;
776
+ }[] | undefined;
777
+ }, ...{
778
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
779
+ source: string;
780
+ key: string;
781
+ metadata?: Record<string, any> | undefined;
782
+ textUnits?: {
783
+ id: string;
784
+ metadata: Record<string, any>;
785
+ segments?: {
786
+ number: number;
787
+ id: string;
788
+ value: string;
789
+ contentLanguageId: string;
790
+ metadata?: {
791
+ prefix?: string | undefined;
792
+ suffix?: string | undefined;
793
+ } | null | undefined;
794
+ }[] | undefined;
795
+ }[] | undefined;
796
+ }[]];
797
+ file: {
798
+ path: string;
799
+ id: string;
800
+ storageId: string;
801
+ format: "HTML" | "JSON" | "YAML" | "DOCX" | "XLSX" | "PPTX" | "MARKDOWN" | "IDML";
802
+ } | null;
803
+ language: {
804
+ id: string;
805
+ locale: string;
806
+ };
807
+ }>;
808
+ export type ExportableItem = z.infer<typeof EXPORTABLE_ITEM>;
809
+ export declare const EXPORT_PROCESS_SCHEMA: z.ZodObject<{
810
+ id: z.ZodString;
811
+ projectId: z.ZodString;
812
+ createdAt: z.ZodString;
813
+ updatedAt: z.ZodNullable<z.ZodString>;
814
+ status: z.ZodEnum<["STARTED", "DATA_GATHERED", "COMPLETED", "FAILED"]>;
815
+ options: z.ZodDiscriminatedUnion<"outputType", [z.ZodObject<{
816
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
817
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
818
+ }, "strip", z.ZodTypeAny, {
819
+ languages?: string[] | undefined;
820
+ }, {
821
+ languages?: string[] | undefined;
822
+ }>>>;
823
+ } & {
824
+ outputType: z.ZodLiteral<"FILE">;
825
+ }, "strip", z.ZodTypeAny, {
826
+ outputType: "FILE";
827
+ items?: Record<string, {
828
+ languages?: string[] | undefined;
829
+ }> | undefined;
830
+ }, {
831
+ outputType: "FILE";
832
+ items?: Record<string, {
833
+ languages?: string[] | undefined;
834
+ }> | undefined;
835
+ }>, z.ZodObject<{
836
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
837
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
838
+ }, "strip", z.ZodTypeAny, {
839
+ languages?: string[] | undefined;
840
+ }, {
841
+ languages?: string[] | undefined;
842
+ }>>>;
843
+ } & {
844
+ outputType: z.ZodLiteral<"GIT">;
845
+ branchName: z.ZodOptional<z.ZodString>;
846
+ }, "strip", z.ZodTypeAny, {
847
+ outputType: "GIT";
848
+ items?: Record<string, {
849
+ languages?: string[] | undefined;
850
+ }> | undefined;
851
+ branchName?: string | undefined;
852
+ }, {
853
+ outputType: "GIT";
854
+ items?: Record<string, {
855
+ languages?: string[] | undefined;
856
+ }> | undefined;
857
+ branchName?: string | undefined;
858
+ }>, z.ZodObject<{
859
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
860
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
861
+ }, "strip", z.ZodTypeAny, {
862
+ languages?: string[] | undefined;
863
+ }, {
864
+ languages?: string[] | undefined;
865
+ }>>>;
866
+ } & {
867
+ outputType: z.ZodLiteral<"SHOPIFY">;
868
+ force: z.ZodOptional<z.ZodBoolean>;
869
+ useNonTranslatableMarkers: z.ZodOptional<z.ZodBoolean>;
870
+ }, "strip", z.ZodTypeAny, {
871
+ outputType: "SHOPIFY";
872
+ items?: Record<string, {
873
+ languages?: string[] | undefined;
874
+ }> | undefined;
875
+ force?: boolean | undefined;
876
+ useNonTranslatableMarkers?: boolean | undefined;
877
+ }, {
878
+ outputType: "SHOPIFY";
879
+ items?: Record<string, {
880
+ languages?: string[] | undefined;
881
+ }> | undefined;
882
+ force?: boolean | undefined;
883
+ useNonTranslatableMarkers?: boolean | undefined;
884
+ }>]>;
885
+ exportRequestId: z.ZodOptional<z.ZodString>;
886
+ }, "strip", z.ZodTypeAny, {
887
+ id: string;
888
+ options: {
889
+ outputType: "GIT";
890
+ items?: Record<string, {
891
+ languages?: string[] | undefined;
892
+ }> | undefined;
893
+ branchName?: string | undefined;
894
+ } | {
895
+ outputType: "SHOPIFY";
896
+ items?: Record<string, {
897
+ languages?: string[] | undefined;
898
+ }> | undefined;
899
+ force?: boolean | undefined;
900
+ useNonTranslatableMarkers?: boolean | undefined;
901
+ } | {
902
+ outputType: "FILE";
903
+ items?: Record<string, {
904
+ languages?: string[] | undefined;
905
+ }> | undefined;
906
+ };
907
+ status: "STARTED" | "DATA_GATHERED" | "COMPLETED" | "FAILED";
908
+ projectId: string;
909
+ createdAt: string;
910
+ updatedAt: string | null;
911
+ exportRequestId?: string | undefined;
912
+ }, {
913
+ id: string;
914
+ options: {
915
+ outputType: "GIT";
916
+ items?: Record<string, {
917
+ languages?: string[] | undefined;
918
+ }> | undefined;
919
+ branchName?: string | undefined;
920
+ } | {
921
+ outputType: "SHOPIFY";
922
+ items?: Record<string, {
923
+ languages?: string[] | undefined;
924
+ }> | undefined;
925
+ force?: boolean | undefined;
926
+ useNonTranslatableMarkers?: boolean | undefined;
927
+ } | {
928
+ outputType: "FILE";
929
+ items?: Record<string, {
930
+ languages?: string[] | undefined;
931
+ }> | undefined;
932
+ };
933
+ status: "STARTED" | "DATA_GATHERED" | "COMPLETED" | "FAILED";
934
+ projectId: string;
935
+ createdAt: string;
936
+ updatedAt: string | null;
937
+ exportRequestId?: string | undefined;
938
+ }>;
939
+ export declare const EXPORT_LANGUAGE_SCHEMA: z.ZodObject<{
940
+ id: z.ZodString;
941
+ projectId: z.ZodString;
942
+ workspaceId: z.ZodString;
943
+ locale: z.ZodString;
944
+ customLanguageName: z.ZodNullable<z.ZodString>;
945
+ createdAt: z.ZodString;
946
+ updatedAt: z.ZodNullable<z.ZodString>;
947
+ }, "strip", z.ZodTypeAny, {
948
+ id: string;
949
+ locale: string;
950
+ projectId: string;
951
+ createdAt: string;
952
+ updatedAt: string | null;
953
+ workspaceId: string;
954
+ customLanguageName: string | null;
955
+ }, {
956
+ id: string;
957
+ locale: string;
958
+ projectId: string;
959
+ createdAt: string;
960
+ updatedAt: string | null;
961
+ workspaceId: string;
962
+ customLanguageName: string | null;
963
+ }>;
964
+ export declare const PROCESSED_TEXT_UNIT_SCHEMA: z.ZodObject<{
965
+ id: z.ZodString;
966
+ translation: z.ZodString;
967
+ metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
968
+ }, "strip", z.ZodTypeAny, {
969
+ id: string;
970
+ metadata: Record<string, any>;
971
+ translation: string;
972
+ }, {
973
+ id: string;
974
+ metadata: Record<string, any>;
975
+ translation: string;
976
+ }>;
977
+ export declare const PROCESSED_CONTENT_UNIT_SCHEMA: z.ZodObject<{
978
+ type: z.ZodNativeEnum<{
979
+ readonly TEXT: "TEXT";
980
+ readonly HTML: "HTML";
981
+ readonly JSON: "JSON";
982
+ readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
983
+ }>;
984
+ key: z.ZodString;
985
+ textUnits: z.ZodArray<z.ZodObject<{
986
+ id: z.ZodString;
987
+ translation: z.ZodString;
988
+ metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
989
+ }, "strip", z.ZodTypeAny, {
990
+ id: string;
991
+ metadata: Record<string, any>;
992
+ translation: string;
993
+ }, {
994
+ id: string;
995
+ metadata: Record<string, any>;
996
+ translation: string;
997
+ }>, "many">;
998
+ }, "strip", z.ZodTypeAny, {
999
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
1000
+ textUnits: {
1001
+ id: string;
1002
+ metadata: Record<string, any>;
1003
+ translation: string;
1004
+ }[];
1005
+ key: string;
1006
+ }, {
1007
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
1008
+ textUnits: {
1009
+ id: string;
1010
+ metadata: Record<string, any>;
1011
+ translation: string;
1012
+ }[];
1013
+ key: string;
1014
+ }>;
1015
+ export declare const ITEM_SCHEMA: z.ZodObject<{
1016
+ id: z.ZodString;
1017
+ projectId: z.ZodString;
1018
+ name: z.ZodString;
1019
+ createdAt: z.ZodString;
1020
+ type: z.ZodNativeEnum<{
1021
+ readonly FILE: "FILE";
1022
+ readonly GENERIC_CONTENT_ITEM: "GENERIC_CONTENT_ITEM";
1023
+ }>;
1024
+ status: z.ZodEnum<["IMPORTING", "IMPORTED", "IMPORT_FAILED", "DELETED"]>;
1025
+ file: z.ZodOptional<z.ZodObject<{
1026
+ id: z.ZodString;
1027
+ storageId: z.ZodString;
1028
+ path: z.ZodOptional<z.ZodString>;
1029
+ format: z.ZodOptional<z.ZodString>;
1030
+ }, "strip", z.ZodTypeAny, {
1031
+ id: string;
1032
+ storageId: string;
1033
+ path?: string | undefined;
1034
+ format?: string | undefined;
1035
+ }, {
1036
+ id: string;
1037
+ storageId: string;
1038
+ path?: string | undefined;
1039
+ format?: string | undefined;
1040
+ }>>;
1041
+ metadata: z.ZodObject<{
1042
+ importItemId: z.ZodOptional<z.ZodString>;
1043
+ importProcessId: z.ZodOptional<z.ZodString>;
1044
+ }, "strip", z.ZodTypeAny, {
1045
+ importItemId?: string | undefined;
1046
+ importProcessId?: string | undefined;
1047
+ }, {
1048
+ importItemId?: string | undefined;
1049
+ importProcessId?: string | undefined;
1050
+ }>;
1051
+ }, "strip", z.ZodTypeAny, {
1052
+ name: string;
1053
+ id: string;
1054
+ type: "FILE" | "GENERIC_CONTENT_ITEM";
1055
+ status: "IMPORTING" | "IMPORTED" | "IMPORT_FAILED" | "DELETED";
1056
+ metadata: {
1057
+ importItemId?: string | undefined;
1058
+ importProcessId?: string | undefined;
1059
+ };
1060
+ projectId: string;
1061
+ createdAt: string;
1062
+ file?: {
1063
+ id: string;
1064
+ storageId: string;
1065
+ path?: string | undefined;
1066
+ format?: string | undefined;
1067
+ } | undefined;
1068
+ }, {
1069
+ name: string;
1070
+ id: string;
1071
+ type: "FILE" | "GENERIC_CONTENT_ITEM";
1072
+ status: "IMPORTING" | "IMPORTED" | "IMPORT_FAILED" | "DELETED";
1073
+ metadata: {
1074
+ importItemId?: string | undefined;
1075
+ importProcessId?: string | undefined;
1076
+ };
1077
+ projectId: string;
1078
+ createdAt: string;
1079
+ file?: {
1080
+ id: string;
1081
+ storageId: string;
1082
+ path?: string | undefined;
1083
+ format?: string | undefined;
1084
+ } | undefined;
1085
+ }>;
1086
+ export declare const SERIALIZED_EXPORT_DATA_SCHEMA: z.ZodObject<{
1087
+ process: z.ZodObject<{
1088
+ id: z.ZodString;
1089
+ projectId: z.ZodString;
1090
+ createdAt: z.ZodString;
1091
+ updatedAt: z.ZodNullable<z.ZodString>;
1092
+ status: z.ZodEnum<["STARTED", "DATA_GATHERED", "COMPLETED", "FAILED"]>;
1093
+ options: z.ZodDiscriminatedUnion<"outputType", [z.ZodObject<{
1094
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1095
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1096
+ }, "strip", z.ZodTypeAny, {
1097
+ languages?: string[] | undefined;
1098
+ }, {
1099
+ languages?: string[] | undefined;
1100
+ }>>>;
1101
+ } & {
1102
+ outputType: z.ZodLiteral<"FILE">;
1103
+ }, "strip", z.ZodTypeAny, {
1104
+ outputType: "FILE";
1105
+ items?: Record<string, {
1106
+ languages?: string[] | undefined;
1107
+ }> | undefined;
1108
+ }, {
1109
+ outputType: "FILE";
1110
+ items?: Record<string, {
1111
+ languages?: string[] | undefined;
1112
+ }> | undefined;
1113
+ }>, z.ZodObject<{
1114
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1115
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1116
+ }, "strip", z.ZodTypeAny, {
1117
+ languages?: string[] | undefined;
1118
+ }, {
1119
+ languages?: string[] | undefined;
1120
+ }>>>;
1121
+ } & {
1122
+ outputType: z.ZodLiteral<"GIT">;
1123
+ branchName: z.ZodOptional<z.ZodString>;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ outputType: "GIT";
1126
+ items?: Record<string, {
1127
+ languages?: string[] | undefined;
1128
+ }> | undefined;
1129
+ branchName?: string | undefined;
1130
+ }, {
1131
+ outputType: "GIT";
1132
+ items?: Record<string, {
1133
+ languages?: string[] | undefined;
1134
+ }> | undefined;
1135
+ branchName?: string | undefined;
1136
+ }>, z.ZodObject<{
1137
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1138
+ languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1139
+ }, "strip", z.ZodTypeAny, {
1140
+ languages?: string[] | undefined;
1141
+ }, {
1142
+ languages?: string[] | undefined;
1143
+ }>>>;
1144
+ } & {
1145
+ outputType: z.ZodLiteral<"SHOPIFY">;
1146
+ force: z.ZodOptional<z.ZodBoolean>;
1147
+ useNonTranslatableMarkers: z.ZodOptional<z.ZodBoolean>;
1148
+ }, "strip", z.ZodTypeAny, {
1149
+ outputType: "SHOPIFY";
1150
+ items?: Record<string, {
1151
+ languages?: string[] | undefined;
1152
+ }> | undefined;
1153
+ force?: boolean | undefined;
1154
+ useNonTranslatableMarkers?: boolean | undefined;
1155
+ }, {
1156
+ outputType: "SHOPIFY";
1157
+ items?: Record<string, {
1158
+ languages?: string[] | undefined;
1159
+ }> | undefined;
1160
+ force?: boolean | undefined;
1161
+ useNonTranslatableMarkers?: boolean | undefined;
1162
+ }>]>;
1163
+ exportRequestId: z.ZodOptional<z.ZodString>;
1164
+ }, "strip", z.ZodTypeAny, {
1165
+ id: string;
1166
+ options: {
1167
+ outputType: "GIT";
1168
+ items?: Record<string, {
1169
+ languages?: string[] | undefined;
1170
+ }> | undefined;
1171
+ branchName?: string | undefined;
1172
+ } | {
1173
+ outputType: "SHOPIFY";
1174
+ items?: Record<string, {
1175
+ languages?: string[] | undefined;
1176
+ }> | undefined;
1177
+ force?: boolean | undefined;
1178
+ useNonTranslatableMarkers?: boolean | undefined;
1179
+ } | {
1180
+ outputType: "FILE";
1181
+ items?: Record<string, {
1182
+ languages?: string[] | undefined;
1183
+ }> | undefined;
1184
+ };
1185
+ status: "STARTED" | "DATA_GATHERED" | "COMPLETED" | "FAILED";
1186
+ projectId: string;
1187
+ createdAt: string;
1188
+ updatedAt: string | null;
1189
+ exportRequestId?: string | undefined;
1190
+ }, {
1191
+ id: string;
1192
+ options: {
1193
+ outputType: "GIT";
1194
+ items?: Record<string, {
1195
+ languages?: string[] | undefined;
1196
+ }> | undefined;
1197
+ branchName?: string | undefined;
1198
+ } | {
1199
+ outputType: "SHOPIFY";
1200
+ items?: Record<string, {
1201
+ languages?: string[] | undefined;
1202
+ }> | undefined;
1203
+ force?: boolean | undefined;
1204
+ useNonTranslatableMarkers?: boolean | undefined;
1205
+ } | {
1206
+ outputType: "FILE";
1207
+ items?: Record<string, {
1208
+ languages?: string[] | undefined;
1209
+ }> | undefined;
1210
+ };
1211
+ status: "STARTED" | "DATA_GATHERED" | "COMPLETED" | "FAILED";
1212
+ projectId: string;
1213
+ createdAt: string;
1214
+ updatedAt: string | null;
1215
+ exportRequestId?: string | undefined;
1216
+ }>;
1217
+ language: z.ZodObject<{
1218
+ id: z.ZodString;
1219
+ projectId: z.ZodString;
1220
+ workspaceId: z.ZodString;
1221
+ locale: z.ZodString;
1222
+ customLanguageName: z.ZodNullable<z.ZodString>;
1223
+ createdAt: z.ZodString;
1224
+ updatedAt: z.ZodNullable<z.ZodString>;
1225
+ }, "strip", z.ZodTypeAny, {
1226
+ id: string;
1227
+ locale: string;
1228
+ projectId: string;
1229
+ createdAt: string;
1230
+ updatedAt: string | null;
1231
+ workspaceId: string;
1232
+ customLanguageName: string | null;
1233
+ }, {
1234
+ id: string;
1235
+ locale: string;
1236
+ projectId: string;
1237
+ createdAt: string;
1238
+ updatedAt: string | null;
1239
+ workspaceId: string;
1240
+ customLanguageName: string | null;
1241
+ }>;
1242
+ item: z.ZodObject<{
1243
+ id: z.ZodString;
1244
+ projectId: z.ZodString;
1245
+ name: z.ZodString;
1246
+ createdAt: z.ZodString;
1247
+ type: z.ZodNativeEnum<{
1248
+ readonly FILE: "FILE";
1249
+ readonly GENERIC_CONTENT_ITEM: "GENERIC_CONTENT_ITEM";
1250
+ }>;
1251
+ status: z.ZodEnum<["IMPORTING", "IMPORTED", "IMPORT_FAILED", "DELETED"]>;
1252
+ file: z.ZodOptional<z.ZodObject<{
1253
+ id: z.ZodString;
1254
+ storageId: z.ZodString;
1255
+ path: z.ZodOptional<z.ZodString>;
1256
+ format: z.ZodOptional<z.ZodString>;
1257
+ }, "strip", z.ZodTypeAny, {
1258
+ id: string;
1259
+ storageId: string;
1260
+ path?: string | undefined;
1261
+ format?: string | undefined;
1262
+ }, {
1263
+ id: string;
1264
+ storageId: string;
1265
+ path?: string | undefined;
1266
+ format?: string | undefined;
1267
+ }>>;
1268
+ metadata: z.ZodObject<{
1269
+ importItemId: z.ZodOptional<z.ZodString>;
1270
+ importProcessId: z.ZodOptional<z.ZodString>;
1271
+ }, "strip", z.ZodTypeAny, {
1272
+ importItemId?: string | undefined;
1273
+ importProcessId?: string | undefined;
1274
+ }, {
1275
+ importItemId?: string | undefined;
1276
+ importProcessId?: string | undefined;
1277
+ }>;
1278
+ }, "strip", z.ZodTypeAny, {
1279
+ name: string;
1280
+ id: string;
1281
+ type: "FILE" | "GENERIC_CONTENT_ITEM";
1282
+ status: "IMPORTING" | "IMPORTED" | "IMPORT_FAILED" | "DELETED";
1283
+ metadata: {
1284
+ importItemId?: string | undefined;
1285
+ importProcessId?: string | undefined;
1286
+ };
1287
+ projectId: string;
1288
+ createdAt: string;
1289
+ file?: {
1290
+ id: string;
1291
+ storageId: string;
1292
+ path?: string | undefined;
1293
+ format?: string | undefined;
1294
+ } | undefined;
1295
+ }, {
1296
+ name: string;
1297
+ id: string;
1298
+ type: "FILE" | "GENERIC_CONTENT_ITEM";
1299
+ status: "IMPORTING" | "IMPORTED" | "IMPORT_FAILED" | "DELETED";
1300
+ metadata: {
1301
+ importItemId?: string | undefined;
1302
+ importProcessId?: string | undefined;
1303
+ };
1304
+ projectId: string;
1305
+ createdAt: string;
1306
+ file?: {
1307
+ id: string;
1308
+ storageId: string;
1309
+ path?: string | undefined;
1310
+ format?: string | undefined;
1311
+ } | undefined;
1312
+ }>;
1313
+ contentUnits: z.ZodArray<z.ZodObject<{
1314
+ type: z.ZodNativeEnum<{
1315
+ readonly TEXT: "TEXT";
1316
+ readonly HTML: "HTML";
1317
+ readonly JSON: "JSON";
1318
+ readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
1319
+ }>;
1320
+ key: z.ZodString;
1321
+ textUnits: z.ZodArray<z.ZodObject<{
1322
+ id: z.ZodString;
1323
+ translation: z.ZodString;
1324
+ metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
1325
+ }, "strip", z.ZodTypeAny, {
1326
+ id: string;
1327
+ metadata: Record<string, any>;
1328
+ translation: string;
1329
+ }, {
1330
+ id: string;
1331
+ metadata: Record<string, any>;
1332
+ translation: string;
1333
+ }>, "many">;
1334
+ }, "strip", z.ZodTypeAny, {
1335
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
1336
+ textUnits: {
1337
+ id: string;
1338
+ metadata: Record<string, any>;
1339
+ translation: string;
1340
+ }[];
1341
+ key: string;
1342
+ }, {
1343
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
1344
+ textUnits: {
1345
+ id: string;
1346
+ metadata: Record<string, any>;
1347
+ translation: string;
1348
+ }[];
1349
+ key: string;
1350
+ }>, "many">;
1351
+ }, "strip", z.ZodTypeAny, {
1352
+ contentUnits: {
1353
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
1354
+ textUnits: {
1355
+ id: string;
1356
+ metadata: Record<string, any>;
1357
+ translation: string;
1358
+ }[];
1359
+ key: string;
1360
+ }[];
1361
+ language: {
1362
+ id: string;
1363
+ locale: string;
1364
+ projectId: string;
1365
+ createdAt: string;
1366
+ updatedAt: string | null;
1367
+ workspaceId: string;
1368
+ customLanguageName: string | null;
1369
+ };
1370
+ process: {
1371
+ id: string;
1372
+ options: {
1373
+ outputType: "GIT";
1374
+ items?: Record<string, {
1375
+ languages?: string[] | undefined;
1376
+ }> | undefined;
1377
+ branchName?: string | undefined;
1378
+ } | {
1379
+ outputType: "SHOPIFY";
1380
+ items?: Record<string, {
1381
+ languages?: string[] | undefined;
1382
+ }> | undefined;
1383
+ force?: boolean | undefined;
1384
+ useNonTranslatableMarkers?: boolean | undefined;
1385
+ } | {
1386
+ outputType: "FILE";
1387
+ items?: Record<string, {
1388
+ languages?: string[] | undefined;
1389
+ }> | undefined;
1390
+ };
1391
+ status: "STARTED" | "DATA_GATHERED" | "COMPLETED" | "FAILED";
1392
+ projectId: string;
1393
+ createdAt: string;
1394
+ updatedAt: string | null;
1395
+ exportRequestId?: string | undefined;
1396
+ };
1397
+ item: {
1398
+ name: string;
1399
+ id: string;
1400
+ type: "FILE" | "GENERIC_CONTENT_ITEM";
1401
+ status: "IMPORTING" | "IMPORTED" | "IMPORT_FAILED" | "DELETED";
1402
+ metadata: {
1403
+ importItemId?: string | undefined;
1404
+ importProcessId?: string | undefined;
1405
+ };
1406
+ projectId: string;
1407
+ createdAt: string;
1408
+ file?: {
1409
+ id: string;
1410
+ storageId: string;
1411
+ path?: string | undefined;
1412
+ format?: string | undefined;
1413
+ } | undefined;
1414
+ };
1415
+ }, {
1416
+ contentUnits: {
1417
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
1418
+ textUnits: {
1419
+ id: string;
1420
+ metadata: Record<string, any>;
1421
+ translation: string;
1422
+ }[];
1423
+ key: string;
1424
+ }[];
1425
+ language: {
1426
+ id: string;
1427
+ locale: string;
1428
+ projectId: string;
1429
+ createdAt: string;
1430
+ updatedAt: string | null;
1431
+ workspaceId: string;
1432
+ customLanguageName: string | null;
1433
+ };
1434
+ process: {
1435
+ id: string;
1436
+ options: {
1437
+ outputType: "GIT";
1438
+ items?: Record<string, {
1439
+ languages?: string[] | undefined;
1440
+ }> | undefined;
1441
+ branchName?: string | undefined;
1442
+ } | {
1443
+ outputType: "SHOPIFY";
1444
+ items?: Record<string, {
1445
+ languages?: string[] | undefined;
1446
+ }> | undefined;
1447
+ force?: boolean | undefined;
1448
+ useNonTranslatableMarkers?: boolean | undefined;
1449
+ } | {
1450
+ outputType: "FILE";
1451
+ items?: Record<string, {
1452
+ languages?: string[] | undefined;
1453
+ }> | undefined;
1454
+ };
1455
+ status: "STARTED" | "DATA_GATHERED" | "COMPLETED" | "FAILED";
1456
+ projectId: string;
1457
+ createdAt: string;
1458
+ updatedAt: string | null;
1459
+ exportRequestId?: string | undefined;
1460
+ };
1461
+ item: {
1462
+ name: string;
1463
+ id: string;
1464
+ type: "FILE" | "GENERIC_CONTENT_ITEM";
1465
+ status: "IMPORTING" | "IMPORTED" | "IMPORT_FAILED" | "DELETED";
1466
+ metadata: {
1467
+ importItemId?: string | undefined;
1468
+ importProcessId?: string | undefined;
1469
+ };
1470
+ projectId: string;
1471
+ createdAt: string;
1472
+ file?: {
1473
+ id: string;
1474
+ storageId: string;
1475
+ path?: string | undefined;
1476
+ format?: string | undefined;
1477
+ } | undefined;
1478
+ };
1479
+ }>;
1480
+ export declare const EXPORT_CONTENT_UNIT_TRANSLATION_SCHEMA: z.ZodObject<{
1481
+ id: z.ZodString;
1482
+ locale: z.ZodString;
1483
+ type: z.ZodNativeEnum<{
1484
+ readonly TEXT: "TEXT";
1485
+ readonly HTML: "HTML";
1486
+ readonly JSON: "JSON";
1487
+ readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
1488
+ }>;
1489
+ content: z.ZodString;
1490
+ source: z.ZodString;
1491
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1492
+ }, "strip", z.ZodTypeAny, {
1493
+ id: string;
1494
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
1495
+ source: string;
1496
+ locale: string;
1497
+ content: string;
1498
+ metadata?: Record<string, unknown> | undefined;
1499
+ }, {
1500
+ id: string;
1501
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
1502
+ source: string;
1503
+ locale: string;
1504
+ content: string;
1505
+ metadata?: Record<string, unknown> | undefined;
1506
+ }>;
1507
+ export declare const EXPORT_CONTENT_ITEM_SCHEMA: z.ZodObject<{
1508
+ id: z.ZodString;
1509
+ name: z.ZodString;
1510
+ contentUnitTranslations: z.ZodArray<z.ZodObject<{
1511
+ id: z.ZodString;
1512
+ locale: z.ZodString;
1513
+ type: z.ZodNativeEnum<{
1514
+ readonly TEXT: "TEXT";
1515
+ readonly HTML: "HTML";
1516
+ readonly JSON: "JSON";
1517
+ readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
1518
+ }>;
1519
+ content: z.ZodString;
1520
+ source: z.ZodString;
1521
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1522
+ }, "strip", z.ZodTypeAny, {
1523
+ id: string;
1524
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
1525
+ source: string;
1526
+ locale: string;
1527
+ content: string;
1528
+ metadata?: Record<string, unknown> | undefined;
1529
+ }, {
1530
+ id: string;
1531
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
1532
+ source: string;
1533
+ locale: string;
1534
+ content: string;
1535
+ metadata?: Record<string, unknown> | undefined;
1536
+ }>, "many">;
1537
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1538
+ }, "strip", z.ZodTypeAny, {
1539
+ name: string;
1540
+ id: string;
1541
+ contentUnitTranslations: {
1542
+ id: string;
1543
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
1544
+ source: string;
1545
+ locale: string;
1546
+ content: string;
1547
+ metadata?: Record<string, unknown> | undefined;
1548
+ }[];
1549
+ metadata?: Record<string, unknown> | undefined;
1550
+ }, {
1551
+ name: string;
1552
+ id: string;
1553
+ contentUnitTranslations: {
1554
+ id: string;
1555
+ type: "TEXT" | "HTML" | "JSON" | "CONTENTFUL_RICH_TEXT";
1556
+ source: string;
1557
+ locale: string;
1558
+ content: string;
1559
+ metadata?: Record<string, unknown> | undefined;
1560
+ }[];
1561
+ metadata?: Record<string, unknown> | undefined;
1562
+ }>;
1563
+ export declare const EXPORT_FILE_SCHEMA: z.ZodObject<{
1564
+ fullPathName: z.ZodString;
1565
+ originalName: z.ZodOptional<z.ZodString>;
1566
+ dataStorageKey: z.ZodObject<{
1567
+ protocol: z.ZodNativeEnum<{
1568
+ readonly REDIS: "REDIS";
1569
+ readonly FSS: "FSS";
1570
+ }>;
1571
+ key: z.ZodString;
1572
+ }, "strip", z.ZodTypeAny, {
1573
+ protocol: "REDIS" | "FSS";
1574
+ key: string;
1575
+ }, {
1576
+ protocol: "REDIS" | "FSS";
1577
+ key: string;
1578
+ }>;
1579
+ }, "strip", z.ZodTypeAny, {
1580
+ fullPathName: string;
1581
+ dataStorageKey: {
1582
+ protocol: "REDIS" | "FSS";
1583
+ key: string;
1584
+ };
1585
+ originalName?: string | undefined;
1586
+ }, {
1587
+ fullPathName: string;
1588
+ dataStorageKey: {
1589
+ protocol: "REDIS" | "FSS";
1590
+ key: string;
1591
+ };
1592
+ originalName?: string | undefined;
1593
+ }>;
1594
+ export type SerializedExportData = z.infer<typeof SERIALIZED_EXPORT_DATA_SCHEMA>;
1595
+ export type ContentUnitTranslation = z.infer<typeof EXPORT_CONTENT_UNIT_TRANSLATION_SCHEMA>;
1596
+ export type ExportContentItem = z.infer<typeof EXPORT_CONTENT_ITEM_SCHEMA>;
1597
+ export type ExportFile = z.infer<typeof EXPORT_FILE_SCHEMA>;
1598
+ export type ProcessedContentUnit = z.infer<typeof PROCESSED_CONTENT_UNIT_SCHEMA>;
1599
+ //# sourceMappingURL=exportObjects.d.ts.map