@dasch-swiss/dsp-js
Version:
TypeScript client library for DSP-API
89 lines • 3.91 kB
JavaScript
import { __decorate, __metadata } from "tslib";
import { JsonObject, JsonProperty } from 'json2typescript';
import { Constants } from '../Constants';
import { DateTimeStampConverter } from '../custom-converters/date-time-stamp-converter';
import { HasCardinalityForPropertyConverter } from '../custom-converters/has-cardinality-for-property-converter';
import { StringLiteralToStringConverter } from '../custom-converters/string-literal-to-string-converter';
import { StringLiteralToStringLiteralArrayConverter } from '../custom-converters/string-literal-to-string-literal-array-converter';
import { SubClassOfConverter } from '../custom-converters/subclass-of-converter';
import { ClassDefinition } from './class-definition';
/**
* @category Model V2
*/
let ResourceClassDefinition = class ResourceClassDefinition extends ClassDefinition {
constructor() {
super(...arguments);
this.id = '';
this.subClassOf = [];
this.comment = undefined;
this.label = undefined;
this.propertiesList = [];
this.canBeInstantiated = false;
}
};
__decorate([
JsonProperty('@id', String),
__metadata("design:type", Object)
], ResourceClassDefinition.prototype, "id", void 0);
__decorate([
JsonProperty(Constants.SubClassOf, SubClassOfConverter),
__metadata("design:type", Array)
], ResourceClassDefinition.prototype, "subClassOf", void 0);
__decorate([
JsonProperty(Constants.Comment, String, true),
__metadata("design:type", String)
], ResourceClassDefinition.prototype, "comment", void 0);
__decorate([
JsonProperty(Constants.Label, String, true),
__metadata("design:type", String)
], ResourceClassDefinition.prototype, "label", void 0);
__decorate([
JsonProperty(Constants.SubClassOf, HasCardinalityForPropertyConverter),
__metadata("design:type", Array)
], ResourceClassDefinition.prototype, "propertiesList", void 0);
__decorate([
JsonProperty(Constants.CanBeInstantiated, Boolean, true),
__metadata("design:type", Object)
], ResourceClassDefinition.prototype, "canBeInstantiated", void 0);
ResourceClassDefinition = __decorate([
JsonObject('ResourceClassDefinition')
], ResourceClassDefinition);
export { ResourceClassDefinition };
/**
* @category Model V2
*/
let ResourceClassDefinitionWithAllLanguages = class ResourceClassDefinitionWithAllLanguages extends ResourceClassDefinition {
constructor() {
super(...arguments);
this.comment = undefined;
this.comments = [];
this.label = undefined;
this.labels = [];
this.lastModificationDate = undefined;
}
};
__decorate([
JsonProperty(Constants.Comment, StringLiteralToStringConverter, true),
__metadata("design:type", String)
], ResourceClassDefinitionWithAllLanguages.prototype, "comment", void 0);
__decorate([
JsonProperty(Constants.Comment, StringLiteralToStringLiteralArrayConverter, true),
__metadata("design:type", Array)
], ResourceClassDefinitionWithAllLanguages.prototype, "comments", void 0);
__decorate([
JsonProperty(Constants.Label, StringLiteralToStringConverter, true),
__metadata("design:type", String)
], ResourceClassDefinitionWithAllLanguages.prototype, "label", void 0);
__decorate([
JsonProperty(Constants.Label, StringLiteralToStringLiteralArrayConverter, true),
__metadata("design:type", Array)
], ResourceClassDefinitionWithAllLanguages.prototype, "labels", void 0);
__decorate([
JsonProperty(Constants.LastModificationDate, DateTimeStampConverter, true),
__metadata("design:type", String)
], ResourceClassDefinitionWithAllLanguages.prototype, "lastModificationDate", void 0);
ResourceClassDefinitionWithAllLanguages = __decorate([
JsonObject('ResourceClassDefinitionWithAllLanguages')
], ResourceClassDefinitionWithAllLanguages);
export { ResourceClassDefinitionWithAllLanguages };
//# sourceMappingURL=resource-class-definition.js.map