UNPKG

@dasch-swiss/dsp-js

Version:

JavaScript library that handles API requests to Knora

66 lines 2.61 kB
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 { StringLiteral } from "./string-literal"; /** * A request to update a child node. * * @category Model Admin */ var UpdateChildNodeRequest = /** @class */ (function () { function UpdateChildNodeRequest() { /** * Provides a list IRI. */ this.listIri = ""; /** * The IRI of a project. */ this.projectIri = ""; /** * The name of the node. */ this.name = undefined; /** * The labels attached to the enclosing object. */ this.labels = undefined; /** * The comments attached to the enclosing object. */ this.comments = undefined; } __decorate([ JsonProperty("listIri", String), __metadata("design:type", String) ], UpdateChildNodeRequest.prototype, "listIri", void 0); __decorate([ JsonProperty("projectIri", String), __metadata("design:type", String) ], UpdateChildNodeRequest.prototype, "projectIri", void 0); __decorate([ JsonProperty("name", String, true), __metadata("design:type", String) ], UpdateChildNodeRequest.prototype, "name", void 0); __decorate([ JsonProperty("labels", [StringLiteral], true), __metadata("design:type", Array) ], UpdateChildNodeRequest.prototype, "labels", void 0); __decorate([ JsonProperty("comments", [StringLiteral], true), __metadata("design:type", Array) ], UpdateChildNodeRequest.prototype, "comments", void 0); UpdateChildNodeRequest = __decorate([ JsonObject("UpdateChildNodeRequest") ], UpdateChildNodeRequest); return UpdateChildNodeRequest; }()); export { UpdateChildNodeRequest }; //# sourceMappingURL=update-child-node-request.js.map