@lokalise/tm-api-schemas 5.6.1 → 6.0.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 +14 -6
- package/dist/api-contracts/translation-memory/get-matches.d.ts +11 -5
- package/dist/api-contracts/translation-memory/get-records.d.ts +17 -11
- package/dist/api-contracts/translation-memory/put-records.d.ts +6 -2
- 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 +9 -3
- package/dist/objects/translation-memory.js +4 -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;
|
|
@@ -34,6 +34,8 @@ export declare const BULK_TRANSLATION_MEMORY_MATCHES_SCHEMA: z.ZodObject<{
|
|
|
34
34
|
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
35
35
|
projectId: z.ZodOptional<z.ZodGUID>;
|
|
36
36
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
37
|
+
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
38
|
+
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
37
39
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
38
40
|
readonly HUMAN: "human";
|
|
39
41
|
readonly AI_WITH_RAG: "ai-with-rag";
|
|
@@ -82,7 +84,7 @@ export declare const POST_BULK_FIND_MATCHES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
82
84
|
filterId: z.ZodOptional<z.ZodString>;
|
|
83
85
|
matches: z.ZodArray<z.ZodObject<{
|
|
84
86
|
id: z.ZodString;
|
|
85
|
-
groupId: z.
|
|
87
|
+
groupId: z.ZodGUID;
|
|
86
88
|
ownerId: z.ZodGUID;
|
|
87
89
|
sourceLocale: z.ZodString;
|
|
88
90
|
targetLocale: z.ZodString;
|
|
@@ -92,6 +94,8 @@ export declare const POST_BULK_FIND_MATCHES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
92
94
|
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
93
95
|
projectId: z.ZodOptional<z.ZodGUID>;
|
|
94
96
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
97
|
+
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
98
|
+
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
95
99
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
96
100
|
readonly HUMAN: "human";
|
|
97
101
|
readonly AI_WITH_RAG: "ai-with-rag";
|
|
@@ -139,7 +143,7 @@ export type PostBulkFindMatchesResponse = z.infer<typeof POST_BULK_FIND_MATCHES_
|
|
|
139
143
|
export declare const postBulkFindMatchesContract: import("@lokalise/api-contracts").PayloadRouteDefinition<z.ZodObject<{
|
|
140
144
|
filters: z.ZodArray<z.ZodObject<{
|
|
141
145
|
filterId: z.ZodOptional<z.ZodString>;
|
|
142
|
-
groupId: z.ZodOptional<z.
|
|
146
|
+
groupId: z.ZodOptional<z.ZodGUID>;
|
|
143
147
|
sourceText: z.ZodString;
|
|
144
148
|
sourceLocale: z.ZodString;
|
|
145
149
|
targetLocale: z.ZodString;
|
|
@@ -156,7 +160,7 @@ export declare const postBulkFindMatchesContract: import("@lokalise/api-contract
|
|
|
156
160
|
filterId: z.ZodOptional<z.ZodString>;
|
|
157
161
|
matches: z.ZodArray<z.ZodObject<{
|
|
158
162
|
id: z.ZodString;
|
|
159
|
-
groupId: z.
|
|
163
|
+
groupId: z.ZodGUID;
|
|
160
164
|
ownerId: z.ZodGUID;
|
|
161
165
|
sourceLocale: z.ZodString;
|
|
162
166
|
targetLocale: z.ZodString;
|
|
@@ -166,6 +170,8 @@ export declare const postBulkFindMatchesContract: import("@lokalise/api-contract
|
|
|
166
170
|
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
167
171
|
projectId: z.ZodOptional<z.ZodGUID>;
|
|
168
172
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
173
|
+
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
174
|
+
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
169
175
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
170
176
|
readonly HUMAN: "human";
|
|
171
177
|
readonly AI_WITH_RAG: "ai-with-rag";
|
|
@@ -222,7 +228,7 @@ export declare const postBulkFindMatchesContract: import("@lokalise/api-contract
|
|
|
222
228
|
filterId: z.ZodOptional<z.ZodString>;
|
|
223
229
|
matches: z.ZodArray<z.ZodObject<{
|
|
224
230
|
id: z.ZodString;
|
|
225
|
-
groupId: z.
|
|
231
|
+
groupId: z.ZodGUID;
|
|
226
232
|
ownerId: z.ZodGUID;
|
|
227
233
|
sourceLocale: z.ZodString;
|
|
228
234
|
targetLocale: z.ZodString;
|
|
@@ -232,6 +238,8 @@ export declare const postBulkFindMatchesContract: import("@lokalise/api-contract
|
|
|
232
238
|
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
233
239
|
projectId: z.ZodOptional<z.ZodGUID>;
|
|
234
240
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
241
|
+
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
242
|
+
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
235
243
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
236
244
|
readonly HUMAN: "human";
|
|
237
245
|
readonly AI_WITH_RAG: "ai-with-rag";
|
|
@@ -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;
|
|
@@ -28,6 +28,8 @@ export declare const GET_TRANSLATION_MEMORY_MATCHES_RESPONSE_SCHEMA: z.ZodObject
|
|
|
28
28
|
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
29
29
|
projectId: z.ZodOptional<z.ZodGUID>;
|
|
30
30
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
31
|
+
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
32
|
+
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
31
33
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
32
34
|
readonly HUMAN: "human";
|
|
33
35
|
readonly AI_WITH_RAG: "ai-with-rag";
|
|
@@ -74,7 +76,7 @@ export type GetTranslationMemoryMatchesResponse = z.infer<typeof GET_TRANSLATION
|
|
|
74
76
|
export declare const getTranslationMemoryMatchesContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
|
|
75
77
|
data: z.ZodArray<z.ZodObject<{
|
|
76
78
|
id: z.ZodString;
|
|
77
|
-
groupId: z.
|
|
79
|
+
groupId: z.ZodGUID;
|
|
78
80
|
ownerId: z.ZodGUID;
|
|
79
81
|
sourceLocale: z.ZodString;
|
|
80
82
|
targetLocale: z.ZodString;
|
|
@@ -84,6 +86,8 @@ export declare const getTranslationMemoryMatchesContract: import("@lokalise/api-
|
|
|
84
86
|
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
85
87
|
projectId: z.ZodOptional<z.ZodGUID>;
|
|
86
88
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
89
|
+
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
90
|
+
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
87
91
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
88
92
|
readonly HUMAN: "human";
|
|
89
93
|
readonly AI_WITH_RAG: "ai-with-rag";
|
|
@@ -128,7 +132,7 @@ export declare const getTranslationMemoryMatchesContract: import("@lokalise/api-
|
|
|
128
132
|
}, z.core.$strip>, z.ZodObject<{
|
|
129
133
|
ownerId: z.ZodGUID;
|
|
130
134
|
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
-
'group-id': z.ZodOptional<z.
|
|
135
|
+
'group-id': z.ZodOptional<z.ZodGUID>;
|
|
132
136
|
'source-text': z.ZodString;
|
|
133
137
|
'source-locale': z.ZodString;
|
|
134
138
|
'target-locale': z.ZodString;
|
|
@@ -147,7 +151,7 @@ export declare const getTranslationMemoryMatchesContract: import("@lokalise/api-
|
|
|
147
151
|
200: z.ZodObject<{
|
|
148
152
|
data: z.ZodArray<z.ZodObject<{
|
|
149
153
|
id: z.ZodString;
|
|
150
|
-
groupId: z.
|
|
154
|
+
groupId: z.ZodGUID;
|
|
151
155
|
ownerId: z.ZodGUID;
|
|
152
156
|
sourceLocale: z.ZodString;
|
|
153
157
|
targetLocale: z.ZodString;
|
|
@@ -157,6 +161,8 @@ export declare const getTranslationMemoryMatchesContract: import("@lokalise/api-
|
|
|
157
161
|
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
158
162
|
projectId: z.ZodOptional<z.ZodGUID>;
|
|
159
163
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
164
|
+
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
165
|
+
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
160
166
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
161
167
|
readonly HUMAN: "human";
|
|
162
168
|
readonly AI_WITH_RAG: "ai-with-rag";
|
|
@@ -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;
|
|
@@ -45,6 +45,8 @@ export declare const GET_TRANSLATION_MEMORY_RECORDS_RESPONSE_SCHEMA: z.ZodObject
|
|
|
45
45
|
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
46
46
|
projectId: z.ZodOptional<z.ZodGUID>;
|
|
47
47
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
48
|
+
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
49
|
+
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
48
50
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
49
51
|
readonly HUMAN: "human";
|
|
50
52
|
readonly AI_WITH_RAG: "ai-with-rag";
|
|
@@ -95,7 +97,7 @@ export type GetTranslationMemoryRecordsResponse = z.infer<typeof GET_TRANSLATION
|
|
|
95
97
|
export declare const getTranslationMemoryRecordsContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
|
|
96
98
|
data: z.ZodArray<z.ZodObject<{
|
|
97
99
|
id: z.ZodString;
|
|
98
|
-
groupId: z.
|
|
100
|
+
groupId: z.ZodGUID;
|
|
99
101
|
ownerId: z.ZodGUID;
|
|
100
102
|
sourceLocale: z.ZodString;
|
|
101
103
|
targetLocale: z.ZodString;
|
|
@@ -105,6 +107,8 @@ export declare const getTranslationMemoryRecordsContract: import("@lokalise/api-
|
|
|
105
107
|
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
106
108
|
projectId: z.ZodOptional<z.ZodGUID>;
|
|
107
109
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
110
|
+
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
111
|
+
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
108
112
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
109
113
|
readonly HUMAN: "human";
|
|
110
114
|
readonly AI_WITH_RAG: "ai-with-rag";
|
|
@@ -161,11 +165,11 @@ export declare const getTranslationMemoryRecordsContract: import("@lokalise/api-
|
|
|
161
165
|
id: z.ZodString;
|
|
162
166
|
}, z.core.$strip>>>>;
|
|
163
167
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
164
|
-
'group-id': z.ZodOptional<z.
|
|
168
|
+
'group-id': z.ZodOptional<z.ZodGUID>;
|
|
165
169
|
'flex-search-query': z.ZodOptional<z.ZodString>;
|
|
166
|
-
'filter-ids': z.ZodOptional<z.
|
|
167
|
-
'filter-source-locales': z.ZodOptional<z.
|
|
168
|
-
'filter-target-locales': z.ZodOptional<z.
|
|
170
|
+
'filter-ids': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
|
|
171
|
+
'filter-source-locales': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
|
|
172
|
+
'filter-target-locales': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodString>>>;
|
|
169
173
|
}, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
|
|
170
174
|
'Content-Type': z.ZodOptional<z.ZodLiteral<"application/json">>;
|
|
171
175
|
Authorization: z.ZodOptional<z.ZodString>;
|
|
@@ -176,7 +180,7 @@ export declare const getTranslationMemoryRecordsContract: import("@lokalise/api-
|
|
|
176
180
|
200: z.ZodObject<{
|
|
177
181
|
data: z.ZodArray<z.ZodObject<{
|
|
178
182
|
id: z.ZodString;
|
|
179
|
-
groupId: z.
|
|
183
|
+
groupId: z.ZodGUID;
|
|
180
184
|
ownerId: z.ZodGUID;
|
|
181
185
|
sourceLocale: z.ZodString;
|
|
182
186
|
targetLocale: z.ZodString;
|
|
@@ -186,6 +190,8 @@ export declare const getTranslationMemoryRecordsContract: import("@lokalise/api-
|
|
|
186
190
|
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
187
191
|
projectId: z.ZodOptional<z.ZodGUID>;
|
|
188
192
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
193
|
+
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
194
|
+
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
189
195
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
190
196
|
readonly HUMAN: "human";
|
|
191
197
|
readonly AI_WITH_RAG: "ai-with-rag";
|
|
@@ -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<{
|
|
@@ -13,6 +13,8 @@ export declare const PUT_TRANSLATION_MEMORY_RECORD_REQUEST_BODY_SCHEMA: z.ZodArr
|
|
|
13
13
|
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
14
14
|
projectId: z.ZodOptional<z.ZodGUID>;
|
|
15
15
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
16
|
+
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
17
|
+
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
16
18
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
17
19
|
readonly HUMAN: "human";
|
|
18
20
|
readonly AI_WITH_RAG: "ai-with-rag";
|
|
@@ -52,6 +54,8 @@ export declare const putTranslationMemoryRecordsContract: import("@lokalise/api-
|
|
|
52
54
|
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
53
55
|
projectId: z.ZodOptional<z.ZodGUID>;
|
|
54
56
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
57
|
+
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
58
|
+
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
55
59
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
56
60
|
readonly HUMAN: "human";
|
|
57
61
|
readonly AI_WITH_RAG: "ai-with-rag";
|
|
@@ -82,7 +86,7 @@ export declare const putTranslationMemoryRecordsContract: import("@lokalise/api-
|
|
|
82
86
|
}, z.core.$loose>>;
|
|
83
87
|
}, z.core.$strip>>, z.ZodUndefined, z.ZodObject<{
|
|
84
88
|
ownerId: z.ZodGUID;
|
|
85
|
-
groupId: z.
|
|
89
|
+
groupId: z.ZodGUID;
|
|
86
90
|
}, z.core.$strip>, undefined, z.ZodUnion<[z.ZodObject<{
|
|
87
91
|
'Content-Type': z.ZodOptional<z.ZodLiteral<"application/json">>;
|
|
88
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<{
|
|
@@ -40,7 +40,7 @@ export declare const TranslationMemoryRecordKindVariantEnum: {
|
|
|
40
40
|
export type TranslationMemoryRecordKindVariant = ObjectValues<typeof TranslationMemoryRecordKindVariantEnum>;
|
|
41
41
|
export declare const TRANSLATION_MEMORY_RECORD_SCHEMA: z.ZodObject<{
|
|
42
42
|
id: z.ZodString;
|
|
43
|
-
groupId: z.
|
|
43
|
+
groupId: z.ZodGUID;
|
|
44
44
|
ownerId: z.ZodGUID;
|
|
45
45
|
sourceLocale: z.ZodString;
|
|
46
46
|
targetLocale: z.ZodString;
|
|
@@ -50,6 +50,8 @@ export declare const TRANSLATION_MEMORY_RECORD_SCHEMA: z.ZodObject<{
|
|
|
50
50
|
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
51
51
|
projectId: z.ZodOptional<z.ZodGUID>;
|
|
52
52
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
53
|
+
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
54
|
+
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
53
55
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
54
56
|
readonly HUMAN: "human";
|
|
55
57
|
readonly AI_WITH_RAG: "ai-with-rag";
|
|
@@ -94,7 +96,7 @@ export type TranslationMemoryRecord = z.infer<typeof TRANSLATION_MEMORY_RECORD_S
|
|
|
94
96
|
export type TranslationMemoryRecordInput = z.input<typeof TRANSLATION_MEMORY_RECORD_SCHEMA>;
|
|
95
97
|
export declare const TRANSLATION_MEMORY_MATCH_SCHEMA: z.ZodObject<{
|
|
96
98
|
id: z.ZodString;
|
|
97
|
-
groupId: z.
|
|
99
|
+
groupId: z.ZodGUID;
|
|
98
100
|
ownerId: z.ZodGUID;
|
|
99
101
|
sourceLocale: z.ZodString;
|
|
100
102
|
targetLocale: z.ZodString;
|
|
@@ -104,6 +106,8 @@ export declare const TRANSLATION_MEMORY_MATCH_SCHEMA: z.ZodObject<{
|
|
|
104
106
|
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
105
107
|
projectId: z.ZodOptional<z.ZodGUID>;
|
|
106
108
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
109
|
+
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
110
|
+
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
107
111
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
108
112
|
readonly HUMAN: "human";
|
|
109
113
|
readonly AI_WITH_RAG: "ai-with-rag";
|
|
@@ -155,6 +159,8 @@ export declare const UPSERT_TRANSLATION_MEMORY_RECORD_SCHEMA: z.ZodObject<{
|
|
|
155
159
|
sourceNextContent: z.ZodOptional<z.ZodString>;
|
|
156
160
|
projectId: z.ZodOptional<z.ZodGUID>;
|
|
157
161
|
updatedBy: z.ZodOptional<z.ZodGUID>;
|
|
162
|
+
createdBy: z.ZodOptional<z.ZodGUID>;
|
|
163
|
+
approvedBy: z.ZodOptional<z.ZodGUID>;
|
|
158
164
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
159
165
|
readonly HUMAN: "human";
|
|
160
166
|
readonly AI_WITH_RAG: "ai-with-rag";
|
|
@@ -198,7 +204,7 @@ export declare const TRANSLATION_MEMORY_LOOKUP_OPTIONS_SCHEMA: z.ZodObject<{
|
|
|
198
204
|
export type TranslationMemoryLookupOptions = z.infer<typeof TRANSLATION_MEMORY_LOOKUP_OPTIONS_SCHEMA>;
|
|
199
205
|
export declare const TRANSLATION_MEMORY_FILTER_SCHEMA: z.ZodObject<{
|
|
200
206
|
filterId: z.ZodOptional<z.ZodString>;
|
|
201
|
-
groupId: z.ZodOptional<z.
|
|
207
|
+
groupId: z.ZodOptional<z.ZodGUID>;
|
|
202
208
|
sourceText: z.ZodString;
|
|
203
209
|
sourceLocale: z.ZodString;
|
|
204
210
|
targetLocale: z.ZodString;
|
|
@@ -52,6 +52,8 @@ export const TRANSLATION_MEMORY_RECORD_SCHEMA = z.object({
|
|
|
52
52
|
.describe('Text that appears right after the sought translation'),
|
|
53
53
|
projectId: z.guid().optional().describe('Project ID associated with the record'),
|
|
54
54
|
updatedBy: z.guid().optional().describe('User ID that updated the record last time'),
|
|
55
|
+
createdBy: z.guid().optional().describe('User ID that created the record'),
|
|
56
|
+
approvedBy: z.guid().optional().describe('User ID that approved the record'),
|
|
55
57
|
origin: z
|
|
56
58
|
.enum(TranslationMemoryRecordOriginEnum)
|
|
57
59
|
.optional()
|
|
@@ -100,6 +102,8 @@ export const UPSERT_TRANSLATION_MEMORY_RECORD_SCHEMA = TRANSLATION_MEMORY_RECORD
|
|
|
100
102
|
sourceNextContent: true,
|
|
101
103
|
projectId: true,
|
|
102
104
|
updatedBy: true,
|
|
105
|
+
createdBy: true,
|
|
106
|
+
approvedBy: true,
|
|
103
107
|
origin: true,
|
|
104
108
|
externalId: true,
|
|
105
109
|
kind: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translation-memory.js","sourceRoot":"","sources":["../../src/objects/translation-memory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7E,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChE,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IAC1E,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAC1D,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IACjE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IAC3D,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IACrE,YAAY,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACxF,UAAU,EAAE,CAAC,CAAC,MAAM,EAA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
-
|
|
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.0.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
|
+
}
|