@ndla/types-backend 1.0.156 → 1.0.158
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 +66 -221
- 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;
|
|
@@ -712,7 +712,10 @@ export type paths = {
|
|
|
712
712
|
path?: never;
|
|
713
713
|
cookie?: never;
|
|
714
714
|
};
|
|
715
|
-
/**
|
|
715
|
+
/**
|
|
716
|
+
* Gets all relevanceTranslations for a single relevance
|
|
717
|
+
* @deprecated
|
|
718
|
+
*/
|
|
716
719
|
get: operations["getAllRelevanceTranslations"];
|
|
717
720
|
put?: never;
|
|
718
721
|
post?: never;
|
|
@@ -729,7 +732,10 @@ export type paths = {
|
|
|
729
732
|
path?: never;
|
|
730
733
|
cookie?: never;
|
|
731
734
|
};
|
|
732
|
-
/**
|
|
735
|
+
/**
|
|
736
|
+
* Gets all relevanceTranslations for a single relevance
|
|
737
|
+
* @deprecated
|
|
738
|
+
*/
|
|
733
739
|
get: operations["getAllRelevanceTranslations_1"];
|
|
734
740
|
put?: never;
|
|
735
741
|
post?: never;
|
|
@@ -746,7 +752,10 @@ export type paths = {
|
|
|
746
752
|
path?: never;
|
|
747
753
|
cookie?: never;
|
|
748
754
|
};
|
|
749
|
-
/**
|
|
755
|
+
/**
|
|
756
|
+
* Gets a single translation for a single relevance
|
|
757
|
+
* @deprecated
|
|
758
|
+
*/
|
|
750
759
|
get: operations["getRelevanceTranslation"];
|
|
751
760
|
put?: never;
|
|
752
761
|
post?: never;
|
|
@@ -763,10 +772,16 @@ export type paths = {
|
|
|
763
772
|
path?: never;
|
|
764
773
|
cookie?: never;
|
|
765
774
|
};
|
|
766
|
-
/**
|
|
775
|
+
/**
|
|
776
|
+
* Gets all connections between resources and resource types
|
|
777
|
+
* @deprecated
|
|
778
|
+
*/
|
|
767
779
|
get: operations["getAllResourceResourceTypes"];
|
|
768
780
|
put?: never;
|
|
769
|
-
/**
|
|
781
|
+
/**
|
|
782
|
+
* Adds a resource type to a resource
|
|
783
|
+
* @deprecated
|
|
784
|
+
*/
|
|
770
785
|
post: operations["createResourceResourceType"];
|
|
771
786
|
delete?: never;
|
|
772
787
|
options?: never;
|
|
@@ -781,10 +796,16 @@ export type paths = {
|
|
|
781
796
|
path?: never;
|
|
782
797
|
cookie?: never;
|
|
783
798
|
};
|
|
784
|
-
/**
|
|
799
|
+
/**
|
|
800
|
+
* Gets all connections between resources and resource types
|
|
801
|
+
* @deprecated
|
|
802
|
+
*/
|
|
785
803
|
get: operations["getAllResourceResourceTypes_1"];
|
|
786
804
|
put?: never;
|
|
787
|
-
/**
|
|
805
|
+
/**
|
|
806
|
+
* Adds a resource type to a resource
|
|
807
|
+
* @deprecated
|
|
808
|
+
*/
|
|
788
809
|
post: operations["createResourceResourceType_1"];
|
|
789
810
|
delete?: never;
|
|
790
811
|
options?: never;
|
|
@@ -799,11 +820,17 @@ export type paths = {
|
|
|
799
820
|
path?: never;
|
|
800
821
|
cookie?: never;
|
|
801
822
|
};
|
|
802
|
-
/**
|
|
823
|
+
/**
|
|
824
|
+
* Gets a single connection between resource and resource type
|
|
825
|
+
* @deprecated
|
|
826
|
+
*/
|
|
803
827
|
get: operations["getResourceResourceType"];
|
|
804
828
|
put?: never;
|
|
805
829
|
post?: never;
|
|
806
|
-
/**
|
|
830
|
+
/**
|
|
831
|
+
* Removes a resource type from a resource
|
|
832
|
+
* @deprecated
|
|
833
|
+
*/
|
|
807
834
|
delete: operations["deleteResourceResourceType"];
|
|
808
835
|
options?: never;
|
|
809
836
|
head?: never;
|
|
@@ -820,8 +847,7 @@ export type paths = {
|
|
|
820
847
|
/** Gets a list of all resource types */
|
|
821
848
|
get: operations["getAllResourceTypes"];
|
|
822
849
|
put?: never;
|
|
823
|
-
|
|
824
|
-
post: operations["createResourceType"];
|
|
850
|
+
post?: never;
|
|
825
851
|
delete?: never;
|
|
826
852
|
options?: never;
|
|
827
853
|
head?: never;
|
|
@@ -838,8 +864,7 @@ export type paths = {
|
|
|
838
864
|
/** Gets a list of all resource types */
|
|
839
865
|
get: operations["getAllResourceTypes_1"];
|
|
840
866
|
put?: never;
|
|
841
|
-
|
|
842
|
-
post: operations["createResourceType_1"];
|
|
867
|
+
post?: never;
|
|
843
868
|
delete?: never;
|
|
844
869
|
options?: never;
|
|
845
870
|
head?: never;
|
|
@@ -855,11 +880,9 @@ export type paths = {
|
|
|
855
880
|
};
|
|
856
881
|
/** Gets a single resource type */
|
|
857
882
|
get: operations["getResourceType"];
|
|
858
|
-
|
|
859
|
-
put: operations["updateResourceType"];
|
|
883
|
+
put?: never;
|
|
860
884
|
post?: never;
|
|
861
|
-
|
|
862
|
-
delete: operations["deleteEntity_1"];
|
|
885
|
+
delete?: never;
|
|
863
886
|
options?: never;
|
|
864
887
|
head?: never;
|
|
865
888
|
patch?: never;
|
|
@@ -889,7 +912,10 @@ export type paths = {
|
|
|
889
912
|
path?: never;
|
|
890
913
|
cookie?: never;
|
|
891
914
|
};
|
|
892
|
-
/**
|
|
915
|
+
/**
|
|
916
|
+
* Gets all relevanceTranslations for a single resource type
|
|
917
|
+
* @deprecated
|
|
918
|
+
*/
|
|
893
919
|
get: operations["getAllResourceTypeTranslations"];
|
|
894
920
|
put?: never;
|
|
895
921
|
post?: never;
|
|
@@ -906,7 +932,10 @@ export type paths = {
|
|
|
906
932
|
path?: never;
|
|
907
933
|
cookie?: never;
|
|
908
934
|
};
|
|
909
|
-
/**
|
|
935
|
+
/**
|
|
936
|
+
* Gets all relevanceTranslations for a single resource type
|
|
937
|
+
* @deprecated
|
|
938
|
+
*/
|
|
910
939
|
get: operations["getAllResourceTypeTranslations_1"];
|
|
911
940
|
put?: never;
|
|
912
941
|
post?: never;
|
|
@@ -923,13 +952,14 @@ export type paths = {
|
|
|
923
952
|
path?: never;
|
|
924
953
|
cookie?: never;
|
|
925
954
|
};
|
|
926
|
-
/**
|
|
955
|
+
/**
|
|
956
|
+
* Gets a single translation for a single resource type
|
|
957
|
+
* @deprecated
|
|
958
|
+
*/
|
|
927
959
|
get: operations["getResourceTypeTranslation"];
|
|
928
|
-
|
|
929
|
-
put: operations["createUpdateResourceTypeTranslation"];
|
|
960
|
+
put?: never;
|
|
930
961
|
post?: never;
|
|
931
|
-
|
|
932
|
-
delete: operations["deleteResourceTypeTranslation"];
|
|
962
|
+
delete?: never;
|
|
933
963
|
options?: never;
|
|
934
964
|
head?: never;
|
|
935
965
|
patch?: never;
|
|
@@ -2068,7 +2098,7 @@ export type components = {
|
|
|
2068
2098
|
nodeType?: components["schemas"]["NodeType"];
|
|
2069
2099
|
/** @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
2100
|
qualityEvaluation?: components["schemas"]["QualityEvaluationDTO"];
|
|
2071
|
-
/** @description ResourceType public ids to assign to the node. Only works
|
|
2101
|
+
/** @description ResourceType public ids to assign to the node. Only works for nodes of type RESOURCE */
|
|
2072
2102
|
resourceTypes?: string[];
|
|
2073
2103
|
/**
|
|
2074
2104
|
* @deprecated
|
|
@@ -2299,7 +2329,7 @@ export type components = {
|
|
|
2299
2329
|
/**
|
|
2300
2330
|
* Format: uri
|
|
2301
2331
|
* @description Resource to resource type connection id
|
|
2302
|
-
* @example urn:resource-
|
|
2332
|
+
* @example urn:resource-resourcetype:urn:resource:123_urn:resourcetype:subjectMaterial
|
|
2303
2333
|
*/
|
|
2304
2334
|
id: string;
|
|
2305
2335
|
/**
|
|
@@ -2346,38 +2376,14 @@ export type components = {
|
|
|
2346
2376
|
* @description Sort order of the resource type
|
|
2347
2377
|
* @example 1
|
|
2348
2378
|
*/
|
|
2349
|
-
order
|
|
2379
|
+
order: number;
|
|
2350
2380
|
/** @description Sub resource types */
|
|
2351
|
-
subtypes?: components["schemas"]["ResourceType"][];
|
|
2381
|
+
subtypes?: components["schemas"]["ResourceType"][] | null;
|
|
2352
2382
|
/** @description List of language codes supported by translations */
|
|
2353
2383
|
supportedLanguages: string[];
|
|
2354
2384
|
/** @description All translations of this resource type */
|
|
2355
2385
|
translations: components["schemas"]["Translation"][];
|
|
2356
2386
|
};
|
|
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
2387
|
ResourceTypeWithConnection: {
|
|
2382
2388
|
/**
|
|
2383
2389
|
* Format: uri
|
|
@@ -2399,12 +2405,12 @@ export type components = {
|
|
|
2399
2405
|
* Format: int32
|
|
2400
2406
|
* @description Internal order of the resource types
|
|
2401
2407
|
*/
|
|
2402
|
-
order
|
|
2408
|
+
order: number;
|
|
2403
2409
|
/**
|
|
2404
2410
|
* Format: uri
|
|
2405
2411
|
* @example urn:resourcetype:1
|
|
2406
2412
|
*/
|
|
2407
|
-
parentId?: string;
|
|
2413
|
+
parentId?: string | null;
|
|
2408
2414
|
/** @description List of language codes supported by translations */
|
|
2409
2415
|
supportedLanguages: string[];
|
|
2410
2416
|
/** @description All translations of this resource type */
|
|
@@ -2435,8 +2441,8 @@ export type components = {
|
|
|
2435
2441
|
[key: string]: string;
|
|
2436
2442
|
};
|
|
2437
2443
|
/** Format: int32 */
|
|
2438
|
-
order
|
|
2439
|
-
parentId?: string;
|
|
2444
|
+
order: number;
|
|
2445
|
+
parentId?: string | null;
|
|
2440
2446
|
};
|
|
2441
2447
|
TaxonomyContext: {
|
|
2442
2448
|
/** @description A breadcrumb of the names of the context's parents */
|
|
@@ -2663,7 +2669,6 @@ export type ResolvedUrl = components['schemas']['ResolvedUrl'];
|
|
|
2663
2669
|
export type ResourceResourceType = components['schemas']['ResourceResourceType'];
|
|
2664
2670
|
export type ResourceResourceTypePOST = components['schemas']['ResourceResourceTypePOST'];
|
|
2665
2671
|
export type ResourceType = components['schemas']['ResourceType'];
|
|
2666
|
-
export type ResourceTypePUT = components['schemas']['ResourceTypePUT'];
|
|
2667
2672
|
export type ResourceTypeWithConnection = components['schemas']['ResourceTypeWithConnection'];
|
|
2668
2673
|
export type SearchResult = components['schemas']['SearchResult'];
|
|
2669
2674
|
export type SearchableTaxonomyResourceType = components['schemas']['SearchableTaxonomyResourceType'];
|
|
@@ -3042,7 +3047,7 @@ export interface operations {
|
|
|
3042
3047
|
};
|
|
3043
3048
|
};
|
|
3044
3049
|
};
|
|
3045
|
-
|
|
3050
|
+
deleteEntity_2: {
|
|
3046
3051
|
parameters: {
|
|
3047
3052
|
query?: never;
|
|
3048
3053
|
header?: {
|
|
@@ -3884,7 +3889,7 @@ export interface operations {
|
|
|
3884
3889
|
};
|
|
3885
3890
|
};
|
|
3886
3891
|
};
|
|
3887
|
-
|
|
3892
|
+
deleteEntity_1: {
|
|
3888
3893
|
parameters: {
|
|
3889
3894
|
query?: never;
|
|
3890
3895
|
header?: {
|
|
@@ -4595,10 +4600,6 @@ export interface operations {
|
|
|
4595
4600
|
};
|
|
4596
4601
|
path: {
|
|
4597
4602
|
id: string;
|
|
4598
|
-
/**
|
|
4599
|
-
* @description ISO-639-1 language code
|
|
4600
|
-
* @example nb
|
|
4601
|
-
*/
|
|
4602
4603
|
language: string;
|
|
4603
4604
|
};
|
|
4604
4605
|
cookie?: never;
|
|
@@ -4784,31 +4785,6 @@ export interface operations {
|
|
|
4784
4785
|
};
|
|
4785
4786
|
};
|
|
4786
4787
|
};
|
|
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
4788
|
getAllResourceTypes_1: {
|
|
4813
4789
|
parameters: {
|
|
4814
4790
|
query?: {
|
|
@@ -4837,31 +4813,6 @@ export interface operations {
|
|
|
4837
4813
|
};
|
|
4838
4814
|
};
|
|
4839
4815
|
};
|
|
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
4816
|
getResourceType: {
|
|
4866
4817
|
parameters: {
|
|
4867
4818
|
query?: {
|
|
@@ -4892,54 +4843,6 @@ export interface operations {
|
|
|
4892
4843
|
};
|
|
4893
4844
|
};
|
|
4894
4845
|
};
|
|
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
4846
|
getResourceTypeSubtypes: {
|
|
4944
4847
|
parameters: {
|
|
4945
4848
|
query?: {
|
|
@@ -5049,64 +4952,6 @@ export interface operations {
|
|
|
5049
4952
|
};
|
|
5050
4953
|
};
|
|
5051
4954
|
};
|
|
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
4955
|
redirect_168: {
|
|
5111
4956
|
parameters: {
|
|
5112
4957
|
query?: never;
|