UNPKG

@dasch-swiss/dsp-js

Version:

JavaScript library that handles API requests to Knora

172 lines 6.91 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 { CreateValue } from "./create-value"; import { License } from "./license"; /** * @category Model V2 */ var CreateFileValue = /** @class */ (function (_super) { __extends(CreateFileValue, _super); function CreateFileValue() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.filename = ""; return _this; } __decorate([ JsonProperty(Constants.FileValueHasFilename, String), __metadata("design:type", String) ], 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); return CreateFileValue; }(CreateValue)); export { CreateFileValue }; /** * @category Model V2 */ var CreateAudioFileValue = /** @class */ (function (_super) { __extends(CreateAudioFileValue, _super); function CreateAudioFileValue() { return _super.call(this, Constants.AudioFileValue) || this; } CreateAudioFileValue = __decorate([ JsonObject("CreateAudioFileValue"), __metadata("design:paramtypes", []) ], CreateAudioFileValue); return CreateAudioFileValue; }(CreateFileValue)); export { CreateAudioFileValue }; /** * @category Model V2 */ var CreateDocumentFileValue = /** @class */ (function (_super) { __extends(CreateDocumentFileValue, _super); function CreateDocumentFileValue() { return _super.call(this, Constants.DocumentFileValue) || this; } CreateDocumentFileValue = __decorate([ JsonObject("CreateDocumentFileValue"), __metadata("design:paramtypes", []) ], CreateDocumentFileValue); return CreateDocumentFileValue; }(CreateFileValue)); export { CreateDocumentFileValue }; /** * @category Model V2 */ var CreateMovingImageFileValue = /** @class */ (function (_super) { __extends(CreateMovingImageFileValue, _super); function CreateMovingImageFileValue() { return _super.call(this, Constants.MovingImageFileValue) || this; } CreateMovingImageFileValue = __decorate([ JsonObject("CreateMovingImageFileValue"), __metadata("design:paramtypes", []) ], CreateMovingImageFileValue); return CreateMovingImageFileValue; }(CreateFileValue)); export { CreateMovingImageFileValue }; /** * @category Model V2 */ var CreateStillImageFileValue = /** @class */ (function (_super) { __extends(CreateStillImageFileValue, _super); function CreateStillImageFileValue() { return _super.call(this, Constants.StillImageFileValue) || this; } CreateStillImageFileValue = __decorate([ JsonObject("CreateStillImageFileValue"), __metadata("design:paramtypes", []) ], CreateStillImageFileValue); return CreateStillImageFileValue; }(CreateFileValue)); export { CreateStillImageFileValue }; /** * @category Model V2 */ var CreateStillImageExternalFileValue = /** @class */ (function (_super) { __extends(CreateStillImageExternalFileValue, _super); function CreateStillImageExternalFileValue() { var _this = _super.call(this, Constants.StillImageExternalFileValue) || this; _this.externalUrl = ""; return _this; } __decorate([ JsonProperty(Constants.StillImageFileValueHasExternalUrl, String, true), __metadata("design:type", String) ], CreateStillImageExternalFileValue.prototype, "externalUrl", void 0); CreateStillImageExternalFileValue = __decorate([ JsonObject("CreateStillImageExternalFileValue"), __metadata("design:paramtypes", []) ], CreateStillImageExternalFileValue); return CreateStillImageExternalFileValue; }(CreateFileValue)); export { CreateStillImageExternalFileValue }; /** * @category Model V2 */ var CreateTextFileValue = /** @class */ (function (_super) { __extends(CreateTextFileValue, _super); function CreateTextFileValue() { return _super.call(this, Constants.TextFileValue) || this; } CreateTextFileValue = __decorate([ JsonObject("CreateTextFileValue"), __metadata("design:paramtypes", []) ], CreateTextFileValue); return CreateTextFileValue; }(CreateFileValue)); export { CreateTextFileValue }; /** * @category Model V2 */ var CreateArchiveFileValue = /** @class */ (function (_super) { __extends(CreateArchiveFileValue, _super); function CreateArchiveFileValue() { return _super.call(this, Constants.ArchiveFileValue) || this; } CreateArchiveFileValue = __decorate([ JsonObject("CreateArchiveFileValue"), __metadata("design:paramtypes", []) ], CreateArchiveFileValue); return CreateArchiveFileValue; }(CreateFileValue)); export { CreateArchiveFileValue }; //# sourceMappingURL=create-file-value.js.map