{"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/OnmsResult.ts","dependencies":[{"path":"/data/src/api/OnmsResult.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\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * An [[IOnmsHTTP]] query result.\n * @module OnmsResult\n */\n\nvar OnmsResult = function () {\n    /**\n     * Construct a new result.\n     * @param data The payload of the response.\n     * @param message The status message associated with the result.\n     * @param code The response code of the response.\n     * @param type The request type of the response.\n     */\n    function OnmsResult(data, message, code, type) {\n        _classCallCheck(this, OnmsResult);\n\n        this.data = data;\n        this.message = message;\n        this.code = code;\n        this.type = type;\n    }\n    /** Create a new success result. */\n\n\n    _createClass(OnmsResult, [{\n        key: \"isSuccess\",\n\n        /** Whether this result is considered successful. */\n        value: function isSuccess() {\n            return this.code === 200 || this.code === 202 || this.code === 204;\n        }\n    }], [{\n        key: \"ok\",\n        value: function ok(response, message, code, type) {\n            return new OnmsResult(response, message || 'OK', code || 200, type);\n        }\n        /** Create a new \"No Content\" result. */\n\n    }, {\n        key: \"noContent\",\n        value: function noContent() {\n            // Use a null string for the data\n            return new OnmsResult(null, 'No Content', 204);\n        }\n    }]);\n\n    return OnmsResult;\n}();\n\nexports.OnmsResult = OnmsResult;",{"version":3,"file":"/data/src/api/OnmsResult.ts","sourceRoot":"","sources":["/data/node_modules/tslint-loader/index.js??ref--4-0!/data/src/api/OnmsResult.ts"],"names":[],"mappings":";;;;;;;AAAA,AAGG,AACH;;;;;;AAwBE,AAMG;;;;;;;AACH,wBAAY,AAAO,MAAE,AAAgB,SAAE,AAAa,MAAE,AAAa;;;AACjE,AAAI,aAAC,AAAI,OAAG,AAAI,AAAC;AACjB,AAAI,aAAC,AAAO,UAAG,AAAO,AAAC;AACvB,AAAI,aAAC,AAAI,OAAG,AAAI,AAAC;AACjB,AAAI,aAAC,AAAI,OAAG,AAAI,AAAC,AACnB;AAAC;AAnCD,AAAmC,AAC5B,AAAM,AAAC,AAAE;;;;;;AAoChB,AAAoD,AAC7C,AAAS;;AACd,AAAM,mBAAC,AAAI,KAAC,AAAI,SAAK,AAAG,OAAI,AAAI,KAAC,AAAI,SAAK,AAAG,OAAI,AAAI,KAAC,AAAI,SAAK,AAAG,AAAC,AACrE;AAAC,AACF;;;2BAxCkB,AAAa,UAAE,AAAgB,SAAE,AAAa,MAAE,AAAa;AAC5E,AAAM,mBAAC,IAAI,AAAU,WAAC,AAAQ,UAAE,AAAO,WAAI,AAAI,MAAE,AAAI,QAAI,AAAG,KAAE,AAAI,AAAC,AAAC,AACtE;AAAC;AAED,AAAwC,AACjC,AAAM,AAAC,AAAS;;;;;AACrB,AAAiC;AACjC,AAAM,mBAAC,IAAI,AAAU,WAAC,AAAI,MAAE,AAAY,cAAE,AAAG,AAAC,AAAC,AACjD;AAAC;;;;;;AAVH,qBA0CC","sourcesContent":["/**\n * An [[IOnmsHTTP]] query result.\n * @module OnmsResult\n */\nexport class OnmsResult<T> {\n  /** Create a new success result. */\n  public static ok(response: any, message?: string, code?: number, type?: string) {\n    return new OnmsResult(response, message || 'OK', code || 200, type);\n  }\n\n  /** Create a new \"No Content\" result. */\n  public static noContent() {\n    // Use a null string for the data\n    return new OnmsResult(null, 'No Content', 204);\n  }\n\n  /** The data, if any. */\n  public data: T;\n\n  /** The request type, if any. */\n  public type: string;\n\n  /** The status message associated with this result. */\n  public message: string;\n\n  /** The response code associated with this result. */\n  public code: number;\n\n  /**\n   * Construct a new result.\n   * @param data The payload of the response.\n   * @param message The status message associated with the result.\n   * @param code The response code of the response.\n   * @param type The request type of the response.\n   */\n  constructor(data: T, message?: string, code?: number, type?: string) {\n    this.data = data;\n    this.message = message;\n    this.code = code;\n    this.type = type;\n  }\n\n  /** Whether this result is considered successful. */\n  public isSuccess() {\n    return this.code === 200 || this.code === 202 || this.code === 204;\n  }\n}\n"]}]}