@ndla/types-backend 1.0.156 → 1.0.157
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 +54 -214
- package/package.json +1 -1
package/build/taxonomy-api.d.ts
CHANGED
|
@@ -181,7 +181,7 @@ export type paths = {
|
|
|
181
181
|
put: operations["updateNodeConnection"];
|
|
182
182
|
post?: never;
|
|
183
183
|
/** Removes a connection between a node and a child */
|
|
184
|
-
delete: operations["
|
|
184
|
+
delete: operations["deleteEntity_2"];
|
|
185
185
|
options?: never;
|
|
186
186
|
head?: never;
|
|
187
187
|
patch?: never;
|
|
@@ -358,7 +358,7 @@ export type paths = {
|
|
|
358
358
|
put: operations["updateNode"];
|
|
359
359
|
post?: never;
|
|
360
360
|
/** Deletes a single node by id */
|
|
361
|
-
delete: operations["
|
|
361
|
+
delete: operations["deleteEntity_1"];
|
|
362
362
|
options?: never;
|
|
363
363
|
head?: never;
|
|
364
364
|
patch?: never;
|
|
@@ -763,10 +763,16 @@ export type paths = {
|
|
|
763
763
|
path?: never;
|
|
764
764
|
cookie?: never;
|
|
765
765
|
};
|
|
766
|
-
/**
|
|
766
|
+
/**
|
|
767
|
+
* Gets all connections between resources and resource types
|
|
768
|
+
* @deprecated
|
|
769
|
+
*/
|
|
767
770
|
get: operations["getAllResourceResourceTypes"];
|
|
768
771
|
put?: never;
|
|
769
|
-
/**
|
|
772
|
+
/**
|
|
773
|
+
* Adds a resource type to a resource
|
|
774
|
+
* @deprecated
|
|
775
|
+
*/
|
|
770
776
|
post: operations["createResourceResourceType"];
|
|
771
777
|
delete?: never;
|
|
772
778
|
options?: never;
|
|
@@ -781,10 +787,16 @@ export type paths = {
|
|
|
781
787
|
path?: never;
|
|
782
788
|
cookie?: never;
|
|
783
789
|
};
|
|
784
|
-
/**
|
|
790
|
+
/**
|
|
791
|
+
* Gets all connections between resources and resource types
|
|
792
|
+
* @deprecated
|
|
793
|
+
*/
|
|
785
794
|
get: operations["getAllResourceResourceTypes_1"];
|
|
786
795
|
put?: never;
|
|
787
|
-
/**
|
|
796
|
+
/**
|
|
797
|
+
* Adds a resource type to a resource
|
|
798
|
+
* @deprecated
|
|
799
|
+
*/
|
|
788
800
|
post: operations["createResourceResourceType_1"];
|
|
789
801
|
delete?: never;
|
|
790
802
|
options?: never;
|
|
@@ -799,11 +811,17 @@ export type paths = {
|
|
|
799
811
|
path?: never;
|
|
800
812
|
cookie?: never;
|
|
801
813
|
};
|
|
802
|
-
/**
|
|
814
|
+
/**
|
|
815
|
+
* Gets a single connection between resource and resource type
|
|
816
|
+
* @deprecated
|
|
817
|
+
*/
|
|
803
818
|
get: operations["getResourceResourceType"];
|
|
804
819
|
put?: never;
|
|
805
820
|
post?: never;
|
|
806
|
-
/**
|
|
821
|
+
/**
|
|
822
|
+
* Removes a resource type from a resource
|
|
823
|
+
* @deprecated
|
|
824
|
+
*/
|
|
807
825
|
delete: operations["deleteResourceResourceType"];
|
|
808
826
|
options?: never;
|
|
809
827
|
head?: never;
|
|
@@ -820,8 +838,7 @@ export type paths = {
|
|
|
820
838
|
/** Gets a list of all resource types */
|
|
821
839
|
get: operations["getAllResourceTypes"];
|
|
822
840
|
put?: never;
|
|
823
|
-
|
|
824
|
-
post: operations["createResourceType"];
|
|
841
|
+
post?: never;
|
|
825
842
|
delete?: never;
|
|
826
843
|
options?: never;
|
|
827
844
|
head?: never;
|
|
@@ -838,8 +855,7 @@ export type paths = {
|
|
|
838
855
|
/** Gets a list of all resource types */
|
|
839
856
|
get: operations["getAllResourceTypes_1"];
|
|
840
857
|
put?: never;
|
|
841
|
-
|
|
842
|
-
post: operations["createResourceType_1"];
|
|
858
|
+
post?: never;
|
|
843
859
|
delete?: never;
|
|
844
860
|
options?: never;
|
|
845
861
|
head?: never;
|
|
@@ -855,11 +871,9 @@ export type paths = {
|
|
|
855
871
|
};
|
|
856
872
|
/** Gets a single resource type */
|
|
857
873
|
get: operations["getResourceType"];
|
|
858
|
-
|
|
859
|
-
put: operations["updateResourceType"];
|
|
874
|
+
put?: never;
|
|
860
875
|
post?: never;
|
|
861
|
-
|
|
862
|
-
delete: operations["deleteEntity_1"];
|
|
876
|
+
delete?: never;
|
|
863
877
|
options?: never;
|
|
864
878
|
head?: never;
|
|
865
879
|
patch?: never;
|
|
@@ -889,7 +903,10 @@ export type paths = {
|
|
|
889
903
|
path?: never;
|
|
890
904
|
cookie?: never;
|
|
891
905
|
};
|
|
892
|
-
/**
|
|
906
|
+
/**
|
|
907
|
+
* Gets all relevanceTranslations for a single resource type
|
|
908
|
+
* @deprecated
|
|
909
|
+
*/
|
|
893
910
|
get: operations["getAllResourceTypeTranslations"];
|
|
894
911
|
put?: never;
|
|
895
912
|
post?: never;
|
|
@@ -906,7 +923,10 @@ export type paths = {
|
|
|
906
923
|
path?: never;
|
|
907
924
|
cookie?: never;
|
|
908
925
|
};
|
|
909
|
-
/**
|
|
926
|
+
/**
|
|
927
|
+
* Gets all relevanceTranslations for a single resource type
|
|
928
|
+
* @deprecated
|
|
929
|
+
*/
|
|
910
930
|
get: operations["getAllResourceTypeTranslations_1"];
|
|
911
931
|
put?: never;
|
|
912
932
|
post?: never;
|
|
@@ -923,13 +943,14 @@ export type paths = {
|
|
|
923
943
|
path?: never;
|
|
924
944
|
cookie?: never;
|
|
925
945
|
};
|
|
926
|
-
/**
|
|
946
|
+
/**
|
|
947
|
+
* Gets a single translation for a single resource type
|
|
948
|
+
* @deprecated
|
|
949
|
+
*/
|
|
927
950
|
get: operations["getResourceTypeTranslation"];
|
|
928
|
-
|
|
929
|
-
put: operations["createUpdateResourceTypeTranslation"];
|
|
951
|
+
put?: never;
|
|
930
952
|
post?: never;
|
|
931
|
-
|
|
932
|
-
delete: operations["deleteResourceTypeTranslation"];
|
|
953
|
+
delete?: never;
|
|
933
954
|
options?: never;
|
|
934
955
|
head?: never;
|
|
935
956
|
patch?: never;
|
|
@@ -2068,7 +2089,7 @@ export type components = {
|
|
|
2068
2089
|
nodeType?: components["schemas"]["NodeType"];
|
|
2069
2090
|
/** @description The quality evaluation of the node. Consist of a score from 1 to 5 and a comment. Can be null to remove existing evaluation. */
|
|
2070
2091
|
qualityEvaluation?: components["schemas"]["QualityEvaluationDTO"];
|
|
2071
|
-
/** @description ResourceType public ids to assign to the node. Only works
|
|
2092
|
+
/** @description ResourceType public ids to assign to the node. Only works for nodes of type RESOURCE */
|
|
2072
2093
|
resourceTypes?: string[];
|
|
2073
2094
|
/**
|
|
2074
2095
|
* @deprecated
|
|
@@ -2299,7 +2320,7 @@ export type components = {
|
|
|
2299
2320
|
/**
|
|
2300
2321
|
* Format: uri
|
|
2301
2322
|
* @description Resource to resource type connection id
|
|
2302
|
-
* @example urn:resource-
|
|
2323
|
+
* @example urn:resource-resourcetype:urn:resource:123_urn:resourcetype:subjectMaterial
|
|
2303
2324
|
*/
|
|
2304
2325
|
id: string;
|
|
2305
2326
|
/**
|
|
@@ -2346,38 +2367,14 @@ export type components = {
|
|
|
2346
2367
|
* @description Sort order of the resource type
|
|
2347
2368
|
* @example 1
|
|
2348
2369
|
*/
|
|
2349
|
-
order
|
|
2370
|
+
order: number;
|
|
2350
2371
|
/** @description Sub resource types */
|
|
2351
|
-
subtypes?: components["schemas"]["ResourceType"][];
|
|
2372
|
+
subtypes?: components["schemas"]["ResourceType"][] | null;
|
|
2352
2373
|
/** @description List of language codes supported by translations */
|
|
2353
2374
|
supportedLanguages: string[];
|
|
2354
2375
|
/** @description All translations of this resource type */
|
|
2355
2376
|
translations: components["schemas"]["Translation"][];
|
|
2356
2377
|
};
|
|
2357
|
-
/** @description The new resource type */
|
|
2358
|
-
ResourceTypePUT: {
|
|
2359
|
-
/**
|
|
2360
|
-
* Format: uri
|
|
2361
|
-
* @description If specified, set the id to this value. Must start with urn:resourcetype: and be a valid URI. If omitted, an id will be assigned automatically.
|
|
2362
|
-
* @example urn:resourcetype:1
|
|
2363
|
-
*/
|
|
2364
|
-
id: string | null;
|
|
2365
|
-
/**
|
|
2366
|
-
* @description The name of the resource type
|
|
2367
|
-
* @example Lecture
|
|
2368
|
-
*/
|
|
2369
|
-
name: string;
|
|
2370
|
-
/**
|
|
2371
|
-
* Format: int32
|
|
2372
|
-
* @description Order in which the resource type should be sorted among its siblings
|
|
2373
|
-
*/
|
|
2374
|
-
order?: number;
|
|
2375
|
-
/**
|
|
2376
|
-
* Format: uri
|
|
2377
|
-
* @description If specified, the new resource type will be a child of the mentioned resource type.
|
|
2378
|
-
*/
|
|
2379
|
-
parentId: string;
|
|
2380
|
-
};
|
|
2381
2378
|
ResourceTypeWithConnection: {
|
|
2382
2379
|
/**
|
|
2383
2380
|
* Format: uri
|
|
@@ -2399,12 +2396,12 @@ export type components = {
|
|
|
2399
2396
|
* Format: int32
|
|
2400
2397
|
* @description Internal order of the resource types
|
|
2401
2398
|
*/
|
|
2402
|
-
order
|
|
2399
|
+
order: number;
|
|
2403
2400
|
/**
|
|
2404
2401
|
* Format: uri
|
|
2405
2402
|
* @example urn:resourcetype:1
|
|
2406
2403
|
*/
|
|
2407
|
-
parentId?: string;
|
|
2404
|
+
parentId?: string | null;
|
|
2408
2405
|
/** @description List of language codes supported by translations */
|
|
2409
2406
|
supportedLanguages: string[];
|
|
2410
2407
|
/** @description All translations of this resource type */
|
|
@@ -2435,8 +2432,8 @@ export type components = {
|
|
|
2435
2432
|
[key: string]: string;
|
|
2436
2433
|
};
|
|
2437
2434
|
/** Format: int32 */
|
|
2438
|
-
order
|
|
2439
|
-
parentId?: string;
|
|
2435
|
+
order: number;
|
|
2436
|
+
parentId?: string | null;
|
|
2440
2437
|
};
|
|
2441
2438
|
TaxonomyContext: {
|
|
2442
2439
|
/** @description A breadcrumb of the names of the context's parents */
|
|
@@ -2663,7 +2660,6 @@ export type ResolvedUrl = components['schemas']['ResolvedUrl'];
|
|
|
2663
2660
|
export type ResourceResourceType = components['schemas']['ResourceResourceType'];
|
|
2664
2661
|
export type ResourceResourceTypePOST = components['schemas']['ResourceResourceTypePOST'];
|
|
2665
2662
|
export type ResourceType = components['schemas']['ResourceType'];
|
|
2666
|
-
export type ResourceTypePUT = components['schemas']['ResourceTypePUT'];
|
|
2667
2663
|
export type ResourceTypeWithConnection = components['schemas']['ResourceTypeWithConnection'];
|
|
2668
2664
|
export type SearchResult = components['schemas']['SearchResult'];
|
|
2669
2665
|
export type SearchableTaxonomyResourceType = components['schemas']['SearchableTaxonomyResourceType'];
|
|
@@ -3042,7 +3038,7 @@ export interface operations {
|
|
|
3042
3038
|
};
|
|
3043
3039
|
};
|
|
3044
3040
|
};
|
|
3045
|
-
|
|
3041
|
+
deleteEntity_2: {
|
|
3046
3042
|
parameters: {
|
|
3047
3043
|
query?: never;
|
|
3048
3044
|
header?: {
|
|
@@ -3884,7 +3880,7 @@ export interface operations {
|
|
|
3884
3880
|
};
|
|
3885
3881
|
};
|
|
3886
3882
|
};
|
|
3887
|
-
|
|
3883
|
+
deleteEntity_1: {
|
|
3888
3884
|
parameters: {
|
|
3889
3885
|
query?: never;
|
|
3890
3886
|
header?: {
|
|
@@ -4784,31 +4780,6 @@ export interface operations {
|
|
|
4784
4780
|
};
|
|
4785
4781
|
};
|
|
4786
4782
|
};
|
|
4787
|
-
createResourceType: {
|
|
4788
|
-
parameters: {
|
|
4789
|
-
query?: never;
|
|
4790
|
-
header?: {
|
|
4791
|
-
versionHash?: components["parameters"]["versionHash"];
|
|
4792
|
-
};
|
|
4793
|
-
path?: never;
|
|
4794
|
-
cookie?: never;
|
|
4795
|
-
};
|
|
4796
|
-
requestBody: {
|
|
4797
|
-
content: {
|
|
4798
|
-
"application/json": components["schemas"]["ResourceTypePUT"];
|
|
4799
|
-
};
|
|
4800
|
-
};
|
|
4801
|
-
responses: {
|
|
4802
|
-
/** @description Created */
|
|
4803
|
-
201: {
|
|
4804
|
-
headers: {
|
|
4805
|
-
Location?: string;
|
|
4806
|
-
[name: string]: unknown;
|
|
4807
|
-
};
|
|
4808
|
-
content?: never;
|
|
4809
|
-
};
|
|
4810
|
-
};
|
|
4811
|
-
};
|
|
4812
4783
|
getAllResourceTypes_1: {
|
|
4813
4784
|
parameters: {
|
|
4814
4785
|
query?: {
|
|
@@ -4837,31 +4808,6 @@ export interface operations {
|
|
|
4837
4808
|
};
|
|
4838
4809
|
};
|
|
4839
4810
|
};
|
|
4840
|
-
createResourceType_1: {
|
|
4841
|
-
parameters: {
|
|
4842
|
-
query?: never;
|
|
4843
|
-
header?: {
|
|
4844
|
-
versionHash?: components["parameters"]["versionHash"];
|
|
4845
|
-
};
|
|
4846
|
-
path?: never;
|
|
4847
|
-
cookie?: never;
|
|
4848
|
-
};
|
|
4849
|
-
requestBody: {
|
|
4850
|
-
content: {
|
|
4851
|
-
"application/json": components["schemas"]["ResourceTypePUT"];
|
|
4852
|
-
};
|
|
4853
|
-
};
|
|
4854
|
-
responses: {
|
|
4855
|
-
/** @description Created */
|
|
4856
|
-
201: {
|
|
4857
|
-
headers: {
|
|
4858
|
-
Location?: string;
|
|
4859
|
-
[name: string]: unknown;
|
|
4860
|
-
};
|
|
4861
|
-
content?: never;
|
|
4862
|
-
};
|
|
4863
|
-
};
|
|
4864
|
-
};
|
|
4865
4811
|
getResourceType: {
|
|
4866
4812
|
parameters: {
|
|
4867
4813
|
query?: {
|
|
@@ -4892,54 +4838,6 @@ export interface operations {
|
|
|
4892
4838
|
};
|
|
4893
4839
|
};
|
|
4894
4840
|
};
|
|
4895
|
-
updateResourceType: {
|
|
4896
|
-
parameters: {
|
|
4897
|
-
query?: never;
|
|
4898
|
-
header?: {
|
|
4899
|
-
versionHash?: components["parameters"]["versionHash"];
|
|
4900
|
-
};
|
|
4901
|
-
path: {
|
|
4902
|
-
id: string;
|
|
4903
|
-
};
|
|
4904
|
-
cookie?: never;
|
|
4905
|
-
};
|
|
4906
|
-
requestBody: {
|
|
4907
|
-
content: {
|
|
4908
|
-
"application/json": components["schemas"]["ResourceTypePUT"];
|
|
4909
|
-
};
|
|
4910
|
-
};
|
|
4911
|
-
responses: {
|
|
4912
|
-
/** @description No Content */
|
|
4913
|
-
204: {
|
|
4914
|
-
headers: {
|
|
4915
|
-
[name: string]: unknown;
|
|
4916
|
-
};
|
|
4917
|
-
content?: never;
|
|
4918
|
-
};
|
|
4919
|
-
};
|
|
4920
|
-
};
|
|
4921
|
-
deleteEntity_1: {
|
|
4922
|
-
parameters: {
|
|
4923
|
-
query?: never;
|
|
4924
|
-
header?: {
|
|
4925
|
-
versionHash?: components["parameters"]["versionHash"];
|
|
4926
|
-
};
|
|
4927
|
-
path: {
|
|
4928
|
-
id: string;
|
|
4929
|
-
};
|
|
4930
|
-
cookie?: never;
|
|
4931
|
-
};
|
|
4932
|
-
requestBody?: never;
|
|
4933
|
-
responses: {
|
|
4934
|
-
/** @description No Content */
|
|
4935
|
-
204: {
|
|
4936
|
-
headers: {
|
|
4937
|
-
[name: string]: unknown;
|
|
4938
|
-
};
|
|
4939
|
-
content?: never;
|
|
4940
|
-
};
|
|
4941
|
-
};
|
|
4942
|
-
};
|
|
4943
4841
|
getResourceTypeSubtypes: {
|
|
4944
4842
|
parameters: {
|
|
4945
4843
|
query?: {
|
|
@@ -5049,64 +4947,6 @@ export interface operations {
|
|
|
5049
4947
|
};
|
|
5050
4948
|
};
|
|
5051
4949
|
};
|
|
5052
|
-
createUpdateResourceTypeTranslation: {
|
|
5053
|
-
parameters: {
|
|
5054
|
-
query?: never;
|
|
5055
|
-
header?: {
|
|
5056
|
-
versionHash?: components["parameters"]["versionHash"];
|
|
5057
|
-
};
|
|
5058
|
-
path: {
|
|
5059
|
-
id: string;
|
|
5060
|
-
/**
|
|
5061
|
-
* @description ISO-639-1 language code
|
|
5062
|
-
* @example nb
|
|
5063
|
-
*/
|
|
5064
|
-
language: string;
|
|
5065
|
-
};
|
|
5066
|
-
cookie?: never;
|
|
5067
|
-
};
|
|
5068
|
-
requestBody: {
|
|
5069
|
-
content: {
|
|
5070
|
-
"application/json": components["schemas"]["TranslationPUT"];
|
|
5071
|
-
};
|
|
5072
|
-
};
|
|
5073
|
-
responses: {
|
|
5074
|
-
/** @description No Content */
|
|
5075
|
-
204: {
|
|
5076
|
-
headers: {
|
|
5077
|
-
[name: string]: unknown;
|
|
5078
|
-
};
|
|
5079
|
-
content?: never;
|
|
5080
|
-
};
|
|
5081
|
-
};
|
|
5082
|
-
};
|
|
5083
|
-
deleteResourceTypeTranslation: {
|
|
5084
|
-
parameters: {
|
|
5085
|
-
query?: never;
|
|
5086
|
-
header?: {
|
|
5087
|
-
versionHash?: components["parameters"]["versionHash"];
|
|
5088
|
-
};
|
|
5089
|
-
path: {
|
|
5090
|
-
id: string;
|
|
5091
|
-
/**
|
|
5092
|
-
* @description ISO-639-1 language code
|
|
5093
|
-
* @example nb
|
|
5094
|
-
*/
|
|
5095
|
-
language: string;
|
|
5096
|
-
};
|
|
5097
|
-
cookie?: never;
|
|
5098
|
-
};
|
|
5099
|
-
requestBody?: never;
|
|
5100
|
-
responses: {
|
|
5101
|
-
/** @description No Content */
|
|
5102
|
-
204: {
|
|
5103
|
-
headers: {
|
|
5104
|
-
[name: string]: unknown;
|
|
5105
|
-
};
|
|
5106
|
-
content?: never;
|
|
5107
|
-
};
|
|
5108
|
-
};
|
|
5109
|
-
};
|
|
5110
4950
|
redirect_168: {
|
|
5111
4951
|
parameters: {
|
|
5112
4952
|
query?: never;
|