@ndla/types-backend 1.0.22 → 1.0.24
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 +2 -1
- package/build/concept-api.d.ts +2 -17
- package/build/draft-api.d.ts +2 -1
- package/build/draft-api.js.map +1 -1
- package/build/image-api.d.ts +2 -1
- package/build/image-api.js.map +1 -1
- package/build/learningpath-api.d.ts +2 -1
- package/build/search-api.d.ts +0 -1
- package/build/search-api.js.map +1 -1
- package/package.json +1 -1
package/build/article-api.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare enum ArticleSortEnum {
|
|
|
9
9
|
ByIdAsc = "id"
|
|
10
10
|
}
|
|
11
11
|
export type Availability = ("everyone" | "teacher");
|
|
12
|
+
export type ContributorType = ("artist" | "cowriter" | "compiler" | "composer" | "correction" | "director" | "distributor" | "editorial" | "facilitator" | "idea" | "illustrator" | "linguistic" | "originator" | "photographer" | "processor" | "publisher" | "reader" | "rightsholder" | "scriptwriter" | "supplier" | "translator" | "writer");
|
|
12
13
|
export interface IArticleContentV2DTO {
|
|
13
14
|
content: string;
|
|
14
15
|
language: string;
|
|
@@ -103,7 +104,7 @@ export interface IArticleV2DTO {
|
|
|
103
104
|
disclaimer?: IDisclaimerDTO;
|
|
104
105
|
}
|
|
105
106
|
export interface IAuthorDTO {
|
|
106
|
-
type:
|
|
107
|
+
type: ContributorType;
|
|
107
108
|
name: string;
|
|
108
109
|
}
|
|
109
110
|
export interface ICopyrightDTO {
|
package/build/audio-api.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare enum AudioSortEnum {
|
|
|
8
8
|
ByIdDesc = "-id",
|
|
9
9
|
ByIdAsc = "id"
|
|
10
10
|
}
|
|
11
|
+
export type ContributorType = ("artist" | "cowriter" | "compiler" | "composer" | "correction" | "director" | "distributor" | "editorial" | "facilitator" | "idea" | "illustrator" | "linguistic" | "originator" | "photographer" | "processor" | "publisher" | "reader" | "rightsholder" | "scriptwriter" | "supplier" | "translator" | "writer");
|
|
11
12
|
export interface IAudioDTO {
|
|
12
13
|
url: string;
|
|
13
14
|
mimeType: string;
|
|
@@ -49,7 +50,7 @@ export interface IAudioSummarySearchResultDTO {
|
|
|
49
50
|
results: IAudioSummaryDTO[];
|
|
50
51
|
}
|
|
51
52
|
export interface IAuthorDTO {
|
|
52
|
-
type:
|
|
53
|
+
type: ContributorType;
|
|
53
54
|
name: string;
|
|
54
55
|
}
|
|
55
56
|
export interface ICopyrightDTO {
|
package/build/concept-api.d.ts
CHANGED
|
@@ -16,8 +16,9 @@ export declare enum ConceptSortEnum {
|
|
|
16
16
|
ByConceptTypeAsc = "conceptType",
|
|
17
17
|
ByConceptTypeDesc = "-conceptType"
|
|
18
18
|
}
|
|
19
|
+
export type ContributorType = ("artist" | "cowriter" | "compiler" | "composer" | "correction" | "director" | "distributor" | "editorial" | "facilitator" | "idea" | "illustrator" | "linguistic" | "originator" | "photographer" | "processor" | "publisher" | "reader" | "rightsholder" | "scriptwriter" | "supplier" | "translator" | "writer");
|
|
19
20
|
export interface IAuthorDTO {
|
|
20
|
-
type:
|
|
21
|
+
type: ContributorType;
|
|
21
22
|
name: string;
|
|
22
23
|
}
|
|
23
24
|
export interface IConceptContent {
|
|
@@ -34,12 +35,10 @@ export interface IConceptDTO {
|
|
|
34
35
|
source?: string;
|
|
35
36
|
metaImage?: IConceptMetaImageDTO;
|
|
36
37
|
tags?: IConceptTagsDTO;
|
|
37
|
-
subjectIds?: string[];
|
|
38
38
|
created: string;
|
|
39
39
|
updated: string;
|
|
40
40
|
updatedBy?: string[];
|
|
41
41
|
supportedLanguages: string[];
|
|
42
|
-
articleIds: number[];
|
|
43
42
|
status: IStatusDTO;
|
|
44
43
|
visualElement?: IVisualElementDTO;
|
|
45
44
|
responsible?: IConceptResponsibleDTO;
|
|
@@ -65,7 +64,6 @@ export interface IConceptSearchParamsDTO {
|
|
|
65
64
|
sort?: Sort;
|
|
66
65
|
fallback?: boolean;
|
|
67
66
|
scrollId?: string;
|
|
68
|
-
subjects?: string[];
|
|
69
67
|
tags?: string[];
|
|
70
68
|
exactMatch?: boolean;
|
|
71
69
|
embedResource?: string[];
|
|
@@ -87,7 +85,6 @@ export interface IConceptSummaryDTO {
|
|
|
87
85
|
content: IConceptContent;
|
|
88
86
|
metaImage: IConceptMetaImageDTO;
|
|
89
87
|
tags?: IConceptTagsDTO;
|
|
90
|
-
subjectIds?: string[];
|
|
91
88
|
supportedLanguages: string[];
|
|
92
89
|
lastUpdated: string;
|
|
93
90
|
created: string;
|
|
@@ -96,12 +93,10 @@ export interface IConceptSummaryDTO {
|
|
|
96
93
|
license?: string;
|
|
97
94
|
copyright?: IDraftCopyrightDTO;
|
|
98
95
|
visualElement?: IVisualElementDTO;
|
|
99
|
-
articleIds: number[];
|
|
100
96
|
source?: string;
|
|
101
97
|
responsible?: IConceptResponsibleDTO;
|
|
102
98
|
conceptType: string;
|
|
103
99
|
glossData?: IGlossDataDTO;
|
|
104
|
-
subjectName?: string;
|
|
105
100
|
conceptTypeName: string;
|
|
106
101
|
}
|
|
107
102
|
export interface IConceptTagsDTO {
|
|
@@ -121,7 +116,6 @@ export interface IDraftConceptSearchParamsDTO {
|
|
|
121
116
|
sort?: Sort;
|
|
122
117
|
fallback?: boolean;
|
|
123
118
|
scrollId?: string;
|
|
124
|
-
subjects?: string[];
|
|
125
119
|
tags?: string[];
|
|
126
120
|
status?: string[];
|
|
127
121
|
users?: string[];
|
|
@@ -181,8 +175,6 @@ export interface INewConceptDTO {
|
|
|
181
175
|
copyright?: IDraftCopyrightDTO;
|
|
182
176
|
metaImage?: INewConceptMetaImageDTO;
|
|
183
177
|
tags?: string[];
|
|
184
|
-
subjectIds?: string[];
|
|
185
|
-
articleIds?: number[];
|
|
186
178
|
visualElement?: string;
|
|
187
179
|
responsibleId?: string;
|
|
188
180
|
conceptType: string;
|
|
@@ -196,11 +188,6 @@ export interface IStatusDTO {
|
|
|
196
188
|
current: string;
|
|
197
189
|
other: string[];
|
|
198
190
|
}
|
|
199
|
-
export interface ISubjectTagsDTO {
|
|
200
|
-
subjectId: string;
|
|
201
|
-
tags: string[];
|
|
202
|
-
language: string;
|
|
203
|
-
}
|
|
204
191
|
export interface ITagsSearchResultDTO {
|
|
205
192
|
totalCount: number;
|
|
206
193
|
page: number;
|
|
@@ -219,8 +206,6 @@ export interface IUpdatedConceptDTO {
|
|
|
219
206
|
metaImage: UpdateOrDeleteNewConceptMetaImageDTO;
|
|
220
207
|
copyright?: IDraftCopyrightDTO;
|
|
221
208
|
tags?: string[];
|
|
222
|
-
subjectIds?: string[];
|
|
223
|
-
articleIds?: number[];
|
|
224
209
|
status?: string;
|
|
225
210
|
visualElement?: string;
|
|
226
211
|
responsibleId: UpdateOrDeleteString;
|
package/build/draft-api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type Availability = ("everyone" | "teacher");
|
|
2
|
+
export type ContributorType = ("artist" | "cowriter" | "compiler" | "composer" | "correction" | "director" | "distributor" | "editorial" | "facilitator" | "idea" | "illustrator" | "linguistic" | "originator" | "photographer" | "processor" | "publisher" | "reader" | "rightsholder" | "scriptwriter" | "supplier" | "translator" | "writer");
|
|
2
3
|
export declare enum DraftSortEnum {
|
|
3
4
|
ByRelevanceDesc = "-relevance",
|
|
4
5
|
ByRelevanceAsc = "relevance",
|
|
@@ -103,7 +104,7 @@ export interface IArticleTitleDTO {
|
|
|
103
104
|
language: string;
|
|
104
105
|
}
|
|
105
106
|
export interface IAuthorDTO {
|
|
106
|
-
type:
|
|
107
|
+
type: ContributorType;
|
|
107
108
|
name: string;
|
|
108
109
|
}
|
|
109
110
|
export interface ICommentDTO {
|
package/build/draft-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft-api.js","sourceRoot":"","sources":["../draft-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;
|
|
1
|
+
{"version":3,"file":"draft-api.js","sourceRoot":"","sources":["../draft-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAM3C,IAAY,aASX;AATD,WAAY,aAAa;IACvB,+CAA8B,CAAA;IAC9B,6CAA4B,CAAA;IAC5B,uCAAsB,CAAA;IACtB,qCAAoB,CAAA;IACpB,mDAAkC,CAAA;IAClC,iDAAgC,CAAA;IAChC,iCAAgB,CAAA;IAChB,+BAAc,CAAA;AAChB,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB"}
|
package/build/image-api.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
export type ContributorType = ("artist" | "cowriter" | "compiler" | "composer" | "correction" | "director" | "distributor" | "editorial" | "facilitator" | "idea" | "illustrator" | "linguistic" | "originator" | "photographer" | "processor" | "publisher" | "reader" | "rightsholder" | "scriptwriter" | "supplier" | "translator" | "writer");
|
|
1
2
|
export interface IAuthorDTO {
|
|
2
|
-
type:
|
|
3
|
+
type: ContributorType;
|
|
3
4
|
name: string;
|
|
4
5
|
}
|
|
5
6
|
export interface ICopyrightDTO {
|
package/build/image-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-api.js","sourceRoot":"","sources":["../image-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;
|
|
1
|
+
{"version":3,"file":"image-api.js","sourceRoot":"","sources":["../image-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AAyL3C,IAAY,aASX;AATD,WAAY,aAAa;IACvB,+CAA8B,CAAA;IAC9B,6CAA4B,CAAA;IAC5B,uCAAsB,CAAA;IACtB,qCAAoB,CAAA;IACpB,mDAAkC,CAAA;IAClC,iDAAgC,CAAA;IAChC,iCAAgB,CAAA;IAChB,+BAAc,CAAA;AAChB,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
export type ContributorType = ("artist" | "cowriter" | "compiler" | "composer" | "correction" | "director" | "distributor" | "editorial" | "facilitator" | "idea" | "illustrator" | "linguistic" | "originator" | "photographer" | "processor" | "publisher" | "reader" | "rightsholder" | "scriptwriter" | "supplier" | "translator" | "writer");
|
|
1
2
|
export interface IAuthorDTO {
|
|
2
|
-
type:
|
|
3
|
+
type: ContributorType;
|
|
3
4
|
name: string;
|
|
4
5
|
}
|
|
5
6
|
export interface IConfigMetaDTO {
|
package/build/search-api.d.ts
CHANGED
package/build/search-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-api.js","sourceRoot":"","sources":["../search-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;
|
|
1
|
+
{"version":3,"file":"search-api.js","sourceRoot":"","sources":["../search-api.ts"],"names":[],"mappings":";AAAA,2CAA2C;;;AA6Z3C,IAAY,QA6BX;AA7BD,WAAY,QAAQ;IAClB,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;IAC5B,kCAAsB,CAAA;IACtB,gCAAoB,CAAA;IACpB,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,4BAAgB,CAAA;IAChB,0BAAc,CAAA;IACd,wCAA4B,CAAA;IAC5B,sCAA0B,CAAA;IAC1B,8CAAkC,CAAA;IAClC,gDAAoC,CAAA;IACpC,kEAAsD,CAAA;IACtD,oEAAwD,CAAA;IACxD,kCAAsB,CAAA;IACtB,oCAAwB,CAAA;IACxB,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,sDAA0C,CAAA;IAC1C,oDAAwC,CAAA;IACxC,8CAAkC,CAAA;IAClC,4CAAgC,CAAA;IAChC,gDAAoC,CAAA;IACpC,8CAAkC,CAAA;IAClC,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;IAC5B,0CAA8B,CAAA;IAC9B,wCAA4B,CAAA;AAC9B,CAAC,EA7BW,QAAQ,wBAAR,QAAQ,QA6BnB"}
|
package/package.json
CHANGED