@lokalise/maestro-nextgen-tenant-lib 7.2.1 → 8.0.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.
|
@@ -18,7 +18,7 @@ declare const TASK_ASSIGNMENT_UPDATE: z.ZodObject<{
|
|
|
18
18
|
}, z.core.$strict>;
|
|
19
19
|
export declare const TASK_LIST_ITEM: z.ZodObject<{
|
|
20
20
|
id: z.ZodString;
|
|
21
|
-
publicId: z.
|
|
21
|
+
publicId: z.ZodString;
|
|
22
22
|
title: z.ZodString;
|
|
23
23
|
type: z.ZodEnum<{
|
|
24
24
|
review: "review";
|
|
@@ -70,7 +70,7 @@ export declare const GET_TASK_LIST_REQUEST_QUERY: z.ZodObject<{
|
|
|
70
70
|
export declare const GET_TASK_LIST_RESPONSE: z.ZodObject<{
|
|
71
71
|
data: z.ZodArray<z.ZodObject<{
|
|
72
72
|
id: z.ZodString;
|
|
73
|
-
publicId: z.
|
|
73
|
+
publicId: z.ZodString;
|
|
74
74
|
title: z.ZodString;
|
|
75
75
|
type: z.ZodEnum<{
|
|
76
76
|
review: "review";
|
|
@@ -123,13 +123,13 @@ export declare const GET_ACCESSIBLE_TASK_LIST_REQUEST_QUERY: z.ZodObject<{
|
|
|
123
123
|
export declare const ACCESSIBLE_TASK_LIST_ITEM: z.ZodObject<{
|
|
124
124
|
id: z.ZodString;
|
|
125
125
|
title: z.ZodString;
|
|
126
|
-
publicId: z.
|
|
126
|
+
publicId: z.ZodString;
|
|
127
127
|
}, z.core.$strip>;
|
|
128
128
|
export declare const GET_ACCESSIBLE_TASK_LIST_RESPONSE: z.ZodObject<{
|
|
129
129
|
data: z.ZodArray<z.ZodObject<{
|
|
130
130
|
id: z.ZodString;
|
|
131
131
|
title: z.ZodString;
|
|
132
|
-
publicId: z.
|
|
132
|
+
publicId: z.ZodString;
|
|
133
133
|
}, z.core.$strip>>;
|
|
134
134
|
meta: z.ZodObject<{
|
|
135
135
|
count: z.ZodNumber;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const getTaskListContract: import("@lokalise/api-contracts").GetRouteDefinition<import("zod/v4").ZodObject<{
|
|
2
2
|
data: import("zod/v4").ZodArray<import("zod/v4").ZodObject<{
|
|
3
3
|
id: import("zod/v4").ZodString;
|
|
4
|
-
publicId: import("zod/v4").
|
|
4
|
+
publicId: import("zod/v4").ZodString;
|
|
5
5
|
title: import("zod/v4").ZodString;
|
|
6
6
|
type: import("zod/v4").ZodEnum<{
|
|
7
7
|
review: "review";
|
|
@@ -59,7 +59,7 @@ export declare const getTaskListContract: import("@lokalise/api-contracts").GetR
|
|
|
59
59
|
200: import("zod/v4").ZodObject<{
|
|
60
60
|
data: import("zod/v4").ZodArray<import("zod/v4").ZodObject<{
|
|
61
61
|
id: import("zod/v4").ZodString;
|
|
62
|
-
publicId: import("zod/v4").
|
|
62
|
+
publicId: import("zod/v4").ZodString;
|
|
63
63
|
title: import("zod/v4").ZodString;
|
|
64
64
|
type: import("zod/v4").ZodEnum<{
|
|
65
65
|
review: "review";
|
|
@@ -124,7 +124,7 @@ export declare const getAccessibleTaskListContract: import("@lokalise/api-contra
|
|
|
124
124
|
data: import("zod/v4").ZodArray<import("zod/v4").ZodObject<{
|
|
125
125
|
id: import("zod/v4").ZodString;
|
|
126
126
|
title: import("zod/v4").ZodString;
|
|
127
|
-
publicId: import("zod/v4").
|
|
127
|
+
publicId: import("zod/v4").ZodString;
|
|
128
128
|
}, import("zod/v4/core").$strip>>;
|
|
129
129
|
meta: import("zod/v4").ZodObject<{
|
|
130
130
|
count: import("zod/v4").ZodNumber;
|
|
@@ -144,7 +144,7 @@ export declare const getAccessibleTaskListContract: import("@lokalise/api-contra
|
|
|
144
144
|
data: import("zod/v4").ZodArray<import("zod/v4").ZodObject<{
|
|
145
145
|
id: import("zod/v4").ZodString;
|
|
146
146
|
title: import("zod/v4").ZodString;
|
|
147
|
-
publicId: import("zod/v4").
|
|
147
|
+
publicId: import("zod/v4").ZodString;
|
|
148
148
|
}, import("zod/v4/core").$strip>>;
|
|
149
149
|
meta: import("zod/v4").ZodObject<{
|
|
150
150
|
count: import("zod/v4").ZodNumber;
|
package/dist/common.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
export declare const TASK_LIST_DEFAULT_LIMIT = 5;
|
|
3
|
-
export declare const TASK_PUBLIC_ID: z.
|
|
3
|
+
export declare const TASK_PUBLIC_ID: z.ZodString;
|
|
4
4
|
export declare const TASK_TYPE: z.ZodEnum<{
|
|
5
5
|
review: "review";
|
|
6
6
|
}>;
|
package/dist/common.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { COMMON_GROUP_ID } from '@lokalise/maestro-common';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
export const TASK_LIST_DEFAULT_LIMIT = 5;
|
|
4
|
-
export const TASK_PUBLIC_ID = z.string().
|
|
4
|
+
export const TASK_PUBLIC_ID = z.string().describe('Public ID of the task');
|
|
5
5
|
export const TASK_TYPE = z.enum(['review']).describe('Type of the task');
|
|
6
6
|
export const TASK_ACTOR = z.enum(['human']).describe('Actor responsible for the task');
|
|
7
7
|
export const TASK_STATUS = z.enum(['created', 'in_progress', 'closed']).describe('Task status');
|
package/dist/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAA;AACxC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAA;AACxC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAC1E,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAA;AACxE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,gCAAgC,CAAC,CAAA;AACtF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAA;AAC/F,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,CAC3C,2BAA2B,EAC3B,yBAAyB,CAC1B,CAAC,QAAQ,CAAC,6BAA6B,CAAC,CAAA"}
|
|
@@ -10,7 +10,7 @@ export type TaskUnit = z.infer<typeof TASK_UNIT_SCHEMA>;
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const TASK: z.ZodObject<{
|
|
12
12
|
id: z.ZodGUID;
|
|
13
|
-
publicId: z.
|
|
13
|
+
publicId: z.ZodString;
|
|
14
14
|
status: z.ZodEnum<{
|
|
15
15
|
created: "created";
|
|
16
16
|
in_progress: "in_progress";
|
|
@@ -32,7 +32,7 @@ export declare const TASK: z.ZodObject<{
|
|
|
32
32
|
export declare const TASK_CREATED_EVENT_PAYLOAD_SCHEMA: z.ZodObject<{
|
|
33
33
|
task: z.ZodObject<{
|
|
34
34
|
id: z.ZodGUID;
|
|
35
|
-
publicId: z.
|
|
35
|
+
publicId: z.ZodString;
|
|
36
36
|
status: z.ZodEnum<{
|
|
37
37
|
created: "created";
|
|
38
38
|
in_progress: "in_progress";
|
|
@@ -88,7 +88,7 @@ export declare const UPDATED_TASK_ASSIGNMENT_SCHEMA: z.ZodObject<{
|
|
|
88
88
|
}, z.core.$strip>;
|
|
89
89
|
}, z.core.$strip>;
|
|
90
90
|
export declare const UPDATED_TASK: z.ZodObject<{
|
|
91
|
-
publicId: z.
|
|
91
|
+
publicId: z.ZodString;
|
|
92
92
|
groupId: z.ZodString;
|
|
93
93
|
id: z.ZodGUID;
|
|
94
94
|
title: z.ZodString;
|
|
@@ -107,7 +107,7 @@ export declare const UPDATED_TASK: z.ZodObject<{
|
|
|
107
107
|
}, z.core.$strip>;
|
|
108
108
|
export declare const TASK_UPDATED_EVENT_PAYLOAD_SCHEMA: z.ZodObject<{
|
|
109
109
|
task: z.ZodObject<{
|
|
110
|
-
publicId: z.
|
|
110
|
+
publicId: z.ZodString;
|
|
111
111
|
groupId: z.ZodString;
|
|
112
112
|
id: z.ZodGUID;
|
|
113
113
|
title: z.ZodString;
|
|
@@ -132,7 +132,7 @@ export declare const TASK_ABOUT_TO_EXPIRE_ASSIGNMENT_SCHEMA: z.ZodObject<{
|
|
|
132
132
|
segmentsToBeCompleted: z.ZodNumber;
|
|
133
133
|
}, z.core.$strip>;
|
|
134
134
|
export declare const TASK_ABOUT_TO_EXPIRE: z.ZodObject<{
|
|
135
|
-
publicId: z.
|
|
135
|
+
publicId: z.ZodString;
|
|
136
136
|
groupId: z.ZodString;
|
|
137
137
|
id: z.ZodGUID;
|
|
138
138
|
title: z.ZodString;
|
|
@@ -147,7 +147,7 @@ export declare const TASK_ABOUT_TO_EXPIRE: z.ZodObject<{
|
|
|
147
147
|
}, z.core.$strip>;
|
|
148
148
|
export declare const TASK_ABOUT_TO_EXPIRE_EVENT_PAYLOAD_SCHEMA: z.ZodObject<{
|
|
149
149
|
task: z.ZodObject<{
|
|
150
|
-
publicId: z.
|
|
150
|
+
publicId: z.ZodString;
|
|
151
151
|
groupId: z.ZodString;
|
|
152
152
|
id: z.ZodGUID;
|
|
153
153
|
title: z.ZodString;
|
|
@@ -210,7 +210,7 @@ export declare const TaskEvents: {
|
|
|
210
210
|
payload: z.ZodObject<{
|
|
211
211
|
task: z.ZodObject<{
|
|
212
212
|
id: z.ZodGUID;
|
|
213
|
-
publicId: z.
|
|
213
|
+
publicId: z.ZodString;
|
|
214
214
|
status: z.ZodEnum<{
|
|
215
215
|
created: "created";
|
|
216
216
|
in_progress: "in_progress";
|
|
@@ -241,7 +241,7 @@ export declare const TaskEvents: {
|
|
|
241
241
|
payload: z.ZodObject<{
|
|
242
242
|
task: z.ZodObject<{
|
|
243
243
|
id: z.ZodGUID;
|
|
244
|
-
publicId: z.
|
|
244
|
+
publicId: z.ZodString;
|
|
245
245
|
status: z.ZodEnum<{
|
|
246
246
|
created: "created";
|
|
247
247
|
in_progress: "in_progress";
|
|
@@ -280,7 +280,7 @@ export declare const TaskEvents: {
|
|
|
280
280
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
281
281
|
payload: z.ZodObject<{
|
|
282
282
|
task: z.ZodObject<{
|
|
283
|
-
publicId: z.
|
|
283
|
+
publicId: z.ZodString;
|
|
284
284
|
groupId: z.ZodString;
|
|
285
285
|
id: z.ZodGUID;
|
|
286
286
|
title: z.ZodString;
|
|
@@ -308,7 +308,7 @@ export declare const TaskEvents: {
|
|
|
308
308
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
309
309
|
payload: z.ZodObject<{
|
|
310
310
|
task: z.ZodObject<{
|
|
311
|
-
publicId: z.
|
|
311
|
+
publicId: z.ZodString;
|
|
312
312
|
groupId: z.ZodString;
|
|
313
313
|
id: z.ZodGUID;
|
|
314
314
|
title: z.ZodString;
|
|
@@ -435,7 +435,7 @@ export declare const TaskEvents: {
|
|
|
435
435
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
436
436
|
payload: z.ZodObject<{
|
|
437
437
|
task: z.ZodObject<{
|
|
438
|
-
publicId: z.
|
|
438
|
+
publicId: z.ZodString;
|
|
439
439
|
groupId: z.ZodString;
|
|
440
440
|
id: z.ZodGUID;
|
|
441
441
|
title: z.ZodString;
|
|
@@ -459,7 +459,7 @@ export declare const TaskEvents: {
|
|
|
459
459
|
deduplicationOptions: z.ZodOptional<z.ZodNullable<typeof import("@message-queue-toolkit/schemas").MESSAGE_DEDUPLICATION_OPTIONS_SCHEMA>>;
|
|
460
460
|
payload: z.ZodObject<{
|
|
461
461
|
task: z.ZodObject<{
|
|
462
|
-
publicId: z.
|
|
462
|
+
publicId: z.ZodString;
|
|
463
463
|
groupId: z.ZodString;
|
|
464
464
|
id: z.ZodGUID;
|
|
465
465
|
title: z.ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokalise/maestro-nextgen-tenant-lib",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.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",
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"@lokalise/id-utils": "^3.0.1",
|
|
56
56
|
"@lokalise/maestro-common": "*",
|
|
57
57
|
"@lokalise/tsconfig": "~3.1.0",
|
|
58
|
-
"@types/node": "^25.5.
|
|
58
|
+
"@types/node": "^25.5.2",
|
|
59
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
|
-
"typescript": "^
|
|
63
|
+
"typescript": "^6.0.2",
|
|
64
64
|
"vitest": "^4.1.2",
|
|
65
65
|
"zod": "^4.3.6"
|
|
66
66
|
}
|