@lokalise/content-type-app-engine-contracts 3.16.0 → 3.17.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.
|
@@ -8,12 +8,12 @@ export declare const getEnvContract: import("@lokalise/api-contracts").GetRouteD
|
|
|
8
8
|
cacheItemStructure: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
9
9
|
refreshTimestamp: z.ZodNumber;
|
|
10
10
|
features: z.ZodObject<{
|
|
11
|
-
skippingEmptyTranslations: z.ZodBoolean
|
|
11
|
+
skippingEmptyTranslations: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
supportedImportTags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
title: z.ZodString;
|
|
15
|
+
}, z.core.$strip>>>;
|
|
12
16
|
}, z.core.$strip>;
|
|
13
|
-
supportedImportTags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
-
id: z.ZodString;
|
|
15
|
-
title: z.ZodString;
|
|
16
|
-
}, z.core.$strip>>>;
|
|
17
17
|
}, z.core.$strip>, z.ZodObject<{
|
|
18
18
|
statusCode: z.ZodNumber;
|
|
19
19
|
payload: z.ZodObject<{
|
|
@@ -33,12 +33,12 @@ export declare const getEnvContract: import("@lokalise/api-contracts").GetRouteD
|
|
|
33
33
|
cacheItemStructure: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
34
34
|
refreshTimestamp: z.ZodNumber;
|
|
35
35
|
features: z.ZodObject<{
|
|
36
|
-
skippingEmptyTranslations: z.ZodBoolean
|
|
36
|
+
skippingEmptyTranslations: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
supportedImportTags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
|
+
id: z.ZodString;
|
|
39
|
+
title: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>>;
|
|
37
41
|
}, z.core.$strip>;
|
|
38
|
-
supportedImportTags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
39
|
-
id: z.ZodString;
|
|
40
|
-
title: z.ZodString;
|
|
41
|
-
}, z.core.$strip>>>;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
401: z.ZodObject<{
|
|
44
44
|
statusCode: z.ZodNumber;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
export declare const FEATURES_SCHEMA: z.ZodObject<{
|
|
3
|
-
skippingEmptyTranslations: z.ZodBoolean;
|
|
4
|
-
}, z.core.$strip>;
|
|
5
|
-
export type Features = z.infer<typeof FEATURES_SCHEMA>;
|
|
6
2
|
export declare const IMPORT_TAG_SCHEMA: z.ZodObject<{
|
|
7
3
|
id: z.ZodString;
|
|
8
4
|
title: z.ZodString;
|
|
9
5
|
}, z.core.$strip>;
|
|
10
6
|
export type ImportTag = z.infer<typeof IMPORT_TAG_SCHEMA>;
|
|
7
|
+
export declare const FEATURES_SCHEMA: z.ZodObject<{
|
|
8
|
+
skippingEmptyTranslations: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
supportedImportTags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
}, z.core.$strip>>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type Features = z.infer<typeof FEATURES_SCHEMA>;
|
|
11
15
|
export declare const GET_ENV_RESPONSE_SCHEMA: z.ZodObject<{
|
|
12
16
|
defaultLocale: z.ZodString;
|
|
13
17
|
locales: z.ZodArray<z.ZodObject<{
|
|
@@ -17,11 +21,11 @@ export declare const GET_ENV_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
17
21
|
cacheItemStructure: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
18
22
|
refreshTimestamp: z.ZodNumber;
|
|
19
23
|
features: z.ZodObject<{
|
|
20
|
-
skippingEmptyTranslations: z.ZodBoolean
|
|
24
|
+
skippingEmptyTranslations: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
supportedImportTags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
title: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>>;
|
|
21
29
|
}, z.core.$strip>;
|
|
22
|
-
supportedImportTags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
|
-
id: z.ZodString;
|
|
24
|
-
title: z.ZodString;
|
|
25
|
-
}, z.core.$strip>>>;
|
|
26
30
|
}, z.core.$strip>;
|
|
27
31
|
export type GetEnvResponse = z.infer<typeof GET_ENV_RESPONSE_SCHEMA>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
import { LOCALE_SCHEMA } from "../language/languageSchemas.js";
|
|
3
|
-
export const FEATURES_SCHEMA = z.object({
|
|
4
|
-
skippingEmptyTranslations: z.boolean(),
|
|
5
|
-
});
|
|
6
3
|
export const IMPORT_TAG_SCHEMA = z.object({
|
|
7
4
|
id: z.string().trim().min(1),
|
|
8
5
|
title: z.string().trim().min(1),
|
|
9
6
|
});
|
|
7
|
+
export const FEATURES_SCHEMA = z.object({
|
|
8
|
+
skippingEmptyTranslations: z.boolean().optional(),
|
|
9
|
+
supportedImportTags: z.array(IMPORT_TAG_SCHEMA).optional(),
|
|
10
|
+
});
|
|
10
11
|
export const GET_ENV_RESPONSE_SCHEMA = z.object({
|
|
11
12
|
defaultLocale: z.string(),
|
|
12
13
|
locales: z.array(LOCALE_SCHEMA),
|
|
13
14
|
cacheItemStructure: z.record(z.string(), z.string()),
|
|
14
15
|
refreshTimestamp: z.number(),
|
|
15
16
|
features: FEATURES_SCHEMA,
|
|
16
|
-
supportedImportTags: z.array(IMPORT_TAG_SCHEMA).optional(),
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=envSchemas.js.map
|
|
@@ -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,
|
|
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,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAChC,CAAC,CAAA;AAGF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,yBAAyB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjD,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EAAE;CAC3D,CAAC,CAAA;AAGF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC;IAC/B,kBAAkB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IACpD,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,QAAQ,EAAE,eAAe;CAC1B,CAAC,CAAA"}
|