@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
@@ -129,9 +129,104 @@ export declare const CONTRIBUTOR_SCHEMA: z.ZodObject<{
|
|
129
129
|
is_reviewer: boolean;
|
130
130
|
}>;
|
131
131
|
export type Contributor = z.infer<typeof CONTRIBUTOR_SCHEMA>;
|
132
|
-
|
132
|
+
declare const PROJECT_TARGET_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
133
|
+
uuid: z.ZodString;
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
135
|
+
uuid: string;
|
136
|
+
}, {
|
137
|
+
uuid: string;
|
138
|
+
}>, z.ZodObject<{
|
139
|
+
id: z.ZodString;
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
141
|
+
id: string;
|
142
|
+
}, {
|
143
|
+
id: string;
|
144
|
+
}>]>;
|
145
|
+
export type ProjectTarget = z.infer<typeof PROJECT_TARGET_SCHEMA>;
|
146
|
+
declare const CONTRIBUTOR_TARGET_PATH_PARAMS_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
147
|
+
authenticatedUser: z.ZodLiteral<true>;
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
149
|
+
authenticatedUser: true;
|
150
|
+
}, {
|
151
|
+
authenticatedUser: true;
|
152
|
+
}>, z.ZodObject<{
|
153
|
+
uuid: z.ZodString;
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
155
|
+
uuid: string;
|
156
|
+
}, {
|
157
|
+
uuid: string;
|
158
|
+
}>, z.ZodObject<{
|
159
|
+
id: z.ZodNumber;
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
161
|
+
id: number;
|
162
|
+
}, {
|
163
|
+
id: number;
|
164
|
+
}>]>;
|
165
|
+
export type ContributorTargetPathParams = z.infer<typeof CONTRIBUTOR_TARGET_PATH_PARAMS_SCHEMA>;
|
166
|
+
export declare const RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
167
|
+
project: z.ZodUnion<[z.ZodObject<{
|
168
|
+
uuid: z.ZodString;
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
170
|
+
uuid: string;
|
171
|
+
}, {
|
172
|
+
uuid: string;
|
173
|
+
}>, z.ZodObject<{
|
174
|
+
id: z.ZodString;
|
175
|
+
}, "strip", z.ZodTypeAny, {
|
176
|
+
id: string;
|
177
|
+
}, {
|
178
|
+
id: string;
|
179
|
+
}>]>;
|
180
|
+
contributor: z.ZodUnion<[z.ZodObject<{
|
181
|
+
authenticatedUser: z.ZodLiteral<true>;
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
183
|
+
authenticatedUser: true;
|
184
|
+
}, {
|
185
|
+
authenticatedUser: true;
|
186
|
+
}>, z.ZodObject<{
|
187
|
+
uuid: z.ZodString;
|
188
|
+
}, "strip", z.ZodTypeAny, {
|
189
|
+
uuid: string;
|
190
|
+
}, {
|
191
|
+
uuid: string;
|
192
|
+
}>, z.ZodObject<{
|
193
|
+
id: z.ZodNumber;
|
194
|
+
}, "strip", z.ZodTypeAny, {
|
195
|
+
id: number;
|
196
|
+
}, {
|
197
|
+
id: number;
|
198
|
+
}>]>;
|
199
|
+
}, "strip", z.ZodTypeAny, {
|
200
|
+
project: {
|
201
|
+
uuid: string;
|
202
|
+
} | {
|
203
|
+
id: string;
|
204
|
+
};
|
205
|
+
contributor: {
|
206
|
+
authenticatedUser: true;
|
207
|
+
} | {
|
208
|
+
uuid: string;
|
209
|
+
} | {
|
210
|
+
id: number;
|
211
|
+
};
|
212
|
+
}, {
|
213
|
+
project: {
|
214
|
+
uuid: string;
|
215
|
+
} | {
|
216
|
+
id: string;
|
217
|
+
};
|
218
|
+
contributor: {
|
219
|
+
authenticatedUser: true;
|
220
|
+
} | {
|
221
|
+
uuid: string;
|
222
|
+
} | {
|
223
|
+
id: number;
|
224
|
+
};
|
225
|
+
}>;
|
226
|
+
export type RetrieveContributorPathParams = z.infer<typeof RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA>;
|
227
|
+
export declare const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
|
133
228
|
project_id: z.ZodString;
|
134
|
-
|
229
|
+
contributor: z.ZodObject<{
|
135
230
|
user_id: z.ZodNumber;
|
136
231
|
email: z.ZodString;
|
137
232
|
fullname: z.ZodString;
|
@@ -186,9 +281,9 @@ export declare const RETRIEVE_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
|
|
186
281
|
}[];
|
187
282
|
is_admin: boolean;
|
188
283
|
is_reviewer: boolean;
|
189
|
-
}
|
284
|
+
}>;
|
190
285
|
}, "strip", z.ZodTypeAny, {
|
191
|
-
|
286
|
+
contributor: {
|
192
287
|
email: string;
|
193
288
|
user_id: number;
|
194
289
|
fullname: string;
|
@@ -203,10 +298,10 @@ export declare const RETRIEVE_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
|
|
203
298
|
}[];
|
204
299
|
is_admin: boolean;
|
205
300
|
is_reviewer: boolean;
|
206
|
-
}
|
301
|
+
};
|
207
302
|
project_id: string;
|
208
303
|
}, {
|
209
|
-
|
304
|
+
contributor: {
|
210
305
|
email: string;
|
211
306
|
user_id: number;
|
212
307
|
fullname: string;
|
@@ -221,7 +316,8 @@ export declare const RETRIEVE_CONTRIBUTORS_RESPONSE_SCHEMA: z.ZodObject<{
|
|
221
316
|
}[];
|
222
317
|
is_admin: boolean;
|
223
318
|
is_reviewer: boolean;
|
224
|
-
}
|
319
|
+
};
|
225
320
|
project_id: string;
|
226
321
|
}>;
|
227
|
-
export type
|
322
|
+
export type RetrieveContributorResponse = z.infer<typeof RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA>;
|
323
|
+
export {};
|
@@ -468,8 +468,8 @@ export declare const PROJECT_SCHEMA: z.ZodObject<{
|
|
468
468
|
created_at_timestamp: number;
|
469
469
|
team_id: number;
|
470
470
|
description: string;
|
471
|
-
project_id: string;
|
472
471
|
uuid: string;
|
472
|
+
project_id: string;
|
473
473
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
474
474
|
created_by: number;
|
475
475
|
created_by_email: string;
|
@@ -524,8 +524,8 @@ export declare const PROJECT_SCHEMA: z.ZodObject<{
|
|
524
524
|
created_at_timestamp: number;
|
525
525
|
team_id: number;
|
526
526
|
description: string;
|
527
|
-
project_id: string;
|
528
527
|
uuid: string;
|
528
|
+
project_id: string;
|
529
529
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
530
530
|
created_by: number;
|
531
531
|
created_by_email: string;
|
@@ -829,8 +829,8 @@ export declare const LIST_PROJECTS_SUCCESS_RESPONSE_BODY: z.ZodObject<{
|
|
829
829
|
created_at_timestamp: number;
|
830
830
|
team_id: number;
|
831
831
|
description: string;
|
832
|
-
project_id: string;
|
833
832
|
uuid: string;
|
833
|
+
project_id: string;
|
834
834
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
835
835
|
created_by: number;
|
836
836
|
created_by_email: string;
|
@@ -885,8 +885,8 @@ export declare const LIST_PROJECTS_SUCCESS_RESPONSE_BODY: z.ZodObject<{
|
|
885
885
|
created_at_timestamp: number;
|
886
886
|
team_id: number;
|
887
887
|
description: string;
|
888
|
-
project_id: string;
|
889
888
|
uuid: string;
|
889
|
+
project_id: string;
|
890
890
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
891
891
|
created_by: number;
|
892
892
|
created_by_email: string;
|
@@ -943,8 +943,8 @@ export declare const LIST_PROJECTS_SUCCESS_RESPONSE_BODY: z.ZodObject<{
|
|
943
943
|
created_at_timestamp: number;
|
944
944
|
team_id: number;
|
945
945
|
description: string;
|
946
|
-
project_id: string;
|
947
946
|
uuid: string;
|
947
|
+
project_id: string;
|
948
948
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
949
949
|
created_by: number;
|
950
950
|
created_by_email: string;
|
@@ -1001,8 +1001,8 @@ export declare const LIST_PROJECTS_SUCCESS_RESPONSE_BODY: z.ZodObject<{
|
|
1001
1001
|
created_at_timestamp: number;
|
1002
1002
|
team_id: number;
|
1003
1003
|
description: string;
|
1004
|
-
project_id: string;
|
1005
1004
|
uuid: string;
|
1005
|
+
project_id: string;
|
1006
1006
|
project_type: "localization_files" | "paged_documents" | "marketing";
|
1007
1007
|
created_by: number;
|
1008
1008
|
created_by_email: string;
|
@@ -78,6 +78,17 @@ export declare const TEAM_USER_SCHEMA: z.ZodObject<{
|
|
78
78
|
created_at_timestamp: number;
|
79
79
|
}>;
|
80
80
|
export type TeamUser = z.infer<typeof TEAM_USER_SCHEMA>;
|
81
|
+
export declare const TEAM_USER_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
82
|
+
teamId: z.ZodNumber;
|
83
|
+
userId: z.ZodNumber;
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
85
|
+
userId: number;
|
86
|
+
teamId: number;
|
87
|
+
}, {
|
88
|
+
userId: number;
|
89
|
+
teamId: number;
|
90
|
+
}>;
|
91
|
+
export type TeamUserPathParams = z.infer<typeof TEAM_USER_PATH_PARAMS_SCHEMA>;
|
81
92
|
export declare const TEAM_USER_RESPONSE_SCHEMA: z.ZodObject<{
|
82
93
|
team_id: z.ZodNumber;
|
83
94
|
team_user: z.ZodObject<{
|