@lokalise/harmony 1.6.0-exp-jwtutils.17 → 1.6.0-exp-jwtutils.19
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 +723 -583
- package/dist/types/src/features/publicApi/hooks/useCreateProjectMutation.d.ts +6 -6
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveProjectQuery.d.ts +5 -5
- package/dist/types/src/features/publicApi/index.d.ts +7 -0
- package/dist/types/src/features/publicApi/projects.d.ts +30 -30
- package/dist/types/src/features/publicApi/types/project.d.ts +10 -10
- package/package.json +1 -1
@@ -14,7 +14,12 @@ export declare function useCreateProjectMutation<T>(api: Wretch<T>, overrides?:
|
|
14
14
|
}[];
|
15
15
|
project_id: string;
|
16
16
|
description: string;
|
17
|
+
project_type: "localization_files" | "paged_documents" | "marketing";
|
18
|
+
created_by: number;
|
19
|
+
created_by_email: string;
|
17
20
|
team_id: number;
|
21
|
+
base_language_id: number;
|
22
|
+
base_language_iso: string;
|
18
23
|
settings: {
|
19
24
|
per_platform_key_names: boolean;
|
20
25
|
reviewing: boolean;
|
@@ -52,19 +57,14 @@ export declare function useCreateProjectMutation<T>(api: Wretch<T>, overrides?:
|
|
52
57
|
unbalanced_brackets: number;
|
53
58
|
};
|
54
59
|
};
|
55
|
-
project_type: "localization_files" | "paged_documents" | "marketing";
|
56
|
-
created_by: number;
|
57
|
-
created_by_email: string;
|
58
|
-
base_language_id: number;
|
59
|
-
base_language_iso: string;
|
60
60
|
}, undefined, {
|
61
61
|
name: string;
|
62
62
|
languages: {
|
63
63
|
lang_iso: string;
|
64
64
|
custom_iso?: string | undefined;
|
65
65
|
}[];
|
66
|
-
team_id: number;
|
67
66
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
67
|
+
team_id: string;
|
68
68
|
base_lang_iso: string;
|
69
69
|
is_segmentation_enabled: boolean;
|
70
70
|
}, undefined>;
|
@@ -24,10 +24,10 @@ export declare function useListProjectsQuery<T>(api: Wretch<T>, overrides: ApiQu
|
|
24
24
|
}[];
|
25
25
|
project_id: string;
|
26
26
|
description: string;
|
27
|
-
team_id: number;
|
28
27
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
29
28
|
created_by: number;
|
30
29
|
created_by_email: string;
|
30
|
+
team_id: number;
|
31
31
|
base_language_id: number;
|
32
32
|
base_language_iso: string;
|
33
33
|
} | {
|
@@ -16,7 +16,12 @@ export declare function useRetrieveProjectQuery<T>(api: Wretch<T>, overrides: Ap
|
|
16
16
|
}[];
|
17
17
|
project_id: string;
|
18
18
|
description: string;
|
19
|
+
project_type: "localization_files" | "paged_documents" | "marketing";
|
20
|
+
created_by: number;
|
21
|
+
created_by_email: string;
|
19
22
|
team_id: number;
|
23
|
+
base_language_id: number;
|
24
|
+
base_language_iso: string;
|
20
25
|
settings: {
|
21
26
|
per_platform_key_names: boolean;
|
22
27
|
reviewing: boolean;
|
@@ -54,9 +59,4 @@ export declare function useRetrieveProjectQuery<T>(api: Wretch<T>, overrides: Ap
|
|
54
59
|
unbalanced_brackets: number;
|
55
60
|
};
|
56
61
|
};
|
57
|
-
project_type: "localization_files" | "paged_documents" | "marketing";
|
58
|
-
created_by: number;
|
59
|
-
created_by_email: string;
|
60
|
-
base_language_id: number;
|
61
|
-
base_language_iso: string;
|
62
62
|
}, undefined>;
|
@@ -1,6 +1,13 @@
|
|
1
1
|
export * from './contributors';
|
2
|
+
export * from './projects';
|
2
3
|
export * from './teamUsers';
|
3
4
|
export * from './userToken';
|
5
|
+
export type { Language, LanguageIso } from './types/language';
|
6
|
+
export type { Project, ProjectQaIssues, ProjectType, ProjectSettings } from './types/project';
|
7
|
+
export type { TeamRole } from './types/teamRole';
|
8
|
+
export * from './hooks/useCreateProjectMutation';
|
4
9
|
export * from './hooks/useGetTeamUsersQuery';
|
5
10
|
export * from './hooks/useGetUserTokenQuery';
|
11
|
+
export * from './hooks/useListProjectsQuery';
|
6
12
|
export * from './hooks/useRetrieveContributorQuery';
|
13
|
+
export * from './hooks/useRetrieveProjectQuery';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
declare const CREATE_PROJECT_REQUEST_BODY_SCHEMA: z.ZodObject<{
|
3
3
|
name: z.ZodString;
|
4
|
-
team_id: z.
|
4
|
+
team_id: z.ZodString;
|
5
5
|
base_lang_iso: z.ZodString;
|
6
6
|
languages: z.ZodArray<z.ZodObject<{
|
7
7
|
lang_iso: z.ZodString;
|
@@ -21,8 +21,8 @@ declare const CREATE_PROJECT_REQUEST_BODY_SCHEMA: z.ZodObject<{
|
|
21
21
|
lang_iso: string;
|
22
22
|
custom_iso?: string | undefined;
|
23
23
|
}[];
|
24
|
-
team_id: number;
|
25
24
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
25
|
+
team_id: string;
|
26
26
|
base_lang_iso: string;
|
27
27
|
is_segmentation_enabled: boolean;
|
28
28
|
}, {
|
@@ -31,15 +31,15 @@ declare const CREATE_PROJECT_REQUEST_BODY_SCHEMA: z.ZodObject<{
|
|
31
31
|
lang_iso: string;
|
32
32
|
custom_iso?: string | undefined;
|
33
33
|
}[];
|
34
|
-
team_id: number;
|
35
34
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
35
|
+
team_id: string;
|
36
36
|
base_lang_iso: string;
|
37
37
|
is_segmentation_enabled: boolean;
|
38
38
|
}>;
|
39
39
|
export type CreateProjectRequestBody = z.infer<typeof CREATE_PROJECT_REQUEST_BODY_SCHEMA>;
|
40
40
|
export declare const createProject: import('@lokalise/universal-ts-utils/node').PayloadRouteDefinition<never, z.ZodObject<{
|
41
41
|
name: z.ZodString;
|
42
|
-
team_id: z.
|
42
|
+
team_id: z.ZodString;
|
43
43
|
base_lang_iso: z.ZodString;
|
44
44
|
languages: z.ZodArray<z.ZodObject<{
|
45
45
|
lang_iso: z.ZodString;
|
@@ -59,8 +59,8 @@ export declare const createProject: import('@lokalise/universal-ts-utils/node').
|
|
59
59
|
lang_iso: string;
|
60
60
|
custom_iso?: string | undefined;
|
61
61
|
}[];
|
62
|
-
team_id: number;
|
63
62
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
63
|
+
team_id: string;
|
64
64
|
base_lang_iso: string;
|
65
65
|
is_segmentation_enabled: boolean;
|
66
66
|
}, {
|
@@ -69,8 +69,8 @@ export declare const createProject: import('@lokalise/universal-ts-utils/node').
|
|
69
69
|
lang_iso: string;
|
70
70
|
custom_iso?: string | undefined;
|
71
71
|
}[];
|
72
|
-
team_id: number;
|
73
72
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
73
|
+
team_id: string;
|
74
74
|
base_lang_iso: string;
|
75
75
|
is_segmentation_enabled: boolean;
|
76
76
|
}>, z.ZodObject<{
|
@@ -254,7 +254,12 @@ export declare const createProject: import('@lokalise/universal-ts-utils/node').
|
|
254
254
|
}[];
|
255
255
|
project_id: string;
|
256
256
|
description: string;
|
257
|
+
project_type: "localization_files" | "paged_documents" | "marketing";
|
258
|
+
created_by: number;
|
259
|
+
created_by_email: string;
|
257
260
|
team_id: number;
|
261
|
+
base_language_id: number;
|
262
|
+
base_language_iso: string;
|
258
263
|
settings: {
|
259
264
|
per_platform_key_names: boolean;
|
260
265
|
reviewing: boolean;
|
@@ -292,11 +297,6 @@ export declare const createProject: import('@lokalise/universal-ts-utils/node').
|
|
292
297
|
unbalanced_brackets: number;
|
293
298
|
};
|
294
299
|
};
|
295
|
-
project_type: "localization_files" | "paged_documents" | "marketing";
|
296
|
-
created_by: number;
|
297
|
-
created_by_email: string;
|
298
|
-
base_language_id: number;
|
299
|
-
base_language_iso: string;
|
300
300
|
}, {
|
301
301
|
name: string;
|
302
302
|
created_at: string;
|
@@ -309,7 +309,12 @@ export declare const createProject: import('@lokalise/universal-ts-utils/node').
|
|
309
309
|
}[];
|
310
310
|
project_id: string;
|
311
311
|
description: string;
|
312
|
+
project_type: "localization_files" | "paged_documents" | "marketing";
|
313
|
+
created_by: number;
|
314
|
+
created_by_email: string;
|
312
315
|
team_id: number;
|
316
|
+
base_language_id: number;
|
317
|
+
base_language_iso: string;
|
313
318
|
settings: {
|
314
319
|
per_platform_key_names: boolean;
|
315
320
|
reviewing: boolean;
|
@@ -347,11 +352,6 @@ export declare const createProject: import('@lokalise/universal-ts-utils/node').
|
|
347
352
|
unbalanced_brackets: number;
|
348
353
|
};
|
349
354
|
};
|
350
|
-
project_type: "localization_files" | "paged_documents" | "marketing";
|
351
|
-
created_by: number;
|
352
|
-
created_by_email: string;
|
353
|
-
base_language_id: number;
|
354
|
-
base_language_iso: string;
|
355
355
|
}>, undefined, undefined, undefined, false, false>;
|
356
356
|
declare const LIST_PROJECTS_REQUEST_QUERY_SCHEMA: z.ZodObject<{
|
357
357
|
project_type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"localization_files">, z.ZodLiteral<"paged_documents">, z.ZodLiteral<"marketing">]>>;
|
@@ -560,10 +560,10 @@ declare const LIST_PROJECTS_SUCCESS_RESPONSE_BODY: z.ZodArray<z.ZodUnion<[z.ZodO
|
|
560
560
|
}[];
|
561
561
|
project_id: string;
|
562
562
|
description: string;
|
563
|
-
team_id: number;
|
564
563
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
565
564
|
created_by: number;
|
566
565
|
created_by_email: string;
|
566
|
+
team_id: number;
|
567
567
|
base_language_id: number;
|
568
568
|
base_language_iso: string;
|
569
569
|
}, {
|
@@ -578,10 +578,10 @@ declare const LIST_PROJECTS_SUCCESS_RESPONSE_BODY: z.ZodArray<z.ZodUnion<[z.ZodO
|
|
578
578
|
}[];
|
579
579
|
project_id: string;
|
580
580
|
description: string;
|
581
|
-
team_id: number;
|
582
581
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
583
582
|
created_by: number;
|
584
583
|
created_by_email: string;
|
584
|
+
team_id: number;
|
585
585
|
base_language_id: number;
|
586
586
|
base_language_iso: string;
|
587
587
|
}>, z.ZodObject<{
|
@@ -985,10 +985,10 @@ export declare const listProjects: import('@lokalise/universal-ts-utils/node').G
|
|
985
985
|
}[];
|
986
986
|
project_id: string;
|
987
987
|
description: string;
|
988
|
-
team_id: number;
|
989
988
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
990
989
|
created_by: number;
|
991
990
|
created_by_email: string;
|
991
|
+
team_id: number;
|
992
992
|
base_language_id: number;
|
993
993
|
base_language_iso: string;
|
994
994
|
}, {
|
@@ -1003,10 +1003,10 @@ export declare const listProjects: import('@lokalise/universal-ts-utils/node').G
|
|
1003
1003
|
}[];
|
1004
1004
|
project_id: string;
|
1005
1005
|
description: string;
|
1006
|
-
team_id: number;
|
1007
1006
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
1008
1007
|
created_by: number;
|
1009
1008
|
created_by_email: string;
|
1009
|
+
team_id: number;
|
1010
1010
|
base_language_id: number;
|
1011
1011
|
base_language_iso: string;
|
1012
1012
|
}>, z.ZodObject<{
|
@@ -1433,7 +1433,12 @@ export declare const retrieveProject: import('@lokalise/universal-ts-utils/node'
|
|
1433
1433
|
}[];
|
1434
1434
|
project_id: string;
|
1435
1435
|
description: string;
|
1436
|
+
project_type: "localization_files" | "paged_documents" | "marketing";
|
1437
|
+
created_by: number;
|
1438
|
+
created_by_email: string;
|
1436
1439
|
team_id: number;
|
1440
|
+
base_language_id: number;
|
1441
|
+
base_language_iso: string;
|
1437
1442
|
settings: {
|
1438
1443
|
per_platform_key_names: boolean;
|
1439
1444
|
reviewing: boolean;
|
@@ -1471,11 +1476,6 @@ export declare const retrieveProject: import('@lokalise/universal-ts-utils/node'
|
|
1471
1476
|
unbalanced_brackets: number;
|
1472
1477
|
};
|
1473
1478
|
};
|
1474
|
-
project_type: "localization_files" | "paged_documents" | "marketing";
|
1475
|
-
created_by: number;
|
1476
|
-
created_by_email: string;
|
1477
|
-
base_language_id: number;
|
1478
|
-
base_language_iso: string;
|
1479
1479
|
}, {
|
1480
1480
|
name: string;
|
1481
1481
|
created_at: string;
|
@@ -1488,7 +1488,12 @@ export declare const retrieveProject: import('@lokalise/universal-ts-utils/node'
|
|
1488
1488
|
}[];
|
1489
1489
|
project_id: string;
|
1490
1490
|
description: string;
|
1491
|
+
project_type: "localization_files" | "paged_documents" | "marketing";
|
1492
|
+
created_by: number;
|
1493
|
+
created_by_email: string;
|
1491
1494
|
team_id: number;
|
1495
|
+
base_language_id: number;
|
1496
|
+
base_language_iso: string;
|
1492
1497
|
settings: {
|
1493
1498
|
per_platform_key_names: boolean;
|
1494
1499
|
reviewing: boolean;
|
@@ -1526,11 +1531,6 @@ export declare const retrieveProject: import('@lokalise/universal-ts-utils/node'
|
|
1526
1531
|
unbalanced_brackets: number;
|
1527
1532
|
};
|
1528
1533
|
};
|
1529
|
-
project_type: "localization_files" | "paged_documents" | "marketing";
|
1530
|
-
created_by: number;
|
1531
|
-
created_by_email: string;
|
1532
|
-
base_language_id: number;
|
1533
|
-
base_language_iso: string;
|
1534
1534
|
}>, undefined, z.ZodObject<{
|
1535
1535
|
project_id: z.ZodString;
|
1536
1536
|
}, "strip", z.ZodTypeAny, {
|
@@ -377,7 +377,12 @@ export declare const PROJECT_SCHEMA: z.ZodObject<{
|
|
377
377
|
}[];
|
378
378
|
project_id: string;
|
379
379
|
description: string;
|
380
|
+
project_type: "localization_files" | "paged_documents" | "marketing";
|
381
|
+
created_by: number;
|
382
|
+
created_by_email: string;
|
380
383
|
team_id: number;
|
384
|
+
base_language_id: number;
|
385
|
+
base_language_iso: string;
|
381
386
|
settings: {
|
382
387
|
per_platform_key_names: boolean;
|
383
388
|
reviewing: boolean;
|
@@ -415,11 +420,6 @@ export declare const PROJECT_SCHEMA: z.ZodObject<{
|
|
415
420
|
unbalanced_brackets: number;
|
416
421
|
};
|
417
422
|
};
|
418
|
-
project_type: "localization_files" | "paged_documents" | "marketing";
|
419
|
-
created_by: number;
|
420
|
-
created_by_email: string;
|
421
|
-
base_language_id: number;
|
422
|
-
base_language_iso: string;
|
423
423
|
}, {
|
424
424
|
name: string;
|
425
425
|
created_at: string;
|
@@ -432,7 +432,12 @@ export declare const PROJECT_SCHEMA: z.ZodObject<{
|
|
432
432
|
}[];
|
433
433
|
project_id: string;
|
434
434
|
description: string;
|
435
|
+
project_type: "localization_files" | "paged_documents" | "marketing";
|
436
|
+
created_by: number;
|
437
|
+
created_by_email: string;
|
435
438
|
team_id: number;
|
439
|
+
base_language_id: number;
|
440
|
+
base_language_iso: string;
|
436
441
|
settings: {
|
437
442
|
per_platform_key_names: boolean;
|
438
443
|
reviewing: boolean;
|
@@ -470,10 +475,5 @@ export declare const PROJECT_SCHEMA: z.ZodObject<{
|
|
470
475
|
unbalanced_brackets: number;
|
471
476
|
};
|
472
477
|
};
|
473
|
-
project_type: "localization_files" | "paged_documents" | "marketing";
|
474
|
-
created_by: number;
|
475
|
-
created_by_email: string;
|
476
|
-
base_language_id: number;
|
477
|
-
base_language_iso: string;
|
478
478
|
}>;
|
479
479
|
export type Project = z.infer<typeof PROJECT_SCHEMA>;
|