@ndla/types-backend 1.0.50 → 1.0.52
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/concept-api-openapi.d.ts +12 -12
- package/build/concept-api.d.ts +2 -2
- package/build/draft-api-openapi.d.ts +11 -11
- package/build/draft-api.d.ts +2 -2
- package/build/learningpath-api-openapi.d.ts +15 -0
- package/build/learningpath-api.d.ts +2 -0
- package/build/search-api-openapi.d.ts +11 -11
- package/build/search-api.d.ts +2 -2
- package/package.json +1 -1
|
@@ -289,23 +289,13 @@ export type components = {
|
|
|
289
289
|
/** @description Status information of the concept */
|
|
290
290
|
status: components["schemas"]["StatusDTO"];
|
|
291
291
|
visualElement?: components["schemas"]["VisualElementDTO"];
|
|
292
|
-
responsible?: components["schemas"]["
|
|
292
|
+
responsible?: components["schemas"]["ResponsibleDTO"];
|
|
293
293
|
/** @description Type of concept. 'concept', or 'gloss' */
|
|
294
294
|
conceptType: string;
|
|
295
295
|
glossData?: components["schemas"]["GlossDataDTO"];
|
|
296
296
|
/** @description Describes the changes made to the concept, only visible to editors */
|
|
297
297
|
editorNotes?: components["schemas"]["EditorNoteDTO"][];
|
|
298
298
|
};
|
|
299
|
-
/**
|
|
300
|
-
* ConceptResponsibleDTO
|
|
301
|
-
* @description Object with data representing the editor responsible for this concept
|
|
302
|
-
*/
|
|
303
|
-
ConceptResponsibleDTO: {
|
|
304
|
-
/** @description NDLA ID of responsible editor */
|
|
305
|
-
responsibleId: string;
|
|
306
|
-
/** @description Date of when the responsible editor was last updated */
|
|
307
|
-
lastUpdated: string;
|
|
308
|
-
};
|
|
309
299
|
/**
|
|
310
300
|
* ConceptSearchParamsDTO
|
|
311
301
|
* @description The search parameters
|
|
@@ -403,7 +393,7 @@ export type components = {
|
|
|
403
393
|
visualElement?: components["schemas"]["VisualElementDTO"];
|
|
404
394
|
/** @description URL for the source of the concept */
|
|
405
395
|
source?: string;
|
|
406
|
-
responsible?: components["schemas"]["
|
|
396
|
+
responsible?: components["schemas"]["ResponsibleDTO"];
|
|
407
397
|
/** @description Type of concept. 'concept', or 'gloss' */
|
|
408
398
|
conceptType: string;
|
|
409
399
|
glossData?: components["schemas"]["GlossDataDTO"];
|
|
@@ -640,6 +630,16 @@ export type components = {
|
|
|
640
630
|
*/
|
|
641
631
|
statusCode: number;
|
|
642
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
643
|
/**
|
|
644
644
|
* Sort
|
|
645
645
|
* @description The sorting used on results. Default is by -relevance.
|
package/build/concept-api.d.ts
CHANGED
|
@@ -9,8 +9,6 @@ export type ConceptContent = schemas["ConceptContent"];
|
|
|
9
9
|
export type IConceptContent = schemas["ConceptContent"];
|
|
10
10
|
export type ConceptDTO = schemas["ConceptDTO"];
|
|
11
11
|
export type IConceptDTO = schemas["ConceptDTO"];
|
|
12
|
-
export type ConceptResponsibleDTO = schemas["ConceptResponsibleDTO"];
|
|
13
|
-
export type IConceptResponsibleDTO = schemas["ConceptResponsibleDTO"];
|
|
14
12
|
export type ConceptSearchParamsDTO = schemas["ConceptSearchParamsDTO"];
|
|
15
13
|
export type IConceptSearchParamsDTO = schemas["ConceptSearchParamsDTO"];
|
|
16
14
|
export type ConceptSearchResultDTO = schemas["ConceptSearchResultDTO"];
|
|
@@ -47,6 +45,8 @@ export type NewConceptDTO = schemas["NewConceptDTO"];
|
|
|
47
45
|
export type INewConceptDTO = schemas["NewConceptDTO"];
|
|
48
46
|
export type NotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
|
|
49
47
|
export type INotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
|
|
48
|
+
export type ResponsibleDTO = schemas["ResponsibleDTO"];
|
|
49
|
+
export type IResponsibleDTO = schemas["ResponsibleDTO"];
|
|
50
50
|
export type Sort = schemas["Sort"];
|
|
51
51
|
export type ISort = schemas["Sort"];
|
|
52
52
|
export type StatusDTO = schemas["StatusDTO"];
|
|
@@ -589,7 +589,7 @@ export type components = {
|
|
|
589
589
|
relatedContent: (components["schemas"]["RelatedContentLinkDTO"] | number)[];
|
|
590
590
|
/** @description A list of revisions planned for the article */
|
|
591
591
|
revisions: components["schemas"]["RevisionMetaDTO"][];
|
|
592
|
-
responsible?: components["schemas"]["
|
|
592
|
+
responsible?: components["schemas"]["ResponsibleDTO"];
|
|
593
593
|
/** @description The path to the frontpage article */
|
|
594
594
|
slug?: string;
|
|
595
595
|
/** @description Information about comments attached to the article */
|
|
@@ -832,16 +832,6 @@ export type components = {
|
|
|
832
832
|
/** @description Whether or not the content has been processed */
|
|
833
833
|
processed: boolean;
|
|
834
834
|
};
|
|
835
|
-
/**
|
|
836
|
-
* DraftResponsibleDTO
|
|
837
|
-
* @description Object with data representing the editor responsible for this article
|
|
838
|
-
*/
|
|
839
|
-
DraftResponsibleDTO: {
|
|
840
|
-
/** @description NDLA ID of responsible editor */
|
|
841
|
-
responsibleId: string;
|
|
842
|
-
/** @description Date of when the responsible editor was last updated */
|
|
843
|
-
lastUpdated: string;
|
|
844
|
-
};
|
|
845
835
|
/**
|
|
846
836
|
* EditorNoteDTO
|
|
847
837
|
* @description Information about the editorial notes
|
|
@@ -1079,6 +1069,16 @@ export type components = {
|
|
|
1079
1069
|
/** @description The full url to where the library can be downloaded */
|
|
1080
1070
|
url: string;
|
|
1081
1071
|
};
|
|
1072
|
+
/**
|
|
1073
|
+
* ResponsibleDTO
|
|
1074
|
+
* @description Object with data representing the editor responsible for this article
|
|
1075
|
+
*/
|
|
1076
|
+
ResponsibleDTO: {
|
|
1077
|
+
/** @description NDLA ID of responsible editor */
|
|
1078
|
+
responsibleId: string;
|
|
1079
|
+
/** @description Date of when the responsible editor was last updated */
|
|
1080
|
+
lastUpdated: string;
|
|
1081
|
+
};
|
|
1082
1082
|
/**
|
|
1083
1083
|
* RevisionMetaDTO
|
|
1084
1084
|
* @description Information about the editorial notes
|
package/build/draft-api.d.ts
CHANGED
|
@@ -41,8 +41,6 @@ export type DisclaimerDTO = schemas["DisclaimerDTO"];
|
|
|
41
41
|
export type IDisclaimerDTO = schemas["DisclaimerDTO"];
|
|
42
42
|
export type DraftCopyrightDTO = schemas["DraftCopyrightDTO"];
|
|
43
43
|
export type IDraftCopyrightDTO = schemas["DraftCopyrightDTO"];
|
|
44
|
-
export type DraftResponsibleDTO = schemas["DraftResponsibleDTO"];
|
|
45
|
-
export type IDraftResponsibleDTO = schemas["DraftResponsibleDTO"];
|
|
46
44
|
export type EditorNoteDTO = schemas["EditorNoteDTO"];
|
|
47
45
|
export type IEditorNoteDTO = schemas["EditorNoteDTO"];
|
|
48
46
|
export type ErrorBody = schemas["ErrorBody"];
|
|
@@ -79,6 +77,8 @@ export type RelatedContentLinkDTO = schemas["RelatedContentLinkDTO"];
|
|
|
79
77
|
export type IRelatedContentLinkDTO = schemas["RelatedContentLinkDTO"];
|
|
80
78
|
export type RequiredLibraryDTO = schemas["RequiredLibraryDTO"];
|
|
81
79
|
export type IRequiredLibraryDTO = schemas["RequiredLibraryDTO"];
|
|
80
|
+
export type ResponsibleDTO = schemas["ResponsibleDTO"];
|
|
81
|
+
export type IResponsibleDTO = schemas["ResponsibleDTO"];
|
|
82
82
|
export type RevisionMetaDTO = schemas["RevisionMetaDTO"];
|
|
83
83
|
export type IRevisionMetaDTO = schemas["RevisionMetaDTO"];
|
|
84
84
|
export type SavedSearchDTO = schemas["SavedSearchDTO"];
|
|
@@ -623,6 +623,7 @@ export type components = {
|
|
|
623
623
|
madeAvailable?: string;
|
|
624
624
|
/** @description Whether the owner of the learningpath is a MyNDLA user or not */
|
|
625
625
|
isMyNDLAOwner: boolean;
|
|
626
|
+
responsible?: components["schemas"]["ResponsibleDTO"];
|
|
626
627
|
};
|
|
627
628
|
/**
|
|
628
629
|
* LearningStepContainerSummaryDTO
|
|
@@ -783,6 +784,8 @@ export type components = {
|
|
|
783
784
|
language: string;
|
|
784
785
|
/** @description Describes the copyright information for the learningpath */
|
|
785
786
|
copyright?: components["schemas"]["CopyrightDTO"];
|
|
787
|
+
/** @description NDLA ID representing the editor responsible for this learningpath */
|
|
788
|
+
responsibleId?: string;
|
|
786
789
|
};
|
|
787
790
|
/**
|
|
788
791
|
* NewLearningStepV2DTO
|
|
@@ -827,6 +830,16 @@ export type components = {
|
|
|
827
830
|
*/
|
|
828
831
|
statusCode: number;
|
|
829
832
|
};
|
|
833
|
+
/**
|
|
834
|
+
* ResponsibleDTO
|
|
835
|
+
* @description Object with data representing the editor responsible for this learningpath
|
|
836
|
+
*/
|
|
837
|
+
ResponsibleDTO: {
|
|
838
|
+
/** @description NDLA ID of responsible editor */
|
|
839
|
+
responsibleId: string;
|
|
840
|
+
/** @description Date of when the responsible editor was last updated */
|
|
841
|
+
lastUpdated: string;
|
|
842
|
+
};
|
|
830
843
|
/**
|
|
831
844
|
* SearchParamsDTO
|
|
832
845
|
* @description The search parameters
|
|
@@ -935,6 +948,8 @@ export type components = {
|
|
|
935
948
|
copyright?: components["schemas"]["CopyrightDTO"];
|
|
936
949
|
/** @description Whether to delete a message connected to a learningpath by an administrator. */
|
|
937
950
|
deleteMessage?: boolean;
|
|
951
|
+
/** @description NDLA ID representing the editor responsible for this learningpath */
|
|
952
|
+
responsibleId?: string | null;
|
|
938
953
|
};
|
|
939
954
|
/**
|
|
940
955
|
* UpdatedLearningStepV2DTO
|
|
@@ -51,6 +51,8 @@ export type NewLearningStepV2DTO = schemas["NewLearningStepV2DTO"];
|
|
|
51
51
|
export type INewLearningStepV2DTO = schemas["NewLearningStepV2DTO"];
|
|
52
52
|
export type NotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
|
|
53
53
|
export type INotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
|
|
54
|
+
export type ResponsibleDTO = schemas["ResponsibleDTO"];
|
|
55
|
+
export type IResponsibleDTO = schemas["ResponsibleDTO"];
|
|
54
56
|
export type SearchParamsDTO = schemas["SearchParamsDTO"];
|
|
55
57
|
export type ISearchParamsDTO = schemas["SearchParamsDTO"];
|
|
56
58
|
export type SearchResultV2DTO = schemas["SearchResultV2DTO"];
|
|
@@ -191,16 +191,6 @@ export type components = {
|
|
|
191
191
|
/** @description ISO 639-1 code that represents the language used in title */
|
|
192
192
|
language: string;
|
|
193
193
|
};
|
|
194
|
-
/**
|
|
195
|
-
* DraftResponsibleDTO
|
|
196
|
-
* @description Responsible field
|
|
197
|
-
*/
|
|
198
|
-
DraftResponsibleDTO: {
|
|
199
|
-
/** @description NDLA ID of responsible editor */
|
|
200
|
-
responsibleId: string;
|
|
201
|
-
/** @description Date of when the responsible editor was last updated */
|
|
202
|
-
lastUpdated: string;
|
|
203
|
-
};
|
|
204
194
|
/** DraftSearchParamsDTO */
|
|
205
195
|
DraftSearchParamsDTO: {
|
|
206
196
|
/**
|
|
@@ -634,7 +624,7 @@ export type components = {
|
|
|
634
624
|
license?: string;
|
|
635
625
|
/** @description A list of revisions planned for the article */
|
|
636
626
|
revisions: components["schemas"]["RevisionMetaDTO"][];
|
|
637
|
-
responsible?: components["schemas"]["
|
|
627
|
+
responsible?: components["schemas"]["ResponsibleDTO"];
|
|
638
628
|
/** @description Information about comments attached to the article */
|
|
639
629
|
comments?: components["schemas"]["CommentDTO"][];
|
|
640
630
|
/** @description If the article should be prioritized */
|
|
@@ -729,6 +719,16 @@ export type components = {
|
|
|
729
719
|
*/
|
|
730
720
|
statusCode: number;
|
|
731
721
|
};
|
|
722
|
+
/**
|
|
723
|
+
* ResponsibleDTO
|
|
724
|
+
* @description Responsible field
|
|
725
|
+
*/
|
|
726
|
+
ResponsibleDTO: {
|
|
727
|
+
/** @description NDLA ID of responsible editor */
|
|
728
|
+
responsibleId: string;
|
|
729
|
+
/** @description Date of when the responsible editor was last updated */
|
|
730
|
+
lastUpdated: string;
|
|
731
|
+
};
|
|
732
732
|
/**
|
|
733
733
|
* RevisionMetaDTO
|
|
734
734
|
* @description Information about the editorial notes
|
package/build/search-api.d.ts
CHANGED
|
@@ -9,8 +9,6 @@ export type CommentDTO = schemas["CommentDTO"];
|
|
|
9
9
|
export type ICommentDTO = schemas["CommentDTO"];
|
|
10
10
|
export type DescriptionDTO = schemas["DescriptionDTO"];
|
|
11
11
|
export type IDescriptionDTO = schemas["DescriptionDTO"];
|
|
12
|
-
export type DraftResponsibleDTO = schemas["DraftResponsibleDTO"];
|
|
13
|
-
export type IDraftResponsibleDTO = schemas["DraftResponsibleDTO"];
|
|
14
12
|
export type DraftSearchParamsDTO = schemas["DraftSearchParamsDTO"];
|
|
15
13
|
export type IDraftSearchParamsDTO = schemas["DraftSearchParamsDTO"];
|
|
16
14
|
export type ErrorBody = schemas["ErrorBody"];
|
|
@@ -85,6 +83,8 @@ export type NodeType = schemas["NodeType"];
|
|
|
85
83
|
export type INodeType = schemas["NodeType"];
|
|
86
84
|
export type NotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
|
|
87
85
|
export type INotFoundWithSupportedLanguages = schemas["NotFoundWithSupportedLanguages"];
|
|
86
|
+
export type ResponsibleDTO = schemas["ResponsibleDTO"];
|
|
87
|
+
export type IResponsibleDTO = schemas["ResponsibleDTO"];
|
|
88
88
|
export type RevisionMetaDTO = schemas["RevisionMetaDTO"];
|
|
89
89
|
export type IRevisionMetaDTO = schemas["RevisionMetaDTO"];
|
|
90
90
|
export type SearchParamsDTO = schemas["SearchParamsDTO"];
|
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.52",
|
|
36
36
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
37
37
|
}
|