diff --git a/package.json b/package.json index 0ecf71481..2294e7dc4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dasch-swiss/dsp-js", - "version": "10.1.0", + "version": "10.2.0", "description": "JavaScript library that handles API requests to Knora", "main": "index.js", "files": [ diff --git a/src/index.ts b/src/index.ts index 3ee333abc..648605677 100644 --- a/src/index.ts +++ b/src/index.ts @@ -205,7 +205,8 @@ export { UpdateMovingImageFileValue, UpdateStillImageFileValue, UpdateTextFileValue, - UpdateArchiveFileValue + UpdateArchiveFileValue, + UpdateExternalStillImageFileValue } from "./models/v2/resources/values/update/update-file-value"; export { UpdateGeomValue } from "./models/v2/resources/values/update/update-geom-value"; export { UpdateIntValue } from "./models/v2/resources/values/update/update-int-value"; diff --git a/src/models/v2/resources/values/update/update-file-value.ts b/src/models/v2/resources/values/update/update-file-value.ts index 4229bea16..bf82fe297 100644 --- a/src/models/v2/resources/values/update/update-file-value.ts +++ b/src/models/v2/resources/values/update/update-file-value.ts @@ -67,10 +67,10 @@ export class UpdateStillImageFileValue extends UpdateFileValue { */ @JsonObject("UpdateStillImageExternalFileValue") export class UpdateExternalStillImageFileValue extends UpdateFileValue { - @JsonProperty(Constants.StillImageFileValueHasExternalUrl, String, true) - externalUrl?: string = ""; + @JsonProperty(Constants.FileValueHasExternalUrl, String, true) + externalUrl: string; constructor() { - super(Constants.StillImageAbstractFileValue); + super(Constants.StillImageExternalFileValue); } }