@lokalise/maestro-nextgen-tenant-lib 5.1.2 → 6.0.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.
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import { type SegmentBulkUpdatedConsumerEvent, type SegmentBulkUpdatedPublisherEvent } from '@lokalise/translation-storage-events-schemas';
|
|
1
|
+
import { type SegmentBulkTransferredConsumerEvent, type SegmentBulkTransferredPublisherEvent, type SegmentBulkUpdatedConsumerEvent, type SegmentBulkUpdatedPublisherEvent } from '@lokalise/translation-storage-events-schemas';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
|
+
export declare const AutopilotLastChangeSourceEnum: {
|
|
4
|
+
readonly TRANSLATION_MEMORY: "TRANSLATION_MEMORY";
|
|
5
|
+
readonly AI: "AI";
|
|
6
|
+
readonly HUMAN: "HUMAN";
|
|
7
|
+
readonly IMPORT: "IMPORT";
|
|
8
|
+
};
|
|
3
9
|
export declare const AutopilotSegmentEvents: {
|
|
4
10
|
'segment.bulk.updated': {
|
|
5
11
|
producedBy: string[];
|
|
@@ -22,6 +28,10 @@ export declare const AutopilotSegmentEvents: {
|
|
|
22
28
|
readonly TRANSLATION_MEMORY_MATCH: "TRANSLATION_MEMORY_MATCH";
|
|
23
29
|
readonly IMPORT: "IMPORT";
|
|
24
30
|
}>;
|
|
31
|
+
updatedFields: z.ZodArray<z.ZodEnum<{
|
|
32
|
+
value: "value";
|
|
33
|
+
status: "status";
|
|
34
|
+
}>>;
|
|
25
35
|
segments: z.ZodArray<z.ZodObject<{
|
|
26
36
|
id: z.ZodGUID;
|
|
27
37
|
number: z.ZodNumber;
|
|
@@ -72,6 +82,10 @@ export declare const AutopilotSegmentEvents: {
|
|
|
72
82
|
readonly TRANSLATION_MEMORY_MATCH: "TRANSLATION_MEMORY_MATCH";
|
|
73
83
|
readonly IMPORT: "IMPORT";
|
|
74
84
|
}>;
|
|
85
|
+
updatedFields: z.ZodArray<z.ZodEnum<{
|
|
86
|
+
value: "value";
|
|
87
|
+
status: "status";
|
|
88
|
+
}>>;
|
|
75
89
|
segments: z.ZodArray<z.ZodObject<{
|
|
76
90
|
id: z.ZodGUID;
|
|
77
91
|
number: z.ZodNumber;
|
|
@@ -110,6 +124,45 @@ export declare const AutopilotSegmentEvents: {
|
|
|
110
124
|
}>>;
|
|
111
125
|
}, z.core.$strip>;
|
|
112
126
|
};
|
|
127
|
+
'segment.bulk.transferred': {
|
|
128
|
+
producedBy: string[];
|
|
129
|
+
snsTopic: string;
|
|
130
|
+
consumerSchema: z.ZodObject<{
|
|
131
|
+
id: z.ZodString;
|
|
132
|
+
timestamp: z.ZodISODateTime;
|
|
133
|
+
type: z.ZodLiteral<"segment.bulk.transferred">;
|
|
134
|
+
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
|
+
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
136
|
+
payload: z.ZodObject<{
|
|
137
|
+
projectId: z.ZodGUID;
|
|
138
|
+
workspaceId: z.ZodGUID;
|
|
139
|
+
previousItemId: z.ZodGUID;
|
|
140
|
+
newItemId: z.ZodGUID;
|
|
141
|
+
segmentIdentifiers: z.ZodArray<z.ZodGUID>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
metadata: import("@message-queue-toolkit/schemas").MetadataObject;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
publisherSchema: z.ZodObject<{
|
|
146
|
+
id: z.ZodOptional<z.ZodString>;
|
|
147
|
+
timestamp: z.ZodOptional<z.ZodISODateTime>;
|
|
148
|
+
type: z.ZodLiteral<"segment.bulk.transferred">;
|
|
149
|
+
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
150
|
+
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
151
|
+
payload: z.ZodObject<{
|
|
152
|
+
projectId: z.ZodGUID;
|
|
153
|
+
workspaceId: z.ZodGUID;
|
|
154
|
+
previousItemId: z.ZodGUID;
|
|
155
|
+
newItemId: z.ZodGUID;
|
|
156
|
+
segmentIdentifiers: z.ZodArray<z.ZodGUID>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
160
|
+
producedBy: z.ZodOptional<z.ZodString>;
|
|
161
|
+
originatedFrom: z.ZodOptional<z.ZodString>;
|
|
162
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
163
|
+
}>>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
};
|
|
113
166
|
};
|
|
114
167
|
export declare const AutopilotSegmentUpdateTypeEnum: {
|
|
115
168
|
readonly MANUAL_TRANSLATION: "MANUAL_TRANSLATION";
|
|
@@ -124,7 +177,22 @@ export declare const TASK_PROGRESS_UPDATE_EVENT_PAYLOAD_SCHEMA: z.ZodObject<{
|
|
|
124
177
|
segments: z.ZodArray<z.ZodObject<{
|
|
125
178
|
id: z.ZodString;
|
|
126
179
|
status: z.ZodString;
|
|
180
|
+
lastChangeSource: z.ZodOptional<z.ZodEnum<{
|
|
181
|
+
readonly TRANSLATION_MEMORY: "TRANSLATION_MEMORY";
|
|
182
|
+
readonly AI: "AI";
|
|
183
|
+
readonly HUMAN: "HUMAN";
|
|
184
|
+
readonly IMPORT: "IMPORT";
|
|
185
|
+
}>>;
|
|
127
186
|
}, z.core.$strip>>;
|
|
128
187
|
}, z.core.$strip>;
|
|
129
188
|
export type AutopilotSegmentBulkUpdateConsumerEvent = SegmentBulkUpdatedConsumerEvent;
|
|
130
189
|
export type AutopilotSegmentBulkUpdatePublisherEvent = SegmentBulkUpdatedPublisherEvent;
|
|
190
|
+
export declare const TASK_UPDATE_ITEM_EVENT_PAYLOAD_SCHEMA: z.ZodObject<{
|
|
191
|
+
projectId: z.ZodGUID;
|
|
192
|
+
workspaceId: z.ZodGUID;
|
|
193
|
+
previousItemId: z.ZodGUID;
|
|
194
|
+
newItemId: z.ZodGUID;
|
|
195
|
+
segmentIdentifiers: z.ZodArray<z.ZodGUID>;
|
|
196
|
+
}, z.core.$strip>;
|
|
197
|
+
export type AutopilotSegmentBulkTransferredConsumerEvent = SegmentBulkTransferredConsumerEvent;
|
|
198
|
+
export type AutopilotSegmentBulkTransferredPublisherEvent = SegmentBulkTransferredPublisherEvent;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LastChangeSourceEnum } from '@lokalise/translation-storage-api-schemas';
|
|
2
|
+
import { SEGMENT_BULK_TRANSFERRED_EVENT_PAYLOAD_SCHEMA, SegmentEvents, SegmentUpdateTypeEnum, } from '@lokalise/translation-storage-events-schemas';
|
|
2
3
|
import { z } from 'zod/v4';
|
|
4
|
+
export const AutopilotLastChangeSourceEnum = LastChangeSourceEnum;
|
|
3
5
|
export const AutopilotSegmentEvents = SegmentEvents;
|
|
4
6
|
export const AutopilotSegmentUpdateTypeEnum = SegmentUpdateTypeEnum;
|
|
5
7
|
export const TASK_PROGRESS_UPDATE_EVENT_PAYLOAD_SCHEMA = z.object({
|
|
@@ -7,6 +9,8 @@ export const TASK_PROGRESS_UPDATE_EVENT_PAYLOAD_SCHEMA = z.object({
|
|
|
7
9
|
segments: z.array(z.object({
|
|
8
10
|
id: z.string(),
|
|
9
11
|
status: z.string(),
|
|
12
|
+
lastChangeSource: z.enum(AutopilotLastChangeSourceEnum).optional(),
|
|
10
13
|
})),
|
|
11
14
|
});
|
|
15
|
+
export const TASK_UPDATE_ITEM_EVENT_PAYLOAD_SCHEMA = SEGMENT_BULK_TRANSFERRED_EVENT_PAYLOAD_SCHEMA;
|
|
12
16
|
//# sourceMappingURL=segment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segment.js","sourceRoot":"","sources":["../../src/event-schemas/segment.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
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,EACb,qBAAqB,GACtB,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,8BAA8B,GAAG,qBAAqB,CAAA;AAEnE,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": "
|
|
3
|
+
"version": "6.0.0",
|
|
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",
|
|
@@ -43,16 +43,17 @@
|
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@lokalise/api-contracts": ">=6.5.1",
|
|
45
45
|
"@lokalise/maestro-common": ">=6.0.0",
|
|
46
|
-
"@lokalise/translation-storage-
|
|
46
|
+
"@lokalise/translation-storage-api-schemas": ">=3.4.0",
|
|
47
|
+
"@lokalise/translation-storage-events-schemas": ">=3.0.0",
|
|
47
48
|
"zod": ">=4.1.5"
|
|
48
49
|
},
|
|
49
50
|
"devDependencies": {
|
|
50
|
-
"@biomejs/biome": "^2.3.
|
|
51
|
+
"@biomejs/biome": "^2.3.14",
|
|
51
52
|
"@lokalise/biome-config": "^3.1.1",
|
|
52
53
|
"@lokalise/id-utils": "^3.0.1",
|
|
53
54
|
"@lokalise/maestro-common": "*",
|
|
54
55
|
"@lokalise/tsconfig": "~3.1.0",
|
|
55
|
-
"@types/node": "^25.
|
|
56
|
+
"@types/node": "^25.2.3",
|
|
56
57
|
"@vitest/coverage-v8": "^4.0.18",
|
|
57
58
|
"auto-changelog": "^2.5.0",
|
|
58
59
|
"rimraf": "^6.1.2",
|