UNPKG

@dasch-swiss/dsp-js

Version:
65 lines 2.06 kB
import { __decorate, __metadata } from "tslib"; import { JsonObject, JsonProperty } from 'json2typescript'; import { StringLiteral } from './string-literal'; /** * A request to create a child node in a list. * * @category Model Admin */ let CreateChildNodeRequest = class CreateChildNodeRequest { constructor() { /** * The comments attached to the enclosing object. */ this.comments = undefined; /** * The labels attached to the enclosing object. */ this.labels = []; /** * The name of the enclosing object. */ this.name = undefined; /** * Provides a the IRI of a parent list node. */ this.parentNodeIri = ''; /** * The IRI of a project. */ this.projectIri = ''; /** * The position of the node. */ this.position = undefined; } }; __decorate([ JsonProperty('comments', [StringLiteral], true), __metadata("design:type", Array) ], CreateChildNodeRequest.prototype, "comments", void 0); __decorate([ JsonProperty('labels', [StringLiteral]), __metadata("design:type", Array) ], CreateChildNodeRequest.prototype, "labels", void 0); __decorate([ JsonProperty('name', String, true), __metadata("design:type", String) ], CreateChildNodeRequest.prototype, "name", void 0); __decorate([ JsonProperty('parentNodeIri', String), __metadata("design:type", Object) ], CreateChildNodeRequest.prototype, "parentNodeIri", void 0); __decorate([ JsonProperty('projectIri', String), __metadata("design:type", Object) ], CreateChildNodeRequest.prototype, "projectIri", void 0); __decorate([ JsonProperty('position', Number, true), __metadata("design:type", Number) ], CreateChildNodeRequest.prototype, "position", void 0); CreateChildNodeRequest = __decorate([ JsonObject('CreateChildNodeRequest') ], CreateChildNodeRequest); export { CreateChildNodeRequest }; //# sourceMappingURL=create-child-node-request.js.map