@ndla/types-backend 0.2.19 → 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 -2
- package/build/audio-api.d.ts +1 -1
- package/build/concept-api.d.ts +14 -14
- package/build/draft-api.d.ts +5 -46
- package/build/image-api.d.ts +3 -3
- package/package.json +1 -1
package/build/article-api.d.ts
CHANGED
|
@@ -95,13 +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
|
-
agreementId?: number;
|
|
103
102
|
validFrom?: string;
|
|
104
103
|
validTo?: string;
|
|
104
|
+
processed: boolean;
|
|
105
105
|
}
|
|
106
106
|
export interface ILicense {
|
|
107
107
|
license: string;
|
package/build/audio-api.d.ts
CHANGED
|
@@ -48,9 +48,9 @@ export interface ICopyright {
|
|
|
48
48
|
creators: IAuthor[];
|
|
49
49
|
processors: IAuthor[];
|
|
50
50
|
rightsholders: IAuthor[];
|
|
51
|
-
agreementId?: number;
|
|
52
51
|
validFrom?: string;
|
|
53
52
|
validTo?: string;
|
|
53
|
+
processed: boolean;
|
|
54
54
|
}
|
|
55
55
|
export interface ICoverPhoto {
|
|
56
56
|
id: string;
|
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,16 +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
|
-
agreementId?: number;
|
|
97
|
-
validFrom?: string;
|
|
98
|
-
validTo?: string;
|
|
99
|
-
}
|
|
100
90
|
export interface IDraftConceptSearchParams {
|
|
101
91
|
query?: string;
|
|
102
92
|
language?: string;
|
|
@@ -115,6 +105,16 @@ export interface IDraftConceptSearchParams {
|
|
|
115
105
|
responsibleIds: string[];
|
|
116
106
|
conceptType?: string;
|
|
117
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
|
+
}
|
|
118
118
|
export interface IGlossData {
|
|
119
119
|
gloss: string;
|
|
120
120
|
wordClass: string;
|
|
@@ -140,7 +140,7 @@ export interface INewConcept {
|
|
|
140
140
|
language: string;
|
|
141
141
|
title: string;
|
|
142
142
|
content?: string;
|
|
143
|
-
copyright?:
|
|
143
|
+
copyright?: IDraftCopyright;
|
|
144
144
|
source?: string;
|
|
145
145
|
metaImage?: INewConceptMetaImage;
|
|
146
146
|
tags?: string[];
|
|
@@ -176,7 +176,7 @@ export interface IUpdatedConcept {
|
|
|
176
176
|
title?: string;
|
|
177
177
|
content?: string;
|
|
178
178
|
metaImage?: (null | INewConceptMetaImage);
|
|
179
|
-
copyright?:
|
|
179
|
+
copyright?: IDraftCopyright;
|
|
180
180
|
source?: string;
|
|
181
181
|
tags?: string[];
|
|
182
182
|
subjectIds?: string[];
|
package/build/draft-api.d.ts
CHANGED
|
@@ -1,25 +1,4 @@
|
|
|
1
1
|
export type Availability = ("decoder" | "encoder" | "everyone" | "teacher");
|
|
2
|
-
export interface IAgreement {
|
|
3
|
-
id: number;
|
|
4
|
-
title: string;
|
|
5
|
-
content: string;
|
|
6
|
-
copyright: ICopyright;
|
|
7
|
-
created: string;
|
|
8
|
-
updated: string;
|
|
9
|
-
updatedBy: string;
|
|
10
|
-
}
|
|
11
|
-
export interface IAgreementSearchResult {
|
|
12
|
-
totalCount: number;
|
|
13
|
-
page?: number;
|
|
14
|
-
pageSize: number;
|
|
15
|
-
language: string;
|
|
16
|
-
results: IAgreementSummary[];
|
|
17
|
-
}
|
|
18
|
-
export interface IAgreementSummary {
|
|
19
|
-
id: number;
|
|
20
|
-
title: string;
|
|
21
|
-
license: string;
|
|
22
|
-
}
|
|
23
2
|
export interface IArticle {
|
|
24
3
|
id: number;
|
|
25
4
|
oldNdlaUrl?: string;
|
|
@@ -27,7 +6,7 @@ export interface IArticle {
|
|
|
27
6
|
status: IStatus;
|
|
28
7
|
title?: IArticleTitle;
|
|
29
8
|
content?: IArticleContent;
|
|
30
|
-
copyright?:
|
|
9
|
+
copyright?: IDraftCopyright;
|
|
31
10
|
tags?: IArticleTag;
|
|
32
11
|
requiredLibraries: IRequiredLibrary[];
|
|
33
12
|
visualElement?: IVisualElement;
|
|
@@ -105,15 +84,15 @@ export interface IComment {
|
|
|
105
84
|
updated: string;
|
|
106
85
|
isOpen: boolean;
|
|
107
86
|
}
|
|
108
|
-
export interface
|
|
87
|
+
export interface IDraftCopyright {
|
|
109
88
|
license?: ILicense;
|
|
110
89
|
origin?: string;
|
|
111
90
|
creators: IAuthor[];
|
|
112
91
|
processors: IAuthor[];
|
|
113
92
|
rightsholders: IAuthor[];
|
|
114
|
-
agreementId?: number;
|
|
115
93
|
validFrom?: string;
|
|
116
94
|
validTo?: string;
|
|
95
|
+
processed: boolean;
|
|
117
96
|
}
|
|
118
97
|
export interface IDraftResponsible {
|
|
119
98
|
responsibleId: string;
|
|
@@ -136,21 +115,6 @@ export interface ILicense {
|
|
|
136
115
|
description?: string;
|
|
137
116
|
url?: string;
|
|
138
117
|
}
|
|
139
|
-
export interface INewAgreement {
|
|
140
|
-
title: string;
|
|
141
|
-
content: string;
|
|
142
|
-
copyright: INewAgreementCopyright;
|
|
143
|
-
}
|
|
144
|
-
export interface INewAgreementCopyright {
|
|
145
|
-
license?: ILicense;
|
|
146
|
-
origin?: string;
|
|
147
|
-
creators: IAuthor[];
|
|
148
|
-
processors: IAuthor[];
|
|
149
|
-
rightsholders: IAuthor[];
|
|
150
|
-
agreementId?: number;
|
|
151
|
-
validFrom?: string;
|
|
152
|
-
validTo?: string;
|
|
153
|
-
}
|
|
154
118
|
export interface INewArticle {
|
|
155
119
|
language: string;
|
|
156
120
|
title: string;
|
|
@@ -161,7 +125,7 @@ export interface INewArticle {
|
|
|
161
125
|
metaDescription?: string;
|
|
162
126
|
metaImage?: INewArticleMetaImage;
|
|
163
127
|
visualElement?: string;
|
|
164
|
-
copyright?:
|
|
128
|
+
copyright?: IDraftCopyright;
|
|
165
129
|
requiredLibraries: IRequiredLibrary[];
|
|
166
130
|
articleType: string;
|
|
167
131
|
notes: string[];
|
|
@@ -217,11 +181,6 @@ export interface ITagsSearchResult {
|
|
|
217
181
|
language: string;
|
|
218
182
|
results: string[];
|
|
219
183
|
}
|
|
220
|
-
export interface IUpdatedAgreement {
|
|
221
|
-
title?: string;
|
|
222
|
-
content?: string;
|
|
223
|
-
copyright?: INewAgreementCopyright;
|
|
224
|
-
}
|
|
225
184
|
export interface IUpdatedArticle {
|
|
226
185
|
revision: number;
|
|
227
186
|
language?: string;
|
|
@@ -234,7 +193,7 @@ export interface IUpdatedArticle {
|
|
|
234
193
|
metaDescription?: string;
|
|
235
194
|
metaImage?: (null | INewArticleMetaImage);
|
|
236
195
|
visualElement?: string;
|
|
237
|
-
copyright?:
|
|
196
|
+
copyright?: IDraftCopyright;
|
|
238
197
|
requiredLibraries?: IRequiredLibrary[];
|
|
239
198
|
articleType?: string;
|
|
240
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