@lokalise/workspaces-api-schemas 1.3.3 → 2.0.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.
Files changed (32) hide show
  1. package/dist/index.d.ts +6 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +6 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/schemas/expert/common.d.ts +23 -0
  6. package/dist/schemas/expert/common.d.ts.map +1 -0
  7. package/dist/schemas/expert/common.js +19 -0
  8. package/dist/schemas/expert/common.js.map +1 -0
  9. package/dist/schemas/expert/contributors.d.ts +139 -0
  10. package/dist/schemas/expert/contributors.d.ts.map +1 -0
  11. package/dist/schemas/expert/contributors.js +65 -0
  12. package/dist/schemas/expert/contributors.js.map +1 -0
  13. package/dist/schemas/expert/project-languages.d.ts +47 -0
  14. package/dist/schemas/expert/project-languages.d.ts.map +1 -0
  15. package/dist/schemas/expert/project-languages.js +32 -0
  16. package/dist/schemas/expert/project-languages.js.map +1 -0
  17. package/dist/schemas/expert/projects.d.ts +276 -0
  18. package/dist/schemas/expert/projects.d.ts.map +1 -0
  19. package/dist/schemas/expert/projects.js +99 -0
  20. package/dist/schemas/expert/projects.js.map +1 -0
  21. package/dist/schemas/expert/{api.d.ts → tasks.d.ts} +12 -273
  22. package/dist/schemas/expert/tasks.d.ts.map +1 -0
  23. package/dist/schemas/expert/tasks.js +105 -0
  24. package/dist/schemas/expert/tasks.js.map +1 -0
  25. package/dist/schemas/expert/users.d.ts +62 -0
  26. package/dist/schemas/expert/users.d.ts.map +1 -0
  27. package/dist/schemas/expert/users.js +56 -0
  28. package/dist/schemas/expert/users.js.map +1 -0
  29. package/package.json +2 -1
  30. package/dist/schemas/expert/api.d.ts.map +0 -1
  31. package/dist/schemas/expert/api.js +0 -243
  32. package/dist/schemas/expert/api.js.map +0 -1
@@ -1,268 +1,16 @@
1
1
  import { z } from 'zod/v4';
