diff --git a/package.json b/package.json index 2ed571a6c..4c6a2204e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dasch-swiss/dsp-js", - "version": "10.2.1", + "version": "10.2.2", "description": "JavaScript library that handles API requests to Knora", "main": "index.js", "files": [ diff --git a/src/models/v2/Constants.ts b/src/models/v2/Constants.ts index f0e661b88..9094bf1ba 100644 --- a/src/models/v2/Constants.ts +++ b/src/models/v2/Constants.ts @@ -129,6 +129,9 @@ export class Constants { static StillImageFileValueHasDimX = Constants.KnoraApiV2 + Constants.HashDelimiter + "stillImageFileValueHasDimX"; static StillImageFileValueHasDimY = Constants.KnoraApiV2 + Constants.HashDelimiter + "stillImageFileValueHasDimY"; static StillImageFileValueHasIIIFBaseUrl = Constants.KnoraApiV2 + Constants.HashDelimiter + "stillImageFileValueHasIIIFBaseUrl"; + /** + * @deprecated FileValueHasExternalUrl will be removed in future versions. Use StillImageFileValueHasExternalUrl instead. + */ static FileValueHasExternalUrl = Constants.KnoraApiV2 + Constants.HashDelimiter + "fileValueHasExternalUrl"; static StillImageFileValueHasExternalUrl = Constants.KnoraApiV2 + Constants.HashDelimiter + "stillImageFileValueHasExternalUrl"; static AudioFileValueHasDuration = Constants.KnoraApiV2 + Constants.HashDelimiter + "audioFileValueHasDuration"; diff --git a/src/models/v2/resources/values/create/create-file-value.ts b/src/models/v2/resources/values/create/create-file-value.ts index 6ff7dd181..c466c3630 100644 --- a/src/models/v2/resources/values/create/create-file-value.ts +++ b/src/models/v2/resources/values/create/create-file-value.ts @@ -66,7 +66,7 @@ export class CreateStillImageFileValue extends CreateFileValue { */ @JsonObject("CreateStillImageExternalFileValue") export class CreateStillImageExternalFileValue extends CreateFileValue { - @JsonProperty(Constants.FileValueHasExternalUrl, String, true) + @JsonProperty(Constants.StillImageFileValueHasExternalUrl, String, true) externalUrl?: string = ""; constructor() { super(Constants.StillImageExternalFileValue); 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 bf82fe297..87e64a8ce 100644 --- a/src/models/v2/resources/values/update/update-file-value.ts +++ b/src/models/v2/resources/values/update/update-file-value.ts @@ -67,7 +67,7 @@ export class UpdateStillImageFileValue extends UpdateFileValue { */ @JsonObject("UpdateStillImageExternalFileValue") export class UpdateExternalStillImageFileValue extends UpdateFileValue { - @JsonProperty(Constants.FileValueHasExternalUrl, String, true) + @JsonProperty(Constants.StillImageFileValueHasExternalUrl, String, true) externalUrl: string; constructor() { super(Constants.StillImageExternalFileValue); diff --git a/vars.mk b/vars.mk index 8de6470a0..f9da3a978 100644 --- a/vars.mk +++ b/vars.mk @@ -6,4 +6,4 @@ else endif API_REPO := dasch-swiss/dsp-api -API_VERSION := v30.18.2 +API_VERSION := v30.18.4