generaltranslation 8.1.0 → 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.
- package/CHANGELOG.md +12 -0
- package/dist/id/hashSource.d.ts +1 -0
- package/dist/id.cjs.min.cjs +1 -1
- package/dist/id.cjs.min.cjs.map +1 -1
- package/dist/id.d.ts +1 -0
- package/dist/id.esm.min.mjs +1 -1
- package/dist/id.esm.min.mjs.map +1 -1
- package/dist/index.cjs.min.cjs +1 -1
- package/dist/index.cjs.min.cjs.map +1 -1
- package/dist/index.d.ts +18 -0
- package/dist/index.esm.min.mjs +1 -1
- package/dist/index.esm.min.mjs.map +1 -1
- package/dist/types-dir/api/entry.d.ts +2 -0
- package/dist/types-dir/api/file.d.ts +1 -0
- package/dist/types-dir/api/uploadFiles.d.ts +16 -0
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
|
@@ -12,11 +12,13 @@ export type ActionType = 'standard' | 'fast' | string;
|
|
|
12
12
|
*
|
|
13
13
|
* @param context - The context of the request.
|
|
14
14
|
* @param id - The id of the request.
|
|
15
|
+
* @param maxChars - The maxChars of the request.
|
|
15
16
|
* @param hash - The hash of the request.
|
|
16
17
|
*/
|
|
17
18
|
export type EntryMetadata = {
|
|
18
19
|
context?: string;
|
|
19
20
|
id?: string;
|
|
21
|
+
maxChars?: number;
|
|
20
22
|
hash?: string;
|
|
21
23
|
dataFormat?: DataFormat;
|
|
22
24
|
sourceLocale?: string;
|
|
@@ -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/dist/types.d.ts
CHANGED
|
@@ -96,11 +96,13 @@ type ActionType = 'standard' | 'fast' | string;
|
|
|
96
96
|
*
|
|
97
97
|
* @param context - The context of the request.
|
|
98
98
|
* @param id - The id of the request.
|
|
99
|
+
* @param maxChars - The maxChars of the request.
|
|
99
100
|
* @param hash - The hash of the request.
|
|
100
101
|
*/
|
|
101
102
|
type EntryMetadata = {
|
|
102
103
|
context?: string;
|
|
103
104
|
id?: string;
|
|
105
|
+
maxChars?: number;
|
|
104
106
|
hash?: string;
|
|
105
107
|
dataFormat?: DataFormat;
|
|
106
108
|
sourceLocale?: string;
|
|
@@ -418,6 +420,7 @@ type VariableTransformationSuffix = 'variable' | 'number' | 'datetime' | 'curren
|
|
|
418
420
|
type _Content = string | Array<string | Variable>;
|
|
419
421
|
|
|
420
422
|
type Metadata = {
|
|
423
|
+
maxChars?: number;
|
|
421
424
|
context?: string;
|
|
422
425
|
id?: string;
|
|
423
426
|
sourceLocale?: string;
|