@ndla/types-taxonomy 1.0.21 → 1.0.23
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/taxonomy-api.d.ts +40 -1
- package/package.json +1 -1
- package/taxonomy-api.ts +41 -1
package/build/taxonomy-api.d.ts
CHANGED
|
@@ -214,6 +214,45 @@ export interface NodeResourcePUT {
|
|
|
214
214
|
*/
|
|
215
215
|
relevanceId?: string;
|
|
216
216
|
}
|
|
217
|
+
export interface NodeSearchBody {
|
|
218
|
+
/**
|
|
219
|
+
* ContentURIs to fetch for query
|
|
220
|
+
*/
|
|
221
|
+
contentUris?: string[];
|
|
222
|
+
customFields?: Record<string, string>;
|
|
223
|
+
/**
|
|
224
|
+
* Filter out programme contexts
|
|
225
|
+
*/
|
|
226
|
+
filterProgrammes: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* Ids to fetch for query
|
|
229
|
+
*/
|
|
230
|
+
ids?: string[];
|
|
231
|
+
/**
|
|
232
|
+
* Include all contexts
|
|
233
|
+
*/
|
|
234
|
+
includeContexts?: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* ISO-639-1 language code
|
|
237
|
+
*/
|
|
238
|
+
language?: string;
|
|
239
|
+
/**
|
|
240
|
+
* Filter by nodeType
|
|
241
|
+
*/
|
|
242
|
+
nodeType?: NodeType[];
|
|
243
|
+
/**
|
|
244
|
+
* Which page to fetch
|
|
245
|
+
*/
|
|
246
|
+
page: number;
|
|
247
|
+
/**
|
|
248
|
+
* How many results to return per page
|
|
249
|
+
*/
|
|
250
|
+
pageSize: number;
|
|
251
|
+
/**
|
|
252
|
+
* Query to search names
|
|
253
|
+
*/
|
|
254
|
+
query?: string;
|
|
255
|
+
}
|
|
217
256
|
export interface NodeWithParents extends Node {
|
|
218
257
|
parents: NodeChild[];
|
|
219
258
|
}
|
|
@@ -305,7 +344,7 @@ export interface ResourceType {
|
|
|
305
344
|
/**
|
|
306
345
|
* Sub resource types
|
|
307
346
|
*/
|
|
308
|
-
subtypes
|
|
347
|
+
subtypes?: ResourceType[];
|
|
309
348
|
/**
|
|
310
349
|
* List of language codes supported by translations
|
|
311
350
|
*/
|
package/package.json
CHANGED
package/taxonomy-api.ts
CHANGED
|
@@ -228,6 +228,46 @@ export interface NodeResourcePUT {
|
|
|
228
228
|
relevanceId?: string;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
+
export interface NodeSearchBody {
|
|
232
|
+
/**
|
|
233
|
+
* ContentURIs to fetch for query
|
|
234
|
+
*/
|
|
235
|
+
contentUris?: string[];
|
|
236
|
+
customFields?: Record<string, string>;
|
|
237
|
+
/**
|
|
238
|
+
* Filter out programme contexts
|
|
239
|
+
*/
|
|
240
|
+
filterProgrammes: boolean;
|
|
241
|
+
/**
|
|
242
|
+
* Ids to fetch for query
|
|
243
|
+
*/
|
|
244
|
+
ids?: string[];
|
|
245
|
+
/**
|
|
246
|
+
* Include all contexts
|
|
247
|
+
*/
|
|
248
|
+
includeContexts?: boolean;
|
|
249
|
+
/**
|
|
250
|
+
* ISO-639-1 language code
|
|
251
|
+
*/
|
|
252
|
+
language?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Filter by nodeType
|
|
255
|
+
*/
|
|
256
|
+
nodeType?: NodeType[];
|
|
257
|
+
/**
|
|
258
|
+
* Which page to fetch
|
|
259
|
+
*/
|
|
260
|
+
page: number;
|
|
261
|
+
/**
|
|
262
|
+
* How many results to return per page
|
|
263
|
+
*/
|
|
264
|
+
pageSize: number;
|
|
265
|
+
/**
|
|
266
|
+
* Query to search names
|
|
267
|
+
*/
|
|
268
|
+
query?: string;
|
|
269
|
+
}
|
|
270
|
+
|
|
231
271
|
export interface NodeWithParents extends Node {
|
|
232
272
|
parents: NodeChild[];
|
|
233
273
|
}
|
|
@@ -327,7 +367,7 @@ export interface ResourceType {
|
|
|
327
367
|
/**
|
|
328
368
|
* Sub resource types
|
|
329
369
|
*/
|
|
330
|
-
subtypes
|
|
370
|
+
subtypes?: ResourceType[];
|
|
331
371
|
/**
|
|
332
372
|
* List of language codes supported by translations
|
|
333
373
|
*/
|