@lokalise/polyglot-sdk 13.9.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 +1 -1
- package/dist/index.js +1 -2
- package/dist/index.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/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,7 +6,7 @@ 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';
|
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.LqaIssueSeverityEnum = 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,7 +13,6 @@ 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);
|
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"}
|
|
@@ -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,mF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AAC,CAAC,MAAM,CAAC;QACP,aAAa,EAAE,0BAA0B;QACzC,aAAa,EAAE,yBAAyB;QACxC,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAC5C,MAAM,EAAE,aAAC,CAAC,KAAK,CACb,aAAC,CAAC,MAAM,CAAC;YACP,QAAQ,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,sDA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QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;YACpB,QAAQ,EAAE,aAAC,CAAC,UAAU,CAAC,oCAAoB,CAAC;YAC5C,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SAC/B,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;KACD,QAAQ,CAAC,mCAAmC,CAAC,CAAA"}
|
|
@@ -1000,19 +1000,7 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
|
|
|
1000
1000
|
translation: z.ZodString;
|
|
1001
1001
|
score: z.ZodNullable<z.ZodNumber>;
|
|
1002
1002
|
lqaIssues: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1003
|
-
category: z.
|
|
1004
|
-
readonly ACCURACY: "accuracy";
|
|
1005
|
-
readonly FLUENCY: "fluency";
|
|
1006
|
-
readonly TERMINOLOGY: "terminology";
|
|
1007
|
-
readonly LOCALE_CONVENTION: "locale convention";
|
|
1008
|
-
readonly STYLE: "style";
|
|
1009
|
-
readonly CONSISTENCY: "consistency";
|
|
1010
|
-
readonly COHERENCE: "coherence";
|
|
1011
|
-
readonly DESIGN: "design";
|
|
1012
|
-
readonly MARKUP: "markup";
|
|
1013
|
-
readonly INTERNATIONALIZATION: "internationalization";
|
|
1014
|
-
readonly VERITY: "verity";
|
|
1015
|
-
}>;
|
|
1003
|
+
category: z.ZodString;
|
|
1016
1004
|
severity: z.ZodNativeEnum<{
|
|
1017
1005
|
readonly NEUTRAL: "neutral";
|
|
1018
1006
|
readonly MINOR: "minor";
|
|
@@ -1021,11 +1009,11 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
|
|
|
1021
1009
|
}>;
|
|
1022
1010
|
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1023
1011
|
}, "strip", z.ZodTypeAny, {
|
|
1024
|
-
category:
|
|
1012
|
+
category: string;
|
|
1025
1013
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1026
1014
|
comment?: string | null | undefined;
|
|
1027
1015
|
}, {
|
|
1028
|
-
category:
|
|
1016
|
+
category: string;
|
|
1029
1017
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1030
1018
|
comment?: string | null | undefined;
|
|
1031
1019
|
}>, "many">>>;
|
|
@@ -1047,7 +1035,7 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
|
|
|
1047
1035
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1048
1036
|
}[] | undefined;
|
|
1049
1037
|
lqaIssues?: {
|
|
1050
|
-
category:
|
|
1038
|
+
category: string;
|
|
1051
1039
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1052
1040
|
comment?: string | null | undefined;
|
|
1053
1041
|
}[] | null | undefined;
|
|
@@ -1062,7 +1050,7 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
|
|
|
1062
1050
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1063
1051
|
}[] | undefined;
|
|
1064
1052
|
lqaIssues?: {
|
|
1065
|
-
category:
|
|
1053
|
+
category: string;
|
|
1066
1054
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1067
1055
|
comment?: string | null | undefined;
|
|
1068
1056
|
}[] | null | undefined;
|
|
@@ -1106,7 +1094,7 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
|
|
|
1106
1094
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1107
1095
|
}[] | undefined;
|
|
1108
1096
|
lqaIssues?: {
|
|
1109
|
-
category:
|
|
1097
|
+
category: string;
|
|
1110
1098
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1111
1099
|
comment?: string | null | undefined;
|
|
1112
1100
|
}[] | null | undefined;
|
|
@@ -1133,7 +1121,7 @@ export declare const TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA: z.ZodObject<{
|
|
|
1133
1121
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1134
1122
|
}[] | undefined;
|
|
1135
1123
|
lqaIssues?: {
|
|
1136
|
-
category:
|
|
1124
|
+
category: string;
|
|
1137
1125
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1138
1126
|
comment?: string | null | undefined;
|
|
1139
1127
|
}[] | null | undefined;
|
|
@@ -1158,19 +1146,7 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.ex
|
|
|
1158
1146
|
translation: z.ZodString;
|
|
1159
1147
|
score: z.ZodNullable<z.ZodNumber>;
|
|
1160
1148
|
lqaIssues: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1161
|
-
category: z.
|
|
1162
|
-
readonly ACCURACY: "accuracy";
|
|
1163
|
-
readonly FLUENCY: "fluency";
|
|
1164
|
-
readonly TERMINOLOGY: "terminology";
|
|
1165
|
-
readonly LOCALE_CONVENTION: "locale convention";
|
|
1166
|
-
readonly STYLE: "style";
|
|
1167
|
-
readonly CONSISTENCY: "consistency";
|
|
1168
|
-
readonly COHERENCE: "coherence";
|
|
1169
|
-
readonly DESIGN: "design";
|
|
1170
|
-
readonly MARKUP: "markup";
|
|
1171
|
-
readonly INTERNATIONALIZATION: "internationalization";
|
|
1172
|
-
readonly VERITY: "verity";
|
|
1173
|
-
}>;
|
|
1149
|
+
category: z.ZodString;
|
|
1174
1150
|
severity: z.ZodNativeEnum<{
|
|
1175
1151
|
readonly NEUTRAL: "neutral";
|
|
1176
1152
|
readonly MINOR: "minor";
|
|
@@ -1179,11 +1155,11 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.ex
|
|
|
1179
1155
|
}>;
|
|
1180
1156
|
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1181
1157
|
}, "strip", z.ZodTypeAny, {
|
|
1182
|
-
category:
|
|
1158
|
+
category: string;
|
|
1183
1159
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1184
1160
|
comment?: string | null | undefined;
|
|
1185
1161
|
}, {
|
|
1186
|
-
category:
|
|
1162
|
+
category: string;
|
|
1187
1163
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1188
1164
|
comment?: string | null | undefined;
|
|
1189
1165
|
}>, "many">>>;
|
|
@@ -1205,7 +1181,7 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.ex
|
|
|
1205
1181
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1206
1182
|
}[] | undefined;
|
|
1207
1183
|
lqaIssues?: {
|
|
1208
|
-
category:
|
|
1184
|
+
category: string;
|
|
1209
1185
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1210
1186
|
comment?: string | null | undefined;
|
|
1211
1187
|
}[] | null | undefined;
|
|
@@ -1220,7 +1196,7 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.ex
|
|
|
1220
1196
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1221
1197
|
}[] | undefined;
|
|
1222
1198
|
lqaIssues?: {
|
|
1223
|
-
category:
|
|
1199
|
+
category: string;
|
|
1224
1200
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1225
1201
|
comment?: string | null | undefined;
|
|
1226
1202
|
}[] | null | undefined;
|
|
@@ -1267,7 +1243,7 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.ex
|
|
|
1267
1243
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1268
1244
|
}[] | undefined;
|
|
1269
1245
|
lqaIssues?: {
|
|
1270
|
-
category:
|
|
1246
|
+
category: string;
|
|
1271
1247
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1272
1248
|
comment?: string | null | undefined;
|
|
1273
1249
|
}[] | null | undefined;
|
|
@@ -1295,7 +1271,7 @@ export declare const TRANSLATE_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.ex
|
|
|
1295
1271
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1296
1272
|
}[] | undefined;
|
|
1297
1273
|
lqaIssues?: {
|
|
1298
|
-
category:
|
|
1274
|
+
category: string;
|
|
1299
1275
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1300
1276
|
comment?: string | null | undefined;
|
|
1301
1277
|
}[] | null | undefined;
|
|
@@ -1320,19 +1296,7 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
|
|
|
1320
1296
|
translation: z.ZodString;
|
|
1321
1297
|
score: z.ZodNullable<z.ZodNumber>;
|
|
1322
1298
|
lqaIssues: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1323
|
-
category: z.
|
|
1324
|
-
readonly ACCURACY: "accuracy";
|
|
1325
|
-
readonly FLUENCY: "fluency";
|
|
1326
|
-
readonly TERMINOLOGY: "terminology";
|
|
1327
|
-
readonly LOCALE_CONVENTION: "locale convention";
|
|
1328
|
-
readonly STYLE: "style";
|
|
1329
|
-
readonly CONSISTENCY: "consistency";
|
|
1330
|
-
readonly COHERENCE: "coherence";
|
|
1331
|
-
readonly DESIGN: "design";
|
|
1332
|
-
readonly MARKUP: "markup";
|
|
1333
|
-
readonly INTERNATIONALIZATION: "internationalization";
|
|
1334
|
-
readonly VERITY: "verity";
|
|
1335
|
-
}>;
|
|
1299
|
+
category: z.ZodString;
|
|
1336
1300
|
severity: z.ZodNativeEnum<{
|
|
1337
1301
|
readonly NEUTRAL: "neutral";
|
|
1338
1302
|
readonly MINOR: "minor";
|
|
@@ -1341,11 +1305,11 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
|
|
|
1341
1305
|
}>;
|
|
1342
1306
|
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1343
1307
|
}, "strip", z.ZodTypeAny, {
|
|
1344
|
-
category:
|
|
1308
|
+
category: string;
|
|
1345
1309
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1346
1310
|
comment?: string | null | undefined;
|
|
1347
1311
|
}, {
|
|
1348
|
-
category:
|
|
1312
|
+
category: string;
|
|
1349
1313
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1350
1314
|
comment?: string | null | undefined;
|
|
1351
1315
|
}>, "many">>>;
|
|
@@ -1367,7 +1331,7 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
|
|
|
1367
1331
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1368
1332
|
}[] | undefined;
|
|
1369
1333
|
lqaIssues?: {
|
|
1370
|
-
category:
|
|
1334
|
+
category: string;
|
|
1371
1335
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1372
1336
|
comment?: string | null | undefined;
|
|
1373
1337
|
}[] | null | undefined;
|
|
@@ -1382,7 +1346,7 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
|
|
|
1382
1346
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1383
1347
|
}[] | undefined;
|
|
1384
1348
|
lqaIssues?: {
|
|
1385
|
-
category:
|
|
1349
|
+
category: string;
|
|
1386
1350
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1387
1351
|
comment?: string | null | undefined;
|
|
1388
1352
|
}[] | null | undefined;
|
|
@@ -1429,7 +1393,7 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
|
|
|
1429
1393
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1430
1394
|
}[] | undefined;
|
|
1431
1395
|
lqaIssues?: {
|
|
1432
|
-
category:
|
|
1396
|
+
category: string;
|
|
1433
1397
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1434
1398
|
comment?: string | null | undefined;
|
|
1435
1399
|
}[] | null | undefined;
|
|
@@ -1457,7 +1421,7 @@ export declare const TRANSLATE_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"s
|
|
|
1457
1421
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
1458
1422
|
}[] | undefined;
|
|
1459
1423
|
lqaIssues?: {
|
|
1460
|
-
category:
|
|
1424
|
+
category: string;
|
|
1461
1425
|
severity: "neutral" | "minor" | "major" | "critical";
|
|
1462
1426
|
comment?: string | null | undefined;
|
|
1463
1427
|
}[] | null | undefined;
|
|
@@ -52,7 +52,7 @@ exports.TRANSLATE_ASYNC_V2_CALLBACK_SCHEMA = zod_1.default
|
|
|
52
52
|
score: zod_1.default.number().nullable(),
|
|
53
53
|
lqaIssues: zod_1.default
|
|
54
54
|
.array(zod_1.default.object({
|
|
55
|
-
category: zod_1.default.
|
|
55
|
+
category: zod_1.default.string(),
|
|
56
56
|
severity: zod_1.default.nativeEnum(commonSchemas_2.LqaIssueSeverityEnum),
|
|
57
57
|
comment: zod_1.default.string().nullable().optional(),
|
|
58
58
|
}))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translateAsyncSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/translation/translateAsyncSchemas.ts"],"names":[],"mappings":";;;;AAAA,sDAAmB;AACnB,uEAAoG;AACpG,2DAMgC;AAChC,mFAAgF;AAChF,
|
|
1
|
+
{"version":3,"file":"translateAsyncSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/translation/translateAsyncSchemas.ts"],"names":[],"mappings":";;;;AAAA,sDAAmB;AACnB,uEAAoG;AACpG,2DAMgC;AAChC,mFAAgF;AAChF,wDAA2D;AAC3D,mDAOwB;AAExB,MAAM,wBAAwB,GAAG,EAAE,CAAA;AAEtB,QAAA,2BAA2B,GAAG,0CAAoB,CAAC,MAAM,CAAC;IACrE,YAAY,EAAE,6BAAa;IAC3B,YAAY,EAAE,6BAAa;IAC3B,WAAW,EAAE,8CAA8B,CAAC,QAAQ,EAAE;IACtD,sBAAsB,EAAE,aAAC;SACtB,OAAO,EAAE;SACT,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CACP,8RAA8R,CAC/R;IACH,YAAY,EAAE,aAAC;SACZ,OAAO,EAAE;SACT,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CACP,sGAAsG,CACvG;IACH,OAAO,EAAE,sDAA0B,CAAC,QAAQ,EAAE;IAC9C,YAAY,EAAE,aAAC;SACZ,KAAK,CAAC,6CAA6B,CAAC;SACpC,QAAQ,EAAE;SACV,GAAG,CAAC,wBAAwB,CAAC;SAC7B,MAAM,CAAC,GAAG,+BAAe,CAAC;CAC9B,CAAC;KACC,MAAM,CAAC,GAAG,kDAAkC,CAAC;KAC7C,MAAM,CAAC,GAAG,sCAAsB,CAAC;KACjC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;IACf,OAAO,CAAC,CAAC,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,sBAAsB,CAAC,CAAA;AAC3D,CAAC,EAAE,kFAAkF,CAAC,CAAA;AAE3E,QAAA,8BAA8B,GAAG,6CAA6B,CAAA;AAE9D,QAAA,+BAA+B,GAAG,aAAC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