@dasch-swiss/dsp-js
Version:
TypeScript client library for DSP-API
144 lines • 4.57 kB
JavaScript
import { __decorate, __metadata } from "tslib";
import { JsonObject, JsonProperty } from 'json2typescript';
import { Constants } from '../../../Constants';
import { CreateValue } from './create-value';
import { License } from './license';
/**
* @category Model V2
*/
let CreateFileValue = class CreateFileValue extends CreateValue {
constructor() {
super(...arguments);
this.filename = '';
}
};
__decorate([
JsonProperty(Constants.FileValueHasFilename, String),
__metadata("design:type", Object)
], CreateFileValue.prototype, "filename", void 0);
__decorate([
JsonProperty(Constants.hasCopyrightHolder, String, true),
__metadata("design:type", String)
], CreateFileValue.prototype, "copyrightHolder", void 0);
__decorate([
JsonProperty(Constants.hasAuthorship, [String], true),
__metadata("design:type", Array)
], CreateFileValue.prototype, "authorship", void 0);
__decorate([
JsonProperty(Constants.hasLicense, License, true),
__metadata("design:type", License)
], CreateFileValue.prototype, "license", void 0);
CreateFileValue = __decorate([
JsonObject('CreateFileValue')
], CreateFileValue);
export { CreateFileValue };
/**
* @category Model V2
*/
let CreateAudioFileValue = class CreateAudioFileValue extends CreateFileValue {
constructor() {
super(Constants.AudioFileValue);
}
};
CreateAudioFileValue = __decorate([
JsonObject('CreateAudioFileValue'),
__metadata("design:paramtypes", [])
], CreateAudioFileValue);
export { CreateAudioFileValue };
/**
* @category Model V2
*/
let CreateDocumentFileValue = class CreateDocumentFileValue extends CreateFileValue {
constructor() {
super(Constants.DocumentFileValue);
}
};
CreateDocumentFileValue = __decorate([
JsonObject('CreateDocumentFileValue'),
__metadata("design:paramtypes", [])
], CreateDocumentFileValue);
export { CreateDocumentFileValue };
/**
* @category Model V2
*/
let CreateMovingImageFileValue = class CreateMovingImageFileValue extends CreateFileValue {
constructor() {
super(Constants.MovingImageFileValue);
}
};
CreateMovingImageFileValue = __decorate([
JsonObject('CreateMovingImageFileValue'),
__metadata("design:paramtypes", [])
], CreateMovingImageFileValue);
export { CreateMovingImageFileValue };
/**
* @category Model V2
*/
let CreateStillImageFileValue = class CreateStillImageFileValue extends CreateFileValue {
constructor() {
super(Constants.StillImageFileValue);
}
};
CreateStillImageFileValue = __decorate([
JsonObject('CreateStillImageFileValue'),
__metadata("design:paramtypes", [])
], CreateStillImageFileValue);
export { CreateStillImageFileValue };
/**
* @category Model V2
*/
let CreateStillImageExternalFileValue = class CreateStillImageExternalFileValue extends CreateFileValue {
constructor() {
super(Constants.StillImageExternalFileValue);
this.externalUrl = '';
}
};
__decorate([
JsonProperty(Constants.StillImageFileValueHasExternalUrl, String, true),
__metadata("design:type", String)
], CreateStillImageExternalFileValue.prototype, "externalUrl", void 0);
CreateStillImageExternalFileValue = __decorate([
JsonObject('CreateStillImageExternalFileValue'),
__metadata("design:paramtypes", [])
], CreateStillImageExternalFileValue);
export { CreateStillImageExternalFileValue };
/**
* @category Model V2
*/
let CreateStillImageVectorFileValue = class CreateStillImageVectorFileValue extends CreateFileValue {
constructor() {
super(Constants.StillImageVectorFileValue);
}
};
CreateStillImageVectorFileValue = __decorate([
JsonObject('CreateStillImageVectorFileValue'),
__metadata("design:paramtypes", [])
], CreateStillImageVectorFileValue);
export { CreateStillImageVectorFileValue };
/**
* @category Model V2
*/
let CreateTextFileValue = class CreateTextFileValue extends CreateFileValue {
constructor() {
super(Constants.TextFileValue);
}
};
CreateTextFileValue = __decorate([
JsonObject('CreateTextFileValue'),
__metadata("design:paramtypes", [])
], CreateTextFileValue);
export { CreateTextFileValue };
/**
* @category Model V2
*/
let CreateArchiveFileValue = class CreateArchiveFileValue extends CreateFileValue {
constructor() {
super(Constants.ArchiveFileValue);
}
};
CreateArchiveFileValue = __decorate([
JsonObject('CreateArchiveFileValue'),
__metadata("design:paramtypes", [])
], CreateArchiveFileValue);
export { CreateArchiveFileValue };
//# sourceMappingURL=create-file-value.js.map