@lokalise/content-conversion-schemas 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/api/contentObjects.d.ts +112 -328
  2. package/dist/api/contentObjects.d.ts.map +1 -1
  3. package/dist/api/contentObjects.js +22 -4
  4. package/dist/api/contentObjects.js.map +1 -1
  5. package/dist/api/contentObjectsNew.d.ts +252 -0
  6. package/dist/api/contentObjectsNew.d.ts.map +1 -0
  7. package/dist/api/contentObjectsNew.js +79 -0
  8. package/dist/api/contentObjectsNew.js.map +1 -0
  9. package/dist/api/enums.d.ts +27 -0
  10. package/dist/api/enums.d.ts.map +1 -1
  11. package/dist/api/enums.js +22 -0
  12. package/dist/api/enums.js.map +1 -1
  13. package/dist/api/exportObjects.d.ts +237 -1369
  14. package/dist/api/exportObjects.d.ts.map +1 -1
  15. package/dist/api/exportObjects.js +37 -38
  16. package/dist/api/exportObjects.js.map +1 -1
  17. package/dist/common.d.ts +9 -7
  18. package/dist/common.d.ts.map +1 -1
  19. package/dist/common.js +9 -10
  20. package/dist/common.js.map +1 -1
  21. package/dist/events/conversion.d.ts +488 -0
  22. package/dist/events/conversion.d.ts.map +1 -0
  23. package/dist/events/conversion.js +60 -0
  24. package/dist/events/conversion.js.map +1 -0
  25. package/dist/events/export.d.ts +51 -4182
  26. package/dist/events/export.d.ts.map +1 -1
  27. package/dist/events/export.js +12 -192
  28. package/dist/events/export.js.map +1 -1
  29. package/dist/events/upload.d.ts +119 -1063
  30. package/dist/events/upload.d.ts.map +1 -1
  31. package/dist/events/upload.js +21 -29
  32. package/dist/events/upload.js.map +1 -1
  33. package/dist/index.d.ts +2 -0
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +2 -0
  36. package/dist/index.js.map +1 -1
  37. package/package.json +12 -9
@@ -1,28 +1,12 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
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
- }>;
3
+ languages: z.ZodOptional<z.ZodArray<z.ZodGUID>>;
4
+ }, z.core.$strip>;
9
5
  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
- }>;
6
+ items: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodObject<{
7
+ languages: z.ZodOptional<z.ZodArray<z.ZodGUID>>;
8
+ }, z.core.$strip>>>;
9
+ }, z.core.$strip>;
26
10
  /**
27
11
  * This schema is utilized when only essential information about a content language is required.
28
12
  * It includes the ID (e.g. to filter segments associated with a specific language), and the locale,
@@ -31,323 +15,105 @@ export declare const BASE_EXPORT_OPTIONS_SCHEMA: z.ZodObject<{
31
15
  * schema serves the current implementation needs.
32
16
  */
33
17
  export declare const CONTENT_LANGUAGE_IDENTIFIER_SCHEMA: z.ZodObject<{
34
- id: z.ZodString;
18
+ id: z.ZodGUID;
35
19
  locale: z.ZodString;
36
- }, "strip", z.ZodTypeAny, {
37
- id: string;
38
- locale: string;
39
- }, {
40
- id: string;
41
- locale: string;
42
- }>;
20
+ }, z.core.$strip>;
43
21
  export type ContentLanguageIdentifier = z.infer<typeof CONTENT_LANGUAGE_IDENTIFIER_SCHEMA>;
44
22
  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
- } & {
23
+ items: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodObject<{
24
+ languages: z.ZodOptional<z.ZodArray<z.ZodGUID>>;
25
+ }, z.core.$strip>>>;
53
26
  outputType: z.ZodLiteral<"GIT">;
54
27
  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
- }>;
28
+ }, z.core.$strip>;
68
29
  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
- } & {
30
+ items: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodObject<{
31
+ languages: z.ZodOptional<z.ZodArray<z.ZodGUID>>;
32
+ }, z.core.$strip>>>;
77
33
  outputType: z.ZodLiteral<"SHOPIFY">;
78
34
  force: z.ZodOptional<z.ZodBoolean>;
79
35
  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
- }>;
36
+ }, z.core.$strip>;
95
37
  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
