@persei/perseed-api 5.0.0-beta.6 → 5.0.1

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 (47) hide show
  1. package/dist/client.cjs +223 -0
  2. package/dist/client.cjs.map +1 -1
  3. package/dist/client.mjs +223 -0
  4. package/dist/client.mjs.map +1 -1
  5. package/dist/lib/src/generated/client.d.ts +837 -0
  6. package/dist/lib/src/generated/client.d.ts.map +1 -1
  7. package/dist/src/Services/FormService.d.ts +6 -1
  8. package/dist/src/Services/FormService.d.ts.map +1 -1
  9. package/dist/src/controllers/FormController.d.ts.map +1 -1
  10. package/dist/src/controllers/PatientController.d.ts +1 -2
  11. package/dist/src/controllers/PatientController.d.ts.map +1 -1
  12. package/dist/src/helpers/dashboards.d.ts +5 -1
  13. package/dist/src/helpers/dashboards.d.ts.map +1 -1
  14. package/dist/src/helpers/dates.d.ts +1 -0
  15. package/dist/src/helpers/dates.d.ts.map +1 -1
  16. package/dist/src/helpers/handlebarsHelper.d.ts.map +1 -1
  17. package/dist/src/models/project/DesignerCrf.d.ts.map +1 -1
  18. package/dist/src/schemas/dashboard_widget/create_widget_payload.schema.json +1 -1
  19. package/dist/src/schemas/dashboard_widget/update_widget_payload.schema.json +1 -1
  20. package/dist/src/schemas/dashboard_widget/widgetTypes/PatientListProps.d.ts +2 -1
  21. package/dist/src/schemas/dashboard_widget/widgetTypes/PatientListProps.d.ts.map +1 -1
  22. package/dist/src/v2/modules/global/jsonlogic-to-sql/jsonlogic-to-sql.helper.d.ts.map +1 -1
  23. package/dist/src/v2/modules/project/document/document.controller.d.ts +5 -0
  24. package/dist/src/v2/modules/project/document/document.controller.d.ts.map +1 -0
  25. package/dist/src/v2/modules/project/document/document.controller.e2e.d.ts +2 -0
  26. package/dist/src/v2/modules/project/document/document.controller.e2e.d.ts.map +1 -0
  27. package/dist/src/v2/modules/project/document/document.controller.test.d.ts +2 -0
  28. package/dist/src/v2/modules/project/document/document.controller.test.d.ts.map +1 -0
  29. package/dist/src/v2/modules/project/document/document.model.d.ts +42 -4
  30. package/dist/src/v2/modules/project/document/document.model.d.ts.map +1 -1
  31. package/dist/src/v2/modules/project/document/document.schema.d.ts +42 -0
  32. package/dist/src/v2/modules/project/document/document.schema.d.ts.map +1 -1
  33. package/dist/src/v2/modules/project/document/document.service.d.ts +22 -0
  34. package/dist/src/v2/modules/project/document/document.service.d.ts.map +1 -0
  35. package/dist/src/v2/modules/project/document/document.service.test.d.ts +2 -0
  36. package/dist/src/v2/modules/project/document/document.service.test.d.ts.map +1 -0
  37. package/dist/src/v2/modules/project/document/index.d.ts +2 -0
  38. package/dist/src/v2/modules/project/document/index.d.ts.map +1 -1
  39. package/dist/src/v2/modules/project/document-category/index.d.ts +1 -0
  40. package/dist/src/v2/modules/project/document-category/index.d.ts.map +1 -1
  41. package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/document/index.d.ts +3 -0
  42. package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/document/index.d.ts.map +1 -0
  43. package/dist/v1/perseed-api.cjs +1 -0
  44. package/dist/v1/perseed-api.cjs.map +1 -1
  45. package/dist/v1/perseed-api.mjs +1 -0
  46. package/dist/v1/perseed-api.mjs.map +1 -1
  47. package/package.json +1 -1
package/dist/client.cjs CHANGED
@@ -1,5 +1,89 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const ListDocuments403AllOfThreeStatusCode = {
4
+ NUMBER_403: 403
5
+ };
6
+ const ListDocuments403AllOfThreeError = {
7
+ "forbidden-error": "forbidden-error"
8
+ };
9
+ const ListDocuments404AllOfThreeStatusCode = {
10
+ NUMBER_404: 404
11
+ };
12
+ const ListDocuments404AllOfThreeError = {
13
+ "not-found": "not-found"
14
+ };
15
+ const CreateDocument403AllOfThreeStatusCode = {
16
+ NUMBER_403: 403
17
+ };
18
+ const CreateDocument403AllOfThreeError = {
19
+ "forbidden-error": "forbidden-error"
20
+ };
21
+ const CreateDocument404AllOfThreeStatusCode = {
22
+ NUMBER_404: 404
23
+ };
24
+ const CreateDocument404AllOfThreeError = {
25
+ "not-found": "not-found"
26
+ };
27
+ const GetDocument403AllOfThreeStatusCode = {
28
+ NUMBER_403: 403
29
+ };
30
+ const GetDocument403AllOfThreeError = {
31
+ "forbidden-error": "forbidden-error"
32
+ };
33
+ const GetDocument404AllOfThreeStatusCode = {
34
+ NUMBER_404: 404
35
+ };
36
+ const GetDocument404AllOfThreeError = {
37
+ "not-found": "not-found"
38
+ };
39
+ const UpdateDocument403AllOfThreeStatusCode = {
40
+ NUMBER_403: 403
41
+ };
42
+ const UpdateDocument403AllOfThreeError = {
43
+ "forbidden-error": "forbidden-error"
44
+ };
45
+ const UpdateDocument404AllOfThreeStatusCode = {
46
+ NUMBER_404: 404
47
+ };
48
+ const UpdateDocument404AllOfThreeError = {
49
+ "not-found": "not-found"
50
+ };
51
+ const DeleteDocument403AllOfThreeStatusCode = {
52
+ NUMBER_403: 403
53
+ };
54
+ const DeleteDocument403AllOfThreeError = {
55
+ "forbidden-error": "forbidden-error"
56
+ };
57
+ const DeleteDocument404AllOfThreeStatusCode = {
58
+ NUMBER_404: 404
59
+ };
60
+ const DeleteDocument404AllOfThreeError = {
61
+ "not-found": "not-found"
62
+ };
63
+ const AddCategoryToDocument403AllOfThreeStatusCode = {
64
+ NUMBER_403: 403
65
+ };
66
+ const AddCategoryToDocument403AllOfThreeError = {
67
+ "forbidden-error": "forbidden-error"
68
+ };
69
+ const AddCategoryToDocument404AllOfThreeStatusCode = {
70
+ NUMBER_404: 404
71
+ };
72
+ const AddCategoryToDocument404AllOfThreeError = {
73
+ "not-found": "not-found"
74
+ };
75
+ const RemoveCategoryFromDocument403AllOfThreeStatusCode = {
76
+ NUMBER_403: 403
77
+ };
78
+ const RemoveCategoryFromDocument403AllOfThreeError = {
79
+ "forbidden-error": "forbidden-error"
80
+ };
81
+ const RemoveCategoryFromDocument404AllOfThreeStatusCode = {
82
+ NUMBER_404: 404
83
+ };
84
+ const RemoveCategoryFromDocument404AllOfThreeError = {
85
+ "not-found": "not-found"
86
+ };
3
87
  const ListDocumentCategories403AllOfThreeStatusCode = {
4
88
  NUMBER_403: 403
5
89
  };
@@ -72,6 +156,103 @@ const postV2AuthLoginGlobal = async (options) => {
72
156
  const data = body ? JSON.parse(body) : {};
73
157
  return { data, status: res.status, headers: res.headers };
74
158
  };
