@uniformdev/tms-sdk 20.72.3-alpha.3 → 20.72.3-alpha.45
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 +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.esm.js +575 -17
- package/dist/index.js +562 -17
- package/dist/index.mjs +575 -17
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentInstance, RootComponentInstance, EntryData,
|
|
1
|
+
import { ComponentInstance, RootComponentInstance, EntryData, CompositionManagementClient, CompositionGetResponse, EntryManagementClient, Entry } from '@uniformdev/canvas';
|
|
2
2
|
import { CanvasEditorEntityType } from '@uniformdev/mesh-sdk';
|
|
3
3
|
|
|
4
4
|
type ComponentTranslationPayload = Pick<ComponentInstance, '_id' | 'type' | 'parameters' | 'slots' | '_overrides'>;
|
|
@@ -54,14 +54,14 @@ declare const collectTranslationPayload: ({ uniformProjectId, uniformSourceLocal
|
|
|
54
54
|
}) => CollectTranslationPayloadResult;
|
|
55
55
|
|
|
56
56
|
declare const getCompositionForTranslation: ({ canvasClient, compositionId, releaseId, state, }: {
|
|
57
|
-
canvasClient:
|
|
57
|
+
canvasClient: CompositionManagementClient;
|
|
58
58
|
compositionId: string;
|
|
59
59
|
releaseId?: string;
|
|
60
60
|
state?: number;
|
|
61
61
|
}) => Promise<CompositionGetResponse | undefined>;
|
|
62
62
|
|
|
63
63
|
declare const getEntryForTranslation: ({ contentClient, entryId, releaseId, pattern, state, }: {
|
|
64
|
-
contentClient:
|
|
64
|
+
contentClient: EntryManagementClient;
|
|
65
65
|
entryId: string;
|
|
66
66
|
releaseId?: string;
|
|
67
67
|
pattern?: boolean;
|
|
@@ -69,12 +69,12 @@ declare const getEntryForTranslation: ({ contentClient, entryId, releaseId, patt
|
|
|
69
69
|
}) => Promise<Entry | undefined>;
|
|
70
70
|
|
|
71
71
|
type MergeCompositionTranslationToUniformOptions = {
|
|
72
|
-
canvasClient:
|
|
72
|
+
canvasClient: CompositionManagementClient;
|
|
73
73
|
translationPayload: TranslationPayload;
|
|
74
74
|
updateComposition?: (args: {
|
|
75
|
-
canvasClient:
|
|
75
|
+
canvasClient: CompositionManagementClient;
|
|
76
76
|
translationPayload: TranslationPayload;
|
|
77
|
-
composition: Parameters<
|
|
77
|
+
composition: Parameters<CompositionManagementClient['save']>[0];
|
|
78
78
|
}) => MaybePromise<boolean>;
|
|
79
79
|
onNotFound?: (args: {
|
|
80
80
|
translationPayload: TranslationPayload;
|
|
@@ -87,12 +87,12 @@ declare const mergeCompositionTranslationToUniform: ({ canvasClient, translation
|
|
|
87
87
|
}>;
|
|
88
88
|
|
|
89
89
|
type MergeEntryTranslationToUniformOptions = {
|
|
90
|
-
contentClient:
|
|
90
|
+
contentClient: EntryManagementClient;
|
|
91
91
|
translationPayload: TranslationPayload;
|
|
92
92
|
updateEntry?: (args: {
|
|
93
|
-
contentClient:
|
|
93
|
+
contentClient: EntryManagementClient;
|
|
94
94
|
translationPayload: TranslationPayload;
|
|
95
|
-
entry: Parameters<
|
|
95
|
+
entry: Parameters<EntryManagementClient['save']>[0];
|
|
96
96
|
}) => MaybePromise<boolean>;
|
|
97
97
|
onNotFound?: (args: {
|
|
98
98
|
translationPayload: TranslationPayload;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentInstance, RootComponentInstance, EntryData,
|
|
1
|
+
import { ComponentInstance, RootComponentInstance, EntryData, CompositionManagementClient, CompositionGetResponse, EntryManagementClient, Entry } from '@uniformdev/canvas';
|
|
2
2
|
import { CanvasEditorEntityType } from '@uniformdev/mesh-sdk';
|
|
3
3
|
|
|
4
4
|
type ComponentTranslationPayload = Pick<ComponentInstance, '_id' | 'type' | 'parameters' | 'slots' | '_overrides'>;
|
|
@@ -54,14 +54,14 @@ declare const collectTranslationPayload: ({ uniformProjectId, uniformSourceLocal
|
|
|
54
54
|
}) => CollectTranslationPayloadResult;
|
|
55
55
|
|
|
56
56
|
declare const getCompositionForTranslation: ({ canvasClient, compositionId, releaseId, state, }: {
|
|
57
|
-
canvasClient:
|
|
57
|
+
canvasClient: CompositionManagementClient;
|
|
58
58
|
compositionId: string;
|
|
59
59
|
releaseId?: string;
|
|
60
60
|
state?: number;
|
|
61
61
|
}) => Promise<CompositionGetResponse | undefined>;
|
|
62
62
|
|
|
63
63
|
declare const getEntryForTranslation: ({ contentClient, entryId, releaseId, pattern, state, }: {
|
|
64
|
-
contentClient:
|
|
64
|
+
contentClient: EntryManagementClient;
|
|
65
65
|
entryId: string;
|
|
66
66
|
releaseId?: string;
|
|
67
67
|
pattern?: boolean;
|
|
@@ -69,12 +69,12 @@ declare const getEntryForTranslation: ({ contentClient, entryId, releaseId, patt
|
|
|
69
69
|
}) => Promise<Entry | undefined>;
|
|
70
70
|
|
|
71
71
|
type MergeCompositionTranslationToUniformOptions = {
|
|
72
|
-
canvasClient:
|
|
72
|
+
canvasClient: CompositionManagementClient;
|
|
73
73
|
translationPayload: TranslationPayload;
|
|
74
74
|
updateComposition?: (args: {
|
|
75
|
-
canvasClient:
|
|
75
|
+
canvasClient: CompositionManagementClient;
|
|
76
76
|
translationPayload: TranslationPayload;
|
|
77
|
-
composition: Parameters<
|
|
77
|
+
composition: Parameters<CompositionManagementClient['save']>[0];
|
|
78
78
|
}) => MaybePromise<boolean>;
|
|
79
79
|
onNotFound?: (args: {
|
|
80
80
|
translationPayload: TranslationPayload;
|
|
@@ -87,12 +87,12 @@ declare const mergeCompositionTranslationToUniform: ({ canvasClient, translation
|
|
|
87
87
|
}>;
|
|
88
88
|
|
|
89
89
|
type MergeEntryTranslationToUniformOptions = {
|
|
90
|
-
contentClient:
|
|
90
|
+
contentClient: EntryManagementClient;
|
|
91
91
|
translationPayload: TranslationPayload;
|
|
92
92
|
updateEntry?: (args: {
|
|
93
|
-
contentClient:
|
|
93
|
+
contentClient: EntryManagementClient;
|
|
94
94
|
translationPayload: TranslationPayload;
|
|
95
|
-
entry: Parameters<
|
|
95
|
+
entry: Parameters<EntryManagementClient['save']>[0];
|
|
96
96
|
}) => MaybePromise<boolean>;
|
|
97
97
|
onNotFound?: (args: {
|
|
98
98
|
translationPayload: TranslationPayload;
|