UNPKG

opennms

Version:

Client API for the OpenNMS network monitoring platform

1 lines 11.1 kB
{"remainingRequest":"/data/node_modules/babel-loader/lib/index.js!/data/node_modules/ts-loader/index.js!/data/src/api/NestedRestriction.ts","dependencies":[{"path":"/data/src/api/NestedRestriction.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/api/Operator.ts","mtime":1553611371624},{"path":"/data/src/api/Clause.ts","mtime":1553611371624},{"path":"/data/src/api/Restriction.ts","mtime":1553611371624},{"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 Operator_1 = require(\"./Operator\");\nvar Clause_1 = require(\"./Clause\");\n/**\n * Nested query restrictions.\n * @module NestedRestriction\n */\n\nvar NestedRestriction = function () {\n function NestedRestriction() {\n _classCallCheck(this, NestedRestriction);\n\n /** The clauses containing the nested restrictions and their logical operators. */\n this.clauses = [];\n\n for (var _len = arguments.length, clauses = Array(_len), _key = 0; _key < _len; _key++) {\n clauses[_key] = arguments[_key];\n }\n\n this.clauses = clauses;\n }\n /** Adds an additional restriction using the logical OR operator. */\n\n\n _createClass(NestedRestriction, [{\n key: \"withOrRestriction\",\n value: function withOrRestriction(restriction) {\n return this.withClause(new Clause_1.Clause(restriction, Operator_1.Operators.OR));\n }\n /** Adds an additional restriction using the logical AND operator. */\n\n }, {\n key: \"withAndRestriction\",\n value: function withAndRestriction(restriction) {\n return this.withClause(new Clause_1.Clause(restriction, Operator_1.Operators.AND));\n }\n /** Adds an additional clause. */\n\n }, {\n key: \"withClause\",\n value: function withClause(clause) {\n this.clauses.push(clause);\n return this;\n }\n }]);\n\n return NestedRestriction;\n}();\n\nexports.NestedRestriction = NestedRestriction;",{"version":3,"file":"/data/src/api/NestedRestriction.ts","sourceRoot":"","sources":["/data/src/api/NestedRestriction.ts"],"names":[],"mappings":";;;;;;;AAAA,yBAAqC;AACrC,uBAAgC;AAGhC,AAGG,AACH;;;;;;AAII,AAAY;;;AAHZ,AAAkF;AAC3E,aAAO,UAAG,AAAc,AAAC;;;AAEjB,AAAiB;;;AAC5B,AAAI,aAAC,AAAO,UAAG,AAAO,AAAC,AAC3B;AAAC;AAED,AAAoE,AAC7D,AAAiB;;;;;0CAAC,AAA0C;AAC/D,AAAM,mBAAC,AAAI,KAAC,AAAU,WAAC,IAAI,SAAM,OAAC,AAAW,aAAE,WAAS,UAAC,AAAE,AAAC,AAAC,AAAC,AAClE;AAAC;AAED,AAAqE,AAC9D,AAAkB;;;;2CAAC,AAA0C;AAChE,AAAM,mBAAC,AAAI,KAAC,AAAU,WAAC,IAAI,SAAM,OAAC,AAAW,aAAE,WAAS,UAAC,AAAG,AAAC,AAAC,AAAC,AACnE;AAAC;AAED,AAAiC,AACzB,AAAU;;;;mCAAC,AAAc;AAC7B,AAAI,iBAAC,AAAO,QAAC,AAAI,KAAC,AAAM,AAAC,AAAC;AAC1B,AAAM,mBAAC,AAAI,AAAC,AAChB;AAAC,AAEJ;;;;;;AAxBD,4BAwBC","sourcesContent":["import {Operators} from './Operator';\nimport {Clause} from './Clause';\nimport {Restriction} from './Restriction';\n\n/**\n * Nested query restrictions.\n * @module NestedRestriction\n */\nexport class NestedRestriction {\n /** The clauses containing the nested restrictions and their logical operators. */\n public clauses = [] as Clause[];\n\n constructor(...clauses: Clause[]) {\n this.clauses = clauses;\n }\n\n /** Adds an additional restriction using the logical OR operator. */\n public withOrRestriction(restriction: Restriction|NestedRestriction) {\n return this.withClause(new Clause(restriction, Operators.OR));\n }\n\n /** Adds an additional restriction using the logical AND operator. */\n public withAndRestriction(restriction: Restriction|NestedRestriction) {\n return this.withClause(new Clause(restriction, Operators.AND));\n }\n\n /** Adds an additional clause. */\n private withClause(clause: Clause) {\n this.clauses.push(clause);\n return this;\n }\n\n}\n"]}]}