- } & {
38
+ items: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodObject<{
39
+ languages: z.ZodOptional<z.ZodArray<z.ZodGUID>>;
40
+ }, z.core.$strip>>>;
104
41
  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
- } & {
42
+ }, z.core.$strip>;
43
+ export declare const EXPORT_OPTIONS_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
44
+ items: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodObject<{
45
+ languages: z.ZodOptional<z.ZodArray<z.ZodGUID>>;
46
+ }, z.core.$strip>>>;
125
47
  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
- } & {
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ items: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodObject<{
50
+ languages: z.ZodOptional<z.ZodArray<z.ZodGUID>>;
51
+ }, z.core.$strip>>>;
145
52
  outputType: z.ZodLiteral<"GIT">;
146
53
  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
- } & {
54
+ }, z.core.$strip>, z.ZodObject<{
55
+ items: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodObject<{
56
+ languages: z.ZodOptional<z.ZodArray<z.ZodGUID>>;
57
+ }, z.core.$strip>>>;
168
58
  outputType: z.ZodLiteral<"SHOPIFY">;
169
59
  force: z.ZodOptional<z.ZodBoolean>;
170
60
  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
- }>]>;
61
+ }, z.core.$strip>]>;
186
62
  export declare const SEGMENT_METADATA_SCHEMA: z.ZodObject<{
187
63
  prefix: z.ZodOptional<z.ZodString>;
188
64
  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
- }>;
65
+ }, z.core.$strip>;
196
66
  export type SegmentMetadata = z.infer<typeof SEGMENT_METADATA_SCHEMA>;
197
67
  export declare const SEGMENT_SCHEMA: z.ZodObject<{
198
- id: z.ZodString;
68
+ id: z.ZodGUID;
199
69
  number: z.ZodNumber;
200
70
  value: z.ZodString;
201
- status: z.ZodNativeEnum<{
71
+ status: z.ZodEnum<{
202
72
  readonly TRANSLATING: "TRANSLATING";
203
73
  readonly TRANSLATION_FAILED: "TRANSLATION_FAILED";
204
74
  readonly LQA_IN_PROGRESS: "LQA_IN_PROGRESS";
205
75
  readonly PENDING_REVIEW: "PENDING_REVIEW";
206
76
  readonly APPROVED: "APPROVED";
207
77
  }>;
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
- }>;
78
+ contentLanguageId: z.ZodGUID;
79
+ contentUnitId: z.ZodGUID;
80
+ projectId: z.ZodGUID;
81
+ }, z.core.$strip>;
228
82
  export type Segment = z.infer<typeof SEGMENT_SCHEMA>;
229
- export declare const EXPORTABLE_SEGMENT_SCHEMA: z.ZodObject<Pick<{
230
- id: z.ZodString;
83
+ export declare const EXPORTABLE_SEGMENT_SCHEMA: z.ZodObject<{
231
84
  number: z.ZodNumber;
85
+ id: z.ZodGUID;
232
86
  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"> & {
87
+ contentLanguageId: z.ZodGUID;
244
88
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
245
89
  prefix: z.ZodOptional<z.ZodString>;
246
90
  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
- }>;
91
+ }, z.core.$strip>>>;
92
+ }, z.core.$strip>;
273
93
  export type ExportableSegment = z.infer<typeof EXPORTABLE_SEGMENT_SCHEMA>;
274
94
  export declare const EXPORTABLE_TEXT_UNIT_SCHEMA: z.ZodObject<{
275
- id: z.ZodString;
95
+ id: z.ZodGUID;
276
96
  metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
277
- segments: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
278
- id: z.ZodString;
97
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
279
98
  number: z.ZodNumber;
99
+ id: z.ZodGUID;
280
100
  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"> & {
101
+ contentLanguageId: z.ZodGUID;
292
102
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
293
103
  prefix: z.ZodOptional<z.ZodString>;
294
104
  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
- }>;
105
+ }, z.core.$strip>>>;
106
+ }, z.core.$strip>>>;
107
+ }, z.core.$strip>;
348
108
  export type ExportableTextUnit = z.infer<typeof EXPORTABLE_TEXT_UNIT_SCHEMA>;
