@wbg-mde/model
Version:
Metadata Editor Model Definitions
44 lines (43 loc) • 1.33 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class Cat {
constructor(cat) {
Object.assign(this, cat);
}
}
exports.Cat = Cat;
class CatDef {
constructor(catDef) {
this.ID = catDef.ID;
this.Desc = catDef.Desc;
this.Name = catDef.Name;
this.Type = catDef.Type;
this.Languages = catDef.Languages;
this.Cat = catDef.Cat || new Array();
}
}
exports.CatDef = CatDef;
class Group {
constructor(group) {
this.ID = group.ID;
this.Name = group.Name;
this.Desc = group.Desc;
this.Expanded = group.Expanded || false;
this.Group = group.Group || new Array();
this.CatDef = group.CatDef || new Array();
}
}
exports.Group = Group;
class CategoryRepository {
constructor(categoryRepository) {
this.Name = categoryRepository.Name;
this.Group = categoryRepository.Group || new Array();
this.CatDef = categoryRepository.CatDef || new Array();
}
}
exports.CategoryRepository = CategoryRepository;
var CatDefType;
(function (CatDefType) {
CatDefType[CatDefType["NUMERIC"] = 0] = "NUMERIC";
CatDefType[CatDefType["STRING"] = 1] = "STRING";
})(CatDefType = exports.CatDefType || (exports.CatDefType = {}));