UNPKG

my-test123

Version:
112 lines 3.88 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { switchModel, modelService } from './common.model'; var GroupTypesModel = /** @class */ (function (_super) { __extends(GroupTypesModel, _super); function GroupTypesModel() { return _super !== null && _super.apply(this, arguments) || this; } return GroupTypesModel; }(modelService)); export { GroupTypesModel }; var WITGroupAttributes = /** @class */ (function () { function WITGroupAttributes() { } return WITGroupAttributes; }()); export { WITGroupAttributes }; var WorkItemRelations = /** @class */ (function () { function WorkItemRelations() { } return WorkItemRelations; }()); export { WorkItemRelations }; var TypeListData = /** @class */ (function () { function TypeListData() { } return TypeListData; }()); export { TypeListData }; var GroupTypeMapper = /** @class */ (function () { function GroupTypeMapper() { this.serviceToUiMapTree = [{ fromPath: ['id'], toPath: ['id'] }, { fromPath: ['attributes', 'name'], toPath: ['name'] }, { fromPath: ['attributes', 'bucket'], toPath: ['bucket'] }, { fromPath: ['attributes', 'level'], toPath: ['level'] }, { fromPath: ['attributes', 'icon'], toPath: ['icon'] }, { fromPath: ['attributes', 'sublevel'], toPath: ['sublevel'] }, { fromPath: ['attributes', 'group'], toPath: ['group'] }, { toPath: ['selected'], toValue: false }, { fromPath: ['attributes', 'show-in-sidebar'], toPath: ['showInSideBar'] }, { fromPath: ['relationships', 'typeList', 'data'], toPath: ['typeList'] }]; this.uiToServiceMapTree = [{ fromPath: ['id'], toPath: ['id'] }, { fromPath: ['name'], toPath: ['attributes', 'name'] }, { fromPath: ['bucket'], toPath: ['attributes', 'bucket'] }, { fromPath: ['level'], toPath: ['attributes', 'level'], }, { fromPath: ['icon'], toPath: ['attributes', 'icon'], }, { fromPath: ['sublevel'], toPath: ['attributes', 'sublevel'], }, { fromPath: ['group'], toPath: ['attributes', 'group'], }, { fromPath: ['showInSideBar'], toPath: ['attributes', 'show-in-sidebar'], }, { fromPath: ['typeList'], toPath: ['relationships', 'typeList', 'data'], }, { toPath: ['type'], toValue: 'grouptypes' }]; } GroupTypeMapper.prototype.toUIModel = function (arg) { return switchModel(arg, this.serviceToUiMapTree); }; GroupTypeMapper.prototype.toServiceModel = function (arg) { return switchModel(arg, this.uiToServiceMapTree); }; return GroupTypeMapper; }()); export { GroupTypeMapper }; //# sourceMappingURL=group-types.model.js.map