@lokalise/harmony 1.24.2 → 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 +779 -763
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedProjectContributor.d.ts +2 -2
- package/dist/types/src/features/publicApi/contributors.d.ts +205 -21
- package/dist/types/src/features/publicApi/hooks/useListContributorsQuery.d.ts +42 -0
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +6 -6
- package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +149 -25
- package/package.json +1 -1
@@ -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;
|
@@ -163,6 +163,130 @@ declare const CONTRIBUTOR_TARGET_PATH_PARAMS_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
163
163
|
id: number;
|
164
164
|
}>]>;
|
165
165
|
export type ContributorTargetPathParams = z.infer<typeof CONTRIBUTOR_TARGET_PATH_PARAMS_SCHEMA>;
|
166
|
+
export declare const LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA: 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<{
|
174
|
+
id: z.ZodString;
|
175
|
+
}, "strip", z.ZodTypeAny, {
|
176
|
+
id: string;
|
177
|
+
}, {
|
178
|
+
id: string;
|
179
|
+
}>]>;
|
180
|
+
}, "strip", z.ZodTypeAny, {
|
181
|
+
project: {
|
182
|
+
id: string;
|
183
|
+
} | {
|
184
|
+
uuid: string;
|
185
|
+
};
|
186
|
+
}, {
|
187
|
+
project: {
|
188
|
+
id: string;
|
189
|
+
} | {
|
190
|
+
uuid: string;
|
191
|
+
};
|
192
|
+
}>;
|
193
|
+
export type ListContributorsPathParams = z.infer<typeof LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA>;
|
194
|
+
export declare const LIST_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
|
195
|
+
project_id: z.ZodString;
|
196
|
+
contributors: z.ZodArray<z.ZodObject<{
|
197
|
+
user_id: z.ZodNumber;
|
198
|
+
email: z.ZodString;
|
199
|
+
fullname: z.ZodString;
|
200
|
+
created_at: z.ZodString;
|
201
|
+
created_at_timestamp: z.ZodNumber;
|
202
|
+
admin_rights: z.ZodArray<z.ZodString, "many">;
|
203
|
+
languages: z.ZodArray<z.ZodObject<{
|
204
|
+
lang_id: z.ZodNumber;
|
205
|
+
lang_iso: z.ZodString;
|
206
|
+
lang_name: z.ZodString;
|
207
|
+
is_writable: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodBoolean]>;
|
208
|
+
}, "strip", z.ZodTypeAny, {
|
209
|
+
lang_id: number;
|
210
|
+
lang_iso: string;
|
211
|
+
lang_name: string;
|
212
|
+
is_writable: boolean | 0 | 1;
|
213
|
+
}, {
|
214
|
+
lang_id: number;
|
215
|
+
lang_iso: string;
|
216
|
+
lang_name: string;
|
217
|
+
is_writable: boolean | 0 | 1;
|
218
|
+
}>, "many">;
|
219
|
+
is_admin: z.ZodBoolean;
|
220
|
+
is_reviewer: z.ZodBoolean;
|
221
|
+
}, "strip", z.ZodTypeAny, {
|
222
|
+
email: string;
|
223
|
+
user_id: number;
|
224
|
+
fullname: string;
|
225
|
+
created_at: string;
|
226
|
+
created_at_timestamp: number;
|
227
|
+
admin_rights: string[];
|
228
|
+
languages: {
|
229
|
+
lang_id: number;
|
230
|
+
lang_iso: string;
|
231
|
+
lang_name: string;
|
232
|
+
is_writable: boolean | 0 | 1;
|
233
|
+
}[];
|
234
|
+
is_admin: boolean;
|
235
|
+
is_reviewer: boolean;
|
236
|
+
}, {
|
237
|
+
email: string;
|
238
|
+
user_id: number;
|
239
|
+
fullname: string;
|
240
|
+
created_at: string;
|
241
|
+
created_at_timestamp: number;
|
242
|
+
admin_rights: string[];
|
243
|
+
languages: {
|
244
|
+
lang_id: number;
|
245
|
+
lang_iso: string;
|
246
|
+
lang_name: string;
|
247
|
+
is_writable: boolean | 0 | 1;
|
248
|
+
}[];
|
249
|
+
is_admin: boolean;
|
250
|
+
is_reviewer: boolean;
|
251
|
+
}>, "many">;
|
252
|
+
}, "strip", z.ZodTypeAny, {
|
253
|
+
contributors: {
|
254
|
+
email: string;
|
255
|
+
user_id: number;
|
256
|
+
fullname: string;
|
257
|
+
created_at: string;
|
258
|
+
created_at_timestamp: number;
|
259
|
+
admin_rights: string[];
|
260
|
+
languages: {
|
261
|
+
lang_id: number;
|
262
|
+
lang_iso: string;
|
263
|
+
lang_name: string;
|
264
|
+
is_writable: boolean | 0 | 1;
|
265
|
+
}[];
|
266
|
+
is_admin: boolean;
|
267
|
+
is_reviewer: boolean;
|
268
|
+
}[];
|
269
|
+
project_id: string;
|
270
|
+
}, {
|
271
|
+
contributors: {
|
272
|
+
email: string;
|
273
|
+
user_id: number;
|
274
|
+
fullname: string;
|
275
|
+
created_at: string;
|
276
|
+
created_at_timestamp: number;
|
277
|
+
admin_rights: string[];
|
278
|
+
languages: {
|
279
|
+
lang_id: number;
|
280
|
+
lang_iso: string;
|
281
|
+
lang_name: string;
|
282
|
+
is_writable: boolean | 0 | 1;
|
283
|
+
}[];
|
284
|
+
is_admin: boolean;
|
285
|
+
is_reviewer: boolean;
|
286
|
+
}[];
|
287
|
+
project_id: string;
|
288
|
+
}>;
|
289
|
+
export type ListContributorsResponse = z.infer<typeof LIST_CONTRIBUTORS_RESPONSE_SCHEMA>;
|
166
290
|
export declare const RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
167
291
|
project: z.ZodUnion<[z.ZodObject<{
|
168
292
|
uuid: z.ZodString;
|
@@ -198,29 +322,29 @@ export declare const RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
|
198
322
|
}>]>;
|
199
323
|
}, "strip", z.ZodTypeAny, {
|
200
324
|
project: {
|
201
|
-
uuid: string;
|
202
|
-
} | {
|
203
325
|
id: string;
|
326
|
+
} | {
|
327
|
+
uuid: string;
|
204
328
|
};
|
205
329
|
contributor: {
|
206
|
-
|
330
|
+
id: number;
|
207
331
|
} | {
|
208
332
|
uuid: string;
|
209
333
|
} | {
|
210
|
-
|
334
|
+
authenticatedUser: true;
|
211
335
|
};
|
212
336
|
}, {
|
213
337
|
project: {
|
214
|
-
uuid: string;
|
215
|
-
} | {
|
216
338
|
id: string;
|
339
|
+
} | {
|
340
|
+
uuid: string;
|
217
341
|
};
|
218
342
|
contributor: {
|
219
|
-
|
343
|
+
id: number;
|
220
344
|
} | {
|
221
345
|
uuid: string;
|
222
346
|
} | {
|
223
|
-
|
347
|
+
authenticatedUser: true;
|
224
348
|
};
|
225
349
|
}>;
|
226
350
|
export type RetrieveContributorPathParams = z.infer<typeof RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA>;
|
@@ -237,17 +361,17 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
|
|
237
361
|
lang_id: z.ZodNumber;
|
238
362
|
lang_iso: z.ZodString;
|
239
363
|
lang_name: z.ZodString;
|
240
|
-
is_writable: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1
|
364
|
+
is_writable: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodBoolean]>;
|
241
365
|
}, "strip", z.ZodTypeAny, {
|
242
366
|
lang_id: number;
|
243
367
|
lang_iso: string;
|
244
368
|
lang_name: string;
|
245
|
-
is_writable: 0 | 1;
|
369
|
+
is_writable: boolean | 0 | 1;
|
246
370
|
}, {
|
247
371
|
lang_id: number;
|
248
372
|
lang_iso: string;
|
249
373
|
lang_name: string;
|
250
|
-
is_writable: 0 | 1;
|
374
|
+
is_writable: boolean | 0 | 1;
|
251
375
|
}>, "many">;
|
252
376
|
is_admin: z.ZodBoolean;
|
253
377
|
is_reviewer: z.ZodBoolean;
|
@@ -262,7 +386,7 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
|
|
262
386
|
lang_id: number;
|
263
387
|
lang_iso: string;
|
264
388
|
lang_name: string;
|
265
|
-
is_writable: 0 | 1;
|
389
|
+
is_writable: boolean | 0 | 1;
|
266
390
|
}[];
|
267
391
|
is_admin: boolean;
|
268
392
|
is_reviewer: boolean;
|
@@ -277,12 +401,13 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
|
|
277
401
|
lang_id: number;
|
278
402
|
lang_iso: string;
|
279
403
|
lang_name: string;
|
280
|
-
is_writable: 0 | 1;
|
404
|
+
is_writable: boolean | 0 | 1;
|
281
405
|
}[];
|
282
406
|
is_admin: boolean;
|
283
407
|
is_reviewer: boolean;
|
284
408
|
}>;
|
285
409
|
}, "strip", z.ZodTypeAny, {
|
410
|
+
project_id: string;
|
286
411
|
contributor: {
|
287
412
|
email: string;
|
288
413
|
user_id: number;
|
@@ -294,13 +419,13 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
|
|
294
419
|
lang_id: number;
|
295
420
|
lang_iso: string;
|
296
421
|
lang_name: string;
|
297
|
-
is_writable: 0 | 1;
|
422
|
+
is_writable: boolean | 0 | 1;
|
298
423
|
}[];
|
299
424
|
is_admin: boolean;
|
300
425
|
is_reviewer: boolean;
|
301
426
|
};
|
302
|
-
project_id: string;
|
303
427
|
}, {
|
428
|
+
project_id: string;
|
304
429
|
contributor: {
|
305
430
|
email: string;
|
306
431
|
user_id: number;
|
@@ -312,12 +437,11 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
|
|
312
437
|
lang_id: number;
|
313
438
|
lang_iso: string;
|
314
439
|
lang_name: string;
|
315
|
-
is_writable: 0 | 1;
|
440
|
+
is_writable: boolean | 0 | 1;
|
316
441
|
}[];
|
317
442
|
is_admin: boolean;
|
318
443
|
is_reviewer: boolean;
|
319
444
|
};
|
320
|
-
project_id: string;
|
321
445
|
}>;
|
322
446
|
export type RetrieveContributorResponse = z.infer<typeof RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA>;
|
323
447
|
export {};
|