@lokalise/polyglot-sdk 13.8.0 → 13.10.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/index.d.ts +3 -3
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/sdk/schemas/common/translationContextSchemas.d.ts +145 -0
- package/dist/sdk/schemas/common/translationContextSchemas.js +2 -1
- package/dist/sdk/schemas/common/translationContextSchemas.js.map +1 -1
- package/dist/sdk/schemas/lqa/commonSchemas.d.ts +0 -14
- package/dist/sdk/schemas/lqa/commonSchemas.js +1 -14
- package/dist/sdk/schemas/lqa/commonSchemas.js.map +1 -1
- package/dist/sdk/schemas/lqa/lqaAsyncSchemas.d.ts +21 -57
- package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js +1 -1
- package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js.map +1 -1
- package/dist/sdk/schemas/lqa/lqaSyncV2Schemas.d.ts +7 -19
- package/dist/sdk/schemas/lqa/lqaSyncV2Schemas.js +1 -1
- package/dist/sdk/schemas/lqa/lqaSyncV2Schemas.js.map +1 -1
- package/dist/sdk/schemas/translation/generateVariantsV1.d.ts +71 -22
- package/dist/sdk/schemas/translation/generateVariantsV1.js +5 -19
- package/dist/sdk/schemas/translation/generateVariantsV1.js.map +1 -1
- package/dist/sdk/schemas/translation/sharedSchemas.d.ts +32 -0
- package/dist/sdk/schemas/translation/sharedSchemas.js +26 -1
- package/dist/sdk/schemas/translation/sharedSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/textRewritingSchemas.d.ts +329 -0
- package/dist/sdk/schemas/translation/textRewritingSchemas.js +34 -0
- package/dist/sdk/schemas/translation/textRewritingSchemas.js.map +1 -0
- package/dist/sdk/schemas/translation/translateAsyncSchemas.d.ts +21 -57
- package/dist/sdk/schemas/translation/translateAsyncSchemas.js +1 -1
- package/dist/sdk/schemas/translation/translateAsyncSchemas.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,14 +6,14 @@ export * from './sdk/schemas/common/commonSchemas';
|
|
|
6
6
|
export * from './sdk/schemas/common/errorSchemas';
|
|
7
7
|
export { TRANSLATION_CONTEXT_SCHEMA, isStructuredStyleGuide, } from './sdk/schemas/common/translationContextSchemas';
|
|
8
8
|
export type { StructuredStyleGuide, FreeformStyleGuide, StyleGuideData, TranslationContext, } from './sdk/schemas/common/translationContextSchemas';
|
|
9
|
-
export {
|
|
9
|
+
export { LqaIssueSeverityEnum } from './sdk/schemas/lqa/commonSchemas';
|
|
10
10
|
export * from './sdk/schemas/lqa/lqaAsyncSchemas';
|
|
11
11
|
export * from './sdk/schemas/lqa/lqaSyncV2Schemas';
|
|
12
12
|
export * from './sdk/schemas/scoring/scoreV1Schemas';
|
|
13
13
|
export * from './sdk/schemas/translation/generateVariantsV1';
|
|
14
|
+
export * from './sdk/schemas/translation/textRewritingSchemas';
|
|
14
15
|
export * from './sdk/schemas/translation/translateSyncSchemas';
|
|
15
16
|
export * from './sdk/schemas/translation/translateAsyncSchemas';
|
|
16
|
-
export
|
|
17
|
-
export type { TranslationQualityWarningKind } from './sdk/schemas/translation/sharedSchemas';
|
|
17
|
+
export * from './sdk/schemas/translation/sharedSchemas';
|
|
18
18
|
export { isSegmentUnderLengthLimit, isSegmentUnderLengthLimit as isSegmentExceedingLengthLimit, } from './sdk/validation/isSegmentUnderLengthLimit';
|
|
19
19
|
export { getRequestSizeLimit, isRequestSizeUnderLimit } from './sdk/validation/requestSizeLimit';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isRequestSizeUnderLimit = exports.getRequestSizeLimit = exports.isSegmentExceedingLengthLimit = exports.isSegmentUnderLengthLimit = exports.
|
|
3
|
+
exports.isRequestSizeUnderLimit = exports.getRequestSizeLimit = exports.isSegmentExceedingLengthLimit = exports.isSegmentUnderLengthLimit = exports.LqaIssueSeverityEnum = exports.isStructuredStyleGuide = exports.TRANSLATION_CONTEXT_SCHEMA = exports.PolyglotError = exports.PolyglotClient = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
var PolyglotClient_1 = require("./sdk/PolyglotClient");
|
|
6
6
|
Object.defineProperty(exports, "PolyglotClient", { enumerable: true, get: function () { return PolyglotClient_1.PolyglotClient; } });
|
|
@@ -13,16 +13,15 @@ var translationContextSchemas_1 = require("./sdk/schemas/common/translationConte
|
|
|
13
13
|
Object.defineProperty(exports, "TRANSLATION_CONTEXT_SCHEMA", { enumerable: true, get: function () { return translationContextSchemas_1.TRANSLATION_CONTEXT_SCHEMA; } });
|
|
14
14
|
Object.defineProperty(exports, "isStructuredStyleGuide", { enumerable: true, get: function () { return translationContextSchemas_1.isStructuredStyleGuide; } });
|
|
15
15
|
var commonSchemas_1 = require("./sdk/schemas/lqa/commonSchemas");
|
|
16
|
-
Object.defineProperty(exports, "LqaIssueCategoryEnum", { enumerable: true, get: function () { return commonSchemas_1.LqaIssueCategoryEnum; } });
|
|
17
16
|
Object.defineProperty(exports, "LqaIssueSeverityEnum", { enumerable: true, get: function () { return commonSchemas_1.LqaIssueSeverityEnum; } });
|
|
18
17
|
tslib_1.__exportStar(require("./sdk/schemas/lqa/lqaAsyncSchemas"), exports);
|
|
19
18
|
tslib_1.__exportStar(require("./sdk/schemas/lqa/lqaSyncV2Schemas"), exports);
|
|
20
19
|
tslib_1.__exportStar(require("./sdk/schemas/scoring/scoreV1Schemas"), exports);
|
|
21
20
|
tslib_1.__exportStar(require("./sdk/schemas/translation/generateVariantsV1"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./sdk/schemas/translation/textRewritingSchemas"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./sdk/schemas/translation/translateSyncSchemas"), exports);
|
|
23
23
|
tslib_1.__exportStar(require("./sdk/schemas/translation/translateAsyncSchemas"), exports);
|
|
24
|
-
|
|
25
|
-
Object.defineProperty(exports, "SEGMENT_WARNINGS_SCHEMA", { enumerable: true, get: function () { return sharedSchemas_1.SEGMENT_WARNINGS_SCHEMA; } });
|
|
24
|
+
tslib_1.__exportStar(require("./sdk/schemas/translation/sharedSchemas"), exports);
|
|
26
25
|
var isSegmentUnderLengthLimit_1 = require("./sdk/validation/isSegmentUnderLengthLimit");
|
|
27
26
|
Object.defineProperty(exports, "isSegmentUnderLengthLimit", { enumerable: true, get: function () { return isSegmentUnderLengthLimit_1.isSegmentUnderLengthLimit; } });
|
|
28
27
|
Object.defineProperty(exports, "isSegmentExceedingLengthLimit", { enumerable: true, get: function () { return isSegmentUnderLengthLimit_1.isSegmentUnderLengthLimit; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,uDAAqD;AAA5C,gHAAA,cAAc,OAAA;AACvB,4DAA0D;AAAjD,8GAAA,aAAa,OAAA;AAGtB,mFAAwD;AAExD,6EAAkD;AAClD,4EAAiD;AACjD,4FAGuD;AAFrD,uIAAA,0BAA0B,OAAA;AAC1B,mIAAA,sBAAsB,OAAA;AASxB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,uDAAqD;AAA5C,gHAAA,cAAc,OAAA;AACvB,4DAA0D;AAAjD,8GAAA,aAAa,OAAA;AAGtB,mFAAwD;AAExD,6EAAkD;AAClD,4EAAiD;AACjD,4FAGuD;AAFrD,uIAAA,0BAA0B,OAAA;AAC1B,mIAAA,sBAAsB,OAAA;AASxB,iEAAsE;AAA7D,qHAAA,oBAAoB,OAAA;AAC7B,4EAAiD;AACjD,6EAAkD;AAClD,+EAAoD;AACpD,uFAA4D;AAC5D,yFAA8D;AAC9D,yFAA8D;AAC9D,0FAA+D;AAC/D,kFAAuD;AAEvD,wFAGmD;AAFjD,sIAAA,yBAAyB,OAAA;AACzB,0IAAA,yBAAyB,OAAiC;AAE5D,sEAAgG;AAAvF,uHAAA,mBAAmB,OAAA;AAAE,2HAAA,uBAAuB,OAAA"}
|
|
@@ -279,4 +279,149 @@ export declare const TRANSLATION_CONTEXT_SCHEMA: z.ZodObject<{
|
|
|
279
279
|
targetPluralForms?: ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined;
|
|
280
280
|
}>;
|
|
281
281
|
export type TranslationContext = z.infer<typeof TRANSLATION_CONTEXT_SCHEMA>;
|
|
282
|
+
export declare const TEXT_REWRITING_CONTEXT: z.ZodObject<Omit<{
|
|
283
|
+
description: z.ZodOptional<z.ZodString>;
|
|
284
|
+
styleGuide: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
285
|
+
text: z.ZodString;
|
|
286
|
+
}, "strip", z.ZodTypeAny, {
|
|
287
|
+
text: string;
|
|
288
|
+
}, {
|
|
289
|
+
text: string;
|
|
290
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
291
|
+
targetAudience: z.ZodOptional<z.ZodEnum<["general", "technical", "non-technical"]>>;
|
|
292
|
+
toneOfVoice: z.ZodOptional<z.ZodEnum<["friendly", "empowering", "informative", "supportive", "elegant"]>>;
|
|
293
|
+
levelOfFormality: z.ZodOptional<z.ZodEnum<["informal", "formal", "neutral"]>>;
|
|
294
|
+
generalRule: z.ZodOptional<z.ZodEnum<["active-voice", "passive-voice"]>>;
|
|
295
|
+
}, "strip", z.ZodTypeAny, {
|
|
296
|
+
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
297
|
+
toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
|
|
298
|
+
levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
|
|
299
|
+
generalRule?: "active-voice" | "passive-voice" | undefined;
|
|
300
|
+
}, {
|
|
301
|
+
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
302
|
+
toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
|
|
303
|
+
levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
|
|
304
|
+
generalRule?: "active-voice" | "passive-voice" | undefined;
|
|
305
|
+
}>, {
|
|
306
|
+
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
307
|
+
toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
|
|
308
|
+
levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
|
|
309
|
+
generalRule?: "active-voice" | "passive-voice" | undefined;
|
|
310
|
+
}, {
|
|
311
|
+
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
312
|
+
toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
|
|
313
|
+
levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
|
|
314
|
+
generalRule?: "active-voice" | "passive-voice" | undefined;
|
|
315
|
+
}>]>>;
|
|
316
|
+
glossary: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
317
|
+
term: z.ZodString;
|
|
318
|
+
description: z.ZodOptional<z.ZodString>;
|
|
319
|
+
translatable: z.ZodDefault<z.ZodBoolean>;
|
|
320
|
+
forbidden: z.ZodDefault<z.ZodBoolean>;
|
|
321
|
+
caseSensitive: z.ZodDefault<z.ZodBoolean>;
|
|
322
|
+
translations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
323
|
+
locale: z.ZodEffects<z.ZodString, string, string>;
|
|
324
|
+
translation: z.ZodString;
|
|
325
|
+
description: z.ZodOptional<z.ZodString>;
|
|
326
|
+
}, "strip", z.ZodTypeAny, {
|
|
327
|
+
locale: string;
|
|
328
|
+
translation: string;
|
|
329
|
+
description?: string | undefined;
|
|
330
|
+
}, {
|
|
331
|
+
locale: string;
|
|
332
|
+
translation: string;
|
|
333
|
+
description?: string | undefined;
|
|
334
|
+
}>, "many">>;
|
|
335
|
+
}, "strip", z.ZodTypeAny, {
|
|
336
|
+
term: string;
|
|
337
|
+
translatable: boolean;
|
|
338
|
+
forbidden: boolean;
|
|
339
|
+
caseSensitive: boolean;
|
|
340
|
+
description?: string | undefined;
|
|
341
|
+
translations?: {
|
|
342
|
+
locale: string;
|
|
343
|
+
translation: string;
|
|
344
|
+
description?: string | undefined;
|
|
345
|
+
}[] | undefined;
|
|
346
|
+
}, {
|
|
347
|
+
term: string;
|
|
348
|
+
description?: string | undefined;
|
|
349
|
+
translatable?: boolean | undefined;
|
|
350
|
+
forbidden?: boolean | undefined;
|
|
351
|
+
caseSensitive?: boolean | undefined;
|
|
352
|
+
translations?: {
|
|
353
|
+
locale: string;
|
|
354
|
+
translation: string;
|
|
355
|
+
description?: string | undefined;
|
|
356
|
+
}[] | undefined;
|
|
357
|
+
}>, {
|
|
358
|
+
term: string;
|
|
359
|
+
translatable: boolean;
|
|
360
|
+
forbidden: boolean;
|
|
361
|
+
caseSensitive: boolean;
|
|
362
|
+
description?: string | undefined;
|
|
363
|
+
translations?: {
|
|
364
|
+
locale: string;
|
|
365
|
+
translation: string;
|
|
366
|
+
description?: string | undefined;
|
|
367
|
+
}[] | undefined;
|
|
368
|
+
}, {
|
|
369
|
+
term: string;
|
|
370
|
+
description?: string | undefined;
|
|
371
|
+
translatable?: boolean | undefined;
|
|
372
|
+
forbidden?: boolean | undefined;
|
|
373
|
+
caseSensitive?: boolean | undefined;
|
|
374
|
+
translations?: {
|
|
375
|
+
locale: string;
|
|
376
|
+
translation: string;
|
|
377
|
+
description?: string | undefined;
|
|
378
|
+
}[] | undefined;
|
|
379
|
+
}>, "many">>;
|
|
380
|
+
targetPluralForms: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEnum<["zero", "one", "two", "few", "many", "other"]>, "atleastone">>, ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined, ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined>, ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined, ["many" | "zero" | "one" | "two" | "few" | "other", ...("many" | "zero" | "one" | "two" | "few" | "other")[]] | undefined>;
|
|
381
|
+
}, "targetPluralForms">, "strip", z.ZodTypeAny, {
|
|
382
|
+
description?: string | undefined;
|
|
383
|
+
styleGuide?: {
|
|
384
|
+
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
385
|
+
toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
|
|
386
|
+
levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
|
|
387
|
+
generalRule?: "active-voice" | "passive-voice" | undefined;
|
|
388
|
+
} | {
|
|
389
|
+
text: string;
|
|
390
|
+
} | undefined;
|
|
391
|
+
glossary?: {
|
|
392
|
+
term: string;
|
|
393
|
+
translatable: boolean;
|
|
394
|
+
forbidden: boolean;
|
|
395
|
+
caseSensitive: boolean;
|
|
396
|
+
description?: string | undefined;
|
|
397
|
+
translations?: {
|
|
398
|
+
locale: string;
|
|
399
|
+
translation: string;
|
|
400
|
+
description?: string | undefined;
|
|
401
|
+
}[] | undefined;
|
|
402
|
+
}[] | undefined;
|
|
403
|
+
}, {
|
|
404
|
+
description?: string | undefined;
|
|
405
|
+
styleGuide?: {
|
|
406
|
+
targetAudience?: "general" | "technical" | "non-technical" | undefined;
|
|
407
|
+
toneOfVoice?: "friendly" | "empowering" | "informative" | "supportive" | "elegant" | undefined;
|
|
408
|
+
levelOfFormality?: "informal" | "formal" | "neutral" | undefined;
|
|
409
|
+
generalRule?: "active-voice" | "passive-voice" | undefined;
|
|
410
|
+
} | {
|
|
411
|
+
text: string;
|
|
412
|
+
} | undefined;
|
|
413
|
+
glossary?: {
|
|
414
|
+
term: string;
|
|
415
|
+
description?: string | undefined;
|
|
416
|
+
translatable?: boolean | undefined;
|
|
417
|
+
forbidden?: boolean | undefined;
|
|
418
|
+
caseSensitive?: boolean | undefined;
|
|
419
|
+
translations?: {
|
|
420
|
+
locale: string;
|
|
421
|
+
translation: string;
|
|
422
|
+
description?: string | undefined;
|
|
423
|
+
}[] | undefined;
|
|
424
|
+
}[] | undefined;
|
|
425
|
+
}>;
|
|
426
|
+
export type TextRewritingContext = z.infer<typeof TEXT_REWRITING_CONTEXT>;
|
|
282
427
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TRANSLATION_CONTEXT_SCHEMA = exports.GLOSSARY_TERM_SCHEMA = void 0;
|
|
3
|
+
exports.TEXT_REWRITING_CONTEXT = exports.TRANSLATION_CONTEXT_SCHEMA = exports.GLOSSARY_TERM_SCHEMA = void 0;
|
|
4
4
|
exports.isStructuredStyleGuide = isStructuredStyleGuide;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
6
|
const zod_1 = tslib_1.__importDefault(require("zod"));
|
|
@@ -89,4 +89,5 @@ exports.TRANSLATION_CONTEXT_SCHEMA = zod_1.default
|
|
|
89
89
|
.describe('A set of plural forms to be used in the target language. Make sure to always include `other` form'),
|
|
90
90
|
})
|
|
91
91
|
.describe('Helpful translation context');
|
|
92
|
+
exports.TEXT_REWRITING_CONTEXT = exports.TRANSLATION_CONTEXT_SCHEMA.omit({ targetPluralForms: true });
|
|
92
93
|
//# sourceMappingURL=translationContextSchemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translationContextSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/common/translationContextSchemas.ts"],"names":[],"mappings":";;;AAwCA,wDASC;;AAjDD,sDAAmB;AAEnB,mDAA+C;AAE/C,6CAA6C;AAC7C,cAAc;AACd,6CAA6C;AAE7C,MAAM,6BAA6B,GAAG,aAAC;KACpC,MAAM,CAAC;IACN,cAAc,EAAE,aAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,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;SACA,QAAQ,EAAE;IACb,UAAU,EAAE,kBAAkB,CAAC,QAAQ,EAAE;IACzC,QAAQ,EAAE,aAAC,CAAC,KAAK,CAAC,4BAAoB,CAAC,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC,QAAQ,EAAE;IACrF,iBAAiB,EAAE,aAAC;SACjB,KAAK,CAAC,aAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;SAC7D,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,MAAM,CACL,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,EACzD,6BAA6B,CAC9B;SACA,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,mCAAmC,CAAC;SACzF,QAAQ,CACP,mGAAmG,CACpG;CACJ,CAAC;KACD,QAAQ,CAAC,6BAA6B,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"translationContextSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/common/translationContextSchemas.ts"],"names":[],"mappings":";;;AAwCA,wDASC;;AAjDD,sDAAmB;AAEnB,mDAA+C;AAE/C,6CAA6C;AAC7C,cAAc;AACd,6CAA6C;AAE7C,MAAM,6BAA6B,GAAG,aAAC;KACpC,MAAM,CAAC;IACN,cAAc,EAAE,aAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,eAAe,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5E,WAAW,EAAE,aAAC;SACX,IAAI,CAAC,CAAC,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC;SACxE,QAAQ,EAAE;IACb,gBAAgB,EA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B,EAAE,aAAC;SACjB,KAAK,CAAC,aAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;SAC7D,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,MAAM,CACL,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,EACzD,6BAA6B,CAC9B;SACA,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,mCAAmC,CAAC;SACzF,QAAQ,CACP,mGAAmG,CACpG;CACJ,CAAC;KACD,QAAQ,CAAC,6BAA6B,CAAC,CAAA;AAI7B,QAAA,sBAAsB,GAAG,kCAA0B,CAAC,IAAI,CAAC,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,CAAA"}
|
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
import type { ObjectValues } from '../../types/common';
|
|
2
|
-
export declare const LqaIssueCategoryEnum: {
|
|
3
|
-
readonly ACCURACY: "accuracy";
|
|
4
|
-
readonly FLUENCY: "fluency";
|
|
5
|
-
readonly TERMINOLOGY: "terminology";
|
|
6
|
-
readonly LOCALE_CONVENTION: "locale convention";
|
|
7
|
-
readonly STYLE: "style";
|
|
8
|
-
readonly CONSISTENCY: "consistency";
|
|
9
|
-
readonly COHERENCE: "coherence";
|
|
10
|
-
readonly DESIGN: "design";
|
|
11
|
-
readonly MARKUP: "markup";
|
|
12
|
-
readonly INTERNATIONALIZATION: "internationalization";
|
|
13
|
-
readonly VERITY: "verity";
|
|
14
|
-
};
|
|
15
|
-
export type LqaIssueCategoryEnum = ObjectValues<typeof LqaIssueCategoryEnum>;
|
|
16
2
|
export declare const LqaIssueSeverityEnum: {
|
|
17
3
|
readonly NEUTRAL: "neutral";
|
|
18
4
|
readonly MINOR: "minor";
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LqaIssueSeverityEnum =
|
|
4
|
-
exports.LqaIssueCategoryEnum = {
|
|
5
|
-
ACCURACY: 'accuracy',
|
|
6
|
-
FLUENCY: 'fluency',
|
|
7
|
-
TERMINOLOGY: 'terminology',
|
|
8
|
-
LOCALE_CONVENTION: 'locale convention',
|
|
9
|
-
STYLE: 'style',
|
|
10
|
-
CONSISTENCY: 'consistency',
|
|
11
|
-
COHERENCE: 'coherence',
|
|
12
|
-
DESIGN: 'design',
|
|
13
|
-
MARKUP: 'markup',
|
|
14
|
-
INTERNATIONALIZATION: 'internationalization',
|
|
15
|
-
VERITY: 'verity',
|
|
16
|
-
};
|
|
3
|
+
exports.LqaIssueSeverityEnum = void 0;
|
|
17
4
|
exports.LqaIssueSeverityEnum = {
|
|
18
5
|
NEUTRAL: 'neutral',
|
|
19
6
|
MINOR: 'minor',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commonSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/lqa/commonSchemas.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAG;IAClC,
|
|
1
|
+
{"version":3,"file":"commonSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/lqa/commonSchemas.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAG;IAClC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACZ,CAAA"}
|
|
@@ -732,19 +732,7 @@ export declare const LQA_ASYNC_V1_CALLBACK_SCHEMA: z.ZodObject<{
|
|
|
732
732
|
translationId: z.ZodString;
|
|
733
733
|
suggestion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
734
734
|
issues: z.ZodArray<z.ZodObject<{
|
|
735
|
-
category: z.
|
|
736
|
-
readonly ACCURACY: "accuracy";
|
|
737
|
-
readonly FLUENCY: "fluency";
|
|
738
|
-
readonly TERMINOLOGY: "terminology";
|
|
739
|
-
readonly LOCALE_CONVENTION: "locale convention";
|
|
740
|
-
readonly STYLE: "style";
|
|
741
|
-
readonly CONSISTENCY: "consistency";
|
|
742
|
-
readonly COHERENCE: "coherence";
|
|
743
|
-
readonly DESIGN: "design";
|
|
744
|
-
readonly MARKUP: "markup";
|
|
745
|
-
readonly INTERNATIONALIZATION: "internationalization";
|
|
746
|
-
readonly VERITY: "verity";
|
|
747
|
-
}>;
|
|
735
|
+
category: z.ZodString;
|
|
748
736
|
severity: z.ZodNativeEnum<{
|
|
749
737
|
readonly NEUTRAL: "neutral";
|
|
750
738
|
readonly MINOR: "minor";
|
|
@@ -753,11 +741,11 @@ export declare const LQA_ASYNC_V1_CALLBACK_SCHEMA: z.ZodObject<{
|
|
|
753
741
|
}>;
|
|
754
742
|
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
755
743
|
}, "strip", z.ZodTypeAny, {
|
|
756
|
-
category:
|
|
744
|
+
category: string;
|
|
757
745
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
758
746
|
comment?: string | null | undefined;
|
|
759
747
|
}, {
|
|
760
|
-
category:
|
|
748
|
+
category: string;
|
|
761
749
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
762
750
|
comment?: string | null | undefined;
|
|
763
751
|
}>, "many">;
|
|
@@ -766,7 +754,7 @@ export declare const LQA_ASYNC_V1_CALLBACK_SCHEMA: z.ZodObject<{
|
|
|
766
754
|
contentUnitId: string;
|
|
767
755
|
translationId: string;
|
|
768
756
|
issues: {
|
|
769
|
-
category:
|
|
757
|
+
category: string;
|
|
770
758
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
771
759
|
comment?: string | null | undefined;
|
|
772
760
|
}[];
|
|
@@ -776,7 +764,7 @@ export declare const LQA_ASYNC_V1_CALLBACK_SCHEMA: z.ZodObject<{
|
|
|
776
764
|
contentUnitId: string;
|
|
777
765
|
translationId: string;
|
|
778
766
|
issues: {
|
|
779
|
-
category:
|
|
767
|
+
category: string;
|
|
780
768
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
781
769
|
comment?: string | null | undefined;
|
|
782
770
|
}[];
|
|
@@ -809,7 +797,7 @@ export declare const LQA_ASYNC_V1_CALLBACK_SCHEMA: z.ZodObject<{
|
|
|
809
797
|
contentUnitId: string;
|
|
810
798
|
translationId: string;
|
|
811
799
|
issues: {
|
|
812
|
-
category:
|
|
800
|
+
category: string;
|
|
813
801
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
814
802
|
comment?: string | null | undefined;
|
|
815
803
|
}[];
|
|
@@ -829,7 +817,7 @@ export declare const LQA_ASYNC_V1_CALLBACK_SCHEMA: z.ZodObject<{
|
|
|
829
817
|
contentUnitId: string;
|
|
830
818
|
translationId: string;
|
|
831
819
|
issues: {
|
|
832
|
-
category:
|
|
820
|
+
category: string;
|
|
833
821
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
834
822
|
comment?: string | null | undefined;
|
|
835
823
|
}[];
|
|
@@ -851,19 +839,7 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.extendSh
|
|
|
851
839
|
translationId: z.ZodString;
|
|
852
840
|
suggestion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
853
841
|
issues: z.ZodArray<z.ZodObject<{
|
|
854
|
-
category: z.
|
|
855
|
-
readonly ACCURACY: "accuracy";
|
|
856
|
-
readonly FLUENCY: "fluency";
|
|
857
|
-
readonly TERMINOLOGY: "terminology";
|
|
858
|
-
readonly LOCALE_CONVENTION: "locale convention";
|
|
859
|
-
readonly STYLE: "style";
|
|
860
|
-
readonly CONSISTENCY: "consistency";
|
|
861
|
-
readonly COHERENCE: "coherence";
|
|
862
|
-
readonly DESIGN: "design";
|
|
863
|
-
readonly MARKUP: "markup";
|
|
864
|
-
readonly INTERNATIONALIZATION: "internationalization";
|
|
865
|
-
readonly VERITY: "verity";
|
|
866
|
-
}>;
|
|
842
|
+
category: z.ZodString;
|
|
867
843
|
severity: z.ZodNativeEnum<{
|
|
868
844
|
readonly NEUTRAL: "neutral";
|
|
869
845
|
readonly MINOR: "minor";
|
|
@@ -872,11 +848,11 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.extendSh
|
|
|
872
848
|
}>;
|
|
873
849
|
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
874
850
|
}, "strip", z.ZodTypeAny, {
|
|
875
|
-
category:
|
|
851
|
+
category: string;
|
|
876
852
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
877
853
|
comment?: string | null | undefined;
|
|
878
854
|
}, {
|
|
879
|
-
category:
|
|
855
|
+
category: string;
|
|
880
856
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
881
857
|
comment?: string | null | undefined;
|
|
882
858
|
}>, "many">;
|
|
@@ -885,7 +861,7 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.extendSh
|
|
|
885
861
|
contentUnitId: string;
|
|
886
862
|
translationId: string;
|
|
887
863
|
issues: {
|
|
888
|
-
category:
|
|
864
|
+
category: string;
|
|
889
865
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
890
866
|
comment?: string | null | undefined;
|
|
891
867
|
}[];
|
|
@@ -895,7 +871,7 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.extendSh
|
|
|
895
871
|
contentUnitId: string;
|
|
896
872
|
translationId: string;
|
|
897
873
|
issues: {
|
|
898
|
-
category:
|
|
874
|
+
category: string;
|
|
899
875
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
900
876
|
comment?: string | null | undefined;
|
|
901
877
|
}[];
|
|
@@ -931,7 +907,7 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.extendSh
|
|
|
931
907
|
contentUnitId: string;
|
|
932
908
|
translationId: string;
|
|
933
909
|
issues: {
|
|
934
|
-
category:
|
|
910
|
+
category: string;
|
|
935
911
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
936
912
|
comment?: string | null | undefined;
|
|
937
913
|
}[];
|
|
@@ -952,7 +928,7 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.extendSh
|
|
|
952
928
|
contentUnitId: string;
|
|
953
929
|
translationId: string;
|
|
954
930
|
issues: {
|
|
955
|
-
category:
|
|
931
|
+
category: string;
|
|
956
932
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
957
933
|
comment?: string | null | undefined;
|
|
958
934
|
}[];
|
|
@@ -974,19 +950,7 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
|
|
|
974
950
|
translationId: z.ZodString;
|
|
975
951
|
suggestion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
976
952
|
issues: z.ZodArray<z.ZodObject<{
|
|
977
|
-
category: z.
|
|
978
|
-
readonly ACCURACY: "accuracy";
|
|
979
|
-
readonly FLUENCY: "fluency";
|
|
980
|
-
readonly TERMINOLOGY: "terminology";
|
|
981
|
-
readonly LOCALE_CONVENTION: "locale convention";
|
|
982
|
-
readonly STYLE: "style";
|
|
983
|
-
readonly CONSISTENCY: "consistency";
|
|
984
|
-
readonly COHERENCE: "coherence";
|
|
985
|
-
readonly DESIGN: "design";
|
|
986
|
-
readonly MARKUP: "markup";
|
|
987
|
-
readonly INTERNATIONALIZATION: "internationalization";
|
|
988
|
-
readonly VERITY: "verity";
|
|
989
|
-
}>;
|
|
953
|
+
category: z.ZodString;
|
|
990
954
|
severity: z.ZodNativeEnum<{
|
|
991
955
|
readonly NEUTRAL: "neutral";
|
|
992
956
|
readonly MINOR: "minor";
|
|
@@ -995,11 +959,11 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
|
|
|
995
959
|
}>;
|
|
996
960
|
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
997
961
|
}, "strip", z.ZodTypeAny, {
|
|
998
|
-
category:
|
|
962
|
+
category: string;
|
|
999
963
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1000
964
|
comment?: string | null | undefined;
|
|
1001
965
|
}, {
|
|
1002
|
-
category:
|
|
966
|
+
category: string;
|
|
1003
967
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1004
968
|
comment?: string | null | undefined;
|
|
1005
969
|
}>, "many">;
|
|
@@ -1008,7 +972,7 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
|
|
|
1008
972
|
contentUnitId: string;
|
|
1009
973
|
translationId: string;
|
|
1010
974
|
issues: {
|
|
1011
|
-
category:
|
|
975
|
+
category: string;
|
|
1012
976
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1013
977
|
comment?: string | null | undefined;
|
|
1014
978
|
}[];
|
|
@@ -1018,7 +982,7 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
|
|
|
1018
982
|
contentUnitId: string;
|
|
1019
983
|
translationId: string;
|
|
1020
984
|
issues: {
|
|
1021
|
-
category:
|
|
985
|
+
category: string;
|
|
1022
986
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1023
987
|
comment?: string | null | undefined;
|
|
1024
988
|
}[];
|
|
@@ -1054,7 +1018,7 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
|
|
|
1054
1018
|
contentUnitId: string;
|
|
1055
1019
|
translationId: string;
|
|
1056
1020
|
issues: {
|
|
1057
|
-
category:
|
|
1021
|
+
category: string;
|
|
1058
1022
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1059
1023
|
comment?: string | null | undefined;
|
|
1060
1024
|
}[];
|
|
@@ -1075,7 +1039,7 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
|
|
|
1075
1039
|
contentUnitId: string;
|
|
1076
1040
|
translationId: string;
|
|
1077
1041
|
issues: {
|
|
1078
|
-
category:
|
|
1042
|
+
category: string;
|
|
1079
1043
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1080
1044
|
comment?: string | null | undefined;
|
|
1081
1045
|
}[];
|
|
@@ -79,7 +79,7 @@ exports.LQA_ASYNC_V1_CALLBACK_SCHEMA = zod_1.default.object({
|
|
|
79
79
|
translationId: LQA_TRANSLATION_ID_SCHEMA,
|
|
80
80
|
suggestion: zod_1.default.string().nullable().optional(),
|
|
81
81
|
issues: zod_1.default.array(zod_1.default.object({
|
|
82
|
-
category: zod_1.default.
|
|
82
|
+
category: zod_1.default.string(),
|
|
83
83
|
severity: zod_1.default.nativeEnum(commonSchemas_2.LqaIssueSeverityEnum),
|
|
84
84
|
comment: zod_1.default.string().nullable().optional(),
|
|
85
85
|
})),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lqaAsyncSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/lqa/lqaAsyncSchemas.ts"],"names":[],"mappings":";;;;AAAA,sDAAmB;AAEnB,uEAAoG;AACpG,2DAQgC;AAChC,mFAAgF;AAEhF,0FAAsF;AACtF,
|
|
1
|
+
{"version":3,"file":"lqaAsyncSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/lqa/lqaAsyncSchemas.ts"],"names":[],"mappings":";;;;AAAA,sDAAmB;AAEnB,uEAAoG;AACpG,2DAQgC;AAChC,mFAAgF;AAEhF,0FAAsF;AACtF,mDAAsD;AAEtD,MAAM,mCAAmC,GAAG,EAAE,CAAA;AAC9C,MAAM,uCAAuC,GAAG,KAAK,CAAA;AACrD,MAAM,oCAAoC,GAAG,GAAG,CAAA;AAChD,MAAM,4BAA4B,GAAG,EAAE,CAAA;AAEvC,MAAM,yBAAyB,GAAG,aAAC,CAA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Q,EAAE,aAAC,CAAC,MAAM,EAAE;YACpB,QAAQ,EAAE,aAAC,CAAC,UAAU,CAAC,oCAAoB,CAAC;YAC5C,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;SAC1C,CAAC,CACH;QACD,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;KAClB,CAAC,CACH;IACD,MAAM,EAAE,aAAC;SACN,KAAK,CACJ,4CAA4B,CAAC,MAAM,CAAC;QAClC,aAAa,EAAE,0BAA0B;QACzC,aAAa,EAAE,yBAAyB;KACzC,CAAC,CACH;SACA,QAAQ,EAAE;CACd,CAAC,CAAA;AAEW,QAAA,wBAAwB,GAAG,oCAA4B,CAAC,MAAM,CAAC;IAC1E,MAAM,EAAE,aAAC,CAAC,OAAO,CAAC,oDAA8B,CAAC,OAAO,CAAC;CAC1D,CAAC,CAAA;AAEW,QAAA,yBAAyB,GAAG,aAAC;KACvC,kBAAkB,CAAC,QAAQ,EAAE,CAAC,gCAAwB,EAAE,uDAAuC,CAAC,CAAC;KACjG,QAAQ,CAAC,wBAAwB,CAAC,CAAA"}
|
|
@@ -709,19 +709,7 @@ export declare const LQA_SYNC_V2_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
709
709
|
translationId: z.ZodString;
|
|
710
710
|
suggestion: z.ZodNullable<z.ZodString>;
|
|
711
711
|
issues: z.ZodArray<z.ZodObject<{
|
|
712
|
-
category: z.
|
|
713
|
-
readonly ACCURACY: "accuracy";
|
|
714
|
-
readonly FLUENCY: "fluency";
|
|
715
|
-
readonly TERMINOLOGY: "terminology";
|
|
716
|
-
readonly LOCALE_CONVENTION: "locale convention";
|
|
717
|
-
readonly STYLE: "style";
|
|
718
|
-
readonly CONSISTENCY: "consistency";
|
|
719
|
-
readonly COHERENCE: "coherence";
|
|
720
|
-
readonly DESIGN: "design";
|
|
721
|
-
readonly MARKUP: "markup";
|
|
722
|
-
readonly INTERNATIONALIZATION: "internationalization";
|
|
723
|
-
readonly VERITY: "verity";
|
|
724
|
-
}>;
|
|
712
|
+
category: z.ZodString;
|
|
725
713
|
severity: z.ZodNativeEnum<{
|
|
726
714
|
readonly NEUTRAL: "neutral";
|
|
727
715
|
readonly MINOR: "minor";
|
|
@@ -730,11 +718,11 @@ export declare const LQA_SYNC_V2_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
730
718
|
}>;
|
|
731
719
|
comment: z.ZodNullable<z.ZodString>;
|
|
732
720
|
}, "strip", z.ZodTypeAny, {
|
|
733
|
-
category:
|
|
721
|
+
category: string;
|
|
734
722
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
735
723
|
comment: string | null;
|
|
736
724
|
}, {
|
|
737
|
-
category:
|
|
725
|
+
category: string;
|
|
738
726
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
739
727
|
comment: string | null;
|
|
740
728
|
}>, "many">;
|
|
@@ -744,7 +732,7 @@ export declare const LQA_SYNC_V2_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
744
732
|
translationId: string;
|
|
745
733
|
suggestion: string | null;
|
|
746
734
|
issues: {
|
|
747
|
-
category:
|
|
735
|
+
category: string;
|
|
748
736
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
749
737
|
comment: string | null;
|
|
750
738
|
}[];
|
|
@@ -754,7 +742,7 @@ export declare const LQA_SYNC_V2_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
754
742
|
translationId: string;
|
|
755
743
|
suggestion: string | null;
|
|
756
744
|
issues: {
|
|
757
|
-
category:
|
|
745
|
+
category: string;
|
|
758
746
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
759
747
|
comment: string | null;
|
|
760
748
|
}[];
|
|
@@ -787,7 +775,7 @@ export declare const LQA_SYNC_V2_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
787
775
|
translationId: string;
|
|
788
776
|
suggestion: string | null;
|
|
789
777
|
issues: {
|
|
790
|
-
category:
|
|
778
|
+
category: string;
|
|
791
779
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
792
780
|
comment: string | null;
|
|
793
781
|
}[];
|
|
@@ -807,7 +795,7 @@ export declare const LQA_SYNC_V2_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
807
795
|
translationId: string;
|
|
808
796
|
suggestion: string | null;
|
|
809
797
|
issues: {
|
|
810
|
-
category:
|
|
798
|
+
category: string;
|
|
811
799
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
812
800
|
comment: string | null;
|
|
813
801
|
}[];
|
|
@@ -73,7 +73,7 @@ exports.LQA_SYNC_V2_RESPONSE_SCHEMA = zod_1.default
|
|
|
73
73
|
translationId: LQA_TRANSLATION_ID_SCHEMA,
|
|
74
74
|
suggestion: zod_1.default.string().nullable(),
|
|
75
75
|
issues: zod_1.default.array(zod_1.default.object({
|
|
76
|
-
category: zod_1.default.
|
|
76
|
+
category: zod_1.default.string(),
|
|
77
77
|
severity: zod_1.default.nativeEnum(commonSchemas_2.LqaIssueSeverityEnum),
|
|
78
78
|
comment: zod_1.default.string().nullable(),
|
|
79
79
|
})),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lqaSyncV2Schemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/lqa/lqaSyncV2Schemas.ts"],"names":[],"mappings":";;;;AAAA,sDAAmB;AAEnB,2DAOgC;AAChC,mFAAgF;AAEhF,0FAAsF;AACtF,
|
|
1
|
+
{"version":3,"file":"lqaSyncV2Schemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/lqa/lqaSyncV2Schemas.ts"],"names":[],"mappings":";;;;AAAA,sDAAmB;AAEnB,2DAOgC;AAChC,mFAAgF;AAEhF,0FAAsF;AACtF,mDAAsD;AAEtD,MAAM,mCAAmC,GAAG,EAAE,CAAA;AAC9C,MAAM,uCAAuC,GAAG,KAAK,CAAA;AACrD,MAAM,oCAAoC,GAAG,GAAG,CAAA;AAChD,MAAM,4BAA4B,GAAG,CAAC,CAAA;AAEtC,M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