2
- export declare const GET_EXPERT_TEAM_USER_RESPONSE_SCHEMA: z.ZodObject<{
3
- team_id: z.ZodNumber;
4
- team_uuid: z.ZodGUID;
5
- team_user: z.ZodObject<{
6
- user_id: z.ZodNumber;
7
- email: z.ZodEmail;
8
- fullname: z.ZodString;
9
- created_at: z.ZodString;
10
- created_at_timestamp: z.ZodNumber;
11
- role: z.ZodString;
12
- uuid: z.ZodGUID;
13
- }, z.core.$strip>;
14
- }, z.core.$strip>;
15
- export declare const PROJECT_CONTRIBUTOR_SCHEMA: z.ZodObject<{
16
- user_id: z.ZodNumber;
17
- user_uuid: z.ZodGUID;
18
- email: z.ZodEmail;
19
- fullname: z.ZodString;
20
- is_admin: z.ZodBoolean;
21
- is_reviewer: z.ZodBoolean;
22
- is_owner: z.ZodBoolean;
23
- is_pending: z.ZodBoolean;
24
- is_reinvited: z.ZodBoolean;
25
- role_id: z.ZodNullable<z.ZodNumber>;
26
- languages: z.ZodArray<z.ZodObject<{
27
- lang_id: z.ZodNumber;
28
- lang_iso: z.ZodString;
29
- lang_name: z.ZodString;
30
- is_writable: z.ZodBoolean;
31
- }, z.core.$strip>>;
32
- admin_rights: z.ZodArray<z.ZodString>;
33
- permissions: z.ZodArray<z.ZodString>;
34
- }, z.core.$strip>;
35
- export declare const GET_EXPERT_CONTRIBUTOR_RESPONSE_SCHEMA: z.ZodObject<{
36
- project_id: z.ZodString;
37
- project_uuid: z.ZodGUID;
38
- contributor: z.ZodObject<{
39
- user_id: z.ZodNumber;
40
- user_uuid: z.ZodGUID;
41
- email: z.ZodEmail;
42
- fullname: z.ZodString;
43
- is_admin: z.ZodBoolean;
44
- is_reviewer: z.ZodBoolean;
45
- is_owner: z.ZodBoolean;
46
- is_pending: z.ZodBoolean;
47
- is_reinvited: z.ZodBoolean;
48
- role_id: z.ZodNullable<z.ZodNumber>;
49
- languages: z.ZodArray<z.ZodObject<{
50
- lang_id: z.ZodNumber;
51
- lang_iso: z.ZodString;
52
- lang_name: z.ZodString;
53
- is_writable: z.ZodBoolean;
54
- }, z.core.$strip>>;
55
- admin_rights: z.ZodArray<z.ZodString>;
56
- permissions: z.ZodArray<z.ZodString>;
57
- }, z.core.$strip>;
58
- }, z.core.$strip>;
59
- export declare const GET_EXPERT_CONTRIBUTORS_LIST_RESPONSE_SCHEMA: z.ZodObject<{
60
- project_id: z.ZodString;
61
- project_uuid: z.ZodGUID;
62
- contributors: z.ZodArray<z.ZodObject<{
63
- user_id: z.ZodNumber;
64
- user_uuid: z.ZodGUID;
65
- email: z.ZodEmail;
66
- fullname: z.ZodString;
67
- is_admin: z.ZodBoolean;
68
- is_reviewer: z.ZodBoolean;
69
- is_owner: z.ZodBoolean;
70
- is_pending: z.ZodBoolean;
71
- is_reinvited: z.ZodBoolean;
72
- role_id: z.ZodNullable<z.ZodNumber>;
73
- languages: z.ZodArray<z.ZodObject<{
74
- lang_id: z.ZodNumber;
75
- lang_iso: z.ZodString;
76
- lang_name: z.ZodString;
77
- is_writable: z.ZodBoolean;
78
- }, z.core.$strip>>;
79
- admin_rights: z.ZodArray<z.ZodString>;
80
- permissions: z.ZodArray<z.ZodString>;
81
- }, z.core.$strip>>;
82
- }, z.core.$strip>;
83
- export declare const GET_EXPERT_PROJECT_DATA_RESPONSE_SCHEMA: z.ZodObject<{
84
- project_id: z.ZodString;
85
- uuid: z.ZodNullable<z.ZodGUID>;
86
- project_type: z.ZodString;
87
- name: z.ZodString;
88
- description: z.ZodString;
89
- created_at: z.ZodString;
90
- created_at_timestamp: z.ZodNumber;
91
- created_by: z.ZodNumber;
92
- created_by_email: z.ZodEmail;
93
- team_id: z.ZodNumber;
94
- team_uuid: z.ZodGUID;
95
- base_project_language_id: z.ZodNumber;
96
- base_project_language_uuid: z.ZodGUID;
97
- base_language_id: z.ZodNumber;
98
- base_language_iso: z.ZodString;
99
- settings: z.ZodObject<{
100
- per_platform_key_names: z.ZodBoolean;
101
- reviewing: z.ZodBoolean;
102
- branching: z.ZodBoolean;
103
- auto_toggle_unverified: z.ZodBoolean;
104
- offline_translation: z.ZodBoolean;
105
- key_editing: z.ZodBoolean;
106
- inline_machine_translations: z.ZodBoolean;
107
- custom_translation_statuses: z.ZodBoolean;
108
- custom_translation_statuses_allow_multiple: z.ZodBoolean;
109
- segmentation: z.ZodBoolean;
110
- contributor_preview_download_enabled: z.ZodBoolean;
111
- }, z.core.$strip>;
112
- statistics: z.ZodObject<{
113
- progress_total: z.ZodNumber;
114
- keys_total: z.ZodNumber;
115
- team: z.ZodNumber;
116
- base_words: z.ZodNumber;
117
- qa_issues_total: z.ZodNumber;
118
- qa_issues: z.ZodObject<{
119
- not_reviewed: z.ZodNumber;
120
- unverified: z.ZodNumber;
121
- spelling_grammar: z.ZodNumber;
122
- inconsistent_placeholders: z.ZodNumber;
123
- inconsistent_html: z.ZodNumber;
124
- different_number_of_urls: z.ZodNumber;
125
- different_urls: z.ZodNumber;
126
- leading_whitespace: z.ZodNumber;
127
- trailing_whitespace: z.ZodNumber;
128
- different_number_of_email_address: z.ZodNumber;
129
- different_email_address: z.ZodNumber;
130
- different_brackets: z.ZodNumber;
131
- different_numbers: z.ZodNumber;
132
- double_space: z.ZodNumber;
133
- special_placeholder: z.ZodNumber;
134
- unbalanced_brackets: z.ZodNumber;
135
- }, z.core.$strip>;
136
- languages: z.ZodArray<z.ZodObject<{
137
- language_id: z.ZodNumber;
138
- language_iso: z.ZodString;
139
- progress: z.ZodNumber;
140
- project_language_id: z.ZodNumber;
141
- project_language_uuid: z.ZodNullable<z.ZodGUID>;
142
- words_to_do: z.ZodNumber;
143
- }, z.core.$strip>>;
144
- }, z.core.$strip>;
145
- }, z.core.$strip>;
146
- export declare const GET_EXPERT_PROJECT_LIST_RESPONSE_SCHEMA: z.ZodObject<{
147
- projects: z.ZodArray<z.ZodObject<{
148
- project_id: z.ZodString;
149
- uuid: z.ZodNullable<z.ZodGUID>;
150
- project_type: z.ZodString;
151
- name: z.ZodString;
152
- description: z.ZodString;
153
- created_at: z.ZodString;
154
- created_at_timestamp: z.ZodNumber;
155
- created_by: z.ZodNumber;
156
- created_by_email: z.ZodEmail;
157
- team_id: z.ZodNumber;
158
- team_uuid: z.ZodGUID;
159
- base_project_language_id: z.ZodNumber;
160
- base_project_language_uuid: z.ZodGUID;
161
- base_language_id: z.ZodNumber;
162
- base_language_iso: z.ZodString;
163
- settings: z.ZodObject<{
164
- per_platform_key_names: z.ZodBoolean;
165
- reviewing: z.ZodBoolean;
166
- branching: z.ZodBoolean;
167
- auto_toggle_unverified: z.ZodBoolean;
168
- offline_translation: z.ZodBoolean;
169
- key_editing: z.ZodBoolean;
170
- inline_machine_translations: z.ZodBoolean;
171
- custom_translation_statuses: z.ZodBoolean;
172
- custom_translation_statuses_allow_multiple: z.ZodBoolean;
173
- segmentation: z.ZodBoolean;
174
- contributor_preview_download_enabled: z.ZodBoolean;
175
- }, z.core.$strip>;
176
- statistics: z.ZodObject<{
177
- progress_total: z.ZodNumber;
178
- keys_total: z.ZodNumber;
179
- team: z.ZodNumber;
180
- base_words: z.ZodNumber;
181
- qa_issues_total: z.ZodNumber;
182
- qa_issues: z.ZodObject<{
183
- not_reviewed: z.ZodNumber;
184
- unverified: z.ZodNumber;
185
- spelling_grammar: z.ZodNumber;
186
- inconsistent_placeholders: z.ZodNumber;
187
- inconsistent_html: z.ZodNumber;
188
- different_number_of_urls: z.ZodNumber;
189
- different_urls: z.ZodNumber;
190
- leading_whitespace: z.ZodNumber;
191
- trailing_whitespace: z.ZodNumber;
192
- different_number_of_email_address: z.ZodNumber;
193
- different_email_address: z.ZodNumber;
194
- different_brackets: z.ZodNumber;
195
- different_numbers: z.ZodNumber;
196
- double_space: z.ZodNumber;
197
- special_placeholder: z.ZodNumber;
198
- unbalanced_brackets: z.ZodNumber;
199
- }, z.core.$strip>;
200
- languages: z.ZodArray<z.ZodObject<{
201
- language_id: z.ZodNumber;
202
- language_iso: z.ZodString;
203
- progress: z.ZodNumber;
204
- project_language_id: z.ZodNumber;
205
- project_language_uuid: z.ZodNullable<z.ZodGUID>;
206
- words_to_do: z.ZodNumber;
207
- }, z.core.$strip>>;
208
- }, z.core.$strip>;
209
- }, z.core.$strip>>;
210
- }, z.core.$strip>;
211
- export declare const GET_EXPERT_PROJECT_LANGUAGE_DATA_RESPONSE_SCHEMA: z.ZodObject<{
212
- lang_id: z.ZodNumber;
213
- lang_iso: z.ZodString;
214
- lang_name: z.ZodString;
215
- is_rtl: z.ZodBoolean;
216
- plural_forms: z.ZodArray<z.ZodString>;
217
- project_language_id: z.ZodString;
218
- project_language_uuid: z.ZodGUID;
219
- cc_iso: z.ZodString;
220
- }, z.core.$strip>;
221
- export declare const GET_EXPERT_PROJECT_LANGUAGE_LIST_RESPONSE_SCHEMA: z.ZodObject<{
222
- project_id: z.ZodString;
223
- project_uuid: z.ZodGUID;
224
- languages: z.ZodArray<z.ZodObject<{
225
- lang_id: z.ZodNumber;
226
- lang_iso: z.ZodString;
227
- lang_name: z.ZodString;
228
- is_rtl: z.ZodBoolean;
229
- plural_forms: z.ZodArray<z.ZodString>;
230
- project_language_id: z.ZodString;
231
- project_language_uuid: z.ZodGUID;
232
- cc_iso: z.ZodString;
233
- }, z.core.$strip>>;
234
- }, z.core.$strip>;
235
- export declare const GET_EXPERT_USER_BASIC_RESPONSE_SCHEMA: z.ZodObject<{
236
- id: z.ZodNumber;
237
- uuid: z.ZodGUID;
238
- fullname: z.ZodString;
239
- email: z.ZodEmail;
240
- }, z.core.$strip>;
241
- export declare const HEADER_EXPERT_PAGE_SCHEMA: z.ZodObject<{
242
- 'x-pagination-total-count': z.ZodCoercedNumber<unknown>;
243
- 'x-pagination-page-count': z.ZodCoercedNumber<unknown>;
244
- 'x-pagination-limit': z.ZodCoercedNumber<unknown>;
245
- 'x-pagination-page': z.ZodCoercedNumber<unknown>;
246
- 'x-response-too-big': z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
247
- }, z.core.$strip>;
248
- export type ProjectContributor = z.infer<typeof PROJECT_CONTRIBUTOR_SCHEMA>;
249
- export type GetExpertTeamUser = z.infer<typeof GET_EXPERT_TEAM_USER_RESPONSE_SCHEMA>;
250
- export type GetExpertContributor = z.infer<typeof GET_EXPERT_CONTRIBUTOR_RESPONSE_SCHEMA>;
251
- export type GetExpertContributorsList = z.infer<typeof GET_EXPERT_CONTRIBUTORS_LIST_RESPONSE_SCHEMA>;
252
- export type GetExpertProjectData = z.infer<typeof GET_EXPERT_PROJECT_DATA_RESPONSE_SCHEMA>;
253
- export type GetExpertProjectList = z.infer<typeof GET_EXPERT_PROJECT_LIST_RESPONSE_SCHEMA>;
254
- export type GetExpertProjectLanguageList = z.infer<typeof GET_EXPERT_PROJECT_LANGUAGE_LIST_RESPONSE_SCHEMA>;
255
- export type GetExpertProjectLanguageData = z.infer<typeof GET_EXPERT_PROJECT_LANGUAGE_DATA_RESPONSE_SCHEMA>;
256
2
  export declare const TASK_USER_SCHEMA: z.ZodObject<{
257
3
  user_id: z.ZodNumber;
258
4
  email: z.ZodEmail;
259
5
  fullname: z.ZodString;
260
6
  is_admin: z.ZodBoolean;
261
7
  }, z.core.$strip>;
