@lokalise/tm-api-schemas 2.2.0 → 2.3.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/api-schemas/bulk-find-matches.d.ts +21 -1
- package/dist/api-schemas/get-matches.d.ts +18 -1
- package/dist/api-schemas/get-records.d.ts +47 -7
- package/dist/api-schemas/get-records.js +12 -10
- package/dist/api-schemas/get-records.js.map +1 -1
- package/dist/api-schemas/put-records.d.ts +3 -1
- package/dist/api-schemas/put-records.js +2 -1
- package/dist/api-schemas/put-records.js.map +1 -1
- package/dist/objects.js +7 -7
- package/dist/objects.js.map +1 -1
- package/package.json +7 -7
|
@@ -83,4 +83,24 @@ export declare const postBulkFindMatchesContract: import("@lokalise/api-contract
|
|
|
83
83
|
}, z.core.$strip>>;
|
|
84
84
|
}, z.core.$strip>, z.ZodObject<{
|
|
85
85
|
groupId: z.ZodString;
|
|
86
|
-
}, z.core.$strip>, undefined, z.ZodAny, false, false
|
|
86
|
+
}, z.core.$strip>, undefined, z.ZodAny, false, false, {
|
|
87
|
+
200: z.ZodObject<{
|
|
88
|
+
data: z.ZodArray<z.ZodObject<{
|
|
89
|
+
filterId: z.ZodOptional<z.ZodString>;
|
|
90
|
+
matches: z.ZodArray<z.ZodObject<{
|
|
91
|
+
id: z.ZodString;
|
|
92
|
+
groupId: z.ZodString;
|
|
93
|
+
ownerId: z.ZodGUID;
|
|
94
|
+
sourceLocale: z.ZodString;
|
|
95
|
+
targetLocale: z.ZodString;
|
|
96
|
+
sourceText: z.ZodString;
|
|
97
|
+
targetText: z.ZodString;
|
|
98
|
+
sourcePrevContent: z.ZodOptional<z.ZodString>;
|
|
99
|
+
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
100
|
+
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
101
|
+
createdAt: z.ZodISODateTime;
|
|
102
|
+
updatedAt: z.ZodISODateTime;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
}>;
|
|
@@ -49,4 +49,21 @@ export declare const getTranslationMemoryMatchesContract: import("@lokalise/api-
|
|
|
49
49
|
'prev-content': z.ZodOptional<z.ZodString>;
|
|
50
50
|
'next-content': z.ZodOptional<z.ZodString>;
|
|
51
51
|
'max-matches': z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
52
|
-
}, z.core.$strip>, z.ZodAny, false, false
|
|
52
|
+
}, z.core.$strip>, z.ZodAny, false, false, {
|
|
53
|
+
200: z.ZodObject<{
|
|
54
|
+
data: z.ZodArray<z.ZodObject<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
groupId: z.ZodString;
|
|
57
|
+
ownerId: z.ZodGUID;
|
|
58
|
+
sourceLocale: z.ZodString;
|
|
59
|
+
targetLocale: z.ZodString;
|
|
60
|
+
sourceText: z.ZodString;
|
|
61
|
+
targetText: z.ZodString;
|
|
62
|
+
sourcePrevContent: z.ZodOptional<z.ZodString>;
|
|
63
|
+
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
64
|
+
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
65
|
+
createdAt: z.ZodISODateTime;
|
|
66
|
+
updatedAt: z.ZodISODateTime;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
}>;
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare const TRANSLATION_MEMORY_RECORDS_CURSOR_SCHEMA: z.ZodObject<{
|
|
3
|
+
sourceLocale: z.ZodString;
|
|
4
|
+
sourceText: z.ZodString;
|
|
5
|
+
sourcePrevContent: z.ZodOptional<z.ZodString>;
|
|
6
|
+
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const GET_TRANSLATION_MEMORY_RECORDS_PAGINATION_SCHEMA: z.ZodObject<{
|
|
10
|
+
after: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<Record<string, unknown> | undefined, string>>, z.ZodOptional<z.ZodObject<{
|
|
11
|
+
sourceLocale: z.ZodString;
|
|
12
|
+
sourceText: z.ZodString;
|
|
13
|
+
sourcePrevContent: z.ZodOptional<z.ZodString>;
|
|
14
|
+
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>>>;
|
|
5
17
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
6
18
|
}, z.core.$strip>;
|
|
7
|
-
export type
|
|
19
|
+
export type GetTranslationMemoryRecordsPagination = z.infer<typeof GET_TRANSLATION_MEMORY_RECORDS_PAGINATION_SCHEMA>;
|
|
20
|
+
export type GetTranslationMemoryRecordsPaginationInput = z.input<typeof GET_TRANSLATION_MEMORY_RECORDS_PAGINATION_SCHEMA>;
|
|
8
21
|
export declare const GET_TRANSLATION_MEMORY_RECORDS_RESPONSE_SCHEMA: z.ZodObject<{
|
|
9
22
|
data: z.ZodArray<z.ZodObject<{
|
|
10
23
|
id: z.ZodString;
|
|
@@ -50,7 +63,34 @@ export declare const getTranslationMemoryRecordsContract: import("@lokalise/api-
|
|
|
50
63
|
}, z.core.$strip>, z.ZodObject<{
|
|
51
64
|
groupId: z.ZodString;
|
|
52
65
|
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
|
|
54
|
-
|
|
66
|
+
after: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<Record<string, unknown> | undefined, string>>, z.ZodOptional<z.ZodObject<{
|
|
67
|
+
sourceLocale: z.ZodString;
|
|
68
|
+
sourceText: z.ZodString;
|
|
69
|
+
sourcePrevContent: z.ZodOptional<z.ZodString>;
|
|
70
|
+
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
71
|
+
id: z.ZodString;
|
|
72
|
+
}, z.core.$strip>>>>;
|
|
55
73
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
56
|
-
}, z.core.$strip>, z.ZodAny, false, false
|
|
74
|
+
}, z.core.$strip>, z.ZodAny, false, false, {
|
|
75
|
+
200: z.ZodObject<{
|
|
76
|
+
data: z.ZodArray<z.ZodObject<{
|
|
77
|
+
id: z.ZodString;
|
|
78
|
+
groupId: z.ZodString;
|
|
79
|
+
ownerId: z.ZodGUID;
|
|
80
|
+
sourceLocale: z.ZodString;
|
|
81
|
+
targetLocale: z.ZodString;
|
|
82
|
+
sourceText: z.ZodString;
|
|
83
|
+
targetText: z.ZodString;
|
|
84
|
+
sourcePrevContent: z.ZodOptional<z.ZodString>;
|
|
85
|
+
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
86
|
+
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
87
|
+
createdAt: z.ZodISODateTime;
|
|
88
|
+
updatedAt: z.ZodISODateTime;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
meta: z.ZodObject<{
|
|
91
|
+
count: z.ZodNumber;
|
|
92
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
93
|
+
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { multiCursorOptionalPaginationSchema, zMeta } from '@lokalise/api-common';
|
|
2
2
|
import { buildGetRoute } from '@lokalise/api-contracts';
|
|
3
3
|
import { commonErrorResponses } from '@lokalise/common-api-schemas';
|
|
4
4
|
import { z } from 'zod/v4';
|
|
@@ -7,22 +7,24 @@ import { GROUP_REQUEST_PARAMS_SCHEMA } from "./common.js";
|
|
|
7
7
|
// --------------------------------------------
|
|
8
8
|
// GET /v1/groups/:groupId/records
|
|
9
9
|
// --------------------------------------------
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
.default(MaxRecordsLimit)
|
|
17
|
-
.describe('Amount of records to be returned'),
|
|
10
|
+
export const TRANSLATION_MEMORY_RECORDS_CURSOR_SCHEMA = z.object({
|
|
11
|
+
sourceLocale: z.string().describe('Translation memory record source locale'),
|
|
12
|
+
sourceText: z.string().describe('Translation memory record source text'),
|
|
13
|
+
sourcePrevContent: z.string().optional().describe('Translation memory record previous context'),
|
|
14
|
+
sourceNextContent: z.string().optional().describe('Translation memory record next context'),
|
|
15
|
+
id: z.string().nonempty().describe('Unique translation memory record ID'),
|
|
18
16
|
});
|
|
17
|
+
const MaxRecordsLimit = 100;
|
|
18
|
+
export const GET_TRANSLATION_MEMORY_RECORDS_PAGINATION_SCHEMA = multiCursorOptionalPaginationSchema(TRANSLATION_MEMORY_RECORDS_CURSOR_SCHEMA)
|
|
19
|
+
.omit({ before: true })
|
|
20
|
+
.extend({ limit: z.coerce.number().min(1).max(MaxRecordsLimit).default(MaxRecordsLimit) });
|
|
19
21
|
export const GET_TRANSLATION_MEMORY_RECORDS_RESPONSE_SCHEMA = z.object({
|
|
20
22
|
data: z.array(TRANSLATION_MEMORY_RECORD_SCHEMA),
|
|
21
23
|
meta: zMeta,
|
|
22
24
|
});
|
|
23
25
|
export const getTranslationMemoryRecordsContract = buildGetRoute({
|
|
24
26
|
requestPathParamsSchema: GROUP_REQUEST_PARAMS_SCHEMA,
|
|
25
|
-
requestQuerySchema:
|
|
27
|
+
requestQuerySchema: GET_TRANSLATION_MEMORY_RECORDS_PAGINATION_SCHEMA,
|
|
26
28
|
requestHeaderSchema: z.any(),
|
|
27
29
|
pathResolver: (params) => `/v1/groups/${params.groupId}/records`,
|
|
28
30
|
successResponseBodySchema: GET_TRANSLATION_MEMORY_RECORDS_RESPONSE_SCHEMA,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-records.js","sourceRoot":"","sources":["../../src/api-schemas/get-records.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"get-records.js","sourceRoot":"","sources":["../../src/api-schemas/get-records.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,gCAAgC,EAAE,MAAM,eAAe,CAAA;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAEzD,+CAA+C;AAC/C,kCAAkC;AAClC,+CAA+C;AAC/C,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IAC5E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;IACxE,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IAC/F,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;IAC3F,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;CAC1E,CAAC,CAAA;AAEF,MAAM,eAAe,GAAG,GAAG,CAAA;AAC3B,MAAM,CAAC,MAAM,gDAAgD,GAAG,mCAAmC,CACjG,wCAAwC,CACzC;KACE,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;KACtB,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,CAAA;AAQ5F,MAAM,CAAC,MAAM,8CAA8C,GAAG,CAAC,CAAC,MAAM,CAAC;IACrE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,gCAAgC,CAAC;IAC/C,IAAI,EAAE,KAAK;CACZ,CAAC,CAAA;AAKF,MAAM,CAAC,MAAM,mCAAmC,GAAG,aAAa,CAAC;IAC/D,uBAAuB,EAAE,2BAA2B;IACpD,kBAAkB,EAAE,gDAAgD;IACpE,mBAAmB,EAAE,CAAC,CAAC,GAAG,EAAE;IAC5B,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,cAAc,MAAM,CAAC,OAAO,UAAU;IAChE,yBAAyB,EAAE,8CAA8C;IACzE,WAAW,EAAE,0CAA0C;IACvD,2BAA2B,EAAE;QAC3B,GAAG,oBAAoB;QACvB,GAAG,EAAE,8CAA8C;KACpD;CACF,CAAC,CAAA"}
|
|
@@ -21,4 +21,6 @@ export declare const putTranslationMemoryRecordsContract: import("@lokalise/api-
|
|
|
21
21
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
22
22
|
}, z.core.$strip>>, z.ZodUndefined, z.ZodObject<{
|
|
23
23
|
groupId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, undefined, z.ZodAny, false, true
|
|
24
|
+
}, z.core.$strip>, undefined, z.ZodAny, false, true, {
|
|
25
|
+
204: z.ZodUndefined;
|
|
26
|
+
}>;
|
|
@@ -8,7 +8,8 @@ import { GROUP_REQUEST_PARAMS_SCHEMA } from "./common.js";
|
|
|
8
8
|
// --------------------------------------------
|
|
9
9
|
export const PUT_TRANSLATION_MEMORY_RECORD_REQUEST_BODY_SCHEMA = z
|
|
10
10
|
.array(UPSERT_TRANSLATION_MEMORY_RECORD_SCHEMA)
|
|
11
|
-
.min(1)
|
|
11
|
+
.min(1)
|
|
12
|
+
.max(100);
|
|
12
13
|
export const putTranslationMemoryRecordsContract = buildPayloadRoute({
|
|
13
14
|
method: 'put',
|
|
14
15
|
requestPathParamsSchema: GROUP_REQUEST_PARAMS_SCHEMA,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"put-records.js","sourceRoot":"","sources":["../../src/api-schemas/put-records.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,uCAAuC,EAAE,MAAM,eAAe,CAAA;AACvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAEzD,+CAA+C;AAC/C,kCAAkC;AAClC,+CAA+C;AAE/C,MAAM,CAAC,MAAM,iDAAiD,GAAG,CAAC;KAC/D,KAAK,CAAC,uCAAuC,CAAC;KAC9C,GAAG,CAAC,CAAC,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"put-records.js","sourceRoot":"","sources":["../../src/api-schemas/put-records.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,uCAAuC,EAAE,MAAM,eAAe,CAAA;AACvE,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAEzD,+CAA+C;AAC/C,kCAAkC;AAClC,+CAA+C;AAE/C,MAAM,CAAC,MAAM,iDAAiD,GAAG,CAAC;KAC/D,KAAK,CAAC,uCAAuC,CAAC;KAC9C,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,GAAG,CAAC,CAAA;AAKX,MAAM,CAAC,MAAM,mCAAmC,GAAG,iBAAiB,CAAC;IACnE,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,2BAA2B;IACpD,iBAAiB,EAAE,iDAAiD;IACpE,mBAAmB,EAAE,CAAC,CAAC,GAAG,EAAE;IAC5B,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,cAAc,MAAM,CAAC,OAAO,UAAU;IAChE,WAAW,EAAE,6BAA6B;IAC1C,yBAAyB,EAAE,CAAC,CAAC,SAAS,EAAE;IACxC,uBAAuB,EAAE,IAAI;IAC7B,2BAA2B,EAAE;QAC3B,GAAG,oBAAoB;QACvB,GAAG,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;KACjD;CACF,CAAC,CAAA"}
|
package/dist/objects.js
CHANGED
|
@@ -5,7 +5,7 @@ export const LOCALE_SCHEMA = z.string().min(1).refine(isSupportedLocale, {
|
|
|
5
5
|
});
|
|
6
6
|
export const GROUP_ID_SCHEMA = z
|
|
7
7
|
.string()
|
|
8
|
-
.
|
|
8
|
+
.nonempty()
|
|
9
9
|
.describe('Identifier of an isolated group of records (e.g. can be used to separate searches per different projects)');
|
|
10
10
|
export const TRANSLATION_MEMORY_RECORD_SCHEMA = z.object({
|
|
11
11
|
id: z.string().nonempty().describe('Unique record ID, generated by TM service'),
|
|
@@ -15,16 +15,16 @@ export const TRANSLATION_MEMORY_RECORD_SCHEMA = z.object({
|
|
|
15
15
|
.describe('Unique identifier of a record owner - only owner can UPDATE or DELETE such record'),
|
|
16
16
|
sourceLocale: LOCALE_SCHEMA.describe('Source language tag (locale), e.g. "de" or "en-CA"'),
|
|
17
17
|
targetLocale: LOCALE_SCHEMA.describe('Target language tag (locale), e.g. "de" or "en-CA"'),
|
|
18
|
-
sourceText: z.string().
|
|
19
|
-
targetText: z.string().
|
|
18
|
+
sourceText: z.string().nonempty().describe('Translation text in source language'),
|
|
19
|
+
targetText: z.string().nonempty().describe('Translation text in target language'),
|
|
20
20
|
sourcePrevContent: z
|
|
21
21
|
.string()
|
|
22
|
-
.
|
|
22
|
+
.nonempty()
|
|
23
23
|
.optional()
|
|
24
24
|
.describe('Text that appears right before the seeked translation'),
|
|
25
25
|
sourceNextContent: z
|
|
26
26
|
.string()
|
|
27
|
-
.
|
|
27
|
+
.nonempty()
|
|
28
28
|
.optional()
|
|
29
29
|
.describe('Text that appears right after the seeked translation'),
|
|
30
30
|
updatedBy: z.guid().optional().describe('User ID that updated the record last time'),
|
|
@@ -52,12 +52,12 @@ export const TRANSLATION_MEMORY_FILTER_SCHEMA = z.object({
|
|
|
52
52
|
targetLocale: LOCALE_SCHEMA.describe('Target translation language tag (locale), e.g. "de" or "en-CA"'),
|
|
53
53
|
prevContent: z
|
|
54
54
|
.string()
|
|
55
|
-
.
|
|
55
|
+
.nonempty()
|
|
56
56
|
.optional()
|
|
57
57
|
.describe('Text that appears right before the seeked translation, used for in-context match'),
|
|
58
58
|
nextContent: z
|
|
59
59
|
.string()
|
|
60
|
-
.
|
|
60
|
+
.nonempty()
|
|
61
61
|
.optional()
|
|
62
62
|
.describe('Text that appears right after the seeked translation, used for in-context match'),
|
|
63
63
|
});
|
package/dist/objects.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objects.js","sourceRoot":"","sources":["../src/objects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,iBAAiB,EAAE;IACvE,OAAO,EAAE,oBAAoB;CAC9B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,EAAE;KACR,
|
|
1
|
+
{"version":3,"file":"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F,CAAC;IAC/F,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,iFAAiF,CAAC;CAC/F,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokalise/tm-api-schemas",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Lokalise",
|
|
@@ -34,11 +34,10 @@
|
|
|
34
34
|
"postversion": "biome check --write package.json"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@lokalise/api-common": "^6.
|
|
37
|
+
"@lokalise/api-common": "^6.1.0",
|
|
38
38
|
"@lokalise/api-contracts": "^5.0.0",
|
|
39
|
-
"@lokalise/common-api-schemas": "^1.
|
|
40
|
-
"@lokalise/supported-languages": "^3.1.0"
|
|
41
|
-
"zod": "^3.25.76"
|
|
39
|
+
"@lokalise/common-api-schemas": "^1.3.0",
|
|
40
|
+
"@lokalise/supported-languages": "^3.1.0"
|
|
42
41
|
},
|
|
43
42
|
"peerDependencies": {
|
|
44
43
|
"zod": ">=3.25.76 <5.0.0"
|
|
@@ -47,8 +46,9 @@
|
|
|
47
46
|
"@biomejs/biome": "^2.2.2",
|
|
48
47
|
"@lokalise/biome-config": "^3.1.0",
|
|
49
48
|
"@lokalise/tsconfig": "^2.0.0",
|
|
50
|
-
"@types/node": "24.3.
|
|
49
|
+
"@types/node": "24.3.1",
|
|
51
50
|
"rimraf": "^6.0.1",
|
|
52
|
-
"typescript": "5.9.2"
|
|
51
|
+
"typescript": "5.9.2",
|
|
52
|
+
"zod": "^4.1.8"
|
|
53
53
|
}
|
|
54
54
|
}
|