generaltranslation 8.1.1 → 8.1.2

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.
@@ -1,5 +1,20 @@
1
1
  import { DataFormat } from '../jsx/content';
2
2
  import { FileFormat, FileReference } from './file';
3
+ /**
4
+ * Metadata stored alongside GTJSON file entries.
5
+ * Keys correspond to the entry id/hash in the GTJSON body.
6
+ */
7
+ export type GTJsonFormatMetadata = Record<string, {
8
+ context?: string;
9
+ id?: string;
10
+ domain?: string;
11
+ maxChars?: number;
12
+ dataFormat?: 'JSX' | 'ICU';
13
+ requestVersion?: number;
14
+ approved_at?: string | null;
15
+ approved_by?: string | null;
16
+ hash?: string;
17
+ }>;
3
18
  export type FileUpload = {
4
19
  branchId?: string;
5
20
  incomingBranchId?: string;
@@ -9,6 +24,7 @@ export type FileUpload = {
9
24
  fileFormat: FileFormat;
10
25
  dataFormat?: DataFormat;
11
26
  locale: string;
27
+ formatMetadata?: GTJsonFormatMetadata;
12
28
  versionId?: string;
13
29
  fileId?: string;
14
30
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generaltranslation",
3
- "version": "8.1.1",
3
+ "version": "8.1.2",
4
4
  "description": "A language toolkit for AI developers",
5
5
  "main": "dist/index.cjs.min.cjs",
6
6
  "module": "dist/index.esm.min.mjs",