8
+ export type TaskUser = z.infer<typeof TASK_USER_SCHEMA>;
262
9
  export declare const TASK_GROUP_SCHEMA: z.ZodObject<{
263
10
  id: z.ZodNumber;
264
11
  name: z.ZodString;
265
12
  }, z.core.$strip>;
13
+ export type TaskGroup = z.infer<typeof TASK_GROUP_SCHEMA>;
266
14
  export declare const TASK_TM_LEVERAGE_SCHEMA: z.ZodObject<{
267
15
  '0%+': z.ZodNumber;
268
16
  '60%+': z.ZodNumber;
@@ -270,6 +18,7 @@ export declare const TASK_TM_LEVERAGE_SCHEMA: z.ZodObject<{
270
18
  '95%+': z.ZodNumber;
271
19
  '100%': z.ZodNumber;
272
20
  }, z.core.$strip>;
21
+ export type TaskTmLeverage = z.infer<typeof TASK_TM_LEVERAGE_SCHEMA>;
273
22
  export declare const TASK_TM_LEVERAGE_VALUE_SCHEMA: z.ZodObject<{
274
23
  '0%+': z.ZodNumber;
275
24
  '50%+': z.ZodNumber;
@@ -278,6 +27,7 @@ export declare const TASK_TM_LEVERAGE_VALUE_SCHEMA: z.ZodObject<{
278
27
  '95%+': z.ZodNumber;
279
28
  '100%': z.ZodNumber;
280
29
  }, z.core.$strip>;
30
+ export type TaskTmLeverageValue = z.infer<typeof TASK_TM_LEVERAGE_VALUE_SCHEMA>;
281
31
  export declare const TASK_TM_LEVERAGE_STATUS_SCHEMA: z.ZodObject<{
282
32
  status: z.ZodString;
283
33
  value: z.ZodObject<{
@@ -289,6 +39,7 @@ export declare const TASK_TM_LEVERAGE_STATUS_SCHEMA: z.ZodObject<{
289
39
  '100%': z.ZodNumber;
290
40
  }, z.core.$strip>;
291
41
  }, z.core.$strip>;
42
+ export type TaskTmLeverageStatus = z.infer<typeof TASK_TM_LEVERAGE_STATUS_SCHEMA>;
292
43
  export declare const TASK_LANGUAGE_SCHEMA: z.ZodObject<{
293
44
  language_iso: z.ZodString;
294
45
  users: z.ZodArray<z.ZodObject<{
@@ -329,6 +80,7 @@ export declare const TASK_LANGUAGE_SCHEMA: z.ZodObject<{
329
80
  completed_by: z.ZodNullable<z.ZodNumber>;
330
81
  completed_by_email: z.ZodNullable<z.ZodEmail>;
331
82
  }, z.core.$strip>;
83
+ export type TaskLanguage = z.infer<typeof TASK_LANGUAGE_SCHEMA>;
332
84
  export declare const TASK_SCHEMA: z.ZodObject<{
333
85
  task_id: z.ZodNumber;
334
86
  title: z.ZodString;
@@ -400,6 +152,11 @@ export declare const TASK_SCHEMA: z.ZodObject<{
400
152
  completed_by_fullname: z.ZodNullable<z.ZodString>;
401
153
  custom_translation_status_ids: z.ZodArray<z.ZodNumber>;
402
154
  }, z.core.$strip>;
155
+ export type Task = z.infer<typeof TASK_SCHEMA>;
156
+ export declare const GET_EXPERT_TASK_REQUEST_PATH_PARAMS_SCHEMA: z.ZodObject<{
157
+ taskId: z.ZodNumber;
158
+ projectId: z.ZodGUID;
159
+ }, z.core.$strip>;
403
160
  export declare const GET_EXPERT_TASK_RESPONSE_SCHEMA: z.ZodObject<{
404
161
  project_id: z.ZodString;
405
162
  project_name: z.ZodString;
@@ -476,22 +233,6 @@ export declare const GET_EXPERT_TASK_RESPONSE_SCHEMA: z.ZodObject<{
476
233
  custom_translation_status_ids: z.ZodArray<z.ZodNumber>;
477
234
  }, z.core.$strip>;
478
235
  }, z.core.$strip>;
479
- export declare const GET_EXPERT_TASK_REQUEST_PATH_PARAMS_SCHEMA: z.ZodObject<{
480
- taskId: z.ZodNumber;
481
- projectId: z.ZodGUID;
482
- }, z.core.$strip>;
483
- export declare const AUTHORIZATION_HEADER_SCHEMA: z.ZodObject<{
484
- Authorization: z.ZodString;
485
- 'Content-Type': z.ZodLiteral<"application/json">;
486
- }, z.core.$strip>;
487
- export type ExpertHeaderAuthorization = z.infer<typeof AUTHORIZATION_HEADER_SCHEMA>;
488
- export type TaskUser = z.infer<typeof TASK_USER_SCHEMA>;
489
- export type TaskGroup = z.infer<typeof TASK_GROUP_SCHEMA>;
490
- export type TaskTmLeverage = z.infer<typeof TASK_TM_LEVERAGE_SCHEMA>;
491
- export type TaskTmLeverageValue = z.infer<typeof TASK_TM_LEVERAGE_VALUE_SCHEMA>;
492
- export type TaskTmLeverageStatus = z.infer<typeof TASK_TM_LEVERAGE_STATUS_SCHEMA>;
493
- export type TaskLanguage = z.infer<typeof TASK_LANGUAGE_SCHEMA>;
494
- export type Task = z.infer<typeof TASK_SCHEMA>;
495
236
  export type GetExpertTaskResponse = z.infer<typeof GET_EXPERT_TASK_RESPONSE_SCHEMA>;
496
237
  export declare const getExpertTaskContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
497
238
  project_id: z.ZodString;
@@ -575,6 +316,4 @@ export declare const getExpertTaskContract: import("@lokalise/api-contracts").Ge
575
316
  Authorization: z.ZodString;
576
317
  'Content-Type': z.ZodLiteral<"application/json">;
577
318
  }, z.core.$strip>, false, false>;
578
- export type GetExpertUserBasicData = z.infer<typeof GET_EXPERT_USER_BASIC_RESPONSE_SCHEMA>;
579
- export type HeaderExpertPageData = z.infer<typeof HEADER_EXPERT_PAGE_SCHEMA>;
580
- //# sourceMappingURL=api.d.ts.map
319
+ //# sourceMappingURL=tasks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../../src/schemas/expert/tasks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAG1B,eAAO,MAAM,gBAAgB;;;;;iBAK3B,CAAA;AACF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEvD,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAA;AACF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEzD,eAAO,MAAM,uBAAuB;;;;;;iBAMlC,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEpE,eAAO,MAAM,6BAA6B;;;;;;;iBAOxC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAE/E,eAAO,MAAM,8BAA8B;;;;;;;;;;iBAGzC,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAEjF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe/B,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAE/D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+BtB,CAAA;AACF,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA;AAM9C,eAAO,MAAM,0CAA0C;;;iBAGrD,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK1C,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAEnF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAUhC,CAAA"}
@@ -0,0 +1,105 @@
1
+ import { buildGetRoute } from '@lokalise/api-contracts';
2
+ import { z } from 'zod/v4';
3
+ import { EXPERT_AUTHORIZATION_HEADER_SCHEMA } from "./common.js";
4
+ export const TASK_USER_SCHEMA = z.object({
5
+ user_id: z.number(),
6
+ email: z.email(),
7
+ fullname: z.string(),
8
+ is_admin: z.boolean(),
9
+ });
10
+ export const TASK_GROUP_SCHEMA = z.object({
11
+ id: z.number(),
12
+ name: z.string(),
13
+ });
14
+ export const TASK_TM_LEVERAGE_SCHEMA = z.object({
15
+ '0%+': z.number(),
16
+ '60%+': z.number(),
17
+ '75%+': z.number(),
18
+ '95%+': z.number(),
19
+ '100%': z.number(),
20
+ });
21
+ export const TASK_TM_LEVERAGE_VALUE_SCHEMA = z.object({
22
+ '0%+': z.number(),
23
+ '50%+': z.number(),
24
+ '75%+': z.number(),
25
+ '85%+': z.number(),
26
+ '95%+': z.number(),
27
+ '100%': z.number(),
28
+ });
29
+ export const TASK_TM_LEVERAGE_STATUS_SCHEMA = z.object({
30
+ status: z.string(),
31
+ value: TASK_TM_LEVERAGE_VALUE_SCHEMA,
32
+ });
33
+ export const TASK_LANGUAGE_SCHEMA = z.object({
34
+ language_iso: z.string(),
35
+ users: z.array(TASK_USER_SCHEMA),
36
+ groups: z.array(TASK_GROUP_SCHEMA),
37
+ keys: z.array(z.number()),
38
+ status: z.string(),
39
+ progress: z.number(),
40
+ initial_tm_leverage: TASK_TM_LEVERAGE_SCHEMA,
41
+ tm_leverage: TASK_TM_LEVERAGE_STATUS_SCHEMA,
42
+ keys_count: z.number(),
43
+ words_count: z.number(),
44
+ completed_at: z.string().nullable(),
45
+ completed_at_timestamp: z.number().nullable(),
46
+ completed_by: z.number().nullable(),
47
+ completed_by_email: z.email().nullable(),
48
+ });
49
+ export const TASK_SCHEMA = z.object({
50
+ task_id: z.number(),
51
+ title: z.string(),
52
+ description: z.string(),
53
+ status: z.string(),
54
+ progress: z.number(),
55
+ can_be_parent: z.boolean(),
56
+ task_type: z.string(),
57
+ parent_task_id: z.number().nullable(),
58
+ closing_tags: z.array(z.string()),
59
+ do_lock_translations: z.boolean(),
60
+ due_date: z.string(),
61
+ due_date_timestamp: z.number(),
62
+ keys_count: z.number(),
63
+ words_count: z.number(),
64
+ created_at: z.string(),
65
+ created_at_timestamp: z.number(),
66
+ created_by: z.number(),
67
+ created_by_email: z.email(),
68
+ created_by_fullname: z.string(),
69
+ languages: z.array(TASK_LANGUAGE_SCHEMA),
70
+ source_language_iso: z.string(),
71
+ auto_close_languages: z.boolean(),
72
+ auto_close_task: z.boolean(),
73
+ auto_close_items: z.boolean(),
74
+ completed_at: z.string().nullable(),
75
+ completed_at_timestamp: z.number().nullable(),
76
+ completed_by: z.number().nullable(),
77
+ completed_by_email: z.email().nullable(),
78
+ completed_by_fullname: z.string().nullable(),
79
+ custom_translation_status_ids: z.array(z.number()),
80
+ });
81
+ // ---------------------------------------------------
82
+ // GET /api2/projects/:projectId/tasks/:taskId
83
+ // ---------------------------------------------------
84
+ export const GET_EXPERT_TASK_REQUEST_PATH_PARAMS_SCHEMA = z.object({
85
+ taskId: z.number().min(1),
86
+ projectId: z.guid(),
87
+ });
88
+ export const GET_EXPERT_TASK_RESPONSE_SCHEMA = z.object({
89
+ project_id: z.string(),
90
+ project_name: z.string(),
91
+ branch_name: z.string(),
92
+ task: TASK_SCHEMA,
93
+ });
94
+ export const getExpertTaskContract = buildGetRoute({
95
+ pathResolver: (params) => `/api2/projects/${params.projectId}/tasks/${params.taskId}`,
96
+ description: 'Retrieve a task by its ID',
97
+ requestQuerySchema: undefined,
98
+ requestPathParamsSchema: GET_EXPERT_TASK_REQUEST_PATH_PARAMS_SCHEMA,
99
+ successResponseBodySchema: GET_EXPERT_TASK_RESPONSE_SCHEMA,
100
+ responseSchemasByStatusCode: {
101
+ 200: GET_EXPERT_TASK_RESPONSE_SCHEMA,
102
+ },
103
+ requestHeaderSchema: EXPERT_AUTHORIZATION_HEADER_SCHEMA,
104
+ });
105
+ //# sourceMappingURL=tasks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../../src/schemas/expert/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAA;AAEhE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAA;AAGF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA;AAGF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,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AAuB,EAAE,0CAA0C;IACnE,yBAAyB,EAAE,+BAA+B;IAC1D,2BAA2B,EAAE;QAC3B,GAAG,EAAE,+BAA+B;KACrC;IACD,mBAAmB,EAAE,kCAAkC;CACxD,CAAC,CAAA"}
@@ -0,0 +1,62 @@
1
+ import { z } from 'zod/v4';
2
+ export declare const GET_USER_REQUEST_PATH_PARAMS_SCHEMA: z.ZodObject<{
3
+ userId: z.ZodGUID;
4
+ }, z.core.$strip>;
5
+ export type GetUserRequestPathParams = z.infer<typeof GET_USER_REQUEST_PATH_PARAMS_SCHEMA>;
6
+ export declare const GET_EXPERT_USER_RESPONSE_SCHEMA: z.ZodObject<{
7
+ id: z.ZodNumber;
8
+ uuid: z.ZodGUID;
9
+ fullname: z.ZodString;
10
+ email: z.ZodEmail;
11
+ }, z.core.$strip>;
12
+ export type GetExpertUserResponse = z.infer<typeof GET_EXPERT_USER_RESPONSE_SCHEMA>;
13
+ export declare const getUserContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
14
+ id: z.ZodNumber;
15
+ uuid: z.ZodGUID;
16
+ fullname: z.ZodString;
17
+ email: z.ZodEmail;
18
+ }, z.core.$strip>, z.ZodObject<{
19
+ userId: z.ZodGUID;
20
+ }, z.core.$strip>, undefined, z.ZodObject<{
21
+ Authorization: z.ZodString;
22
+ 'Content-Type': z.ZodLiteral<"application/json">;
23
+ }, z.core.$strip>, false, false>;
24
+ export declare const GET_TEAM_USER_REQUEST_PATH_PARAMS_SCHEMA: z.ZodObject<{
25
+ teamId: z.ZodGUID;
26
+ userId: z.ZodGUID;
27
+ }, z.core.$strip>;
28
+ export type GetTeamUserRequestPathParams = z.infer<typeof GET_TEAM_USER_REQUEST_PATH_PARAMS_SCHEMA>;
29
+ export declare const GET_EXPERT_TEAM_USER_RESPONSE_SCHEMA: z.ZodObject<{
30
+ team_id: z.ZodNumber;
31
+ team_uuid: z.ZodGUID;
32
+ team_user: z.ZodObject<{
33
+ user_id: z.ZodNumber;
34
+ email: z.ZodEmail;
35
+ fullname: z.ZodString;
36
+ created_at: z.ZodString;
37
+ created_at_timestamp: z.ZodNumber;
38
+ role: z.ZodString;
39
+ uuid: z.ZodGUID;
40
+ }, z.core.$strip>;
41
+ }, z.core.$strip>;
42
+ export type GetExpertTeamUserResponse = z.infer<typeof GET_EXPERT_TEAM_USER_RESPONSE_SCHEMA>;
43
+ export declare const getTeamUserContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
44
+ team_id: z.ZodNumber;
45
+ team_uuid: z.ZodGUID;
46
+ team_user: z.ZodObject<{
47
+ user_id: z.ZodNumber;
48
+ email: z.ZodEmail;
49
+ fullname: z.ZodString;
50
+ created_at: z.ZodString;
51
+ created_at_timestamp: z.ZodNumber;
52
+ role: z.ZodString;
53
+ uuid: z.ZodGUID;
54
+ }, z.core.$strip>;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ teamId: z.ZodGUID;
57
+ userId: z.ZodGUID;
58
+ }, z.core.$strip>, undefined, z.ZodObject<{
59
+ Authorization: z.ZodString;
60
+ 'Content-Type': z.ZodLiteral<"application/json">;
61
+ }, z.core.$strip>, false, false>;
62
+ //# sourceMappingURL=users.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/schemas/expert/users.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAO1B,eAAO,MAAM,mCAAmC;;iBAE9C,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AAE1F,eAAO,MAAM,+BAA+B;;;;;iBAK1C,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAEnF,eAAO,MAAM,eAAe;;;;;;;;;;gCAS1B,CAAA;AAMF,eAAO,MAAM,wCAAwC;;;iBAGnD,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAA;AAEnG,eAAO,MAAM,oCAAoC;;;;;;;;;;;;iBAY/C,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAA;AAE5F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;gCAS9B,CAAA"}
@@ -0,0 +1,56 @@
1
+ import { buildGetRoute } from '@lokalise/api-contracts';
2
+ import { z } from 'zod/v4';
3
+ import { EXPERT_AUTHORIZATION_HEADER_SCHEMA } from "./common.js";
4
+ // --------------------------------------------
5
+ // GET /api2/users/:userId
6
+ // --------------------------------------------
7
+ export const GET_USER_REQUEST_PATH_PARAMS_SCHEMA = z.object({
8
+ userId: z.guid(),
9
+ });
10
+ export const GET_EXPERT_USER_RESPONSE_SCHEMA = z.object({
11
+ id: z.number(),
12
+ uuid: z.guid(),
13
+ fullname: z.string(),
14
+ email: z.email(),
15
+ });
16
+ export const getUserContract = buildGetRoute({
17
+ pathResolver: (params) => `/api2/users/${params.userId}`,
18
+ description: 'Get basic user data',
19
+ requestPathParamsSchema: GET_USER_REQUEST_PATH_PARAMS_SCHEMA,
20
+ successResponseBodySchema: GET_EXPERT_USER_RESPONSE_SCHEMA,
21
+ responseSchemasByStatusCode: {
22
+ 200: GET_EXPERT_USER_RESPONSE_SCHEMA,
23
+ },
24
+ requestHeaderSchema: EXPERT_AUTHORIZATION_HEADER_SCHEMA,
25
+ });
26
+ // --------------------------------------------
27
+ // GET /api2/teams/:teamId/:userId
28
+ // --------------------------------------------
29
+ export const GET_TEAM_USER_REQUEST_PATH_PARAMS_SCHEMA = z.object({
30
+ teamId: z.guid(),
31
+ userId: z.guid(),
32
+ });
33
+ export const GET_EXPERT_TEAM_USER_RESPONSE_SCHEMA = z.object({
34
+ team_id: z.number(),
35
+ team_uuid: z.guid(),
36
+ team_user: z.object({
37
+ user_id: z.number(),
38
+ email: z.email(),
39
+ fullname: z.string(),
40
+ created_at: z.string(),
41
+ created_at_timestamp: z.number(),
42
+ role: z.string(),
43
+ uuid: z.guid(),
44
+ }),
45
+ });
46
+ export const getTeamUserContract = buildGetRoute({
47
+ pathResolver: (params) => `/api2/teams/${params.teamId}/${params.userId}`,
48
+ description: 'Get team user data',
49
+ requestPathParamsSchema: GET_TEAM_USER_REQUEST_PATH_PARAMS_SCHEMA,
50
+ successResponseBodySchema: GET_EXPERT_TEAM_USER_RESPONSE_SCHEMA,
51
+ responseSchemasByStatusCode: {
52
+ 200: GET_EXPERT_TEAM_USER_RESPONSE_SCHEMA,
53
+ },
54
+ requestHeaderSchema: EXPERT_AUTHORIZATION_HEADER_SCHEMA,
55
+ });
56
+ //# sourceMappingURL=users.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.js","sourceRoot":"","sources":["../../../src/schemas/expert/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAA;AAEhE,+CAA+C;AAC/C,0BAA0B;AAC1B,+CAA+C;AAE/C,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE;CACjB,CAAC,CAAA;AAGF,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE;IACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE;CACjB,CAAC,CAAA;AAGF,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC;IAC3C,YAAY,EAAE,CAAC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C3B,GAAG,EAAE,oCAAoC;KAC1C;IACD,mBAAmB,EAAE,kCAAkC;CACxD,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/workspaces-api-schemas",
3
- "version": "1.3.3",
3
+ "version": "2.0.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -24,6 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@lokalise/api-common": "^6.0.1",
27
+ "@lokalise/api-contracts": "^5.0.0",
27
28
  "@lokalise/common-api-schemas": "*",
28
29
  "@lokalise/harmony": "^3.0.0",
29
30
  "@lokalise/supported-languages": "^3.1.0",
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/schemas/expert/api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,eAAO,MAAM,oCAAoC;;;;;;;;;;;;iBAY/C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;iBAqBrC,CAAA;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;iBAIjD,CAAA;AAEF,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;iBAIvD,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgElD,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAElD,CAAA;AAEF,eAAO,MAAM,gDAAgD;;;;;;;;;iBAS3D,CAAA;AAEF,eAAO,MAAM,gDAAgD;;;;;;;;;;;;;iBAI3D,CAAA;AAEF,eAAO,MAAM,qCAAqC;;;;;iBAKhD,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;iBAMp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