@lokalise/harmony 1.20.2 → 1.21.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 +415 -400
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedProjectContributor.d.ts +2 -2
- package/dist/types/src/features/publicApi/contributors.d.ts +121 -62
- package/dist/types/src/features/publicApi/hooks/useCreateProjectMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +18 -5
- package/dist/types/src/features/publicApi/hooks/useRetrieveProjectQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useUpdateProjectMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/projects.d.ts +10 -10
- package/dist/types/src/features/publicApi/teamUsers.d.ts +42 -43
- package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +104 -8
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +6 -6
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +11 -0
- package/package.json +1 -1
@@ -11,7 +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
|
-
|
14
|
+
contributor: {
|
15
15
|
email: string;
|
16
16
|
user_id: number;
|
17
17
|
fullname: string;
|
@@ -26,6 +26,6 @@ export declare function useAuthenticatedProjectContributor<T>(wretchClient: Wret
|
|
26
26
|
}[];
|
27
27
|
is_admin: boolean;
|
28
28
|
is_reviewer: boolean;
|
29
|
-
}
|
29
|
+
};
|
30
30
|
project_id: string;
|
31
31
|
}, undefined>;
|
@@ -1,25 +1,34 @@
|
|
1
|
-
import { z } from 'zod';
|
2
1
|
/**
|
3
2
|
* Public API router definition for retrieving a project contributor
|
4
3
|
*/
|
5
4
|
export declare const retrieveContributor: import('@lokalise/universal-ts-utils/node').GetRouteDefinition<{
|
6
|
-
|
7
|
-
|
8
|
-
}
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
5
|
+
project: {
|
6
|
+
uuid: string;
|
7
|
+
} | {
|
8
|
+
id: string;
|
9
|
+
};
|
10
|
+
contributor: {
|
11
|
+
authenticatedUser: true;
|
12
|
+
} | {
|
13
|
+
uuid: string;
|
14
|
+
} | {
|
15
|
+
id: number;
|
16
|
+
};
|
17
|
+
}, import('zod').ZodObject<{
|
18
|
+
project_id: import('zod').ZodString;
|
19
|
+
contributor: import('zod').ZodObject<{
|
20
|
+
user_id: import('zod').ZodNumber;
|
21
|
+
email: import('zod').ZodString;
|
22
|
+
fullname: import('zod').ZodString;
|
23
|
+
created_at: import('zod').ZodString;
|
24
|
+
created_at_timestamp: import('zod').ZodNumber;
|
25
|
+
admin_rights: import('zod').ZodArray<import('zod').ZodString, "many">;
|
26
|
+
languages: import('zod').ZodArray<import('zod').ZodObject<{
|
27
|
+
lang_id: import('zod').ZodNumber;
|
28
|
+
lang_iso: import('zod').ZodString;
|
29
|
+
lang_name: import('zod').ZodString;
|
30
|
+
is_writable: import('zod').ZodUnion<[import('zod').ZodLiteral<0>, import('zod').ZodLiteral<1>]>;
|
31
|
+
}, "strip", import('zod').ZodTypeAny, {
|
23
32
|
lang_id: number;
|
24
33
|
lang_iso: string;
|
25
34
|
lang_name: string;
|
@@ -30,9 +39,9 @@ export declare const retrieveContributor: import('@lokalise/universal-ts-utils/n
|
|
30
39
|
lang_name: string;
|
31
40
|
is_writable: 0 | 1;
|
32
41
|
}>, "many">;
|
33
|
-
is_admin:
|
34
|
-
is_reviewer:
|
35
|
-
}, "strip",
|
42
|
+
is_admin: import('zod').ZodBoolean;
|
43
|
+
is_reviewer: import('zod').ZodBoolean;
|
44
|
+
}, "strip", import('zod').ZodTypeAny, {
|
36
45
|
email: string;
|
37
46
|
user_id: number;
|
38
47
|
fullname: string;
|
@@ -62,9 +71,9 @@ export declare const retrieveContributor: import('@lokalise/universal-ts-utils/n
|
|
62
71
|
}[];
|
63
72
|
is_admin: boolean;
|
64
73
|
is_reviewer: boolean;
|
65
|
-
}
|
66
|
-
}, "strip",
|
67
|
-
|
74
|
+
}>;
|
75
|
+
}, "strip", import('zod').ZodTypeAny, {
|
76
|
+
contributor: {
|
68
77
|
email: string;
|
69
78
|
user_id: number;
|
70
79
|
fullname: string;
|
@@ -79,10 +88,10 @@ export declare const retrieveContributor: import('@lokalise/universal-ts-utils/n
|
|
79
88
|
}[];
|
80
89
|
is_admin: boolean;
|
81
90
|
is_reviewer: boolean;
|
82
|
-
}
|
91
|
+
};
|
83
92
|
project_id: string;
|
84
93
|
}, {
|
85
|
-
|
94
|
+
contributor: {
|
86
95
|
email: string;
|
87
96
|
user_id: number;
|
88
97
|
fullname: string;
|
@@ -97,68 +106,118 @@ export declare const retrieveContributor: import('@lokalise/universal-ts-utils/n
|
|
97
106
|
}[];
|
98
107
|
is_admin: boolean;
|
99
108
|
is_reviewer: boolean;
|
100
|
-
}
|
109
|
+
};
|
101
110
|
project_id: string;
|
102
|
-
}>,
|
103
|
-
|
104
|
-
|
105
|
-
}, "strip",
|
106
|
-
|
107
|
-
|
111
|
+
}>, import('zod').ZodObject<{
|
112
|
+
project: import('zod').ZodUnion<[import('zod').ZodObject<{
|
113
|
+
uuid: import('zod').ZodString;
|
114
|
+
}, "strip", import('zod').ZodTypeAny, {
|
115
|
+
uuid: string;
|
116
|
+
}, {
|
117
|
+
uuid: string;
|
118
|
+
}>, import('zod').ZodObject<{
|
119
|
+
id: import('zod').ZodString;
|
120
|
+
}, "strip", import('zod').ZodTypeAny, {
|
121
|
+
id: string;
|
122
|
+
}, {
|
123
|
+
id: string;
|
124
|
+
}>]>;
|
125
|
+
contributor: import('zod').ZodUnion<[import('zod').ZodObject<{
|
126
|
+
authenticatedUser: import('zod').ZodLiteral<true>;
|
127
|
+
}, "strip", import('zod').ZodTypeAny, {
|
128
|
+
authenticatedUser: true;
|
129
|
+
}, {
|
130
|
+
authenticatedUser: true;
|
131
|
+
}>, import('zod').ZodObject<{
|
132
|
+
uuid: import('zod').ZodString;
|
133
|
+
}, "strip", import('zod').ZodTypeAny, {
|
134
|
+
uuid: string;
|
135
|
+
}, {
|
136
|
+
uuid: string;
|
137
|
+
}>, import('zod').ZodObject<{
|
138
|
+
id: import('zod').ZodNumber;
|
139
|
+
}, "strip", import('zod').ZodTypeAny, {
|
140
|
+
id: number;
|
141
|
+
}, {
|
142
|
+
id: number;
|
143
|
+
}>]>;
|
144
|
+
}, "strip", import('zod').ZodTypeAny, {
|
145
|
+
project: {
|
146
|
+
uuid: string;
|
147
|
+
} | {
|
148
|
+
id: string;
|
149
|
+
};
|
150
|
+
contributor: {
|
151
|
+
authenticatedUser: true;
|
152
|
+
} | {
|
153
|
+
uuid: string;
|
154
|
+
} | {
|
155
|
+
id: number;
|
156
|
+
};
|
108
157
|
}, {
|
109
|
-
|
110
|
-
|
111
|
-
}
|
112
|
-
|
113
|
-
}
|
158
|
+
project: {
|
159
|
+
uuid: string;
|
160
|
+
} | {
|
161
|
+
id: string;
|
162
|
+
};
|
163
|
+
contributor: {
|
164
|
+
authenticatedUser: true;
|
165
|
+
} | {
|
166
|
+
uuid: string;
|
167
|
+
} | {
|
168
|
+
id: number;
|
169
|
+
};
|
170
|
+
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
171
|
+
authorization: import('zod').ZodString;
|
172
|
+
}, "strip", import('zod').ZodTypeAny, {
|
114
173
|
authorization: string;
|
115
174
|
}, {
|
116
175
|
authorization: string;
|
117
|
-
}>,
|
118
|
-
AUTHORIZATION:
|
119
|
-
}, "strip",
|
176
|
+
}>, import('zod').ZodObject<{
|
177
|
+
AUTHORIZATION: import('zod').ZodString;
|
178
|
+
}, "strip", import('zod').ZodTypeAny, {
|
120
179
|
AUTHORIZATION: string;
|
121
180
|
}, {
|
122
181
|
AUTHORIZATION: string;
|
123
|
-
}>]>,
|
124
|
-
'X-API-Token':
|
125
|
-
}, "strip",
|
182
|
+
}>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
183
|
+
'X-API-Token': import('zod').ZodString;
|
184
|
+
}, "strip", import('zod').ZodTypeAny, {
|
126
185
|
'X-API-Token': string;
|
127
186
|
}, {
|
128
187
|
'X-API-Token': string;
|
129
|
-
}>,
|
130
|
-
'X-Api-Token':
|
131
|
-
}, "strip",
|
188
|
+
}>, import('zod').ZodObject<{
|
189
|
+
'X-Api-Token': import('zod').ZodString;
|
190
|
+
}, "strip", import('zod').ZodTypeAny, {
|
132
191
|
'X-Api-Token': string;
|
133
192
|
}, {
|
134
193
|
'X-Api-Token': string;
|
135
|
-
}>,
|
136
|
-
'x-api-token':
|
137
|
-
}, "strip",
|
194
|
+
}>, import('zod').ZodObject<{
|
195
|
+
'x-api-token': import('zod').ZodString;
|
196
|
+
}, "strip", import('zod').ZodTypeAny, {
|
138
197
|
'x-api-token': string;
|
139
198
|
}, {
|
140
199
|
'x-api-token': string;
|
141
|
-
}>,
|
142
|
-
'X-API-TOKEN':
|
143
|
-
}, "strip",
|
200
|
+
}>, import('zod').ZodObject<{
|
201
|
+
'X-API-TOKEN': import('zod').ZodString;
|
202
|
+
}, "strip", import('zod').ZodTypeAny, {
|
144
203
|
'X-API-TOKEN': string;
|
145
204
|
}, {
|
146
205
|
'X-API-TOKEN': string;
|
147
|
-
}>]>]>,
|
148
|
-
'X-Lokalise-Plugin':
|
149
|
-
}, "strip",
|
206
|
+
}>]>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
207
|
+
'X-Lokalise-Plugin': import('zod').ZodString;
|
208
|
+
}, "strip", import('zod').ZodTypeAny, {
|
150
209
|
'X-Lokalise-Plugin': string;
|
151
210
|
}, {
|
152
211
|
'X-Lokalise-Plugin': string;
|
153
|
-
}>,
|
154
|
-
'x-lokalise-plugin':
|
155
|
-
}, "strip",
|
212
|
+
}>, import('zod').ZodObject<{
|
213
|
+
'x-lokalise-plugin': import('zod').ZodString;
|
214
|
+
}, "strip", import('zod').ZodTypeAny, {
|
156
215
|
'x-lokalise-plugin': string;
|
157
216
|
}, {
|
158
217
|
'x-lokalise-plugin': string;
|
159
|
-
}>,
|
160
|
-
'X-LOKALISE-PLUGIN':
|
161
|
-
}, "strip",
|
218
|
+
}>, import('zod').ZodObject<{
|
219
|
+
'X-LOKALISE-PLUGIN': import('zod').ZodString;
|
220
|
+
}, "strip", import('zod').ZodTypeAny, {
|
162
221
|
'X-LOKALISE-PLUGIN': string;
|
163
222
|
}, {
|
164
223
|
'X-LOKALISE-PLUGIN': string;
|
@@ -15,8 +15,8 @@ export declare function useCreateProjectMutation<T>(wretchClient: Wretch<T>, hea
|
|
15
15
|
created_at_timestamp: number;
|
16
16
|
team_id: number;
|
17
17
|
description: string;
|
18
|
-
project_id: string;
|
19
18
|
uuid: string;
|
19
|
+
project_id: string;
|
20
20
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
21
21
|
created_by: number;
|
22
22
|
created_by_email: string;
|
@@ -30,8 +30,8 @@ export declare function useListProjectsQuery<T>(wretchClient: Wretch<T>, headers
|
|
30
30
|
created_at_timestamp: number;
|
31
31
|
team_id: number;
|
32
32
|
description: string;
|
33
|
-
project_id: string;
|
34
33
|
uuid: string;
|
34
|
+
project_id: string;
|
35
35
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
36
36
|
created_by: number;
|
37
37
|
created_by_email: string;
|
@@ -1,12 +1,25 @@
|
|
1
1
|
import { HeaderBuilder } from '../../auth/core/headers/headerBuilder';
|
2
|
-
import { ContributorApiBaseHeader,
|
2
|
+
import { ContributorApiBaseHeader, RetrieveContributorPathParams, RetrieveContributorResponse } from '../types/contributorTypes';
|
3
3
|
import { ApiQueryOverrides } from '../../../utils/types/apiQueryOverrides';
|
4
4
|
import { Wretch } from 'wretch';
|
5
5
|
/**
|
6
6
|
* Factory for creating keys for the useRetrieveContributorQuery hook
|
7
7
|
*/
|
8
8
|
export declare const retrieveContributorKeys: {
|
9
|
-
projectUserKey: (
|
9
|
+
projectUserKey: (params: RetrieveContributorPathParams) => readonly ["RetrieveContributor", {
|
10
|
+
project: {
|
11
|
+
uuid: string;
|
12
|
+
} | {
|
13
|
+
id: string;
|
14
|
+
};
|
15
|
+
contributor: {
|
16
|
+
authenticatedUser: true;
|
17
|
+
} | {
|
18
|
+
uuid: string;
|
19
|
+
} | {
|
20
|
+
id: number;
|
21
|
+
};
|
22
|
+
}];
|
10
23
|
};
|
11
24
|
/**
|
12
25
|
* A react-router wrapper about the retrieveContributor public API endpoint
|
@@ -15,8 +28,8 @@ export declare const retrieveContributorKeys: {
|
|
15
28
|
* @param headers - A header builder instance to resolve headers for the request.
|
16
29
|
* @param overrides - Additional options to pass to the query.
|
17
30
|
*/
|
18
|
-
export declare const useRetrieveContributorQuery: <T>(wretchClient: Wretch<T>, headers: HeaderBuilder<ContributorApiBaseHeader>, overrides: ApiQueryOverrides<
|
19
|
-
|
31
|
+
export declare const useRetrieveContributorQuery: <T>(wretchClient: Wretch<T>, headers: HeaderBuilder<ContributorApiBaseHeader>, overrides: ApiQueryOverrides<RetrieveContributorResponse, typeof retrieveContributorKeys>) => import('@tanstack/react-query').UseQueryResult<{
|
32
|
+
contributor: {
|
20
33
|
email: string;
|
21
34
|
user_id: number;
|
22
35
|
fullname: string;
|
@@ -31,6 +44,6 @@ export declare const useRetrieveContributorQuery: <T>(wretchClient: Wretch<T>, h
|
|
31
44
|
}[];
|
32
45
|
is_admin: boolean;
|
33
46
|
is_reviewer: boolean;
|
34
|
-
}
|
47
|
+
};
|
35
48
|
project_id: string;
|
36
49
|
}, undefined>;
|
@@ -21,8 +21,8 @@ export declare function useRetrieveProjectQuery<T>(wretchClient: Wretch<T>, head
|
|
21
21
|
created_at_timestamp: number;
|
22
22
|
team_id: number;
|
23
23
|
description: string;
|
24
|
-
project_id: string;
|
25
24
|
uuid: string;
|
25
|
+
project_id: string;
|
26
26
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
27
27
|
created_by: number;
|
28
28
|
created_by_email: string;
|
@@ -16,8 +16,8 @@ export declare function useUpdateProjectMutation<T>(wretchClient: Wretch<T>, hea
|
|
16
16
|
created_at_timestamp: number;
|
17
17
|
team_id: number;
|
18
18
|
description: string;
|
19
|
-
project_id: string;
|
20
19
|
uuid: string;
|
20
|
+
project_id: string;
|
21
21
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
22
22
|
created_by: number;
|
23
23
|
created_by_email: string;
|
@@ -225,8 +225,8 @@ export declare const createProject: import('@lokalise/universal-ts-utils/node').
|
|
225
225
|
created_at_timestamp: number;
|
226
226
|
team_id: number;
|
227
227
|
description: string;
|
228
|
-
project_id: string;
|
229
228
|
uuid: string;
|
229
|
+
project_id: string;
|
230
230
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
231
231
|
created_by: number;
|
232
232
|
created_by_email: string;
|
@@ -281,8 +281,8 @@ export declare const createProject: import('@lokalise/universal-ts-utils/node').
|
|
281
281
|
created_at_timestamp: number;
|
282
282
|
team_id: number;
|
283
283
|
description: string;
|
284
|
-
project_id: string;
|
285
284
|
uuid: string;
|
285
|
+
project_id: string;
|
286
286
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
287
287
|
created_by: number;
|
288
288
|
created_by_email: string;
|
@@ -578,8 +578,8 @@ export declare const listProjects: import('@lokalise/universal-ts-utils/node').G
|
|
578
578
|
created_at_timestamp: number;
|
579
579
|
team_id: number;
|
580
580
|
description: string;
|
581
|
-
project_id: string;
|
582
581
|
uuid: string;
|
582
|
+
project_id: string;
|
583
583
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
584
584
|
created_by: number;
|
585
585
|
created_by_email: string;
|
@@ -634,8 +634,8 @@ export declare const listProjects: import('@lokalise/universal-ts-utils/node').G
|
|
634
634
|
created_at_timestamp: number;
|
635
635
|
team_id: number;
|
636
636
|
description: string;
|
637
|
-
project_id: string;
|
638
637
|
uuid: string;
|
638
|
+
project_id: string;
|
639
639
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
640
640
|
created_by: number;
|
641
641
|
created_by_email: string;
|
@@ -692,8 +692,8 @@ export declare const listProjects: import('@lokalise/universal-ts-utils/node').G
|
|
692
692
|
created_at_timestamp: number;
|
693
693
|
team_id: number;
|
694
694
|
description: string;
|
695
|
-
project_id: string;
|
696
695
|
uuid: string;
|
696
|
+
project_id: string;
|
697
697
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
698
698
|
created_by: number;
|
699
699
|
created_by_email: string;
|
@@ -750,8 +750,8 @@ export declare const listProjects: import('@lokalise/universal-ts-utils/node').G
|
|
750
750
|
created_at_timestamp: number;
|
751
751
|
team_id: number;
|
752
752
|
description: string;
|
753
|
-
project_id: string;
|
754
753
|
uuid: string;
|
754
|
+
project_id: string;
|
755
755
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
756
756
|
created_by: number;
|
757
757
|
created_by_email: string;
|
@@ -1073,8 +1073,8 @@ export declare const retrieveProject: import('@lokalise/universal-ts-utils/node'
|
|
1073
1073
|
created_at_timestamp: number;
|
1074
1074
|
team_id: number;
|
1075
1075
|
description: string;
|
1076
|
-
project_id: string;
|
1077
1076
|
uuid: string;
|
1077
|
+
project_id: string;
|
1078
1078
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
1079
1079
|
created_by: number;
|
1080
1080
|
created_by_email: string;
|
@@ -1129,8 +1129,8 @@ export declare const retrieveProject: import('@lokalise/universal-ts-utils/node'
|
|
1129
1129
|
created_at_timestamp: number;
|
1130
1130
|
team_id: number;
|
1131
1131
|
description: string;
|
1132
|
-
project_id: string;
|
1133
1132
|
uuid: string;
|
1133
|
+
project_id: string;
|
1134
1134
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
1135
1135
|
created_by: number;
|
1136
1136
|
created_by_email: string;
|
@@ -1442,8 +1442,8 @@ export declare const updateProject: import('@lokalise/universal-ts-utils/node').
|
|
1442
1442
|
created_at_timestamp: number;
|
1443
1443
|
team_id: number;
|
1444
1444
|
description: string;
|
1445
|
-
project_id: string;
|
1446
1445
|
uuid: string;
|
1446
|
+
project_id: string;
|
1447
1447
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
1448
1448
|
created_by: number;
|
1449
1449
|
created_by_email: string;
|
@@ -1498,8 +1498,8 @@ export declare const updateProject: import('@lokalise/universal-ts-utils/node').
|
|
1498
1498
|
created_at_timestamp: number;
|
1499
1499
|
team_id: number;
|
1500
1500
|
description: string;
|
1501
|
-
project_id: string;
|
1502
1501
|
uuid: string;
|
1502
|
+
project_id: string;
|
1503
1503
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
1504
1504
|
created_by: number;
|
1505
1505
|
created_by_email: string;
|
@@ -1,20 +1,19 @@
|
|
1
|
-
import { z } from 'zod';
|
2
1
|
/**
|
3
2
|
* Public API router definition for getting the details of a team user
|
4
3
|
*/
|
5
4
|
export declare const getTeamUser: import('@lokalise/universal-ts-utils/node').GetRouteDefinition<{
|
6
5
|
userId: number;
|
7
6
|
teamId: number;
|
8
|
-
},
|
9
|
-
team_id:
|
10
|
-
team_user:
|
11
|
-
user_id:
|
12
|
-
email:
|
13
|
-
fullname:
|
14
|
-
created_at:
|
15
|
-
created_at_timestamp:
|
16
|
-
role:
|
17
|
-
}, "strip",
|
7
|
+
}, import('zod').ZodObject<{
|
8
|
+
team_id: import('zod').ZodNumber;
|
9
|
+
team_user: import('zod').ZodObject<{
|
10
|
+
user_id: import('zod').ZodNumber;
|
11
|
+
email: import('zod').ZodString;
|
12
|
+
fullname: import('zod').ZodString;
|
13
|
+
created_at: import('zod').ZodString;
|
14
|
+
created_at_timestamp: import('zod').ZodNumber;
|
15
|
+
role: import('zod').ZodUnion<[import('zod').ZodLiteral<"owner">, import('zod').ZodLiteral<"admin">, import('zod').ZodLiteral<"biller">, import('zod').ZodLiteral<"member">]>;
|
16
|
+
}, "strip", import('zod').ZodTypeAny, {
|
18
17
|
role: "member" | "admin" | "biller" | "owner";
|
19
18
|
email: string;
|
20
19
|
user_id: number;
|
@@ -29,7 +28,7 @@ export declare const getTeamUser: import('@lokalise/universal-ts-utils/node').Ge
|
|
29
28
|
created_at: string;
|
30
29
|
created_at_timestamp: number;
|
31
30
|
}>;
|
32
|
-
}, "strip",
|
31
|
+
}, "strip", import('zod').ZodTypeAny, {
|
33
32
|
team_id: number;
|
34
33
|
team_user: {
|
35
34
|
role: "member" | "admin" | "biller" | "owner";
|
@@ -49,66 +48,66 @@ export declare const getTeamUser: import('@lokalise/universal-ts-utils/node').Ge
|
|
49
48
|
created_at: string;
|
50
49
|
created_at_timestamp: number;
|
51
50
|
};
|
52
|
-
}>,
|
53
|
-
teamId:
|
54
|
-
userId:
|
55
|
-
}, "strip",
|
51
|
+
}>, import('zod').ZodObject<{
|
52
|
+
teamId: import('zod').ZodNumber;
|
53
|
+
userId: import('zod').ZodNumber;
|
54
|
+
}, "strip", import('zod').ZodTypeAny, {
|
56
55
|
userId: number;
|
57
56
|
teamId: number;
|
58
57
|
}, {
|
59
58
|
userId: number;
|
60
59
|
teamId: number;
|
61
|
-
}>, undefined,
|
62
|
-
authorization:
|
63
|
-
}, "strip",
|
60
|
+
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
61
|
+
authorization: import('zod').ZodString;
|
62
|
+
}, "strip", import('zod').ZodTypeAny, {
|
64
63
|
authorization: string;
|
65
64
|
}, {
|
66
65
|
authorization: string;
|
67
|
-
}>,
|
68
|
-
AUTHORIZATION:
|
69
|
-
}, "strip",
|
66
|
+
}>, import('zod').ZodObject<{
|
67
|
+
AUTHORIZATION: import('zod').ZodString;
|
68
|
+
}, "strip", import('zod').ZodTypeAny, {
|
70
69
|
AUTHORIZATION: string;
|
71
70
|
}, {
|
72
71
|
AUTHORIZATION: string;
|
73
|
-
}>]>,
|
74
|
-
'X-API-Token':
|
75
|
-
}, "strip",
|
72
|
+
}>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
73
|
+
'X-API-Token': import('zod').ZodString;
|
74
|
+
}, "strip", import('zod').ZodTypeAny, {
|
76
75
|
'X-API-Token': string;
|
77
76
|
}, {
|
78
77
|
'X-API-Token': string;
|
79
|
-
}>,
|
80
|
-
'X-Api-Token':
|
81
|
-
}, "strip",
|
78
|
+
}>, import('zod').ZodObject<{
|
79
|
+
'X-Api-Token': import('zod').ZodString;
|
80
|
+
}, "strip", import('zod').ZodTypeAny, {
|
82
81
|
'X-Api-Token': string;
|
83
82
|
}, {
|
84
83
|
'X-Api-Token': string;
|
85
|
-
}>,
|
86
|
-
'x-api-token':
|
87
|
-
}, "strip",
|
84
|
+
}>, import('zod').ZodObject<{
|
85
|
+
'x-api-token': import('zod').ZodString;
|
86
|
+
}, "strip", import('zod').ZodTypeAny, {
|
88
87
|
'x-api-token': string;
|
89
88
|
}, {
|
90
89
|
'x-api-token': string;
|
91
|
-
}>,
|
92
|
-
'X-API-TOKEN':
|
93
|
-
}, "strip",
|
90
|
+
}>, import('zod').ZodObject<{
|
91
|
+
'X-API-TOKEN': import('zod').ZodString;
|
92
|
+
}, "strip", import('zod').ZodTypeAny, {
|
94
93
|
'X-API-TOKEN': string;
|
95
94
|
}, {
|
96
95
|
'X-API-TOKEN': string;
|
97
|
-
}>]>]>,
|
98
|
-
'X-Lokalise-Plugin':
|
99
|
-
}, "strip",
|
96
|
+
}>]>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
97
|
+
'X-Lokalise-Plugin': import('zod').ZodString;
|
98
|
+
}, "strip", import('zod').ZodTypeAny, {
|
100
99
|
'X-Lokalise-Plugin': string;
|
101
100
|
}, {
|
102
101
|
'X-Lokalise-Plugin': string;
|
103
|
-
}>,
|
104
|
-
'x-lokalise-plugin':
|
105
|
-
}, "strip",
|
102
|
+
}>, import('zod').ZodObject<{
|
103
|
+
'x-lokalise-plugin': import('zod').ZodString;
|
104
|
+
}, "strip", import('zod').ZodTypeAny, {
|
106
105
|
'x-lokalise-plugin': string;
|
107
106
|
}, {
|
108
107
|
'x-lokalise-plugin': string;
|
109
|
-
}>,
|
110
|
-
'X-LOKALISE-PLUGIN':
|
111
|
-
}, "strip",
|
108
|
+
}>, import('zod').ZodObject<{
|
109
|
+
'X-LOKALISE-PLUGIN': import('zod').ZodString;
|
110
|
+
}, "strip", import('zod').ZodTypeAny, {
|
112
111
|
'X-LOKALISE-PLUGIN': string;
|
113
112
|
}, {
|
114
113
|
'X-LOKALISE-PLUGIN': string;
|