opennms
Version:
Client API for the OpenNMS network monitoring platform
1 lines • 12.9 kB
JSON
{"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/api/OnmsError.ts","dependencies":[{"path":"/data/src/api/OnmsError.ts","mtime":1553611371624},{"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/.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\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Represents an OpenNMS.js error.\n * @module OnmsError\n */\n\nvar OnmsError = function (_Error) {\n _inherits(OnmsError, _Error);\n\n _createClass(OnmsError, [{\n key: \"code\",\n\n /** The error code associated with this error. */\n get: function get() {\n return this.statusCode;\n }\n /**\n * Create a new error.\n * @constructor\n * @param message - The error message.\n * @param code - An optional error code to associate with the error.\n */\n\n }]);\n\n function OnmsError(message, code, options, data) {\n _classCallCheck(this, OnmsError);\n\n var _this = _possibleConstructorReturn(this, (OnmsError.__proto__ || Object.getPrototypeOf(OnmsError)).call(this, message));\n\n _this.name = _this.constructor.name;\n _this.statusCode = code;\n _this.data = data;\n _this.options = options;\n if (typeof Error.captureStackTrace === 'function') {\n Error.captureStackTrace(_this, _this.constructor);\n } else {\n _this.stack = new Error(message).stack;\n }\n // workaround, see http://bit.ly/2vllGdD\n Object.setPrototypeOf(_this, OnmsError.prototype);\n return _this;\n }\n /**\n * Returns a string representation of this error.\n */\n\n\n _createClass(OnmsError, [{\n key: \"toString\",\n value: function toString() {\n if (this.code) {\n return 'Error ' + this.code + ': ' + this.message;\n } else {\n return 'Error: ' + this.message;\n }\n }\n }]);\n\n return OnmsError;\n}(Error);\n\nexports.OnmsError = OnmsError;",{"version":3,"file":"/data/src/api/OnmsError.ts","sourceRoot":"","sources":["/data/node_modules/tslint-loader/index.js??ref--4-0!/data/src/api/OnmsError.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,AAGG,AACH;;;;;IAAuB;;;;;;AAiBrB,AAAiD,AACjD,AAAW,AAAI;;AACb,AAAM,mBAAC,AAAI,KAAC,AAAU,AAAC,AACzB;AAAC;AAED,AAKG;;;;;;;;;AACH,uBAAY,AAAe,SAAE,AAAa,MAAE,AAAa,SAAE,AAAU;AACjE,AAAK;;0HAAC,AAAO,AAAC,AAAC;;AACf,AAAI,cAAC,AAAI,OAAG,AAAI,MAAC,AAAW,YAAC,AAAI,AAAC;AAClC,AAAI,cAAC,AAAU,aAAG,AAAI,AAAC;AACvB,AAAI,cAAC,AAAI,OAAG,AAAI,AAAC;AACjB,AAAI,cAAC,AAAO,UAAG,AAAO,AAAC;AACvB,AAAE,AAAC,YAAC,OAAO,AAAK,MAAC,AAAiB,sBAAK,AAAU,AAAC,YAAC,AAAC;AAChD,AAAK,kBAAC,AAAiB,AAAC,AAAI,yBAAE,AAAI,MAAC,AAAW,AAAC,AAAC,AACpD;AAAC,AAAC,AAAI,eAAC,AAAC;AACJ,AAAI,kBAAC,AAAK,QAAI,IAAI,AAAK,MAAC,AAAO,AAAC,AAAC,QAApB,CAAqB,AAAK,AAAC,AAC5C;AAAC;AACD,AAAwC;AACxC,AAAM,eAAC,AAAc,AAAC,AAAI,sBAAE,AAAS,UAAC,AAAS,AAAC,AAAC,AACrD;;AAAC;AAED,AAEG,AACI,AAAQ;;;;;;;;AACb,AAAE,AAAC,gBAAC,AAAI,KAAC,AAAI,AAAC,MAAC,AAAC;AACd,AAAM,uBAAC,AAAQ,WAAG,AAAI,KAAC,AAAI,OAAG,AAAI,OAAG,AAAI,KAAC,AAAO,AAAC,AACpD;AAAC,AAAC,AAAI,mBAAC,AAAC;AACN,AAAM,uBAAC,AAAS,YAAG,AAAI,KAAC,AAAO,AAAC,AAClC;AAAC,AACH;AAAC,AACF;;;;EArD8B,AAAK;;AAApC,oBAqDC","sourcesContent":["/**\n * Represents an OpenNMS.js error.\n * @module OnmsError\n */\nexport class OnmsError extends Error {\n /**\n * The response status code, if any.\n * @hidden\n */\n private statusCode: number;\n\n /**\n * The data (payload) associated with a response.\n */\n private data: any;\n\n /**\n * The options provided as part of the request that resulted in this erro.\n */\n private options: any;\n\n /** The error code associated with this error. */\n public get code() {\n return this.statusCode;\n }\n\n /**\n * Create a new error.\n * @constructor\n * @param message - The error message.\n * @param code - An optional error code to associate with the error.\n */\n constructor(message: string, code?: number, options?: any, data?: any) {\n super(message);\n this.name = this.constructor.name;\n this.statusCode = code;\n this.data = data;\n this.options = options;\n if (typeof Error.captureStackTrace === 'function') {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error(message)).stack;\n }\n // workaround, see http://bit.ly/2vllGdD\n Object.setPrototypeOf(this, OnmsError.prototype);\n }\n\n /**\n * Returns a string representation of this error.\n */\n public toString() {\n if (this.code) {\n return 'Error ' + this.code + ': ' + this.message;\n } else {\n return 'Error: ' + this.message;\n }\n }\n}\n"]}]}