@persei/perseed-api 5.0.0 → 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.
- package/dist/client.cjs +223 -0
- package/dist/client.cjs.map +1 -1
- package/dist/client.mjs +223 -0
- package/dist/client.mjs.map +1 -1
- package/dist/lib/src/generated/client.d.ts +837 -0
- package/dist/lib/src/generated/client.d.ts.map +1 -1
- package/dist/src/Services/FormService.d.ts +6 -1
- package/dist/src/Services/FormService.d.ts.map +1 -1
- package/dist/src/controllers/FormController.d.ts.map +1 -1
- package/dist/src/controllers/PatientController.d.ts +1 -2
- package/dist/src/controllers/PatientController.d.ts.map +1 -1
- package/dist/src/helpers/dashboards.d.ts +5 -1
- package/dist/src/helpers/dashboards.d.ts.map +1 -1
- package/dist/src/helpers/dates.d.ts +1 -0
- package/dist/src/helpers/dates.d.ts.map +1 -1
- package/dist/src/helpers/handlebarsHelper.d.ts.map +1 -1
- package/dist/src/models/project/DesignerCrf.d.ts.map +1 -1
- package/dist/src/schemas/dashboard_widget/create_widget_payload.schema.json +1 -1
- package/dist/src/schemas/dashboard_widget/update_widget_payload.schema.json +1 -1
- package/dist/src/schemas/dashboard_widget/widgetTypes/PatientListProps.d.ts +2 -1
- package/dist/src/schemas/dashboard_widget/widgetTypes/PatientListProps.d.ts.map +1 -1
- package/dist/src/v2/modules/global/jsonlogic-to-sql/jsonlogic-to-sql.helper.d.ts.map +1 -1
- package/dist/src/v2/modules/project/document/document.controller.d.ts +5 -0
- package/dist/src/v2/modules/project/document/document.controller.d.ts.map +1 -0
- package/dist/src/v2/modules/project/document/document.controller.e2e.d.ts +2 -0
- package/dist/src/v2/modules/project/document/document.controller.e2e.d.ts.map +1 -0
- package/dist/src/v2/modules/project/document/document.controller.test.d.ts +2 -0
- package/dist/src/v2/modules/project/document/document.controller.test.d.ts.map +1 -0
- package/dist/src/v2/modules/project/document/document.model.d.ts +42 -4
- package/dist/src/v2/modules/project/document/document.model.d.ts.map +1 -1
- package/dist/src/v2/modules/project/document/document.schema.d.ts +42 -0
- package/dist/src/v2/modules/project/document/document.schema.d.ts.map +1 -1
- package/dist/src/v2/modules/project/document/document.service.d.ts +22 -0
- package/dist/src/v2/modules/project/document/document.service.d.ts.map +1 -0
- package/dist/src/v2/modules/project/document/document.service.test.d.ts +2 -0
- package/dist/src/v2/modules/project/document/document.service.test.d.ts.map +1 -0
- package/dist/src/v2/modules/project/document/index.d.ts +2 -0
- package/dist/src/v2/modules/project/document/index.d.ts.map +1 -1
- package/dist/src/v2/modules/project/document-category/index.d.ts +1 -0
- package/dist/src/v2/modules/project/document-category/index.d.ts.map +1 -1
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/document/index.d.ts +3 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/document/index.d.ts.map +1 -0
- package/dist/v1/perseed-api.cjs +1 -0
- package/dist/v1/perseed-api.cjs.map +1 -1
- package/dist/v1/perseed-api.mjs +1 -0
- package/dist/v1/perseed-api.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4,6 +4,681 @@
|
|
|
4
4
|
* @fastify/swagger
|
|
5
5
|
* OpenAPI spec version: 9.5.2
|
|
6
6
|
*/
|
|
7
|
+
export type ListDocumentsParams = {
|
|
8
|
+
/**
|
|
9
|
+
* Page number starting from 0
|
|
10
|
+
*/
|
|
11
|
+
page?: number;
|
|
12
|
+
/**
|
|
13
|
+
* The number of items per page
|
|
14
|
+
*/
|
|
15
|
+
perPage?: number;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Represents an uploaded document record
|
|
19
|
+
*/
|
|
20
|
+
export type ListDocuments200ResultsItemAllOf = {
|
|
21
|
+
/** Unique identifier of the category */
|
|
22
|
+
id: number;
|
|
23
|
+
/**
|
|
24
|
+
* IP address of the user who uploaded the document
|
|
25
|
+
* @maxLength 20
|
|
26
|
+
*/
|
|
27
|
+
user_ip?: string;
|
|
28
|
+
/** Timestamp when the document was created */
|
|
29
|
+
creation_time?: string;
|
|
30
|
+
/** User ID who created the document */
|
|
31
|
+
creation_user?: number;
|
|
32
|
+
/** Timestamp when the document was last modified */
|
|
33
|
+
mod_time?: string;
|
|
34
|
+
/** User ID who last modified the document */
|
|
35
|
+
mod_user?: number;
|
|
36
|
+
/** Hospital/clinic ID associated with the document */
|
|
37
|
+
organization_unit: number;
|
|
38
|
+
/**
|
|
39
|
+
* Display name of the document
|
|
40
|
+
* @maxLength 255
|
|
41
|
+
*/
|
|
42
|
+
name?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Filename or file path of the document
|
|
45
|
+
* @maxLength 255
|
|
46
|
+
*/
|
|
47
|
+
file: string;
|
|
48
|
+
};
|
|
49
|
+
export type ListDocuments200ResultsItemAllOfTwoCategoriesItem = {
|
|
50
|
+
/** Category ID */
|
|
51
|
+
id: number;
|
|
52
|
+
/** Category name */
|
|
53
|
+
name: string;
|
|
54
|
+
};
|
|
55
|
+
export type ListDocuments200ResultsItemAllOfTwo = {
|
|
56
|
+
/** Categories linked to the document */
|
|
57
|
+
categories?: ListDocuments200ResultsItemAllOfTwoCategoriesItem[];
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Document item returned in document listings
|
|
61
|
+
*/
|
|
62
|
+
export type ListDocuments200ResultsItem = ListDocuments200ResultsItemAllOf & ListDocuments200ResultsItemAllOfTwo;
|
|
63
|
+
/**
|
|
64
|
+
* Paginated response
|
|
65
|
+
*/
|
|
66
|
+
export type ListDocuments200 = {
|
|
67
|
+
/** Array of items of the current page */
|
|
68
|
+
results: ListDocuments200ResultsItem[];
|
|
69
|
+
/** Total number of items not in this page but in the whole query */
|
|
70
|
+
total: number;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Debug information of the error
|
|
74
|
+
*/
|
|
75
|
+
export type ListDocuments403AllOfDebug = {
|
|
76
|
+
[key: string]: unknown;
|
|
77
|
+
};
|
|
78
|
+
export type ListDocuments403AllOf = {
|
|
79
|
+
/** HTTP status code */
|
|
80
|
+
statusCode: number;
|
|
81
|
+
/** Error code */
|
|
82
|
+
error: string;
|
|
83
|
+
/** Localized error message */
|
|
84
|
+
message: string;
|
|
85
|
+
/** Debug information of the error */
|
|
86
|
+
debug?: ListDocuments403AllOfDebug;
|
|
87
|
+
};
|
|
88
|
+
export type ListDocuments403AllOfThreeStatusCode = typeof ListDocuments403AllOfThreeStatusCode[keyof typeof ListDocuments403AllOfThreeStatusCode];
|
|
89
|
+
export declare const ListDocuments403AllOfThreeStatusCode: {
|
|
90
|
+
readonly NUMBER_403: 403;
|
|
91
|
+
};
|
|
92
|
+
export type ListDocuments403AllOfThreeError = typeof ListDocuments403AllOfThreeError[keyof typeof ListDocuments403AllOfThreeError];
|
|
93
|
+
export declare const ListDocuments403AllOfThreeError: {
|
|
94
|
+
readonly 'forbidden-error': "forbidden-error";
|
|
95
|
+
};
|
|
96
|
+
export type ListDocuments403AllOfThree = {
|
|
97
|
+
statusCode: ListDocuments403AllOfThreeStatusCode;
|
|
98
|
+
error: ListDocuments403AllOfThreeError;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Error when the user is forbidden to access the resource
|
|
102
|
+
*/
|
|
103
|
+
export type ListDocuments403 = ListDocuments403AllOf & ListDocuments403AllOfThree;
|
|
104
|
+
/**
|
|
105
|
+
* Debug information of the error
|
|
106
|
+
*/
|
|
107
|
+
export type ListDocuments404AllOfDebug = {
|
|
108
|
+
[key: string]: unknown;
|
|
109
|
+
};
|
|
110
|
+
export type ListDocuments404AllOf = {
|
|
111
|
+
/** HTTP status code */
|
|
112
|
+
statusCode: number;
|
|
113
|
+
/** Error code */
|
|
114
|
+
error: string;
|
|
115
|
+
/** Localized error message */
|
|
116
|
+
message: string;
|
|
117
|
+
/** Debug information of the error */
|
|
118
|
+
debug?: ListDocuments404AllOfDebug;
|
|
119
|
+
};
|
|
120
|
+
export type ListDocuments404AllOfThreeStatusCode = typeof ListDocuments404AllOfThreeStatusCode[keyof typeof ListDocuments404AllOfThreeStatusCode];
|
|
121
|
+
export declare const ListDocuments404AllOfThreeStatusCode: {
|
|
122
|
+
readonly NUMBER_404: 404;
|
|
123
|
+
};
|
|
124
|
+
export type ListDocuments404AllOfThreeError = typeof ListDocuments404AllOfThreeError[keyof typeof ListDocuments404AllOfThreeError];
|
|
125
|
+
export declare const ListDocuments404AllOfThreeError: {
|
|
126
|
+
readonly 'not-found': "not-found";
|
|
127
|
+
};
|
|
128
|
+
export type ListDocuments404AllOfThree = {
|
|
129
|
+
statusCode: ListDocuments404AllOfThreeStatusCode;
|
|
130
|
+
error: ListDocuments404AllOfThreeError;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Error when the resource is not found
|
|
134
|
+
*/
|
|
135
|
+
export type ListDocuments404 = ListDocuments404AllOf & ListDocuments404AllOfThree;
|
|
136
|
+
/**
|
|
137
|
+
* Payload used to create a new document record
|
|
138
|
+
*/
|
|
139
|
+
export type CreateDocumentBody = {
|
|
140
|
+
/**
|
|
141
|
+
* Filename or file path of the document
|
|
142
|
+
* @maxLength 255
|
|
143
|
+
*/
|
|
144
|
+
file: string;
|
|
145
|
+
/** Hospital/clinic ID associated with the document */
|
|
146
|
+
organization_unit: number;
|
|
147
|
+
/**
|
|
148
|
+
* Display name of the document
|
|
149
|
+
* @maxLength 255
|
|
150
|
+
*/
|
|
151
|
+
name?: string;
|
|
152
|
+
/** Category IDs to associate with the document */
|
|
153
|
+
category_ids?: number[];
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Represents an uploaded document record
|
|
157
|
+
*/
|
|
158
|
+
export type CreateDocument200 = {
|
|
159
|
+
/** Unique identifier of the category */
|
|
160
|
+
id: number;
|
|
161
|
+
/**
|
|
162
|
+
* IP address of the user who uploaded the document
|
|
163
|
+
* @maxLength 20
|
|
164
|
+
*/
|
|
165
|
+
user_ip?: string;
|
|
166
|
+
/** Timestamp when the document was created */
|
|
167
|
+
creation_time?: string;
|
|
168
|
+
/** User ID who created the document */
|
|
169
|
+
creation_user?: number;
|
|
170
|
+
/** Timestamp when the document was last modified */
|
|
171
|
+
mod_time?: string;
|
|
172
|
+
/** User ID who last modified the document */
|
|
173
|
+
mod_user?: number;
|
|
174
|
+
/** Hospital/clinic ID associated with the document */
|
|
175
|
+
organization_unit: number;
|
|
176
|
+
/**
|
|
177
|
+
* Display name of the document
|
|
178
|
+
* @maxLength 255
|
|
179
|
+
*/
|
|
180
|
+
name?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Filename or file path of the document
|
|
183
|
+
* @maxLength 255
|
|
184
|
+
*/
|
|
185
|
+
file: string;
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* Debug information of the error
|
|
189
|
+
*/
|
|
190
|
+
export type CreateDocument403AllOfDebug = {
|
|
191
|
+
[key: string]: unknown;
|
|
192
|
+
};
|
|
193
|
+
export type CreateDocument403AllOf = {
|
|
194
|
+
/** HTTP status code */
|
|
195
|
+
statusCode: number;
|
|
196
|
+
/** Error code */
|
|
197
|
+
error: string;
|
|
198
|
+
/** Localized error message */
|
|
199
|
+
message: string;
|
|
200
|
+
/** Debug information of the error */
|
|
201
|
+
debug?: CreateDocument403AllOfDebug;
|
|
202
|
+
};
|
|
203
|
+
export type CreateDocument403AllOfThreeStatusCode = typeof CreateDocument403AllOfThreeStatusCode[keyof typeof CreateDocument403AllOfThreeStatusCode];
|
|
204
|
+
export declare const CreateDocument403AllOfThreeStatusCode: {
|
|
205
|
+
readonly NUMBER_403: 403;
|
|
206
|
+
};
|
|
207
|
+
export type CreateDocument403AllOfThreeError = typeof CreateDocument403AllOfThreeError[keyof typeof CreateDocument403AllOfThreeError];
|
|
208
|
+
export declare const CreateDocument403AllOfThreeError: {
|
|
209
|
+
readonly 'forbidden-error': "forbidden-error";
|
|
210
|
+
};
|
|
211
|
+
export type CreateDocument403AllOfThree = {
|
|
212
|
+
statusCode: CreateDocument403AllOfThreeStatusCode;
|
|
213
|
+
error: CreateDocument403AllOfThreeError;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Error when the user is forbidden to access the resource
|
|
217
|
+
*/
|
|
218
|
+
export type CreateDocument403 = CreateDocument403AllOf & CreateDocument403AllOfThree;
|
|
219
|
+
/**
|
|
220
|
+
* Debug information of the error
|
|
221
|
+
*/
|
|
222
|
+
export type CreateDocument404AllOfDebug = {
|
|
223
|
+
[key: string]: unknown;
|
|
224
|
+
};
|
|
225
|
+
export type CreateDocument404AllOf = {
|
|
226
|
+
/** HTTP status code */
|
|
227
|
+
statusCode: number;
|
|
228
|
+
/** Error code */
|
|
229
|
+
error: string;
|
|
230
|
+
/** Localized error message */
|
|
231
|
+
message: string;
|
|
232
|
+
/** Debug information of the error */
|
|
233
|
+
debug?: CreateDocument404AllOfDebug;
|
|
234
|
+
};
|
|
235
|
+
export type CreateDocument404AllOfThreeStatusCode = typeof CreateDocument404AllOfThreeStatusCode[keyof typeof CreateDocument404AllOfThreeStatusCode];
|
|
236
|
+
export declare const CreateDocument404AllOfThreeStatusCode: {
|
|
237
|
+
readonly NUMBER_404: 404;
|
|
238
|
+
};
|
|
239
|
+
export type CreateDocument404AllOfThreeError = typeof CreateDocument404AllOfThreeError[keyof typeof CreateDocument404AllOfThreeError];
|
|
240
|
+
export declare const CreateDocument404AllOfThreeError: {
|
|
241
|
+
readonly 'not-found': "not-found";
|
|
242
|
+
};
|
|
243
|
+
export type CreateDocument404AllOfThree = {
|
|
244
|
+
statusCode: CreateDocument404AllOfThreeStatusCode;
|
|
245
|
+
error: CreateDocument404AllOfThreeError;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Error when the resource is not found
|
|
249
|
+
*/
|
|
250
|
+
export type CreateDocument404 = CreateDocument404AllOf & CreateDocument404AllOfThree;
|
|
251
|
+
/**
|
|
252
|
+
* Represents an uploaded document record
|
|
253
|
+
*/
|
|
254
|
+
export type GetDocument200 = {
|
|
255
|
+
/** Unique identifier of the category */
|
|
256
|
+
id: number;
|
|
257
|
+
/**
|
|
258
|
+
* IP address of the user who uploaded the document
|
|
259
|
+
* @maxLength 20
|
|
260
|
+
*/
|
|
261
|
+
user_ip?: string;
|
|
262
|
+
/** Timestamp when the document was created */
|
|
263
|
+
creation_time?: string;
|
|
264
|
+
/** User ID who created the document */
|
|
265
|
+
creation_user?: number;
|
|
266
|
+
/** Timestamp when the document was last modified */
|
|
267
|
+
mod_time?: string;
|
|
268
|
+
/** User ID who last modified the document */
|
|
269
|
+
mod_user?: number;
|
|
270
|
+
/** Hospital/clinic ID associated with the document */
|
|
271
|
+
organization_unit: number;
|
|
272
|
+
/**
|
|
273
|
+
* Display name of the document
|
|
274
|
+
* @maxLength 255
|
|
275
|
+
*/
|
|
276
|
+
name?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Filename or file path of the document
|
|
279
|
+
* @maxLength 255
|
|
280
|
+
*/
|
|
281
|
+
file: string;
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* Debug information of the error
|
|
285
|
+
*/
|
|
286
|
+
export type GetDocument403AllOfDebug = {
|
|
287
|
+
[key: string]: unknown;
|
|
288
|
+
};
|
|
289
|
+
export type GetDocument403AllOf = {
|
|
290
|
+
/** HTTP status code */
|
|
291
|
+
statusCode: number;
|
|
292
|
+
/** Error code */
|
|
293
|
+
error: string;
|
|
294
|
+
/** Localized error message */
|
|
295
|
+
message: string;
|
|
296
|
+
/** Debug information of the error */
|
|
297
|
+
debug?: GetDocument403AllOfDebug;
|
|
298
|
+
};
|
|
299
|
+
export type GetDocument403AllOfThreeStatusCode = typeof GetDocument403AllOfThreeStatusCode[keyof typeof GetDocument403AllOfThreeStatusCode];
|
|
300
|
+
export declare const GetDocument403AllOfThreeStatusCode: {
|
|
301
|
+
readonly NUMBER_403: 403;
|
|
302
|
+
};
|
|
303
|
+
export type GetDocument403AllOfThreeError = typeof GetDocument403AllOfThreeError[keyof typeof GetDocument403AllOfThreeError];
|
|
304
|
+
export declare const GetDocument403AllOfThreeError: {
|
|
305
|
+
readonly 'forbidden-error': "forbidden-error";
|
|
306
|
+
};
|
|
307
|
+
export type GetDocument403AllOfThree = {
|
|
308
|
+
statusCode: GetDocument403AllOfThreeStatusCode;
|
|
309
|
+
error: GetDocument403AllOfThreeError;
|
|
310
|
+
};
|
|
311
|
+
/**
|
|
312
|
+
* Error when the user is forbidden to access the resource
|
|
313
|
+
*/
|
|
314
|
+
export type GetDocument403 = GetDocument403AllOf & GetDocument403AllOfThree;
|
|
315
|
+
/**
|
|
316
|
+
* Debug information of the error
|
|
317
|
+
*/
|
|
318
|
+
export type GetDocument404AllOfDebug = {
|
|
319
|
+
[key: string]: unknown;
|
|
320
|
+
};
|
|
321
|
+
export type GetDocument404AllOf = {
|
|
322
|
+
/** HTTP status code */
|
|
323
|
+
statusCode: number;
|
|
324
|
+
/** Error code */
|
|
325
|
+
error: string;
|
|
326
|
+
/** Localized error message */
|
|
327
|
+
message: string;
|
|
328
|
+
/** Debug information of the error */
|
|
329
|
+
debug?: GetDocument404AllOfDebug;
|
|
330
|
+
};
|
|
331
|
+
export type GetDocument404AllOfThreeStatusCode = typeof GetDocument404AllOfThreeStatusCode[keyof typeof GetDocument404AllOfThreeStatusCode];
|
|
332
|
+
export declare const GetDocument404AllOfThreeStatusCode: {
|
|
333
|
+
readonly NUMBER_404: 404;
|
|
334
|
+
};
|
|
335
|
+
export type GetDocument404AllOfThreeError = typeof GetDocument404AllOfThreeError[keyof typeof GetDocument404AllOfThreeError];
|
|
336
|
+
export declare const GetDocument404AllOfThreeError: {
|
|
337
|
+
readonly 'not-found': "not-found";
|
|
338
|
+
};
|
|
339
|
+
export type GetDocument404AllOfThree = {
|
|
340
|
+
statusCode: GetDocument404AllOfThreeStatusCode;
|
|
341
|
+
error: GetDocument404AllOfThreeError;
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* Error when the resource is not found
|
|
345
|
+
*/
|
|
346
|
+
export type GetDocument404 = GetDocument404AllOf & GetDocument404AllOfThree;
|
|
347
|
+
/**
|
|
348
|
+
* Payload used to update a document record
|
|
349
|
+
*/
|
|
350
|
+
export type UpdateDocumentBody = {
|
|
351
|
+
/**
|
|
352
|
+
* Filename or file path of the document
|
|
353
|
+
* @maxLength 255
|
|
354
|
+
*/
|
|
355
|
+
file?: string;
|
|
356
|
+
/** Hospital/clinic ID associated with the document */
|
|
357
|
+
organization_unit?: number;
|
|
358
|
+
/**
|
|
359
|
+
* Display name of the document
|
|
360
|
+
* @maxLength 255
|
|
361
|
+
*/
|
|
362
|
+
name?: string;
|
|
363
|
+
/** Category IDs to associate with the document */
|
|
364
|
+
category_ids?: number[];
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* Represents an uploaded document record
|
|
368
|
+
*/
|
|
369
|
+
export type UpdateDocument200 = {
|
|
370
|
+
/** Unique identifier of the category */
|
|
371
|
+
id: number;
|
|
372
|
+
/**
|
|
373
|
+
* IP address of the user who uploaded the document
|
|
374
|
+
* @maxLength 20
|
|
375
|
+
*/
|
|
376
|
+
user_ip?: string;
|
|
377
|
+
/** Timestamp when the document was created */
|
|
378
|
+
creation_time?: string;
|
|
379
|
+
/** User ID who created the document */
|
|
380
|
+
creation_user?: number;
|
|
381
|
+
/** Timestamp when the document was last modified */
|
|
382
|
+
mod_time?: string;
|
|
383
|
+
/** User ID who last modified the document */
|
|
384
|
+
mod_user?: number;
|
|
385
|
+
/** Hospital/clinic ID associated with the document */
|
|
386
|
+
organization_unit: number;
|
|
387
|
+
/**
|
|
388
|
+
* Display name of the document
|
|
389
|
+
* @maxLength 255
|
|
390
|
+
*/
|
|
391
|
+
name?: string;
|
|
392
|
+
/**
|
|
393
|
+
* Filename or file path of the document
|
|
394
|
+
* @maxLength 255
|
|
395
|
+
*/
|
|
396
|
+
file: string;
|
|
397
|
+
};
|
|
398
|
+
/**
|
|
399
|
+
* Debug information of the error
|
|
400
|
+
*/
|
|
401
|
+
export type UpdateDocument403AllOfDebug = {
|
|
402
|
+
[key: string]: unknown;
|
|
403
|
+
};
|
|
404
|
+
export type UpdateDocument403AllOf = {
|
|
405
|
+
/** HTTP status code */
|
|
406
|
+
statusCode: number;
|
|
407
|
+
/** Error code */
|
|
408
|
+
error: string;
|
|
409
|
+
/** Localized error message */
|
|
410
|
+
message: string;
|
|
411
|
+
/** Debug information of the error */
|
|
412
|
+
debug?: UpdateDocument403AllOfDebug;
|
|
413
|
+
};
|
|
414
|
+
export type UpdateDocument403AllOfThreeStatusCode = typeof UpdateDocument403AllOfThreeStatusCode[keyof typeof UpdateDocument403AllOfThreeStatusCode];
|
|
415
|
+
export declare const UpdateDocument403AllOfThreeStatusCode: {
|
|
416
|
+
readonly NUMBER_403: 403;
|
|
417
|
+
};
|
|
418
|
+
export type UpdateDocument403AllOfThreeError = typeof UpdateDocument403AllOfThreeError[keyof typeof UpdateDocument403AllOfThreeError];
|
|
419
|
+
export declare const UpdateDocument403AllOfThreeError: {
|
|
420
|
+
readonly 'forbidden-error': "forbidden-error";
|
|
421
|
+
};
|
|
422
|
+
export type UpdateDocument403AllOfThree = {
|
|
423
|
+
statusCode: UpdateDocument403AllOfThreeStatusCode;
|
|
424
|
+
error: UpdateDocument403AllOfThreeError;
|
|
425
|
+
};
|
|
426
|
+
/**
|
|
427
|
+
* Error when the user is forbidden to access the resource
|
|
428
|
+
*/
|
|
429
|
+
export type UpdateDocument403 = UpdateDocument403AllOf & UpdateDocument403AllOfThree;
|
|
430
|
+
/**
|
|
431
|
+
* Debug information of the error
|
|
432
|
+
*/
|
|
433
|
+
export type UpdateDocument404AllOfDebug = {
|
|
434
|
+
[key: string]: unknown;
|
|
435
|
+
};
|
|
436
|
+
export type UpdateDocument404AllOf = {
|
|
437
|
+
/** HTTP status code */
|
|
438
|
+
statusCode: number;
|
|
439
|
+
/** Error code */
|
|
440
|
+
error: string;
|
|
441
|
+
/** Localized error message */
|
|
442
|
+
message: string;
|
|
443
|
+
/** Debug information of the error */
|
|
444
|
+
debug?: UpdateDocument404AllOfDebug;
|
|
445
|
+
};
|
|
446
|
+
export type UpdateDocument404AllOfThreeStatusCode = typeof UpdateDocument404AllOfThreeStatusCode[keyof typeof UpdateDocument404AllOfThreeStatusCode];
|
|
447
|
+
export declare const UpdateDocument404AllOfThreeStatusCode: {
|
|
448
|
+
readonly NUMBER_404: 404;
|
|
449
|
+
};
|
|
450
|
+
export type UpdateDocument404AllOfThreeError = typeof UpdateDocument404AllOfThreeError[keyof typeof UpdateDocument404AllOfThreeError];
|
|
451
|
+
export declare const UpdateDocument404AllOfThreeError: {
|
|
452
|
+
readonly 'not-found': "not-found";
|
|
453
|
+
};
|
|
454
|
+
export type UpdateDocument404AllOfThree = {
|
|
455
|
+
statusCode: UpdateDocument404AllOfThreeStatusCode;
|
|
456
|
+
error: UpdateDocument404AllOfThreeError;
|
|
457
|
+
};
|
|
458
|
+
/**
|
|
459
|
+
* Error when the resource is not found
|
|
460
|
+
*/
|
|
461
|
+
export type UpdateDocument404 = UpdateDocument404AllOf & UpdateDocument404AllOfThree;
|
|
462
|
+
/**
|
|
463
|
+
* Response when the request is successful
|
|
464
|
+
*/
|
|
465
|
+
export type DeleteDocument200 = {
|
|
466
|
+
/** If the request success or not */
|
|
467
|
+
success: boolean;
|
|
468
|
+
};
|
|
469
|
+
/**
|
|
470
|
+
* Debug information of the error
|
|
471
|
+
*/
|
|
472
|
+
export type DeleteDocument403AllOfDebug = {
|
|
473
|
+
[key: string]: unknown;
|
|
474
|
+
};
|
|
475
|
+
export type DeleteDocument403AllOf = {
|
|
476
|
+
/** HTTP status code */
|
|
477
|
+
statusCode: number;
|
|
478
|
+
/** Error code */
|
|
479
|
+
error: string;
|
|
480
|
+
/** Localized error message */
|
|
481
|
+
message: string;
|
|
482
|
+
/** Debug information of the error */
|
|
483
|
+
debug?: DeleteDocument403AllOfDebug;
|
|
484
|
+
};
|
|
485
|
+
export type DeleteDocument403AllOfThreeStatusCode = typeof DeleteDocument403AllOfThreeStatusCode[keyof typeof DeleteDocument403AllOfThreeStatusCode];
|
|
486
|
+
export declare const DeleteDocument403AllOfThreeStatusCode: {
|
|
487
|
+
readonly NUMBER_403: 403;
|
|
488
|
+
};
|
|
489
|
+
export type DeleteDocument403AllOfThreeError = typeof DeleteDocument403AllOfThreeError[keyof typeof DeleteDocument403AllOfThreeError];
|
|
490
|
+
export declare const DeleteDocument403AllOfThreeError: {
|
|
491
|
+
readonly 'forbidden-error': "forbidden-error";
|
|
492
|
+
};
|
|
493
|
+
export type DeleteDocument403AllOfThree = {
|
|
494
|
+
statusCode: DeleteDocument403AllOfThreeStatusCode;
|
|
495
|
+
error: DeleteDocument403AllOfThreeError;
|
|
496
|
+
};
|
|
497
|
+
/**
|
|
498
|
+
* Error when the user is forbidden to access the resource
|
|
499
|
+
*/
|
|
500
|
+
export type DeleteDocument403 = DeleteDocument403AllOf & DeleteDocument403AllOfThree;
|
|
501
|
+
/**
|
|
502
|
+
* Debug information of the error
|
|
503
|
+
*/
|
|
504
|
+
export type DeleteDocument404AllOfDebug = {
|
|
505
|
+
[key: string]: unknown;
|
|
506
|
+
};
|
|
507
|
+
export type DeleteDocument404AllOf = {
|
|
508
|
+
/** HTTP status code */
|
|
509
|
+
statusCode: number;
|
|
510
|
+
/** Error code */
|
|
511
|
+
error: string;
|
|
512
|
+
/** Localized error message */
|
|
513
|
+
message: string;
|
|
514
|
+
/** Debug information of the error */
|
|
515
|
+
debug?: DeleteDocument404AllOfDebug;
|
|
516
|
+
};
|
|
517
|
+
export type DeleteDocument404AllOfThreeStatusCode = typeof DeleteDocument404AllOfThreeStatusCode[keyof typeof DeleteDocument404AllOfThreeStatusCode];
|
|
518
|
+
export declare const DeleteDocument404AllOfThreeStatusCode: {
|
|
519
|
+
readonly NUMBER_404: 404;
|
|
520
|
+
};
|
|
521
|
+
export type DeleteDocument404AllOfThreeError = typeof DeleteDocument404AllOfThreeError[keyof typeof DeleteDocument404AllOfThreeError];
|
|
522
|
+
export declare const DeleteDocument404AllOfThreeError: {
|
|
523
|
+
readonly 'not-found': "not-found";
|
|
524
|
+
};
|
|
525
|
+
export type DeleteDocument404AllOfThree = {
|
|
526
|
+
statusCode: DeleteDocument404AllOfThreeStatusCode;
|
|
527
|
+
error: DeleteDocument404AllOfThreeError;
|
|
528
|
+
};
|
|
529
|
+
/**
|
|
530
|
+
* Error when the resource is not found
|
|
531
|
+
*/
|
|
532
|
+
export type DeleteDocument404 = DeleteDocument404AllOf & DeleteDocument404AllOfThree;
|
|
533
|
+
/**
|
|
534
|
+
* Payload used to associate a category with a document
|
|
535
|
+
*/
|
|
536
|
+
export type AddCategoryToDocumentBody = {
|
|
537
|
+
/** Category ID to associate with the document */
|
|
538
|
+
categoryId: number;
|
|
539
|
+
};
|
|
540
|
+
/**
|
|
541
|
+
* Response when the request is successful
|
|
542
|
+
*/
|
|
543
|
+
export type AddCategoryToDocument200 = {
|
|
544
|
+
/** If the request success or not */
|
|
545
|
+
success: boolean;
|
|
546
|
+
};
|
|
547
|
+
/**
|
|
548
|
+
* Debug information of the error
|
|
549
|
+
*/
|
|
550
|
+
export type AddCategoryToDocument403AllOfDebug = {
|
|
551
|
+
[key: string]: unknown;
|
|
552
|
+
};
|
|
553
|
+
export type AddCategoryToDocument403AllOf = {
|
|
554
|
+
/** HTTP status code */
|
|
555
|
+
statusCode: number;
|
|
556
|
+
/** Error code */
|
|
557
|
+
error: string;
|
|
558
|
+
/** Localized error message */
|
|
559
|
+
message: string;
|
|
560
|
+
/** Debug information of the error */
|
|
561
|
+
debug?: AddCategoryToDocument403AllOfDebug;
|
|
562
|
+
};
|
|
563
|
+
export type AddCategoryToDocument403AllOfThreeStatusCode = typeof AddCategoryToDocument403AllOfThreeStatusCode[keyof typeof AddCategoryToDocument403AllOfThreeStatusCode];
|
|
564
|
+
export declare const AddCategoryToDocument403AllOfThreeStatusCode: {
|
|
565
|
+
readonly NUMBER_403: 403;
|
|
566
|
+
};
|
|
567
|
+
export type AddCategoryToDocument403AllOfThreeError = typeof AddCategoryToDocument403AllOfThreeError[keyof typeof AddCategoryToDocument403AllOfThreeError];
|
|
568
|
+
export declare const AddCategoryToDocument403AllOfThreeError: {
|
|
569
|
+
readonly 'forbidden-error': "forbidden-error";
|
|
570
|
+
};
|
|
571
|
+
export type AddCategoryToDocument403AllOfThree = {
|
|
572
|
+
statusCode: AddCategoryToDocument403AllOfThreeStatusCode;
|
|
573
|
+
error: AddCategoryToDocument403AllOfThreeError;
|
|
574
|
+
};
|
|
575
|
+
/**
|
|
576
|
+
* Error when the user is forbidden to access the resource
|
|
577
|
+
*/
|
|
578
|
+
export type AddCategoryToDocument403 = AddCategoryToDocument403AllOf & AddCategoryToDocument403AllOfThree;
|
|
579
|
+
/**
|
|
580
|
+
* Debug information of the error
|
|
581
|
+
*/
|
|
582
|
+
export type AddCategoryToDocument404AllOfDebug = {
|
|
583
|
+
[key: string]: unknown;
|
|
584
|
+
};
|
|
585
|
+
export type AddCategoryToDocument404AllOf = {
|
|
586
|
+
/** HTTP status code */
|
|
587
|
+
statusCode: number;
|
|
588
|
+
/** Error code */
|
|
589
|
+
error: string;
|
|
590
|
+
/** Localized error message */
|
|
591
|
+
message: string;
|
|
592
|
+
/** Debug information of the error */
|
|
593
|
+
debug?: AddCategoryToDocument404AllOfDebug;
|
|
594
|
+
};
|
|
595
|
+
export type AddCategoryToDocument404AllOfThreeStatusCode = typeof AddCategoryToDocument404AllOfThreeStatusCode[keyof typeof AddCategoryToDocument404AllOfThreeStatusCode];
|
|
596
|
+
export declare const AddCategoryToDocument404AllOfThreeStatusCode: {
|
|
597
|
+
readonly NUMBER_404: 404;
|
|
598
|
+
};
|
|
599
|
+
export type AddCategoryToDocument404AllOfThreeError = typeof AddCategoryToDocument404AllOfThreeError[keyof typeof AddCategoryToDocument404AllOfThreeError];
|
|
600
|
+
export declare const AddCategoryToDocument404AllOfThreeError: {
|
|
601
|
+
readonly 'not-found': "not-found";
|
|
602
|
+
};
|
|
603
|
+
export type AddCategoryToDocument404AllOfThree = {
|
|
604
|
+
statusCode: AddCategoryToDocument404AllOfThreeStatusCode;
|
|
605
|
+
error: AddCategoryToDocument404AllOfThreeError;
|
|
606
|
+
};
|
|
607
|
+
/**
|
|
608
|
+
* Error when the resource is not found
|
|
609
|
+
*/
|
|
610
|
+
export type AddCategoryToDocument404 = AddCategoryToDocument404AllOf & AddCategoryToDocument404AllOfThree;
|
|
611
|
+
/**
|
|
612
|
+
* Response when the request is successful
|
|
613
|
+
*/
|
|
614
|
+
export type RemoveCategoryFromDocument200 = {
|
|
615
|
+
/** If the request success or not */
|
|
616
|
+
success: boolean;
|
|
617
|
+
};
|
|
618
|
+
/**
|
|
619
|
+
* Debug information of the error
|
|
620
|
+
*/
|
|
621
|
+
export type RemoveCategoryFromDocument403AllOfDebug = {
|
|
622
|
+
[key: string]: unknown;
|
|
623
|
+
};
|
|
624
|
+
export type RemoveCategoryFromDocument403AllOf = {
|
|
625
|
+
/** HTTP status code */
|
|
626
|
+
statusCode: number;
|
|
627
|
+
/** Error code */
|
|
628
|
+
error: string;
|
|
629
|
+
/** Localized error message */
|
|
630
|
+
message: string;
|
|
631
|
+
/** Debug information of the error */
|
|
632
|
+
debug?: RemoveCategoryFromDocument403AllOfDebug;
|
|
633
|
+
};
|
|
634
|
+
export type RemoveCategoryFromDocument403AllOfThreeStatusCode = typeof RemoveCategoryFromDocument403AllOfThreeStatusCode[keyof typeof RemoveCategoryFromDocument403AllOfThreeStatusCode];
|
|
635
|
+
export declare const RemoveCategoryFromDocument403AllOfThreeStatusCode: {
|
|
636
|
+
readonly NUMBER_403: 403;
|
|
637
|
+
};
|
|
638
|
+
export type RemoveCategoryFromDocument403AllOfThreeError = typeof RemoveCategoryFromDocument403AllOfThreeError[keyof typeof RemoveCategoryFromDocument403AllOfThreeError];
|
|
639
|
+
export declare const RemoveCategoryFromDocument403AllOfThreeError: {
|
|
640
|
+
readonly 'forbidden-error': "forbidden-error";
|
|
641
|
+
};
|
|
642
|
+
export type RemoveCategoryFromDocument403AllOfThree = {
|
|
643
|
+
statusCode: RemoveCategoryFromDocument403AllOfThreeStatusCode;
|
|
644
|
+
error: RemoveCategoryFromDocument403AllOfThreeError;
|
|
645
|
+
};
|
|
646
|
+
/**
|
|
647
|
+
* Error when the user is forbidden to access the resource
|
|
648
|
+
*/
|
|
649
|
+
export type RemoveCategoryFromDocument403 = RemoveCategoryFromDocument403AllOf & RemoveCategoryFromDocument403AllOfThree;
|
|
650
|
+
/**
|
|
651
|
+
* Debug information of the error
|
|
652
|
+
*/
|
|
653
|
+
export type RemoveCategoryFromDocument404AllOfDebug = {
|
|
654
|
+
[key: string]: unknown;
|
|
655
|
+
};
|
|
656
|
+
export type RemoveCategoryFromDocument404AllOf = {
|
|
657
|
+
/** HTTP status code */
|
|
658
|
+
statusCode: number;
|
|
659
|
+
/** Error code */
|
|
660
|
+
error: string;
|
|
661
|
+
/** Localized error message */
|
|
662
|
+
message: string;
|
|
663
|
+
/** Debug information of the error */
|
|
664
|
+
debug?: RemoveCategoryFromDocument404AllOfDebug;
|
|
665
|
+
};
|
|
666
|
+
export type RemoveCategoryFromDocument404AllOfThreeStatusCode = typeof RemoveCategoryFromDocument404AllOfThreeStatusCode[keyof typeof RemoveCategoryFromDocument404AllOfThreeStatusCode];
|
|
667
|
+
export declare const RemoveCategoryFromDocument404AllOfThreeStatusCode: {
|
|
668
|
+
readonly NUMBER_404: 404;
|
|
669
|
+
};
|
|
670
|
+
export type RemoveCategoryFromDocument404AllOfThreeError = typeof RemoveCategoryFromDocument404AllOfThreeError[keyof typeof RemoveCategoryFromDocument404AllOfThreeError];
|
|
671
|
+
export declare const RemoveCategoryFromDocument404AllOfThreeError: {
|
|
672
|
+
readonly 'not-found': "not-found";
|
|
673
|
+
};
|
|
674
|
+
export type RemoveCategoryFromDocument404AllOfThree = {
|
|
675
|
+
statusCode: RemoveCategoryFromDocument404AllOfThreeStatusCode;
|
|
676
|
+
error: RemoveCategoryFromDocument404AllOfThreeError;
|
|
677
|
+
};
|
|
678
|
+
/**
|
|
679
|
+
* Error when the resource is not found
|
|
680
|
+
*/
|
|
681
|
+
export type RemoveCategoryFromDocument404 = RemoveCategoryFromDocument404AllOf & RemoveCategoryFromDocument404AllOfThree;
|
|
7
682
|
export type ListDocumentCategoriesParams = {
|
|
8
683
|
/**
|
|
9
684
|
* Page number starting from 0
|
|
@@ -436,6 +1111,168 @@ export type postV2AuthLoginGlobalResponseSuccess = postV2AuthLoginGlobalResponse
|
|
|
436
1111
|
export type postV2AuthLoginGlobalResponse = postV2AuthLoginGlobalResponseSuccess;
|
|
437
1112
|
export declare const getPostV2AuthLoginGlobalUrl: () => string;
|
|
438
1113
|
export declare const postV2AuthLoginGlobal: (options?: RequestInit) => Promise<postV2AuthLoginGlobalResponse>;
|
|
1114
|
+
/**
|
|
1115
|
+
* Get a paginated list of documents
|
|
1116
|
+
*/
|
|
1117
|
+
export type listDocumentsResponse200 = {
|
|
1118
|
+
data: ListDocuments200;
|
|
1119
|
+
status: 200;
|
|
1120
|
+
};
|
|
1121
|
+
export type listDocumentsResponse403 = {
|
|
1122
|
+
data: ListDocuments403;
|
|
1123
|
+
status: 403;
|
|
1124
|
+
};
|
|
1125
|
+
export type listDocumentsResponse404 = {
|
|
1126
|
+
data: ListDocuments404;
|
|
1127
|
+
status: 404;
|
|
1128
|
+
};
|
|
1129
|
+
export type listDocumentsResponseSuccess = listDocumentsResponse200 & {
|
|
1130
|
+
headers: Headers;
|
|
1131
|
+
};
|
|
1132
|
+
export type listDocumentsResponseError = (listDocumentsResponse403 | listDocumentsResponse404) & {
|
|
1133
|
+
headers: Headers;
|
|
1134
|
+
};
|
|
1135
|
+
export type listDocumentsResponse = listDocumentsResponseSuccess | listDocumentsResponseError;
|
|
1136
|
+
export declare const getListDocumentsUrl: (ecosystemName: string, projectName: string, params?: ListDocumentsParams) => string;
|
|
1137
|
+
export declare const listDocuments: (ecosystemName: string, projectName: string, params?: ListDocumentsParams, options?: RequestInit) => Promise<listDocumentsResponse>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Create a new document record
|
|
1140
|
+
*/
|
|
1141
|
+
export type createDocumentResponse200 = {
|
|
1142
|
+
data: CreateDocument200;
|
|
1143
|
+
status: 200;
|
|
1144
|
+
};
|
|
1145
|
+
export type createDocumentResponse403 = {
|
|
1146
|
+
data: CreateDocument403;
|
|
1147
|
+
status: 403;
|
|
1148
|
+
};
|
|
1149
|
+
export type createDocumentResponse404 = {
|
|
1150
|
+
data: CreateDocument404;
|
|
1151
|
+
status: 404;
|
|
1152
|
+
};
|
|
1153
|
+
export type createDocumentResponseSuccess = createDocumentResponse200 & {
|
|
1154
|
+
headers: Headers;
|
|
1155
|
+
};
|
|
1156
|
+
export type createDocumentResponseError = (createDocumentResponse403 | createDocumentResponse404) & {
|
|
1157
|
+
headers: Headers;
|
|
1158
|
+
};
|
|
1159
|
+
export type createDocumentResponse = createDocumentResponseSuccess | createDocumentResponseError;
|
|
1160
|
+
export declare const getCreateDocumentUrl: (ecosystemName: string, projectName: string) => string;
|
|
1161
|
+
export declare const createDocument: (ecosystemName: string, projectName: string, createDocumentBody: CreateDocumentBody, options?: RequestInit) => Promise<createDocumentResponse>;
|
|
1162
|
+
/**
|
|
1163
|
+
* Retrieve a specific document by ID
|
|
1164
|
+
*/
|
|
1165
|
+
export type getDocumentResponse200 = {
|
|
1166
|
+
data: GetDocument200;
|
|
1167
|
+
status: 200;
|
|
1168
|
+
};
|
|
1169
|
+
export type getDocumentResponse403 = {
|
|
1170
|
+
data: GetDocument403;
|
|
1171
|
+
status: 403;
|
|
1172
|
+
};
|
|
1173
|
+
export type getDocumentResponse404 = {
|
|
1174
|
+
data: GetDocument404;
|
|
1175
|
+
status: 404;
|
|
1176
|
+
};
|
|
1177
|
+
export type getDocumentResponseSuccess = getDocumentResponse200 & {
|
|
1178
|
+
headers: Headers;
|
|
1179
|
+
};
|
|
1180
|
+
export type getDocumentResponseError = (getDocumentResponse403 | getDocumentResponse404) & {
|
|
1181
|
+
headers: Headers;
|
|
1182
|
+
};
|
|
1183
|
+
export type getDocumentResponse = getDocumentResponseSuccess | getDocumentResponseError;
|
|
1184
|
+
export declare const getGetDocumentUrl: (ecosystemName: string, projectName: string, id: number) => string;
|
|
1185
|
+
export declare const getDocument: (ecosystemName: string, projectName: string, id: number, options?: RequestInit) => Promise<getDocumentResponse>;
|
|
1186
|
+
/**
|
|
1187
|
+
* Update an existing document record
|
|
1188
|
+
*/
|
|
1189
|
+
export type updateDocumentResponse200 = {
|
|
1190
|
+
data: UpdateDocument200;
|
|
1191
|
+
status: 200;
|
|
1192
|
+
};
|
|
1193
|
+
export type updateDocumentResponse403 = {
|
|
1194
|
+
data: UpdateDocument403;
|
|
1195
|
+
status: 403;
|
|
1196
|
+
};
|
|
1197
|
+
export type updateDocumentResponse404 = {
|
|
1198
|
+
data: UpdateDocument404;
|
|
1199
|
+
status: 404;
|
|
1200
|
+
};
|
|
1201
|
+
export type updateDocumentResponseSuccess = updateDocumentResponse200 & {
|
|
1202
|
+
headers: Headers;
|
|
1203
|
+
};
|
|
1204
|
+
export type updateDocumentResponseError = (updateDocumentResponse403 | updateDocumentResponse404) & {
|
|
1205
|
+
headers: Headers;
|
|
1206
|
+
};
|
|
1207
|
+
export type updateDocumentResponse = updateDocumentResponseSuccess | updateDocumentResponseError;
|
|
1208
|
+
export declare const getUpdateDocumentUrl: (ecosystemName: string, projectName: string, id: number) => string;
|
|
1209
|
+
export declare const updateDocument: (ecosystemName: string, projectName: string, id: number, updateDocumentBody: UpdateDocumentBody, options?: RequestInit) => Promise<updateDocumentResponse>;
|
|
1210
|
+
/**
|
|
1211
|
+
* Delete a document by its ID
|
|
1212
|
+
*/
|
|
1213
|
+
export type deleteDocumentResponse200 = {
|
|
1214
|
+
data: DeleteDocument200;
|
|
1215
|
+
status: 200;
|
|
1216
|
+
};
|
|
1217
|
+
export type deleteDocumentResponse403 = {
|
|
1218
|
+
data: DeleteDocument403;
|
|
1219
|
+
status: 403;
|
|
1220
|
+
};
|
|
1221
|
+
export type deleteDocumentResponse404 = {
|
|
1222
|
+
data: DeleteDocument404;
|
|
1223
|
+
status: 404;
|
|
1224
|
+
};
|
|
1225
|
+
export type deleteDocumentResponseSuccess = deleteDocumentResponse200 & {
|
|
1226
|
+
headers: Headers;
|
|
1227
|
+
};
|
|
1228
|
+
export type deleteDocumentResponseError = (deleteDocumentResponse403 | deleteDocumentResponse404) & {
|
|
1229
|
+
headers: Headers;
|
|
1230
|
+
};
|
|
1231
|
+
export type deleteDocumentResponse = deleteDocumentResponseSuccess | deleteDocumentResponseError;
|
|
1232
|
+
export declare const getDeleteDocumentUrl: (ecosystemName: string, projectName: string, id: number) => string;
|
|
1233
|
+
export declare const deleteDocument: (ecosystemName: string, projectName: string, id: number, options?: RequestInit) => Promise<deleteDocumentResponse>;
|
|
1234
|
+
export type addCategoryToDocumentResponse200 = {
|
|
1235
|
+
data: AddCategoryToDocument200;
|
|
1236
|
+
status: 200;
|
|
1237
|
+
};
|
|
1238
|
+
export type addCategoryToDocumentResponse403 = {
|
|
1239
|
+
data: AddCategoryToDocument403;
|
|
1240
|
+
status: 403;
|
|
1241
|
+
};
|
|
1242
|
+
export type addCategoryToDocumentResponse404 = {
|
|
1243
|
+
data: AddCategoryToDocument404;
|
|
1244
|
+
status: 404;
|
|
1245
|
+
};
|
|
1246
|
+
export type addCategoryToDocumentResponseSuccess = addCategoryToDocumentResponse200 & {
|
|
1247
|
+
headers: Headers;
|
|
1248
|
+
};
|
|
1249
|
+
export type addCategoryToDocumentResponseError = (addCategoryToDocumentResponse403 | addCategoryToDocumentResponse404) & {
|
|
1250
|
+
headers: Headers;
|
|
1251
|
+
};
|
|
1252
|
+
export type addCategoryToDocumentResponse = addCategoryToDocumentResponseSuccess | addCategoryToDocumentResponseError;
|
|
1253
|
+
export declare const getAddCategoryToDocumentUrl: (ecosystemName: string, projectName: string, id: number) => string;
|
|
1254
|
+
export declare const addCategoryToDocument: (ecosystemName: string, projectName: string, id: number, addCategoryToDocumentBody: AddCategoryToDocumentBody, options?: RequestInit) => Promise<addCategoryToDocumentResponse>;
|
|
1255
|
+
export type removeCategoryFromDocumentResponse200 = {
|
|
1256
|
+
data: RemoveCategoryFromDocument200;
|
|
1257
|
+
status: 200;
|
|
1258
|
+
};
|
|
1259
|
+
export type removeCategoryFromDocumentResponse403 = {
|
|
1260
|
+
data: RemoveCategoryFromDocument403;
|
|
1261
|
+
status: 403;
|
|
1262
|
+
};
|
|
1263
|
+
export type removeCategoryFromDocumentResponse404 = {
|
|
1264
|
+
data: RemoveCategoryFromDocument404;
|
|
1265
|
+
status: 404;
|
|
1266
|
+
};
|
|
1267
|
+
export type removeCategoryFromDocumentResponseSuccess = removeCategoryFromDocumentResponse200 & {
|
|
1268
|
+
headers: Headers;
|
|
1269
|
+
};
|
|
1270
|
+
export type removeCategoryFromDocumentResponseError = (removeCategoryFromDocumentResponse403 | removeCategoryFromDocumentResponse404) & {
|
|
1271
|
+
headers: Headers;
|
|
1272
|
+
};
|
|
1273
|
+
export type removeCategoryFromDocumentResponse = removeCategoryFromDocumentResponseSuccess | removeCategoryFromDocumentResponseError;
|
|
1274
|
+
export declare const getRemoveCategoryFromDocumentUrl: (ecosystemName: string, projectName: string, documentId: number, categoryId: number) => string;
|
|
1275
|
+
export declare const removeCategoryFromDocument: (ecosystemName: string, projectName: string, documentId: number, categoryId: number, options?: RequestInit) => Promise<removeCategoryFromDocumentResponse>;
|
|
439
1276
|
/**
|
|
440
1277
|
* A paginated list of document categories with the number of documents in each category
|
|
441
1278
|
*/
|