generaltranslation 8.1.4 → 8.1.5
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/CHANGELOG.md +6 -0
- package/dist/index.cjs.min.cjs +3 -3
- package/dist/index.cjs.min.cjs.map +1 -1
- package/dist/index.d.ts +40 -40
- package/dist/index.esm.min.mjs +3 -3
- package/dist/index.esm.min.mjs.map +1 -1
- package/dist/internal.cjs.min.cjs +1 -1
- package/dist/internal.cjs.min.cjs.map +1 -1
- package/dist/internal.d.ts +2 -2
- package/dist/internal.esm.min.mjs +1 -1
- package/dist/internal.esm.min.mjs.map +1 -1
- package/dist/settings/settings.d.ts +1 -1
- package/dist/types-dir/api/file.d.ts +1 -0
- package/dist/types-dir/api/uploadFiles.d.ts +0 -8
- package/dist/types.d.ts +32 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -214,6 +214,46 @@ type EnqueueFilesResult = {
|
|
|
214
214
|
message: string;
|
|
215
215
|
};
|
|
216
216
|
|
|
217
|
+
/**
|
|
218
|
+
* Metadata stored alongside GTJSON file entries.
|
|
219
|
+
* Keys correspond to the entry id/hash in the GTJSON body.
|
|
220
|
+
*/
|
|
221
|
+
type GTJsonFormatMetadata = Record<string, {
|
|
222
|
+
context?: string;
|
|
223
|
+
id?: string;
|
|
224
|
+
domain?: string;
|
|
225
|
+
maxChars?: number;
|
|
226
|
+
dataFormat?: 'JSX' | 'ICU';
|
|
227
|
+
requestVersion?: number;
|
|
228
|
+
approved_at?: string | null;
|
|
229
|
+
approved_by?: string | null;
|
|
230
|
+
hash?: string;
|
|
231
|
+
filePaths?: string[];
|
|
232
|
+
}>;
|
|
233
|
+
type FileUpload = {
|
|
234
|
+
branchId?: string;
|
|
235
|
+
incomingBranchId?: string;
|
|
236
|
+
checkedOutBranchId?: string;
|
|
237
|
+
content: string;
|
|
238
|
+
fileName: string;
|
|
239
|
+
fileFormat: FileFormat;
|
|
240
|
+
dataFormat?: DataFormat;
|
|
241
|
+
locale: string;
|
|
242
|
+
formatMetadata?: GTJsonFormatMetadata;
|
|
243
|
+
versionId?: string;
|
|
244
|
+
fileId?: string;
|
|
245
|
+
};
|
|
246
|
+
type UploadFilesOptions = {
|
|
247
|
+
sourceLocale: string;
|
|
248
|
+
modelProvider?: string;
|
|
249
|
+
timeout?: number;
|
|
250
|
+
};
|
|
251
|
+
type UploadFilesResponse = {
|
|
252
|
+
uploadedFiles: FileReference[];
|
|
253
|
+
count: number;
|
|
254
|
+
message: string;
|
|
255
|
+
};
|
|
256
|
+
|
|
217
257
|
type DownloadFileOptions = {
|
|
218
258
|
timeout?: number;
|
|
219
259
|
};
|
|
@@ -369,46 +409,6 @@ type CustomRegionMapping = {
|
|
|
369
409
|
};
|
|
370
410
|
};
|
|
371
411
|
|
|
372
|
-
/**
|
|
373
|
-
* Metadata stored alongside GTJSON file entries.
|
|
374
|
-
* Keys correspond to the entry id/hash in the GTJSON body.
|
|
375
|
-
*/
|
|
376
|
-
type GTJsonFormatMetadata = Record<string, {
|
|
377
|
-
context?: string;
|
|
378
|
-
id?: string;
|
|
379
|
-
domain?: string;
|
|
380
|
-
maxChars?: number;
|
|
381
|
-
dataFormat?: 'JSX' | 'ICU';
|
|
382
|
-
requestVersion?: number;
|
|
383
|
-
approved_at?: string | null;
|
|
384
|
-
approved_by?: string | null;
|
|
385
|
-
hash?: string;
|
|
386
|
-
filePaths?: string[];
|
|
387
|
-
}>;
|
|
388
|
-
type FileUpload = {
|
|
389
|
-
branchId?: string;
|
|
390
|
-
incomingBranchId?: string;
|
|
391
|
-
checkedOutBranchId?: string;
|
|
392
|
-
content: string;
|
|
393
|
-
fileName: string;
|
|
394
|
-
fileFormat: FileFormat;
|
|
395
|
-
dataFormat?: DataFormat;
|
|
396
|
-
locale: string;
|
|
397
|
-
formatMetadata?: GTJsonFormatMetadata;
|
|
398
|
-
versionId?: string;
|
|
399
|
-
fileId?: string;
|
|
400
|
-
};
|
|
401
|
-
type UploadFilesOptions = {
|
|
402
|
-
sourceLocale: string;
|
|
403
|
-
modelProvider?: string;
|
|
404
|
-
timeout?: number;
|
|
405
|
-
};
|
|
406
|
-
type UploadFilesResponse = {
|
|
407
|
-
uploadedFiles: FileReference[];
|
|
408
|
-
count: number;
|
|
409
|
-
message: string;
|
|
410
|
-
};
|
|
411
|
-
|
|
412
412
|
type ProjectData = {
|
|
413
413
|
id: string;
|
|
414
414
|
name: string;
|