159
+ const getListDocumentsUrl = (ecosystemName, projectName, params) => {
160
+ const normalizedParams = new URLSearchParams();
161
+ Object.entries(params || {}).forEach(([key, value]) => {
162
+ if (value !== void 0) {
163
+ normalizedParams.append(key, value === null ? "null" : value.toString());
164
+ }
165
+ });
166
+ const stringifiedParams = normalizedParams.toString();
167
+ return stringifiedParams.length > 0 ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/?${stringifiedParams}` : `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/`;
168
+ };
169
+ const listDocuments = async (ecosystemName, projectName, params, options) => {
170
+ const res = await fetch(getListDocumentsUrl(ecosystemName, projectName, params), {
171
+ ...options,
172
+ method: "GET"
173
+ });
174
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
175
+ const data = body ? JSON.parse(body) : {};
176
+ return { data, status: res.status, headers: res.headers };
177
+ };
178
+ const getCreateDocumentUrl = (ecosystemName, projectName) => {
179
+ return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/`;
180
+ };
181
+ const createDocument = async (ecosystemName, projectName, createDocumentBody, options) => {
182
+ const res = await fetch(getCreateDocumentUrl(ecosystemName, projectName), {
183
+ ...options,
184
+ method: "POST",
185
+ headers: { "Content-Type": "application/json", ...options?.headers },
186
+ body: JSON.stringify(createDocumentBody)
187
+ });
188
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
189
+ const data = body ? JSON.parse(body) : {};
190
+ return { data, status: res.status, headers: res.headers };
191
+ };
192
+ const getGetDocumentUrl = (ecosystemName, projectName, id) => {
193
+ return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}`;
194
+ };
195
+ const getDocument = async (ecosystemName, projectName, id, options) => {
196
+ const res = await fetch(getGetDocumentUrl(ecosystemName, projectName, id), {
197
+ ...options,
198
+ method: "GET"
199
+ });
200
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
201
+ const data = body ? JSON.parse(body) : {};
202
+ return { data, status: res.status, headers: res.headers };
203
+ };
204
+ const getUpdateDocumentUrl = (ecosystemName, projectName, id) => {
205
+ return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}`;
206
+ };
207
+ const updateDocument = async (ecosystemName, projectName, id, updateDocumentBody, options) => {
208
+ const res = await fetch(getUpdateDocumentUrl(ecosystemName, projectName, id), {
209
+ ...options,
210
+ method: "PATCH",
211
+ headers: { "Content-Type": "application/json", ...options?.headers },
212
+ body: JSON.stringify(updateDocumentBody)
213
+ });
214
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
215
+ const data = body ? JSON.parse(body) : {};
216
+ return { data, status: res.status, headers: res.headers };
217
+ };
218
+ const getDeleteDocumentUrl = (ecosystemName, projectName, id) => {
219
+ return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}`;
220
+ };
221
+ const deleteDocument = async (ecosystemName, projectName, id, options) => {
222
+ const res = await fetch(getDeleteDocumentUrl(ecosystemName, projectName, id), {
223
+ ...options,
224
+ method: "DELETE"
225
+ });
226
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
227
+ const data = body ? JSON.parse(body) : {};
228
+ return { data, status: res.status, headers: res.headers };
229
+ };
230
+ const getAddCategoryToDocumentUrl = (ecosystemName, projectName, id) => {
231
+ return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}/categories`;
232
+ };
233
+ const addCategoryToDocument = async (ecosystemName, projectName, id, addCategoryToDocumentBody, options) => {
234
+ const res = await fetch(getAddCategoryToDocumentUrl(ecosystemName, projectName, id), {
235
+ ...options,
236
+ method: "POST",
237
+ headers: { "Content-Type": "application/json", ...options?.headers },
238
+ body: JSON.stringify(addCategoryToDocumentBody)
239
+ });
240
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
241
+ const data = body ? JSON.parse(body) : {};
242
+ return { data, status: res.status, headers: res.headers };
243
+ };
244
+ const getRemoveCategoryFromDocumentUrl = (ecosystemName, projectName, documentId, categoryId) => {
245
+ return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${documentId}/categories/${categoryId}`;
246
+ };
247
+ const removeCategoryFromDocument = async (ecosystemName, projectName, documentId, categoryId, options) => {
248
+ const res = await fetch(getRemoveCategoryFromDocumentUrl(ecosystemName, projectName, documentId, categoryId), {
249
+ ...options,
250
+ method: "DELETE"
251
+ });
252
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
253
+ const data = body ? JSON.parse(body) : {};
254
+ return { data, status: res.status, headers: res.headers };
255
+ };
75
256
  const getListDocumentCategoriesUrl = (ecosystemName, projectName, params) => {
76
257
  const normalizedParams = new URLSearchParams();
77
258
  Object.entries(params || {}).forEach(([key, value]) => {
@@ -143,14 +324,30 @@ const deleteDocumentCategory = async (ecosystemName, projectName, id, options) =
143
324
  const data = body ? JSON.parse(body) : {};
144
325
  return { data, status: res.status, headers: res.headers };
145
326
  };
327
+ exports.AddCategoryToDocument403AllOfThreeError = AddCategoryToDocument403AllOfThreeError;
328
+ exports.AddCategoryToDocument403AllOfThreeStatusCode = AddCategoryToDocument403AllOfThreeStatusCode;
329
+ exports.AddCategoryToDocument404AllOfThreeError = AddCategoryToDocument404AllOfThreeError;
330
+ exports.AddCategoryToDocument404AllOfThreeStatusCode = AddCategoryToDocument404AllOfThreeStatusCode;
331
+ exports.CreateDocument403AllOfThreeError = CreateDocument403AllOfThreeError;
332
+ exports.CreateDocument403AllOfThreeStatusCode = CreateDocument403AllOfThreeStatusCode;
333
+ exports.CreateDocument404AllOfThreeError = CreateDocument404AllOfThreeError;
334
+ exports.CreateDocument404AllOfThreeStatusCode = CreateDocument404AllOfThreeStatusCode;
146
335
  exports.CreateDocumentCategory403AllOfThreeError = CreateDocumentCategory403AllOfThreeError;
147
336
  exports.CreateDocumentCategory403AllOfThreeStatusCode = CreateDocumentCategory403AllOfThreeStatusCode;
148
337
  exports.CreateDocumentCategory404AllOfThreeError = CreateDocumentCategory404AllOfThreeError;
149
338
  exports.CreateDocumentCategory404AllOfThreeStatusCode = CreateDocumentCategory404AllOfThreeStatusCode;
339
+ exports.DeleteDocument403AllOfThreeError = DeleteDocument403AllOfThreeError;
340
+ exports.DeleteDocument403AllOfThreeStatusCode = DeleteDocument403AllOfThreeStatusCode;
341
+ exports.DeleteDocument404AllOfThreeError = DeleteDocument404AllOfThreeError;
342
+ exports.DeleteDocument404AllOfThreeStatusCode = DeleteDocument404AllOfThreeStatusCode;
150
343
  exports.DeleteDocumentCategory403AllOfThreeError = DeleteDocumentCategory403AllOfThreeError;
151
344
  exports.DeleteDocumentCategory403AllOfThreeStatusCode = DeleteDocumentCategory403AllOfThreeStatusCode;
152
345
  exports.DeleteDocumentCategory404AllOfThreeError = DeleteDocumentCategory404AllOfThreeError;
153
346
  exports.DeleteDocumentCategory404AllOfThreeStatusCode = DeleteDocumentCategory404AllOfThreeStatusCode;
347
+ exports.GetDocument403AllOfThreeError = GetDocument403AllOfThreeError;
348
+ exports.GetDocument403AllOfThreeStatusCode = GetDocument403AllOfThreeStatusCode;
349
+ exports.GetDocument404AllOfThreeError = GetDocument404AllOfThreeError;
350
+ exports.GetDocument404AllOfThreeStatusCode = GetDocument404AllOfThreeStatusCode;
154
351
  exports.GetDocumentCategory403AllOfThreeError = GetDocumentCategory403AllOfThreeError;
155
352
  exports.GetDocumentCategory403AllOfThreeStatusCode = GetDocumentCategory403AllOfThreeStatusCode;
156
353
  exports.GetDocumentCategory404AllOfThreeError = GetDocumentCategory404AllOfThreeError;
@@ -159,20 +356,46 @@ exports.ListDocumentCategories403AllOfThreeError = ListDocumentCategories403AllO
159
356
  exports.ListDocumentCategories403AllOfThreeStatusCode = ListDocumentCategories403AllOfThreeStatusCode;
160
357
  exports.ListDocumentCategories404AllOfThreeError = ListDocumentCategories404AllOfThreeError;
161
358
  exports.ListDocumentCategories404AllOfThreeStatusCode = ListDocumentCategories404AllOfThreeStatusCode;
359
+ exports.ListDocuments403AllOfThreeError = ListDocuments403AllOfThreeError;
360
+ exports.ListDocuments403AllOfThreeStatusCode = ListDocuments403AllOfThreeStatusCode;
361
+ exports.ListDocuments404AllOfThreeError = ListDocuments404AllOfThreeError;
362
+ exports.ListDocuments404AllOfThreeStatusCode = ListDocuments404AllOfThreeStatusCode;
363
+ exports.RemoveCategoryFromDocument403AllOfThreeError = RemoveCategoryFromDocument403AllOfThreeError;
364
+ exports.RemoveCategoryFromDocument403AllOfThreeStatusCode = RemoveCategoryFromDocument403AllOfThreeStatusCode;
365
+ exports.RemoveCategoryFromDocument404AllOfThreeError = RemoveCategoryFromDocument404AllOfThreeError;
366
+ exports.RemoveCategoryFromDocument404AllOfThreeStatusCode = RemoveCategoryFromDocument404AllOfThreeStatusCode;
367
+ exports.UpdateDocument403AllOfThreeError = UpdateDocument403AllOfThreeError;
368
+ exports.UpdateDocument403AllOfThreeStatusCode = UpdateDocument403AllOfThreeStatusCode;
369
+ exports.UpdateDocument404AllOfThreeError = UpdateDocument404AllOfThreeError;
370
+ exports.UpdateDocument404AllOfThreeStatusCode = UpdateDocument404AllOfThreeStatusCode;
162
371
  exports.UpdateDocumentCategory403AllOfThreeError = UpdateDocumentCategory403AllOfThreeError;
163
372
  exports.UpdateDocumentCategory403AllOfThreeStatusCode = UpdateDocumentCategory403AllOfThreeStatusCode;
164
373
  exports.UpdateDocumentCategory404AllOfThreeError = UpdateDocumentCategory404AllOfThreeError;
165
374
  exports.UpdateDocumentCategory404AllOfThreeStatusCode = UpdateDocumentCategory404AllOfThreeStatusCode;
375
+ exports.addCategoryToDocument = addCategoryToDocument;
376
+ exports.createDocument = createDocument;
166
377
  exports.createDocumentCategory = createDocumentCategory;
378
+ exports.deleteDocument = deleteDocument;
167
379
  exports.deleteDocumentCategory = deleteDocumentCategory;
380
+ exports.getAddCategoryToDocumentUrl = getAddCategoryToDocumentUrl;
168
381
  exports.getCreateDocumentCategoryUrl = getCreateDocumentCategoryUrl;
382
+ exports.getCreateDocumentUrl = getCreateDocumentUrl;
169
383
  exports.getDeleteDocumentCategoryUrl = getDeleteDocumentCategoryUrl;
384
+ exports.getDeleteDocumentUrl = getDeleteDocumentUrl;
385
+ exports.getDocument = getDocument;
170
386
  exports.getDocumentCategory = getDocumentCategory;
171
387
  exports.getGetDocumentCategoryUrl = getGetDocumentCategoryUrl;
388
+ exports.getGetDocumentUrl = getGetDocumentUrl;
172
389
  exports.getListDocumentCategoriesUrl = getListDocumentCategoriesUrl;
390
+ exports.getListDocumentsUrl = getListDocumentsUrl;
173
391
  exports.getPostV2AuthLoginGlobalUrl = getPostV2AuthLoginGlobalUrl;
392
+ exports.getRemoveCategoryFromDocumentUrl = getRemoveCategoryFromDocumentUrl;
174
393
  exports.getUpdateDocumentCategoryUrl = getUpdateDocumentCategoryUrl;
394
+ exports.getUpdateDocumentUrl = getUpdateDocumentUrl;
175
395
  exports.listDocumentCategories = listDocumentCategories;
396
+ exports.listDocuments = listDocuments;
176
397
  exports.postV2AuthLoginGlobal = postV2AuthLoginGlobal;
398
+ exports.removeCategoryFromDocument = removeCategoryFromDocument;
399
+ exports.updateDocument = updateDocument;
177
400
  exports.updateDocumentCategory = updateDocumentCategory;
178
401
  //# sourceMappingURL=client.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.cjs","sources":["../src/generated/client.ts"],"sourcesContent":["/**\n * Generated by orval v7.18.0 🍺\n * Do not edit manually.\n * @fastify/swagger\n * OpenAPI spec version: 9.5.2\n */\nexport type ListDocumentCategoriesParams = {\n /**\n * Page number starting from 0\n */\n page?: number\n /**\n * The number of items per page\n */\n perPage?: number\n}\n\n/**\n * Document category data\n */\nexport type ListDocumentCategories200ResultsItemAllOf = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\nexport type ListDocumentCategories200ResultsItemAllOfTwo = {\n /** Number of documents in this category */\n documents_count: number\n}\n\n/**\n * Document category list item\n */\nexport type ListDocumentCategories200ResultsItem = ListDocumentCategories200ResultsItemAllOf &\n ListDocumentCategories200ResultsItemAllOfTwo\n\n/**\n * Paginated response\n */\nexport type ListDocumentCategories200 = {\n /** Array of items of the current page */\n results: ListDocumentCategories200ResultsItem[]\n /** Total number of items not in this page but in the whole query */\n total: number\n}\n\n/**\n * Debug information of the error\n */\nexport type ListDocumentCategories403AllOfDebug = { [key: string]: unknown }\n\nexport type ListDocumentCategories403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListDocumentCategories403AllOfDebug\n}\n\nexport type ListDocumentCategories403AllOfThreeStatusCode =\n typeof ListDocumentCategories403AllOfThreeStatusCode[keyof typeof ListDocumentCategories403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type ListDocumentCategories403AllOfThreeError =\n typeof ListDocumentCategories403AllOfThreeError[keyof typeof ListDocumentCategories403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type ListDocumentCategories403AllOfThree = {\n statusCode: ListDocumentCategories403AllOfThreeStatusCode\n error: ListDocumentCategories403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type ListDocumentCategories403 = ListDocumentCategories403AllOf & ListDocumentCategories403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type ListDocumentCategories404AllOfDebug = { [key: string]: unknown }\n\nexport type ListDocumentCategories404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListDocumentCategories404AllOfDebug\n}\n\nexport type ListDocumentCategories404AllOfThreeStatusCode =\n typeof ListDocumentCategories404AllOfThreeStatusCode[keyof typeof ListDocumentCategories404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type ListDocumentCategories404AllOfThreeError =\n typeof ListDocumentCategories404AllOfThreeError[keyof typeof ListDocumentCategories404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type ListDocumentCategories404AllOfThree = {\n statusCode: ListDocumentCategories404AllOfThreeStatusCode\n error: ListDocumentCategories404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type ListDocumentCategories404 = ListDocumentCategories404AllOf & ListDocumentCategories404AllOfThree\n\n/**\n * Document category creation payload\n */\nexport type CreateDocumentCategoryBody = {\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Document category data\n */\nexport type CreateDocumentCategory200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Debug information of the error\n */\nexport type CreateDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type CreateDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateDocumentCategory403AllOfDebug\n}\n\nexport type CreateDocumentCategory403AllOfThreeStatusCode =\n typeof CreateDocumentCategory403AllOfThreeStatusCode[keyof typeof CreateDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type CreateDocumentCategory403AllOfThreeError =\n typeof CreateDocumentCategory403AllOfThreeError[keyof typeof CreateDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type CreateDocumentCategory403AllOfThree = {\n statusCode: CreateDocumentCategory403AllOfThreeStatusCode\n error: CreateDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type CreateDocumentCategory403 = CreateDocumentCategory403AllOf & CreateDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type CreateDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type CreateDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateDocumentCategory404AllOfDebug\n}\n\nexport type CreateDocumentCategory404AllOfThreeStatusCode =\n typeof CreateDocumentCategory404AllOfThreeStatusCode[keyof typeof CreateDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type CreateDocumentCategory404AllOfThreeError =\n typeof CreateDocumentCategory404AllOfThreeError[keyof typeof CreateDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type CreateDocumentCategory404AllOfThree = {\n statusCode: CreateDocumentCategory404AllOfThreeStatusCode\n error: CreateDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type CreateDocumentCategory404 = CreateDocumentCategory404AllOf & CreateDocumentCategory404AllOfThree\n\n/**\n * Document category data\n */\nexport type GetDocumentCategory200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Debug information of the error\n */\nexport type GetDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type GetDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetDocumentCategory403AllOfDebug\n}\n\nexport type GetDocumentCategory403AllOfThreeStatusCode =\n typeof GetDocumentCategory403AllOfThreeStatusCode[keyof typeof GetDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetDocumentCategory403AllOfThreeError =\n typeof GetDocumentCategory403AllOfThreeError[keyof typeof GetDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetDocumentCategory403AllOfThree = {\n statusCode: GetDocumentCategory403AllOfThreeStatusCode\n error: GetDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetDocumentCategory403 = GetDocumentCategory403AllOf & GetDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type GetDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetDocumentCategory404AllOfDebug\n}\n\nexport type GetDocumentCategory404AllOfThreeStatusCode =\n typeof GetDocumentCategory404AllOfThreeStatusCode[keyof typeof GetDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetDocumentCategory404AllOfThreeError =\n typeof GetDocumentCategory404AllOfThreeError[keyof typeof GetDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetDocumentCategory404AllOfThree = {\n statusCode: GetDocumentCategory404AllOfThreeStatusCode\n error: GetDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetDocumentCategory404 = GetDocumentCategory404AllOf & GetDocumentCategory404AllOfThree\n\n/**\n * Document category update payload\n */\nexport type UpdateDocumentCategoryBody = {\n /**\n * Name of the category\n * @maxLength 100\n */\n name?: string\n}\n\n/**\n * Document category data\n */\nexport type UpdateDocumentCategory200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Debug information of the error\n */\nexport type UpdateDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateDocumentCategory403AllOfDebug\n}\n\nexport type UpdateDocumentCategory403AllOfThreeStatusCode =\n typeof UpdateDocumentCategory403AllOfThreeStatusCode[keyof typeof UpdateDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type UpdateDocumentCategory403AllOfThreeError =\n typeof UpdateDocumentCategory403AllOfThreeError[keyof typeof UpdateDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type UpdateDocumentCategory403AllOfThree = {\n statusCode: UpdateDocumentCategory403AllOfThreeStatusCode\n error: UpdateDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type UpdateDocumentCategory403 = UpdateDocumentCategory403AllOf & UpdateDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type UpdateDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateDocumentCategory404AllOfDebug\n}\n\nexport type UpdateDocumentCategory404AllOfThreeStatusCode =\n typeof UpdateDocumentCategory404AllOfThreeStatusCode[keyof typeof UpdateDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type UpdateDocumentCategory404AllOfThreeError =\n typeof UpdateDocumentCategory404AllOfThreeError[keyof typeof UpdateDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type UpdateDocumentCategory404AllOfThree = {\n statusCode: UpdateDocumentCategory404AllOfThreeStatusCode\n error: UpdateDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type UpdateDocumentCategory404 = UpdateDocumentCategory404AllOf & UpdateDocumentCategory404AllOfThree\n\n/**\n * Response when the request is successful\n */\nexport type DeleteDocumentCategory200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type DeleteDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteDocumentCategory403AllOfDebug\n}\n\nexport type DeleteDocumentCategory403AllOfThreeStatusCode =\n typeof DeleteDocumentCategory403AllOfThreeStatusCode[keyof typeof DeleteDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type DeleteDocumentCategory403AllOfThreeError =\n typeof DeleteDocumentCategory403AllOfThreeError[keyof typeof DeleteDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type DeleteDocumentCategory403AllOfThree = {\n statusCode: DeleteDocumentCategory403AllOfThreeStatusCode\n error: DeleteDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type DeleteDocumentCategory403 = DeleteDocumentCategory403AllOf & DeleteDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type DeleteDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteDocumentCategory404AllOfDebug\n}\n\nexport type DeleteDocumentCategory404AllOfThreeStatusCode =\n typeof DeleteDocumentCategory404AllOfThreeStatusCode[keyof typeof DeleteDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type DeleteDocumentCategory404AllOfThreeError =\n typeof DeleteDocumentCategory404AllOfThreeError[keyof typeof DeleteDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type DeleteDocumentCategory404AllOfThree = {\n statusCode: DeleteDocumentCategory404AllOfThreeStatusCode\n error: DeleteDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type DeleteDocumentCategory404 = DeleteDocumentCategory404AllOf & DeleteDocumentCategory404AllOfThree\n\nexport type postV2AuthLoginGlobalResponse200 = {\n data: void\n status: 200\n}\n\nexport type postV2AuthLoginGlobalResponseSuccess = postV2AuthLoginGlobalResponse200 & {\n headers: Headers\n}\nexport type postV2AuthLoginGlobalResponse = postV2AuthLoginGlobalResponseSuccess\n\nexport const getPostV2AuthLoginGlobalUrl = () => {\n return `/v2/auth/login/global`\n}\n\nexport const postV2AuthLoginGlobal = async (options?: RequestInit): Promise<postV2AuthLoginGlobalResponse> => {\n const res = await fetch(getPostV2AuthLoginGlobalUrl(), {\n ...options,\n method: 'POST',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: postV2AuthLoginGlobalResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as postV2AuthLoginGlobalResponse\n}\n\n/**\n * A paginated list of document categories with the number of documents in each category\n */\nexport type listDocumentCategoriesResponse200 = {\n data: ListDocumentCategories200\n status: 200\n}\n\nexport type listDocumentCategoriesResponse403 = {\n data: ListDocumentCategories403\n status: 403\n}\n\nexport type listDocumentCategoriesResponse404 = {\n data: ListDocumentCategories404\n status: 404\n}\n\nexport type listDocumentCategoriesResponseSuccess = listDocumentCategoriesResponse200 & {\n headers: Headers\n}\nexport type listDocumentCategoriesResponseError = (\n | listDocumentCategoriesResponse403\n | listDocumentCategoriesResponse404\n) & {\n headers: Headers\n}\n\nexport type listDocumentCategoriesResponse = listDocumentCategoriesResponseSuccess | listDocumentCategoriesResponseError\n\nexport const getListDocumentCategoriesUrl = (\n ecosystemName: string,\n projectName: string,\n params?: ListDocumentCategoriesParams,\n) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/`\n}\n\nexport const listDocumentCategories = async (\n ecosystemName: string,\n projectName: string,\n params?: ListDocumentCategoriesParams,\n options?: RequestInit,\n): Promise<listDocumentCategoriesResponse> => {\n const res = await fetch(getListDocumentCategoriesUrl(ecosystemName, projectName, params), {\n ...options,\n method: 'GET',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: listDocumentCategoriesResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as listDocumentCategoriesResponse\n}\n\n/**\n * Creates a document category with the provided data\n */\nexport type createDocumentCategoryResponse200 = {\n data: CreateDocumentCategory200\n status: 200\n}\n\nexport type createDocumentCategoryResponse403 = {\n data: CreateDocumentCategory403\n status: 403\n}\n\nexport type createDocumentCategoryResponse404 = {\n data: CreateDocumentCategory404\n status: 404\n}\n\nexport type createDocumentCategoryResponseSuccess = createDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type createDocumentCategoryResponseError = (\n | createDocumentCategoryResponse403\n | createDocumentCategoryResponse404\n) & {\n headers: Headers\n}\n\nexport type createDocumentCategoryResponse = createDocumentCategoryResponseSuccess | createDocumentCategoryResponseError\n\nexport const getCreateDocumentCategoryUrl = (ecosystemName: string, projectName: string) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/`\n}\n\nexport const createDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n createDocumentCategoryBody: CreateDocumentCategoryBody,\n options?: RequestInit,\n): Promise<createDocumentCategoryResponse> => {\n const res = await fetch(getCreateDocumentCategoryUrl(ecosystemName, projectName), {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(createDocumentCategoryBody),\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: createDocumentCategoryResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as createDocumentCategoryResponse\n}\n\n/**\n * Get the data of a document category\n */\nexport type getDocumentCategoryResponse200 = {\n data: GetDocumentCategory200\n status: 200\n}\n\nexport type getDocumentCategoryResponse403 = {\n data: GetDocumentCategory403\n status: 403\n}\n\nexport type getDocumentCategoryResponse404 = {\n data: GetDocumentCategory404\n status: 404\n}\n\nexport type getDocumentCategoryResponseSuccess = getDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type getDocumentCategoryResponseError = (getDocumentCategoryResponse403 | getDocumentCategoryResponse404) & {\n headers: Headers\n}\n\nexport type getDocumentCategoryResponse = getDocumentCategoryResponseSuccess | getDocumentCategoryResponseError\n\nexport const getGetDocumentCategoryUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/${id}`\n}\n\nexport const getDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<getDocumentCategoryResponse> => {\n const res = await fetch(getGetDocumentCategoryUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'GET',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: getDocumentCategoryResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as getDocumentCategoryResponse\n}\n\n/**\n * Updates (patch) a document category with the provided data\n */\nexport type updateDocumentCategoryResponse200 = {\n data: UpdateDocumentCategory200\n status: 200\n}\n\nexport type updateDocumentCategoryResponse403 = {\n data: UpdateDocumentCategory403\n status: 403\n}\n\nexport type updateDocumentCategoryResponse404 = {\n data: UpdateDocumentCategory404\n status: 404\n}\n\nexport type updateDocumentCategoryResponseSuccess = updateDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type updateDocumentCategoryResponseError = (\n | updateDocumentCategoryResponse403\n | updateDocumentCategoryResponse404\n) & {\n headers: Headers\n}\n\nexport type updateDocumentCategoryResponse = updateDocumentCategoryResponseSuccess | updateDocumentCategoryResponseError\n\nexport const getUpdateDocumentCategoryUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/${id}`\n}\n\nexport const updateDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n updateDocumentCategoryBody: UpdateDocumentCategoryBody,\n options?: RequestInit,\n): Promise<updateDocumentCategoryResponse> => {\n const res = await fetch(getUpdateDocumentCategoryUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(updateDocumentCategoryBody),\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: updateDocumentCategoryResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as updateDocumentCategoryResponse\n}\n\n/**\n * Deletes a document category with the provided ID\n */\nexport type deleteDocumentCategoryResponse200 = {\n data: DeleteDocumentCategory200\n status: 200\n}\n\nexport type deleteDocumentCategoryResponse403 = {\n data: DeleteDocumentCategory403\n status: 403\n}\n\nexport type deleteDocumentCategoryResponse404 = {\n data: DeleteDocumentCategory404\n status: 404\n}\n\nexport type deleteDocumentCategoryResponseSuccess = deleteDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type deleteDocumentCategoryResponseError = (\n | deleteDocumentCategoryResponse403\n | deleteDocumentCategoryResponse404\n) & {\n headers: Headers\n}\n\nexport type deleteDocumentCategoryResponse = deleteDocumentCategoryResponseSuccess | deleteDocumentCategoryResponseError\n\nexport const getDeleteDocumentCategoryUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/${id}`\n}\n\nexport const deleteDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<deleteDocumentCategoryResponse> => {\n const res = await fetch(getDeleteDocumentCategoryUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'DELETE',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: deleteDocumentCategoryResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as deleteDocumentCategoryResponse\n}\n"],"names":[],"mappings":";;AAuEO,MAAM,gDAAgD;AAAA,EAC3D,YAAY;AACd;AAMO,MAAM,2CAA2C;AAAA,EACtD,mBAAmB;AACrB;AAgCO,MAAM,gDAAgD;AAAA,EAC3D,YAAY;AACd;AAMO,MAAM,2CAA2C;AAAA,EACtD,aAAa;AACf;AAwDO,MAAM,gDAAgD;AAAA,EAC3D,YAAY;AACd;AAMO,MAAM,2CAA2C;AAAA,EACtD,mBAAmB;AACrB;AAgCO,MAAM,gDAAgD;AAAA,EAC3D,YAAY;AACd;AAMO,MAAM,2CAA2C;AAAA,EACtD,aAAa;AACf;AA6CO,MAAM,6CAA6C;AAAA,EACxD,YAAY;AACd;AAMO,MAAM,wCAAwC;AAAA,EACnD,mBAAmB;AACrB;AAgCO,MAAM,6CAA6C;AAAA,EACxD,YAAY;AACd;AAMO,MAAM,wCAAwC;AAAA,EACnD,aAAa;AACf;AAwDO,MAAM,gDAAgD;AAAA,EAC3D,YAAY;AACd;AAMO,MAAM,2CAA2C;AAAA,EACtD,mBAAmB;AACrB;AAgCO,MAAM,gDAAgD;AAAA,EAC3D,YAAY;AACd;AAMO,MAAM,2CAA2C;AAAA,EACtD,aAAa;AACf;AAwCO,MAAM,gDAAgD;AAAA,EAC3D,YAAY;AACd;AAMO,MAAM,2CAA2C;AAAA,EACtD,mBAAmB;AACrB;AAgCO,MAAM,gDAAgD;AAAA,EAC3D,YAAY;AACd;AAMO,MAAM,2CAA2C;AAAA,EACtD,aAAa;AACf;AAsBO,MAAM,8BAA8B,MAAM;AAC/C,SAAO;AACT;AAEO,MAAM,wBAAwB,OAAO,YAAkE;AAC5G,QAAM,MAAM,MAAM,MAAM,+BAA+B;AAAA,IACrD,GAAG;AAAA,IACH,QAAQ;AAAA,EAAA,CACT;AAED,QAAM,OAAO,CAAC,KAAK,KAAK,GAAG,EAAE,SAAS,IAAI,MAAM,IAAI,OA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MAAM,IAAI,KAAA;AAErE,QAAM,OAA+C,OAAO,KAAK,MAAM,IAAI,IAAI,CAAA;AAC/E,SAAO,EAAE,MAAM,QAAQ,IAAI,QAAQ,SAAS,IAAI,QAAA;AAClD;AAgCO,MAAM,+BAA+B,CAAC,eAAuB,aAAqB,OAAe;AACtG,SAAO,iBAAiB,aAAa,YAAY,WAAW,sBAAsB,EAAE;AACtF;AAEO,MAAM,yBAAyB,OACpC,eACA,aACA,IACA,YAC4C;AAC5C,QAAM,MAAM,MAAM,MAAM,6BAA6B,eAAe,aAAa,EAAE,GAAG;AAAA,IACpF,GAAG;AAAA,IACH,QAAQ;AAAA,EAAA,CACT;AAED,QAAM,OAAO,CAAC,KAAK,KAAK,GAAG,EAAE,SAAS,IAAI,MAAM,IAAI,OAAO,MAAM,IAAI,KAAA;AAErE,QAAM,OAA+C,OAAO,KAAK,MAAM,IAAI,IAAI,CAAA;AAC/E,SAAO,EAAE,MAAM,QAAQ,IAAI,QAAQ,SAAS,IAAI,QAAA;AAClD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"client.cjs","sources":["../src/generated/client.ts"],"sourcesContent":["/**\n * Generated by orval v7.18.0 🍺\n * Do not edit manually.\n * @fastify/swagger\n * OpenAPI spec version: 9.5.2\n */\nexport type ListDocumentsParams = {\n /**\n * Page number starting from 0\n */\n page?: number\n /**\n * The number of items per page\n */\n perPage?: number\n}\n\n/**\n * Represents an uploaded document record\n */\nexport type ListDocuments200ResultsItemAllOf = {\n /** Unique identifier of the category */\n id: number\n /**\n * IP address of the user who uploaded the document\n * @maxLength 20\n */\n user_ip?: string\n /** Timestamp when the document was created */\n creation_time?: string\n /** User ID who created the document */\n creation_user?: number\n /** Timestamp when the document was last modified */\n mod_time?: string\n /** User ID who last modified the document */\n mod_user?: number\n /** Hospital/clinic ID associated with the document */\n organization_unit: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file: string\n}\n\nexport type ListDocuments200ResultsItemAllOfTwoCategoriesItem = {\n /** Category ID */\n id: number\n /** Category name */\n name: string\n}\n\nexport type ListDocuments200ResultsItemAllOfTwo = {\n /** Categories linked to the document */\n categories?: ListDocuments200ResultsItemAllOfTwoCategoriesItem[]\n}\n\n/**\n * Document item returned in document listings\n */\nexport type ListDocuments200ResultsItem = ListDocuments200ResultsItemAllOf & ListDocuments200ResultsItemAllOfTwo\n\n/**\n * Paginated response\n */\nexport type ListDocuments200 = {\n /** Array of items of the current page */\n results: ListDocuments200ResultsItem[]\n /** Total number of items not in this page but in the whole query */\n total: number\n}\n\n/**\n * Debug information of the error\n */\nexport type ListDocuments403AllOfDebug = { [key: string]: unknown }\n\nexport type ListDocuments403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListDocuments403AllOfDebug\n}\n\nexport type ListDocuments403AllOfThreeStatusCode =\n typeof ListDocuments403AllOfThreeStatusCode[keyof typeof ListDocuments403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocuments403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type ListDocuments403AllOfThreeError =\n typeof ListDocuments403AllOfThreeError[keyof typeof ListDocuments403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocuments403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type ListDocuments403AllOfThree = {\n statusCode: ListDocuments403AllOfThreeStatusCode\n error: ListDocuments403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type ListDocuments403 = ListDocuments403AllOf & ListDocuments403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type ListDocuments404AllOfDebug = { [key: string]: unknown }\n\nexport type ListDocuments404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListDocuments404AllOfDebug\n}\n\nexport type ListDocuments404AllOfThreeStatusCode =\n typeof ListDocuments404AllOfThreeStatusCode[keyof typeof ListDocuments404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocuments404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type ListDocuments404AllOfThreeError =\n typeof ListDocuments404AllOfThreeError[keyof typeof ListDocuments404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocuments404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type ListDocuments404AllOfThree = {\n statusCode: ListDocuments404AllOfThreeStatusCode\n error: ListDocuments404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type ListDocuments404 = ListDocuments404AllOf & ListDocuments404AllOfThree\n\n/**\n * Payload used to create a new document record\n */\nexport type CreateDocumentBody = {\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file: string\n /** Hospital/clinic ID associated with the document */\n organization_unit: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /** Category IDs to associate with the document */\n category_ids?: number[]\n}\n\n/**\n * Represents an uploaded document record\n */\nexport type CreateDocument200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * IP address of the user who uploaded the document\n * @maxLength 20\n */\n user_ip?: string\n /** Timestamp when the document was created */\n creation_time?: string\n /** User ID who created the document */\n creation_user?: number\n /** Timestamp when the document was last modified */\n mod_time?: string\n /** User ID who last modified the document */\n mod_user?: number\n /** Hospital/clinic ID associated with the document */\n organization_unit: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file: string\n}\n\n/**\n * Debug information of the error\n */\nexport type CreateDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type CreateDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateDocument403AllOfDebug\n}\n\nexport type CreateDocument403AllOfThreeStatusCode =\n typeof CreateDocument403AllOfThreeStatusCode[keyof typeof CreateDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type CreateDocument403AllOfThreeError =\n typeof CreateDocument403AllOfThreeError[keyof typeof CreateDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type CreateDocument403AllOfThree = {\n statusCode: CreateDocument403AllOfThreeStatusCode\n error: CreateDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type CreateDocument403 = CreateDocument403AllOf & CreateDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type CreateDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type CreateDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateDocument404AllOfDebug\n}\n\nexport type CreateDocument404AllOfThreeStatusCode =\n typeof CreateDocument404AllOfThreeStatusCode[keyof typeof CreateDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type CreateDocument404AllOfThreeError =\n typeof CreateDocument404AllOfThreeError[keyof typeof CreateDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type CreateDocument404AllOfThree = {\n statusCode: CreateDocument404AllOfThreeStatusCode\n error: CreateDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type CreateDocument404 = CreateDocument404AllOf & CreateDocument404AllOfThree\n\n/**\n * Represents an uploaded document record\n */\nexport type GetDocument200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * IP address of the user who uploaded the document\n * @maxLength 20\n */\n user_ip?: string\n /** Timestamp when the document was created */\n creation_time?: string\n /** User ID who created the document */\n creation_user?: number\n /** Timestamp when the document was last modified */\n mod_time?: string\n /** User ID who last modified the document */\n mod_user?: number\n /** Hospital/clinic ID associated with the document */\n organization_unit: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file: string\n}\n\n/**\n * Debug information of the error\n */\nexport type GetDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type GetDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetDocument403AllOfDebug\n}\n\nexport type GetDocument403AllOfThreeStatusCode =\n typeof GetDocument403AllOfThreeStatusCode[keyof typeof GetDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetDocument403AllOfThreeError =\n typeof GetDocument403AllOfThreeError[keyof typeof GetDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetDocument403AllOfThree = {\n statusCode: GetDocument403AllOfThreeStatusCode\n error: GetDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetDocument403 = GetDocument403AllOf & GetDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type GetDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetDocument404AllOfDebug\n}\n\nexport type GetDocument404AllOfThreeStatusCode =\n typeof GetDocument404AllOfThreeStatusCode[keyof typeof GetDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetDocument404AllOfThreeError =\n typeof GetDocument404AllOfThreeError[keyof typeof GetDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetDocument404AllOfThree = {\n statusCode: GetDocument404AllOfThreeStatusCode\n error: GetDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetDocument404 = GetDocument404AllOf & GetDocument404AllOfThree\n\n/**\n * Payload used to update a document record\n */\nexport type UpdateDocumentBody = {\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file?: string\n /** Hospital/clinic ID associated with the document */\n organization_unit?: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /** Category IDs to associate with the document */\n category_ids?: number[]\n}\n\n/**\n * Represents an uploaded document record\n */\nexport type UpdateDocument200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * IP address of the user who uploaded the document\n * @maxLength 20\n */\n user_ip?: string\n /** Timestamp when the document was created */\n creation_time?: string\n /** User ID who created the document */\n creation_user?: number\n /** Timestamp when the document was last modified */\n mod_time?: string\n /** User ID who last modified the document */\n mod_user?: number\n /** Hospital/clinic ID associated with the document */\n organization_unit: number\n /**\n * Display name of the document\n * @maxLength 255\n */\n name?: string\n /**\n * Filename or file path of the document\n * @maxLength 255\n */\n file: string\n}\n\n/**\n * Debug information of the error\n */\nexport type UpdateDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateDocument403AllOfDebug\n}\n\nexport type UpdateDocument403AllOfThreeStatusCode =\n typeof UpdateDocument403AllOfThreeStatusCode[keyof typeof UpdateDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type UpdateDocument403AllOfThreeError =\n typeof UpdateDocument403AllOfThreeError[keyof typeof UpdateDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type UpdateDocument403AllOfThree = {\n statusCode: UpdateDocument403AllOfThreeStatusCode\n error: UpdateDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type UpdateDocument403 = UpdateDocument403AllOf & UpdateDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type UpdateDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateDocument404AllOfDebug\n}\n\nexport type UpdateDocument404AllOfThreeStatusCode =\n typeof UpdateDocument404AllOfThreeStatusCode[keyof typeof UpdateDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type UpdateDocument404AllOfThreeError =\n typeof UpdateDocument404AllOfThreeError[keyof typeof UpdateDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type UpdateDocument404AllOfThree = {\n statusCode: UpdateDocument404AllOfThreeStatusCode\n error: UpdateDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type UpdateDocument404 = UpdateDocument404AllOf & UpdateDocument404AllOfThree\n\n/**\n * Response when the request is successful\n */\nexport type DeleteDocument200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type DeleteDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteDocument403AllOfDebug\n}\n\nexport type DeleteDocument403AllOfThreeStatusCode =\n typeof DeleteDocument403AllOfThreeStatusCode[keyof typeof DeleteDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type DeleteDocument403AllOfThreeError =\n typeof DeleteDocument403AllOfThreeError[keyof typeof DeleteDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type DeleteDocument403AllOfThree = {\n statusCode: DeleteDocument403AllOfThreeStatusCode\n error: DeleteDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type DeleteDocument403 = DeleteDocument403AllOf & DeleteDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type DeleteDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteDocument404AllOfDebug\n}\n\nexport type DeleteDocument404AllOfThreeStatusCode =\n typeof DeleteDocument404AllOfThreeStatusCode[keyof typeof DeleteDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type DeleteDocument404AllOfThreeError =\n typeof DeleteDocument404AllOfThreeError[keyof typeof DeleteDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type DeleteDocument404AllOfThree = {\n statusCode: DeleteDocument404AllOfThreeStatusCode\n error: DeleteDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type DeleteDocument404 = DeleteDocument404AllOf & DeleteDocument404AllOfThree\n\n/**\n * Payload used to associate a category with a document\n */\nexport type AddCategoryToDocumentBody = {\n /** Category ID to associate with the document */\n categoryId: number\n}\n\n/**\n * Response when the request is successful\n */\nexport type AddCategoryToDocument200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type AddCategoryToDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type AddCategoryToDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: AddCategoryToDocument403AllOfDebug\n}\n\nexport type AddCategoryToDocument403AllOfThreeStatusCode =\n typeof AddCategoryToDocument403AllOfThreeStatusCode[keyof typeof AddCategoryToDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AddCategoryToDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type AddCategoryToDocument403AllOfThreeError =\n typeof AddCategoryToDocument403AllOfThreeError[keyof typeof AddCategoryToDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AddCategoryToDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type AddCategoryToDocument403AllOfThree = {\n statusCode: AddCategoryToDocument403AllOfThreeStatusCode\n error: AddCategoryToDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type AddCategoryToDocument403 = AddCategoryToDocument403AllOf & AddCategoryToDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type AddCategoryToDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type AddCategoryToDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: AddCategoryToDocument404AllOfDebug\n}\n\nexport type AddCategoryToDocument404AllOfThreeStatusCode =\n typeof AddCategoryToDocument404AllOfThreeStatusCode[keyof typeof AddCategoryToDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AddCategoryToDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type AddCategoryToDocument404AllOfThreeError =\n typeof AddCategoryToDocument404AllOfThreeError[keyof typeof AddCategoryToDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const AddCategoryToDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type AddCategoryToDocument404AllOfThree = {\n statusCode: AddCategoryToDocument404AllOfThreeStatusCode\n error: AddCategoryToDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type AddCategoryToDocument404 = AddCategoryToDocument404AllOf & AddCategoryToDocument404AllOfThree\n\n/**\n * Response when the request is successful\n */\nexport type RemoveCategoryFromDocument200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type RemoveCategoryFromDocument403AllOfDebug = { [key: string]: unknown }\n\nexport type RemoveCategoryFromDocument403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: RemoveCategoryFromDocument403AllOfDebug\n}\n\nexport type RemoveCategoryFromDocument403AllOfThreeStatusCode =\n typeof RemoveCategoryFromDocument403AllOfThreeStatusCode[keyof typeof RemoveCategoryFromDocument403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RemoveCategoryFromDocument403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type RemoveCategoryFromDocument403AllOfThreeError =\n typeof RemoveCategoryFromDocument403AllOfThreeError[keyof typeof RemoveCategoryFromDocument403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RemoveCategoryFromDocument403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type RemoveCategoryFromDocument403AllOfThree = {\n statusCode: RemoveCategoryFromDocument403AllOfThreeStatusCode\n error: RemoveCategoryFromDocument403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type RemoveCategoryFromDocument403 = RemoveCategoryFromDocument403AllOf & RemoveCategoryFromDocument403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type RemoveCategoryFromDocument404AllOfDebug = { [key: string]: unknown }\n\nexport type RemoveCategoryFromDocument404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: RemoveCategoryFromDocument404AllOfDebug\n}\n\nexport type RemoveCategoryFromDocument404AllOfThreeStatusCode =\n typeof RemoveCategoryFromDocument404AllOfThreeStatusCode[keyof typeof RemoveCategoryFromDocument404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RemoveCategoryFromDocument404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type RemoveCategoryFromDocument404AllOfThreeError =\n typeof RemoveCategoryFromDocument404AllOfThreeError[keyof typeof RemoveCategoryFromDocument404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const RemoveCategoryFromDocument404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type RemoveCategoryFromDocument404AllOfThree = {\n statusCode: RemoveCategoryFromDocument404AllOfThreeStatusCode\n error: RemoveCategoryFromDocument404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type RemoveCategoryFromDocument404 = RemoveCategoryFromDocument404AllOf & RemoveCategoryFromDocument404AllOfThree\n\nexport type ListDocumentCategoriesParams = {\n /**\n * Page number starting from 0\n */\n page?: number\n /**\n * The number of items per page\n */\n perPage?: number\n}\n\n/**\n * Document category data\n */\nexport type ListDocumentCategories200ResultsItemAllOf = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\nexport type ListDocumentCategories200ResultsItemAllOfTwo = {\n /** Number of documents in this category */\n documents_count: number\n}\n\n/**\n * Document category list item\n */\nexport type ListDocumentCategories200ResultsItem = ListDocumentCategories200ResultsItemAllOf &\n ListDocumentCategories200ResultsItemAllOfTwo\n\n/**\n * Paginated response\n */\nexport type ListDocumentCategories200 = {\n /** Array of items of the current page */\n results: ListDocumentCategories200ResultsItem[]\n /** Total number of items not in this page but in the whole query */\n total: number\n}\n\n/**\n * Debug information of the error\n */\nexport type ListDocumentCategories403AllOfDebug = { [key: string]: unknown }\n\nexport type ListDocumentCategories403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListDocumentCategories403AllOfDebug\n}\n\nexport type ListDocumentCategories403AllOfThreeStatusCode =\n typeof ListDocumentCategories403AllOfThreeStatusCode[keyof typeof ListDocumentCategories403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type ListDocumentCategories403AllOfThreeError =\n typeof ListDocumentCategories403AllOfThreeError[keyof typeof ListDocumentCategories403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type ListDocumentCategories403AllOfThree = {\n statusCode: ListDocumentCategories403AllOfThreeStatusCode\n error: ListDocumentCategories403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type ListDocumentCategories403 = ListDocumentCategories403AllOf & ListDocumentCategories403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type ListDocumentCategories404AllOfDebug = { [key: string]: unknown }\n\nexport type ListDocumentCategories404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: ListDocumentCategories404AllOfDebug\n}\n\nexport type ListDocumentCategories404AllOfThreeStatusCode =\n typeof ListDocumentCategories404AllOfThreeStatusCode[keyof typeof ListDocumentCategories404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type ListDocumentCategories404AllOfThreeError =\n typeof ListDocumentCategories404AllOfThreeError[keyof typeof ListDocumentCategories404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const ListDocumentCategories404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type ListDocumentCategories404AllOfThree = {\n statusCode: ListDocumentCategories404AllOfThreeStatusCode\n error: ListDocumentCategories404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type ListDocumentCategories404 = ListDocumentCategories404AllOf & ListDocumentCategories404AllOfThree\n\n/**\n * Document category creation payload\n */\nexport type CreateDocumentCategoryBody = {\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Document category data\n */\nexport type CreateDocumentCategory200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Debug information of the error\n */\nexport type CreateDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type CreateDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateDocumentCategory403AllOfDebug\n}\n\nexport type CreateDocumentCategory403AllOfThreeStatusCode =\n typeof CreateDocumentCategory403AllOfThreeStatusCode[keyof typeof CreateDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type CreateDocumentCategory403AllOfThreeError =\n typeof CreateDocumentCategory403AllOfThreeError[keyof typeof CreateDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type CreateDocumentCategory403AllOfThree = {\n statusCode: CreateDocumentCategory403AllOfThreeStatusCode\n error: CreateDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type CreateDocumentCategory403 = CreateDocumentCategory403AllOf & CreateDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type CreateDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type CreateDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: CreateDocumentCategory404AllOfDebug\n}\n\nexport type CreateDocumentCategory404AllOfThreeStatusCode =\n typeof CreateDocumentCategory404AllOfThreeStatusCode[keyof typeof CreateDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type CreateDocumentCategory404AllOfThreeError =\n typeof CreateDocumentCategory404AllOfThreeError[keyof typeof CreateDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const CreateDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type CreateDocumentCategory404AllOfThree = {\n statusCode: CreateDocumentCategory404AllOfThreeStatusCode\n error: CreateDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type CreateDocumentCategory404 = CreateDocumentCategory404AllOf & CreateDocumentCategory404AllOfThree\n\n/**\n * Document category data\n */\nexport type GetDocumentCategory200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Debug information of the error\n */\nexport type GetDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type GetDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetDocumentCategory403AllOfDebug\n}\n\nexport type GetDocumentCategory403AllOfThreeStatusCode =\n typeof GetDocumentCategory403AllOfThreeStatusCode[keyof typeof GetDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type GetDocumentCategory403AllOfThreeError =\n typeof GetDocumentCategory403AllOfThreeError[keyof typeof GetDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type GetDocumentCategory403AllOfThree = {\n statusCode: GetDocumentCategory403AllOfThreeStatusCode\n error: GetDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type GetDocumentCategory403 = GetDocumentCategory403AllOf & GetDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type GetDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type GetDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: GetDocumentCategory404AllOfDebug\n}\n\nexport type GetDocumentCategory404AllOfThreeStatusCode =\n typeof GetDocumentCategory404AllOfThreeStatusCode[keyof typeof GetDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type GetDocumentCategory404AllOfThreeError =\n typeof GetDocumentCategory404AllOfThreeError[keyof typeof GetDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const GetDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type GetDocumentCategory404AllOfThree = {\n statusCode: GetDocumentCategory404AllOfThreeStatusCode\n error: GetDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type GetDocumentCategory404 = GetDocumentCategory404AllOf & GetDocumentCategory404AllOfThree\n\n/**\n * Document category update payload\n */\nexport type UpdateDocumentCategoryBody = {\n /**\n * Name of the category\n * @maxLength 100\n */\n name?: string\n}\n\n/**\n * Document category data\n */\nexport type UpdateDocumentCategory200 = {\n /** Unique identifier of the category */\n id: number\n /**\n * Name of the category\n * @maxLength 100\n */\n name: string\n}\n\n/**\n * Debug information of the error\n */\nexport type UpdateDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateDocumentCategory403AllOfDebug\n}\n\nexport type UpdateDocumentCategory403AllOfThreeStatusCode =\n typeof UpdateDocumentCategory403AllOfThreeStatusCode[keyof typeof UpdateDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type UpdateDocumentCategory403AllOfThreeError =\n typeof UpdateDocumentCategory403AllOfThreeError[keyof typeof UpdateDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type UpdateDocumentCategory403AllOfThree = {\n statusCode: UpdateDocumentCategory403AllOfThreeStatusCode\n error: UpdateDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type UpdateDocumentCategory403 = UpdateDocumentCategory403AllOf & UpdateDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type UpdateDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type UpdateDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: UpdateDocumentCategory404AllOfDebug\n}\n\nexport type UpdateDocumentCategory404AllOfThreeStatusCode =\n typeof UpdateDocumentCategory404AllOfThreeStatusCode[keyof typeof UpdateDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type UpdateDocumentCategory404AllOfThreeError =\n typeof UpdateDocumentCategory404AllOfThreeError[keyof typeof UpdateDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const UpdateDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type UpdateDocumentCategory404AllOfThree = {\n statusCode: UpdateDocumentCategory404AllOfThreeStatusCode\n error: UpdateDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type UpdateDocumentCategory404 = UpdateDocumentCategory404AllOf & UpdateDocumentCategory404AllOfThree\n\n/**\n * Response when the request is successful\n */\nexport type DeleteDocumentCategory200 = {\n /** If the request success or not */\n success: boolean\n}\n\n/**\n * Debug information of the error\n */\nexport type DeleteDocumentCategory403AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteDocumentCategory403AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteDocumentCategory403AllOfDebug\n}\n\nexport type DeleteDocumentCategory403AllOfThreeStatusCode =\n typeof DeleteDocumentCategory403AllOfThreeStatusCode[keyof typeof DeleteDocumentCategory403AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory403AllOfThreeStatusCode = {\n NUMBER_403: 403,\n} as const\n\nexport type DeleteDocumentCategory403AllOfThreeError =\n typeof DeleteDocumentCategory403AllOfThreeError[keyof typeof DeleteDocumentCategory403AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory403AllOfThreeError = {\n 'forbidden-error': 'forbidden-error',\n} as const\n\nexport type DeleteDocumentCategory403AllOfThree = {\n statusCode: DeleteDocumentCategory403AllOfThreeStatusCode\n error: DeleteDocumentCategory403AllOfThreeError\n}\n\n/**\n * Error when the user is forbidden to access the resource\n */\nexport type DeleteDocumentCategory403 = DeleteDocumentCategory403AllOf & DeleteDocumentCategory403AllOfThree\n\n/**\n * Debug information of the error\n */\nexport type DeleteDocumentCategory404AllOfDebug = { [key: string]: unknown }\n\nexport type DeleteDocumentCategory404AllOf = {\n /** HTTP status code */\n statusCode: number\n /** Error code */\n error: string\n /** Localized error message */\n message: string\n /** Debug information of the error */\n debug?: DeleteDocumentCategory404AllOfDebug\n}\n\nexport type DeleteDocumentCategory404AllOfThreeStatusCode =\n typeof DeleteDocumentCategory404AllOfThreeStatusCode[keyof typeof DeleteDocumentCategory404AllOfThreeStatusCode]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory404AllOfThreeStatusCode = {\n NUMBER_404: 404,\n} as const\n\nexport type DeleteDocumentCategory404AllOfThreeError =\n typeof DeleteDocumentCategory404AllOfThreeError[keyof typeof DeleteDocumentCategory404AllOfThreeError]\n\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport const DeleteDocumentCategory404AllOfThreeError = {\n 'not-found': 'not-found',\n} as const\n\nexport type DeleteDocumentCategory404AllOfThree = {\n statusCode: DeleteDocumentCategory404AllOfThreeStatusCode\n error: DeleteDocumentCategory404AllOfThreeError\n}\n\n/**\n * Error when the resource is not found\n */\nexport type DeleteDocumentCategory404 = DeleteDocumentCategory404AllOf & DeleteDocumentCategory404AllOfThree\n\nexport type postV2AuthLoginGlobalResponse200 = {\n data: void\n status: 200\n}\n\nexport type postV2AuthLoginGlobalResponseSuccess = postV2AuthLoginGlobalResponse200 & {\n headers: Headers\n}\nexport type postV2AuthLoginGlobalResponse = postV2AuthLoginGlobalResponseSuccess\n\nexport const getPostV2AuthLoginGlobalUrl = () => {\n return `/v2/auth/login/global`\n}\n\nexport const postV2AuthLoginGlobal = async (options?: RequestInit): Promise<postV2AuthLoginGlobalResponse> => {\n const res = await fetch(getPostV2AuthLoginGlobalUrl(), {\n ...options,\n method: 'POST',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: postV2AuthLoginGlobalResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as postV2AuthLoginGlobalResponse\n}\n\n/**\n * Get a paginated list of documents\n */\nexport type listDocumentsResponse200 = {\n data: ListDocuments200\n status: 200\n}\n\nexport type listDocumentsResponse403 = {\n data: ListDocuments403\n status: 403\n}\n\nexport type listDocumentsResponse404 = {\n data: ListDocuments404\n status: 404\n}\n\nexport type listDocumentsResponseSuccess = listDocumentsResponse200 & {\n headers: Headers\n}\nexport type listDocumentsResponseError = (listDocumentsResponse403 | listDocumentsResponse404) & {\n headers: Headers\n}\n\nexport type listDocumentsResponse = listDocumentsResponseSuccess | listDocumentsResponseError\n\nexport const getListDocumentsUrl = (ecosystemName: string, projectName: string, params?: ListDocumentsParams) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/`\n}\n\nexport const listDocuments = async (\n ecosystemName: string,\n projectName: string,\n params?: ListDocumentsParams,\n options?: RequestInit,\n): Promise<listDocumentsResponse> => {\n const res = await fetch(getListDocumentsUrl(ecosystemName, projectName, params), {\n ...options,\n method: 'GET',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: listDocumentsResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as listDocumentsResponse\n}\n\n/**\n * Create a new document record\n */\nexport type createDocumentResponse200 = {\n data: CreateDocument200\n status: 200\n}\n\nexport type createDocumentResponse403 = {\n data: CreateDocument403\n status: 403\n}\n\nexport type createDocumentResponse404 = {\n data: CreateDocument404\n status: 404\n}\n\nexport type createDocumentResponseSuccess = createDocumentResponse200 & {\n headers: Headers\n}\nexport type createDocumentResponseError = (createDocumentResponse403 | createDocumentResponse404) & {\n headers: Headers\n}\n\nexport type createDocumentResponse = createDocumentResponseSuccess | createDocumentResponseError\n\nexport const getCreateDocumentUrl = (ecosystemName: string, projectName: string) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/`\n}\n\nexport const createDocument = async (\n ecosystemName: string,\n projectName: string,\n createDocumentBody: CreateDocumentBody,\n options?: RequestInit,\n): Promise<createDocumentResponse> => {\n const res = await fetch(getCreateDocumentUrl(ecosystemName, projectName), {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(createDocumentBody),\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: createDocumentResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as createDocumentResponse\n}\n\n/**\n * Retrieve a specific document by ID\n */\nexport type getDocumentResponse200 = {\n data: GetDocument200\n status: 200\n}\n\nexport type getDocumentResponse403 = {\n data: GetDocument403\n status: 403\n}\n\nexport type getDocumentResponse404 = {\n data: GetDocument404\n status: 404\n}\n\nexport type getDocumentResponseSuccess = getDocumentResponse200 & {\n headers: Headers\n}\nexport type getDocumentResponseError = (getDocumentResponse403 | getDocumentResponse404) & {\n headers: Headers\n}\n\nexport type getDocumentResponse = getDocumentResponseSuccess | getDocumentResponseError\n\nexport const getGetDocumentUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}`\n}\n\nexport const getDocument = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<getDocumentResponse> => {\n const res = await fetch(getGetDocumentUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'GET',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: getDocumentResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as getDocumentResponse\n}\n\n/**\n * Update an existing document record\n */\nexport type updateDocumentResponse200 = {\n data: UpdateDocument200\n status: 200\n}\n\nexport type updateDocumentResponse403 = {\n data: UpdateDocument403\n status: 403\n}\n\nexport type updateDocumentResponse404 = {\n data: UpdateDocument404\n status: 404\n}\n\nexport type updateDocumentResponseSuccess = updateDocumentResponse200 & {\n headers: Headers\n}\nexport type updateDocumentResponseError = (updateDocumentResponse403 | updateDocumentResponse404) & {\n headers: Headers\n}\n\nexport type updateDocumentResponse = updateDocumentResponseSuccess | updateDocumentResponseError\n\nexport const getUpdateDocumentUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}`\n}\n\nexport const updateDocument = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n updateDocumentBody: UpdateDocumentBody,\n options?: RequestInit,\n): Promise<updateDocumentResponse> => {\n const res = await fetch(getUpdateDocumentUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(updateDocumentBody),\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: updateDocumentResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as updateDocumentResponse\n}\n\n/**\n * Delete a document by its ID\n */\nexport type deleteDocumentResponse200 = {\n data: DeleteDocument200\n status: 200\n}\n\nexport type deleteDocumentResponse403 = {\n data: DeleteDocument403\n status: 403\n}\n\nexport type deleteDocumentResponse404 = {\n data: DeleteDocument404\n status: 404\n}\n\nexport type deleteDocumentResponseSuccess = deleteDocumentResponse200 & {\n headers: Headers\n}\nexport type deleteDocumentResponseError = (deleteDocumentResponse403 | deleteDocumentResponse404) & {\n headers: Headers\n}\n\nexport type deleteDocumentResponse = deleteDocumentResponseSuccess | deleteDocumentResponseError\n\nexport const getDeleteDocumentUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}`\n}\n\nexport const deleteDocument = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<deleteDocumentResponse> => {\n const res = await fetch(getDeleteDocumentUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'DELETE',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: deleteDocumentResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as deleteDocumentResponse\n}\n\nexport type addCategoryToDocumentResponse200 = {\n data: AddCategoryToDocument200\n status: 200\n}\n\nexport type addCategoryToDocumentResponse403 = {\n data: AddCategoryToDocument403\n status: 403\n}\n\nexport type addCategoryToDocumentResponse404 = {\n data: AddCategoryToDocument404\n status: 404\n}\n\nexport type addCategoryToDocumentResponseSuccess = addCategoryToDocumentResponse200 & {\n headers: Headers\n}\nexport type addCategoryToDocumentResponseError = (\n | addCategoryToDocumentResponse403\n | addCategoryToDocumentResponse404\n) & {\n headers: Headers\n}\n\nexport type addCategoryToDocumentResponse = addCategoryToDocumentResponseSuccess | addCategoryToDocumentResponseError\n\nexport const getAddCategoryToDocumentUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${id}/categories`\n}\n\nexport const addCategoryToDocument = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n addCategoryToDocumentBody: AddCategoryToDocumentBody,\n options?: RequestInit,\n): Promise<addCategoryToDocumentResponse> => {\n const res = await fetch(getAddCategoryToDocumentUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(addCategoryToDocumentBody),\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: addCategoryToDocumentResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as addCategoryToDocumentResponse\n}\n\nexport type removeCategoryFromDocumentResponse200 = {\n data: RemoveCategoryFromDocument200\n status: 200\n}\n\nexport type removeCategoryFromDocumentResponse403 = {\n data: RemoveCategoryFromDocument403\n status: 403\n}\n\nexport type removeCategoryFromDocumentResponse404 = {\n data: RemoveCategoryFromDocument404\n status: 404\n}\n\nexport type removeCategoryFromDocumentResponseSuccess = removeCategoryFromDocumentResponse200 & {\n headers: Headers\n}\nexport type removeCategoryFromDocumentResponseError = (\n | removeCategoryFromDocumentResponse403\n | removeCategoryFromDocumentResponse404\n) & {\n headers: Headers\n}\n\nexport type removeCategoryFromDocumentResponse =\n | removeCategoryFromDocumentResponseSuccess\n | removeCategoryFromDocumentResponseError\n\nexport const getRemoveCategoryFromDocumentUrl = (\n ecosystemName: string,\n projectName: string,\n documentId: number,\n categoryId: number,\n) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document/${documentId}/categories/${categoryId}`\n}\n\nexport const removeCategoryFromDocument = async (\n ecosystemName: string,\n projectName: string,\n documentId: number,\n categoryId: number,\n options?: RequestInit,\n): Promise<removeCategoryFromDocumentResponse> => {\n const res = await fetch(getRemoveCategoryFromDocumentUrl(ecosystemName, projectName, documentId, categoryId), {\n ...options,\n method: 'DELETE',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: removeCategoryFromDocumentResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as removeCategoryFromDocumentResponse\n}\n\n/**\n * A paginated list of document categories with the number of documents in each category\n */\nexport type listDocumentCategoriesResponse200 = {\n data: ListDocumentCategories200\n status: 200\n}\n\nexport type listDocumentCategoriesResponse403 = {\n data: ListDocumentCategories403\n status: 403\n}\n\nexport type listDocumentCategoriesResponse404 = {\n data: ListDocumentCategories404\n status: 404\n}\n\nexport type listDocumentCategoriesResponseSuccess = listDocumentCategoriesResponse200 & {\n headers: Headers\n}\nexport type listDocumentCategoriesResponseError = (\n | listDocumentCategoriesResponse403\n | listDocumentCategoriesResponse404\n) & {\n headers: Headers\n}\n\nexport type listDocumentCategoriesResponse = listDocumentCategoriesResponseSuccess | listDocumentCategoriesResponseError\n\nexport const getListDocumentCategoriesUrl = (\n ecosystemName: string,\n projectName: string,\n params?: ListDocumentCategoriesParams,\n) => {\n const normalizedParams = new URLSearchParams()\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? 'null' : value.toString())\n }\n })\n\n const stringifiedParams = normalizedParams.toString()\n\n return stringifiedParams.length > 0\n ? `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/?${stringifiedParams}`\n : `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/`\n}\n\nexport const listDocumentCategories = async (\n ecosystemName: string,\n projectName: string,\n params?: ListDocumentCategoriesParams,\n options?: RequestInit,\n): Promise<listDocumentCategoriesResponse> => {\n const res = await fetch(getListDocumentCategoriesUrl(ecosystemName, projectName, params), {\n ...options,\n method: 'GET',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: listDocumentCategoriesResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as listDocumentCategoriesResponse\n}\n\n/**\n * Creates a document category with the provided data\n */\nexport type createDocumentCategoryResponse200 = {\n data: CreateDocumentCategory200\n status: 200\n}\n\nexport type createDocumentCategoryResponse403 = {\n data: CreateDocumentCategory403\n status: 403\n}\n\nexport type createDocumentCategoryResponse404 = {\n data: CreateDocumentCategory404\n status: 404\n}\n\nexport type createDocumentCategoryResponseSuccess = createDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type createDocumentCategoryResponseError = (\n | createDocumentCategoryResponse403\n | createDocumentCategoryResponse404\n) & {\n headers: Headers\n}\n\nexport type createDocumentCategoryResponse = createDocumentCategoryResponseSuccess | createDocumentCategoryResponseError\n\nexport const getCreateDocumentCategoryUrl = (ecosystemName: string, projectName: string) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/`\n}\n\nexport const createDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n createDocumentCategoryBody: CreateDocumentCategoryBody,\n options?: RequestInit,\n): Promise<createDocumentCategoryResponse> => {\n const res = await fetch(getCreateDocumentCategoryUrl(ecosystemName, projectName), {\n ...options,\n method: 'POST',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(createDocumentCategoryBody),\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: createDocumentCategoryResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as createDocumentCategoryResponse\n}\n\n/**\n * Get the data of a document category\n */\nexport type getDocumentCategoryResponse200 = {\n data: GetDocumentCategory200\n status: 200\n}\n\nexport type getDocumentCategoryResponse403 = {\n data: GetDocumentCategory403\n status: 403\n}\n\nexport type getDocumentCategoryResponse404 = {\n data: GetDocumentCategory404\n status: 404\n}\n\nexport type getDocumentCategoryResponseSuccess = getDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type getDocumentCategoryResponseError = (getDocumentCategoryResponse403 | getDocumentCategoryResponse404) & {\n headers: Headers\n}\n\nexport type getDocumentCategoryResponse = getDocumentCategoryResponseSuccess | getDocumentCategoryResponseError\n\nexport const getGetDocumentCategoryUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/${id}`\n}\n\nexport const getDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<getDocumentCategoryResponse> => {\n const res = await fetch(getGetDocumentCategoryUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'GET',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: getDocumentCategoryResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as getDocumentCategoryResponse\n}\n\n/**\n * Updates (patch) a document category with the provided data\n */\nexport type updateDocumentCategoryResponse200 = {\n data: UpdateDocumentCategory200\n status: 200\n}\n\nexport type updateDocumentCategoryResponse403 = {\n data: UpdateDocumentCategory403\n status: 403\n}\n\nexport type updateDocumentCategoryResponse404 = {\n data: UpdateDocumentCategory404\n status: 404\n}\n\nexport type updateDocumentCategoryResponseSuccess = updateDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type updateDocumentCategoryResponseError = (\n | updateDocumentCategoryResponse403\n | updateDocumentCategoryResponse404\n) & {\n headers: Headers\n}\n\nexport type updateDocumentCategoryResponse = updateDocumentCategoryResponseSuccess | updateDocumentCategoryResponseError\n\nexport const getUpdateDocumentCategoryUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/${id}`\n}\n\nexport const updateDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n updateDocumentCategoryBody: UpdateDocumentCategoryBody,\n options?: RequestInit,\n): Promise<updateDocumentCategoryResponse> => {\n const res = await fetch(getUpdateDocumentCategoryUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'PATCH',\n headers: { 'Content-Type': 'application/json', ...options?.headers },\n body: JSON.stringify(updateDocumentCategoryBody),\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: updateDocumentCategoryResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as updateDocumentCategoryResponse\n}\n\n/**\n * Deletes a document category with the provided ID\n */\nexport type deleteDocumentCategoryResponse200 = {\n data: DeleteDocumentCategory200\n status: 200\n}\n\nexport type deleteDocumentCategoryResponse403 = {\n data: DeleteDocumentCategory403\n status: 403\n}\n\nexport type deleteDocumentCategoryResponse404 = {\n data: DeleteDocumentCategory404\n status: 404\n}\n\nexport type deleteDocumentCategoryResponseSuccess = deleteDocumentCategoryResponse200 & {\n headers: Headers\n}\nexport type deleteDocumentCategoryResponseError = (\n | deleteDocumentCategoryResponse403\n | deleteDocumentCategoryResponse404\n) & {\n headers: Headers\n}\n\nexport type deleteDocumentCategoryResponse = deleteDocumentCategoryResponseSuccess | deleteDocumentCategoryResponseError\n\nexport const getDeleteDocumentCategoryUrl = (ecosystemName: string, projectName: string, id: number) => {\n return `/v2/ecosystem/${ecosystemName}/project/${projectName}/document-category/${id}`\n}\n\nexport const deleteDocumentCategory = async (\n ecosystemName: string,\n projectName: string,\n id: number,\n options?: RequestInit,\n): Promise<deleteDocumentCategoryResponse> => {\n const res = await fetch(getDeleteDocumentCategoryUrl(ecosystemName, projectName, id), {\n ...options,\n method: 'DELETE',\n })\n\n const body = [204, 205, 304].includes(res.status) ? null : await res.text()\n\n const data: deleteDocumentCategoryResponse['data'] = body ? JSON.parse(body) : {}\n return { data, status: res.status, headers: res.headers } as deleteDocumentCategoryResponse\n}\n"],"names":[],"mappings":";;AAiGO,MAAM,uCAAuC;AAAA,EAClD,YAAY;AACd;AAMO,MAAM,kCAAkC;AAAA,EAC7C,mBAAmB;AACrB;AAgCO,MAAM,uCAAuC;AAAA,EAClD,YAAY;AACd;AAMO,MAAM,kCAAkC;AAAA,EAC7C,aAAa;AACf;AAqFO,MAAM,wCAAwC;AAAA,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