349
109
  export declare const EXPORTABLE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
350
- type: z.ZodNativeEnum<{
110
+ type: z.ZodEnum<{
111
+ readonly HTML_FILE: "HTML_FILE";
112
+ readonly DOCX_FILE: "DOCX_FILE";
113
+ readonly PPTX_FILE: "PPTX_FILE";
114
+ readonly MARKDOWN_FILE: "MARKDOWN_FILE";
115
+ readonly IDML_FILE: "IDML_FILE";
116
+ readonly JSON_FILE: "JSON_FILE";
351
117
  readonly TEXT: "TEXT";
352
118
  readonly HTML: "HTML";
353
119
  readonly JSON: "JSON";
@@ -356,217 +122,83 @@ export declare const EXPORTABLE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
356
122
  key: z.ZodString;
357
123
  source: z.ZodString;
358
124
  textUnits: z.ZodOptional<z.ZodArray<z.ZodObject<{
359
- id: z.ZodString;
125
+ id: z.ZodGUID;
360
126
  metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
361
- segments: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
362
- id: z.ZodString;
127
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
363
128
  number: z.ZodNumber;
129
+ id: z.ZodGUID;
364
130
  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"> & {
131
+ contentLanguageId: z.ZodGUID;
376
132
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
377
133
  prefix: z.ZodOptional<z.ZodString>;
378
134
  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">>;
135
+ }, z.core.$strip>>>;
136
+ }, z.core.$strip>>>;
137
+ }, z.core.$strip>>>;
432
138
  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
- }>;
139
+ }, z.core.$strip>;
472
140
  export type ExportableContentUnit = z.infer<typeof EXPORTABLE_CONTENT_UNIT_SCHEMA>;
473
141
  export declare const ITEM_METADATA_SCHEMA: z.ZodObject<{
474
142
  origin: z.ZodOptional<z.ZodString>;
475
- importItemId: z.ZodOptional<z.ZodString>;
143
+ importItemId: z.ZodOptional<z.ZodGUID>;
476
144
  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
- }>;
145
+ }, z.core.$strip>;
486
146
  export type ItemMetadata = z.infer<typeof ITEM_METADATA_SCHEMA>;
487
147
  export declare const FILE_DETAILS_SCHEMA: z.ZodObject<{
488
- id: z.ZodString;
148
+ id: z.ZodGUID;
489
149
  storageId: z.ZodString;
490
150
  path: z.ZodString;
491
- format: z.ZodNativeEnum<{
151
+ format: z.ZodEnum<{
492
152
  readonly JSON: "JSON";
493
153
  readonly YAML: "YAML";
494
- readonly HTML: "HTML";
495
154
  readonly DOCX: "DOCX";
496
- readonly XLSX: "XLSX";
497
155
  readonly PPTX: "PPTX";
156
+ readonly XLSX: "XLSX";
157
+ readonly HTML: "HTML";
498
158
  readonly MARKDOWN: "MARKDOWN";
499
159
  readonly IDML: "IDML";
500
160
  }>;
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
- }>;
161
+ }, z.core.$strip>;
512
162
  export type FileDetails = z.infer<typeof FILE_DETAILS_SCHEMA>;
