@lokalise/harmony 1.24.1 → 1.25.0
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 +720 -708
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedProjectContributor.d.ts +1 -1
- package/dist/types/src/features/publicApi/contributors.d.ts +186 -14
- package/dist/types/src/features/publicApi/hooks/useGetScoreQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListContributorsQuery.d.ts +40 -0
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +5 -5
- package/dist/types/src/features/publicApi/score.d.ts +5 -5
- package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +124 -10
- package/dist/types/src/features/publicApi/types/scoreTypes.d.ts +9 -9
- package/package.json +1 -1
@@ -11,6 +11,7 @@ import { Wretch } from 'wretch';
|
|
11
11
|
* @param projectId - The ID of the project to retrieve the contributor information.
|
12
12
|
*/
|
13
13
|
export declare function useAuthenticatedProjectContributor<T>(wretchClient: Wretch<T>, headers: HeaderBuilder<ContributorApiBaseHeader>, projectId: string): import('@tanstack/react-query').UseQueryResult<{
|
14
|
+
project_id: string;
|
14
15
|
contributor: {
|
15
16
|
email: string;
|
16
17
|
user_id: number;
|
@@ -27,5 +28,4 @@ export declare function useAuthenticatedProjectContributor<T>(wretchClient: Wret
|
|
27
28
|
is_admin: boolean;
|
28
29
|
is_reviewer: boolean;
|
29
30
|
};
|
30
|
-
project_id: string;
|
31
31
|
}, undefined>;
|
@@ -1,18 +1,190 @@
|
|
1
|
+
/**
|
2
|
+
* Public API router definition for retrieving a list of contributors
|
3
|
+
*/
|
4
|
+
export declare const listContributors: import('@lokalise/api-contracts').GetRouteDefinition<{
|
5
|
+
project: {
|
6
|
+
id: string;
|
7
|
+
};
|
8
|
+
}, import('zod').ZodObject<{
|
9
|
+
project_id: import('zod').ZodString;
|
10
|
+
contributors: import('zod').ZodArray<import('zod').ZodObject<{
|
11
|
+
user_id: import('zod').ZodNumber;
|
12
|
+
email: import('zod').ZodString;
|
13
|
+
fullname: import('zod').ZodString;
|
14
|
+
created_at: import('zod').ZodString;
|
15
|
+
created_at_timestamp: import('zod').ZodNumber;
|
16
|
+
admin_rights: import('zod').ZodArray<import('zod').ZodString, "many">;
|
17
|
+
languages: import('zod').ZodArray<import('zod').ZodObject<{
|
18
|
+
lang_id: import('zod').ZodNumber;
|
19
|
+
lang_iso: import('zod').ZodString;
|
20
|
+
lang_name: import('zod').ZodString;
|
21
|
+
is_writable: import('zod').ZodUnion<[import('zod').ZodLiteral<0>, import('zod').ZodLiteral<1>]>;
|
22
|
+
}, "strip", import('zod').ZodTypeAny, {
|
23
|
+
lang_id: number;
|
24
|
+
lang_iso: string;
|
25
|
+
lang_name: string;
|
26
|
+
is_writable: 0 | 1;
|
27
|
+
}, {
|
28
|
+
lang_id: number;
|
29
|
+
lang_iso: string;
|
30
|
+
lang_name: string;
|
31
|
+
is_writable: 0 | 1;
|
32
|
+
}>, "many">;
|
33
|
+
is_admin: import('zod').ZodBoolean;
|
34
|
+
is_reviewer: import('zod').ZodBoolean;
|
35
|
+
}, "strip", import('zod').ZodTypeAny, {
|
36
|
+
email: string;
|
37
|
+
user_id: number;
|
38
|
+
fullname: string;
|
39
|
+
created_at: string;
|
40
|
+
created_at_timestamp: number;
|
41
|
+
admin_rights: string[];
|
42
|
+
languages: {
|
43
|
+
lang_id: number;
|
44
|
+
lang_iso: string;
|
45
|
+
lang_name: string;
|
46
|
+
is_writable: 0 | 1;
|
47
|
+
}[];
|
48
|
+
is_admin: boolean;
|
49
|
+
is_reviewer: boolean;
|
50
|
+
}, {
|
51
|
+
email: string;
|
52
|
+
user_id: number;
|
53
|
+
fullname: string;
|
54
|
+
created_at: string;
|
55
|
+
created_at_timestamp: number;
|
56
|
+
admin_rights: string[];
|
57
|
+
languages: {
|
58
|
+
lang_id: number;
|
59
|
+
lang_iso: string;
|
60
|
+
lang_name: string;
|
61
|
+
is_writable: 0 | 1;
|
62
|
+
}[];
|
63
|
+
is_admin: boolean;
|
64
|
+
is_reviewer: boolean;
|
65
|
+
}>, "many">;
|
66
|
+
}, "strip", import('zod').ZodTypeAny, {
|
67
|
+
contributors: {
|
68
|
+
email: string;
|
69
|
+
user_id: number;
|
70
|
+
fullname: string;
|
71
|
+
created_at: string;
|
72
|
+
created_at_timestamp: number;
|
73
|
+
admin_rights: string[];
|
74
|
+
languages: {
|
75
|
+
lang_id: number;
|
76
|
+
lang_iso: string;
|
77
|
+
lang_name: string;
|
78
|
+
is_writable: 0 | 1;
|
79
|
+
}[];
|
80
|
+
is_admin: boolean;
|
81
|
+
is_reviewer: boolean;
|
82
|
+
}[];
|
83
|
+
project_id: string;
|
84
|
+
}, {
|
85
|
+
contributors: {
|
86
|
+
email: string;
|
87
|
+
user_id: number;
|
88
|
+
fullname: string;
|
89
|
+
created_at: string;
|
90
|
+
created_at_timestamp: number;
|
91
|
+
admin_rights: string[];
|
92
|
+
languages: {
|
93
|
+
lang_id: number;
|
94
|
+
lang_iso: string;
|
95
|
+
lang_name: string;
|
96
|
+
is_writable: 0 | 1;
|
97
|
+
}[];
|
98
|
+
is_admin: boolean;
|
99
|
+
is_reviewer: boolean;
|
100
|
+
}[];
|
101
|
+
project_id: string;
|
102
|
+
}>, import('zod').ZodObject<{
|
103
|
+
project: import('zod').ZodObject<{
|
104
|
+
id: import('zod').ZodString;
|
105
|
+
}, "strip", import('zod').ZodTypeAny, {
|
106
|
+
id: string;
|
107
|
+
}, {
|
108
|
+
id: string;
|
109
|
+
}>;
|
110
|
+
}, "strip", import('zod').ZodTypeAny, {
|
111
|
+
project: {
|
112
|
+
id: string;
|
113
|
+
};
|
114
|
+
}, {
|
115
|
+
project: {
|
116
|
+
id: string;
|
117
|
+
};
|
118
|
+
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
119
|
+
authorization: import('zod').ZodString;
|
120
|
+
}, "strip", import('zod').ZodTypeAny, {
|
121
|
+
authorization: string;
|
122
|
+
}, {
|
123
|
+
authorization: string;
|
124
|
+
}>, import('zod').ZodObject<{
|
125
|
+
AUTHORIZATION: import('zod').ZodString;
|
126
|
+
}, "strip", import('zod').ZodTypeAny, {
|
127
|
+
AUTHORIZATION: string;
|
128
|
+
}, {
|
129
|
+
AUTHORIZATION: string;
|
130
|
+
}>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
131
|
+
'X-API-Token': import('zod').ZodString;
|
132
|
+
}, "strip", import('zod').ZodTypeAny, {
|
133
|
+
'X-API-Token': string;
|
134
|
+
}, {
|
135
|
+
'X-API-Token': string;
|
136
|
+
}>, import('zod').ZodObject<{
|
137
|
+
'X-Api-Token': import('zod').ZodString;
|
138
|
+
}, "strip", import('zod').ZodTypeAny, {
|
139
|
+
'X-Api-Token': string;
|
140
|
+
}, {
|
141
|
+
'X-Api-Token': string;
|
142
|
+
}>, import('zod').ZodObject<{
|
143
|
+
'x-api-token': import('zod').ZodString;
|
144
|
+
}, "strip", import('zod').ZodTypeAny, {
|
145
|
+
'x-api-token': string;
|
146
|
+
}, {
|
147
|
+
'x-api-token': string;
|
148
|
+
}>, import('zod').ZodObject<{
|
149
|
+
'X-API-TOKEN': import('zod').ZodString;
|
150
|
+
}, "strip", import('zod').ZodTypeAny, {
|
151
|
+
'X-API-TOKEN': string;
|
152
|
+
}, {
|
153
|
+
'X-API-TOKEN': string;
|
154
|
+
}>]>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
155
|
+
'X-Lokalise-Plugin': import('zod').ZodString;
|
156
|
+
}, "strip", import('zod').ZodTypeAny, {
|
157
|
+
'X-Lokalise-Plugin': string;
|
158
|
+
}, {
|
159
|
+
'X-Lokalise-Plugin': string;
|
160
|
+
}>, import('zod').ZodObject<{
|
161
|
+
'x-lokalise-plugin': import('zod').ZodString;
|
162
|
+
}, "strip", import('zod').ZodTypeAny, {
|
163
|
+
'x-lokalise-plugin': string;
|
164
|
+
}, {
|
165
|
+
'x-lokalise-plugin': string;
|
166
|
+
}>, import('zod').ZodObject<{
|
167
|
+
'X-LOKALISE-PLUGIN': import('zod').ZodString;
|
168
|
+
}, "strip", import('zod').ZodTypeAny, {
|
169
|
+
'X-LOKALISE-PLUGIN': string;
|
170
|
+
}, {
|
171
|
+
'X-LOKALISE-PLUGIN': string;
|
172
|
+
}>]>>, false, false>;
|
1
173
|
/**
|
2
174
|
* Public API router definition for retrieving a project contributor
|
3
175
|
*/
|
4
176
|
export declare const retrieveContributor: import('@lokalise/api-contracts').GetRouteDefinition<{
|
5
177
|
project: {
|
6
|
-
uuid: string;
|
7
|
-
} | {
|
8
178
|
id: string;
|
179
|
+
} | {
|
180
|
+
uuid: string;
|
9
181
|
};
|
10
182
|
contributor: {
|
11
|
-
|
183
|
+
id: number;
|
12
184
|
} | {
|
13
185
|
uuid: string;
|
14
186
|
} | {
|
15
|
-
|
187
|
+
authenticatedUser: true;
|
16
188
|
};
|
17
189
|
}, import('zod').ZodObject<{
|
18
190
|
project_id: import('zod').ZodString;
|
@@ -73,6 +245,7 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
73
245
|
is_reviewer: boolean;
|
74
246
|
}>;
|
75
247
|
}, "strip", import('zod').ZodTypeAny, {
|
248
|
+
project_id: string;
|
76
249
|
contributor: {
|
77
250
|
email: string;
|
78
251
|
user_id: number;
|
@@ -89,8 +262,8 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
89
262
|
is_admin: boolean;
|
90
263
|
is_reviewer: boolean;
|
91
264
|
};
|
92
|
-
project_id: string;
|
93
265
|
}, {
|
266
|
+
project_id: string;
|
94
267
|
contributor: {
|
95
268
|
email: string;
|
96
269
|
user_id: number;
|
@@ -107,7 +280,6 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
107
280
|
is_admin: boolean;
|
108
281
|
is_reviewer: boolean;
|
109
282
|
};
|
110
|
-
project_id: string;
|
111
283
|
}>, import('zod').ZodObject<{
|
112
284
|
project: import('zod').ZodUnion<[import('zod').ZodObject<{
|
113
285
|
uuid: import('zod').ZodString;
|
@@ -143,29 +315,29 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
143
315
|
}>]>;
|
144
316
|
}, "strip", import('zod').ZodTypeAny, {
|
145
317
|
project: {
|
146
|
-
uuid: string;
|
147
|
-
} | {
|
148
318
|
id: string;
|
319
|
+
} | {
|
320
|
+
uuid: string;
|
149
321
|
};
|
150
322
|
contributor: {
|
151
|
-
|
323
|
+
id: number;
|
152
324
|
} | {
|
153
325
|
uuid: string;
|
154
326
|
} | {
|
155
|
-
|
327
|
+
authenticatedUser: true;
|
156
328
|
};
|
157
329
|
}, {
|
158
330
|
project: {
|
159
|
-
uuid: string;
|
160
|
-
} | {
|
161
331
|
id: string;
|
332
|
+
} | {
|
333
|
+
uuid: string;
|
162
334
|
};
|
163
335
|
contributor: {
|
164
|
-
|
336
|
+
id: number;
|
165
337
|
} | {
|
166
338
|
uuid: string;
|
167
339
|
} | {
|
168
|
-
|
340
|
+
authenticatedUser: true;
|
169
341
|
};
|
170
342
|
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
171
343
|
authorization: import('zod').ZodString;
|
@@ -13,7 +13,7 @@ export declare function useGetScoreQuery<T>(wretchClient: Wretch<T>, headers: He
|
|
13
13
|
issues: {
|
14
14
|
category: string;
|
15
15
|
comment: string;
|
16
|
-
severity: "critical" | "major" | "minor";
|
16
|
+
severity: "critical" | "major" | "minor" | "neutral";
|
17
17
|
}[];
|
18
18
|
score: number;
|
19
19
|
hasMajorIssue: boolean;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { HeaderBuilder } from '../../auth/core/headers/headerBuilder';
|
2
|
+
import { ContributorApiBaseHeader, ListContributorsPathParams, ListContributorsResponse } from '../types/contributorTypes';
|
3
|
+
import { ApiQueryOverrides } from '../../../utils/types/apiQueryOverrides';
|
4
|
+
import { Wretch } from 'wretch';
|
5
|
+
/**
|
6
|
+
* Factory for creating keys for the useRetrieveContributorQuery hook
|
7
|
+
*/
|
8
|
+
export declare const listContributorsKeys: {
|
9
|
+
projectUserKey: (params: ListContributorsPathParams) => readonly ["ListContributors", {
|
10
|
+
project: {
|
11
|
+
id: string;
|
12
|
+
};
|
13
|
+
}];
|
14
|
+
};
|
15
|
+
/**
|
16
|
+
* A react-router wrapper about the listContributors public API endpoint
|
17
|
+
*
|
18
|
+
* @param wretchClient - Wretch instance configured to a public API instance.
|
19
|
+
* @param headers - A header builder instance to resolve headers for the request.
|
20
|
+
* @param overrides - Additional options to pass to the query.
|
21
|
+
*/
|
22
|
+
export declare const useListContributorsQuery: <T>(wretchClient: Wretch<T>, headers: HeaderBuilder<ContributorApiBaseHeader>, overrides: ApiQueryOverrides<ListContributorsResponse, typeof listContributorsKeys>) => import('@tanstack/react-query').UseQueryResult<{
|
23
|
+
contributors: {
|
24
|
+
email: string;
|
25
|
+
user_id: number;
|
26
|
+
fullname: string;
|
27
|
+
created_at: string;
|
28
|
+
created_at_timestamp: number;
|
29
|
+
admin_rights: string[];
|
30
|
+
languages: {
|
31
|
+
lang_id: number;
|
32
|
+
lang_iso: string;
|
33
|
+
lang_name: string;
|
34
|
+
is_writable: 0 | 1;
|
35
|
+
}[];
|
36
|
+
is_admin: boolean;
|
37
|
+
is_reviewer: boolean;
|
38
|
+
}[];
|
39
|
+
project_id: string;
|
40
|
+
}, undefined>;
|
@@ -8,16 +8,16 @@ import { Wretch } from 'wretch';
|
|
8
8
|
export declare const retrieveContributorKeys: {
|
9
9
|
projectUserKey: (params: RetrieveContributorPathParams) => readonly ["RetrieveContributor", {
|
10
10
|
project: {
|
11
|
-
uuid: string;
|
12
|
-
} | {
|
13
11
|
id: string;
|
12
|
+
} | {
|
13
|
+
uuid: string;
|
14
14
|
};
|
15
15
|
contributor: {
|
16
|
-
|
16
|
+
id: number;
|
17
17
|
} | {
|
18
18
|
uuid: string;
|
19
19
|
} | {
|
20
|
-
|
20
|
+
authenticatedUser: true;
|
21
21
|
};
|
22
22
|
}];
|
23
23
|
};
|
@@ -29,6 +29,7 @@ export declare const retrieveContributorKeys: {
|
|
29
29
|
* @param overrides - Additional options to pass to the query.
|
30
30
|
*/
|
31
31
|
export declare const useRetrieveContributorQuery: <T>(wretchClient: Wretch<T>, headers: HeaderBuilder<ContributorApiBaseHeader>, overrides: ApiQueryOverrides<RetrieveContributorResponse, typeof retrieveContributorKeys>) => import('@tanstack/react-query').UseQueryResult<{
|
32
|
+
project_id: string;
|
32
33
|
contributor: {
|
33
34
|
email: string;
|
34
35
|
user_id: number;
|
@@ -45,5 +46,4 @@ export declare const useRetrieveContributorQuery: <T>(wretchClient: Wretch<T>, h
|
|
45
46
|
is_admin: boolean;
|
46
47
|
is_reviewer: boolean;
|
47
48
|
};
|
48
|
-
project_id: string;
|
49
49
|
}, undefined>;
|
@@ -8,21 +8,21 @@ export declare const getScore: import('@lokalise/universal-ts-utils/node').GetRo
|
|
8
8
|
issues: import('zod').ZodArray<import('zod').ZodObject<{
|
9
9
|
category: import('zod').ZodString;
|
10
10
|
comment: import('zod').ZodString;
|
11
|
-
severity: import('zod').ZodEnum<["critical", "major", "minor"]>;
|
11
|
+
severity: import('zod').ZodEnum<["critical", "major", "minor", "neutral"]>;
|
12
12
|
}, "strip", import('zod').ZodTypeAny, {
|
13
13
|
category: string;
|
14
14
|
comment: string;
|
15
|
-
severity: "critical" | "major" | "minor";
|
15
|
+
severity: "critical" | "major" | "minor" | "neutral";
|
16
16
|
}, {
|
17
17
|
category: string;
|
18
18
|
comment: string;
|
19
|
-
severity: "critical" | "major" | "minor";
|
19
|
+
severity: "critical" | "major" | "minor" | "neutral";
|
20
20
|
}>, "many">;
|
21
21
|
}, "strip", import('zod').ZodTypeAny, {
|
22
22
|
issues: {
|
23
23
|
category: string;
|
24
24
|
comment: string;
|
25
|
-
severity: "critical" | "major" | "minor";
|
25
|
+
severity: "critical" | "major" | "minor" | "neutral";
|
26
26
|
}[];
|
27
27
|
score: number;
|
28
28
|
hasMajorIssue: boolean;
|
@@ -31,7 +31,7 @@ export declare const getScore: import('@lokalise/universal-ts-utils/node').GetRo
|
|
31
31
|
issues: {
|
32
32
|
category: string;
|
33
33
|
comment: string;
|
34
|
-
severity: "critical" | "major" | "minor";
|
34
|
+
severity: "critical" | "major" | "minor" | "neutral";
|
35
35
|
}[];
|
36
36
|
score: number;
|
37
37
|
hasMajorIssue: boolean;
|
@@ -163,6 +163,120 @@ 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.ZodObject<{
|
168
|
+
id: z.ZodString;
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
170
|
+
id: string;
|
171
|
+
}, {
|
172
|
+
id: string;
|
173
|
+
}>;
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
175
|
+
project: {
|
176
|
+
id: string;
|
177
|
+
};
|
178
|
+
}, {
|
179
|
+
project: {
|
180
|
+
id: string;
|
181
|
+
};
|
182
|
+
}>;
|
183
|
+
export type ListContributorsPathParams = z.infer<typeof LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA>;
|
184
|
+
export declare const LIST_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
|
185
|
+
project_id: z.ZodString;
|
186
|
+
contributors: z.ZodArray<z.ZodObject<{
|
187
|
+
user_id: z.ZodNumber;
|
188
|
+
email: z.ZodString;
|
189
|
+
fullname: z.ZodString;
|
190
|
+
created_at: z.ZodString;
|
191
|
+
created_at_timestamp: z.ZodNumber;
|
192
|
+
admin_rights: z.ZodArray<z.ZodString, "many">;
|
193
|
+
languages: z.ZodArray<z.ZodObject<{
|
194
|
+
lang_id: z.ZodNumber;
|
195
|
+
lang_iso: z.ZodString;
|
196
|
+
lang_name: z.ZodString;
|
197
|
+
is_writable: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
198
|
+
}, "strip", z.ZodTypeAny, {
|
199
|
+
lang_id: number;
|
200
|
+
lang_iso: string;
|
201
|
+
lang_name: string;
|
202
|
+
is_writable: 0 | 1;
|
203
|
+
}, {
|
204
|
+
lang_id: number;
|
205
|
+
lang_iso: string;
|
206
|
+
lang_name: string;
|
207
|
+
is_writable: 0 | 1;
|
208
|
+
}>, "many">;
|
209
|
+
is_admin: z.ZodBoolean;
|
210
|
+
is_reviewer: z.ZodBoolean;
|
211
|
+
}, "strip", z.ZodTypeAny, {
|
212
|
+
email: string;
|
213
|
+
user_id: number;
|
214
|
+
fullname: string;
|
215
|
+
created_at: string;
|
216
|
+
created_at_timestamp: number;
|
217
|
+
admin_rights: string[];
|
218
|
+
languages: {
|
219
|
+
lang_id: number;
|
220
|
+
lang_iso: string;
|
221
|
+
lang_name: string;
|
222
|
+
is_writable: 0 | 1;
|
223
|
+
}[];
|
224
|
+
is_admin: boolean;
|
225
|
+
is_reviewer: boolean;
|
226
|
+
}, {
|
227
|
+
email: string;
|
228
|
+
user_id: number;
|
229
|
+
fullname: string;
|
230
|
+
created_at: string;
|
231
|
+
created_at_timestamp: number;
|
232
|
+
admin_rights: string[];
|
233
|
+
languages: {
|
234
|
+
lang_id: number;
|
235
|
+
lang_iso: string;
|
236
|
+
lang_name: string;
|
237
|
+
is_writable: 0 | 1;
|
238
|
+
}[];
|
239
|
+
is_admin: boolean;
|
240
|
+
is_reviewer: boolean;
|
241
|
+
}>, "many">;
|
242
|
+
}, "strip", z.ZodTypeAny, {
|
243
|
+
contributors: {
|
244
|
+
email: string;
|
245
|
+
user_id: number;
|
246
|
+
fullname: string;
|
247
|
+
created_at: string;
|
248
|
+
created_at_timestamp: number;
|
249
|
+
admin_rights: string[];
|
250
|
+
languages: {
|
251
|
+
lang_id: number;
|
252
|
+
lang_iso: string;
|
253
|
+
lang_name: string;
|
254
|
+
is_writable: 0 | 1;
|
255
|
+
}[];
|
256
|
+
is_admin: boolean;
|
257
|
+
is_reviewer: boolean;
|
258
|
+
}[];
|
259
|
+
project_id: string;
|
260
|
+
}, {
|
261
|
+
contributors: {
|
262
|
+
email: string;
|
263
|
+
user_id: number;
|
264
|
+
fullname: string;
|
265
|
+
created_at: string;
|
266
|
+
created_at_timestamp: number;
|
267
|
+
admin_rights: string[];
|
268
|
+
languages: {
|
269
|
+
lang_id: number;
|
270
|
+
lang_iso: string;
|
271
|
+
lang_name: string;
|
272
|
+
is_writable: 0 | 1;
|
273
|
+
}[];
|
274
|
+
is_admin: boolean;
|
275
|
+
is_reviewer: boolean;
|
276
|
+
}[];
|
277
|
+
project_id: string;
|
278
|
+
}>;
|
279
|
+
export type ListContributorsResponse = z.infer<typeof LIST_CONTRIBUTORS_RESPONSE_SCHEMA>;
|
166
280
|
export declare const RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
167
281
|
project: z.ZodUnion<[z.ZodObject<{
|
168
282
|
uuid: z.ZodString;
|
@@ -198,29 +312,29 @@ export declare const RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
|
198
312
|
}>]>;
|
199
313
|
}, "strip", z.ZodTypeAny, {
|
200
314
|
project: {
|
201
|
-
uuid: string;
|
202
|
-
} | {
|
203
315
|
id: string;
|
316
|
+
} | {
|
317
|
+
uuid: string;
|
204
318
|
};
|
205
319
|
contributor: {
|
206
|
-
|
320
|
+
id: number;
|
207
321
|
} | {
|
208
322
|
uuid: string;
|
209
323
|
} | {
|
210
|
-
|
324
|
+
authenticatedUser: true;
|
211
325
|
};
|
212
326
|
}, {
|
213
327
|
project: {
|
214
|
-
uuid: string;
|
215
|
-
} | {
|
216
328
|
id: string;
|
329
|
+
} | {
|
330
|
+
uuid: string;
|
217
331
|
};
|
218
332
|
contributor: {
|
219
|
-
|
333
|
+
id: number;
|
220
334
|
} | {
|
221
335
|
uuid: string;
|
222
336
|
} | {
|
223
|
-
|
337
|
+
authenticatedUser: true;
|
224
338
|
};
|
225
339
|
}>;
|
226
340
|
export type RetrieveContributorPathParams = z.infer<typeof RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA>;
|
@@ -283,6 +397,7 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
|
|
283
397
|
is_reviewer: boolean;
|
284
398
|
}>;
|
285
399
|
}, "strip", z.ZodTypeAny, {
|
400
|
+
project_id: string;
|
286
401
|
contributor: {
|
287
402
|
email: string;
|
288
403
|
user_id: number;
|
@@ -299,8 +414,8 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
|
|
299
414
|
is_admin: boolean;
|
300
415
|
is_reviewer: boolean;
|
301
416
|
};
|
302
|
-
project_id: string;
|
303
417
|
}, {
|
418
|
+
project_id: string;
|
304
419
|
contributor: {
|
305
420
|
email: string;
|
306
421
|
user_id: number;
|
@@ -317,7 +432,6 @@ export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
|
|
317
432
|
is_admin: boolean;
|
318
433
|
is_reviewer: boolean;
|
319
434
|
};
|
320
|
-
project_id: string;
|
321
435
|
}>;
|
322
436
|
export type RetrieveContributorResponse = z.infer<typeof RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA>;
|
323
437
|
export {};
|
@@ -10,20 +10,20 @@ export declare const GET_SCORE_REQUEST_QUERY_SCHEMA: z.ZodObject<{
|
|
10
10
|
translationId: number;
|
11
11
|
}>;
|
12
12
|
export type GetScoreRequestQuery = z.infer<typeof GET_SCORE_REQUEST_QUERY_SCHEMA>;
|
13
|
-
export declare const SEVERITY_ENUM: z.ZodEnum<["critical", "major", "minor"]>;
|
13
|
+
export declare const SEVERITY_ENUM: z.ZodEnum<["critical", "major", "minor", "neutral"]>;
|
14
14
|
export type Severity = z.infer<typeof SEVERITY_ENUM>;
|
15
15
|
export declare const ISSUE_SCHEMA: z.ZodObject<{
|
16
16
|
category: z.ZodString;
|
17
17
|
comment: z.ZodString;
|
18
|
-
severity: z.ZodEnum<["critical", "major", "minor"]>;
|
18
|
+
severity: z.ZodEnum<["critical", "major", "minor", "neutral"]>;
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
20
20
|
category: string;
|
21
21
|
comment: string;
|
22
|
-
severity: "critical" | "major" | "minor";
|
22
|
+
severity: "critical" | "major" | "minor" | "neutral";
|
23
23
|
}, {
|
24
24
|
category: string;
|
25
25
|
comment: string;
|
26
|
-
severity: "critical" | "major" | "minor";
|
26
|
+
severity: "critical" | "major" | "minor" | "neutral";
|
27
27
|
}>;
|
28
28
|
export type Issue = z.infer<typeof ISSUE_SCHEMA>;
|
29
29
|
export declare const GET_SCORE_RESPONSE_SCHEMA: z.ZodObject<{
|
@@ -33,21 +33,21 @@ export declare const GET_SCORE_RESPONSE_SCHEMA: z.ZodObject<{
|
|
33
33
|
issues: z.ZodArray<z.ZodObject<{
|
34
34
|
category: z.ZodString;
|
35
35
|
comment: z.ZodString;
|
36
|
-
severity: z.ZodEnum<["critical", "major", "minor"]>;
|
36
|
+
severity: z.ZodEnum<["critical", "major", "minor", "neutral"]>;
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
38
38
|
category: string;
|
39
39
|
comment: string;
|
40
|
-
severity: "critical" | "major" | "minor";
|
40
|
+
severity: "critical" | "major" | "minor" | "neutral";
|
41
41
|
}, {
|
42
42
|
category: string;
|
43
43
|
comment: string;
|
44
|
-
severity: "critical" | "major" | "minor";
|
44
|
+
severity: "critical" | "major" | "minor" | "neutral";
|
45
45
|
}>, "many">;
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
47
47
|
issues: {
|
48
48
|
category: string;
|
49
49
|
comment: string;
|
50
|
-
severity: "critical" | "major" | "minor";
|
50
|
+
severity: "critical" | "major" | "minor" | "neutral";
|
51
51
|
}[];
|
52
52
|
score: number;
|
53
53
|
hasMajorIssue: boolean;
|
@@ -56,7 +56,7 @@ export declare const GET_SCORE_RESPONSE_SCHEMA: z.ZodObject<{
|
|
56
56
|
issues: {
|
57
57
|
category: string;
|
58
58
|
comment: string;
|
59
|
-
severity: "critical" | "major" | "minor";
|
59
|
+
severity: "critical" | "major" | "minor" | "neutral";
|
60
60
|
}[];
|
61
61
|
score: number;
|
62
62
|
hasMajorIssue: boolean;
|