@ndla/types-backend 1.0.62 → 1.0.64
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.
|
@@ -1007,8 +1007,11 @@ export type components = {
|
|
|
1007
1007
|
*/
|
|
1008
1008
|
statusCode: number;
|
|
1009
1009
|
};
|
|
1010
|
-
/**
|
|
1011
|
-
|
|
1010
|
+
/**
|
|
1011
|
+
* PartialArticleFieldsDTO
|
|
1012
|
+
* @enum {string}
|
|
1013
|
+
*/
|
|
1014
|
+
PartialArticleFieldsDTO: "availability" | "grepCodes" | "license" | "metaDescription" | "relatedContent" | "tags" | "revisionDate" | "published";
|
|
1012
1015
|
/**
|
|
1013
1016
|
* PartialBulkArticlesDTO
|
|
1014
1017
|
* @description Partial data about articles to publish in bulk
|
|
@@ -1300,22 +1303,6 @@ export type components = {
|
|
|
1300
1303
|
/** @description The ISO 639-1 language code describing which article translation this visual element belongs to */
|
|
1301
1304
|
language: string;
|
|
1302
1305
|
};
|
|
1303
|
-
/** availability */
|
|
1304
|
-
availability: Record<string, never>;
|
|
1305
|
-
/** grepCodes */
|
|
1306
|
-
grepCodes: Record<string, never>;
|
|
1307
|
-
/** license */
|
|
1308
|
-
license: Record<string, never>;
|
|
1309
|
-
/** metaDescription */
|
|
1310
|
-
metaDescription: Record<string, never>;
|
|
1311
|
-
/** published */
|
|
1312
|
-
published: Record<string, never>;
|
|
1313
|
-
/** relatedContent */
|
|
1314
|
-
relatedContent: Record<string, never>;
|
|
1315
|
-
/** revisionDate */
|
|
1316
|
-
revisionDate: Record<string, never>;
|
|
1317
|
-
/** tags */
|
|
1318
|
-
tags: Record<string, never>;
|
|
1319
1306
|
};
|
|
1320
1307
|
responses: never;
|
|
1321
1308
|
parameters: never;
|
package/build/draft-api.d.ts
CHANGED
|
@@ -107,19 +107,3 @@ export type ValidationMessage = schemas["ValidationMessage"];
|
|
|
107
107
|
export type IValidationMessage = schemas["ValidationMessage"];
|
|
108
108
|
export type VisualElementDTO = schemas["VisualElementDTO"];
|
|
109
109
|
export type IVisualElementDTO = schemas["VisualElementDTO"];
|
|
110
|
-
export type availability = schemas["availability"];
|
|
111
|
-
export type Iavailability = schemas["availability"];
|
|
112
|
-
export type grepCodes = schemas["grepCodes"];
|
|
113
|
-
export type IgrepCodes = schemas["grepCodes"];
|
|
114
|
-
export type license = schemas["license"];
|
|
115
|
-
export type Ilicense = schemas["license"];
|
|
116
|
-
export type metaDescription = schemas["metaDescription"];
|
|
117
|
-
export type ImetaDescription = schemas["metaDescription"];
|
|
118
|
-
export type published = schemas["published"];
|
|
119
|
-
export type Ipublished = schemas["published"];
|
|
120
|
-
export type relatedContent = schemas["relatedContent"];
|
|
121
|
-
export type IrelatedContent = schemas["relatedContent"];
|
|
122
|
-
export type revisionDate = schemas["revisionDate"];
|
|
123
|
-
export type IrevisionDate = schemas["revisionDate"];
|
|
124
|
-
export type tags = schemas["tags"];
|
|
125
|
-
export type Itags = schemas["tags"];
|
|
@@ -206,12 +206,10 @@ export type components = {
|
|
|
206
206
|
*/
|
|
207
207
|
articleId: number;
|
|
208
208
|
/** @description List of submenu objects */
|
|
209
|
-
menu: components["schemas"]["
|
|
209
|
+
menu: components["schemas"]["MenuDTO"][];
|
|
210
210
|
/** @description Hide this level in menu */
|
|
211
211
|
hideLevel?: boolean;
|
|
212
212
|
};
|
|
213
|
-
/** MenuDataDTO */
|
|
214
|
-
MenuDataDTO: components["schemas"]["MenuDTO"];
|
|
215
213
|
/** MovieThemeDTO */
|
|
216
214
|
MovieThemeDTO: {
|
|
217
215
|
name: components["schemas"]["MovieThemeNameDTO"][];
|
package/build/frontpage-api.d.ts
CHANGED
|
@@ -17,8 +17,6 @@ export type FrontPageDTO = schemas["FrontPageDTO"];
|
|
|
17
17
|
export type IFrontPageDTO = schemas["FrontPageDTO"];
|
|
18
18
|
export type MenuDTO = schemas["MenuDTO"];
|
|
19
19
|
export type IMenuDTO = schemas["MenuDTO"];
|
|
20
|
-
export type MenuDataDTO = schemas["MenuDataDTO"];
|
|
21
|
-
export type IMenuDataDTO = schemas["MenuDataDTO"];
|
|
22
20
|
export type MovieThemeDTO = schemas["MovieThemeDTO"];
|
|
23
21
|
export type IMovieThemeDTO = schemas["MovieThemeDTO"];
|
|
24
22
|
export type MovieThemeNameDTO = schemas["MovieThemeNameDTO"];
|
|
@@ -391,6 +391,26 @@ export type paths = {
|
|
|
391
391
|
patch?: never;
|
|
392
392
|
trace?: never;
|
|
393
393
|
};
|
|
394
|
+
"/learningpath-api/v2/learningpaths/{learningpath_id}/language/{p1}": {
|
|
395
|
+
parameters: {
|
|
396
|
+
query?: never;
|
|
397
|
+
header?: never;
|
|
398
|
+
path?: never;
|
|
399
|
+
cookie?: never;
|
|
400
|
+
};
|
|
401
|
+
get?: never;
|
|
402
|
+
put?: never;
|
|
403
|
+
post?: never;
|
|
404
|
+
/**
|
|
405
|
+
* Delete the given language of a learning path
|
|
406
|
+
* @description Delete the given language of a learning path
|
|
407
|
+
*/
|
|
408
|
+
delete: operations["deleteLearningpath-apiV2LearningpathsLearningpath_idLanguageP1"];
|
|
409
|
+
options?: never;
|
|
410
|
+
head?: never;
|
|
411
|
+
patch?: never;
|
|
412
|
+
trace?: never;
|
|
413
|
+
};
|
|
394
414
|
"/learningpath-api/v2/learningpaths/{learningpath_id}/update-taxonomy": {
|
|
395
415
|
parameters: {
|
|
396
416
|
query?: never;
|
|
@@ -844,6 +864,8 @@ export type components = {
|
|
|
844
864
|
responsibleId?: string;
|
|
845
865
|
/** @description Information about comments attached to the learningpath */
|
|
846
866
|
comments?: components["schemas"]["NewCommentDTO"][];
|
|
867
|
+
/** @description A list of all revisions of the learningpath */
|
|
868
|
+
revisionMeta?: components["schemas"]["RevisionMetaDTO"][];
|
|
847
869
|
priority?: components["schemas"]["Priority"];
|
|
848
870
|
};
|
|
849
871
|
/**
|
|
@@ -910,6 +932,20 @@ export type components = {
|
|
|
910
932
|
/** @description Date of when the responsible editor was last updated */
|
|
911
933
|
lastUpdated: string;
|
|
912
934
|
};
|
|
935
|
+
/**
|
|
936
|
+
* RevisionMetaDTO
|
|
937
|
+
* @description Information about the editorial notes
|
|
938
|
+
*/
|
|
939
|
+
RevisionMetaDTO: {
|
|
940
|
+
/** @description An unique uuid of the revision. If none supplied, one is generated. */
|
|
941
|
+
id?: string;
|
|
942
|
+
/** @description A date on which the article would need to be revised */
|
|
943
|
+
revisionDate: string;
|
|
944
|
+
/** @description Notes to keep track of what needs to happen before revision */
|
|
945
|
+
note: string;
|
|
946
|
+
/** @description Status of a revision, either 'revised' or 'needs-revision' */
|
|
947
|
+
status: string;
|
|
948
|
+
};
|
|
913
949
|
/**
|
|
914
950
|
* SearchParamsDTO
|
|
915
951
|
* @description The search parameters
|
|
@@ -1037,6 +1073,8 @@ export type components = {
|
|
|
1037
1073
|
/** @description Information about comments attached to the learningpath */
|
|
1038
1074
|
comments?: components["schemas"]["UpdatedCommentDTO"][];
|
|
1039
1075
|
priority?: components["schemas"]["Priority"];
|
|
1076
|
+
/** @description A list of all revisions of the learningpath */
|
|
1077
|
+
revisionMeta?: components["schemas"]["RevisionMetaDTO"][];
|
|
1040
1078
|
};
|
|
1041
1079
|
/**
|
|
1042
1080
|
* UpdatedLearningStepV2DTO
|
|
@@ -2765,6 +2803,62 @@ export interface operations {
|
|
|
2765
2803
|
};
|
|
2766
2804
|
};
|
|
2767
2805
|
};
|
|
2806
|
+
"deleteLearningpath-apiV2LearningpathsLearningpath_idLanguageP1": {
|
|
2807
|
+
parameters: {
|
|
2808
|
+
query?: never;
|
|
2809
|
+
header?: never;
|
|
2810
|
+
path: {
|
|
2811
|
+
/** @description Id of the learningpath. */
|
|
2812
|
+
learningpath_id: number;
|
|
2813
|
+
/** @description The ISO 639-1 language describing language. */
|
|
2814
|
+
p1: string;
|
|
2815
|
+
};
|
|
2816
|
+
cookie?: never;
|
|
2817
|
+
};
|
|
2818
|
+
requestBody?: never;
|
|
2819
|
+
responses: {
|
|
2820
|
+
200: {
|
|
2821
|
+
headers: {
|
|
2822
|
+
[name: string]: unknown;
|
|
2823
|
+
};
|
|
2824
|
+
content: {
|
|
2825
|
+
"application/json": components["schemas"]["LearningPathV2DTO"];
|
|
2826
|
+
};
|
|
2827
|
+
};
|
|
2828
|
+
400: {
|
|
2829
|
+
headers: {
|
|
2830
|
+
[name: string]: unknown;
|
|
2831
|
+
};
|
|
2832
|
+
content: {
|
|
2833
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2834
|
+
};
|
|
2835
|
+
};
|
|
2836
|
+
404: {
|
|
2837
|
+
headers: {
|
|
2838
|
+
[name: string]: unknown;
|
|
2839
|
+
};
|
|
2840
|
+
content: {
|
|
2841
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2842
|
+
};
|
|
2843
|
+
};
|
|
2844
|
+
422: {
|
|
2845
|
+
headers: {
|
|
2846
|
+
[name: string]: unknown;
|
|
2847
|
+
};
|
|
2848
|
+
content: {
|
|
2849
|
+
"application/json": components["schemas"]["AllErrors"];
|
|
2850
|
+
};
|
|
2851
|
+
};
|
|
2852
|
+
500: {
|
|
2853
|
+
headers: {
|
|
2854
|
+
[name: string]: unknown;
|
|
2855
|
+
};
|
|
2856
|
+
content: {
|
|
2857
|
+
"application/json": components["schemas"]["AllErrors"] | components["schemas"]["ErrorBody"];
|
|
2858
|
+
};
|
|
2859
|
+
};
|
|
2860
|
+
};
|
|
2861
|
+
};
|
|
2768
2862
|
"postLearningpath-apiV2LearningpathsLearningpath_idUpdate-taxonomy": {
|
|
2769
2863
|
parameters: {
|
|
2770
2864
|
query?: {
|
|
@@ -59,6 +59,8 @@ export type Priority = schemas["Priority"];
|
|
|
59
59
|
export type IPriority = schemas["Priority"];
|
|
60
60
|
export type ResponsibleDTO = schemas["ResponsibleDTO"];
|
|
61
61
|
export type IResponsibleDTO = schemas["ResponsibleDTO"];
|
|
62
|
+
export type RevisionMetaDTO = schemas["RevisionMetaDTO"];
|
|
63
|
+
export type IRevisionMetaDTO = schemas["RevisionMetaDTO"];
|
|
62
64
|
export type SearchParamsDTO = schemas["SearchParamsDTO"];
|
|
63
65
|
export type ISearchParamsDTO = schemas["SearchParamsDTO"];
|
|
64
66
|
export type SearchResultV2DTO = schemas["SearchResultV2DTO"];
|
package/package.json
CHANGED
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
"tsx": "^4.19.3",
|
|
33
33
|
"typescript": "^5.3.3"
|
|
34
34
|
},
|
|
35
|
-
"version": "1.0.
|
|
35
|
+
"version": "1.0.64",
|
|
36
36
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
37
37
|
}
|