@lokalise/polyglot-sdk 19.0.0 → 19.0.2
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 +22 -22
- package/dist/index.js +20 -20
- package/dist/index.js.map +1 -1
- package/dist/sdk/PolyglotClient.d.ts +7 -7
- package/dist/sdk/PolyglotClient.js +6 -6
- package/dist/sdk/helpers/htmlEscaping.d.ts +1 -1
- package/dist/sdk/helpers/htmlEscaping.js +3 -3
- package/dist/sdk/helpers/htmlEscaping.js.map +1 -1
- package/dist/sdk/helpers/nonTranslatableContentHelper.d.ts +1 -1
- package/dist/sdk/helpers/nonTranslatableContentHelper.js +3 -3
- package/dist/sdk/helpers/nonTranslatableContentHelper.js.map +1 -1
- package/dist/sdk/helpers/nonTranslatableContentWrappers.d.ts +2 -12
- package/dist/sdk/helpers/nonTranslatableContentWrappers.js +26 -38
- package/dist/sdk/helpers/nonTranslatableContentWrappers.js.map +1 -1
- package/dist/sdk/schemas/common/asyncRequestSchemas.d.ts +1 -1
- package/dist/sdk/schemas/common/commonSchemas.d.ts +12 -1
- package/dist/sdk/schemas/common/commonSchemas.js +5 -1
- package/dist/sdk/schemas/common/commonSchemas.js.map +1 -1
- package/dist/sdk/schemas/common/errorSchemas.d.ts +1 -1
- package/dist/sdk/schemas/common/errorSchemas.js +1 -1
- package/dist/sdk/schemas/common/translationContextSchemas.d.ts +0 -11
- package/dist/sdk/schemas/common/translationContextSchemas.js +2 -6
- package/dist/sdk/schemas/common/translationContextSchemas.js.map +1 -1
- package/dist/sdk/schemas/lqa/commonSchemas.d.ts +1 -1
- package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js +8 -7
- package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js.map +1 -1
- package/dist/sdk/schemas/lqa/lqaSyncSchemas.js +7 -6
- package/dist/sdk/schemas/lqa/lqaSyncSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/generateVariants.js +3 -3
- package/dist/sdk/schemas/translation/rewriteTextSchemas.d.ts +1 -1
- package/dist/sdk/schemas/translation/rewriteTextSchemas.js +4 -4
- package/dist/sdk/schemas/translation/sharedSchemas.d.ts +117 -4
- package/dist/sdk/schemas/translation/sharedSchemas.js +21 -5
- package/dist/sdk/schemas/translation/sharedSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/translateAsyncSchemas.d.ts +265 -1
- package/dist/sdk/schemas/translation/translateAsyncSchemas.js +5 -5
- package/dist/sdk/schemas/translation/translateSyncSchemas.d.ts +233 -1
- package/dist/sdk/schemas/translation/translateSyncSchemas.js +4 -4
- package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js +4 -4
- package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js.map +1 -1
- package/dist/sdk/validation/isSegmentUnderLengthLimit.d.ts +1 -1
- package/dist/sdk/validation/isSegmentUnderLengthLimit.js +3 -3
- package/dist/sdk/validation/requestSizeLimit.d.ts +2 -2
- package/dist/sdk/validation/requestSizeLimit.js +2 -2
- package/package.json +17 -15
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
import { AI_INTEGRATION_ENGINE_SCHEMA, COMMON_REQUEST_HEADERS_SCHEMA, FORCE_INTEGRATION_SCHEMA, LOCALE_SCHEMA, refineIntegrationIsPresent, } from
|
|
3
|
-
import { TRANSLATION_CONTEXT_SCHEMA } from
|
|
4
|
-
import { HISTORY_REQUEST_SCHEMA, SEGMENT_WARNINGS_SCHEMA, VariantsModeEnum, refineDifferentSourceAndTargetLang, refineSingleSegmentSizeLimit, } from
|
|
2
|
+
import { AI_INTEGRATION_ENGINE_SCHEMA, COMMON_REQUEST_HEADERS_SCHEMA, FORCE_INTEGRATION_SCHEMA, LOCALE_SCHEMA, refineIntegrationIsPresent, } from "../common/commonSchemas.js";
|
|
3
|
+
import { TRANSLATION_CONTEXT_SCHEMA } from "../common/translationContextSchemas.js";
|
|
4
|
+
import { HISTORY_REQUEST_SCHEMA, SEGMENT_WARNINGS_SCHEMA, VariantsModeEnum, refineDifferentSourceAndTargetLang, refineSingleSegmentSizeLimit, } from "./sharedSchemas.js";
|
|
5
5
|
export const GENERATE_VARIANTS_BODY_SCHEMA = z
|
|
6
6
|
.object({
|
|
7
7
|
assets: TRANSLATION_CONTEXT_SCHEMA.optional(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
import { COMMON_REQUEST_HEADERS_SCHEMA } from '../common/commonSchemas.
|
|
2
|
+
import { COMMON_REQUEST_HEADERS_SCHEMA } from '../common/commonSchemas.ts';
|
|
3
3
|
export declare const REWRITE_TEXT_SEGMENT_BODY_SCHEMA: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
4
4
|
context: z.ZodOptional<z.ZodObject<Omit<{
|
|
5
5
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
import { ASYNC_REQUEST_SCHEMA, AsyncRequestCallbackStatusEnum, } from
|
|
3
|
-
import { AI_INTEGRATION_ENGINE_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA, COMMON_FAILED_OPERATION_CALLBACK_SCHEMA, COMMON_REQUEST_HEADERS_SCHEMA, FORCE_INTEGRATION_SCHEMA, LOCALE_SCHEMA, refineIntegrationIsPresent, } from
|
|
4
|
-
import { TEXT_REWRITING_CONTEXT } from
|
|
5
|
-
import { CONTENT_ID_PROP_SCHEMA, HISTORY_REQUEST_SCHEMA, REWRITE_CONTENT_UNIT_SCHEMA, SEGMENT_WARNINGS_SCHEMA, VariantsModeEnum, refineRequestSizeLimit, refineSingleSegmentSizeLimit, refineUniqueIds, } from
|
|
2
|
+
import { ASYNC_REQUEST_SCHEMA, AsyncRequestCallbackStatusEnum, } from "../common/asyncRequestSchemas.js";
|
|
3
|
+
import { AI_INTEGRATION_ENGINE_SCHEMA, COMMON_ERROR_RESPONSE_SCHEMA, COMMON_FAILED_OPERATION_CALLBACK_SCHEMA, COMMON_REQUEST_HEADERS_SCHEMA, FORCE_INTEGRATION_SCHEMA, LOCALE_SCHEMA, refineIntegrationIsPresent, } from "../common/commonSchemas.js";
|
|
4
|
+
import { TEXT_REWRITING_CONTEXT } from "../common/translationContextSchemas.js";
|
|
5
|
+
import { CONTENT_ID_PROP_SCHEMA, HISTORY_REQUEST_SCHEMA, REWRITE_CONTENT_UNIT_SCHEMA, SEGMENT_WARNINGS_SCHEMA, VariantsModeEnum, refineRequestSizeLimit, refineSingleSegmentSizeLimit, refineUniqueIds, } from "./sharedSchemas.js";
|
|
6
6
|
export const REWRITE_TEXT_SEGMENT_BODY_SCHEMA = z
|
|
7
7
|
.object({
|
|
8
8
|
context: TEXT_REWRITING_CONTEXT.optional(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
import type { ObjectValues } from '../../types/common.
|
|
3
|
-
import { type IntegrationEngineEnum } from '../common/commonSchemas.
|
|
2
|
+
import type { ObjectValues } from '../../types/common.ts';
|
|
3
|
+
import { type IntegrationEngineEnum } from '../common/commonSchemas.ts';
|
|
4
4
|
export type ContentUnitLike = {
|
|
5
5
|
segments: {
|
|
6
6
|
value: string;
|
|
@@ -43,6 +43,7 @@ export declare const SEGMENT_TRANSLATION_WARNING_SCHEMA: z.ZodObject<{
|
|
|
43
43
|
}, {
|
|
44
44
|
kind: "EDITED_NON_TRANSLATABLE_CONTENT" | "EDITED_ICU_PLURALS";
|
|
45
45
|
}>;
|
|
46
|
+
export type SegmentTranslationWarning = z.infer<typeof SEGMENT_TRANSLATION_WARNING_SCHEMA>;
|
|
46
47
|
export declare const SEGMENT_WARNINGS_SCHEMA: z.ZodArray<z.ZodObject<{
|
|
47
48
|
kind: z.ZodEnum<["EDITED_NON_TRANSLATABLE_CONTENT", "EDITED_ICU_PLURALS"]>;
|
|
48
49
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -52,7 +53,7 @@ export declare const SEGMENT_WARNINGS_SCHEMA: z.ZodArray<z.ZodObject<{
|
|
|
52
53
|
}>, "many">;
|
|
53
54
|
export declare const CONTENT_UNIT_DESCRIPTION_MAX_LENGTH = 32768;
|
|
54
55
|
export declare const CONTENT_ID_PROP_SCHEMA: z.ZodString;
|
|
55
|
-
export declare const TRANSLATE_SEGMENT_SCHEMA: z.ZodObject<{
|
|
56
|
+
export declare const TRANSLATE_SEGMENT_SCHEMA: z.ZodEffects<z.ZodObject<{
|
|
56
57
|
id: z.ZodString;
|
|
57
58
|
tmMatch: z.ZodOptional<z.ZodObject<{
|
|
58
59
|
sourceValue: z.ZodString;
|
|
@@ -64,10 +65,46 @@ export declare const TRANSLATE_SEGMENT_SCHEMA: z.ZodObject<{
|
|
|
64
65
|
sourceValue: string;
|
|
65
66
|
translatedValue: string;
|
|
66
67
|
}>>;
|
|
68
|
+
translationExamples: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
69
|
+
sourceValue: z.ZodString;
|
|
70
|
+
translatedValue: z.ZodString;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
sourceValue: string;
|
|
73
|
+
translatedValue: string;
|
|
74
|
+
}, {
|
|
75
|
+
sourceValue: string;
|
|
76
|
+
translatedValue: string;
|
|
77
|
+
}>, "many">>;
|
|
67
78
|
value: z.ZodString;
|
|
68
79
|
}, "strip", z.ZodTypeAny, {
|
|
69
80
|
value: string;
|
|
70
81
|
id: string;
|
|
82
|
+
translationExamples?: {
|
|
83
|
+
sourceValue: string;
|
|
84
|
+
translatedValue: string;
|
|
85
|
+
}[] | undefined;
|
|
86
|
+
tmMatch?: {
|
|
87
|
+
sourceValue: string;
|
|
88
|
+
translatedValue: string;
|
|
89
|
+
} | undefined;
|
|
90
|
+
}, {
|
|
91
|
+
value: string;
|
|
92
|
+
id: string;
|
|
93
|
+
translationExamples?: {
|
|
94
|
+
sourceValue: string;
|
|
95
|
+
translatedValue: string;
|
|
96
|
+
}[] | undefined;
|
|
97
|
+
tmMatch?: {
|
|
98
|
+
sourceValue: string;
|
|
99
|
+
translatedValue: string;
|
|
100
|
+
} | undefined;
|
|
101
|
+
}>, {
|
|
102
|
+
value: string;
|
|
103
|
+
id: string;
|
|
104
|
+
translationExamples?: {
|
|
105
|
+
sourceValue: string;
|
|
106
|
+
translatedValue: string;
|
|
107
|
+
}[] | undefined;
|
|
71
108
|
tmMatch?: {
|
|
72
109
|
sourceValue: string;
|
|
73
110
|
translatedValue: string;
|
|
@@ -75,6 +112,10 @@ export declare const TRANSLATE_SEGMENT_SCHEMA: z.ZodObject<{
|
|
|
75
112
|
}, {
|
|
76
113
|
value: string;
|
|
77
114
|
id: string;
|
|
115
|
+
translationExamples?: {
|
|
116
|
+
sourceValue: string;
|
|
117
|
+
translatedValue: string;
|
|
118
|
+
}[] | undefined;
|
|
78
119
|
tmMatch?: {
|
|
79
120
|
sourceValue: string;
|
|
80
121
|
translatedValue: string;
|
|
@@ -90,7 +131,7 @@ export declare const TRANSLATE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
90
131
|
description: string;
|
|
91
132
|
}>>;
|
|
92
133
|
characterLimit: z.ZodOptional<z.ZodNumber>;
|
|
93
|
-
segments: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
134
|
+
segments: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
94
135
|
id: z.ZodString;
|
|
95
136
|
tmMatch: z.ZodOptional<z.ZodObject<{
|
|
96
137
|
sourceValue: z.ZodString;
|
|
@@ -102,10 +143,24 @@ export declare const TRANSLATE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
102
143
|
sourceValue: string;
|
|
103
144
|
translatedValue: string;
|
|
104
145
|
}>>;
|
|
146
|
+
translationExamples: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
147
|
+
sourceValue: z.ZodString;
|
|
148
|
+
translatedValue: z.ZodString;
|
|
149
|
+
}, "strip", z.ZodTypeAny, {
|
|
150
|
+
sourceValue: string;
|
|
151
|
+
translatedValue: string;
|
|
152
|
+
}, {
|
|
153
|
+
sourceValue: string;
|
|
154
|
+
translatedValue: string;
|
|
155
|
+
}>, "many">>;
|
|
105
156
|
value: z.ZodString;
|
|
106
157
|
}, "strip", z.ZodTypeAny, {
|
|
107
158
|
value: string;
|
|
108
159
|
id: string;
|
|
160
|
+
translationExamples?: {
|
|
161
|
+
sourceValue: string;
|
|
162
|
+
translatedValue: string;
|
|
163
|
+
}[] | undefined;
|
|
109
164
|
tmMatch?: {
|
|
110
165
|
sourceValue: string;
|
|
111
166
|
translatedValue: string;
|
|
@@ -113,6 +168,32 @@ export declare const TRANSLATE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
113
168
|
}, {
|
|
114
169
|
value: string;
|
|
115
170
|
id: string;
|
|
171
|
+
translationExamples?: {
|
|
172
|
+
sourceValue: string;
|
|
173
|
+
translatedValue: string;
|
|
174
|
+
}[] | undefined;
|
|
175
|
+
tmMatch?: {
|
|
176
|
+
sourceValue: string;
|
|
177
|
+
translatedValue: string;
|
|
178
|
+
} | undefined;
|
|
179
|
+
}>, {
|
|
180
|
+
value: string;
|
|
181
|
+
id: string;
|
|
182
|
+
translationExamples?: {
|
|
183
|
+
sourceValue: string;
|
|
184
|
+
translatedValue: string;
|
|
185
|
+
}[] | undefined;
|
|
186
|
+
tmMatch?: {
|
|
187
|
+
sourceValue: string;
|
|
188
|
+
translatedValue: string;
|
|
189
|
+
} | undefined;
|
|
190
|
+
}, {
|
|
191
|
+
value: string;
|
|
192
|
+
id: string;
|
|
193
|
+
translationExamples?: {
|
|
194
|
+
sourceValue: string;
|
|
195
|
+
translatedValue: string;
|
|
196
|
+
}[] | undefined;
|
|
116
197
|
tmMatch?: {
|
|
117
198
|
sourceValue: string;
|
|
118
199
|
translatedValue: string;
|
|
@@ -120,6 +201,10 @@ export declare const TRANSLATE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
120
201
|
}>, "atleastone">, [{
|
|
121
202
|
value: string;
|
|
122
203
|
id: string;
|
|
204
|
+
translationExamples?: {
|
|
205
|
+
sourceValue: string;
|
|
206
|
+
translatedValue: string;
|
|
207
|
+
}[] | undefined;
|
|
123
208
|
tmMatch?: {
|
|
124
209
|
sourceValue: string;
|
|
125
210
|
translatedValue: string;
|
|
@@ -127,6 +212,10 @@ export declare const TRANSLATE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
127
212
|
}, ...{
|
|
128
213
|
value: string;
|
|
129
214
|
id: string;
|
|
215
|
+
translationExamples?: {
|
|
216
|
+
sourceValue: string;
|
|
217
|
+
translatedValue: string;
|
|
218
|
+
}[] | undefined;
|
|
130
219
|
tmMatch?: {
|
|
131
220
|
sourceValue: string;
|
|
132
221
|
translatedValue: string;
|
|
@@ -134,6 +223,10 @@ export declare const TRANSLATE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
134
223
|
}[]], [{
|
|
135
224
|
value: string;
|
|
136
225
|
id: string;
|
|
226
|
+
translationExamples?: {
|
|
227
|
+
sourceValue: string;
|
|
228
|
+
translatedValue: string;
|
|
229
|
+
}[] | undefined;
|
|
137
230
|
tmMatch?: {
|
|
138
231
|
sourceValue: string;
|
|
139
232
|
translatedValue: string;
|
|
@@ -141,6 +234,10 @@ export declare const TRANSLATE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
141
234
|
}, ...{
|
|
142
235
|
value: string;
|
|
143
236
|
id: string;
|
|
237
|
+
translationExamples?: {
|
|
238
|
+
sourceValue: string;
|
|
239
|
+
translatedValue: string;
|
|
240
|
+
}[] | undefined;
|
|
144
241
|
tmMatch?: {
|
|
145
242
|
sourceValue: string;
|
|
146
243
|
translatedValue: string;
|
|
@@ -151,6 +248,10 @@ export declare const TRANSLATE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
151
248
|
segments: [{
|
|
152
249
|
value: string;
|
|
153
250
|
id: string;
|
|
251
|
+
translationExamples?: {
|
|
252
|
+
sourceValue: string;
|
|
253
|
+
translatedValue: string;
|
|
254
|
+
}[] | undefined;
|
|
154
255
|
tmMatch?: {
|
|
155
256
|
sourceValue: string;
|
|
156
257
|
translatedValue: string;
|
|
@@ -158,6 +259,10 @@ export declare const TRANSLATE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
158
259
|
}, ...{
|
|
159
260
|
value: string;
|
|
160
261
|
id: string;
|
|
262
|
+
translationExamples?: {
|
|
263
|
+
sourceValue: string;
|
|
264
|
+
translatedValue: string;
|
|
265
|
+
}[] | undefined;
|
|
161
266
|
tmMatch?: {
|
|
162
267
|
sourceValue: string;
|
|
163
268
|
translatedValue: string;
|
|
@@ -172,6 +277,10 @@ export declare const TRANSLATE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
172
277
|
segments: [{
|
|
173
278
|
value: string;
|
|
174
279
|
id: string;
|
|
280
|
+
translationExamples?: {
|
|
281
|
+
sourceValue: string;
|
|
282
|
+
translatedValue: string;
|
|
283
|
+
}[] | undefined;
|
|
175
284
|
tmMatch?: {
|
|
176
285
|
sourceValue: string;
|
|
177
286
|
translatedValue: string;
|
|
@@ -179,6 +288,10 @@ export declare const TRANSLATE_CONTENT_UNIT_SCHEMA: z.ZodObject<{
|
|
|
179
288
|
}, ...{
|
|
180
289
|
value: string;
|
|
181
290
|
id: string;
|
|
291
|
+
translationExamples?: {
|
|
292
|
+
sourceValue: string;
|
|
293
|
+
translatedValue: string;
|
|
294
|
+
}[] | undefined;
|
|
182
295
|
tmMatch?: {
|
|
183
296
|
sourceValue: string;
|
|
184
297
|
translatedValue: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
import { isSegmentUnderLengthLimit } from
|
|
3
|
-
import { getRequestSizeLimit, isRequestSizeUnderLimit } from
|
|
4
|
-
import { TM_MATCH_SCHEMA } from
|
|
2
|
+
import { isSegmentUnderLengthLimit } from "../../validation/isSegmentUnderLengthLimit.js";
|
|
3
|
+
import { getRequestSizeLimit, isRequestSizeUnderLimit } from "../../validation/requestSizeLimit.js";
|
|
4
|
+
import { TM_MATCH_SCHEMA, TRANSLATION_EXAMPLE_SCHEMA, } from "../common/commonSchemas.js";
|
|
5
5
|
export const refineDifferentSourceAndTargetLang = [
|
|
6
6
|
(data) => {
|
|
7
7
|
return data.sourceLocale !== data.targetLocale;
|
|
@@ -48,10 +48,26 @@ const ID_PROP_MAX_LENGTH = 100;
|
|
|
48
48
|
export const CONTENT_UNIT_DESCRIPTION_MAX_LENGTH = 32768;
|
|
49
49
|
const CONTENT_UNIT_SEGMENTS_MAX_LENGTH = 1000; // context -> https://lokalise.slack.com/archives/C07BVQEMCRJ/p1725002827265889
|
|
50
50
|
export const CONTENT_ID_PROP_SCHEMA = z.string().min(1).max(ID_PROP_MAX_LENGTH);
|
|
51
|
-
export const TRANSLATE_SEGMENT_SCHEMA = z
|
|
51
|
+
export const TRANSLATE_SEGMENT_SCHEMA = z
|
|
52
|
+
.object({
|
|
52
53
|
id: CONTENT_ID_PROP_SCHEMA,
|
|
53
|
-
tmMatch: TM_MATCH_SCHEMA.describe('This field is deprecated, please use "translationExamples"
|
|
54
|
+
tmMatch: TM_MATCH_SCHEMA.describe('This field is deprecated, please use "translationExamples" instead'),
|
|
55
|
+
translationExamples: z
|
|
56
|
+
.array(TRANSLATION_EXAMPLE_SCHEMA)
|
|
57
|
+
.optional()
|
|
58
|
+
.describe('When defined, the translation will attempt to follow the provided translation example'),
|
|
54
59
|
value: z.string().min(1),
|
|
60
|
+
})
|
|
61
|
+
.transform((segment) => {
|
|
62
|
+
if (segment.tmMatch) {
|
|
63
|
+
segment.translationExamples = segment.translationExamples
|
|
64
|
+
? [...segment.translationExamples, segment.tmMatch]
|
|
65
|
+
: [segment.tmMatch];
|
|
66
|
+
}
|
|
67
|
+
if (segment.translationExamples?.length === 0) {
|
|
68
|
+
segment.translationExamples = undefined;
|
|
69
|
+
}
|
|
70
|
+
return segment;
|
|
55
71
|
});
|
|
56
72
|
export const TRANSLATE_CONTENT_UNIT_SCHEMA = z.object({
|
|
57
73
|
id: CONTENT_ID_PROP_SCHEMA,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/translation/sharedSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAA;AAEnB,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAA;AACzF,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AACnG,OAAO,
|
|
1
|
+
{"version":3,"file":"sharedSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/translation/sharedSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAA;AAEnB,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAA;AACzF,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AACnG,OAAO,EAEL,eAAe,EACf,0BAA0B,GAC3B,MAAM,4BAA4B,CAAA;AAMnC,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,CAAC,IAAoD,EAAE,EAAE;QACvD,OAAO,IAAI,CAAC,YAAY,KAAK,IAAI,CAAC,YAAY,CAAA;IAChD,CAAC;IACD,sDAAsD;CAC9C,CAAA;AAEV,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,CAAC,IAA2D,EAAE,EAAE;QAC9D,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,iBAAiB,CAAC,SAAS;YACzC,CAAC,IAAI,CAAC,OAAO;gBACX,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC;gBACvB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,KAAK,iBAAiB,CAAC,SAAS,CAAC,CACzD,CAAA;IACH,CAAC;IACD,6GAA6G;CACrG,CAAA;AAEV,MAAM,CAAC,MAAM,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