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/api/Operator.ts","dependencies":[{"path":"/data/src/api/Operator.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/src/internal/OnmsEnum.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}],"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 });\nvar OnmsEnum_1 = require(\"../internal/OnmsEnum\");\n/**\n * Represents a filter comparator.\n * @module Comparator\n */\n\nvar Operator = function (_OnmsEnum_1$OnmsEnum) {\n _inherits(Operator, _OnmsEnum_1$OnmsEnum);\n\n function Operator(id, label) {\n _classCallCheck(this, Operator);\n\n /** Aliases for the command-line. */\n var _this = _possibleConstructorReturn(this, (Operator.__proto__ || Object.getPrototypeOf(Operator)).call(this, id, label));\n\n _this.aliases = [];\n\n for (var _len = arguments.length, aliases = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n aliases[_key - 2] = arguments[_key];\n }\n\n _this.aliases = aliases;\n return _this;\n }\n /** Whether this comparator matches the given comparator string. */\n\n\n _createClass(Operator, [{\n key: \"matches\",\n value: function matches(comparator) {\n return comparator.toLowerCase() === this.label.toLowerCase() || this.aliases.indexOf(comparator) >= 0;\n }\n }]);\n\n return Operator;\n}(OnmsEnum_1.OnmsEnum);\n\nexports.Operator = Operator;\n/* tslint:disable:object-literal-sort-keys */\nvar Operators = {\n /** AND (all must match) */\n AND: new Operator(1, 'AND'),\n /** OR (at least one must match) */\n OR: new Operator(2, 'OR')\n};\n/** @hidden */\nvar frozen = Object.freeze(Operators);\nexports.Operators = frozen;",{"version":3,"file":"/data/src/api/Operator.ts","sourceRoot":"","sources":["/data/src/api/Operator.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,yBAA8C;AAE9C,AAGG,AACH;;;;;IAAsB;;;AAIpB,sBAAY,AAAU,IAAE,AAAa,AAAE;AACrC,AAAK;;AAJP,AAAoC;wHAI5B,AAAE,IAAE,AAAK,AAAC,AAAC;;AAHX,cAAO,UAAG,AAAc,AAAC;;;AAES,AAAiB;;;AAEzD,AAAI,cAAC,AAAO,UAAG,AAAO,AAAC,AACzB;;AAAC;AAED,AAAmE,AAC5D,AAAO;;;;;gCAAC,AAAkB;AAC/B,AAAM,mBAAE,AAAU,WAAC,AAAW,AAAE,kBAAK,AAAI,KAAC,AAAK,MAAC,AAAW,AAAE,AAAC,aAAvD,IACF,AAAI,KAAC,AAAO,QAAC,AAAO,QAAC,AAAU,AAAC,eAAI,AAAC,AAAC,AAC7C;AAAC,AACF;;;;EAd6B,WAAgB;;AAA9C,mBAcC;AAED,AAA6C;AAE7C,IAAM,AAAS;AACb,AAA2B;AAC3B,AAAG,SAAE,IAAI,AAAQ,SAAC,AAAC,GAAE,AAAK,AAAC;AAE3B,AAAmC;AACnC,AAAE,QAAE,IAAI,AAAQ,SAAC,AAAC,GAAE,AAAI,AAAC,AAC1B,AAAC;AANgB;AAQlB,AAAc;AACd,IAAM,AAAM,SAAG,AAAM,OAAC,AAAM,OAAC,AAAS,AAAC,AAAC;AAEtB,oBAAS","sourcesContent":["import {OnmsEnum} from '../internal/OnmsEnum';\n\n/**\n * Represents a filter comparator.\n * @module Comparator\n */\nexport class Operator extends OnmsEnum<number> {\n /** Aliases for the command-line. */\n private aliases = [] as string[];\n\n constructor(id: number, label: string, ...aliases: string[]) {\n super(id, label);\n this.aliases = aliases;\n }\n\n /** Whether this comparator matches the given comparator string. */\n public matches(comparator: string) {\n return (comparator.toLowerCase() === this.label.toLowerCase())\n || this.aliases.indexOf(comparator) >= 0;\n }\n}\n\n/* tslint:disable:object-literal-sort-keys */\n\nconst Operators = {\n /** AND (all must match) */\n AND: new Operator(1, 'AND'),\n\n /** OR (at least one must match) */\n OR: new Operator(2, 'OR'),\n};\n\n/** @hidden */\nconst frozen = Object.freeze(Operators);\n\nexport {frozen as Operators};\n"]}]}