513
163
  export declare const EXPORTABLE_ITEM: z.ZodObject<{
514
- id: z.ZodString;
515
- type: z.ZodNativeEnum<{
164
+ id: z.ZodGUID;
165
+ type: z.ZodEnum<{
516
166
  readonly FILE: "FILE";
517
167
  readonly GENERIC_CONTENT_ITEM: "GENERIC_CONTENT_ITEM";
518
168
  }>;
519
169
  name: z.ZodString;
520
170
  metadata: z.ZodObject<{
521
171
  origin: z.ZodOptional<z.ZodString>;
522
- importItemId: z.ZodOptional<z.ZodString>;
172
+ importItemId: z.ZodOptional<z.ZodGUID>;
523
173
  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
- }>;
174
+ }, z.core.$strip>;
533
175
  file: z.ZodNullable<z.ZodObject<{
534
- id: z.ZodString;
176
+ id: z.ZodGUID;
535
177
  storageId: z.ZodString;
536
178
  path: z.ZodString;
537
- format: z.ZodNativeEnum<{
179
+ format: z.ZodEnum<{
538
180
  readonly JSON: "JSON";
539
181
  readonly YAML: "YAML";
540
- readonly HTML: "HTML";
541
182
  readonly DOCX: "DOCX";
542
- readonly XLSX: "XLSX";
543
183
  readonly PPTX: "PPTX";
184
+ readonly XLSX: "XLSX";
185
+ readonly HTML: "HTML";
544
186
  readonly MARKDOWN: "MARKDOWN";
545
187
  readonly IDML: "IDML";
546
188
  }>;
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
- }>>;
189
+ }, z.core.$strip>>;
558
190
  language: z.ZodObject<{
559
- id: z.ZodString;
191
+ id: z.ZodGUID;
560
192
  locale: z.ZodString;
561
- }, "strip", z.ZodTypeAny, {
562
- id: string;
563
- locale: string;
564
- }, {
565
- id: string;
566
- locale: string;
567
- }>;
193
+ }, z.core.$strip>;
568
194
  contentUnits: z.ZodArray<z.ZodObject<{
569
- type: z.ZodNativeEnum<{
195
+ type: z.ZodEnum<{
196
+ readonly HTML_FILE: "HTML_FILE";
197
+ readonly DOCX_FILE: "DOCX_FILE";
198
+ readonly PPTX_FILE: "PPTX_FILE";
199
+ readonly MARKDOWN_FILE: "MARKDOWN_FILE";
200
+ readonly IDML_FILE: "IDML_FILE";
201
+ readonly JSON_FILE: "JSON_FILE";
570
202
  readonly TEXT: "TEXT";
571
203
  readonly HTML: "HTML";
572
204
  readonly JSON: "JSON";
@@ -575,407 +207,77 @@ export declare const EXPORTABLE_ITEM: z.ZodObject<{
575
207
  key: z.ZodString;
576
208
  source: z.ZodString;
577
209
  textUnits: z.ZodOptional<z.ZodArray<z.ZodObject<{
578
- id: z.ZodString;
210
+ id: z.ZodGUID;
579
211
  metadata: z.ZodRecord<z.ZodString, z.ZodAny>;
580
- segments: z.ZodOptional<z.ZodArray<z.ZodObject<Pick<{
581
- id: z.ZodString;
212
+ segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
582
213
  number: z.ZodNumber;
214
+ id: z.ZodGUID;
583
215
  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"> & {
216
+ contentLanguageId: z.ZodGUID;
595
217
  metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
596
218
  prefix: z.ZodOptional<z.ZodString>;
597
219
  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">>;
220
+ }, z.core.$strip>>>;
221
+ }, z.core.$strip>>>;
222
+ }, z.core.$strip>>>;
651
223
  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
- }>;
224
+ }, z.core.$strip>>;
225
+ }, z.core.$strip>;
808
226
  export type ExportableItem = z.infer<typeof EXPORTABLE_ITEM>;
809
227
  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
