@ndla/types-backend 0.2.12 → 0.2.13
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.d.ts +22 -0
- package/package.json +1 -1
package/build/concept-api.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export interface IConcept {
|
|
|
20
20
|
status: IStatus;
|
|
21
21
|
visualElement?: IVisualElement;
|
|
22
22
|
responsible?: IConceptResponsible;
|
|
23
|
+
conceptType: string;
|
|
24
|
+
glossData?: IGlossData;
|
|
23
25
|
}
|
|
24
26
|
export interface IConceptContent {
|
|
25
27
|
content: string;
|
|
@@ -110,6 +112,22 @@ export interface IDraftConceptSearchParams {
|
|
|
110
112
|
embedId?: string;
|
|
111
113
|
responsibleIds: string[];
|
|
112
114
|
}
|
|
115
|
+
export interface IGlossData {
|
|
116
|
+
gloss: string;
|
|
117
|
+
wordClass: string;
|
|
118
|
+
originalLanguage: string;
|
|
119
|
+
transcriptions: {
|
|
120
|
+
[key: string]: string;
|
|
121
|
+
};
|
|
122
|
+
examples: IGlossExample[][];
|
|
123
|
+
}
|
|
124
|
+
export interface IGlossExample {
|
|
125
|
+
example: string;
|
|
126
|
+
language: string;
|
|
127
|
+
transcriptions: {
|
|
128
|
+
[key: string]: string;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
113
131
|
export interface ILicense {
|
|
114
132
|
license: string;
|
|
115
133
|
description?: string;
|
|
@@ -127,6 +145,8 @@ export interface INewConcept {
|
|
|
127
145
|
articleIds?: number[];
|
|
128
146
|
visualElement?: string;
|
|
129
147
|
responsibleId?: string;
|
|
148
|
+
conceptType: string;
|
|
149
|
+
glossData?: IGlossData;
|
|
130
150
|
}
|
|
131
151
|
export interface INewConceptMetaImage {
|
|
132
152
|
id: string;
|
|
@@ -161,6 +181,8 @@ export interface IUpdatedConcept {
|
|
|
161
181
|
status?: string;
|
|
162
182
|
visualElement?: string;
|
|
163
183
|
responsibleId?: (null | string);
|
|
184
|
+
conceptType?: string;
|
|
185
|
+
glossData?: IGlossData;
|
|
164
186
|
}
|
|
165
187
|
export interface IValidationError {
|
|
166
188
|
code: string;
|
package/package.json
CHANGED