@lokalise/tm-api-schemas 5.7.0 → 6.1.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/LICENSE +190 -0
- package/dist/api-contracts/import/common.d.ts +1 -1
- package/dist/api-contracts/import/confirm-upload-completion.d.ts +1 -1
- package/dist/api-contracts/import/create-upload-form-data.d.ts +1 -1
- package/dist/api-contracts/import/get-import-processes.d.ts +4 -4
- package/dist/api-contracts/translation-memory/bulk-find-matches.d.ts +10 -6
- package/dist/api-contracts/translation-memory/get-matches.d.ts +8 -5
- package/dist/api-contracts/translation-memory/get-records.d.ts +14 -11
- package/dist/api-contracts/translation-memory/put-records.d.ts +16 -16
- package/dist/objects/common.d.ts +2 -2
- package/dist/objects/common.js +1 -2
- package/dist/objects/common.js.map +1 -1
- package/dist/objects/import.d.ts +1 -1
- package/dist/objects/translation-memory.d.ts +13 -10
- package/dist/objects/translation-memory.js +7 -0
- package/dist/objects/translation-memory.js.map +1 -1
- package/package.json +52 -53
package/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2023 Lokalise
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { z } from 'zod';
|
|
2
2
|
export declare const TM_IMPORT_REQUEST_PARAMS_SCHEMA: z.ZodObject<{
|
|
3
3
|
ownerId: z.ZodGUID;
|
|
4
|
-
groupId: z.
|
|
4
|
+
groupId: z.ZodGUID;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
export type TmImportRequestParamsSchema = z.infer<typeof TM_IMPORT_REQUEST_PARAMS_SCHEMA>;
|
|
@@ -15,7 +15,7 @@ export declare const postConfirmUploadCompletionContract: import("@lokalise/api-
|
|
|
15
15
|
importProcessId: z.ZodString;
|
|
16
16
|
}, z.core.$strip>, z.ZodObject<{
|
|
17
17
|
ownerId: z.ZodGUID;
|
|
18
|
-
groupId: z.
|
|
18
|
+
groupId: z.ZodGUID;
|
|
19
19
|
}, z.core.$strip>, undefined, z.ZodUnion<[z.ZodObject<{
|
|
20
20
|
'Content-Type': z.ZodOptional<z.ZodLiteral<"application/json">>;
|
|
21
21
|
Authorization: z.ZodOptional<z.ZodString>;
|
|
@@ -46,7 +46,7 @@ export declare const postCreateUploadFormDataContract: import("@lokalise/api-con
|
|
|
46
46
|
}, z.core.$strip>;
|
|
47
47
|
}, z.core.$strip>, z.ZodObject<{
|
|
48
48
|
ownerId: z.ZodGUID;
|
|
49
|
-
groupId: z.
|
|
49
|
+
groupId: z.ZodGUID;
|
|
50
50
|
}, z.core.$strip>, undefined, z.ZodUnion<[z.ZodObject<{
|
|
51
51
|
'Content-Type': z.ZodOptional<z.ZodLiteral<"application/json">>;
|
|
52
52
|
Authorization: z.ZodOptional<z.ZodString>;
|
|
@@ -3,7 +3,7 @@ export declare const GET_IMPORT_PROCESSES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
3
3
|
data: z.ZodArray<z.ZodObject<{
|
|
4
4
|
id: z.ZodGUID;
|
|
5
5
|
ownerId: z.ZodGUID;
|
|
6
|
-
groupId: z.
|
|
6
|
+
groupId: z.ZodGUID;
|
|
7
7
|
fileName: z.ZodString;
|
|
8
8
|
inputFileStorageId: z.ZodGUID;
|
|
9
9
|
status: z.ZodEnum<{
|
|
@@ -24,7 +24,7 @@ export declare const getImportProcessesContract: import("@lokalise/api-contracts
|
|
|
24
24
|
data: z.ZodArray<z.ZodObject<{
|
|
25
25
|
id: z.ZodGUID;
|
|
26
26
|
ownerId: z.ZodGUID;
|
|
27
|
-
groupId: z.
|
|
27
|
+
groupId: z.ZodGUID;
|
|
28
28
|
fileName: z.ZodString;
|
|
29
29
|
inputFileStorageId: z.ZodGUID;
|
|
30
30
|
status: z.ZodEnum<{
|
|
@@ -41,7 +41,7 @@ export declare const getImportProcessesContract: import("@lokalise/api-contracts
|
|
|
41
41
|
}, z.core.$strip>>;
|
|
42
42
|
}, z.core.$strip>, z.ZodObject<{
|
|
43
43
|
ownerId: z.ZodGUID;
|
|
44
|
-
groupId: z.
|
|
44
|
+
groupId: z.ZodGUID;
|
|
45
45
|
}, z.core.$strip>, undefined, z.ZodUnion<[z.ZodObject<{
|
|
46
46
|
'Content-Type': z.ZodOptional<z.ZodLiteral<"application/json">>;
|
|
47
47
|
Authorization: z.ZodOptional<z.ZodString>;
|
|
@@ -53,7 +53,7 @@ export declare const getImportProcessesContract: import("@lokalise/api-contracts
|
|
|
53
53
|
data: z.ZodArray<z.ZodObject<{
|
|
54
54
|
id: z.ZodGUID;
|
|
55
55
|
ownerId: z.ZodGUID;
|
|
56
|
-
groupId: z.
|
|
56
|
+
groupId: z.ZodGUID;
|
|
57
57
|
fileName: z.ZodString;
|
|
58
58
|
inputFileStorageId: z.ZodGUID;
|
|
59
59
|
status: z.ZodEnum<{
|
|
@@ -6,7 +6,7 @@ export type PostBulkFindMatchesParams = z.infer<typeof POST_BULK_FIND_MATCHES_PA
|
|
|
6
6
|
export declare const POST_BULK_FIND_MATCHES_REQUEST_BODY_SCHEMA: z.ZodObject<{
|
|
7
7
|
filters: z.ZodArray<z.ZodObject<{
|
|
8
8
|
filterId: z.ZodOptional<z.ZodString>;
|
|
9
|
-
groupId: z.ZodOptional<z.
|
|
9
|
+
groupId: z.ZodOptional<z.ZodGUID>;
|
|
10
10
|
sourceText: z.ZodString;
|
|
11
11
|
sourceLocale: z.ZodString;
|
|
12
12
|
targetLocale: z.ZodString;
|
|
@@ -24,7 +24,7 @@ export declare const BULK_TRANSLATION_MEMORY_MATCHES_SCHEMA: z.ZodObject<{
|
|
|
24
24
|
filterId: z.ZodOptional<z.ZodString>;
|
|
25
25
|
matches: z.ZodArray<z.ZodObject<{
|
|
26
26
|
id: z.ZodString;
|
|
27
|
-
groupId: z.
|
|
27
|
+
groupId: z.ZodGUID;
|
|
28
28
|
ownerId: z.ZodGUID;
|
|
29
29
|
sourceLocale: z.ZodString;
|
|
30
30
|
targetLocale: z.ZodString;
|
|
@@ -42,6 +42,7 @@ export declare const BULK_TRANSLATION_MEMORY_MATCHES_SCHEMA: z.ZodObject<{
|
|
|
42
42
|
readonly AI: "ai";
|
|
43
43
|
readonly MT: "mt";
|
|
44
44
|
readonly IMPORTED: "imported";
|
|
45
|
+
readonly MIGRATED: "migrated";
|
|
45
46
|
}>>;
|
|
46
47
|
externalId: z.ZodOptional<z.ZodString>;
|
|
47
48
|
approved: z.ZodOptional<z.ZodEnum<{
|
|
@@ -84,7 +85,7 @@ export declare const POST_BULK_FIND_MATCHES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
84
85
|
filterId: z.ZodOptional<z.ZodString>;
|
|
85
86
|
matches: z.ZodArray<z.ZodObject<{
|
|
86
87
|
id: z.ZodString;
|
|
87
|
-
groupId: z.
|
|
88
|
+
groupId: z.ZodGUID;
|
|
88
89
|
ownerId: z.ZodGUID;
|
|
89
90
|
sourceLocale: z.ZodString;
|
|
90
91
|
targetLocale: z.ZodString;
|
|
@@ -102,6 +103,7 @@ export declare const POST_BULK_FIND_MATCHES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
102
103
|
readonly AI: "ai";
|
|
103
104
|
readonly MT: "mt";
|
|
104
105
|
readonly IMPORTED: "imported";
|
|
106
|
+
readonly MIGRATED: "migrated";
|
|
105
107
|
}>>;
|
|
106
108
|
externalId: z.ZodOptional<z.ZodString>;
|
|
107
109
|
approved: z.ZodOptional<z.ZodEnum<{
|
|
@@ -143,7 +145,7 @@ export type PostBulkFindMatchesResponse = z.infer<typeof POST_BULK_FIND_MATCHES_
|
|
|
143
145
|
export declare const postBulkFindMatchesContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodObject<{
|
|
144
146
|
filters: z.ZodArray<z.ZodObject<{
|
|
145
147
|
filterId: z.ZodOptional<z.ZodString>;
|
|
146
|
-
groupId: z.ZodOptional<z.
|
|
148
|
+
groupId: z.ZodOptional<z.ZodGUID>;
|
|
147
149
|
sourceText: z.ZodString;
|
|
148
150
|
sourceLocale: z.ZodString;
|
|
149
151
|
targetLocale: z.ZodString;
|
|
@@ -160,7 +162,7 @@ export declare const postBulkFindMatchesContract: import("@lokalise/api-contract
|
|
|
160
162
|
filterId: z.ZodOptional<z.ZodString>;
|
|
161
163
|
matches: z.ZodArray<z.ZodObject<{
|
|
162
164
|
id: z.ZodString;
|
|
163
|
-
groupId: z.
|
|
165
|
+
groupId: z.ZodGUID;
|
|
164
166
|
ownerId: z.ZodGUID;
|
|
165
167
|
sourceLocale: z.ZodString;
|
|
166
168
|
targetLocale: z.ZodString;
|
|
@@ -178,6 +180,7 @@ export declare const postBulkFindMatchesContract: import("@lokalise/api-contract
|
|
|
178
180
|
readonly AI: "ai";
|
|
179
181
|
readonly MT: "mt";
|
|
180
182
|
readonly IMPORTED: "imported";
|
|
183
|
+
readonly MIGRATED: "migrated";
|
|
181
184
|
}>>;
|
|
182
185
|
externalId: z.ZodOptional<z.ZodString>;
|
|
183
186
|
approved: z.ZodOptional<z.ZodEnum<{
|
|
@@ -228,7 +231,7 @@ export declare const postBulkFindMatchesContract: import("@lokalise/api-contract
|
|
|
228
231
|
filterId: z.ZodOptional<z.ZodString>;
|
|
229
232
|
matches: z.ZodArray<z.ZodObject<{
|
|
230
233
|
id: z.ZodString;
|
|
231
|
-
groupId: z.
|
|
234
|
+
groupId: z.ZodGUID;
|
|
232
235
|
ownerId: z.ZodGUID;
|
|
233
236
|
sourceLocale: z.ZodString;
|
|
234
237
|
targetLocale: z.ZodString;
|
|
@@ -246,6 +249,7 @@ export declare const postBulkFindMatchesContract: import("@lokalise/api-contract
|
|
|
246
249
|
readonly AI: "ai";
|
|
247
250
|
readonly MT: "mt";
|
|
248
251
|
readonly IMPORTED: "imported";
|
|
252
|
+
readonly MIGRATED: "migrated";
|
|
249
253
|
}>>;
|
|
250
254
|
externalId: z.ZodOptional<z.ZodString>;
|
|
251
255
|
approved: z.ZodOptional<z.ZodEnum<{
|
|
@@ -4,7 +4,7 @@ export declare const GET_TRANSLATION_MEMORY_MATCHES_REQUEST_PARAMS_SCHEMA: z.Zod
|
|
|
4
4
|
}, z.core.$strip>;
|
|
5
5
|
export type GetTranslationMemoryMatchesRequestParams = z.infer<typeof GET_TRANSLATION_MEMORY_MATCHES_REQUEST_PARAMS_SCHEMA>;
|
|
6
6
|
export declare const GET_TRANSLATION_MEMORY_MATCHES_REQUEST_QUERY_SCHEMA: z.ZodObject<{
|
|
7
|
-
'group-id': z.ZodOptional<z.
|
|
7
|
+
'group-id': z.ZodOptional<z.ZodGUID>;
|
|
8
8
|
'source-text': z.ZodString;
|
|
9
9
|
'source-locale': z.ZodString;
|
|
10
10
|
'target-locale': z.ZodString;
|
|
@@ -18,7 +18,7 @@ export type GetTranslationMemoryMatchesRequestQuery = z.input<typeof GET_TRANSLA
|
|
|
18
18
|
export declare const GET_TRANSLATION_MEMORY_MATCHES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
19
19
|
data: z.ZodArray<z.ZodObject<{
|
|
20
20
|
id: z.ZodString;
|
|
21
|
-
groupId: z.
|
|
21
|
+
groupId: z.ZodGUID;
|
|
22
22
|
ownerId: z.ZodGUID;
|
|
23
23
|
sourceLocale: z.ZodString;
|
|
24
24
|
targetLocale: z.ZodString;
|
|
@@ -36,6 +36,7 @@ export declare const GET_TRANSLATION_MEMORY_MATCHES_RESPONSE_SCHEMA: z.ZodObject
|
|
|
36
36
|
readonly AI: "ai";
|
|
37
37
|
readonly MT: "mt";
|
|
38
38
|
readonly IMPORTED: "imported";
|
|
39
|
+
readonly MIGRATED: "migrated";
|
|
39
40
|
}>>;
|
|
40
41
|
externalId: z.ZodOptional<z.ZodString>;
|
|
41
42
|
approved: z.ZodOptional<z.ZodEnum<{
|
|
@@ -76,7 +77,7 @@ export type GetTranslationMemoryMatchesResponse = z.infer<typeof GET_TRANSLATION
|
|
|
76
77
|
export declare const getTranslationMemoryMatchesContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
|
|
77
78
|
data: z.ZodArray<z.ZodObject<{
|
|
78
79
|
id: z.ZodString;
|
|
79
|
-
groupId: z.
|
|
80
|
+
groupId: z.ZodGUID;
|
|
80
81
|
ownerId: z.ZodGUID;
|
|
81
82
|
sourceLocale: z.ZodString;
|
|
82
83
|
targetLocale: z.ZodString;
|
|
@@ -94,6 +95,7 @@ export declare const getTranslationMemoryMatchesContract: import("@lokalise/api-
|
|
|
94
95
|
readonly AI: "ai";
|
|
95
96
|
readonly MT: "mt";
|
|
96
97
|
readonly IMPORTED: "imported";
|
|
98
|
+
readonly MIGRATED: "migrated";
|
|
97
99
|
}>>;
|
|
98
100
|
externalId: z.ZodOptional<z.ZodString>;
|
|
99
101
|
approved: z.ZodOptional<z.ZodEnum<{
|
|
@@ -132,7 +134,7 @@ export declare const getTranslationMemoryMatchesContract: import("@lokalise/api-
|
|
|
132
134
|
}, z.core.$strip>, z.ZodObject<{
|
|
133
135
|
ownerId: z.ZodGUID;
|
|
134
136
|
}, z.core.$strip>, z.ZodObject<{
|
|
135
|
-
'group-id': z.ZodOptional<z.
|
|
137
|
+
'group-id': z.ZodOptional<z.ZodGUID>;
|
|
136
138
|
'source-text': z.ZodString;
|
|
137
139
|
'source-locale': z.ZodString;
|
|
138
140
|
'target-locale': z.ZodString;
|
|
@@ -151,7 +153,7 @@ export declare const getTranslationMemoryMatchesContract: import("@lokalise/api-
|
|
|
151
153
|
200: z.ZodObject<{
|
|
152
154
|
data: z.ZodArray<z.ZodObject<{
|
|
153
155
|
id: z.ZodString;
|
|
154
|
-
groupId: z.
|
|
156
|
+
groupId: z.ZodGUID;
|
|
155
157
|
ownerId: z.ZodGUID;
|
|
156
158
|
sourceLocale: z.ZodString;
|
|
157
159
|
targetLocale: z.ZodString;
|
|
@@ -169,6 +171,7 @@ export declare const getTranslationMemoryMatchesContract: import("@lokalise/api-
|
|
|
169
171
|
readonly AI: "ai";
|
|
170
172
|
readonly MT: "mt";
|
|
171
173
|
readonly IMPORTED: "imported";
|
|
174
|
+
readonly MIGRATED: "migrated";
|
|
172
175
|
}>>;
|
|
173
176
|
externalId: z.ZodOptional<z.ZodString>;
|
|
174
177
|
approved: z.ZodOptional<z.ZodEnum<{
|
|
@@ -24,18 +24,18 @@ export declare const GET_TRANSLATION_MEMORY_RECORDS_QUERY_SCHEMA: z.ZodObject<{
|
|
|
24
24
|
id: z.ZodString;
|
|
25
25
|
}, z.core.$strip>>>>;
|
|
26
26
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
27
|
-
'group-id': z.ZodOptional<z.
|
|
27
|
+
'group-id': z.ZodOptional<z.ZodGUID>;
|
|
28
28
|
'flex-search-query': z.ZodOptional<z.ZodString>;
|
|
29
|
-
'filter-ids': z.ZodOptional<z.
|
|
30
|
-
'filter-source-locales': z.ZodOptional<z.
|
|
31
|
-
'filter-target-locales': z.ZodOptional<z.
|
|
29
|
+
'filter-ids': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
|
|
30
|
+
'filter-source-locales': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
|
|
31
|
+
'filter-target-locales': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
export type GetTranslationMemoryRecordsQuery = z.infer<typeof GET_TRANSLATION_MEMORY_RECORDS_QUERY_SCHEMA>;
|
|
34
34
|
export type GetTranslationMemoryRecordsQueryInput = z.input<typeof GET_TRANSLATION_MEMORY_RECORDS_QUERY_SCHEMA>;
|
|
35
35
|
export declare const GET_TRANSLATION_MEMORY_RECORDS_RESPONSE_SCHEMA: z.ZodObject<{
|
|
36
36
|
data: z.ZodArray<z.ZodObject<{
|
|
37
37
|
id: z.ZodString;
|
|
38
|
-
groupId: z.
|
|
38
|
+
groupId: z.ZodGUID;
|
|
39
39
|
ownerId: z.ZodGUID;
|
|
40
40
|
sourceLocale: z.ZodString;
|
|
41
41
|
targetLocale: z.ZodString;
|
|
@@ -53,6 +53,7 @@ export declare const GET_TRANSLATION_MEMORY_RECORDS_RESPONSE_SCHEMA: z.ZodObject
|
|
|
53
53
|
readonly AI: "ai";
|
|
54
54
|
readonly MT: "mt";
|
|
55
55
|
readonly IMPORTED: "imported";
|
|
56
|
+
readonly MIGRATED: "migrated";
|
|
56
57
|
}>>;
|
|
57
58
|
externalId: z.ZodOptional<z.ZodString>;
|
|
58
59
|
approved: z.ZodOptional<z.ZodEnum<{
|
|
@@ -97,7 +98,7 @@ export type GetTranslationMemoryRecordsResponse = z.infer<typeof GET_TRANSLATION
|
|
|
97
98
|
export declare const getTranslationMemoryRecordsContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
|
|
98
99
|
data: z.ZodArray<z.ZodObject<{
|
|
99
100
|
id: z.ZodString;
|
|
100
|
-
groupId: z.
|
|
101
|
+
groupId: z.ZodGUID;
|
|
101
102
|
ownerId: z.ZodGUID;
|
|
102
103
|
sourceLocale: z.ZodString;
|
|
103
104
|
targetLocale: z.ZodString;
|
|
@@ -115,6 +116,7 @@ export declare const getTranslationMemoryRecordsContract: import("@lokalise/api-
|
|
|
115
116
|
readonly AI: "ai";
|
|
116
117
|
readonly MT: "mt";
|
|
117
118
|
readonly IMPORTED: "imported";
|
|
119
|
+
readonly MIGRATED: "migrated";
|
|
118
120
|
}>>;
|
|
119
121
|
externalId: z.ZodOptional<z.ZodString>;
|
|
120
122
|
approved: z.ZodOptional<z.ZodEnum<{
|
|
@@ -165,11 +167,11 @@ export declare const getTranslationMemoryRecordsContract: import("@lokalise/api-
|
|
|
165
167
|
id: z.ZodString;
|
|
166
168
|
}, z.core.$strip>>>>;
|
|
167
169
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
168
|
-
'group-id': z.ZodOptional<z.
|
|
170
|
+
'group-id': z.ZodOptional<z.ZodGUID>;
|
|
169
171
|
'flex-search-query': z.ZodOptional<z.ZodString>;
|
|
170
|
-
'filter-ids': z.ZodOptional<z.
|
|
171
|
-
'filter-source-locales': z.ZodOptional<z.
|
|
172
|
-
'filter-target-locales': z.ZodOptional<z.
|
|
172
|
+
'filter-ids': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
|
|
173
|
+
'filter-source-locales': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
|
|
174
|
+
'filter-target-locales': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
|
|
173
175
|
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
174
176
|
'Content-Type': z.ZodOptional<z.ZodLiteral<"application/json">>;
|
|
175
177
|
Authorization: z.ZodOptional<z.ZodString>;
|
|
@@ -180,7 +182,7 @@ export declare const getTranslationMemoryRecordsContract: import("@lokalise/api-
|
|
|
180
182
|
200: z.ZodObject<{
|
|
181
183
|
data: z.ZodArray<z.ZodObject<{
|
|
182
184
|
id: z.ZodString;
|
|
183
|
-
groupId: z.
|
|
185
|
+
groupId: z.ZodGUID;
|
|
184
186
|
ownerId: z.ZodGUID;
|
|
185
187
|
sourceLocale: z.ZodString;
|
|
186
188
|
targetLocale: z.ZodString;
|
|
@@ -198,6 +200,7 @@ export declare const getTranslationMemoryRecordsContract: import("@lokalise/api-
|
|
|
198
200
|
readonly AI: "ai";
|
|
199
201
|
readonly MT: "mt";
|
|
200
202
|
readonly IMPORTED: "imported";
|
|
203
|
+
readonly MIGRATED: "migrated";
|
|
201
204
|
}>>;
|
|
202
205
|
externalId: z.ZodOptional<z.ZodString>;
|
|
203
206
|
approved: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const PUT_TRANSLATION_MEMORY_RECORDS_PARAMS_SCHEMA: z.ZodObject<{
|
|
3
3
|
ownerId: z.ZodGUID;
|
|
4
|
-
groupId: z.
|
|
4
|
+
groupId: z.ZodGUID;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
export type PutTranslationMemoryRecordsPathParams = z.infer<typeof PUT_TRANSLATION_MEMORY_RECORDS_PARAMS_SCHEMA>;
|
|
7
7
|
export declare const PUT_TRANSLATION_MEMORY_RECORD_REQUEST_BODY_SCHEMA: z.ZodArray<z.ZodObject<{
|
|
@@ -15,13 +15,6 @@ export declare const PUT_TRANSLATION_MEMORY_RECORD_REQUEST_BODY_SCHEMA: z.ZodArr
|
|
|
15
15
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
16
16
|
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
17
17
|
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
18
|
-
origin: z.ZodOptional<z.ZodEnum<{
|
|
19
|
-
readonly HUMAN: "human";
|
|
20
|
-
readonly AI_WITH_RAG: "ai-with-rag";
|
|
21
|
-
readonly AI: "ai";
|
|
22
|
-
readonly MT: "mt";
|
|
23
|
-
readonly IMPORTED: "imported";
|
|
24
|
-
}>>;
|
|
25
18
|
externalId: z.ZodOptional<z.ZodString>;
|
|
26
19
|
approved: z.ZodOptional<z.ZodEnum<{
|
|
27
20
|
readonly HUMAN_APPROVED: "human-approved";
|
|
@@ -43,6 +36,13 @@ export declare const PUT_TRANSLATION_MEMORY_RECORD_REQUEST_BODY_SCHEMA: z.ZodArr
|
|
|
43
36
|
keyName: z.ZodOptional<z.ZodString>;
|
|
44
37
|
description: z.ZodOptional<z.ZodString>;
|
|
45
38
|
}, z.core.$loose>>;
|
|
39
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
40
|
+
readonly HUMAN: "human";
|
|
41
|
+
readonly AI_WITH_RAG: "ai-with-rag";
|
|
42
|
+
readonly AI: "ai";
|
|
43
|
+
readonly MT: "mt";
|
|
44
|
+
readonly IMPORTED: "imported";
|
|
45
|
+
}>>;
|
|
46
46
|
}, z.core.$strip>>;
|
|
47
47
|
export type PutTranslationMemoryRecordRequestBody = z.input<typeof PUT_TRANSLATION_MEMORY_RECORD_REQUEST_BODY_SCHEMA>;
|
|
48
48
|
export declare const putTranslationMemoryRecordsContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodArray<z.ZodObject<{
|
|
@@ -56,13 +56,6 @@ export declare const putTranslationMemoryRecordsContract: import("@lokalise/api-
|
|
|
56
56
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
57
57
|
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
58
58
|
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
59
|
-
origin: z.ZodOptional<z.ZodEnum<{
|
|
60
|
-
readonly HUMAN: "human";
|
|
61
|
-
readonly AI_WITH_RAG: "ai-with-rag";
|
|
62
|
-
readonly AI: "ai";
|
|
63
|
-
readonly MT: "mt";
|
|
64
|
-
readonly IMPORTED: "imported";
|
|
65
|
-
}>>;
|
|
66
59
|
externalId: z.ZodOptional<z.ZodString>;
|
|
67
60
|
approved: z.ZodOptional<z.ZodEnum<{
|
|
68
61
|
readonly HUMAN_APPROVED: "human-approved";
|
|
@@ -84,9 +77,16 @@ export declare const putTranslationMemoryRecordsContract: import("@lokalise/api-
|
|
|
84
77
|
keyName: z.ZodOptional<z.ZodString>;
|
|
85
78
|
description: z.ZodOptional<z.ZodString>;
|
|
86
79
|
}, z.core.$loose>>;
|
|
80
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
81
|
+
readonly HUMAN: "human";
|
|
82
|
+
readonly AI_WITH_RAG: "ai-with-rag";
|
|
83
|
+
readonly AI: "ai";
|
|
84
|
+
readonly MT: "mt";
|
|
85
|
+
readonly IMPORTED: "imported";
|
|
86
|
+
}>>;
|
|
87
87
|
}, z.core.$strip>>, z.ZodUndefined, z.ZodObject<{
|
|
88
88
|
ownerId: z.ZodGUID;
|
|
89
|
-
groupId: z.
|
|
89
|
+
groupId: z.ZodGUID;
|
|
90
90
|
}, z.core.$strip>, undefined, z.ZodUnion<[z.ZodObject<{
|
|
91
91
|
'Content-Type': z.ZodOptional<z.ZodLiteral<"application/json">>;
|
|
92
92
|
Authorization: z.ZodOptional<z.ZodString>;
|
package/dist/objects/common.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const LOCALE_SCHEMA: z.ZodString;
|
|
3
3
|
export declare const OWNER_ID_SCHEMA: z.ZodGUID;
|
|
4
4
|
export type OwnerId = z.infer<typeof OWNER_ID_SCHEMA>;
|
|
5
|
-
export declare const GROUP_ID_SCHEMA: z.
|
|
5
|
+
export declare const GROUP_ID_SCHEMA: z.ZodGUID;
|
|
6
6
|
export type GroupId = z.infer<typeof GROUP_ID_SCHEMA>;
|
|
7
7
|
export declare const TM_OWNER_GROUP_ID_SCHEMA: z.ZodObject<{
|
|
8
8
|
ownerId: z.ZodGUID;
|
|
9
|
-
groupId: z.
|
|
9
|
+
groupId: z.ZodGUID;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
export type TmOwnerGroupId = z.infer<typeof TM_OWNER_GROUP_ID_SCHEMA>;
|
package/dist/objects/common.js
CHANGED
|
@@ -5,8 +5,7 @@ export const LOCALE_SCHEMA = z.string().min(1).refine(isSupportedLocale, {
|
|
|
5
5
|
});
|
|
6
6
|
export const OWNER_ID_SCHEMA = z.guid().describe('Identifier of the owner of the TM');
|
|
7
7
|
export const GROUP_ID_SCHEMA = z
|
|
8
|
-
.
|
|
9
|
-
.nonempty()
|
|
8
|
+
.guid()
|
|
10
9
|
.describe('Identifier of an isolated group of records (e.g. can be used to separate searches per different projects)');
|
|
11
10
|
export const TM_OWNER_GROUP_ID_SCHEMA = z.object({
|
|
12
11
|
ownerId: OWNER_ID_SCHEMA,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/objects/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,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,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAGrF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/objects/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,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,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAGrF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,IAAI,EAAE;KACN,QAAQ,CACP,2GAA2G,CAC5G,CAAA;AAGH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,eAAe;IACxB,OAAO,EAAE,eAAe;CACzB,CAAC,CAAA"}
|
package/dist/objects/import.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type ImportProcessStatus = ObjectValues<typeof ImportProcessStatusEnum>;
|
|
|
9
9
|
export declare const IMPORT_PROCESS_SCHEMA: z.ZodObject<{
|
|
10
10
|
id: z.ZodGUID;
|
|
11
11
|
ownerId: z.ZodGUID;
|
|
12
|
-
groupId: z.
|
|
12
|
+
groupId: z.ZodGUID;
|
|
13
13
|
fileName: z.ZodString;
|
|
14
14
|
inputFileStorageId: z.ZodGUID;
|
|
15
15
|
status: z.ZodEnum<{
|
|
@@ -17,6 +17,7 @@ export declare const TranslationMemoryRecordOriginEnum: {
|
|
|
17
17
|
readonly AI: "ai";
|
|
18
18
|
readonly MT: "mt";
|
|
19
19
|
readonly IMPORTED: "imported";
|
|
20
|
+
readonly MIGRATED: "migrated";
|
|
20
21
|
};
|
|
21
22
|
export type TranslationMemoryRecordOrigin = ObjectValues<typeof TranslationMemoryRecordOriginEnum>;
|
|
22
23
|
export declare const TranslationMemoryRecordApprovedTypeEnum: {
|
|
@@ -40,7 +41,7 @@ export declare const TranslationMemoryRecordKindVariantEnum: {
|
|
|
40
41
|
export type TranslationMemoryRecordKindVariant = ObjectValues<typeof TranslationMemoryRecordKindVariantEnum>;
|
|
41
42
|
export declare const TRANSLATION_MEMORY_RECORD_SCHEMA: z.ZodObject<{
|
|
42
43
|
id: z.ZodString;
|
|
43
|
-
groupId: z.
|
|
44
|
+
groupId: z.ZodGUID;
|
|
44
45
|
ownerId: z.ZodGUID;
|
|
45
46
|
sourceLocale: z.ZodString;
|
|
46
47
|
targetLocale: z.ZodString;
|
|
@@ -58,6 +59,7 @@ export declare const TRANSLATION_MEMORY_RECORD_SCHEMA: z.ZodObject<{
|
|
|
58
59
|
readonly AI: "ai";
|
|
59
60
|
readonly MT: "mt";
|
|
60
61
|
readonly IMPORTED: "imported";
|
|
62
|
+
readonly MIGRATED: "migrated";
|
|
61
63
|
}>>;
|
|
62
64
|
externalId: z.ZodOptional<z.ZodString>;
|
|
63
65
|
approved: z.ZodOptional<z.ZodEnum<{
|
|
@@ -96,7 +98,7 @@ export type TranslationMemoryRecord = z.infer<typeof TRANSLATION_MEMORY_RECORD_S
|
|
|
96
98
|
export type TranslationMemoryRecordInput = z.input<typeof TRANSLATION_MEMORY_RECORD_SCHEMA>;
|
|
97
99
|
export declare const TRANSLATION_MEMORY_MATCH_SCHEMA: z.ZodObject<{
|
|
98
100
|
id: z.ZodString;
|
|
99
|
-
groupId: z.
|
|
101
|
+
groupId: z.ZodGUID;
|
|
100
102
|
ownerId: z.ZodGUID;
|
|
101
103
|
sourceLocale: z.ZodString;
|
|
102
104
|
targetLocale: z.ZodString;
|
|
@@ -114,6 +116,7 @@ export declare const TRANSLATION_MEMORY_MATCH_SCHEMA: z.ZodObject<{
|
|
|
114
116
|
readonly AI: "ai";
|
|
115
117
|
readonly MT: "mt";
|
|
116
118
|
readonly IMPORTED: "imported";
|
|
119
|
+
readonly MIGRATED: "migrated";
|
|
117
120
|
}>>;
|
|
118
121
|
externalId: z.ZodOptional<z.ZodString>;
|
|
119
122
|
approved: z.ZodOptional<z.ZodEnum<{
|
|
@@ -161,13 +164,6 @@ export declare const UPSERT_TRANSLATION_MEMORY_RECORD_SCHEMA: z.ZodObject<{
|
|
|
161
164
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
162
165
|
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
163
166
|
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
164
|
-
origin: z.ZodOptional<z.ZodEnum<{
|
|
165
|
-
readonly HUMAN: "human";
|
|
166
|
-
readonly AI_WITH_RAG: "ai-with-rag";
|
|
167
|
-
readonly AI: "ai";
|
|
168
|
-
readonly MT: "mt";
|
|
169
|
-
readonly IMPORTED: "imported";
|
|
170
|
-
}>>;
|
|
171
167
|
externalId: z.ZodOptional<z.ZodString>;
|
|
172
168
|
approved: z.ZodOptional<z.ZodEnum<{
|
|
173
169
|
readonly HUMAN_APPROVED: "human-approved";
|
|
@@ -189,6 +185,13 @@ export declare const UPSERT_TRANSLATION_MEMORY_RECORD_SCHEMA: z.ZodObject<{
|
|
|
189
185
|
keyName: z.ZodOptional<z.ZodString>;
|
|
190
186
|
description: z.ZodOptional<z.ZodString>;
|
|
191
187
|
}, z.core.$loose>>;
|
|
188
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
189
|
+
readonly HUMAN: "human";
|
|
190
|
+
readonly AI_WITH_RAG: "ai-with-rag";
|
|
191
|
+
readonly AI: "ai";
|
|
192
|
+
readonly MT: "mt";
|
|
193
|
+
readonly IMPORTED: "imported";
|
|
194
|
+
}>>;
|
|
192
195
|
}, z.core.$strip>;
|
|
193
196
|
export type UpsertTranslationMemoryRecordDto = z.infer<typeof UPSERT_TRANSLATION_MEMORY_RECORD_SCHEMA>;
|
|
194
197
|
export type UpsertTranslationMemoryRecordInputDto = z.input<typeof UPSERT_TRANSLATION_MEMORY_RECORD_SCHEMA>;
|
|
@@ -204,7 +207,7 @@ export declare const TRANSLATION_MEMORY_LOOKUP_OPTIONS_SCHEMA: z.ZodObject<{
|
|
|
204
207
|
export type TranslationMemoryLookupOptions = z.infer<typeof TRANSLATION_MEMORY_LOOKUP_OPTIONS_SCHEMA>;
|
|
205
208
|
export declare const TRANSLATION_MEMORY_FILTER_SCHEMA: z.ZodObject<{
|
|
206
209
|
filterId: z.ZodOptional<z.ZodString>;
|
|
207
|
-
groupId: z.ZodOptional<z.
|
|
210
|
+
groupId: z.ZodOptional<z.ZodGUID>;
|
|
208
211
|
sourceText: z.ZodString;
|
|
209
212
|
sourceLocale: z.ZodString;
|
|
210
213
|
targetLocale: z.ZodString;
|
|
@@ -15,6 +15,7 @@ export const TranslationMemoryRecordOriginEnum = {
|
|
|
15
15
|
AI: 'ai',
|
|
16
16
|
MT: 'mt',
|
|
17
17
|
IMPORTED: 'imported',
|
|
18
|
+
MIGRATED: 'migrated',
|
|
18
19
|
};
|
|
19
20
|
export const TranslationMemoryRecordApprovedTypeEnum = {
|
|
20
21
|
HUMAN_APPROVED: 'human-approved',
|
|
@@ -110,6 +111,12 @@ export const UPSERT_TRANSLATION_MEMORY_RECORD_SCHEMA = TRANSLATION_MEMORY_RECORD
|
|
|
110
111
|
kindVariant: true,
|
|
111
112
|
approved: true,
|
|
112
113
|
metadata: true,
|
|
114
|
+
}).extend({
|
|
115
|
+
origin: z
|
|
116
|
+
.enum(TranslationMemoryRecordOriginEnum)
|
|
117
|
+
.exclude(['MIGRATED'])
|
|
118
|
+
.optional()
|
|
119
|
+
.describe('How the translation was produced; "migrated" is read-only and set only by the backfill migration'),
|
|
113
120
|
});
|
|
114
121
|
export const TRANSLATION_MEMORY_LOOKUP_OPT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
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
2
|
+
"name": "@lokalise/tm-api-schemas",
|
|
3
|
+
"version": "6.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Lokalise",
|
|
7
|
+
"url": "https://lokalise.com/"
|
|
8
|
+
},
|
|
9
|
+
"description": "API schemas for Lokalise Translation Memory service",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"license": "Apache-2.0",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git://github.com/lokalise/translation-memory.git"
|
|
17
|
+
},
|
|
18
|
+
"main": "dist/index.js",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": "./dist/index.js",
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@lokalise/api-common": "^7.1.1",
|
|
28
|
+
"@lokalise/api-contracts": "^6.9.0",
|
|
29
|
+
"@lokalise/common-api-schemas": "^2.2.1",
|
|
30
|
+
"@lokalise/supported-languages": "^3.2.0"
|
|
31
|
+
},
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"zod": ">=4.1.12"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@biomejs/biome": "^2.4.15",
|
|
37
|
+
"@lokalise/biome-config": "^3.1.1",
|
|
38
|
+
"@lokalise/tsconfig": "^3.0.0",
|
|
39
|
+
"@types/node": "24.10.8",
|
|
40
|
+
"rimraf": "^6.1.3",
|
|
41
|
+
"typescript": "5.9.3",
|
|
42
|
+
"zod": "^4.4.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "node --run clean && tsc --project tsconfig.build.json",
|
|
46
|
+
"clean": "rimraf dist",
|
|
47
|
+
"lint": "biome check && tsc",
|
|
48
|
+
"lint:fix": "biome check --write",
|
|
49
|
+
"test:ci": "echo \"No tests\"",
|
|
50
|
+
"package-version": "echo $npm_package_version",
|
|
51
|
+
"postversion": "biome check --write package.json"
|
|
52
|
+
}
|
|
53
|
+
}
|