@lokalise/harmony 2.1.0-exp-testingContracts.5 → 2.1.0-exp-testingContracts.6
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/harmony103.cjs +1 -1
- package/dist/harmony103.mjs +1 -1
- package/dist/harmony104.cjs +7 -7
- package/dist/harmony104.mjs +7 -7
- package/dist/harmony107.cjs +1 -1
- package/dist/harmony107.mjs +1 -1
- package/dist/harmony108.cjs +1 -1
- package/dist/harmony108.mjs +1 -1
- package/dist/harmony109.cjs +11 -14
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +11 -14
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +22 -4
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +21 -3
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +13 -17
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +13 -17
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +3 -76
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +3 -76
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +17 -11
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +17 -11
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +76 -34
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +76 -34
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +12 -9
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +12 -9
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +34 -47
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +34 -47
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +10 -10
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +9 -9
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +45 -9
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +47 -11
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +8 -20
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +8 -20
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony122.cjs +84 -96
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +84 -79
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +30 -20
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +30 -20
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +20 -7
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +20 -7
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +6 -16
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +7 -17
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +16 -7
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +16 -7
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +3 -3
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +3 -3
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +7 -14
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +7 -14
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +14 -86
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +14 -86
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +98 -29
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +81 -29
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +9 -5
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +9 -5
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +13 -6
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +12 -5
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +15 -9
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +14 -8
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +13 -6
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +15 -8
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +7 -12
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +9 -14
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +20 -13
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +22 -15
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +9 -7
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +11 -9
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony138.cjs +30 -18
- package/dist/harmony138.cjs.map +1 -1
- package/dist/harmony138.mjs +32 -20
- package/dist/harmony138.mjs.map +1 -1
- package/dist/harmony139.cjs +6 -6
- package/dist/harmony139.cjs.map +1 -1
- package/dist/harmony139.mjs +6 -6
- package/dist/harmony139.mjs.map +1 -1
- package/dist/harmony140.cjs +13 -29
- package/dist/harmony140.cjs.map +1 -1
- package/dist/harmony140.mjs +14 -30
- package/dist/harmony140.mjs.map +1 -1
- package/dist/harmony141.cjs +31 -7
- package/dist/harmony141.cjs.map +1 -1
- package/dist/harmony141.mjs +32 -8
- package/dist/harmony141.mjs.map +1 -1
- package/dist/harmony142.cjs +21 -22
- package/dist/harmony142.cjs.map +1 -1
- package/dist/harmony142.mjs +20 -21
- package/dist/harmony142.mjs.map +1 -1
- package/dist/harmony143.cjs +15 -30
- package/dist/harmony143.cjs.map +1 -1
- package/dist/harmony143.mjs +17 -32
- package/dist/harmony143.mjs.map +1 -1
- package/dist/harmony144.cjs +3 -18
- package/dist/harmony144.cjs.map +1 -1
- package/dist/harmony144.mjs +3 -18
- package/dist/harmony144.mjs.map +1 -1
- package/dist/harmony145.cjs +15 -21
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +14 -20
- package/dist/harmony145.mjs.map +1 -1
- package/dist/harmony146.cjs +10 -6
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +9 -5
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony147.cjs +5 -15
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +5 -15
- package/dist/harmony147.mjs.map +1 -1
- package/dist/harmony148.cjs +6 -11
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +5 -10
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +1 -1
- package/dist/harmony149.mjs +1 -1
- package/dist/harmony150.cjs +1 -1
- package/dist/harmony150.mjs +1 -1
- package/dist/harmony151.cjs +1 -1
- package/dist/harmony151.mjs +1 -1
- package/dist/harmony152.cjs +3 -3
- package/dist/harmony152.mjs +3 -3
- package/dist/harmony153.cjs +3 -3
- package/dist/harmony153.mjs +3 -3
- package/dist/harmony154.cjs +1 -1
- package/dist/harmony154.mjs +1 -1
- package/dist/harmony157.cjs +1 -1
- package/dist/harmony157.mjs +1 -1
- package/dist/harmony158.cjs +2 -2
- package/dist/harmony158.mjs +2 -2
- package/dist/harmony167.cjs +32 -13
- package/dist/harmony167.cjs.map +1 -1
- package/dist/harmony167.mjs +32 -13
- package/dist/harmony167.mjs.map +1 -1
- package/dist/harmony168.cjs +12 -14
- package/dist/harmony168.cjs.map +1 -1
- package/dist/harmony168.mjs +12 -14
- package/dist/harmony168.mjs.map +1 -1
- package/dist/harmony169.cjs +13 -14
- package/dist/harmony169.cjs.map +1 -1
- package/dist/harmony169.mjs +13 -14
- package/dist/harmony169.mjs.map +1 -1
- package/dist/harmony17.cjs +1 -1
- package/dist/harmony17.mjs +1 -1
- package/dist/harmony170.cjs +15 -31
- package/dist/harmony170.cjs.map +1 -1
- package/dist/harmony170.mjs +15 -31
- package/dist/harmony170.mjs.map +1 -1
- package/dist/harmony171.cjs +1 -1
- package/dist/harmony171.mjs +1 -1
- package/dist/harmony173.cjs +3 -3
- package/dist/harmony173.mjs +3 -3
- package/dist/harmony175.cjs +4 -6
- package/dist/harmony175.cjs.map +1 -1
- package/dist/harmony175.mjs +4 -6
- package/dist/harmony175.mjs.map +1 -1
- package/dist/harmony176.cjs +5 -11
- package/dist/harmony176.cjs.map +1 -1
- package/dist/harmony176.mjs +5 -11
- package/dist/harmony176.mjs.map +1 -1
- package/dist/harmony177.cjs +11 -31
- package/dist/harmony177.cjs.map +1 -1
- package/dist/harmony177.mjs +11 -31
- package/dist/harmony177.mjs.map +1 -1
- package/dist/harmony178.cjs +28 -10
- package/dist/harmony178.cjs.map +1 -1
- package/dist/harmony178.mjs +28 -10
- package/dist/harmony178.mjs.map +1 -1
- package/dist/harmony179.cjs +14 -4
- package/dist/harmony179.cjs.map +1 -1
- package/dist/harmony179.mjs +14 -4
- package/dist/harmony179.mjs.map +1 -1
- package/dist/harmony20.cjs +1 -1
- package/dist/harmony20.mjs +1 -1
- package/dist/harmony28.cjs +1 -1
- package/dist/harmony28.mjs +1 -1
- package/dist/harmony29.cjs +1 -1
- package/dist/harmony29.mjs +1 -1
- package/dist/harmony32.cjs +1 -1
- package/dist/harmony32.mjs +1 -1
- package/dist/harmony33.cjs +1 -1
- package/dist/harmony33.mjs +1 -1
- package/dist/harmony34.cjs +1 -1
- package/dist/harmony34.mjs +1 -1
- package/dist/harmony39.cjs +1 -1
- package/dist/harmony39.mjs +1 -1
- package/dist/harmony40.cjs +1 -1
- package/dist/harmony40.mjs +1 -1
- package/dist/harmony41.cjs +1 -1
- package/dist/harmony41.mjs +1 -1
- package/dist/harmony42.cjs +2 -2
- package/dist/harmony42.mjs +2 -2
- package/dist/harmony43.cjs +2 -2
- package/dist/harmony43.mjs +2 -2
- package/dist/harmony44.cjs +1 -1
- package/dist/harmony44.mjs +1 -1
- package/dist/harmony53.cjs +3 -3
- package/dist/harmony53.cjs.map +1 -1
- package/dist/harmony53.mjs +1 -1
- package/dist/harmony53.mjs.map +1 -1
- package/dist/harmony78.cjs +74 -74
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +1 -1
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +52 -52
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +1 -1
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +4 -4
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +1 -1
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +18 -18
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +1 -1
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +15 -15
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +1 -1
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +96 -96
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +1 -1
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +24 -24
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +1 -1
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +14 -14
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +1 -1
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +2 -2
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +1 -1
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +40 -40
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +1 -1
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +27 -27
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +1 -1
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +10 -10
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +1 -1
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony95.cjs +1 -1
- package/dist/harmony95.mjs +1 -1
- package/dist/harmony97.cjs +2 -2
- package/dist/harmony97.mjs +2 -2
- package/dist/types/src/features/auth/core/types/jwtTokenPayload.d.ts +35 -8
- package/dist/types/src/features/auth/core/types/jwtTokenPayload.fixture.d.ts +1 -1
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedProjectContributor.d.ts +3 -3
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedUser.d.ts +2 -2
- package/dist/types/src/features/auth/frontend/services/generateTokenFromClassicSession.d.ts +4 -1
- package/dist/types/src/features/auth/frontend/services/refreshExpiredToken.d.ts +4 -1
- package/dist/types/src/features/navigation/hooks/useNavigationQueries.d.ts +48 -48
- package/dist/types/src/features/publicApi/TESTING_CONTRACTS.d.ts +238 -1
- package/dist/types/src/features/publicApi/contributors.d.ts +1072 -5
- package/dist/types/src/features/publicApi/hooks/useAddContributorsMutation.d.ts +7 -7
- package/dist/types/src/features/publicApi/hooks/useAddLanguagesToProjectMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useCreateProjectMutation.d.ts +14 -14
- package/dist/types/src/features/publicApi/hooks/useCreateScoreMutation.d.ts +3 -3
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useRetrieveUserPermissions.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useUpdateContributorMutation.d.ts +5 -5
- package/dist/types/src/features/publicApi/hooks/useUpdateProjectMutation.d.ts +13 -13
- package/dist/types/src/features/publicApi/languages.d.ts +368 -3
- package/dist/types/src/features/publicApi/permissionTemplates.d.ts +117 -1
- package/dist/types/src/features/publicApi/projects.d.ts +1965 -6
- package/dist/types/src/features/publicApi/score.d.ts +290 -3
- package/dist/types/src/features/publicApi/team.d.ts +374 -2
- package/dist/types/src/features/publicApi/teamUsers.d.ts +318 -3
- package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +834 -84
- package/dist/types/src/features/publicApi/types/languageTypes.d.ts +212 -22
- package/dist/types/src/features/publicApi/types/paginationTypes.d.ts +8 -2
- package/dist/types/src/features/publicApi/types/permissionTemplateTypes.d.ts +76 -71
- package/dist/types/src/features/publicApi/types/permissionTypes.d.ts +24 -48
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +1097 -211
- package/dist/types/src/features/publicApi/types/scoreTypes.d.ts +96 -32
- package/dist/types/src/features/publicApi/types/sharedTypes.d.ts +126 -30
- package/dist/types/src/features/publicApi/types/teamRoleTypes.d.ts +2 -7
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +328 -65
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +208 -91
- package/dist/types/src/features/publicApi/types/userTokenTypes.d.ts +39 -9
- package/dist/types/src/features/publicApi/userToken.d.ts +53 -1
- package/package.json +1 -1
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { z } from 'zod
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const LANGUAGE_ISO_SCHEMA: z.ZodObject<{
|
|
3
3
|
lang_iso: z.ZodString;
|
|
4
4
|
custom_iso: z.ZodOptional<z.ZodString>;
|
|
5
|
-
}, z.
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
lang_iso: string;
|
|
7
|
+
custom_iso?: string | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
lang_iso: string;
|
|
10
|
+
custom_iso?: string | undefined;
|
|
11
|
+
}>;
|
|
6
12
|
export type LanguageIso = z.infer<typeof LANGUAGE_ISO_SCHEMA>;
|
|
7
13
|
export declare const LANGUAGE_STATISTICS_SCHEMA: z.ZodObject<{
|
|
8
14
|
language_id: z.ZodNumber;
|
|
@@ -11,20 +17,54 @@ export declare const LANGUAGE_STATISTICS_SCHEMA: z.ZodObject<{
|
|
|
11
17
|
words_to_do: z.ZodNumber;
|
|
12
18
|
project_language_id: z.ZodNumber;
|
|
13
19
|
project_language_uuid: z.ZodString;
|
|
14
|
-
}, z.
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
progress: number;
|
|
22
|
+
language_id: number;
|
|
23
|
+
language_iso: string;
|
|
24
|
+
words_to_do: number;
|
|
25
|
+
project_language_id: number;
|
|
26
|
+
project_language_uuid: string;
|
|
27
|
+
}, {
|
|
28
|
+
progress: number;
|
|
29
|
+
language_id: number;
|
|
30
|
+
language_iso: string;
|
|
31
|
+
words_to_do: number;
|
|
32
|
+
project_language_id: number;
|
|
33
|
+
project_language_uuid: string;
|
|
34
|
+
}>;
|
|
15
35
|
export type LanguageStatistics = z.infer<typeof LANGUAGE_STATISTICS_SCHEMA>;
|
|
16
36
|
export declare const LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
|
17
37
|
projectId: z.ZodString;
|
|
18
|
-
}, z.
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
projectId: string;
|
|
40
|
+
}, {
|
|
41
|
+
projectId: string;
|
|
42
|
+
}>;
|
|
19
43
|
export declare const LANGUAGE_SCHEMA: z.ZodObject<{
|
|
20
44
|
lang_id: z.ZodNumber;
|
|
21
45
|
lang_iso: z.ZodString;
|
|
22
46
|
lang_name: z.ZodString;
|
|
23
47
|
is_rtl: z.ZodBoolean;
|
|
24
|
-
plural_forms: z.ZodArray<z.ZodOptional<z.ZodString
|
|
48
|
+
plural_forms: z.ZodArray<z.ZodOptional<z.ZodString>, "many">;
|
|
25
49
|
project_language_id: z.ZodString;
|
|
26
50
|
project_language_uuid: z.ZodString;
|
|
27
|
-
}, z.
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
lang_id: number;
|
|
53
|
+
lang_iso: string;
|
|
54
|
+
lang_name: string;
|
|
55
|
+
project_language_id: string;
|
|
56
|
+
project_language_uuid: string;
|
|
57
|
+
is_rtl: boolean;
|
|
58
|
+
plural_forms: (string | undefined)[];
|
|
59
|
+
}, {
|
|
60
|
+
lang_id: number;
|
|
61
|
+
lang_iso: string;
|
|
62
|
+
lang_name: string;
|
|
63
|
+
project_language_id: string;
|
|
64
|
+
project_language_uuid: string;
|
|
65
|
+
is_rtl: boolean;
|
|
66
|
+
plural_forms: (string | undefined)[];
|
|
67
|
+
}>;
|
|
28
68
|
export type Language = z.infer<typeof LANGUAGE_SCHEMA>;
|
|
29
69
|
export declare const LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
30
70
|
project_id: z.ZodString;
|
|
@@ -34,24 +74,92 @@ export declare const LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
34
74
|
lang_iso: z.ZodString;
|
|
35
75
|
lang_name: z.ZodString;
|
|
36
76
|
is_rtl: z.ZodBoolean;
|
|
37
|
-
plural_forms: z.ZodArray<z.ZodOptional<z.ZodString
|
|
77
|
+
plural_forms: z.ZodArray<z.ZodOptional<z.ZodString>, "many">;
|
|
38
78
|
project_language_id: z.ZodString;
|
|
39
79
|
project_language_uuid: z.ZodString;
|
|
40
|
-
}, z.
|
|
41
|
-
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
lang_id: number;
|
|
82
|
+
lang_iso: string;
|
|
83
|
+
lang_name: string;
|
|
84
|
+
project_language_id: string;
|
|
85
|
+
project_language_uuid: string;
|
|
86
|
+
is_rtl: boolean;
|
|
87
|
+
plural_forms: (string | undefined)[];
|
|
88
|
+
}, {
|
|
89
|
+
lang_id: number;
|
|
90
|
+
lang_iso: string;
|
|
91
|
+
lang_name: string;
|
|
92
|
+
project_language_id: string;
|
|
93
|
+
project_language_uuid: string;
|
|
94
|
+
is_rtl: boolean;
|
|
95
|
+
plural_forms: (string | undefined)[];
|
|
96
|
+
}>, "many">;
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
languages: {
|
|
99
|
+
lang_id: number;
|
|
100
|
+
lang_iso: string;
|
|
101
|
+
lang_name: string;
|
|
102
|
+
project_language_id: string;
|
|
103
|
+
project_language_uuid: string;
|
|
104
|
+
is_rtl: boolean;
|
|
105
|
+
plural_forms: (string | undefined)[];
|
|
106
|
+
}[];
|
|
107
|
+
project_id: string;
|
|
108
|
+
project_uuid: string;
|
|
109
|
+
}, {
|
|
110
|
+
languages: {
|
|
111
|
+
lang_id: number;
|
|
112
|
+
lang_iso: string;
|
|
113
|
+
lang_name: string;
|
|
114
|
+
project_language_id: string;
|
|
115
|
+
project_language_uuid: string;
|
|
116
|
+
is_rtl: boolean;
|
|
117
|
+
plural_forms: (string | undefined)[];
|
|
118
|
+
}[];
|
|
119
|
+
project_id: string;
|
|
120
|
+
project_uuid: string;
|
|
121
|
+
}>;
|
|
42
122
|
export type ListProjectLanguagesResponse = z.infer<typeof LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA>;
|
|
43
123
|
export declare const ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
|
44
124
|
projectId: z.ZodString;
|
|
45
|
-
}, z.
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
projectId: string;
|
|
127
|
+
}, {
|
|
128
|
+
projectId: string;
|
|
129
|
+
}>;
|
|
46
130
|
export type AddLanguagesToProjectPathParams = z.infer<typeof ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA>;
|
|
47
131
|
export declare const ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA: z.ZodObject<{
|
|
48
132
|
languages: z.ZodArray<z.ZodObject<{
|
|
49
133
|
lang_iso: z.ZodString;
|
|
50
134
|
custom_iso: z.ZodOptional<z.ZodString>;
|
|
51
135
|
custom_name: z.ZodOptional<z.ZodString>;
|
|
52
|
-
custom_plural_forms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
-
}, z.
|
|
54
|
-
|
|
136
|
+
custom_plural_forms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
lang_iso: string;
|
|
139
|
+
custom_iso?: string | undefined;
|
|
140
|
+
custom_name?: string | undefined;
|
|
141
|
+
custom_plural_forms?: string[] | undefined;
|
|
142
|
+
}, {
|
|
143
|
+
lang_iso: string;
|
|
144
|
+
custom_iso?: string | undefined;
|
|
145
|
+
custom_name?: string | undefined;
|
|
146
|
+
custom_plural_forms?: string[] | undefined;
|
|
147
|
+
}>, "many">;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
languages: {
|
|
150
|
+
lang_iso: string;
|
|
151
|
+
custom_iso?: string | undefined;
|
|
152
|
+
custom_name?: string | undefined;
|
|
153
|
+
custom_plural_forms?: string[] | undefined;
|
|
154
|
+
}[];
|
|
155
|
+
}, {
|
|
156
|
+
languages: {
|
|
157
|
+
lang_iso: string;
|
|
158
|
+
custom_iso?: string | undefined;
|
|
159
|
+
custom_name?: string | undefined;
|
|
160
|
+
custom_plural_forms?: string[] | undefined;
|
|
161
|
+
}[];
|
|
162
|
+
}>;
|
|
55
163
|
export type AddLanguagesToProjectRequestBody = z.infer<typeof ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA>;
|
|
56
164
|
export declare const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA: z.ZodObject<{
|
|
57
165
|
project_id: z.ZodString;
|
|
@@ -60,30 +168,112 @@ export declare const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA: z.ZodObject<{
|
|
|
60
168
|
lang_id: z.ZodNumber;
|
|
61
169
|
lang_iso: z.ZodString;
|
|
62
170
|
lang_name: z.ZodString;
|
|
63
|
-
is_rtl: z.ZodBoolean;
|
|
64
|
-
plural_forms: z.ZodArray<z.ZodOptional<z.ZodString>>;
|
|
65
171
|
project_language_id: z.ZodOptional<z.ZodString>;
|
|
66
172
|
project_language_uuid: z.ZodOptional<z.ZodString>;
|
|
67
|
-
|
|
173
|
+
is_rtl: z.ZodBoolean;
|
|
174
|
+
plural_forms: z.ZodArray<z.ZodOptional<z.ZodString>, "many">;
|
|
175
|
+
}, "strip", z.ZodTypeAny, {
|
|
176
|
+
lang_id: number;
|
|
177
|
+
lang_iso: string;
|
|
178
|
+
lang_name: string;
|
|
179
|
+
is_rtl: boolean;
|
|
180
|
+
plural_forms: (string | undefined)[];
|
|
181
|
+
project_language_id?: string | undefined;
|
|
182
|
+
project_language_uuid?: string | undefined;
|
|
183
|
+
}, {
|
|
184
|
+
lang_id: number;
|
|
185
|
+
lang_iso: string;
|
|
186
|
+
lang_name: string;
|
|
187
|
+
is_rtl: boolean;
|
|
188
|
+
plural_forms: (string | undefined)[];
|
|
189
|
+
project_language_id?: string | undefined;
|
|
190
|
+
project_language_uuid?: string | undefined;
|
|
191
|
+
}>, "many">;
|
|
68
192
|
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
69
193
|
message: z.ZodString;
|
|
70
194
|
code: z.ZodNumber;
|
|
71
195
|
lang_iso: z.ZodString;
|
|
72
|
-
}, z.
|
|
73
|
-
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
message: string;
|
|
198
|
+
code: number;
|
|
199
|
+
lang_iso: string;
|
|
200
|
+
}, {
|
|
201
|
+
message: string;
|
|
202
|
+
code: number;
|
|
203
|
+
lang_iso: string;
|
|
204
|
+
}>, "many">>;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
languages: {
|
|
207
|
+
lang_id: number;
|
|
208
|
+
lang_iso: string;
|
|
209
|
+
lang_name: string;
|
|
210
|
+
is_rtl: boolean;
|
|
211
|
+
plural_forms: (string | undefined)[];
|
|
212
|
+
project_language_id?: string | undefined;
|
|
213
|
+
project_language_uuid?: string | undefined;
|
|
214
|
+
}[];
|
|
215
|
+
project_id: string;
|
|
216
|
+
project_uuid: string;
|
|
217
|
+
errors?: {
|
|
218
|
+
message: string;
|
|
219
|
+
code: number;
|
|
220
|
+
lang_iso: string;
|
|
221
|
+
}[] | undefined;
|
|
222
|
+
}, {
|
|
223
|
+
languages: {
|
|
224
|
+
lang_id: number;
|
|
225
|
+
lang_iso: string;
|
|
226
|
+
lang_name: string;
|
|
227
|
+
is_rtl: boolean;
|
|
228
|
+
plural_forms: (string | undefined)[];
|
|
229
|
+
project_language_id?: string | undefined;
|
|
230
|
+
project_language_uuid?: string | undefined;
|
|
231
|
+
}[];
|
|
232
|
+
project_id: string;
|
|
233
|
+
project_uuid: string;
|
|
234
|
+
errors?: {
|
|
235
|
+
message: string;
|
|
236
|
+
code: number;
|
|
237
|
+
lang_iso: string;
|
|
238
|
+
}[] | undefined;
|
|
239
|
+
}>;
|
|
74
240
|
export type AddLanguagesToProjectResponse = z.infer<typeof ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA>;
|
|
75
241
|
export declare const BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
|
76
242
|
projectId: z.ZodString;
|
|
77
|
-
}, z.
|
|
243
|
+
}, "strip", z.ZodTypeAny, {
|
|
244
|
+
projectId: string;
|
|
245
|
+
}, {
|
|
246
|
+
projectId: string;
|
|
247
|
+
}>;
|
|
78
248
|
export type BulkUpdateProjectLanguagesPathParams = z.infer<typeof BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA>;
|
|
79
249
|
export declare const BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA: z.ZodObject<{
|
|
80
250
|
langs: z.ZodArray<z.ZodObject<{
|
|
81
251
|
lang_iso: z.ZodString;
|
|
82
252
|
base_lang: z.ZodBoolean;
|
|
83
|
-
}, z.
|
|
84
|
-
|
|
253
|
+
}, "strip", z.ZodTypeAny, {
|
|
254
|
+
lang_iso: string;
|
|
255
|
+
base_lang: boolean;
|
|
256
|
+
}, {
|
|
257
|
+
lang_iso: string;
|
|
258
|
+
base_lang: boolean;
|
|
259
|
+
}>, "many">;
|
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
|
261
|
+
langs: {
|
|
262
|
+
lang_iso: string;
|
|
263
|
+
base_lang: boolean;
|
|
264
|
+
}[];
|
|
265
|
+
}, {
|
|
266
|
+
langs: {
|
|
267
|
+
lang_iso: string;
|
|
268
|
+
base_lang: boolean;
|
|
269
|
+
}[];
|
|
270
|
+
}>;
|
|
85
271
|
export type BulkUpdateProjectLanguagesRequestBody = z.infer<typeof BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA>;
|
|
86
272
|
export declare const BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
87
273
|
result: z.ZodBoolean;
|
|
88
|
-
}, z.
|
|
274
|
+
}, "strip", z.ZodTypeAny, {
|
|
275
|
+
result: boolean;
|
|
276
|
+
}, {
|
|
277
|
+
result: boolean;
|
|
278
|
+
}>;
|
|
89
279
|
export type BulkUpdateProjectLanguagesResponse = z.infer<typeof BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA>;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { z } from 'zod
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const PAGINATION_QUERY_PARAMS_SCHEMA: z.ZodObject<{
|
|
3
3
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
4
4
|
page: z.ZodOptional<z.ZodNumber>;
|
|
5
|
-
}, z.
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
page?: number | undefined;
|
|
7
|
+
limit?: number | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
page?: number | undefined;
|
|
10
|
+
limit?: number | undefined;
|
|
11
|
+
}>;
|
|
6
12
|
export type PaginationQueryParams = z.infer<typeof PAGINATION_QUERY_PARAMS_SCHEMA>;
|
|
@@ -1,96 +1,101 @@
|
|
|
1
|
-
import { z } from 'zod
|
|
2
|
-
export declare const PERMISSION_SCHEMA: z.ZodUnion<
|
|
3
|
-
tasks: "tasks";
|
|
4
|
-
contributors: "contributors";
|
|
5
|
-
download: "download";
|
|
6
|
-
upload: "upload";
|
|
7
|
-
activity: "activity";
|
|
8
|
-
glossary_edit: "glossary_edit";
|
|
9
|
-
glossary_delete: "glossary_delete";
|
|
10
|
-
settings: "settings";
|
|
11
|
-
statistics: "statistics";
|
|
12
|
-
manage_keys: "manage_keys";
|
|
13
|
-
screenshots: "screenshots";
|
|
14
|
-
branches_create: "branches_create";
|
|
15
|
-
branches_merge: "branches_merge";
|
|
16
|
-
manage_languages: "manage_languages";
|
|
17
|
-
review: "review";
|
|
18
|
-
branches_main_modify: "branches_main_modify";
|
|
19
|
-
custom_status_modify: "custom_status_modify";
|
|
20
|
-
}>, z.ZodEnum<{
|
|
21
|
-
glossary: "glossary";
|
|
22
|
-
create_branches: "create_branches";
|
|
23
|
-
}>]>;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PERMISSION_SCHEMA: z.ZodUnion<[z.ZodEnum<["tasks", "upload", "activity", "download", "glossary_edit", "glossary_delete", "settings", "statistics", "manage_keys", "screenshots", "contributors", "branches_create", "branches_merge", "manage_languages", "review", "branches_main_modify", "custom_status_modify"]>, z.ZodEnum<["glossary", "create_branches"]>]>;
|
|
24
3
|
export type Permission = z.infer<typeof PERMISSION_SCHEMA>;
|
|
25
4
|
export declare const PERMISSION_TEMPLATE_SCHEMA: z.ZodObject<{
|
|
26
5
|
id: z.ZodString;
|
|
27
6
|
role: z.ZodString;
|
|
28
|
-
permissions: z.ZodArray<z.ZodUnion<
|
|
29
|
-
tasks: "tasks";
|
|
30
|
-
contributors: "contributors";
|
|
31
|
-
download: "download";
|
|
32
|
-
upload: "upload";
|
|
33
|
-
activity: "activity";
|
|
34
|
-
glossary_edit: "glossary_edit";
|
|
35
|
-
glossary_delete: "glossary_delete";
|
|
36
|
-
settings: "settings";
|
|
37
|
-
statistics: "statistics";
|
|
38
|
-
manage_keys: "manage_keys";
|
|
39
|
-
screenshots: "screenshots";
|
|
40
|
-
branches_create: "branches_create";
|
|
41
|
-
branches_merge: "branches_merge";
|
|
42
|
-
manage_languages: "manage_languages";
|
|
43
|
-
review: "review";
|
|
44
|
-
branches_main_modify: "branches_main_modify";
|
|
45
|
-
custom_status_modify: "custom_status_modify";
|
|
46
|
-
}>, z.ZodEnum<{
|
|
47
|
-
glossary: "glossary";
|
|
48
|
-
create_branches: "create_branches";
|
|
49
|
-
}>]>>;
|
|
7
|
+
permissions: z.ZodArray<z.ZodUnion<[z.ZodEnum<["tasks", "upload", "activity", "download", "glossary_edit", "glossary_delete", "settings", "statistics", "manage_keys", "screenshots", "contributors", "branches_create", "branches_merge", "manage_languages", "review", "branches_main_modify", "custom_status_modify"]>, z.ZodEnum<["glossary", "create_branches"]>]>, "many">;
|
|
50
8
|
description: z.ZodNullable<z.ZodString>;
|
|
51
9
|
tag: z.ZodNullable<z.ZodString>;
|
|
52
10
|
tagColor: z.ZodNullable<z.ZodString>;
|
|
53
11
|
tagInfo: z.ZodNullable<z.ZodString>;
|
|
54
12
|
isForMarketingProjects: z.ZodBoolean;
|
|
55
13
|
doesEnableAllReadOnlyLanguages: z.ZodBoolean;
|
|
56
|
-
}, z.
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
id: string;
|
|
16
|
+
role: string;
|
|
17
|
+
tag: string | null;
|
|
18
|
+
description: string | null;
|
|
19
|
+
permissions: ("tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify")[];
|
|
20
|
+
tagColor: string | null;
|
|
21
|
+
tagInfo: string | null;
|
|
22
|
+
isForMarketingProjects: boolean;
|
|
23
|
+
doesEnableAllReadOnlyLanguages: boolean;
|
|
24
|
+
}, {
|
|
25
|
+
id: string;
|
|
26
|
+
role: string;
|
|
27
|
+
tag: string | null;
|
|
28
|
+
description: string | null;
|
|
29
|
+
permissions: ("tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify")[];
|
|
30
|
+
tagColor: string | null;
|
|
31
|
+
tagInfo: string | null;
|
|
32
|
+
isForMarketingProjects: boolean;
|
|
33
|
+
doesEnableAllReadOnlyLanguages: boolean;
|
|
34
|
+
}>;
|
|
57
35
|
export type PermissionTemplate = z.infer<typeof PERMISSION_TEMPLATE_SCHEMA>;
|
|
58
36
|
export declare const LIST_PERMISSION_TEMPLATES_PATH_PARAMS: z.ZodObject<{
|
|
59
37
|
teamId: z.ZodNumber;
|
|
60
|
-
}, z.
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
teamId: number;
|
|
40
|
+
}, {
|
|
41
|
+
teamId: number;
|
|
42
|
+
}>;
|
|
61
43
|
export type ListPermissionTemplatesPathParams = z.infer<typeof LIST_PERMISSION_TEMPLATES_PATH_PARAMS>;
|
|
62
44
|
export declare const LIST_PERMISSION_TEMPLATES_RESPONSE: z.ZodObject<{
|
|
63
45
|
roles: z.ZodArray<z.ZodObject<{
|
|
64
46
|
id: z.ZodString;
|
|
65
47
|
role: z.ZodString;
|
|
66
|
-
permissions: z.ZodArray<z.ZodUnion<
|
|
67
|
-
tasks: "tasks";
|
|
68
|
-
contributors: "contributors";
|
|
69
|
-
download: "download";
|
|
70
|
-
upload: "upload";
|
|
71
|
-
activity: "activity";
|
|
72
|
-
glossary_edit: "glossary_edit";
|
|
73
|
-
glossary_delete: "glossary_delete";
|
|
74
|
-
settings: "settings";
|
|
75
|
-
statistics: "statistics";
|
|
76
|
-
manage_keys: "manage_keys";
|
|
77
|
-
screenshots: "screenshots";
|
|
78
|
-
branches_create: "branches_create";
|
|
79
|
-
branches_merge: "branches_merge";
|
|
80
|
-
manage_languages: "manage_languages";
|
|
81
|
-
review: "review";
|
|
82
|
-
branches_main_modify: "branches_main_modify";
|
|
83
|
-
custom_status_modify: "custom_status_modify";
|
|
84
|
-
}>, z.ZodEnum<{
|
|
85
|
-
glossary: "glossary";
|
|
86
|
-
create_branches: "create_branches";
|
|
87
|
-
}>]>>;
|
|
48
|
+
permissions: z.ZodArray<z.ZodUnion<[z.ZodEnum<["tasks", "upload", "activity", "download", "glossary_edit", "glossary_delete", "settings", "statistics", "manage_keys", "screenshots", "contributors", "branches_create", "branches_merge", "manage_languages", "review", "branches_main_modify", "custom_status_modify"]>, z.ZodEnum<["glossary", "create_branches"]>]>, "many">;
|
|
88
49
|
description: z.ZodNullable<z.ZodString>;
|
|
89
50
|
tag: z.ZodNullable<z.ZodString>;
|
|
90
51
|
tagColor: z.ZodNullable<z.ZodString>;
|
|
91
52
|
tagInfo: z.ZodNullable<z.ZodString>;
|
|
92
53
|
isForMarketingProjects: z.ZodBoolean;
|
|
93
54
|
doesEnableAllReadOnlyLanguages: z.ZodBoolean;
|
|
94
|
-
}, z.
|
|
95
|
-
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
id: string;
|
|
57
|
+
role: string;
|
|
58
|
+
tag: string | null;
|
|
59
|
+
description: string | null;
|
|
60
|
+
permissions: ("tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify")[];
|
|
61
|
+
tagColor: string | null;
|
|
62
|
+
tagInfo: string | null;
|
|
63
|
+
isForMarketingProjects: boolean;
|
|
64
|
+
doesEnableAllReadOnlyLanguages: boolean;
|
|
65
|
+
}, {
|
|
66
|
+
id: string;
|
|
67
|
+
role: string;
|
|
68
|
+
tag: string | null;
|
|
69
|
+
description: string | null;
|
|
70
|
+
permissions: ("tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify")[];
|
|
71
|
+
tagColor: string | null;
|
|
72
|
+
tagInfo: string | null;
|
|
73
|
+
isForMarketingProjects: boolean;
|
|
74
|
+
doesEnableAllReadOnlyLanguages: boolean;
|
|
75
|
+
}>, "many">;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
roles: {
|
|
78
|
+
id: string;
|
|
79
|
+
role: string;
|
|
80
|
+
tag: string | null;
|
|
81
|
+
description: string | null;
|
|
82
|
+
permissions: ("tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify")[];
|
|
83
|
+
tagColor: string | null;
|
|
84
|
+
tagInfo: string | null;
|
|
85
|
+
isForMarketingProjects: boolean;
|
|
86
|
+
doesEnableAllReadOnlyLanguages: boolean;
|
|
87
|
+
}[];
|
|
88
|
+
}, {
|
|
89
|
+
roles: {
|
|
90
|
+
id: string;
|
|
91
|
+
role: string;
|
|
92
|
+
tag: string | null;
|
|
93
|
+
description: string | null;
|
|
94
|
+
permissions: ("tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify")[];
|
|
95
|
+
tagColor: string | null;
|
|
96
|
+
tagInfo: string | null;
|
|
97
|
+
isForMarketingProjects: boolean;
|
|
98
|
+
doesEnableAllReadOnlyLanguages: boolean;
|
|
99
|
+
}[];
|
|
100
|
+
}>;
|
|
96
101
|
export type ListPermissionTemplatesResponse = z.infer<typeof LIST_PERMISSION_TEMPLATES_RESPONSE>;
|
|
@@ -1,58 +1,34 @@
|
|
|
1
|
-
import { z } from 'zod
|
|
2
|
-
export declare const PERMISSION_ID_SCHEMA: z.ZodUnion<
|
|
3
|
-
tasks: "tasks";
|
|
4
|
-
contributors: "contributors";
|
|
5
|
-
download: "download";
|
|
6
|
-
upload: "upload";
|
|
7
|
-
activity: "activity";
|
|
8
|
-
glossary_edit: "glossary_edit";
|
|
9
|
-
glossary_delete: "glossary_delete";
|
|
10
|
-
settings: "settings";
|
|
11
|
-
statistics: "statistics";
|
|
12
|
-
manage_keys: "manage_keys";
|
|
13
|
-
screenshots: "screenshots";
|
|
14
|
-
branches_create: "branches_create";
|
|
15
|
-
branches_merge: "branches_merge";
|
|
16
|
-
manage_languages: "manage_languages";
|
|
17
|
-
review: "review";
|
|
18
|
-
branches_main_modify: "branches_main_modify";
|
|
19
|
-
custom_status_modify: "custom_status_modify";
|
|
20
|
-
}>, z.ZodEnum<{
|
|
21
|
-
glossary: "glossary";
|
|
22
|
-
create_branches: "create_branches";
|
|
23
|
-
}>]>;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PERMISSION_ID_SCHEMA: z.ZodUnion<[z.ZodEnum<["tasks", "upload", "activity", "download", "glossary_edit", "glossary_delete", "settings", "statistics", "manage_keys", "screenshots", "contributors", "branches_create", "branches_merge", "manage_languages", "review", "branches_main_modify", "custom_status_modify"]>, z.ZodEnum<["glossary", "create_branches"]>]>;
|
|
24
3
|
export type PermissionId = z.infer<typeof PERMISSION_ID_SCHEMA>;
|
|
25
|
-
export declare const PERMISSION_SCOPE_SCHEMA: z.ZodUnion<
|
|
4
|
+
export declare const PERMISSION_SCOPE_SCHEMA: z.ZodUnion<[z.ZodLiteral<"project">, z.ZodLiteral<"team">, z.ZodLiteral<"user">]>;
|
|
26
5
|
export type PermissionScope = z.infer<typeof PERMISSION_SCOPE_SCHEMA>;
|
|
27
6
|
export declare const PERMISSION_DETAILS_SCHEMA: z.ZodObject<{
|
|
28
|
-
id: z.ZodUnion<
|
|
29
|
-
|
|
30
|
-
contributors: "contributors";
|
|
31
|
-
download: "download";
|
|
32
|
-
upload: "upload";
|
|
33
|
-
activity: "activity";
|
|
34
|
-
glossary_edit: "glossary_edit";
|
|
35
|
-
glossary_delete: "glossary_delete";
|
|
36
|
-
settings: "settings";
|
|
37
|
-
statistics: "statistics";
|
|
38
|
-
manage_keys: "manage_keys";
|
|
39
|
-
screenshots: "screenshots";
|
|
40
|
-
branches_create: "branches_create";
|
|
41
|
-
branches_merge: "branches_merge";
|
|
42
|
-
manage_languages: "manage_languages";
|
|
43
|
-
review: "review";
|
|
44
|
-
branches_main_modify: "branches_main_modify";
|
|
45
|
-
custom_status_modify: "custom_status_modify";
|
|
46
|
-
}>, z.ZodEnum<{
|
|
47
|
-
glossary: "glossary";
|
|
48
|
-
create_branches: "create_branches";
|
|
49
|
-
}>]>;
|
|
50
|
-
scope: z.ZodUnion<readonly [z.ZodLiteral<"project">, z.ZodLiteral<"team">, z.ZodLiteral<"user">]>;
|
|
7
|
+
id: z.ZodUnion<[z.ZodEnum<["tasks", "upload", "activity", "download", "glossary_edit", "glossary_delete", "settings", "statistics", "manage_keys", "screenshots", "contributors", "branches_create", "branches_merge", "manage_languages", "review", "branches_main_modify", "custom_status_modify"]>, z.ZodEnum<["glossary", "create_branches"]>]>;
|
|
8
|
+
scope: z.ZodUnion<[z.ZodLiteral<"project">, z.ZodLiteral<"team">, z.ZodLiteral<"user">]>;
|
|
51
9
|
title: z.ZodString;
|
|
52
10
|
group: z.ZodString;
|
|
53
11
|
description: z.ZodNullable<z.ZodString>;
|
|
54
12
|
new_permission: z.ZodBoolean;
|
|
55
13
|
does_set_all_read_only_languages: z.ZodBoolean;
|
|
56
14
|
is_hidden: z.ZodBoolean;
|
|
57
|
-
}, z.
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
id: "tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify";
|
|
17
|
+
title: string;
|
|
18
|
+
group: string;
|
|
19
|
+
scope: "project" | "team" | "user";
|
|
20
|
+
description: string | null;
|
|
21
|
+
new_permission: boolean;
|
|
22
|
+
does_set_all_read_only_languages: boolean;
|
|
23
|
+
is_hidden: boolean;
|
|
24
|
+
}, {
|
|
25
|
+
id: "tasks" | "contributors" | "download" | "glossary" | "create_branches" | "upload" | "activity" | "glossary_edit" | "glossary_delete" | "settings" | "statistics" | "manage_keys" | "screenshots" | "branches_create" | "branches_merge" | "manage_languages" | "review" | "branches_main_modify" | "custom_status_modify";
|
|
26
|
+
title: string;
|
|
27
|
+
group: string;
|
|
28
|
+
scope: "project" | "team" | "user";
|
|
29
|
+
description: string | null;
|
|
30
|
+
new_permission: boolean;
|
|
31
|
+
does_set_all_read_only_languages: boolean;
|
|
32
|
+
is_hidden: boolean;
|
|
33
|
+
}>;
|
|
58
34
|
export type PermissionDetails = z.infer<typeof PERMISSION_DETAILS_SCHEMA>;
|