@lokalise/maestro-nextgen-tenant-lib 5.1.2 → 5.1.3
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,4 +1,4 @@
|
|
|
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
3
|
export declare const AutopilotSegmentEvents: {
|
|
4
4
|
'segment.bulk.updated': {
|
|
@@ -110,6 +110,45 @@ export declare const AutopilotSegmentEvents: {
|
|
|
110
110
|
}>>;
|
|
111
111
|
}, z.core.$strip>;
|
|
112
112
|
};
|
|
113
|
+
'segment.bulk.transferred': {
|
|
114
|
+
producedBy: string[];
|
|
115
|
+
snsTopic: string;
|
|
116
|
+
consumerSchema: z.ZodObject<{
|
|
117
|
+
id: z.ZodString;
|
|
118
|
+
timestamp: z.ZodISODateTime;
|
|
119
|
+
type: z.ZodLiteral<"segment.bulk.transferred">;
|
|
120
|
+
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
122
|
+
payload: z.ZodObject<{
|
|
123
|
+
projectId: z.ZodGUID;
|
|
124
|
+
workspaceId: z.ZodGUID;
|
|
125
|
+
previousItemId: z.ZodGUID;
|
|
126
|
+
newItemId: z.ZodGUID;
|
|
127
|
+
segmentIdentifiers: z.ZodArray<z.ZodGUID>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
metadata: import("@message-queue-toolkit/schemas").MetadataObject;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
publisherSchema: z.ZodObject<{
|
|
132
|
+
id: z.ZodOptional<z.ZodString>;
|
|
133
|
+
timestamp: z.ZodOptional<z.ZodISODateTime>;
|
|
134
|
+
type: z.ZodLiteral<"segment.bulk.transferred">;
|
|
135
|
+
deduplicationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
136
|
+
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
137
|
+
payload: z.ZodObject<{
|
|
138
|
+
projectId: z.ZodGUID;
|
|
139
|
+
workspaceId: z.ZodGUID;
|
|
140
|
+
previousItemId: z.ZodGUID;
|
|
141
|
+
newItemId: z.ZodGUID;
|
|
142
|
+
segmentIdentifiers: z.ZodArray<z.ZodGUID>;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
145
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
146
|
+
producedBy: z.ZodOptional<z.ZodString>;
|
|
147
|
+
originatedFrom: z.ZodOptional<z.ZodString>;
|
|
148
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
149
|
+
}>>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
};
|
|
113
152
|
};
|
|
114
153
|
export declare const AutopilotSegmentUpdateTypeEnum: {
|
|
115
154
|
readonly MANUAL_TRANSLATION: "MANUAL_TRANSLATION";
|
|
@@ -128,3 +167,12 @@ export declare const TASK_PROGRESS_UPDATE_EVENT_PAYLOAD_SCHEMA: z.ZodObject<{
|
|
|
128
167
|
}, z.core.$strip>;
|
|
129
168
|
export type AutopilotSegmentBulkUpdateConsumerEvent = SegmentBulkUpdatedConsumerEvent;
|
|
130
169
|
export type AutopilotSegmentBulkUpdatePublisherEvent = SegmentBulkUpdatedPublisherEvent;
|
|
170
|
+
export declare const TASK_UPDATE_ITEM_EVENT_PAYLOAD_SCHEMA: z.ZodObject<{
|
|
171
|
+
projectId: z.ZodGUID;
|
|
172
|
+
workspaceId: z.ZodGUID;
|
|
173
|
+
previousItemId: z.ZodGUID;
|
|
174
|
+
newItemId: z.ZodGUID;
|
|
175
|
+
segmentIdentifiers: z.ZodArray<z.ZodGUID>;
|
|
176
|
+
}, z.core.$strip>;
|
|
177
|
+
export type AutopilotSegmentBulkTransferredConsumerEvent = SegmentBulkTransferredConsumerEvent;
|
|
178
|
+
export type AutopilotSegmentBulkTransferredPublisherEvent = SegmentBulkTransferredPublisherEvent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SegmentEvents, SegmentUpdateTypeEnum, } from '@lokalise/translation-storage-events-schemas';
|
|
1
|
+
import { SEGMENT_BULK_TRANSFERRED_EVENT_PAYLOAD_SCHEMA, SegmentEvents, SegmentUpdateTypeEnum, } from '@lokalise/translation-storage-events-schemas';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
export const AutopilotSegmentEvents = SegmentEvents;
|
|
4
4
|
export const AutopilotSegmentUpdateTypeEnum = SegmentUpdateTypeEnum;
|
|
@@ -9,4 +9,5 @@ export const TASK_PROGRESS_UPDATE_EVENT_PAYLOAD_SCHEMA = z.object({
|
|
|
9
9
|
status: z.string(),
|
|
10
10
|
})),
|
|
11
11
|
});
|
|
12
|
+
export const TASK_UPDATE_ITEM_EVENT_PAYLOAD_SCHEMA = SEGMENT_BULK_TRANSFERRED_EVENT_PAYLOAD_SCHEMA;
|
|
12
13
|
//# 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,EACL,6CAA6C,EAK7C,aAAa,EACb,qBAAqB,GACtB,MAAM,8CAA8C,CAAA;AAErD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,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;KACnB,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": "5.1.
|
|
3
|
+
"version": "5.1.3",
|
|
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,16 @@
|
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@lokalise/api-contracts": ">=6.5.1",
|
|
45
45
|
"@lokalise/maestro-common": ">=6.0.0",
|
|
46
|
-
"@lokalise/translation-storage-events-schemas": ">=
|
|
46
|
+
"@lokalise/translation-storage-events-schemas": ">=2.3.0",
|
|
47
47
|
"zod": ">=4.1.5"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@biomejs/biome": "^2.3.
|
|
50
|
+
"@biomejs/biome": "^2.3.14",
|
|
51
51
|
"@lokalise/biome-config": "^3.1.1",
|
|
52
52
|
"@lokalise/id-utils": "^3.0.1",
|
|
53
53
|
"@lokalise/maestro-common": "*",
|
|
54
54
|
"@lokalise/tsconfig": "~3.1.0",
|
|
55
|
-
"@types/node": "^25.
|
|
55
|
+
"@types/node": "^25.2.3",
|
|
56
56
|
"@vitest/coverage-v8": "^4.0.18",
|
|
57
57
|
"auto-changelog": "^2.5.0",
|
|
58
58
|
"rimraf": "^6.1.2",
|