UNPKG

@dasch-swiss/dsp-js

Version:
83 lines 3.54 kB
import { __decorate, __metadata } from "tslib"; import { JsonObject, JsonProperty } from 'json2typescript'; import { Constants } from '../Constants'; import { IdConverter } from '../custom-converters/id-converter'; import { StringLiteralToStringConverter } from '../custom-converters/string-literal-to-string-converter'; import { StringLiteralToStringLiteralArrayConverter } from '../custom-converters/string-literal-to-string-literal-array-converter'; import { SubPropertyOfConverter } from '../custom-converters/subproperty-of-converter'; import { PropertyDefinition } from './property-definition'; /** * @category Model V2 */ let SystemPropertyDefinition = class SystemPropertyDefinition extends PropertyDefinition { constructor() { super(...arguments); this.id = ''; this.subPropertyOf = []; this.comment = undefined; this.label = undefined; this.subjectType = undefined; this.objectType = undefined; } }; __decorate([ JsonProperty('@id', String), __metadata("design:type", Object) ], SystemPropertyDefinition.prototype, "id", void 0); __decorate([ JsonProperty(Constants.SubPropertyOf, SubPropertyOfConverter, true), __metadata("design:type", Array) ], SystemPropertyDefinition.prototype, "subPropertyOf", void 0); __decorate([ JsonProperty(Constants.Comment, String, true), __metadata("design:type", String) ], SystemPropertyDefinition.prototype, "comment", void 0); __decorate([ JsonProperty(Constants.Label, String, true), __metadata("design:type", String) ], SystemPropertyDefinition.prototype, "label", void 0); __decorate([ JsonProperty(Constants.SubjectType, IdConverter, true), __metadata("design:type", String) ], SystemPropertyDefinition.prototype, "subjectType", void 0); __decorate([ JsonProperty(Constants.ObjectType, IdConverter, true), __metadata("design:type", String) ], SystemPropertyDefinition.prototype, "objectType", void 0); SystemPropertyDefinition = __decorate([ JsonObject('SystemPropertyDefinition') ], SystemPropertyDefinition); export { SystemPropertyDefinition }; /** * @category Model V2 */ let SystemPropertyDefinitionWithAllLanguages = class SystemPropertyDefinitionWithAllLanguages extends SystemPropertyDefinition { constructor() { super(...arguments); this.comment = undefined; this.comments = []; this.label = undefined; this.labels = []; } }; __decorate([ JsonProperty(Constants.Comment, StringLiteralToStringConverter, true), __metadata("design:type", String) ], SystemPropertyDefinitionWithAllLanguages.prototype, "comment", void 0); __decorate([ JsonProperty(Constants.Comment, StringLiteralToStringLiteralArrayConverter, true), __metadata("design:type", Array) ], SystemPropertyDefinitionWithAllLanguages.prototype, "comments", void 0); __decorate([ JsonProperty(Constants.Label, StringLiteralToStringConverter, true), __metadata("design:type", String) ], SystemPropertyDefinitionWithAllLanguages.prototype, "label", void 0); __decorate([ JsonProperty(Constants.Label, StringLiteralToStringLiteralArrayConverter, true), __metadata("design:type", Array) ], SystemPropertyDefinitionWithAllLanguages.prototype, "labels", void 0); SystemPropertyDefinitionWithAllLanguages = __decorate([ JsonObject('SystemPropertyDefinitionWithAllLanguages') ], SystemPropertyDefinitionWithAllLanguages); export { SystemPropertyDefinitionWithAllLanguages }; //# sourceMappingURL=system-property-definition.js.map