@lokalise/content-type-app-engine-contracts 3.25.0 → 3.26.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.
|
@@ -14,6 +14,7 @@ export declare const getEnvContract: import("@lokalise/api-contracts").GetRouteD
|
|
|
14
14
|
id: z.ZodString;
|
|
15
15
|
title: z.ZodString;
|
|
16
16
|
}, z.core.$strip>>>;
|
|
17
|
+
showImportExport: z.ZodOptional<z.ZodBoolean>;
|
|
17
18
|
}, z.core.$strip>;
|
|
18
19
|
}, z.core.$strip>, z.ZodObject<{
|
|
19
20
|
statusCode: z.ZodNumber;
|
|
@@ -40,6 +41,7 @@ export declare const getEnvContract: import("@lokalise/api-contracts").GetRouteD
|
|
|
40
41
|
id: z.ZodString;
|
|
41
42
|
title: z.ZodString;
|
|
42
43
|
}, z.core.$strip>>>;
|
|
44
|
+
showImportExport: z.ZodOptional<z.ZodBoolean>;
|
|
43
45
|
}, z.core.$strip>;
|
|
44
46
|
}, z.core.$strip>;
|
|
45
47
|
401: z.ZodObject<{
|
|
@@ -11,6 +11,7 @@ export declare const FEATURES_SCHEMA: z.ZodObject<{
|
|
|
11
11
|
id: z.ZodString;
|
|
12
12
|
title: z.ZodString;
|
|
13
13
|
}, z.core.$strip>>>;
|
|
14
|
+
showImportExport: z.ZodOptional<z.ZodBoolean>;
|
|
14
15
|
}, z.core.$strip>;
|
|
15
16
|
export type Features = z.infer<typeof FEATURES_SCHEMA>;
|
|
16
17
|
export declare const GET_ENV_RESPONSE_SCHEMA: z.ZodObject<{
|
|
@@ -28,6 +29,7 @@ export declare const GET_ENV_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
28
29
|
id: z.ZodString;
|
|
29
30
|
title: z.ZodString;
|
|
30
31
|
}, z.core.$strip>>>;
|
|
32
|
+
showImportExport: z.ZodOptional<z.ZodBoolean>;
|
|
31
33
|
}, z.core.$strip>;
|
|
32
34
|
}, z.core.$strip>;
|
|
33
35
|
export type GetEnvResponse = z.infer<typeof GET_ENV_RESPONSE_SCHEMA>;
|
|
@@ -7,13 +7,21 @@ export const IMPORT_TAG_SCHEMA = z.object({
|
|
|
7
7
|
export const FEATURES_SCHEMA = z.object({
|
|
8
8
|
/** @deprecated Will be removed within next versions, use showSkipEmptyOptionOnImport */
|
|
9
9
|
skippingEmptyTranslations: z.boolean().optional(),
|
|
10
|
-
showSkipEmptyOptionOnImport: z
|
|
10
|
+
showSkipEmptyOptionOnImport: z
|
|
11
|
+
.boolean()
|
|
12
|
+
.optional()
|
|
13
|
+
.describe('Shows "Don\'t create keys for empty translations" in Import modal Advanced Options. Replaces deprecated skippingEmptyTranslations.'),
|
|
11
14
|
supportedImportTags: z
|
|
12
15
|
.array(IMPORT_TAG_SCHEMA)
|
|
13
16
|
.optional()
|
|
14
17
|
.refine((tags) => !tags || new Set(tags.map((tag) => tag.id)).size === tags.length, {
|
|
15
|
-
|
|
16
|
-
})
|
|
18
|
+
error: 'supportedImportTags ids must be unique',
|
|
19
|
+
})
|
|
20
|
+
.describe('When non-empty, shows an "Add tags to content" multi-select in the Import modal. Tag IDs must be unique.'),
|
|
21
|
+
showImportExport: z
|
|
22
|
+
.boolean()
|
|
23
|
+
.optional()
|
|
24
|
+
.describe('When false, hides Import/Export buttons, "Ready for import" tab, and selection checkboxes.'),
|
|
17
25
|
});
|
|
18
26
|
export const GET_ENV_RESPONSE_SCHEMA = z.object({
|
|
19
27
|
defaultLocale: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envSchemas.js","sourceRoot":"","sources":["../../../src/schemas/env/envSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAE9D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IA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