UNPKG

@dasch-swiss/dsp-js

Version:
76 lines 2.97 kB
import { __decorate, __metadata } from "tslib"; import { JsonObject, JsonProperty } from 'json2typescript'; import { Constants } from '../../Constants'; import { IdConverter } from '../../custom-converters/id-converter'; import { StringLiteralToStringLiteralArrayConverter } from '../../custom-converters/string-literal-to-string-literal-array-converter'; import { SubClassOfConverter } from '../../custom-converters/subclass-of-converter'; /** * @category Model V2 */ let CreateResourceProperty = class CreateResourceProperty { constructor() { this.name = ''; this.subjectType = undefined; this.objectType = ''; this.label = []; this.comment = undefined; this.subPropertyOf = []; this.guiElement = undefined; this.guiAttributes = undefined; } }; __decorate([ JsonProperty(Constants.SubjectType, IdConverter, true), __metadata("design:type", String) ], CreateResourceProperty.prototype, "subjectType", void 0); __decorate([ JsonProperty(Constants.ObjectType, IdConverter), __metadata("design:type", Object) ], CreateResourceProperty.prototype, "objectType", void 0); __decorate([ JsonProperty(Constants.Label, StringLiteralToStringLiteralArrayConverter), __metadata("design:type", Array) ], CreateResourceProperty.prototype, "label", void 0); __decorate([ JsonProperty(Constants.Comment, StringLiteralToStringLiteralArrayConverter, true), __metadata("design:type", Array) ], CreateResourceProperty.prototype, "comment", void 0); __decorate([ JsonProperty(Constants.SubPropertyOf, SubClassOfConverter), __metadata("design:type", Array) ], CreateResourceProperty.prototype, "subPropertyOf", void 0); __decorate([ JsonProperty(Constants.GuiElement, IdConverter, true), __metadata("design:type", String) ], CreateResourceProperty.prototype, "guiElement", void 0); __decorate([ JsonProperty(Constants.GuiAttribute, [String], true), __metadata("design:type", Array) ], CreateResourceProperty.prototype, "guiAttributes", void 0); CreateResourceProperty = __decorate([ JsonObject('CreateResourceProperty') ], CreateResourceProperty); export { CreateResourceProperty }; /** * @category Internal */ let CreateResourcePropertyPayload = class CreateResourcePropertyPayload extends CreateResourceProperty { constructor() { super(...arguments); this.id = ''; this.type = Constants.ObjectProperty; } }; __decorate([ JsonProperty('@id', String), __metadata("design:type", Object) ], CreateResourcePropertyPayload.prototype, "id", void 0); __decorate([ JsonProperty('@type', String), __metadata("design:type", String) ], CreateResourcePropertyPayload.prototype, "type", void 0); CreateResourcePropertyPayload = __decorate([ JsonObject('CreateResourcePropertyPayload') ], CreateResourcePropertyPayload); export { CreateResourcePropertyPayload }; //# sourceMappingURL=create-resource-property.js.map