@ndla/types-backend 0.2.53 → 0.2.54
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.
|
@@ -177,7 +177,7 @@ export interface INewFolder {
|
|
|
177
177
|
description?: string;
|
|
178
178
|
}
|
|
179
179
|
export interface INewResource {
|
|
180
|
-
resourceType:
|
|
180
|
+
resourceType: ResourceType;
|
|
181
181
|
path: string;
|
|
182
182
|
tags?: string[];
|
|
183
183
|
resourceId: string;
|
|
@@ -187,7 +187,7 @@ export interface IOwner {
|
|
|
187
187
|
}
|
|
188
188
|
export interface IResource {
|
|
189
189
|
id: string;
|
|
190
|
-
resourceType:
|
|
190
|
+
resourceType: ResourceType;
|
|
191
191
|
path: string;
|
|
192
192
|
created: string;
|
|
193
193
|
tags: string[];
|
|
@@ -214,3 +214,4 @@ export interface IUpdatedResource {
|
|
|
214
214
|
tags?: string[];
|
|
215
215
|
resourceId?: string;
|
|
216
216
|
}
|
|
217
|
+
export type ResourceType = ("concept" | "image" | "audio" | "multidisciplinary" | "article" | "learningpath" | "video");
|
package/build/myndla-api.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ export interface INewPostNotification {
|
|
|
113
113
|
notificationTime: string;
|
|
114
114
|
}
|
|
115
115
|
export interface INewResource {
|
|
116
|
-
resourceType:
|
|
116
|
+
resourceType: ResourceType;
|
|
117
117
|
path: string;
|
|
118
118
|
tags?: string[];
|
|
119
119
|
resourceId: string;
|
|
@@ -162,7 +162,7 @@ export interface IPost {
|
|
|
162
162
|
}
|
|
163
163
|
export interface IResource {
|
|
164
164
|
id: string;
|
|
165
|
-
resourceType:
|
|
165
|
+
resourceType: ResourceType;
|
|
166
166
|
path: string;
|
|
167
167
|
created: string;
|
|
168
168
|
tags: string[];
|
|
@@ -223,3 +223,4 @@ export interface IUpdatedResource {
|
|
|
223
223
|
tags?: string[];
|
|
224
224
|
resourceId?: string;
|
|
225
225
|
}
|
|
226
|
+
export type ResourceType = ("concept" | "image" | "audio" | "multidisciplinary" | "article" | "learningpath" | "video");
|
package/package.json
CHANGED