@ndla/types-backend 0.2.20 → 0.2.21
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/article-api.d.ts +2 -1
- package/build/audio-api.d.ts +1 -0
- package/build/concept-api.d.ts +14 -13
- package/build/draft-api.d.ts +5 -4
- package/build/image-api.d.ts +3 -3
- package/package.json +1 -1
package/build/article-api.d.ts
CHANGED
|
@@ -95,12 +95,13 @@ export interface IAuthor {
|
|
|
95
95
|
}
|
|
96
96
|
export interface ICopyright {
|
|
97
97
|
license: ILicense;
|
|
98
|
-
origin
|
|
98
|
+
origin?: string;
|
|
99
99
|
creators: IAuthor[];
|
|
100
100
|
processors: IAuthor[];
|
|
101
101
|
rightsholders: IAuthor[];
|
|
102
102
|
validFrom?: string;
|
|
103
103
|
validTo?: string;
|
|
104
|
+
processed: boolean;
|
|
104
105
|
}
|
|
105
106
|
export interface ILicense {
|
|
106
107
|
license: string;
|
package/build/audio-api.d.ts
CHANGED
package/build/concept-api.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface IConcept {
|
|
|
7
7
|
revision: number;
|
|
8
8
|
title: IConceptTitle;
|
|
9
9
|
content?: IConceptContent;
|
|
10
|
-
copyright?:
|
|
10
|
+
copyright?: IDraftCopyright;
|
|
11
11
|
source?: string;
|
|
12
12
|
metaImage?: IConceptMetaImage;
|
|
13
13
|
tags?: IConceptTags;
|
|
@@ -72,7 +72,7 @@ export interface IConceptSummary {
|
|
|
72
72
|
status: IStatus;
|
|
73
73
|
updatedBy: string[];
|
|
74
74
|
license?: string;
|
|
75
|
-
copyright?:
|
|
75
|
+
copyright?: IDraftCopyright;
|
|
76
76
|
visualElement?: IVisualElement;
|
|
77
77
|
articleIds: number[];
|
|
78
78
|
source?: string;
|
|
@@ -87,15 +87,6 @@ export interface IConceptTitle {
|
|
|
87
87
|
title: string;
|
|
88
88
|
language: string;
|
|
89
89
|
}
|
|
90
|
-
export interface ICopyright {
|
|
91
|
-
license?: ILicense;
|
|
92
|
-
origin?: string;
|
|
93
|
-
creators: IAuthor[];
|
|
94
|
-
processors: IAuthor[];
|
|
95
|
-
rightsholders: IAuthor[];
|
|
96
|
-
validFrom?: string;
|
|
97
|
-
validTo?: string;
|
|
98
|
-
}
|
|
99
90
|
export interface IDraftConceptSearchParams {
|
|
100
91
|
query?: string;
|
|
101
92
|
language?: string;
|
|
@@ -114,6 +105,16 @@ export interface IDraftConceptSearchParams {
|
|
|
114
105
|
responsibleIds: string[];
|
|
115
106
|
conceptType?: string;
|
|
116
107
|
}
|
|
108
|
+
export interface IDraftCopyright {
|
|
109
|
+
license?: ILicense;
|
|
110
|
+
origin?: string;
|
|
111
|
+
creators: IAuthor[];
|
|
112
|
+
processors: IAuthor[];
|
|
113
|
+
rightsholders: IAuthor[];
|
|
114
|
+
validFrom?: string;
|
|
115
|
+
validTo?: string;
|
|
116
|
+
processed: boolean;
|
|
117
|
+
}
|
|
117
118
|
export interface IGlossData {
|
|
118
119
|
gloss: string;
|
|
119
120
|
wordClass: string;
|
|
@@ -139,7 +140,7 @@ export interface INewConcept {
|
|
|
139
140
|
language: string;
|
|
140
141
|
title: string;
|
|
141
142
|
content?: string;
|
|
142
|
-
copyright?:
|
|
143
|
+
copyright?: IDraftCopyright;
|
|
143
144
|
source?: string;
|
|
144
145
|
metaImage?: INewConceptMetaImage;
|
|
145
146
|
tags?: string[];
|
|
@@ -175,7 +176,7 @@ export interface IUpdatedConcept {
|
|
|
175
176
|
title?: string;
|
|
176
177
|
content?: string;
|
|
177
178
|
metaImage?: (null | INewConceptMetaImage);
|
|
178
|
-
copyright?:
|
|
179
|
+
copyright?: IDraftCopyright;
|
|
179
180
|
source?: string;
|
|
180
181
|
tags?: string[];
|
|
181
182
|
subjectIds?: string[];
|
package/build/draft-api.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface IArticle {
|
|
|
6
6
|
status: IStatus;
|
|
7
7
|
title?: IArticleTitle;
|
|
8
8
|
content?: IArticleContent;
|
|
9
|
-
copyright?:
|
|
9
|
+
copyright?: IDraftCopyright;
|
|
10
10
|
tags?: IArticleTag;
|
|
11
11
|
requiredLibraries: IRequiredLibrary[];
|
|
12
12
|
visualElement?: IVisualElement;
|
|
@@ -84,7 +84,7 @@ export interface IComment {
|
|
|
84
84
|
updated: string;
|
|
85
85
|
isOpen: boolean;
|
|
86
86
|
}
|
|
87
|
-
export interface
|
|
87
|
+
export interface IDraftCopyright {
|
|
88
88
|
license?: ILicense;
|
|
89
89
|
origin?: string;
|
|
90
90
|
creators: IAuthor[];
|
|
@@ -92,6 +92,7 @@ export interface ICopyright {
|
|
|
92
92
|
rightsholders: IAuthor[];
|
|
93
93
|
validFrom?: string;
|
|
94
94
|
validTo?: string;
|
|
95
|
+
processed: boolean;
|
|
95
96
|
}
|
|
96
97
|
export interface IDraftResponsible {
|
|
97
98
|
responsibleId: string;
|
|
@@ -124,7 +125,7 @@ export interface INewArticle {
|
|
|
124
125
|
metaDescription?: string;
|
|
125
126
|
metaImage?: INewArticleMetaImage;
|
|
126
127
|
visualElement?: string;
|
|
127
|
-
copyright?:
|
|
128
|
+
copyright?: IDraftCopyright;
|
|
128
129
|
requiredLibraries: IRequiredLibrary[];
|
|
129
130
|
articleType: string;
|
|
130
131
|
notes: string[];
|
|
@@ -192,7 +193,7 @@ export interface IUpdatedArticle {
|
|
|
192
193
|
metaDescription?: string;
|
|
193
194
|
metaImage?: (null | INewArticleMetaImage);
|
|
194
195
|
visualElement?: string;
|
|
195
|
-
copyright?:
|
|
196
|
+
copyright?: IDraftCopyright;
|
|
196
197
|
requiredLibraries?: IRequiredLibrary[];
|
|
197
198
|
articleType?: string;
|
|
198
199
|
notes?: string[];
|
package/build/image-api.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ export interface IAuthor {
|
|
|
4
4
|
}
|
|
5
5
|
export interface ICopyright {
|
|
6
6
|
license: ILicense;
|
|
7
|
-
origin
|
|
7
|
+
origin?: string;
|
|
8
8
|
creators: IAuthor[];
|
|
9
9
|
processors: IAuthor[];
|
|
10
10
|
rightsholders: IAuthor[];
|
|
11
|
-
agreementId?: number;
|
|
12
11
|
validFrom?: string;
|
|
13
12
|
validTo?: string;
|
|
13
|
+
processed: boolean;
|
|
14
14
|
}
|
|
15
15
|
export interface IEditorNote {
|
|
16
16
|
timestamp: string;
|
|
@@ -102,7 +102,7 @@ export interface IImageTitle {
|
|
|
102
102
|
}
|
|
103
103
|
export interface ILicense {
|
|
104
104
|
license: string;
|
|
105
|
-
description
|
|
105
|
+
description?: string;
|
|
106
106
|
url?: string;
|
|
107
107
|
}
|
|
108
108
|
export interface INewImageMetaInformationV2 {
|
package/package.json
CHANGED