@ndla/types-backend 1.0.103 → 1.0.104
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/build/article-api.d.ts +1132 -31
- package/build/article-api.js +0 -37
- package/build/article-api.js.map +1 -1
- package/build/audio-api.d.ts +2178 -36
- package/build/audio-api.js +0 -37
- package/build/audio-api.js.map +1 -1
- package/build/concept-api.d.ts +1657 -34
- package/build/concept-api.js +0 -37
- package/build/concept-api.js.map +1 -1
- package/build/draft-api.d.ts +3193 -57
- package/build/draft-api.js +0 -37
- package/build/draft-api.js.map +1 -1
- package/build/frontpage-api.d.ts +998 -27
- package/build/frontpage-api.js +0 -37
- package/build/frontpage-api.js.map +1 -1
- package/build/image-api.d.ts +2293 -34
- package/build/image-api.js +0 -37
- package/build/image-api.js.map +1 -1
- package/build/learningpath-api.d.ts +3092 -43
- package/build/learningpath-api.js +0 -37
- package/build/learningpath-api.js.map +1 -1
- package/build/myndla-api.d.ts +3880 -43
- package/build/myndla-api.js +0 -37
- package/build/myndla-api.js.map +1 -1
- package/build/oembed-proxy.d.ts +251 -9
- package/build/oembed-proxy.js +0 -37
- package/build/oembed-proxy.js.map +1 -1
- package/build/scripts/generate-openapi.js +5 -12
- package/build/scripts/generate-openapi.js.map +1 -1
- package/build/search-api.d.ts +1645 -66
- package/build/search-api.js +0 -37
- package/build/search-api.js.map +1 -1
- package/package.json +2 -2
- package/build/article-api-openapi.d.ts +0 -1104
- package/build/article-api-openapi.js +0 -3
- package/build/article-api-openapi.js.map +0 -1
- package/build/audio-api-openapi.d.ts +0 -2145
- package/build/audio-api-openapi.js +0 -3
- package/build/audio-api-openapi.js.map +0 -1
- package/build/concept-api-openapi.d.ts +0 -1626
- package/build/concept-api-openapi.js +0 -3
- package/build/concept-api-openapi.js.map +0 -1
- package/build/draft-api-openapi.d.ts +0 -3139
- package/build/draft-api-openapi.js +0 -3
- package/build/draft-api-openapi.js.map +0 -1
- package/build/frontpage-api-openapi.d.ts +0 -974
- package/build/frontpage-api-openapi.js +0 -3
- package/build/frontpage-api-openapi.js.map +0 -1
- package/build/learningpath-api-openapi.d.ts +0 -3052
- package/build/learningpath-api-openapi.js +0 -3
- package/build/learningpath-api-openapi.js.map +0 -1
- package/build/oembed-proxy-openapi.d.ts +0 -245
- package/build/oembed-proxy-openapi.js +0 -3
- package/build/oembed-proxy-openapi.js.map +0 -1
- package/build/search-api-openapi.d.ts +0 -1582
- package/build/search-api-openapi.js +0 -3
- package/build/search-api-openapi.js.map +0 -1
package/build/concept-api.d.ts
CHANGED
|
@@ -1,34 +1,1657 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
export type paths = {
|
|
2
|
+
"/concept-api/v1/drafts/status-state-machine": {
|
|
3
|
+
parameters: {
|
|
4
|
+
query?: never;
|
|
5
|
+
header?: never;
|
|
6
|
+
path?: never;
|
|
7
|
+
cookie?: never;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Get status state machine
|
|
11
|
+
* @description Get status state machine
|
|
12
|
+
*/
|
|
13
|
+
get: operations["getConcept-apiV1DraftsStatus-state-machine"];
|
|
14
|
+
put?: never;
|
|
15
|
+
post?: never;
|
|
16
|
+
delete?: never;
|
|
17
|
+
options?: never;
|
|
18
|
+
head?: never;
|
|
19
|
+
patch?: never;
|
|
20
|
+
trace?: never;
|
|
21
|
+
};
|
|
22
|
+
"/concept-api/v1/drafts/tags": {
|
|
23
|
+
parameters: {
|
|
24
|
+
query?: never;
|
|
25
|
+
header?: never;
|
|
26
|
+
path?: never;
|
|
27
|
+
cookie?: never;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Returns a list of all tags in the specified subjects
|
|
31
|
+
* @description Returns a list of all tags in the specified subjects
|
|
32
|
+
*/
|
|
33
|
+
get: operations["getConcept-apiV1DraftsTags"];
|
|
34
|
+
put?: never;
|
|
35
|
+
post?: never;
|
|
36
|
+
delete?: never;
|
|
37
|
+
options?: never;
|
|
38
|
+
head?: never;
|
|
39
|
+
patch?: never;
|
|
40
|
+
trace?: never;
|
|
41
|
+
};
|
|
42
|
+
"/concept-api/v1/drafts/search": {
|
|
43
|
+
parameters: {
|
|
44
|
+
query?: never;
|
|
45
|
+
header?: never;
|
|
46
|
+
path?: never;
|
|
47
|
+
cookie?: never;
|
|
48
|
+
};
|
|
49
|
+
get?: never;
|
|
50
|
+
put?: never;
|
|
51
|
+
/**
|
|
52
|
+
* Show all concepts
|
|
53
|
+
* @description Shows all concepts. You can search it too.
|
|
54
|
+
*/
|
|
55
|
+
post: operations["postConcept-apiV1DraftsSearch"];
|
|
56
|
+
delete?: never;
|
|
57
|
+
options?: never;
|
|
58
|
+
head?: never;
|
|
59
|
+
patch?: never;
|
|
60
|
+
trace?: never;
|
|
61
|
+
};
|
|
62
|
+
"/concept-api/v1/drafts/{concept_id}": {
|
|
63
|
+
parameters: {
|
|
64
|
+
query?: never;
|
|
65
|
+
header?: never;
|
|
66
|
+
path?: never;
|
|
67
|
+
cookie?: never;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Show concept with a specified id
|
|
71
|
+
* @description Shows the concept for the specified id.
|
|
72
|
+
*/
|
|
73
|
+
get: operations["getConcept-apiV1DraftsConcept_id"];
|
|
74
|
+
put?: never;
|
|
75
|
+
post?: never;
|
|
76
|
+
/**
|
|
77
|
+
* Delete language from concept
|
|
78
|
+
* @description Delete language from concept
|
|
79
|
+
*/
|
|
80
|
+
delete: operations["deleteConcept-apiV1DraftsConcept_id"];
|
|
81
|
+
options?: never;
|
|
82
|
+
head?: never;
|
|
83
|
+
/**
|
|
84
|
+
* Update a concept
|
|
85
|
+
* @description Update a concept
|
|
86
|
+
*/
|
|
87
|
+
patch: operations["patchConcept-apiV1DraftsConcept_id"];
|
|
88
|
+
trace?: never;
|
|
89
|
+
};
|
|
90
|
+
"/concept-api/v1/drafts/{concept_id}/status/{STATUS}": {
|
|
91
|
+
parameters: {
|
|
92
|
+
query?: never;
|
|
93
|
+
header?: never;
|
|
94
|
+
path?: never;
|
|
95
|
+
cookie?: never;
|
|
96
|
+
};
|
|
97
|
+
get?: never;
|
|
98
|
+
/**
|
|
99
|
+
* Update status of a concept
|
|
100
|
+
* @description Update status of a concept
|
|
101
|
+
*/
|
|
102
|
+
put: operations["putConcept-apiV1DraftsConcept_idStatusStatus"];
|
|
103
|
+
post?: never;
|
|
104
|
+
delete?: never;
|
|
105
|
+
options?: never;
|
|
106
|
+
head?: never;
|
|
107
|
+
patch?: never;
|
|
108
|
+
trace?: never;
|
|
109
|
+
};
|
|
110
|
+
"/concept-api/v1/drafts/tag-search": {
|
|
111
|
+
parameters: {
|
|
112
|
+
query?: never;
|
|
113
|
+
header?: never;
|
|
114
|
+
path?: never;
|
|
115
|
+
cookie?: never;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Retrieves a list of all previously used tags in concepts
|
|
119
|
+
* @description Retrieves a list of all previously used tags in concepts
|
|
120
|
+
*/
|
|
121
|
+
get: operations["getConcept-apiV1DraftsTag-search"];
|
|
122
|
+
put?: never;
|
|
123
|
+
post?: never;
|
|
124
|
+
delete?: never;
|
|
125
|
+
options?: never;
|
|
126
|
+
head?: never;
|
|
127
|
+
patch?: never;
|
|
128
|
+
trace?: never;
|
|
129
|
+
};
|
|
130
|
+
"/concept-api/v1/drafts": {
|
|
131
|
+
parameters: {
|
|
132
|
+
query?: never;
|
|
133
|
+
header?: never;
|
|
134
|
+
path?: never;
|
|
135
|
+
cookie?: never;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Show all concepts
|
|
139
|
+
* @description Shows all concepts. You can search it too.
|
|
140
|
+
*/
|
|
141
|
+
get: operations["getConcept-apiV1Drafts"];
|
|
142
|
+
put?: never;
|
|
143
|
+
/**
|
|
144
|
+
* Create new concept
|
|
145
|
+
* @description Create new concept
|
|
146
|
+
*/
|
|
147
|
+
post: operations["postConcept-apiV1Drafts"];
|
|
148
|
+
delete?: never;
|
|
149
|
+
options?: never;
|
|
150
|
+
head?: never;
|
|
151
|
+
patch?: never;
|
|
152
|
+
trace?: never;
|
|
153
|
+
};
|
|
154
|
+
"/concept-api/v1/concepts/tags": {
|
|
155
|
+
parameters: {
|
|
156
|
+
query?: never;
|
|
157
|
+
header?: never;
|
|
158
|
+
path?: never;
|
|
159
|
+
cookie?: never;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Returns a list of all tags in the specified subjects
|
|
163
|
+
* @description Returns a list of all tags in the specified subjects
|
|
164
|
+
*/
|
|
165
|
+
get: operations["getConcept-apiV1ConceptsTags"];
|
|
166
|
+
put?: never;
|
|
167
|
+
post?: never;
|
|
168
|
+
delete?: never;
|
|
169
|
+
options?: never;
|
|
170
|
+
head?: never;
|
|
171
|
+
patch?: never;
|
|
172
|
+
trace?: never;
|
|
173
|
+
};
|
|
174
|
+
"/concept-api/v1/concepts/{concept_id}": {
|
|
175
|
+
parameters: {
|
|
176
|
+
query?: never;
|
|
177
|
+
header?: never;
|
|
178
|
+
path?: never;
|
|
179
|
+
cookie?: never;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Show concept with a specified id
|
|
183
|
+
* @description Shows the concept for the specified id.
|
|
184
|
+
*/
|
|
185
|
+
get: operations["getConcept-apiV1ConceptsConcept_id"];
|
|
186
|
+
put?: never;
|
|
187
|
+
post?: never;
|
|
188
|
+
delete?: never;
|
|
189
|
+
options?: never;
|
|
190
|
+
head?: never;
|
|
191
|
+
patch?: never;
|
|
192
|
+
trace?: never;
|
|
193
|
+
};
|
|
194
|
+
"/concept-api/v1/concepts": {
|
|
195
|
+
parameters: {
|
|
196
|
+
query?: never;
|
|
197
|
+
header?: never;
|
|
198
|
+
path?: never;
|
|
199
|
+
cookie?: never;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* Show all concepts
|
|
203
|
+
* @description Shows all concepts. You can search it too.
|
|
204
|
+
*/
|
|
205
|
+
get: operations["getConcept-apiV1Concepts"];
|
|
206
|
+
put?: never;
|
|
207
|
+
post?: never;
|
|
208
|
+
delete?: never;
|
|
209
|
+
options?: never;
|
|
210
|
+
head?: never;
|
|
211
|
+
patch?: never;
|
|
212
|
+
trace?: never;
|
|
213
|
+
};
|
|
214
|
+
"/concept-api/v1/concepts/search": {
|
|
215
|
+
parameters: {
|
|
216
|
+
query?: never;
|
|
217
|
+
header?: never;
|
|
218
|
+
path?: never;
|
|
219
|
+
cookie?: never;
|
|
220
|
+
};
|
|
221
|
+
get?: never;
|
|
222
|
+
put?: never;
|
|
223
|
+
/**
|
|
224
|
+
* Show all concepts
|
|
225
|
+
* @description Shows all concepts. You can search it too.
|
|
226
|
+
*/
|
|
227
|
+
post: operations["postConcept-apiV1ConceptsSearch"];
|
|
228
|
+
delete?: never;
|
|
229
|
+
options?: never;
|
|
230
|
+
head?: never;
|
|
231
|
+
patch?: never;
|
|
232
|
+
trace?: never;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
export type webhooks = Record<string, never>;
|
|
236
|
+
export type components = {
|
|
237
|
+
schemas: {
|
|
238
|
+
/** AllErrors */
|
|
239
|
+
AllErrors: components["schemas"]["ErrorBody"] | components["schemas"]["NotFoundWithSupportedLanguages"] | components["schemas"]["ValidationErrorBody"];
|
|
240
|
+
/**
|
|
241
|
+
* AuthorDTO
|
|
242
|
+
* @description Information about an author
|
|
243
|
+
*/
|
|
244
|
+
AuthorDTO: {
|
|
245
|
+
type: components["schemas"]["ContributorType"];
|
|
246
|
+
/** @description The name of the of the author */
|
|
247
|
+
name: string;
|
|
248
|
+
};
|
|
249
|
+
/** ConceptContent */
|
|
250
|
+
ConceptContent: {
|
|
251
|
+
/** @description The content of this concept */
|
|
252
|
+
content: string;
|
|
253
|
+
/** @description The html content of this concept */
|
|
254
|
+
htmlContent: string;
|
|
255
|
+
/** @description The language of this concept */
|
|
256
|
+
language: string;
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* ConceptDTO
|
|
260
|
+
* @description Information about the concept
|
|
261
|
+
*/
|
|
262
|
+
ConceptDTO: {
|
|
263
|
+
/**
|
|
264
|
+
* Format: int64
|
|
265
|
+
* @description The unique id of the concept
|
|
266
|
+
*/
|
|
267
|
+
id: number;
|
|
268
|
+
/**
|
|
269
|
+
* Format: int32
|
|
270
|
+
* @description The revision of the concept
|
|
271
|
+
*/
|
|
272
|
+
revision: number;
|
|
273
|
+
title: components["schemas"]["ConceptTitleDTO"];
|
|
274
|
+
/** @description The content of the concept */
|
|
275
|
+
content?: components["schemas"]["ConceptContent"];
|
|
276
|
+
/** @description Describes the copyright information for the concept */
|
|
277
|
+
copyright?: components["schemas"]["DraftCopyrightDTO"];
|
|
278
|
+
/** @description URL for the source of the concept */
|
|
279
|
+
source?: string;
|
|
280
|
+
tags?: components["schemas"]["ConceptTagsDTO"];
|
|
281
|
+
/** @description When the concept was created */
|
|
282
|
+
created: string;
|
|
283
|
+
/** @description When the concept was last updated */
|
|
284
|
+
updated: string;
|
|
285
|
+
/** @description List of people that updated this concept */
|
|
286
|
+
updatedBy?: string[];
|
|
287
|
+
/** @description All available languages of the current concept */
|
|
288
|
+
supportedLanguages: string[];
|
|
289
|
+
/** @description Status information of the concept */
|
|
290
|
+
status: components["schemas"]["StatusDTO"];
|
|
291
|
+
visualElement?: components["schemas"]["VisualElementDTO"];
|
|
292
|
+
responsible?: components["schemas"]["ResponsibleDTO"];
|
|
293
|
+
/** @description Type of concept. 'concept', or 'gloss' */
|
|
294
|
+
conceptType: string;
|
|
295
|
+
glossData?: components["schemas"]["GlossDataDTO"];
|
|
296
|
+
/** @description Describes the changes made to the concept, only visible to editors */
|
|
297
|
+
editorNotes?: components["schemas"]["EditorNoteDTO"][];
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* ConceptSearchParamsDTO
|
|
301
|
+
* @description The search parameters
|
|
302
|
+
*/
|
|
303
|
+
ConceptSearchParamsDTO: {
|
|
304
|
+
/** @description The search query. */
|
|
305
|
+
query?: string;
|
|
306
|
+
/** @description The ISO 639-1 language code describing language used in query-params. */
|
|
307
|
+
language?: string;
|
|
308
|
+
/**
|
|
309
|
+
* Format: int32
|
|
310
|
+
* @description The page number of the search hits to display.
|
|
311
|
+
*/
|
|
312
|
+
page?: number;
|
|
313
|
+
/**
|
|
314
|
+
* Format: int32
|
|
315
|
+
* @description The number of search hits to display for each page.
|
|
316
|
+
*/
|
|
317
|
+
pageSize?: number;
|
|
318
|
+
/** @description Return only articles that have one of the provided ids. */
|
|
319
|
+
ids?: number[];
|
|
320
|
+
sort?: components["schemas"]["Sort"];
|
|
321
|
+
/** @description Whether to fallback to existing language if not found in selected language. */
|
|
322
|
+
fallback?: boolean;
|
|
323
|
+
/** @description A search context retrieved from the response header of a previous search. */
|
|
324
|
+
scrollId?: string;
|
|
325
|
+
/** @description A comma-separated list of tags to filter the search by. */
|
|
326
|
+
tags?: string[];
|
|
327
|
+
/** @description If provided, only return concept where query matches title exactly. */
|
|
328
|
+
exactMatch?: boolean;
|
|
329
|
+
/** @description Embed resource type that should exist in the concepts. */
|
|
330
|
+
embedResource?: string[];
|
|
331
|
+
/** @description Embed id attribute that should exist in the concepts. */
|
|
332
|
+
embedId?: string;
|
|
333
|
+
/** @description The type of concepts to return. */
|
|
334
|
+
conceptType?: string;
|
|
335
|
+
/** @description A list of index paths to aggregate over */
|
|
336
|
+
aggregatePaths?: string[];
|
|
337
|
+
};
|
|
338
|
+
/**
|
|
339
|
+
* ConceptSearchResultDTO
|
|
340
|
+
* @description Information about search-results
|
|
341
|
+
*/
|
|
342
|
+
ConceptSearchResultDTO: {
|
|
343
|
+
/**
|
|
344
|
+
* Format: int64
|
|
345
|
+
* @description The total number of articles matching this query
|
|
346
|
+
*/
|
|
347
|
+
totalCount: number;
|
|
348
|
+
/**
|
|
349
|
+
* Format: int32
|
|
350
|
+
* @description For which page results are shown from
|
|
351
|
+
*/
|
|
352
|
+
page?: number;
|
|
353
|
+
/**
|
|
354
|
+
* Format: int32
|
|
355
|
+
* @description The number of results per page
|
|
356
|
+
*/
|
|
357
|
+
pageSize: number;
|
|
358
|
+
/** @description The chosen search language */
|
|
359
|
+
language: string;
|
|
360
|
+
/** @description The search results */
|
|
361
|
+
results: components["schemas"]["ConceptSummaryDTO"][];
|
|
362
|
+
/** @description The aggregated fields if specified in query */
|
|
363
|
+
aggregations: components["schemas"]["MultiSearchTermsAggregationDTO"][];
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* ConceptSummaryDTO
|
|
367
|
+
* @description Information about the concept
|
|
368
|
+
*/
|
|
369
|
+
ConceptSummaryDTO: {
|
|
370
|
+
/**
|
|
371
|
+
* Format: int64
|
|
372
|
+
* @description The unique id of the concept
|
|
373
|
+
*/
|
|
374
|
+
id: number;
|
|
375
|
+
title: components["schemas"]["ConceptTitleDTO"];
|
|
376
|
+
/** @description The content of the concept in available languages */
|
|
377
|
+
content: components["schemas"]["ConceptContent"];
|
|
378
|
+
tags?: components["schemas"]["ConceptTagsDTO"];
|
|
379
|
+
/** @description All available languages of the current concept */
|
|
380
|
+
supportedLanguages: string[];
|
|
381
|
+
/** @description The time when the article was last updated */
|
|
382
|
+
lastUpdated: string;
|
|
383
|
+
/** @description When the concept was created */
|
|
384
|
+
created: string;
|
|
385
|
+
/** @description Status information of the concept */
|
|
386
|
+
status: components["schemas"]["StatusDTO"];
|
|
387
|
+
/** @description List of people that edited the concept */
|
|
388
|
+
updatedBy: string[];
|
|
389
|
+
/** @description Describes the license of the concept */
|
|
390
|
+
license?: string;
|
|
391
|
+
/** @description Describes the copyright of the concept */
|
|
392
|
+
copyright?: components["schemas"]["DraftCopyrightDTO"];
|
|
393
|
+
visualElement?: components["schemas"]["VisualElementDTO"];
|
|
394
|
+
/** @description URL for the source of the concept */
|
|
395
|
+
source?: string;
|
|
396
|
+
responsible?: components["schemas"]["ResponsibleDTO"];
|
|
397
|
+
/** @description Type of concept. 'concept', or 'gloss' */
|
|
398
|
+
conceptType: string;
|
|
399
|
+
glossData?: components["schemas"]["GlossDataDTO"];
|
|
400
|
+
/** @description A translated name of the concept type */
|
|
401
|
+
conceptTypeName: string;
|
|
402
|
+
};
|
|
403
|
+
/**
|
|
404
|
+
* ConceptTagsDTO
|
|
405
|
+
* @description Search tags the concept is tagged with
|
|
406
|
+
*/
|
|
407
|
+
ConceptTagsDTO: {
|
|
408
|
+
/** @description Searchable tags */
|
|
409
|
+
tags: string[];
|
|
410
|
+
/** @description The ISO 639-1 language code describing which concept translation these tags belongs to */
|
|
411
|
+
language: string;
|
|
412
|
+
};
|
|
413
|
+
/**
|
|
414
|
+
* ConceptTitleDTO
|
|
415
|
+
* @description Available titles for the concept
|
|
416
|
+
*/
|
|
417
|
+
ConceptTitleDTO: {
|
|
418
|
+
/** @description The freetext title of this concept */
|
|
419
|
+
title: string;
|
|
420
|
+
/** @description The freetext html title of this concept */
|
|
421
|
+
htmlTitle: string;
|
|
422
|
+
/** @description ISO 639-1 code that represents the language used in the title */
|
|
423
|
+
language: string;
|
|
424
|
+
};
|
|
425
|
+
/**
|
|
426
|
+
* ContributorType
|
|
427
|
+
* @description The description of the author. Eg. Photographer or Supplier
|
|
428
|
+
* @enum {string}
|
|
429
|
+
*/
|
|
430
|
+
ContributorType: "artist" | "cowriter" | "compiler" | "composer" | "correction" | "director" | "distributor" | "editorial" | "facilitator" | "idea" | "illustrator" | "linguistic" | "originator" | "photographer" | "processor" | "publisher" | "reader" | "rightsholder" | "scriptwriter" | "supplier" | "translator" | "writer";
|
|
431
|
+
/**
|
|
432
|
+
* DraftConceptSearchParamsDTO
|
|
433
|
+
* @description The search parameters
|
|
434
|
+
*/
|
|
435
|
+
DraftConceptSearchParamsDTO: {
|
|
436
|
+
/** @description The search query. */
|
|
437
|
+
query?: string;
|
|
438
|
+
/** @description The ISO 639-1 language code describing language used in query-params. */
|
|
439
|
+
language?: string;
|
|
440
|
+
/**
|
|
441
|
+
* Format: int32
|
|
442
|
+
* @description The page number of the search hits to display.
|
|
443
|
+
*/
|
|
444
|
+
page?: number;
|
|
445
|
+
/**
|
|
446
|
+
* Format: int32
|
|
447
|
+
* @description The number of search hits to display for each page.
|
|
448
|
+
*/
|
|
449
|
+
pageSize?: number;
|
|
450
|
+
/** @description Return only articles that have one of the provided ids. */
|
|
451
|
+
ids?: number[];
|
|
452
|
+
sort?: components["schemas"]["Sort"];
|
|
453
|
+
/** @description Whether to fallback to existing language if not found in selected language. */
|
|
454
|
+
fallback?: boolean;
|
|
455
|
+
/** @description A search context retrieved from the response header of a previous search. */
|
|
456
|
+
scrollId?: string;
|
|
457
|
+
/** @description A comma-separated list of tags to filter the search by. */
|
|
458
|
+
tags?: string[];
|
|
459
|
+
/** @description A comma-separated list of statuses that should appear in the search. */
|
|
460
|
+
status?: string[];
|
|
461
|
+
/** @description A comma-separated list of users to filter the search by. */
|
|
462
|
+
users?: string[];
|
|
463
|
+
/** @description Embed resource type that should exist in the concepts. */
|
|
464
|
+
embedResource?: string[];
|
|
465
|
+
/** @description Embed id attribute that should exist in the concepts. */
|
|
466
|
+
embedId?: string;
|
|
467
|
+
/** @description A comma-separated list of NDLA IDs to filter the search by. */
|
|
468
|
+
responsibleIds?: string[];
|
|
469
|
+
/** @description The type of concepts to return. */
|
|
470
|
+
conceptType?: string;
|
|
471
|
+
/** @description A list of index paths to aggregate over */
|
|
472
|
+
aggregatePaths?: string[];
|
|
473
|
+
};
|
|
474
|
+
/** DraftCopyrightDTO */
|
|
475
|
+
DraftCopyrightDTO: {
|
|
476
|
+
license?: components["schemas"]["LicenseDTO"];
|
|
477
|
+
/** @description Reference to where the article is procured */
|
|
478
|
+
origin?: string;
|
|
479
|
+
/** @description List of creators */
|
|
480
|
+
creators: components["schemas"]["AuthorDTO"][];
|
|
481
|
+
/** @description List of processors */
|
|
482
|
+
processors: components["schemas"]["AuthorDTO"][];
|
|
483
|
+
/** @description List of rightsholders */
|
|
484
|
+
rightsholders: components["schemas"]["AuthorDTO"][];
|
|
485
|
+
/** @description Date from which the copyright is valid */
|
|
486
|
+
validFrom?: string;
|
|
487
|
+
/** @description Date to which the copyright is valid */
|
|
488
|
+
validTo?: string;
|
|
489
|
+
/** @description Whether or not the content has been processed */
|
|
490
|
+
processed: boolean;
|
|
491
|
+
};
|
|
492
|
+
/**
|
|
493
|
+
* EditorNoteDTO
|
|
494
|
+
* @description Information about the editorial notes
|
|
495
|
+
*/
|
|
496
|
+
EditorNoteDTO: {
|
|
497
|
+
/** @description Editorial note */
|
|
498
|
+
note: string;
|
|
499
|
+
/** @description User which saved the note */
|
|
500
|
+
updatedBy: string;
|
|
501
|
+
/** @description Status of concept at saved time */
|
|
502
|
+
status: components["schemas"]["StatusDTO"];
|
|
503
|
+
/** @description Timestamp of when note was saved */
|
|
504
|
+
timestamp: string;
|
|
505
|
+
};
|
|
506
|
+
/**
|
|
507
|
+
* ErrorBody
|
|
508
|
+
* @description Information about an error
|
|
509
|
+
*/
|
|
510
|
+
ErrorBody: {
|
|
511
|
+
/** @description Code stating the type of error */
|
|
512
|
+
code: string;
|
|
513
|
+
/** @description Description of the error */
|
|
514
|
+
description: string;
|
|
515
|
+
/** @description When the error occurred */
|
|
516
|
+
occurredAt: string;
|
|
517
|
+
/**
|
|
518
|
+
* Format: int32
|
|
519
|
+
* @description Numeric http status code
|
|
520
|
+
*/
|
|
521
|
+
statusCode: number;
|
|
522
|
+
};
|
|
523
|
+
/**
|
|
524
|
+
* GlossDataDTO
|
|
525
|
+
* @description Information about the gloss
|
|
526
|
+
*/
|
|
527
|
+
GlossDataDTO: {
|
|
528
|
+
/** @description The gloss itself */
|
|
529
|
+
gloss: string;
|
|
530
|
+
/** @description Word class / part of speech, ex. noun, adjective, verb, adverb, ... */
|
|
531
|
+
wordClass: string[];
|
|
532
|
+
/** @description Original language of the gloss */
|
|
533
|
+
originalLanguage: string;
|
|
534
|
+
/** @description Alternative writing of the gloss */
|
|
535
|
+
transcriptions: components["schemas"]["Map_String"];
|
|
536
|
+
/** @description List of examples of how the gloss can be used */
|
|
537
|
+
examples: components["schemas"]["GlossExampleDTO"][][];
|
|
538
|
+
};
|
|
539
|
+
/**
|
|
540
|
+
* GlossExampleDTO
|
|
541
|
+
* @description Information about the gloss example
|
|
542
|
+
*/
|
|
543
|
+
GlossExampleDTO: {
|
|
544
|
+
/** @description Example use of the gloss */
|
|
545
|
+
example: string;
|
|
546
|
+
/** @description Language of the example */
|
|
547
|
+
language: string;
|
|
548
|
+
/** @description Alternative writing of the example */
|
|
549
|
+
transcriptions: components["schemas"]["Map_String"];
|
|
550
|
+
};
|
|
551
|
+
/**
|
|
552
|
+
* LicenseDTO
|
|
553
|
+
* @description Describes the license of the article
|
|
554
|
+
*/
|
|
555
|
+
LicenseDTO: {
|
|
556
|
+
/** @description The name of the license */
|
|
557
|
+
license: string;
|
|
558
|
+
/** @description Description of the license */
|
|
559
|
+
description?: string;
|
|
560
|
+
/** @description Url to where the license can be found */
|
|
561
|
+
url?: string;
|
|
562
|
+
};
|
|
563
|
+
/** Map_List_String */
|
|
564
|
+
Map_List_String: {
|
|
565
|
+
[key: string]: string[];
|
|
566
|
+
};
|
|
567
|
+
/** Map_String */
|
|
568
|
+
Map_String: {
|
|
569
|
+
[key: string]: string;
|
|
570
|
+
};
|
|
571
|
+
/**
|
|
572
|
+
* MultiSearchTermsAggregationDTO
|
|
573
|
+
* @description Information about search aggregation on `field`
|
|
574
|
+
*/
|
|
575
|
+
MultiSearchTermsAggregationDTO: {
|
|
576
|
+
/** @description The field the specific aggregation is matching */
|
|
577
|
+
field: string;
|
|
578
|
+
/**
|
|
579
|
+
* Format: int32
|
|
580
|
+
* @description Number of documents with values that didn't appear in the aggregation. (Will only happen if there are more than 50 different values)
|
|
581
|
+
*/
|
|
582
|
+
sumOtherDocCount: number;
|
|
583
|
+
/**
|
|
584
|
+
* Format: int32
|
|
585
|
+
* @description The result is approximate, this gives an approximation of potential errors. (Specifics here: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#search-aggregations-bucket-terms-aggregation-approximate-counts)
|
|
586
|
+
*/
|
|
587
|
+
docCountErrorUpperBound: number;
|
|
588
|
+
/** @description Values appearing in the field */
|
|
589
|
+
values: components["schemas"]["TermValueDTO"][];
|
|
590
|
+
};
|
|
591
|
+
/**
|
|
592
|
+
* NewConceptDTO
|
|
593
|
+
* @description Information about the concept
|
|
594
|
+
*/
|
|
595
|
+
NewConceptDTO: {
|
|
596
|
+
/** @description The language of this concept */
|
|
597
|
+
language: string;
|
|
598
|
+
/** @description Available titles for the concept */
|
|
599
|
+
title: string;
|
|
600
|
+
/** @description The content of the concept */
|
|
601
|
+
content?: string;
|
|
602
|
+
/** @description Describes the copyright information for the concept */
|
|
603
|
+
copyright?: components["schemas"]["DraftCopyrightDTO"];
|
|
604
|
+
/** @description A list of searchable tags */
|
|
605
|
+
tags?: string[];
|
|
606
|
+
/** @description A visual element for the concept. May be anything from an image to a video or H5P */
|
|
607
|
+
visualElement?: string;
|
|
608
|
+
/** @description NDLA ID representing the editor responsible for this article */
|
|
609
|
+
responsibleId?: string;
|
|
610
|
+
/** @description Type of concept. 'concept', or 'gloss' */
|
|
611
|
+
conceptType: string;
|
|
612
|
+
glossData?: components["schemas"]["GlossDataDTO"];
|
|
613
|
+
};
|
|
614
|
+
/**
|
|
615
|
+
* NotFoundWithSupportedLanguages
|
|
616
|
+
* @description Information about an error
|
|
617
|
+
*/
|
|
618
|
+
NotFoundWithSupportedLanguages: {
|
|
619
|
+
/** @description Code stating the type of error */
|
|
620
|
+
code: string;
|
|
621
|
+
/** @description Description of the error */
|
|
622
|
+
description: string;
|
|
623
|
+
/** @description When the error occurred */
|
|
624
|
+
occurredAt: string;
|
|
625
|
+
/** @description List of supported languages */
|
|
626
|
+
supportedLanguages?: string[];
|
|
627
|
+
/**
|
|
628
|
+
* Format: int32
|
|
629
|
+
* @description Numeric http status code
|
|
630
|
+
*/
|
|
631
|
+
statusCode: number;
|
|
632
|
+
};
|
|
633
|
+
/**
|
|
634
|
+
* ResponsibleDTO
|
|
635
|
+
* @description Object with data representing the editor responsible for this concept
|
|
636
|
+
*/
|
|
637
|
+
ResponsibleDTO: {
|
|
638
|
+
/** @description NDLA ID of responsible editor */
|
|
639
|
+
responsibleId: string;
|
|
640
|
+
/** @description Date of when the responsible editor was last updated */
|
|
641
|
+
lastUpdated: string;
|
|
642
|
+
};
|
|
643
|
+
/**
|
|
644
|
+
* Sort
|
|
645
|
+
* @description The sorting used on results. Default is by -relevance.
|
|
646
|
+
* @enum {string}
|
|
647
|
+
*/
|
|
648
|
+
Sort: "-relevance" | "relevance" | "-title" | "title" | "-lastUpdated" | "lastUpdated" | "-id" | "id" | "-responsibleLastUpdated" | "responsibleLastUpdated" | "status" | "-status" | "subject" | "-subject" | "conceptType" | "-conceptType";
|
|
649
|
+
/** StatusDTO */
|
|
650
|
+
StatusDTO: {
|
|
651
|
+
/** @description The current status of the concept */
|
|
652
|
+
current: string;
|
|
653
|
+
/** @description Previous statuses this concept has been in */
|
|
654
|
+
other: string[];
|
|
655
|
+
};
|
|
656
|
+
/**
|
|
657
|
+
* TagsSearchResultDTO
|
|
658
|
+
* @description Information about tags-search-results
|
|
659
|
+
*/
|
|
660
|
+
TagsSearchResultDTO: {
|
|
661
|
+
/**
|
|
662
|
+
* Format: int32
|
|
663
|
+
* @description The total number of tags matching this query
|
|
664
|
+
*/
|
|
665
|
+
totalCount: number;
|
|
666
|
+
/**
|
|
667
|
+
* Format: int32
|
|
668
|
+
* @description For which page results are shown from
|
|
669
|
+
*/
|
|
670
|
+
page: number;
|
|
671
|
+
/**
|
|
672
|
+
* Format: int32
|
|
673
|
+
* @description The number of results per page
|
|
674
|
+
*/
|
|
675
|
+
pageSize: number;
|
|
676
|
+
/** @description The chosen search language */
|
|
677
|
+
language: string;
|
|
678
|
+
/** @description The search results */
|
|
679
|
+
results: string[];
|
|
680
|
+
};
|
|
681
|
+
/**
|
|
682
|
+
* TermValueDTO
|
|
683
|
+
* @description Value that appears in the search aggregation
|
|
684
|
+
*/
|
|
685
|
+
TermValueDTO: {
|
|
686
|
+
/** @description Value that appeared in result */
|
|
687
|
+
value: string;
|
|
688
|
+
/**
|
|
689
|
+
* Format: int32
|
|
690
|
+
* @description Number of times the value appeared in result
|
|
691
|
+
*/
|
|
692
|
+
count: number;
|
|
693
|
+
};
|
|
694
|
+
/**
|
|
695
|
+
* UpdatedConceptDTO
|
|
696
|
+
* @description Information about the concept
|
|
697
|
+
*/
|
|
698
|
+
UpdatedConceptDTO: {
|
|
699
|
+
/** @description The language of this concept */
|
|
700
|
+
language: string;
|
|
701
|
+
/** @description Available titles for the concept */
|
|
702
|
+
title?: string;
|
|
703
|
+
/** @description The content of the concept */
|
|
704
|
+
content?: string;
|
|
705
|
+
/** @description Describes the copyright information for the concept */
|
|
706
|
+
copyright?: components["schemas"]["DraftCopyrightDTO"];
|
|
707
|
+
/** @description A list of searchable tags */
|
|
708
|
+
tags?: string[];
|
|
709
|
+
/** @description The new status of the concept */
|
|
710
|
+
status?: string;
|
|
711
|
+
/** @description A visual element for the concept. May be anything from an image to a video or H5P */
|
|
712
|
+
visualElement?: string;
|
|
713
|
+
/** @description NDLA ID representing the editor responsible for this article */
|
|
714
|
+
responsibleId?: string | null;
|
|
715
|
+
/** @description Type of concept. 'concept', or 'gloss' */
|
|
716
|
+
conceptType?: string;
|
|
717
|
+
glossData?: components["schemas"]["GlossDataDTO"];
|
|
718
|
+
};
|
|
719
|
+
/**
|
|
720
|
+
* ValidationErrorBody
|
|
721
|
+
* @description Information about an error
|
|
722
|
+
*/
|
|
723
|
+
ValidationErrorBody: {
|
|
724
|
+
/** @description Code stating the type of error */
|
|
725
|
+
code: string;
|
|
726
|
+
/** @description Description of the error */
|
|
727
|
+
description: string;
|
|
728
|
+
/** @description When the error occurred */
|
|
729
|
+
occurredAt: string;
|
|
730
|
+
/** @description List of validation messages */
|
|
731
|
+
messages?: components["schemas"]["ValidationMessage"][];
|
|
732
|
+
/**
|
|
733
|
+
* Format: int32
|
|
734
|
+
* @description Numeric http status code
|
|
735
|
+
*/
|
|
736
|
+
statusCode: number;
|
|
737
|
+
};
|
|
738
|
+
/**
|
|
739
|
+
* ValidationMessage
|
|
740
|
+
* @description A message describing a validation error on a specific field
|
|
741
|
+
*/
|
|
742
|
+
ValidationMessage: {
|
|
743
|
+
/** @description The field the error occured in */
|
|
744
|
+
field: string;
|
|
745
|
+
/** @description The validation message */
|
|
746
|
+
message: string;
|
|
747
|
+
};
|
|
748
|
+
/**
|
|
749
|
+
* VisualElementDTO
|
|
750
|
+
* @description A visual element for the concept
|
|
751
|
+
*/
|
|
752
|
+
VisualElementDTO: {
|
|
753
|
+
/** @description Html containing the visual element. May contain any legal html element, including the embed-tag */
|
|
754
|
+
visualElement: string;
|
|
755
|
+
/** @description The ISO 639-1 language code describing which article translation this visual element belongs to */
|
|
756
|
+
language: string;
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
responses: never;
|
|
760
|
+
parameters: never;
|
|
761
|
+
requestBodies: never;
|
|
762
|
+
headers: never;
|
|
763
|
+
pathItems: never;
|
|
764
|
+
};
|
|
765
|
+
export type AllErrors = components['schemas']['AllErrors'];
|
|
766
|
+
export type AuthorDTO = components['schemas']['AuthorDTO'];
|
|
767
|
+
export type ConceptContent = components['schemas']['ConceptContent'];
|
|
768
|
+
export type ConceptDTO = components['schemas']['ConceptDTO'];
|
|
769
|
+
export type ConceptSearchParamsDTO = components['schemas']['ConceptSearchParamsDTO'];
|
|
770
|
+
export type ConceptSearchResultDTO = components['schemas']['ConceptSearchResultDTO'];
|
|
771
|
+
export type ConceptSummaryDTO = components['schemas']['ConceptSummaryDTO'];
|
|
772
|
+
export type ConceptTagsDTO = components['schemas']['ConceptTagsDTO'];
|
|
773
|
+
export type ConceptTitleDTO = components['schemas']['ConceptTitleDTO'];
|
|
774
|
+
export type ContributorType = components['schemas']['ContributorType'];
|
|
775
|
+
export type DraftConceptSearchParamsDTO = components['schemas']['DraftConceptSearchParamsDTO'];
|
|
776
|
+
export type DraftCopyrightDTO = components['schemas']['DraftCopyrightDTO'];
|
|
777
|
+
export type EditorNoteDTO = components['schemas']['EditorNoteDTO'];
|
|
778
|
+
export type ErrorBody = components['schemas']['ErrorBody'];
|
|
779
|
+
export type GlossDataDTO = components['schemas']['GlossDataDTO'];
|
|
780
|
+
export type GlossExampleDTO = components['schemas']['GlossExampleDTO'];
|
|
781
|
+
export type LicenseDTO = components['schemas']['LicenseDTO'];
|
|
782
|
+
export type Map_List_String = components['schemas']['Map_List_String'];
|
|
783
|
+
export type Map_String = components['schemas']['Map_String'];
|
|
784
|
+
export type MultiSearchTermsAggregationDTO = components['schemas']['MultiSearchTermsAggregationDTO'];
|
|
785
|
+
export type NewConceptDTO = components['schemas']['NewConceptDTO'];
|
|
786
|
+
export type NotFoundWithSupportedLanguages = components['schemas']['NotFoundWithSupportedLanguages'];
|
|
787
|
+
export type ResponsibleDTO = components['schemas']['ResponsibleDTO'];
|
|
788
|
+
export type Sort = components['schemas']['Sort'];
|
|
789
|
+
export type StatusDTO = components['schemas']['StatusDTO'];
|
|
790
|
+
export type TagsSearchResultDTO = components['schemas']['TagsSearchResultDTO'];
|
|
791
|
+
export type TermValueDTO = components['schemas']['TermValueDTO'];
|
|
792
|
+
export type UpdatedConceptDTO = components['schemas']['UpdatedConceptDTO'];
|
|
793
|
+
export type ValidationErrorBody = components['schemas']['ValidationErrorBody'];
|
|
794
|
+
export type ValidationMessage = components['schemas']['ValidationMessage'];
|
|
795
|
+
export type VisualElementDTO = components['schemas']['VisualElementDTO'];
|
|
796
|
+
export type $defs = Record<string, never>;
|
|
797
|
+
export interface operations {
|
|
798
|
+
"getConcept-apiV1DraftsStatus-state-machine": {
|
|
799
|
+
parameters: {
|
|
800
|
+
query?: never;
|
|
801
|
+
header?: never;
|
|
802
|
+
path?: never;
|
|
803
|
+
cookie?: never;
|
|
804
|
+
};
|
|
805
|
+
requestBody?: never;
|
|
806
|
+
responses: {
|
|
807
|
+
200: {
|
|
808
|
+
headers: {
|
|
809
|
+
"Cache-Control": string;
|
|
810
|
+
[name: string]: unknown;
|
|
811
|
+
};
|
|
812
|
+
content: {
|
|
813
|
+
"application/json": components["schemas"]["Map_List_String"];
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
400: {
|
|
817
|
+
headers: {
|
|
818
|
+
[name: string]: unknown;
|
|
819
|
+
};
|
|
820
|
+
content: {
|
|
821
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
401: {
|
|
825
|
+
headers: {
|
|
826
|
+
[name: string]: unknown;
|
|
827
|
+
};
|
|
828
|
+
content: {
|
|
829
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
403: {
|
|
833
|
+
headers: {
|
|
834
|
+
[name: string]: unknown;
|
|
835
|
+
};
|
|
836
|
+
content: {
|
|
837
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
838
|
+
};
|
|
839
|
+
};
|
|
840
|
+
404: {
|
|
841
|
+
headers: {
|
|
842
|
+
[name: string]: unknown;
|
|
843
|
+
};
|
|
844
|
+
content: {
|
|
845
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
846
|
+
};
|
|
847
|
+
};
|
|
848
|
+
500: {
|
|
849
|
+
headers: {
|
|
850
|
+
[name: string]: unknown;
|
|
851
|
+
};
|
|
852
|
+
content: {
|
|
853
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
};
|
|
857
|
+
};
|
|
858
|
+
"getConcept-apiV1DraftsTags": {
|
|
859
|
+
parameters: {
|
|
860
|
+
query?: {
|
|
861
|
+
/** @description The ISO 639-1 language code describing language. */
|
|
862
|
+
language?: string;
|
|
863
|
+
/** @description Fallback to existing language if language is specified. */
|
|
864
|
+
fallback?: boolean;
|
|
865
|
+
};
|
|
866
|
+
header?: never;
|
|
867
|
+
path?: never;
|
|
868
|
+
cookie?: never;
|
|
869
|
+
};
|
|
870
|
+
requestBody?: never;
|
|
871
|
+
responses: {
|
|
872
|
+
200: {
|
|
873
|
+
headers: {
|
|
874
|
+
"Cache-Control": string;
|
|
875
|
+
[name: string]: unknown;
|
|
876
|
+
};
|
|
877
|
+
content: {
|
|
878
|
+
"application/json": string[];
|
|
879
|
+
};
|
|
880
|
+
};
|
|
881
|
+
400: {
|
|
882
|
+
headers: {
|
|
883
|
+
[name: string]: unknown;
|
|
884
|
+
};
|
|
885
|
+
content: {
|
|
886
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
403: {
|
|
890
|
+
headers: {
|
|
891
|
+
[name: string]: unknown;
|
|
892
|
+
};
|
|
893
|
+
content: {
|
|
894
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
895
|
+
};
|
|
896
|
+
};
|
|
897
|
+
404: {
|
|
898
|
+
headers: {
|
|
899
|
+
[name: string]: unknown;
|
|
900
|
+
};
|
|
901
|
+
content: {
|
|
902
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
500: {
|
|
906
|
+
headers: {
|
|
907
|
+
[name: string]: unknown;
|
|
908
|
+
};
|
|
909
|
+
content: {
|
|
910
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
911
|
+
};
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
};
|
|
915
|
+
"postConcept-apiV1DraftsSearch": {
|
|
916
|
+
parameters: {
|
|
917
|
+
query?: never;
|
|
918
|
+
header?: never;
|
|
919
|
+
path?: never;
|
|
920
|
+
cookie?: never;
|
|
921
|
+
};
|
|
922
|
+
requestBody: {
|
|
923
|
+
content: {
|
|
924
|
+
"application/json": components["schemas"]["DraftConceptSearchParamsDTO"];
|
|
925
|
+
};
|
|
926
|
+
};
|
|
927
|
+
responses: {
|
|
928
|
+
200: {
|
|
929
|
+
headers: {
|
|
930
|
+
"Cache-Control": string;
|
|
931
|
+
[name: string]: unknown;
|
|
932
|
+
};
|
|
933
|
+
content: {
|
|
934
|
+
"application/json": components["schemas"]["ConceptSearchResultDTO"];
|
|
935
|
+
};
|
|
936
|
+
};
|
|
937
|
+
400: {
|
|
938
|
+
headers: {
|
|
939
|
+
[name: string]: unknown;
|
|
940
|
+
};
|
|
941
|
+
content: {
|
|
942
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
943
|
+
};
|
|
944
|
+
};
|
|
945
|
+
403: {
|
|
946
|
+
headers: {
|
|
947
|
+
[name: string]: unknown;
|
|
948
|
+
};
|
|
949
|
+
content: {
|
|
950
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
951
|
+
};
|
|
952
|
+
};
|
|
953
|
+
404: {
|
|
954
|
+
headers: {
|
|
955
|
+
[name: string]: unknown;
|
|
956
|
+
};
|
|
957
|
+
content: {
|
|
958
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
959
|
+
};
|
|
960
|
+
};
|
|
961
|
+
500: {
|
|
962
|
+
headers: {
|
|
963
|
+
[name: string]: unknown;
|
|
964
|
+
};
|
|
965
|
+
content: {
|
|
966
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
967
|
+
};
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
};
|
|
971
|
+
"getConcept-apiV1DraftsConcept_id": {
|
|
972
|
+
parameters: {
|
|
973
|
+
query?: {
|
|
974
|
+
/** @description The ISO 639-1 language code describing language. */
|
|
975
|
+
language?: string;
|
|
976
|
+
/** @description Fallback to existing language if language is specified. */
|
|
977
|
+
fallback?: boolean;
|
|
978
|
+
};
|
|
979
|
+
header?: never;
|
|
980
|
+
path: {
|
|
981
|
+
/** @description Id of the concept that is to be returned */
|
|
982
|
+
concept_id: number;
|
|
983
|
+
};
|
|
984
|
+
cookie?: never;
|
|
985
|
+
};
|
|
986
|
+
requestBody?: never;
|
|
987
|
+
responses: {
|
|
988
|
+
200: {
|
|
989
|
+
headers: {
|
|
990
|
+
"Cache-Control": string;
|
|
991
|
+
[name: string]: unknown;
|
|
992
|
+
};
|
|
993
|
+
content: {
|
|
994
|
+
"application/json": components["schemas"]["ConceptDTO"];
|
|
995
|
+
};
|
|
996
|
+
};
|
|
997
|
+
400: {
|
|
998
|
+
headers: {
|
|
999
|
+
[name: string]: unknown;
|
|
1000
|
+
};
|
|
1001
|
+
content: {
|
|
1002
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
404: {
|
|
1006
|
+
headers: {
|
|
1007
|
+
[name: string]: unknown;
|
|
1008
|
+
};
|
|
1009
|
+
content: {
|
|
1010
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1011
|
+
};
|
|
1012
|
+
};
|
|
1013
|
+
500: {
|
|
1014
|
+
headers: {
|
|
1015
|
+
[name: string]: unknown;
|
|
1016
|
+
};
|
|
1017
|
+
content: {
|
|
1018
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1019
|
+
};
|
|
1020
|
+
};
|
|
1021
|
+
};
|
|
1022
|
+
};
|
|
1023
|
+
"deleteConcept-apiV1DraftsConcept_id": {
|
|
1024
|
+
parameters: {
|
|
1025
|
+
query?: {
|
|
1026
|
+
/** @description The ISO 639-1 language code describing language. */
|
|
1027
|
+
language?: string;
|
|
1028
|
+
};
|
|
1029
|
+
header?: never;
|
|
1030
|
+
path: {
|
|
1031
|
+
/** @description Id of the concept that is to be returned */
|
|
1032
|
+
concept_id: number;
|
|
1033
|
+
};
|
|
1034
|
+
cookie?: never;
|
|
1035
|
+
};
|
|
1036
|
+
requestBody?: never;
|
|
1037
|
+
responses: {
|
|
1038
|
+
200: {
|
|
1039
|
+
headers: {
|
|
1040
|
+
"Cache-Control": string;
|
|
1041
|
+
[name: string]: unknown;
|
|
1042
|
+
};
|
|
1043
|
+
content: {
|
|
1044
|
+
"application/json": components["schemas"]["ConceptDTO"];
|
|
1045
|
+
};
|
|
1046
|
+
};
|
|
1047
|
+
400: {
|
|
1048
|
+
headers: {
|
|
1049
|
+
[name: string]: unknown;
|
|
1050
|
+
};
|
|
1051
|
+
content: {
|
|
1052
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
403: {
|
|
1056
|
+
headers: {
|
|
1057
|
+
[name: string]: unknown;
|
|
1058
|
+
};
|
|
1059
|
+
content: {
|
|
1060
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1061
|
+
};
|
|
1062
|
+
};
|
|
1063
|
+
404: {
|
|
1064
|
+
headers: {
|
|
1065
|
+
[name: string]: unknown;
|
|
1066
|
+
};
|
|
1067
|
+
content: {
|
|
1068
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
500: {
|
|
1072
|
+
headers: {
|
|
1073
|
+
[name: string]: unknown;
|
|
1074
|
+
};
|
|
1075
|
+
content: {
|
|
1076
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1077
|
+
};
|
|
1078
|
+
};
|
|
1079
|
+
};
|
|
1080
|
+
};
|
|
1081
|
+
"patchConcept-apiV1DraftsConcept_id": {
|
|
1082
|
+
parameters: {
|
|
1083
|
+
query?: never;
|
|
1084
|
+
header?: never;
|
|
1085
|
+
path: {
|
|
1086
|
+
/** @description Id of the concept that is to be returned */
|
|
1087
|
+
concept_id: number;
|
|
1088
|
+
};
|
|
1089
|
+
cookie?: never;
|
|
1090
|
+
};
|
|
1091
|
+
requestBody: {
|
|
1092
|
+
content: {
|
|
1093
|
+
"application/json": components["schemas"]["UpdatedConceptDTO"];
|
|
1094
|
+
};
|
|
1095
|
+
};
|
|
1096
|
+
responses: {
|
|
1097
|
+
200: {
|
|
1098
|
+
headers: {
|
|
1099
|
+
"Cache-Control": string;
|
|
1100
|
+
[name: string]: unknown;
|
|
1101
|
+
};
|
|
1102
|
+
content: {
|
|
1103
|
+
"application/json": components["schemas"]["ConceptDTO"];
|
|
1104
|
+
};
|
|
1105
|
+
};
|
|
1106
|
+
400: {
|
|
1107
|
+
headers: {
|
|
1108
|
+
[name: string]: unknown;
|
|
1109
|
+
};
|
|
1110
|
+
content: {
|
|
1111
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1112
|
+
};
|
|
1113
|
+
};
|
|
1114
|
+
403: {
|
|
1115
|
+
headers: {
|
|
1116
|
+
[name: string]: unknown;
|
|
1117
|
+
};
|
|
1118
|
+
content: {
|
|
1119
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1120
|
+
};
|
|
1121
|
+
};
|
|
1122
|
+
404: {
|
|
1123
|
+
headers: {
|
|
1124
|
+
[name: string]: unknown;
|
|
1125
|
+
};
|
|
1126
|
+
content: {
|
|
1127
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1128
|
+
};
|
|
1129
|
+
};
|
|
1130
|
+
500: {
|
|
1131
|
+
headers: {
|
|
1132
|
+
[name: string]: unknown;
|
|
1133
|
+
};
|
|
1134
|
+
content: {
|
|
1135
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1136
|
+
};
|
|
1137
|
+
};
|
|
1138
|
+
};
|
|
1139
|
+
};
|
|
1140
|
+
"putConcept-apiV1DraftsConcept_idStatusStatus": {
|
|
1141
|
+
parameters: {
|
|
1142
|
+
query?: never;
|
|
1143
|
+
header?: never;
|
|
1144
|
+
path: {
|
|
1145
|
+
/** @description Id of the concept that is to be returned */
|
|
1146
|
+
concept_id: number;
|
|
1147
|
+
/** @description Concept status */
|
|
1148
|
+
STATUS: string;
|
|
1149
|
+
};
|
|
1150
|
+
cookie?: never;
|
|
1151
|
+
};
|
|
1152
|
+
requestBody?: never;
|
|
1153
|
+
responses: {
|
|
1154
|
+
200: {
|
|
1155
|
+
headers: {
|
|
1156
|
+
"Cache-Control": string;
|
|
1157
|
+
[name: string]: unknown;
|
|
1158
|
+
};
|
|
1159
|
+
content: {
|
|
1160
|
+
"application/json": components["schemas"]["ConceptDTO"];
|
|
1161
|
+
};
|
|
1162
|
+
};
|
|
1163
|
+
400: {
|
|
1164
|
+
headers: {
|
|
1165
|
+
[name: string]: unknown;
|
|
1166
|
+
};
|
|
1167
|
+
content: {
|
|
1168
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1169
|
+
};
|
|
1170
|
+
};
|
|
1171
|
+
401: {
|
|
1172
|
+
headers: {
|
|
1173
|
+
[name: string]: unknown;
|
|
1174
|
+
};
|
|
1175
|
+
content: {
|
|
1176
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1177
|
+
};
|
|
1178
|
+
};
|
|
1179
|
+
403: {
|
|
1180
|
+
headers: {
|
|
1181
|
+
[name: string]: unknown;
|
|
1182
|
+
};
|
|
1183
|
+
content: {
|
|
1184
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1185
|
+
};
|
|
1186
|
+
};
|
|
1187
|
+
404: {
|
|
1188
|
+
headers: {
|
|
1189
|
+
[name: string]: unknown;
|
|
1190
|
+
};
|
|
1191
|
+
content: {
|
|
1192
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1193
|
+
};
|
|
1194
|
+
};
|
|
1195
|
+
500: {
|
|
1196
|
+
headers: {
|
|
1197
|
+
[name: string]: unknown;
|
|
1198
|
+
};
|
|
1199
|
+
content: {
|
|
1200
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1201
|
+
};
|
|
1202
|
+
};
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1205
|
+
"getConcept-apiV1DraftsTag-search": {
|
|
1206
|
+
parameters: {
|
|
1207
|
+
query?: {
|
|
1208
|
+
/** @description Return only concepts with content matching the specified query. */
|
|
1209
|
+
query?: string;
|
|
1210
|
+
/** @description The number of search hits to display for each page. */
|
|
1211
|
+
"page-size"?: number;
|
|
1212
|
+
/** @description The page number of the search hits to display. */
|
|
1213
|
+
page?: number;
|
|
1214
|
+
/** @description The ISO 639-1 language code describing language. */
|
|
1215
|
+
language?: string;
|
|
1216
|
+
};
|
|
1217
|
+
header?: never;
|
|
1218
|
+
path?: never;
|
|
1219
|
+
cookie?: never;
|
|
1220
|
+
};
|
|
1221
|
+
requestBody?: never;
|
|
1222
|
+
responses: {
|
|
1223
|
+
200: {
|
|
1224
|
+
headers: {
|
|
1225
|
+
"Cache-Control": string;
|
|
1226
|
+
[name: string]: unknown;
|
|
1227
|
+
};
|
|
1228
|
+
content: {
|
|
1229
|
+
"application/json": components["schemas"]["TagsSearchResultDTO"];
|
|
1230
|
+
};
|
|
1231
|
+
};
|
|
1232
|
+
400: {
|
|
1233
|
+
headers: {
|
|
1234
|
+
[name: string]: unknown;
|
|
1235
|
+
};
|
|
1236
|
+
content: {
|
|
1237
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1238
|
+
};
|
|
1239
|
+
};
|
|
1240
|
+
403: {
|
|
1241
|
+
headers: {
|
|
1242
|
+
[name: string]: unknown;
|
|
1243
|
+
};
|
|
1244
|
+
content: {
|
|
1245
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1246
|
+
};
|
|
1247
|
+
};
|
|
1248
|
+
404: {
|
|
1249
|
+
headers: {
|
|
1250
|
+
[name: string]: unknown;
|
|
1251
|
+
};
|
|
1252
|
+
content: {
|
|
1253
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1256
|
+
500: {
|
|
1257
|
+
headers: {
|
|
1258
|
+
[name: string]: unknown;
|
|
1259
|
+
};
|
|
1260
|
+
content: {
|
|
1261
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1262
|
+
};
|
|
1263
|
+
};
|
|
1264
|
+
};
|
|
1265
|
+
};
|
|
1266
|
+
"getConcept-apiV1Drafts": {
|
|
1267
|
+
parameters: {
|
|
1268
|
+
query?: {
|
|
1269
|
+
/** @description Return only concepts with content matching the specified query. */
|
|
1270
|
+
query?: string;
|
|
1271
|
+
/** @description Return only concepts that have one of the provided ids. To provide multiple ids, separate by comma (,). */
|
|
1272
|
+
ids?: number[];
|
|
1273
|
+
/** @description The ISO 639-1 language code describing language. */
|
|
1274
|
+
language?: string;
|
|
1275
|
+
/** @description The page number of the search hits to display. */
|
|
1276
|
+
page?: number;
|
|
1277
|
+
/** @description The number of search hits to display for each page. */
|
|
1278
|
+
"page-size"?: number;
|
|
1279
|
+
/**
|
|
1280
|
+
* @description The sorting used on results.
|
|
1281
|
+
* The following are supported: ByRelevanceDesc,ByRelevanceAsc,ByTitleDesc,ByTitleAsc,ByLastUpdatedDesc,ByLastUpdatedAsc,ByIdDesc,ByIdAsc,ByResponsibleLastUpdatedDesc,ByResponsibleLastUpdatedAsc,ByStatusAsc,ByStatusDesc,BySubjectAsc,BySubjectDesc,ByConceptTypeAsc,ByConceptTypeDesc
|
|
1282
|
+
* Default is by -relevance (desc) when query is set, and title (asc) when query is empty.
|
|
1283
|
+
*/
|
|
1284
|
+
sort?: string;
|
|
1285
|
+
/** @description Fallback to existing language if language is specified. */
|
|
1286
|
+
fallback?: boolean;
|
|
1287
|
+
/**
|
|
1288
|
+
* @description A unique string obtained from a search you want to keep scrolling in. To obtain one from a search, provide one of the following values: [0,initial,start,first].
|
|
1289
|
+
* When scrolling, the parameters from the initial search is used, except in the case of 'language' and 'fallback'.
|
|
1290
|
+
* This value may change between scrolls. Always use the one in the latest scroll result.
|
|
1291
|
+
* If you are not paginating very far, you can ignore this and use 'page' and 'page-size' instead.
|
|
1292
|
+
*/
|
|
1293
|
+
"search-context"?: string;
|
|
1294
|
+
/** @description A comma-separated list of tags to filter the search by. */
|
|
1295
|
+
tags?: string[];
|
|
1296
|
+
/**
|
|
1297
|
+
* @description List of statuses to filter by.
|
|
1298
|
+
* A draft only needs to have one of the available statuses to appear in result (OR).
|
|
1299
|
+
*/
|
|
1300
|
+
status?: string[];
|
|
1301
|
+
/**
|
|
1302
|
+
* @description List of users to filter by.
|
|
1303
|
+
* The value to search for is the user-id from Auth0.
|
|
1304
|
+
*/
|
|
1305
|
+
users?: string[];
|
|
1306
|
+
/** @description Return concepts with matching embed type. */
|
|
1307
|
+
"embed-resource"?: string[];
|
|
1308
|
+
/** @description Return concepts with matching embed id. */
|
|
1309
|
+
"embed-id"?: string;
|
|
1310
|
+
/** @description List of responsible ids to filter by (OR filter) */
|
|
1311
|
+
"responsible-ids"?: string[];
|
|
1312
|
+
/** @description Return only concepts of given type. Allowed values are concept,gloss */
|
|
1313
|
+
"concept-type"?: string;
|
|
1314
|
+
/** @description List of index-paths that should be term-aggregated and returned in result. */
|
|
1315
|
+
"aggregate-paths"?: string[];
|
|
1316
|
+
};
|
|
1317
|
+
header?: never;
|
|
1318
|
+
path?: never;
|
|
1319
|
+
cookie?: never;
|
|
1320
|
+
};
|
|
1321
|
+
requestBody?: never;
|
|
1322
|
+
responses: {
|
|
1323
|
+
200: {
|
|
1324
|
+
headers: {
|
|
1325
|
+
"Cache-Control": string;
|
|
1326
|
+
[name: string]: unknown;
|
|
1327
|
+
};
|
|
1328
|
+
content: {
|
|
1329
|
+
"application/json": components["schemas"]["ConceptSearchResultDTO"];
|
|
1330
|
+
};
|
|
1331
|
+
};
|
|
1332
|
+
400: {
|
|
1333
|
+
headers: {
|
|
1334
|
+
[name: string]: unknown;
|
|
1335
|
+
};
|
|
1336
|
+
content: {
|
|
1337
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1338
|
+
};
|
|
1339
|
+
};
|
|
1340
|
+
404: {
|
|
1341
|
+
headers: {
|
|
1342
|
+
[name: string]: unknown;
|
|
1343
|
+
};
|
|
1344
|
+
content: {
|
|
1345
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1346
|
+
};
|
|
1347
|
+
};
|
|
1348
|
+
500: {
|
|
1349
|
+
headers: {
|
|
1350
|
+
[name: string]: unknown;
|
|
1351
|
+
};
|
|
1352
|
+
content: {
|
|
1353
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1354
|
+
};
|
|
1355
|
+
};
|
|
1356
|
+
};
|
|
1357
|
+
};
|
|
1358
|
+
"postConcept-apiV1Drafts": {
|
|
1359
|
+
parameters: {
|
|
1360
|
+
query?: never;
|
|
1361
|
+
header?: never;
|
|
1362
|
+
path?: never;
|
|
1363
|
+
cookie?: never;
|
|
1364
|
+
};
|
|
1365
|
+
requestBody: {
|
|
1366
|
+
content: {
|
|
1367
|
+
"application/json": components["schemas"]["NewConceptDTO"];
|
|
1368
|
+
};
|
|
1369
|
+
};
|
|
1370
|
+
responses: {
|
|
1371
|
+
201: {
|
|
1372
|
+
headers: {
|
|
1373
|
+
"Cache-Control": string;
|
|
1374
|
+
[name: string]: unknown;
|
|
1375
|
+
};
|
|
1376
|
+
content: {
|
|
1377
|
+
"application/json": components["schemas"]["ConceptDTO"];
|
|
1378
|
+
};
|
|
1379
|
+
};
|
|
1380
|
+
400: {
|
|
1381
|
+
headers: {
|
|
1382
|
+
[name: string]: unknown;
|
|
1383
|
+
};
|
|
1384
|
+
content: {
|
|
1385
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1386
|
+
};
|
|
1387
|
+
};
|
|
1388
|
+
403: {
|
|
1389
|
+
headers: {
|
|
1390
|
+
[name: string]: unknown;
|
|
1391
|
+
};
|
|
1392
|
+
content: {
|
|
1393
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1394
|
+
};
|
|
1395
|
+
};
|
|
1396
|
+
404: {
|
|
1397
|
+
headers: {
|
|
1398
|
+
[name: string]: unknown;
|
|
1399
|
+
};
|
|
1400
|
+
content: {
|
|
1401
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1402
|
+
};
|
|
1403
|
+
};
|
|
1404
|
+
500: {
|
|
1405
|
+
headers: {
|
|
1406
|
+
[name: string]: unknown;
|
|
1407
|
+
};
|
|
1408
|
+
content: {
|
|
1409
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1410
|
+
};
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
};
|
|
1414
|
+
"getConcept-apiV1ConceptsTags": {
|
|
1415
|
+
parameters: {
|
|
1416
|
+
query?: {
|
|
1417
|
+
/** @description The ISO 639-1 language code describing language. */
|
|
1418
|
+
language?: string;
|
|
1419
|
+
/** @description Fallback to existing language if language is specified. */
|
|
1420
|
+
fallback?: boolean;
|
|
1421
|
+
};
|
|
1422
|
+
header?: never;
|
|
1423
|
+
path?: never;
|
|
1424
|
+
cookie?: never;
|
|
1425
|
+
};
|
|
1426
|
+
requestBody?: never;
|
|
1427
|
+
responses: {
|
|
1428
|
+
200: {
|
|
1429
|
+
headers: {
|
|
1430
|
+
[name: string]: unknown;
|
|
1431
|
+
};
|
|
1432
|
+
content: {
|
|
1433
|
+
"application/json": string[];
|
|
1434
|
+
};
|
|
1435
|
+
};
|
|
1436
|
+
400: {
|
|
1437
|
+
headers: {
|
|
1438
|
+
[name: string]: unknown;
|
|
1439
|
+
};
|
|
1440
|
+
content: {
|
|
1441
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1442
|
+
};
|
|
1443
|
+
};
|
|
1444
|
+
403: {
|
|
1445
|
+
headers: {
|
|
1446
|
+
[name: string]: unknown;
|
|
1447
|
+
};
|
|
1448
|
+
content: {
|
|
1449
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1450
|
+
};
|
|
1451
|
+
};
|
|
1452
|
+
404: {
|
|
1453
|
+
headers: {
|
|
1454
|
+
[name: string]: unknown;
|
|
1455
|
+
};
|
|
1456
|
+
content: {
|
|
1457
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1458
|
+
};
|
|
1459
|
+
};
|
|
1460
|
+
500: {
|
|
1461
|
+
headers: {
|
|
1462
|
+
[name: string]: unknown;
|
|
1463
|
+
};
|
|
1464
|
+
content: {
|
|
1465
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1466
|
+
};
|
|
1467
|
+
};
|
|
1468
|
+
};
|
|
1469
|
+
};
|
|
1470
|
+
"getConcept-apiV1ConceptsConcept_id": {
|
|
1471
|
+
parameters: {
|
|
1472
|
+
query?: {
|
|
1473
|
+
/** @description The ISO 639-1 language code describing language. */
|
|
1474
|
+
language?: string;
|
|
1475
|
+
/** @description Fallback to existing language if language is specified. */
|
|
1476
|
+
fallback?: boolean;
|
|
1477
|
+
};
|
|
1478
|
+
header?: never;
|
|
1479
|
+
path: {
|
|
1480
|
+
/** @description Id of the concept that is to be returned */
|
|
1481
|
+
concept_id: number;
|
|
1482
|
+
};
|
|
1483
|
+
cookie?: never;
|
|
1484
|
+
};
|
|
1485
|
+
requestBody?: never;
|
|
1486
|
+
responses: {
|
|
1487
|
+
200: {
|
|
1488
|
+
headers: {
|
|
1489
|
+
[name: string]: unknown;
|
|
1490
|
+
};
|
|
1491
|
+
content: {
|
|
1492
|
+
"application/json": components["schemas"]["ConceptDTO"];
|
|
1493
|
+
};
|
|
1494
|
+
};
|
|
1495
|
+
400: {
|
|
1496
|
+
headers: {
|
|
1497
|
+
[name: string]: unknown;
|
|
1498
|
+
};
|
|
1499
|
+
content: {
|
|
1500
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1501
|
+
};
|
|
1502
|
+
};
|
|
1503
|
+
404: {
|
|
1504
|
+
headers: {
|
|
1505
|
+
[name: string]: unknown;
|
|
1506
|
+
};
|
|
1507
|
+
content: {
|
|
1508
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
500: {
|
|
1512
|
+
headers: {
|
|
1513
|
+
[name: string]: unknown;
|
|
1514
|
+
};
|
|
1515
|
+
content: {
|
|
1516
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1517
|
+
};
|
|
1518
|
+
};
|
|
1519
|
+
};
|
|
1520
|
+
};
|
|
1521
|
+
"getConcept-apiV1Concepts": {
|
|
1522
|
+
parameters: {
|
|
1523
|
+
query?: {
|
|
1524
|
+
/** @description Return only concepts with content matching the specified query. */
|
|
1525
|
+
query?: string;
|
|
1526
|
+
/** @description Return only concepts that have one of the provided ids. To provide multiple ids, separate by comma (,). */
|
|
1527
|
+
ids?: number[];
|
|
1528
|
+
/** @description The ISO 639-1 language code describing language. */
|
|
1529
|
+
language?: string;
|
|
1530
|
+
/** @description The page number of the search hits to display. */
|
|
1531
|
+
page?: number;
|
|
1532
|
+
/** @description The number of search hits to display for each page. */
|
|
1533
|
+
"page-size"?: number;
|
|
1534
|
+
/**
|
|
1535
|
+
* @description The sorting used on results.
|
|
1536
|
+
* The following are supported: ByRelevanceDesc,ByRelevanceAsc,ByTitleDesc,ByTitleAsc,ByLastUpdatedDesc,ByLastUpdatedAsc,ByIdDesc,ByIdAsc,ByResponsibleLastUpdatedDesc,ByResponsibleLastUpdatedAsc,ByStatusAsc,ByStatusDesc,BySubjectAsc,BySubjectDesc,ByConceptTypeAsc,ByConceptTypeDesc
|
|
1537
|
+
* Default is by -relevance (desc) when query is set, and title (asc) when query is empty.
|
|
1538
|
+
*/
|
|
1539
|
+
sort?: string;
|
|
1540
|
+
/** @description Fallback to existing language if language is specified. */
|
|
1541
|
+
fallback?: boolean;
|
|
1542
|
+
/**
|
|
1543
|
+
* @description A unique string obtained from a search you want to keep scrolling in. To obtain one from a search, provide one of the following values: [0,initial,start,first].
|
|
1544
|
+
* When scrolling, the parameters from the initial search is used, except in the case of 'language' and 'fallback'.
|
|
1545
|
+
* This value may change between scrolls. Always use the one in the latest scroll result.
|
|
1546
|
+
* If you are not paginating very far, you can ignore this and use 'page' and 'page-size' instead.
|
|
1547
|
+
*/
|
|
1548
|
+
"search-context"?: string;
|
|
1549
|
+
/** @description A comma-separated list of tags to filter the search by. */
|
|
1550
|
+
tags?: string[];
|
|
1551
|
+
/** @description If provided, only return concept where query matches title exactly. */
|
|
1552
|
+
"exact-match"?: boolean;
|
|
1553
|
+
/** @description Return concepts with matching embed type. */
|
|
1554
|
+
"embed-resource"?: string[];
|
|
1555
|
+
/** @description Return concepts with matching embed id. */
|
|
1556
|
+
"embed-id"?: string;
|
|
1557
|
+
/** @description Return only concepts of given type. Allowed values are concept,gloss */
|
|
1558
|
+
"concept-type"?: string;
|
|
1559
|
+
/** @description List of index-paths that should be term-aggregated and returned in result. */
|
|
1560
|
+
"aggregate-paths"?: string[];
|
|
1561
|
+
};
|
|
1562
|
+
header?: never;
|
|
1563
|
+
path?: never;
|
|
1564
|
+
cookie?: never;
|
|
1565
|
+
};
|
|
1566
|
+
requestBody?: never;
|
|
1567
|
+
responses: {
|
|
1568
|
+
200: {
|
|
1569
|
+
headers: {
|
|
1570
|
+
[name: string]: unknown;
|
|
1571
|
+
};
|
|
1572
|
+
content: {
|
|
1573
|
+
"application/json": components["schemas"]["ConceptSearchResultDTO"];
|
|
1574
|
+
};
|
|
1575
|
+
};
|
|
1576
|
+
400: {
|
|
1577
|
+
headers: {
|
|
1578
|
+
[name: string]: unknown;
|
|
1579
|
+
};
|
|
1580
|
+
content: {
|
|
1581
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1582
|
+
};
|
|
1583
|
+
};
|
|
1584
|
+
404: {
|
|
1585
|
+
headers: {
|
|
1586
|
+
[name: string]: unknown;
|
|
1587
|
+
};
|
|
1588
|
+
content: {
|
|
1589
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1590
|
+
};
|
|
1591
|
+
};
|
|
1592
|
+
500: {
|
|
1593
|
+
headers: {
|
|
1594
|
+
[name: string]: unknown;
|
|
1595
|
+
};
|
|
1596
|
+
content: {
|
|
1597
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1598
|
+
};
|
|
1599
|
+
};
|
|
1600
|
+
};
|
|
1601
|
+
};
|
|
1602
|
+
"postConcept-apiV1ConceptsSearch": {
|
|
1603
|
+
parameters: {
|
|
1604
|
+
query?: never;
|
|
1605
|
+
header?: never;
|
|
1606
|
+
path?: never;
|
|
1607
|
+
cookie?: never;
|
|
1608
|
+
};
|
|
1609
|
+
requestBody: {
|
|
1610
|
+
content: {
|
|
1611
|
+
"application/json": components["schemas"]["ConceptSearchParamsDTO"];
|
|
1612
|
+
};
|
|
1613
|
+
};
|
|
1614
|
+
responses: {
|
|
1615
|
+
200: {
|
|
1616
|
+
headers: {
|
|
1617
|
+
[name: string]: unknown;
|
|
1618
|
+
};
|
|
1619
|
+
content: {
|
|
1620
|
+
"application/json": components["schemas"]["ConceptSearchResultDTO"];
|
|
1621
|
+
};
|
|
1622
|
+
};
|
|
1623
|
+
400: {
|
|
1624
|
+
headers: {
|
|
1625
|
+
[name: string]: unknown;
|
|
1626
|
+
};
|
|
1627
|
+
content: {
|
|
1628
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1629
|
+
};
|
|
1630
|
+
};
|
|
1631
|
+
403: {
|
|
1632
|
+
headers: {
|
|
1633
|
+
[name: string]: unknown;
|
|
1634
|
+
};
|
|
1635
|
+
content: {
|
|
1636
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
404: {
|
|
1640
|
+
headers: {
|
|
1641
|
+
[name: string]: unknown;
|
|
1642
|
+
};
|
|
1643
|
+
content: {
|
|
1644
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
1645
|
+
};
|
|
1646
|
+
};
|
|
1647
|
+
500: {
|
|
1648
|
+
headers: {
|
|
1649
|
+
[name: string]: unknown;
|
|
1650
|
+
};
|
|
1651
|
+
content: {
|
|
1652
|
+
"application/json": components["schemas"]["ErrorBody"];
|
|
1653
|
+
};
|
|
1654
|
+
};
|
|
1655
|
+
};
|
|
1656
|
+
};
|
|
1657
|
+
}
|