- } & {
228
+ id: z.ZodGUID;
229
+ projectId: z.ZodGUID;
230
+ createdAt: z.ZodISODateTime;
231
+ updatedAt: z.ZodNullable<z.ZodISODateTime>;
232
+ status: z.ZodEnum<{
233
+ STARTED: "STARTED";
234
+ DATA_GATHERED: "DATA_GATHERED";
235
+ COMPLETED: "COMPLETED";
236
+ FAILED: "FAILED";
237
+ }>;
238
+ options: z.ZodDiscriminatedUnion<[z.ZodObject<{
239
+ items: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodObject<{
240
+ languages: z.ZodOptional<z.ZodArray<z.ZodGUID>>;
241
+ }, z.core.$strip>>>;
824
242
  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
- } & {
243
+ }, z.core.$strip>, z.ZodObject<{
244
+ items: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodObject<{
245
+ languages: z.ZodOptional<z.ZodArray<z.ZodGUID>>;
246
+ }, z.core.$strip>>>;
844
247
  outputType: z.ZodLiteral<"GIT">;
845
248
  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
- } & {
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ items: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodObject<{
251
+ languages: z.ZodOptional<z.ZodArray<z.ZodGUID>>;
252
+ }, z.core.$strip>>>;
867
253
  outputType: z.ZodLiteral<"SHOPIFY">;
868
254
  force: z.ZodOptional<z.ZodBoolean>;
869
255
  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
- }>;
256
+ }, z.core.$strip>]>;
257
+ exportRequestId: z.ZodOptional<z.ZodGUID>;
258
+ }, z.core.$strip>;
939
259
  export declare const EXPORT_LANGUAGE_SCHEMA: z.ZodObject<{
940
- id: z.ZodString;
941
- projectId: z.ZodString;
942
- workspaceId: z.ZodString;
260
+ id: z.ZodGUID;
261
+ projectId: z.ZodGUID;
262
+ workspaceId: z.ZodGUID;
943
263
  locale: z.ZodString;
944
264
  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
- }>;
265
+ createdAt: z.ZodISODateTime;
266
+ updatedAt: z.ZodNullable<z.ZodISODateTime>;
267
+ }, z.core.$strip>;
964
268
  export declare const PROCESSED_TEXT_UNIT_SCHEMA: z.ZodObject<{
965
269
  id: z.ZodString;
966
270
  translation: z.ZodString;
967
271
  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
- }>;
272
+ }, z.core.$strip>;
977
273
  export declare const PROCESSED_CONTENT_UNIT_SCHEMA: z.ZodObject<{
978
- type: z.ZodNativeEnum<{
274
+ type: z.ZodEnum<{
275
+ readonly HTML_FILE: "HTML_FILE";
276
+ readonly DOCX_FILE: "DOCX_FILE";
277
+ readonly PPTX_FILE: "PPTX_FILE";
278
+ readonly MARKDOWN_FILE: "MARKDOWN_FILE";
279
+ readonly IDML_FILE: "IDML_FILE";
280
+ readonly JSON_FILE: "JSON_FILE";
979
281
  readonly TEXT: "TEXT";
980
282
  readonly HTML: "HTML";
981
283
  readonly JSON: "JSON";
@@ -986,332 +288,110 @@ export declare const PROCESSED_CONTENT_UNIT_SCHEMA: z.ZodObject<{
986
288
  id: z.ZodString;
987
289
  translation: z.ZodString;
988
290
  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
- }>;
291
+ }, z.core.$strip>>;
292
+ }, z.core.$strip>;
1015
293
  export declare const ITEM_SCHEMA: z.ZodObject<{
1016
- id: z.ZodString;
1017
- projectId: z.ZodString;
294
+ id: z.ZodGUID;
295
+ projectId: z.ZodGUID;
1018
296
  name: z.ZodString;
1019
- createdAt: z.ZodString;
1020
- type: z.ZodNativeEnum<{
297
+ createdAt: z.ZodISODateTime;
298
+ type: z.ZodEnum<{
1021
299
  readonly FILE: "FILE";
1022
300
  readonly GENERIC_CONTENT_ITEM: "GENERIC_CONTENT_ITEM";
1023
301
  }>;
1024
- status: z.ZodEnum<["IMPORTING", "IMPORTED", "IMPORT_FAILED", "DELETED"]>;
302
+ status: z.ZodEnum<{
303
+ IMPORTING: "IMPORTING";
304
+ IMPORTED: "IMPORTED";
305
+ IMPORT_FAILED: "IMPORT_FAILED";
306
+ DELETED: "DELETED";
307
+ }>;
1025
308
  file: z.ZodOptional<z.ZodObject<{
1026
- id: z.ZodString;
309
+ id: z.ZodGUID;
1027
310
  storageId: z.ZodString;
1028
311
  path: z.ZodOptional<z.ZodString>;
1029
312
  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
- }>>;
313
+ }, z.core.$strip>>;
1041
314
  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
- }>;
315
+ importItemId: z.ZodOptional<z.ZodGUID>;
316
+ importProcessId: z.ZodOptional<z.ZodGUID>;
317
+ }, z.core.$strip>;
318
+ }, z.core.$strip>;
1086
319
  export declare const SERIALIZED_EXPORT_DATA_SCHEMA: z.ZodObject<{
1087
320
  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
- } & {
321
+ id: z.ZodGUID;
322
+ projectId: z.ZodGUID;
323
+ createdAt: z.ZodISODateTime;
324
+ updatedAt: z.ZodNullable<z.ZodISODateTime>;
325
+ status: z.ZodEnum<{
326
+ STARTED: "STARTED";
327
+ DATA_GATHERED: "DATA_GATHERED";
328
+ COMPLETED: "COMPLETED";
329
+ FAILED: "FAILED";
330
+ }>;
331
+ options: z.ZodDiscriminatedUnion<[z.ZodObject<{
332
+ items: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodObject<{
333
+ languages: z.ZodOptional<z.ZodArray<z.ZodGUID>>;
334
+ }, z.core.$strip>>>;
1102
335
  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
- } & {
336
+ }, z.core.$strip>, z.ZodObject<{
337
+ items: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodObject<{
338
+ languages: z.ZodOptional<z.ZodArray<z.ZodGUID>>;
339
+ }, z.core.$strip>>>;
1122
340
  outputType: z.ZodLiteral<"GIT">;
1123
341
  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
- } & {
342
+ }, z.core.$strip>, z.ZodObject<{
343
+ items: z.ZodOptional<z.ZodRecord<z.ZodGUID, z.ZodObject<{
344
+ languages: z.ZodOptional<z.ZodArray<z.ZodGUID>>;
345
+ }, z.core.$strip>>>;
1145
346
  outputType: z.ZodLiteral<"SHOPIFY">;
1146
347
  force: z.ZodOptional<z.ZodBoolean>;
1147
348
  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
- }>;
349
+ }, z.core.$strip>]>;
350
+ exportRequestId: z.ZodOptional<z.ZodGUID>;
351
+ }, z.core.$strip>;
1217
352
  language: z.ZodObject<{
1218
- id: z.ZodString;
1219
- projectId: z.ZodString;
1220
- workspaceId: z.ZodString;
353
+ id: z.ZodGUID;
354
+ projectId: z.ZodGUID;
355
+ workspaceId: z.ZodGUID;
1221
356
  locale: z.ZodString;
1222
357
  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
- }>;
358
+ createdAt: z.ZodISODateTime;
359
+ updatedAt: z.ZodNullable<z.ZodISODateTime>;
360
+ }, z.core.$strip>;
1242
361
  item: z.ZodObject<{
1243
- id: z.ZodString;
1244
- projectId: z.ZodString;
362
+ id: z.ZodGUID;
363
+ projectId: z.ZodGUID;
1245
364
  name: z.ZodString;
1246
- createdAt: z.ZodString;
1247
- type: z.ZodNativeEnum<{
365
+ createdAt: z.ZodISODateTime;
366
+ type: z.ZodEnum<{
1248
367
  readonly FILE: "FILE";
1249
368
  readonly GENERIC_CONTENT_ITEM: "GENERIC_CONTENT_ITEM";
1250
369
  }>;
1251
- status: z.ZodEnum<["IMPORTING", "IMPORTED", "IMPORT_FAILED", "DELETED"]>;
370
+ status: z.ZodEnum<{
371
+ IMPORTING: "IMPORTING";
372
+ IMPORTED: "IMPORTED";
373
+ IMPORT_FAILED: "IMPORT_FAILED";
374
+ DELETED: "DELETED";
375
+ }>;
1252
376
  file: z.ZodOptional<z.ZodObject<{
1253
- id: z.ZodString;
377
+ id: z.ZodGUID;
1254
378
  storageId: z.ZodString;
1255
379
  path: z.ZodOptional<z.ZodString>;
1256
380
  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
- }>>;
381
+ }, z.core.$strip>>;
1268
382
  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
- }>;
383
+ importItemId: z.ZodOptional<z.ZodGUID>;
384
+ importProcessId: z.ZodOptional<z.ZodGUID>;
385
+ }, z.core.$strip>;
386
+ }, z.core.$strip>;
1313
387
  contentUnits: z.ZodArray<z.ZodObject<{
1314
- type: z.ZodNativeEnum<{
388
+ type: z.ZodEnum<{
389
+ readonly HTML_FILE: "HTML_FILE";
390
+ readonly DOCX_FILE: "DOCX_FILE";
391
+ readonly PPTX_FILE: "PPTX_FILE";
392
+ readonly MARKDOWN_FILE: "MARKDOWN_FILE";
393
+ readonly IDML_FILE: "IDML_FILE";
394
+ readonly JSON_FILE: "JSON_FILE";
1315
395
  readonly TEXT: "TEXT";
1316
396
  readonly HTML: "HTML";
1317
397
  readonly JSON: "JSON";
@@ -1322,165 +402,19 @@ export declare const SERIALIZED_EXPORT_DATA_SCHEMA: z.ZodObject<{
1322
402
  id: z.ZodString;
1323
403
  translation: z.ZodString;
1324
404
  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
- }>;
405
+ }, z.core.$strip>>;
406
+ }, z.core.$strip>>;
407
+ }, z.core.$strip>;
1480
408
  export declare const EXPORT_CONTENT_UNIT_TRANSLATION_SCHEMA: z.ZodObject<{
1481
409
  id: z.ZodString;
1482
410
  locale: z.ZodString;
1483
- type: z.ZodNativeEnum<{
411
+ type: z.ZodEnum<{
412
+ readonly HTML_FILE: "HTML_FILE";
413
+ readonly DOCX_FILE: "DOCX_FILE";
414
+ readonly PPTX_FILE: "PPTX_FILE";
415
+ readonly MARKDOWN_FILE: "MARKDOWN_FILE";
416
+ readonly IDML_FILE: "IDML_FILE";
417
+ readonly JSON_FILE: "JSON_FILE";
1484
418
  readonly TEXT: "TEXT";
1485
419
  readonly HTML: "HTML";
1486
420
  readonly JSON: "JSON";
@@ -1489,28 +423,20 @@ export declare const EXPORT_CONTENT_UNIT_TRANSLATION_SCHEMA: z.ZodObject<{
1489
423
  content: z.ZodString;
1490
424
  source: z.ZodString;
1491
425
  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
- }>;
426
+ }, z.core.$strip>;
1507
427
  export declare const EXPORT_CONTENT_ITEM_SCHEMA: z.ZodObject<{
1508
- id: z.ZodString;
428
+ id: z.ZodGUID;
1509
429
  name: z.ZodString;
1510
430
  contentUnitTranslations: z.ZodArray<z.ZodObject<{
1511
431
  id: z.ZodString;
1512
432
  locale: z.ZodString;
1513
- type: z.ZodNativeEnum<{
433
+ type: z.ZodEnum<{
434
+ readonly HTML_FILE: "HTML_FILE";
435
+ readonly DOCX_FILE: "DOCX_FILE";
436
+ readonly PPTX_FILE: "PPTX_FILE";
437
+ readonly MARKDOWN_FILE: "MARKDOWN_FILE";
438
+ readonly IDML_FILE: "IDML_FILE";
439
+ readonly JSON_FILE: "JSON_FILE";
1514
440
  readonly TEXT: "TEXT";
1515
441
  readonly HTML: "HTML";
1516
442
  readonly JSON: "JSON";
@@ -1519,78 +445,20 @@ export declare const EXPORT_CONTENT_ITEM_SCHEMA: z.ZodObject<{
1519
445
  content: z.ZodString;
1520
446
  source: z.ZodString;
1521
447
  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">;
448
+ }, z.core.$strip>>;
1537
449
  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
- }>;
450
+ }, z.core.$strip>;
1563
451
  export declare const EXPORT_FILE_SCHEMA: z.ZodObject<{
1564
452
  fullPathName: z.ZodString;
1565
453
  originalName: z.ZodOptional<z.ZodString>;
1566
454
  dataStorageKey: z.ZodObject<{
1567
- protocol: z.ZodNativeEnum<{
455
+ protocol: z.ZodEnum<{
1568
456
  readonly REDIS: "REDIS";
1569
457
  readonly FSS: "FSS";
1570
458
  }>;
1571
459
  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
- }>;
460
+ }, z.core.$strip>;
461
+ }, z.core.$strip>;
1594
462
  export type SerializedExportData = z.infer<typeof SERIALIZED_EXPORT_DATA_SCHEMA>;
1595
463
  export type ContentUnitTranslation = z.infer<typeof EXPORT_CONTENT_UNIT_TRANSLATION_SCHEMA>;
1596
464
  export type ExportContentItem = z.infer<typeof EXPORT_CONTENT_ITEM_SCHEMA>;