UNPKG

@dasch-swiss/dsp-js

Version:

JavaScript library that handles API requests to Knora

170 lines 6.86 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; import { JsonObject, JsonProperty } from "json2typescript"; import { Constants } from "../../../Constants"; import { License } from "../create/license"; import { UpdateValue } from "./update-value"; /** * @category Model V2 */ var UpdateFileValue = /** @class */ (function (_super) { __extends(UpdateFileValue, _super); function UpdateFileValue() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.filename = ""; return _this; } __decorate([ JsonProperty(Constants.FileValueHasFilename, String), __metadata("design:type", String) ], UpdateFileValue.prototype, "filename", void 0); __decorate([ JsonProperty(Constants.hasCopyrightHolder, String, true), __metadata("design:type", String) ], UpdateFileValue.prototype, "copyrightHolder", void 0); __decorate([ JsonProperty(Constants.hasAuthorship, [String], true), __metadata("design:type", Array) ], UpdateFileValue.prototype, "authorship", void 0); __decorate([ JsonProperty(Constants.hasLicense, License, true), __metadata("design:type", License) ], UpdateFileValue.prototype, "license", void 0); UpdateFileValue = __decorate([ JsonObject("UpdateFileValue") ], UpdateFileValue); return UpdateFileValue; }(UpdateValue)); export { UpdateFileValue }; /** * @category Model V2 */ var UpdateAudioFileValue = /** @class */ (function (_super) { __extends(UpdateAudioFileValue, _super); function UpdateAudioFileValue() { return _super.call(this, Constants.AudioFileValue) || this; } UpdateAudioFileValue = __decorate([ JsonObject("UpdateAudioFileValue"), __metadata("design:paramtypes", []) ], UpdateAudioFileValue); return UpdateAudioFileValue; }(UpdateFileValue)); export { UpdateAudioFileValue }; /** * @category Model V2 */ var UpdateDocumentFileValue = /** @class */ (function (_super) { __extends(UpdateDocumentFileValue, _super); function UpdateDocumentFileValue() { return _super.call(this, Constants.DocumentFileValue) || this; } UpdateDocumentFileValue = __decorate([ JsonObject("UpdateDocumentFileValue"), __metadata("design:paramtypes", []) ], UpdateDocumentFileValue); return UpdateDocumentFileValue; }(UpdateFileValue)); export { UpdateDocumentFileValue }; /** * @category Model V2 */ var UpdateMovingImageFileValue = /** @class */ (function (_super) { __extends(UpdateMovingImageFileValue, _super); function UpdateMovingImageFileValue() { return _super.call(this, Constants.MovingImageFileValue) || this; } UpdateMovingImageFileValue = __decorate([ JsonObject("UpdateMovingImageFileValue"), __metadata("design:paramtypes", []) ], UpdateMovingImageFileValue); return UpdateMovingImageFileValue; }(UpdateFileValue)); export { UpdateMovingImageFileValue }; /** * @category Model V2 */ var UpdateStillImageFileValue = /** @class */ (function (_super) { __extends(UpdateStillImageFileValue, _super); function UpdateStillImageFileValue() { return _super.call(this, Constants.StillImageFileValue) || this; } UpdateStillImageFileValue = __decorate([ JsonObject("UpdateStillImageFileValue"), __metadata("design:paramtypes", []) ], UpdateStillImageFileValue); return UpdateStillImageFileValue; }(UpdateFileValue)); export { UpdateStillImageFileValue }; /** * @category Model V2 */ var UpdateExternalStillImageFileValue = /** @class */ (function (_super) { __extends(UpdateExternalStillImageFileValue, _super); function UpdateExternalStillImageFileValue() { return _super.call(this, Constants.StillImageExternalFileValue) || this; } __decorate([ JsonProperty(Constants.StillImageFileValueHasExternalUrl, String, true), __metadata("design:type", String) ], UpdateExternalStillImageFileValue.prototype, "externalUrl", void 0); UpdateExternalStillImageFileValue = __decorate([ JsonObject("UpdateStillImageExternalFileValue"), __metadata("design:paramtypes", []) ], UpdateExternalStillImageFileValue); return UpdateExternalStillImageFileValue; }(UpdateFileValue)); export { UpdateExternalStillImageFileValue }; /** * @category Model V2 */ var UpdateTextFileValue = /** @class */ (function (_super) { __extends(UpdateTextFileValue, _super); function UpdateTextFileValue() { return _super.call(this, Constants.TextFileValue) || this; } UpdateTextFileValue = __decorate([ JsonObject("UpdateTextFileValue"), __metadata("design:paramtypes", []) ], UpdateTextFileValue); return UpdateTextFileValue; }(UpdateFileValue)); export { UpdateTextFileValue }; /** * @category Model V2 */ var UpdateArchiveFileValue = /** @class */ (function (_super) { __extends(UpdateArchiveFileValue, _super); function UpdateArchiveFileValue() { return _super.call(this, Constants.ArchiveFileValue) || this; } UpdateArchiveFileValue = __decorate([ JsonObject("UpdateArchiveFileValue"), __metadata("design:paramtypes", []) ], UpdateArchiveFileValue); return UpdateArchiveFileValue; }(UpdateFileValue)); export { UpdateArchiveFileValue }; //# sourceMappingURL=update-file-value.js.map