@lokalise/maestro-nextgen-tenant-lib 7.2.0 → 7.2.1
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.
|
@@ -20,14 +20,6 @@ export declare const AutopilotSegmentEvents: {
|
|
|
20
20
|
projectId: z.ZodGUID;
|
|
21
21
|
userId: z.ZodOptional<z.ZodNullable<z.ZodGUID>>;
|
|
22
22
|
workspaceId: z.ZodGUID;
|
|
23
|
-
updateType: z.ZodEnum<{
|
|
24
|
-
readonly MANUAL_TRANSLATION: "MANUAL_TRANSLATION";
|
|
25
|
-
readonly MANUAL_STATUS_UPDATE: "MANUAL_STATUS_UPDATE";
|
|
26
|
-
readonly AI_TRANSLATION: "AI_TRANSLATION";
|
|
27
|
-
readonly AI_STATUS_UPDATE: "AI_STATUS_UPDATE";
|
|
28
|
-
readonly TRANSLATION_MEMORY_MATCH: "TRANSLATION_MEMORY_MATCH";
|
|
29
|
-
readonly IMPORT: "IMPORT";
|
|
30
|
-
}>;
|
|
31
23
|
updatedFields: z.ZodArray<z.ZodEnum<{
|
|
32
24
|
value: "value";
|
|
33
25
|
status: "status";
|
|
@@ -54,6 +46,7 @@ export declare const AutopilotSegmentEvents: {
|
|
|
54
46
|
textUnitId: z.ZodGUID;
|
|
55
47
|
projectId: z.ZodGUID;
|
|
56
48
|
translatableWordsCount: z.ZodInt;
|
|
49
|
+
sourceTranslatableWordsCount: z.ZodInt;
|
|
57
50
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
58
51
|
prefix: z.ZodOptional<z.ZodString>;
|
|
59
52
|
suffix: z.ZodOptional<z.ZodString>;
|
|
@@ -61,6 +54,20 @@ export declare const AutopilotSegmentEvents: {
|
|
|
61
54
|
createdAt: z.ZodPipe<z.ZodTransform<string | undefined, string | Date | undefined>, z.ZodISODateTime>;
|
|
62
55
|
updatedAt: z.ZodNullable<z.ZodPipe<z.ZodTransform<string | undefined, string | Date | undefined>, z.ZodISODateTime>>;
|
|
63
56
|
}, z.core.$strip>>;
|
|
57
|
+
translationSourceContext: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
58
|
+
type: z.ZodLiteral<"TRANSLATION_MEMORY">;
|
|
59
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
60
|
+
segmentId: z.ZodString;
|
|
61
|
+
tmRecordId: z.ZodString;
|
|
62
|
+
tmMatchPercentage: z.ZodNumber;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
65
|
+
type: z.ZodLiteral<"AI">;
|
|
66
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
67
|
+
segmentId: z.ZodString;
|
|
68
|
+
polyglotRefId: z.ZodString;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
}, z.core.$strip>], "type">>;
|
|
64
71
|
}, z.core.$strip>;
|
|
65
72
|
metadata: import("@message-queue-toolkit/schemas").MetadataObject;
|
|
66
73
|
}, z.core.$strip>;
|
|
@@ -74,14 +81,6 @@ export declare const AutopilotSegmentEvents: {
|
|
|
74
81
|
projectId: z.ZodGUID;
|
|
75
82
|
userId: z.ZodOptional<z.ZodNullable<z.ZodGUID>>;
|
|
76
83
|
workspaceId: z.ZodGUID;
|
|
77
|
-
updateType: z.ZodEnum<{
|
|
78
|
-
readonly MANUAL_TRANSLATION: "MANUAL_TRANSLATION";
|
|
79
|
-
readonly MANUAL_STATUS_UPDATE: "MANUAL_STATUS_UPDATE";
|
|
80
|
-
readonly AI_TRANSLATION: "AI_TRANSLATION";
|
|
81
|
-
readonly AI_STATUS_UPDATE: "AI_STATUS_UPDATE";
|
|
82
|
-
readonly TRANSLATION_MEMORY_MATCH: "TRANSLATION_MEMORY_MATCH";
|
|
83
|
-
readonly IMPORT: "IMPORT";
|
|
84
|
-
}>;
|
|
85
84
|
updatedFields: z.ZodArray<z.ZodEnum<{
|
|
86
85
|
value: "value";
|
|
87
86
|
status: "status";
|
|
@@ -108,6 +107,7 @@ export declare const AutopilotSegmentEvents: {
|
|
|
108
107
|
textUnitId: z.ZodGUID;
|
|
109
108
|
projectId: z.ZodGUID;
|
|
110
109
|
translatableWordsCount: z.ZodInt;
|
|
110
|
+
sourceTranslatableWordsCount: z.ZodInt;
|
|
111
111
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
112
112
|
prefix: z.ZodOptional<z.ZodString>;
|
|
113
113
|
suffix: z.ZodOptional<z.ZodString>;
|
|
@@ -115,6 +115,20 @@ export declare const AutopilotSegmentEvents: {
|
|
|
115
115
|
createdAt: z.ZodPipe<z.ZodTransform<string | undefined, string | Date | undefined>, z.ZodISODateTime>;
|
|
116
116
|
updatedAt: z.ZodNullable<z.ZodPipe<z.ZodTransform<string | undefined, string | Date | undefined>, z.ZodISODateTime>>;
|
|
117
117
|
}, z.core.$strip>>;
|
|
118
|
+
translationSourceContext: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
119
|
+
type: z.ZodLiteral<"TRANSLATION_MEMORY">;
|
|
120
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
121
|
+
segmentId: z.ZodString;
|
|
122
|
+
tmRecordId: z.ZodString;
|
|
123
|
+
tmMatchPercentage: z.ZodNumber;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
126
|
+
type: z.ZodLiteral<"AI">;
|
|
127
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
128
|
+
segmentId: z.ZodString;
|
|
129
|
+
polyglotRefId: z.ZodString;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
}, z.core.$strip>], "type">>;
|
|
118
132
|
}, z.core.$strip>;
|
|
119
133
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
120
134
|
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -164,14 +178,6 @@ export declare const AutopilotSegmentEvents: {
|
|
|
164
178
|
}, z.core.$strip>;
|
|
165
179
|
};
|
|
166
180
|
};
|
|
167
|
-
export declare const AutopilotSegmentUpdateTypeEnum: {
|
|
168
|
-
readonly MANUAL_TRANSLATION: "MANUAL_TRANSLATION";
|
|
169
|
-
readonly MANUAL_STATUS_UPDATE: "MANUAL_STATUS_UPDATE";
|
|
170
|
-
readonly AI_TRANSLATION: "AI_TRANSLATION";
|
|
171
|
-
readonly AI_STATUS_UPDATE: "AI_STATUS_UPDATE";
|
|
172
|
-
readonly TRANSLATION_MEMORY_MATCH: "TRANSLATION_MEMORY_MATCH";
|
|
173
|
-
readonly IMPORT: "IMPORT";
|
|
174
|
-
};
|
|
175
181
|
export declare const TASK_PROGRESS_UPDATE_EVENT_PAYLOAD_SCHEMA: z.ZodObject<{
|
|
176
182
|
projectId: z.ZodString;
|
|
177
183
|
segments: z.ZodArray<z.ZodObject<{
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { LastChangeSourceEnum } from '@lokalise/translation-storage-api-schemas';
|
|
2
|
-
import { SEGMENT_BULK_TRANSFERRED_EVENT_PAYLOAD_SCHEMA, SegmentEvents,
|
|
2
|
+
import { SEGMENT_BULK_TRANSFERRED_EVENT_PAYLOAD_SCHEMA, SegmentEvents, } from '@lokalise/translation-storage-events-schemas';
|
|
3
3
|
import { z } from 'zod/v4';
|
|
4
4
|
export const AutopilotLastChangeSourceEnum = LastChangeSourceEnum;
|
|
5
5
|
export const AutopilotSegmentEvents = SegmentEvents;
|
|
6
|
-
export const AutopilotSegmentUpdateTypeEnum = SegmentUpdateTypeEnum;
|
|
7
6
|
export const TASK_PROGRESS_UPDATE_EVENT_PAYLOAD_SCHEMA = z.object({
|
|
8
7
|
projectId: z.string(),
|
|
9
8
|
segments: z.array(z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segment.js","sourceRoot":"","sources":["../../src/event-schemas/segment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAChF,OAAO,EACL,6CAA6C,EAK7C,aAAa,
|
|
1
|
+
{"version":3,"file":"segment.js","sourceRoot":"","sources":["../../src/event-schemas/segment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAChF,OAAO,EACL,6CAA6C,EAK7C,aAAa,GACd,MAAM,8CAA8C,CAAA;AACrD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,MAAM,CAAC,MAAM,6BAA6B,GAAG,oBAAoB,CAAA;AAEjE,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAA;AAEnD,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,KAAK,CACf,CAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;QAClB,gBAAgB,EAAE,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC,QAAQ,EAAE;KACnE,CAAC,CACH;CACF,CAAC,CAAA;AAKF,MAAM,CAAC,MAAM,qCAAqC,GAAG,6CAA6C,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokalise/maestro-nextgen-tenant-lib",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://github.com/lokalise/maestro",
|
|
6
6
|
"description": "This library provides objects, types and zod schemas for NextGen tenant to work with Maestro",
|
|
@@ -44,24 +44,24 @@
|
|
|
44
44
|
"@lokalise/api-contracts": ">=6.5.1",
|
|
45
45
|
"@lokalise/common-api-schemas": ">=2.1.0",
|
|
46
46
|
"@lokalise/maestro-common": ">=6.0.0",
|
|
47
|
-
"@lokalise/translation-storage-api-schemas": ">=
|
|
48
|
-
"@lokalise/translation-storage-events-schemas": ">=
|
|
47
|
+
"@lokalise/translation-storage-api-schemas": ">=8.4.0",
|
|
48
|
+
"@lokalise/translation-storage-events-schemas": ">=6.1.0",
|
|
49
49
|
"zod": ">=4.3.6"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@biomejs/biome": "^2.4.
|
|
52
|
+
"@biomejs/biome": "^2.4.10",
|
|
53
53
|
"@lokalise/biome-config": "^3.1.1",
|
|
54
54
|
"@lokalise/common-api-schemas": "^2.1.1",
|
|
55
55
|
"@lokalise/id-utils": "^3.0.1",
|
|
56
56
|
"@lokalise/maestro-common": "*",
|
|
57
57
|
"@lokalise/tsconfig": "~3.1.0",
|
|
58
58
|
"@types/node": "^25.5.0",
|
|
59
|
-
"@vitest/coverage-v8": "^4.1.
|
|
59
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
60
60
|
"auto-changelog": "^2.5.0",
|
|
61
61
|
"rimraf": "^6.1.3",
|
|
62
62
|
"tslib": "^2.8.1",
|
|
63
63
|
"typescript": "^5.9.3",
|
|
64
|
-
"vitest": "^4.1.
|
|
64
|
+
"vitest": "^4.1.2",
|
|
65
65
|
"zod": "^4.3.6"
|
|
66
66
|
}
|
|
67
67
|
}
|