@dasch-swiss/dsp-js
Version:
TypeScript client library for DSP-API
78 lines • 2.41 kB
JavaScript
import { __decorate, __metadata } from "tslib";
import { JsonObject, JsonProperty } from 'json2typescript';
import { Constants } from '../../../Constants';
import { IdConverter } from '../../../custom-converters/id-converter';
import { ReadValue } from './read-value';
/**
* @category Model V2
*/
let ReadTextValue = class ReadTextValue extends ReadValue {
};
ReadTextValue = __decorate([
JsonObject('ReadTextValue')
], ReadTextValue);
export { ReadTextValue };
/**
* @category Model V2
*/
let ReadTextValueAsString = class ReadTextValueAsString extends ReadTextValue {
constructor() {
// TODO: query standoff, if any.
super(...arguments);
this.text = '';
}
};
__decorate([
JsonProperty(Constants.ValueAsString, String),
__metadata("design:type", Object)
], ReadTextValueAsString.prototype, "text", void 0);
ReadTextValueAsString = __decorate([
JsonObject('ReadTextValueAsString')
], ReadTextValueAsString);
export { ReadTextValueAsString };
/**
* @category Model V2
*/
let ReadTextValueAsXml = class ReadTextValueAsXml extends ReadTextValue {
constructor() {
super(...arguments);
this.xml = '';
this.mapping = '';
}
};
__decorate([
JsonProperty(Constants.TextValueAsXml, String),
__metadata("design:type", Object)
], ReadTextValueAsXml.prototype, "xml", void 0);
__decorate([
JsonProperty(Constants.TextValueHasMapping, IdConverter),
__metadata("design:type", Object)
], ReadTextValueAsXml.prototype, "mapping", void 0);
ReadTextValueAsXml = __decorate([
JsonObject('ReadTextValueAsXml')
], ReadTextValueAsXml);
export { ReadTextValueAsXml };
/**
* @category Model V2
*/
let ReadTextValueAsHtml = class ReadTextValueAsHtml extends ReadTextValue {
constructor() {
super(...arguments);
this.html = '';
// set xml value as optional to avoid breaking changes
this.xml = '';
}
};
__decorate([
JsonProperty(Constants.TextValueAsHtml, String),
__metadata("design:type", Object)
], ReadTextValueAsHtml.prototype, "html", void 0);
__decorate([
JsonProperty(Constants.TextValueAsXml, String, true),
__metadata("design:type", Object)
], ReadTextValueAsHtml.prototype, "xml", void 0);
ReadTextValueAsHtml = __decorate([
JsonObject('ReadTextValueAsHtml')
], ReadTextValueAsHtml);
export { ReadTextValueAsHtml };
//# sourceMappingURL=read-text-value.js.map