opennms
Version:
Client API for the OpenNMS network monitoring platform
1 lines • 11.6 kB
JSON
{"remainingRequest":"/data/node_modules/babel-loader/lib/index.js!/data/node_modules/ts-loader/index.js!/data/src/model/OnmsCategory.ts","dependencies":[{"path":"/data/src/model/OnmsCategory.ts","mtime":1553611371628},{"path":"/data/node_modules/typescript-logging/dist/commonjs/typescript-logging.d.ts","mtime":1553611387808},{"path":"/data/node_modules/typescript-logging/dist/commonjs/control/LogGroupControl.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/control/CategoryServiceControl.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/extension/MessagesToExtensionJSON.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/extension/MessagesFromExtensionJSON.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/extension/ExtensionMessageJSON.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/extension/ExtensionHelper.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/AbstractCategoryLogger.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/LoggerOptions.d.ts","mtime":1553611387932},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryLogger.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryService.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryConsoleLoggerImpl.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryDelegateLoggerImpl.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/category/CategoryMessageBufferImpl.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/Logger.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/LoggerFactory.d.ts","mtime":1553611388004},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/LoggerFactoryService.d.ts","mtime":1553611388004},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/LoggerFactoryRuntimeSettings.d.ts","mtime":1553611388004},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/AbstractLogger.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/ConsoleLoggerImpl.d.ts","mtime":1553611388000},{"path":"/data/node_modules/typescript-logging/dist/commonjs/log/standard/MessageBufferLoggerImpl.d.ts","mtime":1553611388004},{"path":"/data/node_modules/typescript-logging/dist/commonjs/utils/DataStructures.d.ts","mtime":1553611387936},{"path":"/data/node_modules/typescript-logging/dist/commonjs/utils/JSONHelper.d.ts","mtime":1553611387936},{"path":"/data/node_modules/typescript-logging/dist/commonjs/utils/MessageUtils.d.ts","mtime":1553611387936},{"path":"/data/node_modules/moment/moment.d.ts","mtime":1553611386704},{"path":"/data/node_modules/axios/index.d.ts","mtime":1553611386356},{"path":"/data/typings/index.d.ts","mtime":1553611371628},{"path":"/data/node_modules/@types/fs-extra/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/node/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/node/inspector.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/glob/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/minimatch/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/glob/node_modules/@types/minimatch/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/handlebars/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/highlight.js/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/jest/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/jquery/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/lodash/index.d.ts","mtime":1553611386320},{"path":"/data/node_modules/@types/lodash/common/common.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/array.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/collection.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/date.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/function.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/lang.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/math.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/number.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/object.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/seq.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/string.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/lodash/common/util.d.ts","mtime":1553611386984},{"path":"/data/node_modules/@types/marked/index.d.ts","mtime":1553611386368},{"path":"/data/node_modules/@types/shelljs/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/@types/urijs/index.d.ts","mtime":1553611386380},{"path":"/data/node_modules/typescript/lib/lib.es2015.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.core.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.collection.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.generator.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.promise.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.iterable.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.symbol.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.proxy.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.reflect.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","mtime":1553611387384},{"path":"/data/node_modules/typescript/lib/lib.es5.d.ts","mtime":1553611387388},{"path":"/data/node_modules/typescript/lib/lib.dom.d.ts","mtime":1553611387384},{"path":"/data/src/api/IHasUrlValue.ts","mtime":1553611371624},{"path":"/data/src/api/Log.ts","mtime":1553611371624},{"path":"/data/node_modules/typescript-logging/dist/commonjs/typescript-logging.d.ts","mtime":1553611387808},{"path":"/data/.babelrc","mtime":1553611371556},{"path":"/data/node_modules/cache-loader/dist/cjs.js","mtime":1553611387012},{"path":"/data/node_modules/babel-loader/lib/index.js","mtime":1553611386992},{"path":"/data/node_modules/ts-loader/index.js","mtime":1553611386824}],"contextDependencies":[],"result":["\"use strict\";\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Log_1 = require(\"../api/Log\");\nvar typescript_logging_1 = require(\"typescript-logging\");\n/** @hidden */\nvar cat = new typescript_logging_1.Category('category', Log_1.catModel);\n/** @hidden */\nexports.Categories = {};\n/**\n * Represents an OpenNMS category.\n * @module OnmsCategory\n */\n\nvar OnmsCategory = function () {\n _createClass(OnmsCategory, null, [{\n key: \"for\",\n\n /** Get a singleton category object for the given category. */\n value: function _for(id, name) {\n if (exports.Categories[id]) {\n if (exports.Categories[id].name === name) {\n return exports.Categories[id];\n } else {\n Log_1.log.warn('Category ID ' + id + ' is already cached, but names do not match!' + ' (' + exports.Categories[id].name + ' != ' + name + ')', cat);\n }\n }\n exports.Categories[id] = new OnmsCategory(id, name);\n return exports.Categories[id];\n }\n /** Given an ID and name, construct a service type. */\n\n }]);\n\n function OnmsCategory(id, name) {\n _classCallCheck(this, OnmsCategory);\n\n this.id = id;\n this.name = name;\n }\n\n _createClass(OnmsCategory, [{\n key: \"urlValue\",\n get: function get() {\n return this.name;\n }\n }]);\n\n return OnmsCategory;\n}();\n\nexports.OnmsCategory = OnmsCategory;",{"version":3,"file":"/data/src/model/OnmsCategory.ts","sourceRoot":"","sources":["/data/src/model/OnmsCategory.ts"],"names":[],"mappings":";;;;;;;AAEA,oBAAyC;AACzC,mCAA4C;AAE5C,AAAc;AACd,IAAM,AAAG,MAAG,IAAI,qBAAQ,SAAC,AAAU,YAAE,MAAQ,AAAC,AAAC;AAE/C,AAAc;AACD,QAAA,AAAU,aAAG,AACzB,AAAC;AAEF,AAGG,AACH;;;;;;;;;AACE,AAA8D,AACvD,AAAM,AAAC,AAAG;6BAAC,AAAU,IAAE,AAAY;AACxC,AAAE,AAAC,gBAAC,QAAU,WAAC,AAAE,AAAC,AAAC,KAAC,AAAC;AACnB,AAAE,AAAC,oBAAC,QAAU,WAAC,AAAE,AAAC,IAAC,AAAI,SAAK,AAAI,AAAC,MAAC,AAAC;AACjC,AAAM,2BAAC,QAAU,WAAC,AAAE,AAAC,AAAC,AACxB;AAAC,AAAC,AAAI,uBAAC,AAAC;AACN,0BAAG,IAAC,AAAI,KAAC,AAAc,iBAAG,AAAE,KAAG,AAA6C,gDACxE,AAAI,OAAG,QAAU,WAAC,AAAE,AAAC,IAAC,AAAI,OAAG,AAAM,SAAG,AAAI,OAAG,AAAG,KAAE,AAAG,AAAC,AAAC,AAC7D;AAAC,AACH;AAAC;AACD,oBAAU,WAAC,AAAE,AAAC,MAAG,IAAI,AAAY,aAAC,AAAE,IAAE,AAAI,AAAC,AAAC;AAC5C,AAAM,mBAAC,QAAU,WAAC,AAAE,AAAC,AAAC,AACxB;AAAC;AAQD,AAAsD;;;;AACtD,0BAAY,AAAU,IAAE,AAAY;;;AAClC,AAAI,aAAC,AAAE,KAAG,AAAE,AAAC;AACb,AAAI,aAAC,AAAI,OAAG,AAAI,AAAC,AACnB;AAAC,AAED,AAAW,AAAQ;;;;;AACjB,AAAM,mBAAC,AAAI,KAAC,AAAI,AAAC,AACnB;AAAC,AACF;;;;;;AA9BD,uBA8BC","sourcesContent":["import {IHasUrlValue} from '../api/IHasUrlValue';\n\nimport {log, catModel} from '../api/Log';\nimport {Category} from 'typescript-logging';\n\n/** @hidden */\nconst cat = new Category('category', catModel);\n\n/** @hidden */\nexport const Categories = {\n};\n\n/**\n * Represents an OpenNMS category.\n * @module OnmsCategory\n */\nexport class OnmsCategory implements IHasUrlValue {\n /** Get a singleton category object for the given category. */\n public static for(id: number, name: string) {\n if (Categories[id]) {\n if (Categories[id].name === name) {\n return Categories[id];\n } else {\n log.warn('Category ID ' + id + ' is already cached, but names do not match!'\n + ' (' + Categories[id].name + ' != ' + name + ')', cat);\n }\n }\n Categories[id] = new OnmsCategory(id, name);\n return Categories[id];\n }\n\n /** The service ID. */\n public id: number;\n\n /** The service name. */\n public name: string;\n\n /** Given an ID and name, construct a service type. */\n constructor(id: number, name: string) {\n this.id = id;\n this.name = name;\n }\n\n public get urlValue() {\n return this.name;\n }\n}\n"]}]}