@lokalise/content-conversion-schemas 3.2.0 → 5.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.
- package/dist/api/contentObjectsNew.d.ts +259 -2
- package/dist/api/contentObjectsNew.d.ts.map +1 -1
- package/dist/api/contentObjectsNew.js +26 -2
- package/dist/api/contentObjectsNew.js.map +1 -1
- package/dist/common.d.ts +3 -3
- package/dist/common.js +3 -3
- package/dist/common.js.map +1 -1
- package/dist/events/conversion.d.ts +333 -65
- package/dist/events/conversion.d.ts.map +1 -1
- package/dist/events/conversion.js +2 -27
- package/dist/events/conversion.js.map +1 -1
- package/package.json +4 -4
|
@@ -161,10 +161,58 @@ export declare const PARSED_CONTENT_UNIT_SCHEMA_NEW: z.ZodObject<{
|
|
|
161
161
|
value: z.ZodOptional<z.ZodNever>;
|
|
162
162
|
}, z.core.$strip>]>>;
|
|
163
163
|
}, z.core.$strip>;
|
|
164
|
-
export declare const
|
|
164
|
+
export declare const CODED_ERROR_SCHEMA: z.ZodObject<{
|
|
165
|
+
code: z.ZodString;
|
|
166
|
+
message: z.ZodString;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
export declare const FAILED_CONTENT_ITEM_SCHEMA: z.ZodObject<{
|
|
169
|
+
id: z.ZodString;
|
|
170
|
+
name: z.ZodOptional<z.ZodString>;
|
|
171
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
172
|
+
state: z.ZodLiteral<"failed">;
|
|
173
|
+
error: z.ZodObject<{
|
|
174
|
+
code: z.ZodString;
|
|
175
|
+
message: z.ZodString;
|
|
176
|
+
}, z.core.$strip>;
|
|
177
|
+
contentUnits: z.ZodOptional<z.ZodNever>;
|
|
178
|
+
failedContentUnits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
179
|
+
error: z.ZodString;
|
|
180
|
+
rawContentUnit: z.ZodObject<{
|
|
181
|
+
id: z.ZodString;
|
|
182
|
+
type: z.ZodEnum<{
|
|
183
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
184
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
185
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
186
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
187
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
188
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
189
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
190
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
191
|
+
readonly TEXT: "TEXT";
|
|
192
|
+
readonly HTML: "HTML";
|
|
193
|
+
readonly JSON: "JSON";
|
|
194
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
195
|
+
}>;
|
|
196
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
197
|
+
type: z.ZodLiteral<"inline">;
|
|
198
|
+
value: z.ZodString;
|
|
199
|
+
storageId: z.ZodOptional<z.ZodNever>;
|
|
200
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
201
|
+
type: z.ZodLiteral<"remote">;
|
|
202
|
+
storageId: z.ZodString;
|
|
203
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
204
|
+
value: z.ZodOptional<z.ZodNever>;
|
|
205
|
+
}, z.core.$strip>]>;
|
|
206
|
+
context: z.ZodOptional<z.ZodString>;
|
|
207
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
}, z.core.$strip>>>;
|
|
210
|
+
}, z.core.$strip>;
|
|
211
|
+
export declare const PARTIALLY_FAILED_CONTENT_ITEM_SCHEMA: z.ZodObject<{
|
|
165
212
|
id: z.ZodString;
|
|
166
213
|
name: z.ZodOptional<z.ZodString>;
|
|
167
214
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
215
|
+
state: z.ZodLiteral<"partial_error">;
|
|
168
216
|
contentUnits: z.ZodArray<z.ZodObject<{
|
|
169
217
|
id: z.ZodString;
|
|
170
218
|
type: z.ZodEnum<{
|
|
@@ -259,9 +307,218 @@ export declare const PARSED_CONTENT_ITEM_NEW_SCHEMA: z.ZodObject<{
|
|
|
259
307
|
}, z.core.$strip>;
|
|
260
308
|
}, z.core.$strip>>;
|
|
261
309
|
}, z.core.$strip>;
|
|
310
|
+
export declare const PARSE_CONTENT_ITEM_RESULT_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
311
|
+
id: z.ZodString;
|
|
312
|
+
name: z.ZodOptional<z.ZodString>;
|
|
313
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
314
|
+
state: z.ZodLiteral<"failed">;
|
|
315
|
+
error: z.ZodObject<{
|
|
316
|
+
code: z.ZodString;
|
|
317
|
+
message: z.ZodString;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
contentUnits: z.ZodOptional<z.ZodNever>;
|
|
320
|
+
failedContentUnits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
321
|
+
error: z.ZodString;
|
|
322
|
+
rawContentUnit: z.ZodObject<{
|
|
323
|
+
id: z.ZodString;
|
|
324
|
+
type: z.ZodEnum<{
|
|
325
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
326
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
327
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
328
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
329
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
330
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
331
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
332
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
333
|
+
readonly TEXT: "TEXT";
|
|
334
|
+
readonly HTML: "HTML";
|
|
335
|
+
readonly JSON: "JSON";
|
|
336
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
337
|
+
}>;
|
|
338
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
339
|
+
type: z.ZodLiteral<"inline">;
|
|
340
|
+
value: z.ZodString;
|
|
341
|
+
storageId: z.ZodOptional<z.ZodNever>;
|
|
342
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
343
|
+
type: z.ZodLiteral<"remote">;
|
|
344
|
+
storageId: z.ZodString;
|
|
345
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
346
|
+
value: z.ZodOptional<z.ZodNever>;
|
|
347
|
+
}, z.core.$strip>]>;
|
|
348
|
+
context: z.ZodOptional<z.ZodString>;
|
|
349
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
350
|
+
}, z.core.$strip>;
|
|
351
|
+
}, z.core.$strip>>>;
|
|
352
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
353
|
+
id: z.ZodString;
|
|
354
|
+
name: z.ZodOptional<z.ZodString>;
|
|
355
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
356
|
+
state: z.ZodLiteral<"partial_error">;
|
|
357
|
+
contentUnits: z.ZodArray<z.ZodObject<{
|
|
358
|
+
id: z.ZodString;
|
|
359
|
+
type: z.ZodEnum<{
|
|
360
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
361
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
362
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
363
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
364
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
365
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
366
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
367
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
368
|
+
readonly TEXT: "TEXT";
|
|
369
|
+
readonly HTML: "HTML";
|
|
370
|
+
readonly JSON: "JSON";
|
|
371
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
372
|
+
}>;
|
|
373
|
+
context: z.ZodOptional<z.ZodString>;
|
|
374
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
375
|
+
parseResult: z.ZodUnion<readonly [z.ZodObject<{
|
|
376
|
+
type: z.ZodLiteral<"inline">;
|
|
377
|
+
textUnits: z.ZodArray<z.ZodObject<{
|
|
378
|
+
id: z.ZodString;
|
|
379
|
+
source: z.ZodObject<{
|
|
380
|
+
textCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
381
|
+
id: z.ZodString;
|
|
382
|
+
type: z.ZodEnum<{
|
|
383
|
+
readonly OPENING: "OPENING";
|
|
384
|
+
readonly CLOSING: "CLOSING";
|
|
385
|
+
readonly PLACEHOLDER: "PLACEHOLDER";
|
|
386
|
+
}>;
|
|
387
|
+
value: z.ZodString;
|
|
388
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
389
|
+
parser: z.ZodDefault<z.ZodLiteral<"okapi">>;
|
|
390
|
+
}, z.core.$strip>>>>;
|
|
391
|
+
hasBeenSegmented: z.ZodBoolean;
|
|
392
|
+
segments: z.ZodArray<z.ZodString>;
|
|
393
|
+
}, z.core.$strip>;
|
|
394
|
+
}, z.core.$strip>>;
|
|
395
|
+
parsedContentStorageId: z.ZodOptional<z.ZodNever>;
|
|
396
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
397
|
+
type: z.ZodLiteral<"remote">;
|
|
398
|
+
parsedContentStorageId: z.ZodString;
|
|
399
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
400
|
+
filePathWithLocalePlaceholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
401
|
+
textUnits: z.ZodOptional<z.ZodNever>;
|
|
402
|
+
}, z.core.$strip>]>;
|
|
403
|
+
sourceWordCount: z.ZodNumber;
|
|
404
|
+
textUnitCount: z.ZodNumber;
|
|
405
|
+
extractedLocale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
406
|
+
position: z.ZodNumber;
|
|
407
|
+
source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
408
|
+
type: z.ZodLiteral<"inline">;
|
|
409
|
+
value: z.ZodString;
|
|
410
|
+
storageId: z.ZodOptional<z.ZodNever>;
|
|
411
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
412
|
+
type: z.ZodLiteral<"remote">;
|
|
413
|
+
storageId: z.ZodString;
|
|
414
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
415
|
+
value: z.ZodOptional<z.ZodNever>;
|
|
416
|
+
}, z.core.$strip>]>>;
|
|
417
|
+
}, z.core.$strip>>;
|
|
418
|
+
failedContentUnits: z.ZodArray<z.ZodObject<{
|
|
419
|
+
error: z.ZodString;
|
|
420
|
+
rawContentUnit: z.ZodObject<{
|
|
421
|
+
id: z.ZodString;
|
|
422
|
+
type: z.ZodEnum<{
|
|
423
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
424
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
425
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
426
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
427
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
428
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
429
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
430
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
431
|
+
readonly TEXT: "TEXT";
|
|
432
|
+
readonly HTML: "HTML";
|
|
433
|
+
readonly JSON: "JSON";
|
|
434
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
435
|
+
}>;
|
|
436
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
437
|
+
type: z.ZodLiteral<"inline">;
|
|
438
|
+
value: z.ZodString;
|
|
439
|
+
storageId: z.ZodOptional<z.ZodNever>;
|
|
440
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
441
|
+
type: z.ZodLiteral<"remote">;
|
|
442
|
+
storageId: z.ZodString;
|
|
443
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
444
|
+
value: z.ZodOptional<z.ZodNever>;
|
|
445
|
+
}, z.core.$strip>]>;
|
|
446
|
+
context: z.ZodOptional<z.ZodString>;
|
|
447
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
448
|
+
}, z.core.$strip>;
|
|
449
|
+
}, z.core.$strip>>;
|
|
450
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
451
|
+
id: z.ZodString;
|
|
452
|
+
name: z.ZodOptional<z.ZodString>;
|
|
453
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
454
|
+
state: z.ZodLiteral<"parsed">;
|
|
455
|
+
contentUnits: z.ZodArray<z.ZodObject<{
|
|
456
|
+
id: z.ZodString;
|
|
457
|
+
type: z.ZodEnum<{
|
|
458
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
459
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
460
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
461
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
462
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
463
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
464
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
465
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
466
|
+
readonly TEXT: "TEXT";
|
|
467
|
+
readonly HTML: "HTML";
|
|
468
|
+
readonly JSON: "JSON";
|
|
469
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
470
|
+
}>;
|
|
471
|
+
context: z.ZodOptional<z.ZodString>;
|
|
472
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
473
|
+
parseResult: z.ZodUnion<readonly [z.ZodObject<{
|
|
474
|
+
type: z.ZodLiteral<"inline">;
|
|
475
|
+
textUnits: z.ZodArray<z.ZodObject<{
|
|
476
|
+
id: z.ZodString;
|
|
477
|
+
source: z.ZodObject<{
|
|
478
|
+
textCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
479
|
+
id: z.ZodString;
|
|
480
|
+
type: z.ZodEnum<{
|
|
481
|
+
readonly OPENING: "OPENING";
|
|
482
|
+
readonly CLOSING: "CLOSING";
|
|
483
|
+
readonly PLACEHOLDER: "PLACEHOLDER";
|
|
484
|
+
}>;
|
|
485
|
+
value: z.ZodString;
|
|
486
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
487
|
+
parser: z.ZodDefault<z.ZodLiteral<"okapi">>;
|
|
488
|
+
}, z.core.$strip>>>>;
|
|
489
|
+
hasBeenSegmented: z.ZodBoolean;
|
|
490
|
+
segments: z.ZodArray<z.ZodString>;
|
|
491
|
+
}, z.core.$strip>;
|
|
492
|
+
}, z.core.$strip>>;
|
|
493
|
+
parsedContentStorageId: z.ZodOptional<z.ZodNever>;
|
|
494
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
495
|
+
type: z.ZodLiteral<"remote">;
|
|
496
|
+
parsedContentStorageId: z.ZodString;
|
|
497
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
498
|
+
filePathWithLocalePlaceholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
499
|
+
textUnits: z.ZodOptional<z.ZodNever>;
|
|
500
|
+
}, z.core.$strip>]>;
|
|
501
|
+
sourceWordCount: z.ZodNumber;
|
|
502
|
+
textUnitCount: z.ZodNumber;
|
|
503
|
+
extractedLocale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
504
|
+
position: z.ZodNumber;
|
|
505
|
+
source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
506
|
+
type: z.ZodLiteral<"inline">;
|
|
507
|
+
value: z.ZodString;
|
|
508
|
+
storageId: z.ZodOptional<z.ZodNever>;
|
|
509
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
510
|
+
type: z.ZodLiteral<"remote">;
|
|
511
|
+
storageId: z.ZodString;
|
|
512
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
513
|
+
value: z.ZodOptional<z.ZodNever>;
|
|
514
|
+
}, z.core.$strip>]>>;
|
|
515
|
+
}, z.core.$strip>>;
|
|
516
|
+
}, z.core.$strip>]>;
|
|
262
517
|
export type RawContentUnitNew = z.infer<typeof RAW_CONTENT_UNIT_NEW_SCHEMA>;
|
|
263
518
|
export type RawContentItemNew = z.infer<typeof RAW_CONTENT_ITEM_NEW_SCHEMA>;
|
|
264
519
|
export type ParsedContentUnitResult = z.infer<typeof PARSED_CONTENT_UNIT_RESULT_SCHEMA>;
|
|
265
520
|
export type ParsedContentUnitNew = z.infer<typeof PARSED_CONTENT_UNIT_SCHEMA_NEW>;
|
|
266
|
-
export type
|
|
521
|
+
export type ParseContentItemResult = z.infer<typeof PARSE_CONTENT_ITEM_RESULT_SCHEMA>;
|
|
522
|
+
export type FailedContentItem = z.infer<typeof FAILED_CONTENT_ITEM_SCHEMA>;
|
|
523
|
+
export type PartiallyFailedContentItem = z.infer<typeof PARTIALLY_FAILED_CONTENT_ITEM_SCHEMA>;
|
|
267
524
|
//# sourceMappingURL=contentObjectsNew.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentObjectsNew.d.ts","sourceRoot":"","sources":["../../src/api/contentObjectsNew.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAG1B,eAAO,MAAM,mBAAmB;;;;;;;;;mBAY9B,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBtC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAO3C,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAC3E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAC3E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AACvF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AACjF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AACrF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAC1E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAA"}
|
|
@@ -72,7 +72,23 @@ export const PARSED_CONTENT_UNIT_SCHEMA_NEW = RAW_CONTENT_UNIT_NEW_SCHEMA.extend
|
|
|
72
72
|
position: z.number().int().nonnegative(), // >= 0
|
|
73
73
|
source: CONTENT_UNIT_SOURCE.optional(),
|
|
74
74
|
});
|
|
75
|
-
export const
|
|
75
|
+
export const CODED_ERROR_SCHEMA = z.object({
|
|
76
|
+
code: z.string().describe('Error code'),
|
|
77
|
+
message: z.string().describe('Error message'),
|
|
78
|
+
});
|
|
79
|
+
export const FAILED_CONTENT_ITEM_SCHEMA = RAW_CONTENT_ITEM_NEW_SCHEMA.extend({
|
|
80
|
+
state: z.literal('failed'),
|
|
81
|
+
error: CODED_ERROR_SCHEMA,
|
|
82
|
+
contentUnits: z.never().optional(),
|
|
83
|
+
failedContentUnits: z
|
|
84
|
+
.array(z.object({
|
|
85
|
+
error: z.string().describe('Error message.'),
|
|
86
|
+
rawContentUnit: RAW_CONTENT_UNIT_NEW_SCHEMA,
|
|
87
|
+
}))
|
|
88
|
+
.optional(),
|
|
89
|
+
});
|
|
90
|
+
export const PARTIALLY_FAILED_CONTENT_ITEM_SCHEMA = RAW_CONTENT_ITEM_NEW_SCHEMA.extend({
|
|
91
|
+
state: z.literal('partial_error'),
|
|
76
92
|
contentUnits: PARSED_CONTENT_UNIT_SCHEMA_NEW.array(),
|
|
77
93
|
failedContentUnits: z
|
|
78
94
|
.array(z.object({
|
|
@@ -80,5 +96,13 @@ export const PARSED_CONTENT_ITEM_NEW_SCHEMA = RAW_CONTENT_ITEM_NEW_SCHEMA.extend
|
|
|
80
96
|
rawContentUnit: RAW_CONTENT_UNIT_NEW_SCHEMA,
|
|
81
97
|
}))
|
|
82
98
|
.describe('Content units that failed to be parsed.'),
|
|
83
|
-
})
|
|
99
|
+
});
|
|
100
|
+
export const PARSE_CONTENT_ITEM_RESULT_SCHEMA = z.discriminatedUnion('state', [
|
|
101
|
+
FAILED_CONTENT_ITEM_SCHEMA,
|
|
102
|
+
PARTIALLY_FAILED_CONTENT_ITEM_SCHEMA,
|
|
103
|
+
RAW_CONTENT_ITEM_NEW_SCHEMA.extend({
|
|
104
|
+
state: z.literal('parsed'),
|
|
105
|
+
contentUnits: PARSED_CONTENT_UNIT_SCHEMA_NEW.array(),
|
|
106
|
+
}),
|
|
107
|
+
]);
|
|
84
108
|
//# sourceMappingURL=contentObjectsNew.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentObjectsNew.js","sourceRoot":"","sources":["../../src/api/contentObjectsNew.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAA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AM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,kBAAkB,CAAC,OAAO,EAAE;IAC5E,0BAA0B;IAC1B,oCAAoC;IACpC,2BAA2B,CAAC,MAAM,CAAC;QACjC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;QAC1B,YAAY,EAAE,8BAA8B,CAAC,KAAK,EAAE;KACrD,CAAC;CACH,CAAC,CAAA"}
|
package/dist/common.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const AwsRoutingConfig: {
|
|
|
9
9
|
readonly isExternal: true;
|
|
10
10
|
readonly queues: {
|
|
11
11
|
readonly contentConversionService: {
|
|
12
|
-
readonly
|
|
12
|
+
readonly queueName: "content-conversion-okapi_action_result";
|
|
13
13
|
readonly owner: "in-and-out";
|
|
14
14
|
readonly service: "content-conversion-service";
|
|
15
15
|
};
|
|
@@ -20,7 +20,7 @@ export declare const AwsRoutingConfig: {
|
|
|
20
20
|
readonly isExternal: true;
|
|
21
21
|
readonly queues: {
|
|
22
22
|
readonly contentConversionService: {
|
|
23
|
-
readonly
|
|
23
|
+
readonly queueName: "content-conversion-export_process";
|
|
24
24
|
readonly owner: "in-and-out";
|
|
25
25
|
readonly service: "content-conversion-service";
|
|
26
26
|
};
|
|
@@ -31,7 +31,7 @@ export declare const AwsRoutingConfig: {
|
|
|
31
31
|
readonly isExternal: true;
|
|
32
32
|
readonly queues: {
|
|
33
33
|
readonly contentConversionService: {
|
|
34
|
-
readonly
|
|
34
|
+
readonly queueName: "content-conversion-upload";
|
|
35
35
|
readonly owner: "in-and-out";
|
|
36
36
|
readonly service: "content-conversion-service";
|
|
37
37
|
};
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@ export const AwsRoutingConfig = {
|
|
|
4
4
|
isExternal: true,
|
|
5
5
|
queues: {
|
|
6
6
|
contentConversionService: {
|
|
7
|
-
|
|
7
|
+
queueName: 'content-conversion-okapi_action_result',
|
|
8
8
|
owner: 'in-and-out',
|
|
9
9
|
service: 'content-conversion-service',
|
|
10
10
|
},
|
|
@@ -15,7 +15,7 @@ export const AwsRoutingConfig = {
|
|
|
15
15
|
isExternal: true,
|
|
16
16
|
queues: {
|
|
17
17
|
contentConversionService: {
|
|
18
|
-
|
|
18
|
+
queueName: 'content-conversion-export_process',
|
|
19
19
|
owner: 'in-and-out',
|
|
20
20
|
service: 'content-conversion-service',
|
|
21
21
|
},
|
|
@@ -26,7 +26,7 @@ export const AwsRoutingConfig = {
|
|
|
26
26
|
isExternal: true,
|
|
27
27
|
queues: {
|
|
28
28
|
contentConversionService: {
|
|
29
|
-
|
|
29
|
+
queueName: 'content-conversion-upload',
|
|
30
30
|
owner: 'in-and-out',
|
|
31
31
|
service: 'content-conversion-service',
|
|
32
32
|
},
|
package/dist/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE;QACL,SAAS,EAAE,qBAAqB;QAChC,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE;YACN,wBAAwB,EAAE;gBACxB,
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE;QACL,SAAS,EAAE,qBAAqB;QAChC,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE;YACN,wBAAwB,EAAE;gBACxB,SAAS,EAAE,wCAAwC;gBACnD,KAAK,EAAE,YAAY;gBACnB,OAAO,EAAE,4BAA4B;aACtC;SACF;KACF;IACD,aAAa,EAAE;QACb,SAAS,EAAE,0BAA0B;QACrC,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE;YACN,wBAAwB,EAAE;gBACxB,SAAS,EAAE,mCAAmC;gBAC9C,KAAK,EAAE,YAAY;gBACnB,OAAO,EAAE,4BAA4B;aACtC;SACF;KACF;IACD,MAAM,EAAE;QACN,SAAS,EAAE,kBAAkB;QAC7B,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE;YACN,wBAAwB,EAAE;gBACxB,SAAS,EAAE,2BAA2B;gBACtC,KAAK,EAAE,YAAY;gBACnB,OAAO,EAAE,4BAA4B;aACtC;SACF;KACF;IACD,UAAU,EAAE;QACV,SAAS,EAAE,2BAA2B;QACtC,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,YAAY;QACnB,OAAO,EAAE,4BAA4B;KACtC;CACkD,CAAA;AAErD,MAAM,CAAC,MAAM,0BAA0B,GAAG,oBAAoB,CAAA;AAC9D,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAA"}
|
|
@@ -189,10 +189,53 @@ export declare const PARSE_CONTENT_COMMAND_RESULT_SCHEMA: z.ZodObject<{
|
|
|
189
189
|
commandId: z.ZodString;
|
|
190
190
|
projectId: z.ZodGUID;
|
|
191
191
|
parsingFailedItemsCount: z.ZodNumber;
|
|
192
|
-
|
|
192
|
+
results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
193
193
|
id: z.ZodString;
|
|
194
194
|
name: z.ZodOptional<z.ZodString>;
|
|
195
195
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
196
|
+
state: z.ZodLiteral<"failed">;
|
|
197
|
+
error: z.ZodObject<{
|
|
198
|
+
code: z.ZodString;
|
|
199
|
+
message: z.ZodString;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
contentUnits: z.ZodOptional<z.ZodNever>;
|
|
202
|
+
failedContentUnits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
203
|
+
error: z.ZodString;
|
|
204
|
+
rawContentUnit: z.ZodObject<{
|
|
205
|
+
id: z.ZodString;
|
|
206
|
+
type: z.ZodEnum<{
|
|
207
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
208
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
209
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
210
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
211
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
212
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
213
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
214
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
215
|
+
readonly TEXT: "TEXT";
|
|
216
|
+
readonly HTML: "HTML";
|
|
217
|
+
readonly JSON: "JSON";
|
|
218
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
219
|
+
}>;
|
|
220
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
221
|
+
type: z.ZodLiteral<"inline">;
|
|
222
|
+
value: z.ZodString;
|
|
223
|
+
storageId: z.ZodOptional<z.ZodNever>;
|
|
224
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
225
|
+
type: z.ZodLiteral<"remote">;
|
|
226
|
+
storageId: z.ZodString;
|
|
227
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
228
|
+
value: z.ZodOptional<z.ZodNever>;
|
|
229
|
+
}, z.core.$strip>]>;
|
|
230
|
+
context: z.ZodOptional<z.ZodString>;
|
|
231
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
232
|
+
}, z.core.$strip>;
|
|
233
|
+
}, z.core.$strip>>>;
|
|
234
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
235
|
+
id: z.ZodString;
|
|
236
|
+
name: z.ZodOptional<z.ZodString>;
|
|
237
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
238
|
+
state: z.ZodLiteral<"partial_error">;
|
|
196
239
|
contentUnits: z.ZodArray<z.ZodObject<{
|
|
197
240
|
id: z.ZodString;
|
|
198
241
|
type: z.ZodEnum<{
|
|
@@ -286,19 +329,74 @@ export declare const PARSE_CONTENT_COMMAND_RESULT_SCHEMA: z.ZodObject<{
|
|
|
286
329
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
287
330
|
}, z.core.$strip>;
|
|
288
331
|
}, z.core.$strip>>;
|
|
289
|
-
}, z.core.$strip
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
332
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
333
|
+
id: z.ZodString;
|
|
334
|
+
name: z.ZodOptional<z.ZodString>;
|
|
335
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
336
|
+
state: z.ZodLiteral<"parsed">;
|
|
337
|
+
contentUnits: z.ZodArray<z.ZodObject<{
|
|
338
|
+
id: z.ZodString;
|
|
339
|
+
type: z.ZodEnum<{
|
|
340
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
341
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
342
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
343
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
344
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
345
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
346
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
347
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
348
|
+
readonly TEXT: "TEXT";
|
|
349
|
+
readonly HTML: "HTML";
|
|
350
|
+
readonly JSON: "JSON";
|
|
351
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
352
|
+
}>;
|
|
353
|
+
context: z.ZodOptional<z.ZodString>;
|
|
354
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
355
|
+
parseResult: z.ZodUnion<readonly [z.ZodObject<{
|
|
356
|
+
type: z.ZodLiteral<"inline">;
|
|
357
|
+
textUnits: z.ZodArray<z.ZodObject<{
|
|
358
|
+
id: z.ZodString;
|
|
359
|
+
source: z.ZodObject<{
|
|
360
|
+
textCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
361
|
+
id: z.ZodString;
|
|
362
|
+
type: z.ZodEnum<{
|
|
363
|
+
readonly OPENING: "OPENING";
|
|
364
|
+
readonly CLOSING: "CLOSING";
|
|
365
|
+
readonly PLACEHOLDER: "PLACEHOLDER";
|
|
366
|
+
}>;
|
|
367
|
+
value: z.ZodString;
|
|
368
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
369
|
+
parser: z.ZodDefault<z.ZodLiteral<"okapi">>;
|
|
370
|
+
}, z.core.$strip>>>>;
|
|
371
|
+
hasBeenSegmented: z.ZodBoolean;
|
|
372
|
+
segments: z.ZodArray<z.ZodString>;
|
|
373
|
+
}, z.core.$strip>;
|
|
374
|
+
}, z.core.$strip>>;
|
|
375
|
+
parsedContentStorageId: z.ZodOptional<z.ZodNever>;
|
|
376
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
377
|
+
type: z.ZodLiteral<"remote">;
|
|
378
|
+
parsedContentStorageId: z.ZodString;
|
|
379
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
380
|
+
filePathWithLocalePlaceholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
381
|
+
textUnits: z.ZodOptional<z.ZodNever>;
|
|
382
|
+
}, z.core.$strip>]>;
|
|
383
|
+
sourceWordCount: z.ZodNumber;
|
|
384
|
+
textUnitCount: z.ZodNumber;
|
|
385
|
+
extractedLocale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
386
|
+
position: z.ZodNumber;
|
|
387
|
+
source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
388
|
+
type: z.ZodLiteral<"inline">;
|
|
389
|
+
value: z.ZodString;
|
|
390
|
+
storageId: z.ZodOptional<z.ZodNever>;
|
|
391
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
392
|
+
type: z.ZodLiteral<"remote">;
|
|
393
|
+
storageId: z.ZodString;
|
|
394
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
395
|
+
value: z.ZodOptional<z.ZodNever>;
|
|
396
|
+
}, z.core.$strip>]>>;
|
|
397
|
+
}, z.core.$strip>>;
|
|
398
|
+
}, z.core.$strip>]>>;
|
|
300
399
|
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
-
reason: z.ZodString;
|
|
302
400
|
}, z.core.$strip>;
|
|
303
401
|
export declare const ConversionCommands: {
|
|
304
402
|
'conversion.bulk_parse': {
|
|
@@ -594,10 +692,53 @@ export declare const ConversionCommandResults: {
|
|
|
594
692
|
commandId: z.ZodString;
|
|
595
693
|
projectId: z.ZodGUID;
|
|
596
694
|
parsingFailedItemsCount: z.ZodNumber;
|
|
597
|
-
|
|
695
|
+
results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
696
|
+
id: z.ZodString;
|
|
697
|
+
name: z.ZodOptional<z.ZodString>;
|
|
698
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
699
|
+
state: z.ZodLiteral<"failed">;
|
|
700
|
+
error: z.ZodObject<{
|
|
701
|
+
code: z.ZodString;
|
|
702
|
+
message: z.ZodString;
|
|
703
|
+
}, z.core.$strip>;
|
|
704
|
+
contentUnits: z.ZodOptional<z.ZodNever>;
|
|
705
|
+
failedContentUnits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
706
|
+
error: z.ZodString;
|
|
707
|
+
rawContentUnit: z.ZodObject<{
|
|
708
|
+
id: z.ZodString;
|
|
709
|
+
type: z.ZodEnum<{
|
|
710
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
711
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
712
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
713
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
714
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
715
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
716
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
717
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
718
|
+
readonly TEXT: "TEXT";
|
|
719
|
+
readonly HTML: "HTML";
|
|
720
|
+
readonly JSON: "JSON";
|
|
721
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
722
|
+
}>;
|
|
723
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
724
|
+
type: z.ZodLiteral<"inline">;
|
|
725
|
+
value: z.ZodString;
|
|
726
|
+
storageId: z.ZodOptional<z.ZodNever>;
|
|
727
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
728
|
+
type: z.ZodLiteral<"remote">;
|
|
729
|
+
storageId: z.ZodString;
|
|
730
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
731
|
+
value: z.ZodOptional<z.ZodNever>;
|
|
732
|
+
}, z.core.$strip>]>;
|
|
733
|
+
context: z.ZodOptional<z.ZodString>;
|
|
734
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
735
|
+
}, z.core.$strip>;
|
|
736
|
+
}, z.core.$strip>>>;
|
|
737
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
598
738
|
id: z.ZodString;
|
|
599
739
|
name: z.ZodOptional<z.ZodString>;
|
|
600
740
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
741
|
+
state: z.ZodLiteral<"partial_error">;
|
|
601
742
|
contentUnits: z.ZodArray<z.ZodObject<{
|
|
602
743
|
id: z.ZodString;
|
|
603
744
|
type: z.ZodEnum<{
|
|
@@ -691,7 +832,73 @@ export declare const ConversionCommandResults: {
|
|
|
691
832
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
692
833
|
}, z.core.$strip>;
|
|
693
834
|
}, z.core.$strip>>;
|
|
694
|
-
}, z.core.$strip
|
|
835
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
836
|
+
id: z.ZodString;
|
|
837
|
+
name: z.ZodOptional<z.ZodString>;
|
|
838
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
839
|
+
state: z.ZodLiteral<"parsed">;
|
|
840
|
+
contentUnits: z.ZodArray<z.ZodObject<{
|
|
841
|
+
id: z.ZodString;
|
|
842
|
+
type: z.ZodEnum<{
|
|
843
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
844
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
845
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
846
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
847
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
848
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
849
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
850
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
851
|
+
readonly TEXT: "TEXT";
|
|
852
|
+
readonly HTML: "HTML";
|
|
853
|
+
readonly JSON: "JSON";
|
|
854
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
855
|
+
}>;
|
|
856
|
+
context: z.ZodOptional<z.ZodString>;
|
|
857
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
858
|
+
parseResult: z.ZodUnion<readonly [z.ZodObject<{
|
|
859
|
+
type: z.ZodLiteral<"inline">;
|
|
860
|
+
textUnits: z.ZodArray<z.ZodObject<{
|
|
861
|
+
id: z.ZodString;
|
|
862
|
+
source: z.ZodObject<{
|
|
863
|
+
textCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
864
|
+
id: z.ZodString;
|
|
865
|
+
type: z.ZodEnum<{
|
|
866
|
+
readonly OPENING: "OPENING";
|
|
867
|
+
readonly CLOSING: "CLOSING";
|
|
868
|
+
readonly PLACEHOLDER: "PLACEHOLDER";
|
|
869
|
+
}>;
|
|
870
|
+
value: z.ZodString;
|
|
871
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
872
|
+
parser: z.ZodDefault<z.ZodLiteral<"okapi">>;
|
|
873
|
+
}, z.core.$strip>>>>;
|
|
874
|
+
hasBeenSegmented: z.ZodBoolean;
|
|
875
|
+
segments: z.ZodArray<z.ZodString>;
|
|
876
|
+
}, z.core.$strip>;
|
|
877
|
+
}, z.core.$strip>>;
|
|
878
|
+
parsedContentStorageId: z.ZodOptional<z.ZodNever>;
|
|
879
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
880
|
+
type: z.ZodLiteral<"remote">;
|
|
881
|
+
parsedContentStorageId: z.ZodString;
|
|
882
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
883
|
+
filePathWithLocalePlaceholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
884
|
+
textUnits: z.ZodOptional<z.ZodNever>;
|
|
885
|
+
}, z.core.$strip>]>;
|
|
886
|
+
sourceWordCount: z.ZodNumber;
|
|
887
|
+
textUnitCount: z.ZodNumber;
|
|
888
|
+
extractedLocale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
889
|
+
position: z.ZodNumber;
|
|
890
|
+
source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
891
|
+
type: z.ZodLiteral<"inline">;
|
|
892
|
+
value: z.ZodString;
|
|
893
|
+
storageId: z.ZodOptional<z.ZodNever>;
|
|
894
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
895
|
+
type: z.ZodLiteral<"remote">;
|
|
896
|
+
storageId: z.ZodString;
|
|
897
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
898
|
+
value: z.ZodOptional<z.ZodNever>;
|
|
899
|
+
}, z.core.$strip>]>>;
|
|
900
|
+
}, z.core.$strip>>;
|
|
901
|
+
}, z.core.$strip>]>>;
|
|
695
902
|
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
696
903
|
}, z.core.$strip>;
|
|
697
904
|
metadata: import("@message-queue-toolkit/schemas").MetadataObject;
|
|
@@ -710,10 +917,53 @@ export declare const ConversionCommandResults: {
|
|
|
710
917
|
commandId: z.ZodString;
|
|
711
918
|
projectId: z.ZodGUID;
|
|
712
919
|
parsingFailedItemsCount: z.ZodNumber;
|
|
713
|
-
|
|
920
|
+
results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
921
|
+
id: z.ZodString;
|
|
922
|
+
name: z.ZodOptional<z.ZodString>;
|
|
923
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
924
|
+
state: z.ZodLiteral<"failed">;
|
|
925
|
+
error: z.ZodObject<{
|
|
926
|
+
code: z.ZodString;
|
|
927
|
+
message: z.ZodString;
|
|
928
|
+
}, z.core.$strip>;
|
|
929
|
+
contentUnits: z.ZodOptional<z.ZodNever>;
|
|
930
|
+
failedContentUnits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
931
|
+
error: z.ZodString;
|
|
932
|
+
rawContentUnit: z.ZodObject<{
|
|
933
|
+
id: z.ZodString;
|
|
934
|
+
type: z.ZodEnum<{
|
|
935
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
936
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
937
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
938
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
939
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
940
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
941
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
942
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
943
|
+
readonly TEXT: "TEXT";
|
|
944
|
+
readonly HTML: "HTML";
|
|
945
|
+
readonly JSON: "JSON";
|
|
946
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
947
|
+
}>;
|
|
948
|
+
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
949
|
+
type: z.ZodLiteral<"inline">;
|
|
950
|
+
value: z.ZodString;
|
|
951
|
+
storageId: z.ZodOptional<z.ZodNever>;
|
|
952
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
953
|
+
type: z.ZodLiteral<"remote">;
|
|
954
|
+
storageId: z.ZodString;
|
|
955
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
956
|
+
value: z.ZodOptional<z.ZodNever>;
|
|
957
|
+
}, z.core.$strip>]>;
|
|
958
|
+
context: z.ZodOptional<z.ZodString>;
|
|
959
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
960
|
+
}, z.core.$strip>;
|
|
961
|
+
}, z.core.$strip>>>;
|
|
962
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
714
963
|
id: z.ZodString;
|
|
715
964
|
name: z.ZodOptional<z.ZodString>;
|
|
716
965
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
966
|
+
state: z.ZodLiteral<"partial_error">;
|
|
717
967
|
contentUnits: z.ZodArray<z.ZodObject<{
|
|
718
968
|
id: z.ZodString;
|
|
719
969
|
type: z.ZodEnum<{
|
|
@@ -807,7 +1057,73 @@ export declare const ConversionCommandResults: {
|
|
|
807
1057
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
808
1058
|
}, z.core.$strip>;
|
|
809
1059
|
}, z.core.$strip>>;
|
|
810
|
-
}, z.core.$strip
|
|
1060
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1061
|
+
id: z.ZodString;
|
|
1062
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1063
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1064
|
+
state: z.ZodLiteral<"parsed">;
|
|
1065
|
+
contentUnits: z.ZodArray<z.ZodObject<{
|
|
1066
|
+
id: z.ZodString;
|
|
1067
|
+
type: z.ZodEnum<{
|
|
1068
|
+
readonly HTML_FILE: "HTML_FILE";
|
|
1069
|
+
readonly DOCX_FILE: "DOCX_FILE";
|
|
1070
|
+
readonly PPTX_FILE: "PPTX_FILE";
|
|
1071
|
+
readonly XLSX_FILE: "XLSX_FILE";
|
|
1072
|
+
readonly MARKDOWN_FILE: "MARKDOWN_FILE";
|
|
1073
|
+
readonly IDML_FILE: "IDML_FILE";
|
|
1074
|
+
readonly JSON_FILE: "JSON_FILE";
|
|
1075
|
+
readonly YAML_FILE: "YAML_FILE";
|
|
1076
|
+
readonly TEXT: "TEXT";
|
|
1077
|
+
readonly HTML: "HTML";
|
|
1078
|
+
readonly JSON: "JSON";
|
|
1079
|
+
readonly CONTENTFUL_RICH_TEXT: "CONTENTFUL_RICH_TEXT";
|
|
1080
|
+
}>;
|
|
1081
|
+
context: z.ZodOptional<z.ZodString>;
|
|
1082
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1083
|
+
parseResult: z.ZodUnion<readonly [z.ZodObject<{
|
|
1084
|
+
type: z.ZodLiteral<"inline">;
|
|
1085
|
+
textUnits: z.ZodArray<z.ZodObject<{
|
|
1086
|
+
id: z.ZodString;
|
|
1087
|
+
source: z.ZodObject<{
|
|
1088
|
+
textCodes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1089
|
+
id: z.ZodString;
|
|
1090
|
+
type: z.ZodEnum<{
|
|
1091
|
+
readonly OPENING: "OPENING";
|
|
1092
|
+
readonly CLOSING: "CLOSING";
|
|
1093
|
+
readonly PLACEHOLDER: "PLACEHOLDER";
|
|
1094
|
+
}>;
|
|
1095
|
+
value: z.ZodString;
|
|
1096
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1097
|
+
parser: z.ZodDefault<z.ZodLiteral<"okapi">>;
|
|
1098
|
+
}, z.core.$strip>>>>;
|
|
1099
|
+
hasBeenSegmented: z.ZodBoolean;
|
|
1100
|
+
segments: z.ZodArray<z.ZodString>;
|
|
1101
|
+
}, z.core.$strip>;
|
|
1102
|
+
}, z.core.$strip>>;
|
|
1103
|
+
parsedContentStorageId: z.ZodOptional<z.ZodNever>;
|
|
1104
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1105
|
+
type: z.ZodLiteral<"remote">;
|
|
1106
|
+
parsedContentStorageId: z.ZodString;
|
|
1107
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
1108
|
+
filePathWithLocalePlaceholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1109
|
+
textUnits: z.ZodOptional<z.ZodNever>;
|
|
1110
|
+
}, z.core.$strip>]>;
|
|
1111
|
+
sourceWordCount: z.ZodNumber;
|
|
1112
|
+
textUnitCount: z.ZodNumber;
|
|
1113
|
+
extractedLocale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1114
|
+
position: z.ZodNumber;
|
|
1115
|
+
source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
1116
|
+
type: z.ZodLiteral<"inline">;
|
|
1117
|
+
value: z.ZodString;
|
|
1118
|
+
storageId: z.ZodOptional<z.ZodNever>;
|
|
1119
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1120
|
+
type: z.ZodLiteral<"remote">;
|
|
1121
|
+
storageId: z.ZodString;
|
|
1122
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
1123
|
+
value: z.ZodOptional<z.ZodNever>;
|
|
1124
|
+
}, z.core.$strip>]>>;
|
|
1125
|
+
}, z.core.$strip>>;
|
|
1126
|
+
}, z.core.$strip>]>>;
|
|
811
1127
|
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
812
1128
|
}, z.core.$strip>;
|
|
813
1129
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -977,53 +1293,6 @@ export declare const ConversionCommandResults: {
|
|
|
977
1293
|
}>>;
|
|
978
1294
|
}, z.core.$strip>;
|
|
979
1295
|
};
|
|
980
|
-
'conversion_result.bulk_parse_error': {
|
|
981
|
-
producedBy: string[];
|
|
982
|
-
snsTopic: "content-conversion_result";
|
|
983
|
-
consumerSchema: z.ZodObject<{
|
|
984
|
-
id: z.ZodString;
|
|
985
|
-
timestamp: z.ZodISODateTime;
|
|
986
|
-
type: z.ZodLiteral<"conversion_result.bulk_parse_error">;
|
|
987
|
-
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
988
|
-
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
989
|
-
payload: z.ZodObject<{
|
|
990
|
-
requester: z.ZodEnum<{
|
|
991
|
-
readonly EXPERT: "EXPERT";
|
|
992
|
-
readonly NEXT_GEN: "NEXT_GEN";
|
|
993
|
-
}>;
|
|
994
|
-
commandId: z.ZodGUID;
|
|
995
|
-
projectId: z.ZodGUID;
|
|
996
|
-
parsingFailedItemsCount: z.ZodNumber;
|
|
997
|
-
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
998
|
-
reason: z.ZodString;
|
|
999
|
-
}, z.core.$strip>;
|
|
1000
|
-
metadata: import("@message-queue-toolkit/schemas").MetadataObject;
|
|
1001
|
-
}, z.core.$strip>;
|
|
1002
|
-
publisherSchema: z.ZodObject<{
|
|
1003
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1004
|
-
timestamp: z.ZodOptional<z.ZodISODateTime>;
|
|
1005
|
-
type: z.ZodLiteral<"conversion_result.bulk_parse_error">;
|
|
1006
|
-
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1007
|
-
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
1008
|
-
payload: z.ZodObject<{
|
|
1009
|
-
requester: z.ZodEnum<{
|
|
1010
|
-
readonly EXPERT: "EXPERT";
|
|
1011
|
-
readonly NEXT_GEN: "NEXT_GEN";
|
|
1012
|
-
}>;
|
|
1013
|
-
commandId: z.ZodGUID;
|
|
1014
|
-
projectId: z.ZodGUID;
|
|
1015
|
-
parsingFailedItemsCount: z.ZodNumber;
|
|
1016
|
-
locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1017
|
-
reason: z.ZodString;
|
|
1018
|
-
}, z.core.$strip>;
|
|
1019
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
1020
|
-
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
1021
|
-
producedBy: z.ZodOptional<z.ZodString>;
|
|
1022
|
-
originatedFrom: z.ZodOptional<z.ZodString>;
|
|
1023
|
-
correlationId: z.ZodOptional<z.ZodString>;
|
|
1024
|
-
}>>;
|
|
1025
|
-
}, z.core.$strip>;
|
|
1026
|
-
};
|
|
1027
1296
|
};
|
|
1028
1297
|
export type ConversionBulkParseCommandPayload = z.infer<typeof PARSE_CONTENT_COMMAND_SCHEMA>;
|
|
1029
1298
|
export type ConversionBulkParseConsumerCommand = ConsumerMessageSchema<(typeof ConversionCommands)['conversion.bulk_parse']>;
|
|
@@ -1034,5 +1303,4 @@ export type ConversionBulkParseCommand = PublisherMessageSchema<(typeof Conversi
|
|
|
1034
1303
|
export type ConversionBulkTranslateCommand = PublisherMessageSchema<(typeof ConversionCommands)['conversion.bulk_translate']>;
|
|
1035
1304
|
export type ConversionBulkParseResultCommand = PublisherMessageSchema<(typeof ConversionCommandResults)['conversion_result.bulk_parse']>;
|
|
1036
1305
|
export type ConversionBulkTranslateResultCommand = PublisherMessageSchema<(typeof ConversionCommandResults)['conversion_result.bulk_translate']>;
|
|
1037
|
-
export type ConversionBulkParseErrorResultCommand = PublisherMessageSchema<(typeof ConversionCommandResults)['conversion_result.bulk_parse_error']>;
|
|
1038
1306
|
//# sourceMappingURL=conversion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversion.d.ts","sourceRoot":"","sources":["../../src/events/conversion.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,qBAAqB,EAE1B,KAAK,sBAAsB,EAE5B,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAY1B,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAac,CAAA;AAChE,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAaa,CAAA;AAE9D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmBsB,CAAA;AAE/D,eAAO,MAAM,mCAAmC
|
|
1
|
+
{"version":3,"file":"conversion.d.ts","sourceRoot":"","sources":["../../src/events/conversion.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,qBAAqB,EAE1B,KAAK,sBAAsB,EAE5B,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAY1B,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAac,CAAA;AAChE,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAaa,CAAA;AAE9D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmBsB,CAAA;AAE/D,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBc,CAAA;AAEnD,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAE5F,MAAM,MAAM,kCAAkC,GAAG,qBAAqB,CACpE,CAAC,OAAO,kBAAkB,CAAC,CAAC,uBAAuB,CAAC,CACrD,CAAA;AACD,MAAM,MAAM,sCAAsC,GAAG,qBAAqB,CACxE,CAAC,OAAO,kBAAkB,CAAC,CAAC,2BAA2B,CAAC,CACzD,CAAA;AACD,MAAM,MAAM,wCAAwC,GAAG,qBAAqB,CAC1E,CAAC,OAAO,wBAAwB,CAAC,CAAC,8BAA8B,CAAC,CAClE,CAAA;AACD,MAAM,MAAM,4CAA4C,GAAG,qBAAqB,CAC9E,CAAC,OAAO,wBAAwB,CAAC,CAAC,kCAAkC,CAAC,CACtE,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,CAC7D,CAAC,OAAO,kBAAkB,CAAC,CAAC,uBAAuB,CAAC,CACrD,CAAA;AACD,MAAM,MAAM,8BAA8B,GAAG,sBAAsB,CACjE,CAAC,OAAO,kBAAkB,CAAC,CAAC,2BAA2B,CAAC,CACzD,CAAA;AACD,MAAM,MAAM,gCAAgC,GAAG,sBAAsB,CACnE,CAAC,OAAO,wBAAwB,CAAC,CAAC,8BAA8B,CAAC,CAClE,CAAA;AACD,MAAM,MAAM,oCAAoC,GAAG,sBAAsB,CACvE,CAAC,OAAO,wBAAwB,CAAC,CAAC,kCAAkC,CAAC,CACtE,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isSupportedLocale } from '@lokalise/supported-languages';
|
|
2
2
|
import { enrichMessageSchemaWithBase, } from '@message-queue-toolkit/schemas';
|
|
3
3
|
import { z } from 'zod/v4';
|
|
4
|
-
import {
|
|
4
|
+
import { PARSE_CONTENT_ITEM_RESULT_SCHEMA, RAW_CONTENT_ITEM_NEW_SCHEMA, } from "../api/contentObjectsNew.js";
|
|
5
5
|
import { RequesterEnum } from "../api/enums.js";
|
|
6
6
|
import { CONTENT_LANGUAGE_IDENTIFIER_SCHEMA } from "../api/exportObjects.js";
|
|
7
7
|
import { ITEM_TRANSLATION_RESULT_SCHEMA, TRANSLATABLE_ITEM } from "../api/translationObjects.js";
|
|
@@ -58,7 +58,7 @@ export const PARSE_CONTENT_COMMAND_RESULT_SCHEMA = z
|
|
|
58
58
|
.describe('Unique ID for tracking purposes. Equal to commandId from the PARSE_CONTENT_COMMAND_SCHEMA'),
|
|
59
59
|
projectId: z.guid().describe(PROJECT_ID_DESCRIPTION),
|
|
60
60
|
parsingFailedItemsCount: z.number().describe('Number of failed items during parsing'),
|
|
61
|
-
|
|
61
|
+
results: PARSE_CONTENT_ITEM_RESULT_SCHEMA.array(),
|
|
62
62
|
locale: z
|
|
63
63
|
.string()
|
|
64
64
|
.min(1)
|
|
@@ -68,24 +68,6 @@ export const PARSE_CONTENT_COMMAND_RESULT_SCHEMA = z
|
|
|
68
68
|
.nullish(),
|
|
69
69
|
})
|
|
70
70
|
.describe('Command for parsing of items for a given project');
|
|
71
|
-
export const PARSE_CONTENT_COMMAND_ERROR_RESULT_SCHEMA = z
|
|
72
|
-
.object({
|
|
73
|
-
requester: z.enum(RequesterEnum).describe('The requester of the parsing operation'),
|
|
74
|
-
commandId: z
|
|
75
|
-
.guid()
|
|
76
|
-
.describe('Unique ID for tracking purposes. Equal to commandId from the PARSE_CONTENT_COMMAND_SCHEMA'),
|
|
77
|
-
projectId: z.guid().describe(PROJECT_ID_DESCRIPTION),
|
|
78
|
-
parsingFailedItemsCount: z.number().describe('Number of failed items during parsing'),
|
|
79
|
-
locale: z
|
|
80
|
-
.string()
|
|
81
|
-
.min(1)
|
|
82
|
-
.refine(isSupportedLocale, {
|
|
83
|
-
message: 'Invalid locale',
|
|
84
|
-
})
|
|
85
|
-
.nullish(),
|
|
86
|
-
reason: z.string().min(1),
|
|
87
|
-
})
|
|
88
|
-
.describe('Command for parsing of items for a given project');
|
|
89
71
|
const snsTopic = AwsRoutingConfig.conversion.topicName;
|
|
90
72
|
export const ConversionCommands = {
|
|
91
73
|
'conversion.bulk_parse': {
|
|
@@ -114,12 +96,5 @@ export const ConversionCommandResults = {
|
|
|
114
96
|
producedBy: [CONTENT_CONVERSION_SERVICE],
|
|
115
97
|
snsTopic,
|
|
116
98
|
},
|
|
117
|
-
'conversion_result.bulk_parse_error': {
|
|
118
|
-
...enrichMessageSchemaWithBase('conversion_result.bulk_parse_error', PARSE_CONTENT_COMMAND_ERROR_RESULT_SCHEMA, {
|
|
119
|
-
description: 'Indicates that content file was uploaded',
|
|
120
|
-
}),
|
|
121
|
-
producedBy: [CONTENT_CONVERSION_SERVICE],
|
|
122
|
-
snsTopic,
|
|
123
|
-
},
|
|
124
99
|
};
|
|
125
100
|
//# sourceMappingURL=conversion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversion.js","sourceRoot":"","sources":["../../src/events/conversion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAGL,2BAA2B,GAG5B,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"conversion.js","sourceRoot":"","sources":["../../src/events/conversion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAGL,2BAA2B,GAG5B,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EACL,gCAAgC,EAChC,2BAA2B,GAC5B,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CAAC,CAAA;AAE/D,MAAM,QAAQ,GAAG,gBAAgB,CAAC,UAAU,CAAC,SAAS,CAAA;AAEtD,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,uBAAuB,EAAE;QACvB,GAAG,2BAA2B,CAAC,uBAAuB,EAAE,4BAA4B,EAAE;YACpF,WAAW,EAAE,0CAA0C;SACxD,CAAC;KACH;IACD,2BAA2B,EAAE;QAC3B,GAAG,2BAA2B,CAC5B,2BAA2B,EAC3B,qCAAqC,EACrC;YACE,WAAW,EAAE,mDAAmD;SACjE,CACF;KACF;CAC8C,CAAA;AAEjD,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,8BAA8B,EAAE;QAC9B,GAAG,2BAA2B,CAC5B,8BAA8B,EAC9B,mCAAmC,EACnC;YACE,WAAW,EAAE,0CAA0C;SACxD,CACF;QACD,UAAU,EAAE,CAAC,0BAA0B,CAAC;QACxC,QAAQ;KACT;IACD,kCAAkC,EAAE;QAClC,GAAG,2BAA2B,CAC5B,kCAAkC,EAClC,oCAAoC,EACpC;YACE,WAAW,EAAE,+CAA+C;SAC7D,CACF;QACD,UAAU,EAAE,CAAC,0BAA0B,CAAC;QACxC,QAAQ;KACT;CACgD,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokalise/content-conversion-schemas",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist",
|
|
6
6
|
"README.md"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"package-version": "echo $npm_package_version"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@lokalise/aws-config": "^
|
|
25
|
+
"@lokalise/aws-config": "^2.0.2",
|
|
26
26
|
"@lokalise/common-api-schemas": "^1.2.1",
|
|
27
27
|
"@lokalise/supported-languages": "^3.1.0",
|
|
28
28
|
"@lokalise/zod-extras": "^3.0.0",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@biomejs/biome": "^2.0.6",
|
|
34
34
|
"@lokalise/biome-config": "^3.1.0",
|
|
35
|
-
"@lokalise/tsconfig": "^
|
|
35
|
+
"@lokalise/tsconfig": "^3.0.0",
|
|
36
36
|
"@lokalise/zod-extras": "^3.0.0",
|
|
37
37
|
"rimraf": "^6.0.1",
|
|
38
38
|
"typescript": "5.9.2"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"zod": "
|
|
41
|
+
"zod": ">=3.25.76 <5.0.0"
|
|
42
42
|
}
|
|
43
43
|
}
|