@dasch-swiss/dsp-js
Version:
TypeScript client library for DSP-API
192 lines • 6.51 kB
JavaScript
import { __decorate, __metadata } from "tslib";
import { JsonObject, JsonProperty } from 'json2typescript';
import { Constants } from '../../../Constants';
import { StringOrArrayToArrayConverter } from '../../../custom-converters/string-or-array-converter';
import { UriConverter } from '../../../custom-converters/uri-converter';
import { License } from '../create/license';
import { ReadValue } from './read-value';
/**
* @category Model V2
*/
let ReadFileValue = class ReadFileValue extends ReadValue {
constructor() {
super(...arguments);
this.filename = '';
this.fileUrl = '';
this.copyrightHolder = null;
this.authorship = [];
this.license = null;
}
};
__decorate([
JsonProperty(Constants.FileValueHasFilename, String),
__metadata("design:type", Object)
], ReadFileValue.prototype, "filename", void 0);
__decorate([
JsonProperty(Constants.FileValueAsUrl, UriConverter),
__metadata("design:type", Object)
], ReadFileValue.prototype, "fileUrl", void 0);
__decorate([
JsonProperty(Constants.hasCopyrightHolder, String, true),
__metadata("design:type", Object)
], ReadFileValue.prototype, "copyrightHolder", void 0);
__decorate([
JsonProperty(Constants.hasAuthorship, StringOrArrayToArrayConverter, true),
__metadata("design:type", Array)
], ReadFileValue.prototype, "authorship", void 0);
__decorate([
JsonProperty(Constants.hasLicense, License, true),
__metadata("design:type", Object)
], ReadFileValue.prototype, "license", void 0);
ReadFileValue = __decorate([
JsonObject('ReadFileValue')
], ReadFileValue);
export { ReadFileValue };
/**
* @category Model V2
*/
let ReadAudioFileValue = class ReadAudioFileValue extends ReadFileValue {
constructor() {
super(...arguments);
this.duration = 0;
}
};
__decorate([
JsonProperty(Constants.AudioFileValueHasDuration, Number, true),
__metadata("design:type", Number)
], ReadAudioFileValue.prototype, "duration", void 0);
ReadAudioFileValue = __decorate([
JsonObject('ReadAudioFileValue')
], ReadAudioFileValue);
export { ReadAudioFileValue };
/**
* @category Model V2
*/
let ReadDocumentFileValue = class ReadDocumentFileValue extends ReadFileValue {
constructor() {
super(...arguments);
this.dimX = 0;
this.dimY = 0;
this.pageCount = 0;
}
};
__decorate([
JsonProperty(Constants.DocumentFileValueHasDimX, Number, true),
__metadata("design:type", Number)
], ReadDocumentFileValue.prototype, "dimX", void 0);
__decorate([
JsonProperty(Constants.DocumentFileValueHasDimY, Number, true),
__metadata("design:type", Number)
], ReadDocumentFileValue.prototype, "dimY", void 0);
__decorate([
JsonProperty(Constants.DocumentFileValueHasPageCount, Number, true),
__metadata("design:type", Number)
], ReadDocumentFileValue.prototype, "pageCount", void 0);
ReadDocumentFileValue = __decorate([
JsonObject('ReadDocumentFileValue')
], ReadDocumentFileValue);
export { ReadDocumentFileValue };
/**
* @category Model V2
*/
let ReadMovingImageFileValue = class ReadMovingImageFileValue extends ReadFileValue {
constructor() {
super(...arguments);
this.dimX = 0;
this.dimY = 0;
this.duration = 0;
this.fps = 0;
}
};
__decorate([
JsonProperty(Constants.MovingImageFileValueHasDimX, Number, true),
__metadata("design:type", Number)
], ReadMovingImageFileValue.prototype, "dimX", void 0);
__decorate([
JsonProperty(Constants.MovingImageFileValueHasDimY, Number, true),
__metadata("design:type", Number)
], ReadMovingImageFileValue.prototype, "dimY", void 0);
__decorate([
JsonProperty(Constants.MovingImageFileValueHasDuration, Number, true),
__metadata("design:type", Number)
], ReadMovingImageFileValue.prototype, "duration", void 0);
__decorate([
JsonProperty(Constants.MovingImageFileValueHasFps, Number, true),
__metadata("design:type", Number)
], ReadMovingImageFileValue.prototype, "fps", void 0);
ReadMovingImageFileValue = __decorate([
JsonObject('ReadMovingImageFileValue')
], ReadMovingImageFileValue);
export { ReadMovingImageFileValue };
/**
* @category Model V2
*/
let ReadStillImageFileValue = class ReadStillImageFileValue extends ReadFileValue {
constructor() {
super(...arguments);
this.dimX = 0;
this.dimY = 0;
this.iiifBaseUrl = '';
}
};
__decorate([
JsonProperty(Constants.StillImageFileValueHasDimX, Number),
__metadata("design:type", Object)
], ReadStillImageFileValue.prototype, "dimX", void 0);
__decorate([
JsonProperty(Constants.StillImageFileValueHasDimY, Number),
__metadata("design:type", Object)
], ReadStillImageFileValue.prototype, "dimY", void 0);
__decorate([
JsonProperty(Constants.StillImageFileValueHasIIIFBaseUrl, UriConverter),
__metadata("design:type", Object)
], ReadStillImageFileValue.prototype, "iiifBaseUrl", void 0);
ReadStillImageFileValue = __decorate([
JsonObject('ReadStillImageFileValue')
], ReadStillImageFileValue);
export { ReadStillImageFileValue };
/**
* @category Model V2
*/
let ReadStillImageExternalFileValue = class ReadStillImageExternalFileValue extends ReadFileValue {
constructor() {
super(...arguments);
this.externalUrl = '';
}
};
__decorate([
JsonProperty(Constants.StillImageFileValueHasExternalUrl, UriConverter, true),
__metadata("design:type", Object)
], ReadStillImageExternalFileValue.prototype, "externalUrl", void 0);
ReadStillImageExternalFileValue = __decorate([
JsonObject('ReadStillImageExternalFileValue')
], ReadStillImageExternalFileValue);
export { ReadStillImageExternalFileValue };
/**
* @category Model V2
*/
let ReadStillImageVectorFileValue = class ReadStillImageVectorFileValue extends ReadFileValue {
};
ReadStillImageVectorFileValue = __decorate([
JsonObject('ReadStillImageVectorFileValue')
], ReadStillImageVectorFileValue);
export { ReadStillImageVectorFileValue };
/**
* @category Model V2
*/
let ReadArchiveFileValue = class ReadArchiveFileValue extends ReadFileValue {
};
ReadArchiveFileValue = __decorate([
JsonObject('ReadArchiveFileValue')
], ReadArchiveFileValue);
export { ReadArchiveFileValue };
/**
* @category Model V2
*/
let ReadTextFileValue = class ReadTextFileValue extends ReadFileValue {
};
ReadTextFileValue = __decorate([
JsonObject('ReadTextFileValue')
], ReadTextFileValue);
export { ReadTextFileValue };
//# sourceMappingURL=read-file-value.js.map