@lokalise/harmony 1.25.0 → 1.25.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.
- package/dist/harmony.cjs +1 -1
- package/dist/harmony.mjs +369 -365
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedProjectContributor.d.ts +1 -1
- package/dist/types/src/features/publicApi/contributors.d.ts +28 -16
- package/dist/types/src/features/publicApi/hooks/useListContributorsQuery.d.ts +3 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +34 -24
- package/package.json +1 -1
@@ -4,6 +4,8 @@
|
|
4
4
|
export declare const listContributors: import('@lokalise/api-contracts').GetRouteDefinition<{
|
5
5
|
project: {
|
6
6
|
id: string;
|
7
|
+
} | {
|
8
|
+
uuid: string;
|
7
9
|
};
|
8
10
|
}, import('zod').ZodObject<{
|
9
11
|
project_id: import('zod').ZodString;
|
@@ -18,17 +20,17 @@ export declare const listContributors: import('@lokalise/api-contracts').GetRout
|
|
18
20
|
lang_id: import('zod').ZodNumber;
|
19
21
|
lang_iso: import('zod').ZodString;
|
20
22
|
lang_name: import('zod').ZodString;
|
21
|
-
is_writable: import('zod').ZodUnion<[import('zod').ZodLiteral<0>, import('zod').ZodLiteral<1
|
23
|
+
is_writable: import('zod').ZodUnion<[import('zod').ZodLiteral<0>, import('zod').ZodLiteral<1>, import('zod').ZodBoolean]>;
|
22
24
|
}, "strip", import('zod').ZodTypeAny, {
|
23
25
|
lang_id: number;
|
24
26
|
lang_iso: string;
|
25
27
|
lang_name: string;
|
26
|
-
is_writable: 0 | 1;
|
28
|
+
is_writable: boolean | 0 | 1;
|
27
29
|
}, {
|
28
30
|
lang_id: number;
|
29
31
|
lang_iso: string;
|
30
32
|
lang_name: string;
|
31
|
-
is_writable: 0 | 1;
|
33
|
+
is_writable: boolean | 0 | 1;
|
32
34
|
}>, "many">;
|
33
35
|
is_admin: import('zod').ZodBoolean;
|
34
36
|
is_reviewer: import('zod').ZodBoolean;
|
@@ -43,7 +45,7 @@ export declare const listContributors: import('@lokalise/api-contracts').GetRout
|
|
43
45
|
lang_id: number;
|
44
46
|
lang_iso: string;
|
45
47
|
lang_name: string;
|
46
|
-
is_writable: 0 | 1;
|
48
|
+
is_writable: boolean | 0 | 1;
|
47
49
|
}[];
|
48
50
|
is_admin: boolean;
|
49
51
|
is_reviewer: boolean;
|
@@ -58,7 +60,7 @@ export declare const listContributors: import('@lokalise/api-contracts').GetRout
|
|
58
60
|
lang_id: number;
|
59
61
|
lang_iso: string;
|
60
62
|
lang_name: string;
|
61
|
-
is_writable: 0 | 1;
|
63
|
+
is_writable: boolean | 0 | 1;
|
62
64
|
}[];
|
63
65
|
is_admin: boolean;
|
64
66
|
is_reviewer: boolean;
|
@@ -75,7 +77,7 @@ export declare const listContributors: import('@lokalise/api-contracts').GetRout
|
|
75
77
|
lang_id: number;
|
76
78
|
lang_iso: string;
|
77
79
|
lang_name: string;
|
78
|
-
is_writable: 0 | 1;
|
80
|
+
is_writable: boolean | 0 | 1;
|
79
81
|
}[];
|
80
82
|
is_admin: boolean;
|
81
83
|
is_reviewer: boolean;
|
@@ -93,27 +95,37 @@ export declare const listContributors: import('@lokalise/api-contracts').GetRout
|
|
93
95
|
lang_id: number;
|
94
96
|
lang_iso: string;
|
95
97
|
lang_name: string;
|
96
|
-
is_writable: 0 | 1;
|
98
|
+
is_writable: boolean | 0 | 1;
|
97
99
|
}[];
|
98
100
|
is_admin: boolean;
|
99
101
|
is_reviewer: boolean;
|
100
102
|
}[];
|
101
103
|
project_id: string;
|
102
104
|
}>, import('zod').ZodObject<{
|
103
|
-
project: import('zod').ZodObject<{
|
105
|
+
project: import('zod').ZodUnion<[import('zod').ZodObject<{
|
106
|
+
uuid: import('zod').ZodString;
|
107
|
+
}, "strip", import('zod').ZodTypeAny, {
|
108
|
+
uuid: string;
|
109
|
+
}, {
|
110
|
+
uuid: string;
|
111
|
+
}>, import('zod').ZodObject<{
|
104
112
|
id: import('zod').ZodString;
|
105
113
|
}, "strip", import('zod').ZodTypeAny, {
|
106
114
|
id: string;
|
107
115
|
}, {
|
108
116
|
id: string;
|
109
|
-
}>;
|
117
|
+
}>]>;
|
110
118
|
}, "strip", import('zod').ZodTypeAny, {
|
111
119
|
project: {
|
112
120
|
id: string;
|
121
|
+
} | {
|
122
|
+
uuid: string;
|
113
123
|
};
|
114
124
|
}, {
|
115
125
|
project: {
|
116
126
|
id: string;
|
127
|
+
} | {
|
128
|
+
uuid: string;
|
117
129
|
};
|
118
130
|
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
119
131
|
authorization: import('zod').ZodString;
|
@@ -199,17 +211,17 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
199
211
|
lang_id: import('zod').ZodNumber;
|
200
212
|
lang_iso: import('zod').ZodString;
|
201
213
|
lang_name: import('zod').ZodString;
|
202
|
-
is_writable: import('zod').ZodUnion<[import('zod').ZodLiteral<0>, import('zod').ZodLiteral<1
|
214
|
+
is_writable: import('zod').ZodUnion<[import('zod').ZodLiteral<0>, import('zod').ZodLiteral<1>, import('zod').ZodBoolean]>;
|
203
215
|
}, "strip", import('zod').ZodTypeAny, {
|
204
216
|
lang_id: number;
|
205
217
|
lang_iso: string;
|
206
218
|
lang_name: string;
|
207
|
-
is_writable: 0 | 1;
|
219
|
+
is_writable: boolean | 0 | 1;
|
208
220
|
}, {
|
209
221
|
lang_id: number;
|
210
222
|
lang_iso: string;
|
211
223
|
lang_name: string;
|
212
|
-
is_writable: 0 | 1;
|
224
|
+
is_writable: boolean | 0 | 1;
|
213
225
|
}>, "many">;
|
214
226
|
is_admin: import('zod').ZodBoolean;
|
215
227
|
is_reviewer: import('zod').ZodBoolean;
|
@@ -224,7 +236,7 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
224
236
|
lang_id: number;
|
225
237
|
lang_iso: string;
|
226
238
|
lang_name: string;
|
227
|
-
is_writable: 0 | 1;
|
239
|
+
is_writable: boolean | 0 | 1;
|
228
240
|
}[];
|
229
241
|
is_admin: boolean;
|
230
242
|
is_reviewer: boolean;
|
@@ -239,7 +251,7 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
239
251
|
lang_id: number;
|
240
252
|
lang_iso: string;
|
241
253
|
lang_name: string;
|
242
|
-
is_writable: 0 | 1;
|
254
|
+
is_writable: boolean | 0 | 1;
|
243
255
|
}[];
|
244
256
|
is_admin: boolean;
|
245
257
|
is_reviewer: boolean;
|
@@ -257,7 +269,7 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
257
269
|
lang_id: number;
|
258
270
|
lang_iso: string;
|
259
271
|
lang_name: string;
|
260
|
-
is_writable: 0 | 1;
|
272
|
+
is_writable: boolean | 0 | 1;
|
261
273
|
}[];
|
262
274
|
is_admin: boolean;
|
263
275
|
is_reviewer: boolean;
|
@@ -275,7 +287,7 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
275
287
|
lang_id: number;
|
276
288
|
lang_iso: string;
|
277
289
|
lang_name: string;
|
278
|
-
is_writable: 0 | 1;
|
290
|
+
is_writable: boolean | 0 | 1;
|
279
291
|
}[];
|
280
292
|
is_admin: boolean;
|
281
293
|
is_reviewer: boolean;
|
@@ -9,6 +9,8 @@ export declare const listContributorsKeys: {
|
|
9
9
|
projectUserKey: (params: ListContributorsPathParams) => readonly ["ListContributors", {
|
10
10
|
project: {
|
11
11
|
id: string;
|
12
|
+
} | {
|
13
|
+
uuid: string;
|
12
14
|
};
|
13
15
|
}];
|
14
16
|
};
|
@@ -31,7 +33,7 @@ export declare const useListContributorsQuery: <T>(wretchClient: Wretch<T>, head
|
|
31
33
|
lang_id: number;
|
32
34
|
lang_iso: string;
|
33
35
|
lang_name: string;
|
34
|
-
is_writable: 0 | 1;
|
36
|
+
is_writable: boolean | 0 | 1;
|
35
37
|
}[];
|
36
38
|
is_admin: boolean;
|
37
39
|
is_reviewer: boolean;
|
@@ -59,17 +59,17 @@ export declare const CONTRIBUTOR_LANGUAGE_SCHEMA: z.ZodObject<{
|
|
59
59
|
lang_id: z.ZodNumber;
|
60
60
|
lang_iso: z.ZodString;
|
61
61
|
lang_name: z.ZodString;
|
62
|
-
is_writable: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1
|
62
|
+
is_writable: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodBoolean]>;
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
64
64
|
lang_id: number;
|
65
65
|
lang_iso: string;
|
66
66
|
lang_name: string;
|
67
|
-
is_writable: 0 | 1;
|
67
|
+
is_writable: boolean | 0 | 1;
|
68
68
|
}, {
|
69
69
|
lang_id: number;
|
70
70
|
lang_iso: string;
|
71
71
|
lang_name: string;
|
72
|
-
is_writable: 0 | 1;
|
72
|
+
is_writable: boolean | 0 | 1;
|
73
73
|
}>;
|
74
74
|
export type ContributorLanguage = z.infer<typeof CONTRIBUTOR_LANGUAGE_SCHEMA>;
|
75
75
|
export declare const CONTRIBUTOR_SCHEMA: z.ZodObject<{
|
@@ -83,17 +83,17 @@ export declare const CONTRIBUTOR_SCHEMA: z.ZodObject<{
|
|
83
83
|
lang_id: z.ZodNumber;
|
84
84
|
lang_iso: z.ZodString;
|
85
85
|
lang_name: z.ZodString;
|
86
|
-
is_writable: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1
|
86
|
+
is_writable: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodBoolean]>;
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
88
88
|
lang_id: number;
|
89
89
|
lang_iso: string;
|
90
90
|
lang_name: string;
|
91
|
-
is_writable: 0 | 1;
|
91
|
+
is_writable: boolean | 0 | 1;
|
92
92
|
}, {
|
93
93
|
lang_id: number;
|
94
94
|
lang_iso: string;
|
95
95
|
lang_name: string;
|
96
|
-
is_writable: 0 | 1;
|
96
|
+
is_writable: boolean | 0 | 1;
|
97
97
|
}>, "many">;
|
98
98
|
is_admin: z.ZodBoolean;
|
99
99
|
is_reviewer: z.ZodBoolean;
|
@@ -108,7 +108,7 @@ export declare const CONTRIBUTOR_SCHEMA: z.ZodObject<{
|
|
108
108
|
lang_id: number;
|
109
109
|
lang_iso: string;
|
110
110
|
lang_name: string;
|
111
|
-
is_writable: 0 | 1;
|
111
|
+
is_writable: boolean | 0 | 1;
|
112
112
|
}[];
|
113
113
|
is_admin: boolean;
|
114
114
|
is_reviewer: boolean;
|
@@ -123,7 +123,7 @@ export declare const CONTRIBUTOR_SCHEMA: z.ZodObject<{
|
|
123
123
|
lang_id: number;
|
124
124
|
lang_iso: string;
|
125
125
|
lang_name: string;
|
126
|
-
is_writable: 0 | 1;
|
126
|
+
is_writable: boolean | 0 | 1;
|
127
127
|
}[];
|
128
128
|
is_admin: boolean;
|
129
129
|
is_reviewer: boolean;
|
@@ -164,20 +164,30 @@ declare const CONTRIBUTOR_TARGET_PATH_PARAMS_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
164
164
|
}>]>;
|
165
165
|
export type ContributorTargetPathParams = z.infer<typeof CONTRIBUTOR_TARGET_PATH_PARAMS_SCHEMA>;
|
166
166
|
export declare const LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
167
|
-
project: z.ZodObject<{
|
167
|
+
project: z.ZodUnion<[z.ZodObject<{
|
168
|
+
uuid: z.ZodString;
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
170
|
+
uuid: string;
|
171
|
+
}, {
|
172
|
+
uuid: string;
|
173
|
+
}>, z.ZodObject<{
|
168
174
|
id: z.ZodString;
|
169
175
|
}, "strip", z.ZodTypeAny, {
|
170
176
|
id: string;
|
171
177
|
}, {
|
172
178
|
id: string;
|
173
|
-
}>;
|
179
|
+
}>]>;
|
174
180
|
}, "strip", z.ZodTypeAny, {
|
175
181
|
project: {
|
176
182
|
id: string;
|
183
|
+
} | {
|
184
|
+
uuid: string;
|
177
185
|
};
|
178
186
|
}, {
|
179
187
|
project: {
|
180
188
|
id: string;
|
189
|
+
} | {
|
190
|
+
uuid: string;
|
181
191
|
};
|
182
192
|
}>;
|
183
193
|
export type ListContributorsPathParams = z.infer<typeof LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA>;
|
@@ -194,17 +204,17 @@ export declare const LIST_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
|
|
194
204
|
lang_id: z.ZodNumber;
|
195
205
|
lang_iso: z.ZodString;
|
196
206
|
lang_name: z.ZodString;
|
197
|
-
is_writable: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1
|
207
|
+
is_writable: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodBoolean]>;
|
198
208
|
}, "strip", z.ZodTypeAny, {
|
199
209
|
lang_id: number;
|
200
210
|
lang_iso: string;
|
201
211
|
lang_name: string;
|
202
|
-
is_writable: 0 | 1;
|
212
|
+
is_writable: boolean | 0 | 1;
|
203
213
|
}, {
|
204
214
|
lang_id: number;
|
205
215
|
lang_iso: string;
|
206
216
|
lang_name: string;
|
207
|
-
is_writable: 0 | 1;
|
217
|
+
is_writable: boolean | 0 | 1;
|
208
218
|
}>, "many">;
|
209
219
|
is_admin: z.ZodBoolean;
|
210
220
|
is_reviewer: z.ZodBoolean;
|
@@ -219,7 +229,7 @@ export declare const LIST_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
|
|
219
229
|
lang_id: number;
|
220
230
|
lang_iso: string;
|
221
231
|
lang_name: string;
|
222
|
-
is_writable: 0 | 1;
|
232
|
+
is_writable: boolean | 0 | 1;
|
223
233
|
}[];
|
224
234
|
is_admin: boolean;
|
225
235
|
is_reviewer: boolean;
|
@@ -234,7 +244,7 @@ export declare const LIST_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
|
|
234
244
|
lang_id: number;
|
235
245
|
lang_iso: string;
|
236
246
|
lang_name: string;
|
237
|
-
is_writable: 0 | 1;
|
247
|
+
is_writable: boolean | 0 | 1;
|
238
248
|
}[];
|
239
249
|
is_admin: boolean;
|
240
250
|
is_reviewer: boolean;
|
@@ -251,7 +261,7 @@ export declare const LIST_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
|
|
251
261
|
lang_id: number;
|
252
262
|
lang_iso: string;
|
253
263
|
lang_name: string;
|
254
|
-
is_writable: 0 | 1;
|
264
|
+
is_writable: boolean | 0 | 1;
|
255
265
|
}[];
|
256
266
|
is_admin: boolean;
|
257
267
|
is_reviewer: boolean;
|
@@ -269,7 +279,7 @@ export declare const LIST_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
|
|
269
279
|
lang_id: number;
|
270
280
|
lang_iso: string;
|
271
281
|
lang_name: string;
|
272
|
-
is_writable: 0 | 1;
|
282
|
+
is_writable: boolean | 0 | 1;
|
273
283
|
}[];
|
274
284
|
is_admin: boolean;
|
275
285
|
is_reviewer: boolean;
|
@@ -351,17 +361,17 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
|
|
351
361
|
lang_id: z.ZodNumber;
|
352
362
|
lang_iso: z.ZodString;
|
353
363
|
lang_name: z.ZodString;
|
354
|
-
is_writable: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1
|
364
|
+
is_writable: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodBoolean]>;
|
355
365
|
}, "strip", z.ZodTypeAny, {
|
356
366
|
lang_id: number;
|
357
367
|
lang_iso: string;
|
358
368
|
lang_name: string;
|
359
|
-
is_writable: 0 | 1;
|
369
|
+
is_writable: boolean | 0 | 1;
|
360
370
|
}, {
|
361
371
|
lang_id: number;
|
362
372
|
lang_iso: string;
|
363
373
|
lang_name: string;
|
364
|
-
is_writable: 0 | 1;
|
374
|
+
is_writable: boolean | 0 | 1;
|
365
375
|
}>, "many">;
|
366
376
|
is_admin: z.ZodBoolean;
|
367
377
|
is_reviewer: z.ZodBoolean;
|
@@ -376,7 +386,7 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
|
|
376
386
|
lang_id: number;
|
377
387
|
lang_iso: string;
|
378
388
|
lang_name: string;
|
379
|
-
is_writable: 0 | 1;
|
389
|
+
is_writable: boolean | 0 | 1;
|
380
390
|
}[];
|
381
391
|
is_admin: boolean;
|
382
392
|
is_reviewer: boolean;
|
@@ -391,7 +401,7 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
|
|
391
401
|
lang_id: number;
|
392
402
|
lang_iso: string;
|
393
403
|
lang_name: string;
|
394
|
-
is_writable: 0 | 1;
|
404
|
+
is_writable: boolean | 0 | 1;
|
395
405
|
}[];
|
396
406
|
is_admin: boolean;
|
397
407
|
is_reviewer: boolean;
|
@@ -409,7 +419,7 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
|
|
409
419
|
lang_id: number;
|
410
420
|
lang_iso: string;
|
411
421
|
lang_name: string;
|
412
|
-
is_writable: 0 | 1;
|
422
|
+
is_writable: boolean | 0 | 1;
|
413
423
|
}[];
|
414
424
|
is_admin: boolean;
|
415
425
|
is_reviewer: boolean;
|
@@ -427,7 +437,7 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
|
|
427
437
|
lang_id: number;
|
428
438
|
lang_iso: string;
|
429
439
|
lang_name: string;
|
430
|
-
is_writable: 0 | 1;
|
440
|
+
is_writable: boolean | 0 | 1;
|
431
441
|
}[];
|
432
442
|
is_admin: boolean;
|
433
443
|
is_reviewer: boolean;
|