@uniformdev/tms-sdk 19.179.1-alpha.1 → 19.180.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/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.esm.js +9 -6
- package/dist/index.js +9 -6
- package/dist/index.mjs +9 -6
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -48,16 +48,16 @@ declare const collectTranslationPayload: ({ uniformProjectId, uniformSourceLocal
|
|
|
48
48
|
declare const getCompositionForTranslation: ({ canvasClient, compositionId, releaseId, state, }: {
|
|
49
49
|
canvasClient: CanvasClient;
|
|
50
50
|
compositionId: string;
|
|
51
|
-
releaseId?: string
|
|
52
|
-
state?: number
|
|
51
|
+
releaseId?: string;
|
|
52
|
+
state?: number;
|
|
53
53
|
}) => Promise<CompositionGetResponse | undefined>;
|
|
54
54
|
|
|
55
55
|
declare const getEntryForTranslation: ({ contentClient, entryId, releaseId, pattern, state, }: {
|
|
56
56
|
contentClient: ContentClient;
|
|
57
57
|
entryId: string;
|
|
58
|
-
releaseId?: string
|
|
59
|
-
pattern?: boolean
|
|
60
|
-
state?: number
|
|
58
|
+
releaseId?: string;
|
|
59
|
+
pattern?: boolean;
|
|
60
|
+
state?: number;
|
|
61
61
|
}) => Promise<Entry | undefined>;
|
|
62
62
|
|
|
63
63
|
type MergeCompositionTranslationToUniformOptions = {
|
|
@@ -75,7 +75,7 @@ type MergeCompositionTranslationToUniformOptions = {
|
|
|
75
75
|
};
|
|
76
76
|
declare const mergeCompositionTranslationToUniform: ({ canvasClient, translationPayload, updateComposition, onNotFound, onNotTranslatedResult, }: MergeCompositionTranslationToUniformOptions) => Promise<{
|
|
77
77
|
translationMerged: boolean;
|
|
78
|
-
entityId?: string
|
|
78
|
+
entityId?: string;
|
|
79
79
|
}>;
|
|
80
80
|
|
|
81
81
|
type MergeEntryTranslationToUniformOptions = {
|
|
@@ -93,7 +93,7 @@ type MergeEntryTranslationToUniformOptions = {
|
|
|
93
93
|
};
|
|
94
94
|
declare const mergeEntryTranslationToUniform: ({ contentClient, translationPayload, updateEntry, onNotFound, onNotTranslatedResult, }: MergeEntryTranslationToUniformOptions) => Promise<{
|
|
95
95
|
translationMerged: boolean;
|
|
96
|
-
entityId?: string
|
|
96
|
+
entityId?: string;
|
|
97
97
|
}>;
|
|
98
98
|
|
|
99
99
|
type MergeTranslationToUniformOptions = {
|
|
@@ -105,7 +105,7 @@ type MergeTranslationToUniformOptions = {
|
|
|
105
105
|
} & Pick<MergeEntryTranslationToUniformOptions, 'contentClient' | 'updateEntry'> & Pick<MergeCompositionTranslationToUniformOptions, 'canvasClient' | 'updateComposition'>;
|
|
106
106
|
declare const mergeTranslationToUniform: ({ canvasClient, contentClient, translationPayload, updateComposition, updateEntry, onNotFound, onNotTranslatedResult, }: MergeTranslationToUniformOptions) => Promise<{
|
|
107
107
|
translationMerged: boolean;
|
|
108
|
-
entityId?: string
|
|
108
|
+
entityId?: string;
|
|
109
109
|
}>;
|
|
110
110
|
|
|
111
111
|
declare const translateComposition: ({ composition, translationPayload, }: {
|
package/dist/index.d.ts
CHANGED
|
@@ -48,16 +48,16 @@ declare const collectTranslationPayload: ({ uniformProjectId, uniformSourceLocal
|
|
|
48
48
|
declare const getCompositionForTranslation: ({ canvasClient, compositionId, releaseId, state, }: {
|
|
49
49
|
canvasClient: CanvasClient;
|
|
50
50
|
compositionId: string;
|
|
51
|
-
releaseId?: string
|
|
52
|
-
state?: number
|
|
51
|
+
releaseId?: string;
|
|
52
|
+
state?: number;
|
|
53
53
|
}) => Promise<CompositionGetResponse | undefined>;
|
|
54
54
|
|
|
55
55
|
declare const getEntryForTranslation: ({ contentClient, entryId, releaseId, pattern, state, }: {
|
|
56
56
|
contentClient: ContentClient;
|
|
57
57
|
entryId: string;
|
|
58
|
-
releaseId?: string
|
|
59
|
-
pattern?: boolean
|
|
60
|
-
state?: number
|
|
58
|
+
releaseId?: string;
|
|
59
|
+
pattern?: boolean;
|
|
60
|
+
state?: number;
|
|
61
61
|
}) => Promise<Entry | undefined>;
|
|
62
62
|
|
|
63
63
|
type MergeCompositionTranslationToUniformOptions = {
|
|
@@ -75,7 +75,7 @@ type MergeCompositionTranslationToUniformOptions = {
|
|
|
75
75
|
};
|
|
76
76
|
declare const mergeCompositionTranslationToUniform: ({ canvasClient, translationPayload, updateComposition, onNotFound, onNotTranslatedResult, }: MergeCompositionTranslationToUniformOptions) => Promise<{
|
|
77
77
|
translationMerged: boolean;
|
|
78
|
-
entityId?: string
|
|
78
|
+
entityId?: string;
|
|
79
79
|
}>;
|
|
80
80
|
|
|
81
81
|
type MergeEntryTranslationToUniformOptions = {
|
|
@@ -93,7 +93,7 @@ type MergeEntryTranslationToUniformOptions = {
|
|
|
93
93
|
};
|
|
94
94
|
declare const mergeEntryTranslationToUniform: ({ contentClient, translationPayload, updateEntry, onNotFound, onNotTranslatedResult, }: MergeEntryTranslationToUniformOptions) => Promise<{
|
|
95
95
|
translationMerged: boolean;
|
|
96
|
-
entityId?: string
|
|
96
|
+
entityId?: string;
|
|
97
97
|
}>;
|
|
98
98
|
|
|
99
99
|
type MergeTranslationToUniformOptions = {
|
|
@@ -105,7 +105,7 @@ type MergeTranslationToUniformOptions = {
|
|
|
105
105
|
} & Pick<MergeEntryTranslationToUniformOptions, 'contentClient' | 'updateEntry'> & Pick<MergeCompositionTranslationToUniformOptions, 'canvasClient' | 'updateComposition'>;
|
|
106
106
|
declare const mergeTranslationToUniform: ({ canvasClient, contentClient, translationPayload, updateComposition, updateEntry, onNotFound, onNotTranslatedResult, }: MergeTranslationToUniformOptions) => Promise<{
|
|
107
107
|
translationMerged: boolean;
|
|
108
|
-
entityId?: string
|
|
108
|
+
entityId?: string;
|
|
109
109
|
}>;
|
|
110
110
|
|
|
111
111
|
declare const translateComposition: ({ composition, translationPayload, }: {
|
package/dist/index.esm.js
CHANGED
|
@@ -26,12 +26,15 @@ function renderAsTranslatableXml(root) {
|
|
|
26
26
|
xmlParts: []
|
|
27
27
|
};
|
|
28
28
|
renderXmlNode(result, root);
|
|
29
|
-
const metadata = result.attributes.reduce(
|
|
30
|
-
result2
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
const metadata = result.attributes.reduce(
|
|
30
|
+
(result2, current, index) => {
|
|
31
|
+
result2[String(index)] = {
|
|
32
|
+
attrs: current
|
|
33
|
+
};
|
|
34
|
+
return result2;
|
|
35
|
+
},
|
|
36
|
+
{}
|
|
37
|
+
);
|
|
35
38
|
return {
|
|
36
39
|
metadata,
|
|
37
40
|
xml: result.xmlParts.join("")
|
package/dist/index.js
CHANGED
|
@@ -56,12 +56,15 @@ function renderAsTranslatableXml(root) {
|
|
|
56
56
|
xmlParts: []
|
|
57
57
|
};
|
|
58
58
|
renderXmlNode(result, root);
|
|
59
|
-
const metadata = result.attributes.reduce(
|
|
60
|
-
result2
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
const metadata = result.attributes.reduce(
|
|
60
|
+
(result2, current, index) => {
|
|
61
|
+
result2[String(index)] = {
|
|
62
|
+
attrs: current
|
|
63
|
+
};
|
|
64
|
+
return result2;
|
|
65
|
+
},
|
|
66
|
+
{}
|
|
67
|
+
);
|
|
65
68
|
return {
|
|
66
69
|
metadata,
|
|
67
70
|
xml: result.xmlParts.join("")
|
package/dist/index.mjs
CHANGED
|
@@ -26,12 +26,15 @@ function renderAsTranslatableXml(root) {
|
|
|
26
26
|
xmlParts: []
|
|
27
27
|
};
|
|
28
28
|
renderXmlNode(result, root);
|
|
29
|
-
const metadata = result.attributes.reduce(
|
|
30
|
-
result2
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
const metadata = result.attributes.reduce(
|
|
30
|
+
(result2, current, index) => {
|
|
31
|
+
result2[String(index)] = {
|
|
32
|
+
attrs: current
|
|
33
|
+
};
|
|
34
|
+
return result2;
|
|
35
|
+
},
|
|
36
|
+
{}
|
|
37
|
+
);
|
|
35
38
|
return {
|
|
36
39
|
metadata,
|
|
37
40
|
xml: result.xmlParts.join("")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/tms-sdk",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.180.0",
|
|
4
4
|
"description": "Uniform Translation Management System SDK",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@uniformdev/canvas": "19.
|
|
37
|
-
"@uniformdev/mesh-sdk": "19.
|
|
38
|
-
"@uniformdev/richtext": "19.
|
|
36
|
+
"@uniformdev/canvas": "19.180.0",
|
|
37
|
+
"@uniformdev/mesh-sdk": "19.180.0",
|
|
38
|
+
"@uniformdev/richtext": "19.180.0",
|
|
39
39
|
"dequal": "2.0.3",
|
|
40
40
|
"fast-xml-parser": "4.4.1",
|
|
41
41
|
"immer": "10.1.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "309600b88571d0ffb2b80d7d2c27b7aa3e5ae72b"
|
|
44
44
|
}
|