@knora/api
Version:
JavaScript library that handles API requests to Knora
105 lines • 5.25 kB
JavaScript
;
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);
};
Object.defineProperty(exports, "__esModule", { value: true });
var json2typescript_1 = require("json2typescript");
var Constants_1 = require("../../../Constants");
var date_time_stamp_converter_1 = require("../../../custom-converters/date-time-stamp-converter");
var id_converter_1 = require("../../../custom-converters/id-converter");
var uri_converter_1 = require("../../../custom-converters/uri-converter");
var ReadValue = /** @class */ (function () {
function ReadValue(id, type, attachedToUser, arkUrl, versionArkUrl, valueCreationDate, hasPermissions, userHasPermission, uuid, propertyLabel, propertyComment, property, strval, valueHasComment) {
this.id = "";
this.type = "";
this.attachedToUser = "";
this.arkUrl = "";
this.versionArkUrl = "";
this.valueCreationDate = "";
this.hasPermissions = "";
this.userHasPermission = "";
this.uuid = "";
this.valueHasComment = undefined;
if (id !== undefined)
this.id = id;
if (type !== undefined)
this.type = type;
if (attachedToUser !== undefined)
this.attachedToUser = attachedToUser;
if (arkUrl !== undefined)
this.arkUrl = arkUrl;
if (versionArkUrl !== undefined)
this.versionArkUrl = versionArkUrl;
if (valueCreationDate !== undefined)
this.valueCreationDate = valueCreationDate;
if (hasPermissions !== undefined)
this.hasPermissions = hasPermissions;
if (userHasPermission !== undefined)
this.userHasPermission = userHasPermission;
if (uuid !== undefined)
this.uuid = uuid;
if (propertyLabel !== undefined)
this.propertyLabel = propertyLabel;
if (propertyComment !== undefined)
this.propertyComment = propertyLabel;
if (property !== undefined)
this.property = property;
if (strval !== undefined)
this.strval = strval;
if (valueHasComment !== undefined)
this.valueHasComment = valueHasComment;
}
__decorate([
json2typescript_1.JsonProperty("@id", String),
__metadata("design:type", String)
], ReadValue.prototype, "id", void 0);
__decorate([
json2typescript_1.JsonProperty("@type", String),
__metadata("design:type", String)
], ReadValue.prototype, "type", void 0);
__decorate([
json2typescript_1.JsonProperty(Constants_1.Constants.AttachedToUser, id_converter_1.IdConverter),
__metadata("design:type", String)
], ReadValue.prototype, "attachedToUser", void 0);
__decorate([
json2typescript_1.JsonProperty(Constants_1.Constants.ArkUrl, uri_converter_1.UriConverter),
__metadata("design:type", String)
], ReadValue.prototype, "arkUrl", void 0);
__decorate([
json2typescript_1.JsonProperty(Constants_1.Constants.VersionArkUrl, uri_converter_1.UriConverter),
__metadata("design:type", String)
], ReadValue.prototype, "versionArkUrl", void 0);
__decorate([
json2typescript_1.JsonProperty(Constants_1.Constants.ValueCreationDate, date_time_stamp_converter_1.DateTimeStampConverter),
__metadata("design:type", String)
], ReadValue.prototype, "valueCreationDate", void 0);
__decorate([
json2typescript_1.JsonProperty(Constants_1.Constants.HasPermissions, String),
__metadata("design:type", String)
], ReadValue.prototype, "hasPermissions", void 0);
__decorate([
json2typescript_1.JsonProperty(Constants_1.Constants.UserHasPermission, String),
__metadata("design:type", String)
], ReadValue.prototype, "userHasPermission", void 0);
__decorate([
json2typescript_1.JsonProperty(Constants_1.Constants.ValueHasUUID, String),
__metadata("design:type", String)
], ReadValue.prototype, "uuid", void 0);
__decorate([
json2typescript_1.JsonProperty(Constants_1.Constants.ValueHasComment, String, true),
__metadata("design:type", String)
], ReadValue.prototype, "valueHasComment", void 0);
ReadValue = __decorate([
json2typescript_1.JsonObject("ReadValue"),
__metadata("design:paramtypes", [String, String, String, String, String, String, String, String, String, String, String, String, String, String])
], ReadValue);
return ReadValue;
}());
exports.ReadValue = ReadValue;
//# sourceMappingURL=read-value.js.map