UNPKG

opennms

Version:

Client API for the OpenNMS network monitoring platform

1 lines 12.4 kB
{"remainingRequest":"/data/node_modules/babel-loader/lib/index.js!/data/node_modules/ts-loader/index.js!/data/node_modules/tslint-loader/index.js??ref--4-0!/data/src/model/OnmsParm.ts","dependencies":[{"path":"/data/src/model/OnmsParm.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/internal/Util.ts","mtime":1553611371628},{"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},{"path":"/data/node_modules/tslint-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 Util_1 = require(\"../internal/Util\");\n/**\n * Represents an OpenNMS event or alarm parameter.\n * @module OnmsParm\n */\n\nvar OnmsParm = function () {\n _createClass(OnmsParm, [{\n key: \"value\",\n\n /** the value coerced to a native type (if possible) */\n get: function get() {\n switch (this.type) {\n // numeric types\n case 'Counter32':\n case 'Counter64':\n case 'Gauge32':\n case 'Gauge64':\n case 'Int32':\n case 'Int64':\n case 'TimeTicks':\n return parseInt(this.type, 10);\n // other types\n case 'Null':\n return null;\n case 'IpAddress':\n return Util_1.Util.toIPAddress(this.valueString);\n // everything else is a string\n case 'ObjectIdentifier':\n case 'OctetString':\n case 'Opaque':\n case 'string':\n default:\n return this.valueString;\n }\n }\n }]);\n\n function OnmsParm(name, type, value) {\n _classCallCheck(this, OnmsParm);\n\n this.name = name;\n this.type = type;\n this.valueString = value;\n }\n /**\n * The string value of this parameter.\n */\n\n\n _createClass(OnmsParm, [{\n key: \"toString\",\n value: function toString() {\n return this.valueString;\n }\n /**\n * The value of this parameter to be used when serializing to a URL.\n */\n\n }, {\n key: \"urlValue\",\n get: function get() {\n return this.valueString;\n }\n }]);\n\n return OnmsParm;\n}();\n\nexports.OnmsParm = OnmsParm;",{"version":3,"file":"/data/src/model/OnmsParm.ts","sourceRoot":"","sources":["/data/node_modules/tslint-loader/index.js??ref--4-0!/data/src/model/OnmsParm.ts"],"names":[],"mappings":";;;;;;;AAEA,qBAAsC;AAEtC,AAGG,AACH;;;;;;;;;AAUE,AAAuD,AACvD,AAAW,AAAK;;AACd,AAAM,AAAC,oBAAC,AAAI,KAAC,AAAI,AAAC,AAAC,AAAC;AAClB,AAAgB;AAChB,qBAAK,AAAW,AAAC;AACjB,qBAAK,AAAW,AAAC;AACjB,qBAAK,AAAS,AAAC;AACf,qBAAK,AAAS,AAAC;AACf,qBAAK,AAAO,AAAC;AACb,qBAAK,AAAO,AAAC;AACb,qBAAK,AAAW;AACd,AAAM,2BAAC,AAAQ,SAAC,AAAI,KAAC,AAAI,MAAE,AAAE,AAAC,AAAC;AAEjC,AAAc;AACd,qBAAK,AAAM;AAAE,AAAM,2BAAC,AAAI,AAAC;AACzB,qBAAK,AAAW;AAAE,AAAM,2BAAC,OAAI,KAAC,AAAW,YAAC,AAAI,KAAC,AAAW,AAAC,AAAC;AAE5D,AAA8B;AAC9B,qBAAK,AAAkB,AAAC;AACxB,qBAAK,AAAa,AAAC;AACnB,qBAAK,AAAQ,AAAC;AACd,qBAAK,AAAQ,AAAC;AACd;AAAS,AAAM,2BAAC,AAAI,KAAC,AAAW,AAAC,AACnC,AAAC,AACH;;AAAC;;;AAED,sBAAY,AAAY,MAAE,AAAY,MAAE,AAAa;;;AACnD,AAAI,aAAC,AAAI,OAAG,AAAI,AAAC;AACjB,AAAI,aAAC,AAAI,OAAG,AAAI,AAAC;AACjB,AAAI,aAAC,AAAW,cAAG,AAAK,AAAC,AAC3B;AAAC;AAED,AAEG,AACI,AAAQ;;;;;;;;AACb,AAAM,mBAAC,AAAI,KAAC,AAAW,AAAC,AAC1B;AAAC;AAED,AAEG,AACH,AAAW,AAAQ;;;;;;;AACjB,AAAM,mBAAC,AAAI,KAAC,AAAW,AAAC,AAC1B;AAAC,AACF;;;;;;AAvDD,mBAuDC","sourcesContent":["import {IHasUrlValue} from '../api/IHasUrlValue';\n\nimport {Util} from '../internal/Util';\n\n/**\n * Represents an OpenNMS event or alarm parameter.\n * @module OnmsParm\n */\nexport class OnmsParm implements IHasUrlValue {\n /** the name of the parm */\n public name: string;\n\n /** the raw parm value from the server (as a string) */\n public valueString: string;\n\n /** the parm type */\n public type: string;\n\n /** the value coerced to a native type (if possible) */\n public get value() {\n switch (this.type) {\n // numeric types\n case 'Counter32':\n case 'Counter64':\n case 'Gauge32':\n case 'Gauge64':\n case 'Int32':\n case 'Int64':\n case 'TimeTicks':\n return parseInt(this.type, 10);\n\n // other types\n case 'Null': return null;\n case 'IpAddress': return Util.toIPAddress(this.valueString);\n\n // everything else is a string\n case 'ObjectIdentifier':\n case 'OctetString':\n case 'Opaque':\n case 'string':\n default: return this.valueString;\n }\n }\n\n constructor(name: string, type: string, value: string) {\n this.name = name;\n this.type = type;\n this.valueString = value;\n }\n\n /**\n * The string value of this parameter.\n */\n public toString(): string {\n return this.valueString;\n }\n\n /**\n * The value of this parameter to be used when serializing to a URL.\n */\n public get urlValue() {\n return this.valueString;\n }\n}\n"]}]}