@verbatra/sdk 0.11.1 → 0.13.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/README.md +43 -93
- package/dist/config-schema.json +429 -6
- package/dist/index.cjs +26543 -7642
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9250 -1538
- package/dist/index.d.ts +9250 -1538
- package/dist/index.js +30512 -11687
- package/dist/index.js.map +1 -1
- package/dist/schemas/check-file-summary.json +269 -0
- package/dist/schemas/check-summary.json +446 -0
- package/dist/schemas/config.json +921 -0
- package/dist/schemas/data-flow-manifest.json +433 -0
- package/dist/schemas/diff-summary.json +270 -0
- package/dist/schemas/doctor-result.json +355 -0
- package/dist/schemas/export-tmx-result.json +53 -0
- package/dist/schemas/export-workbook-result.json +56 -0
- package/dist/schemas/extract-result.json +149 -0
- package/dist/schemas/generate-types-result.json +80 -0
- package/dist/schemas/import-tmx-result.json +210 -0
- package/dist/schemas/lock-wait-event.json +32 -0
- package/dist/schemas/progress-event.json +292 -0
- package/dist/schemas/provenance-report.json +156 -0
- package/dist/schemas/pseudolocalize-result.json +45 -0
- package/dist/schemas/run-history-result.json +346 -0
- package/dist/schemas/run-summary.json +927 -0
- package/package.json +30 -22
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://verbatra.kreitz-webdev.de/schema/v1/check-file-summary.json",
|
|
4
|
+
"title": "verbatra check --file summary",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"file": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"role": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": [
|
|
13
|
+
"source",
|
|
14
|
+
"target",
|
|
15
|
+
"catalogue"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"locales": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"locale": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"incompletePlurals": {
|
|
27
|
+
"type": "array",
|
|
28
|
+
"items": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"code": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"const": "PLURAL_CATEGORIES_INCOMPLETE"
|
|
34
|
+
},
|
|
35
|
+
"key": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"argument": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"ruleType": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"enum": [
|
|
44
|
+
"cardinal",
|
|
45
|
+
"ordinal"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"missing": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"enum": [
|
|
53
|
+
"zero",
|
|
54
|
+
"one",
|
|
55
|
+
"two",
|
|
56
|
+
"few",
|
|
57
|
+
"many",
|
|
58
|
+
"other"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"code",
|
|
65
|
+
"key",
|
|
66
|
+
"ruleType",
|
|
67
|
+
"missing"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"qa": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"properties": {
|
|
74
|
+
"checked": {
|
|
75
|
+
"type": "number"
|
|
76
|
+
},
|
|
77
|
+
"errors": {
|
|
78
|
+
"type": "number"
|
|
79
|
+
},
|
|
80
|
+
"warnings": {
|
|
81
|
+
"type": "number"
|
|
82
|
+
},
|
|
83
|
+
"findings": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"items": {
|
|
86
|
+
"anyOf": [
|
|
87
|
+
{
|
|
88
|
+
"anyOf": [
|
|
89
|
+
{
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"key": {
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"severity": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"const": "error"
|
|
98
|
+
},
|
|
99
|
+
"reason": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"enum": [
|
|
102
|
+
"placeholder",
|
|
103
|
+
"markup",
|
|
104
|
+
"icu",
|
|
105
|
+
"degenerate",
|
|
106
|
+
"empty"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"details": {
|
|
110
|
+
"type": "array",
|
|
111
|
+
"items": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"required": [
|
|
117
|
+
"key",
|
|
118
|
+
"severity",
|
|
119
|
+
"reason"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"type": "object",
|
|
124
|
+
"properties": {
|
|
125
|
+
"key": {
|
|
126
|
+
"type": "string"
|
|
127
|
+
},
|
|
128
|
+
"severity": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"const": "warning"
|
|
131
|
+
},
|
|
132
|
+
"reason": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"enum": [
|
|
135
|
+
"LENGTH_RATIO_OUTLIER",
|
|
136
|
+
"MAX_LENGTH_EXCEEDED",
|
|
137
|
+
"EQUALS_SOURCE",
|
|
138
|
+
"GLOSSARY_TERM_MISSED",
|
|
139
|
+
"GLOSSARY_FORBIDDEN_TERM",
|
|
140
|
+
"INTEGRITY_REORDERED",
|
|
141
|
+
"PROVIDER_DEGRADED",
|
|
142
|
+
"FUZZY_CACHE_REUSE",
|
|
143
|
+
"FOREIGN_PLACEHOLDER_CHANGED",
|
|
144
|
+
"BIDI_CONTROLS_CHANGED"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"details": {
|
|
148
|
+
"type": "array",
|
|
149
|
+
"items": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"required": [
|
|
155
|
+
"key",
|
|
156
|
+
"severity",
|
|
157
|
+
"reason"
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"type": "object",
|
|
164
|
+
"properties": {
|
|
165
|
+
"severity": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"const": "error"
|
|
168
|
+
},
|
|
169
|
+
"reason": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"const": "syntax"
|
|
172
|
+
},
|
|
173
|
+
"code": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"enum": [
|
|
176
|
+
"INVALID_JSON",
|
|
177
|
+
"INVALID_YAML",
|
|
178
|
+
"INVALID_XML",
|
|
179
|
+
"INVALID_STRUCTURE",
|
|
180
|
+
"MAX_DEPTH_EXCEEDED",
|
|
181
|
+
"INPUT_TOO_LARGE",
|
|
182
|
+
"MIXED_STRUCTURE",
|
|
183
|
+
"ADAPTER_FAILED",
|
|
184
|
+
"DUPLICATE_FORMAT",
|
|
185
|
+
"INVALID_FORMAT_ID"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"message": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"line": {
|
|
192
|
+
"type": "number"
|
|
193
|
+
},
|
|
194
|
+
"column": {
|
|
195
|
+
"type": "number"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"required": [
|
|
199
|
+
"severity",
|
|
200
|
+
"reason",
|
|
201
|
+
"code",
|
|
202
|
+
"message"
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"required": [
|
|
210
|
+
"checked",
|
|
211
|
+
"errors",
|
|
212
|
+
"warnings",
|
|
213
|
+
"findings"
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"required": [
|
|
218
|
+
"locale",
|
|
219
|
+
"incompletePlurals",
|
|
220
|
+
"qa"
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"qa": {
|
|
225
|
+
"type": "object",
|
|
226
|
+
"properties": {
|
|
227
|
+
"errors": {
|
|
228
|
+
"type": "number"
|
|
229
|
+
},
|
|
230
|
+
"warnings": {
|
|
231
|
+
"type": "number"
|
|
232
|
+
},
|
|
233
|
+
"invalidSourceKeys": {
|
|
234
|
+
"type": "array",
|
|
235
|
+
"items": {
|
|
236
|
+
"type": "string"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"limitsNotice": {
|
|
240
|
+
"type": "object",
|
|
241
|
+
"properties": {
|
|
242
|
+
"code": {
|
|
243
|
+
"type": "string",
|
|
244
|
+
"const": "LIMITS_FILE_IGNORED"
|
|
245
|
+
},
|
|
246
|
+
"message": {
|
|
247
|
+
"type": "string"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"required": [
|
|
251
|
+
"code",
|
|
252
|
+
"message"
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
"required": [
|
|
257
|
+
"errors",
|
|
258
|
+
"warnings",
|
|
259
|
+
"invalidSourceKeys"
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"required": [
|
|
264
|
+
"file",
|
|
265
|
+
"role",
|
|
266
|
+
"locales",
|
|
267
|
+
"qa"
|
|
268
|
+
]
|
|
269
|
+
}
|