@ndla/types-backend 0.2.53 → 0.2.55

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.
@@ -152,7 +152,7 @@ export interface ITagsSearchResult {
152
152
  export interface IUpdateImageMetaInformation {
153
153
  language: string;
154
154
  title?: string;
155
- alttext?: (null | string);
155
+ alttext: UpdateOrDeleteString;
156
156
  copyright?: ICopyright;
157
157
  tags?: string[];
158
158
  caption?: string;
@@ -168,3 +168,4 @@ export interface IValidationMessage {
168
168
  field: string;
169
169
  message: string;
170
170
  }
171
+ export type UpdateOrDeleteString = (null | undefined | string);
@@ -177,7 +177,7 @@ export interface INewFolder {
177
177
  description?: string;
178
178
  }
179
179
  export interface INewResource {
180
- resourceType: string;
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: string;
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");
@@ -113,7 +113,7 @@ export interface INewPostNotification {
113
113
  notificationTime: string;
114
114
  }
115
115
  export interface INewResource {
116
- resourceType: string;
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: string;
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
@@ -27,5 +27,5 @@
27
27
  "devDependencies": {
28
28
  "typescript": "^5.0.2"
29
29
  },
30
- "version": "0.2.53"
30
+ "version": "0.2.55"
31
31
  }