@lokalise/maestro-nextgen-tenant-lib 5.1.3 → 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
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;
@@ -163,6 +177,12 @@ export declare const TASK_PROGRESS_UPDATE_EVENT_PAYLOAD_SCHEMA: z.ZodObject<{
163
177
  segments: z.ZodArray<z.ZodObject<{
164
178
  id: z.ZodString;
165
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
+ }>>;
166
186
  }, z.core.$strip>>;
167
187
  }, z.core.$strip>;
168
188
  export type AutopilotSegmentBulkUpdateConsumerEvent = SegmentBulkUpdatedConsumerEvent;
@@ -1,5 +1,7 @@
1
+ import { LastChangeSourceEnum } from '@lokalise/translation-storage-api-schemas';
1
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,7 @@ 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
  });
12
15
  export const TASK_UPDATE_ITEM_EVENT_PAYLOAD_SCHEMA = SEGMENT_BULK_TRANSFERRED_EVENT_PAYLOAD_SCHEMA;
@@ -1 +1 @@
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,8B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@@
1
1
  {
2
2
  "name": "@lokalise/maestro-nextgen-tenant-lib",
3
- "version": "5.1.3",
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,7 +43,8 @@
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": ">=2.3.0",
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": {