{"_id":"@cybernetex/kbn-es-query","_rev":"5-fe3b2cb7fb7bc808a50ec52aaa0bf5bc","time":{"1.0.0":"2019-08-17T01:44:59.797Z","created":"2019-08-17T01:48:07.804Z","1.0.1":"2019-08-17T01:48:08.239Z","modified":"2022-04-05T02:25:33.680Z","1.0.2":"2019-08-21T04:39:14.929Z"},"name":"@cybernetex/kbn-es-query","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@cybernetex/kbn-es-query","main":"target/server/index.js","browser":"target/public/index.js","version":"1.0.1","license":"Apache-2.0","scripts":{"build":"node scripts/build","kbn:bootstrap":"node scripts/build --source-maps","kbn:watch":"node scripts/build --source-maps --watch"},"dependencies":{"lodash":"npm:@elastic/lodash@3.10.1-kibana3","moment-timezone":"^0.5.14","@cybernetex/kbn-i18n":"1.0.0"},"devDependencies":{"@babel/cli":"7.4.4","@babel/core":"7.4.5","@babel/plugin-proposal-class-properties":"7.4.4","@babel/plugin-proposal-object-rest-spread":"7.4.4","@babel/preset-env":"7.4.5","@babel/preset-typescript":"7.3.3","@kbn/babel-preset":"1.0.0","@kbn/dev-utils":"1.0.0","@kbn/expect":"1.0.0","del":"^4.0.0","getopts":"^2.2.4","supports-color":"^7.0.0","typescript":"3.5.3"},"description":"This module is responsible for generating Elasticsearch queries for Kibana. See explanations below for each of the subdirectories.","_id":"@cybernetex/kbn-es-query@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.2","_npmUser":{"name":"freefood89","email":"freefood89@gmail.com"},"dist":{"integrity":"sha512-Ej/x7hdOh4J6fTSxJUK9VDnLRs6Lxerdc/+HK708qWUWmL2dqnXFRUNCLOdv19PgcQho7CTmHd8qBaohQ0KocQ==","shasum":"f1bc02eee7fd7281ca54563c9388f25e15347889","tarball":"https://registry.npmjs.org/@cybernetex/kbn-es-query/-/kbn-es-query-1.0.1.tgz","fileCount":230,"unpackedSize":694690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdV1zYCRA9TVsSAnZWagAAqLwQAIReXOthAfQ2rEpP4CYH\nOwnYFCVjVxnC3EULGy8kjWEMENN/13mNunFHKfDTtV74/lCOuhMmSMtEippK\np/OBxXkuNp70cA8x11cU57wdfN607QQnkHkz08TFTtHjM6/UoeRwpyjG3FcF\n0INC4LVtEDe3t63/aFuoDqHi67u4XDspUS0LD4YbRNGmO7tu5XwF8OFts7F5\n6q8qh/kefm7q3WFK4vYTyj9bwpgNFDF21/rmr4sNdv7PHslM3I6D1FouRAUi\neZEpmpthbeqmMPFljPxcjm/0oTiU/65ztUIuBFwD+c4EwqzGJgLJiddw0TaW\n9d5P0recxUXxjawN7NQvt2CSvYEgd1Z9ikEEHyvcwo/0lmQyV1WXEKxIP/jE\nBzB3SN/LvYj7zW9S1x3CupNwP8FDOyy0E4IVZskQ/Umt5nt77RlTe1Ws6YBP\nJFmHH+mW/L21C3M87QFPOPKkQeo2lKg0avNlYKoU3zee9+J2zYEjBh4AYlDz\nU6GBpMl4evGwmaDBc0Yy5CvipFEtl9UPo3K8jHbqw3d/5QCgRQFznb/Vlea6\n+ozY8CaSmwPqXEEyG42F0KrzJpOdoSymKNUnc3xLUBXzncgFxASEnuhKweSs\nSrfFyuFxSgmgrJaAbe82LYbGURHZQG390bWjORytmmFnCDaAeG8hcBbsrO6k\nNZk5\r\n=0QVp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvzk0EonsS0iBqWTf0KWEGFLTLgi49b/trSX0fwYwzeAIhAN4gtAMktrO0Bi9STRRySxTugLySPquOGBRvB9o+fQet"}]},"maintainers":[{"name":"freefood89","email":"freefood89@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kbn-es-query_1.0.1_1566006487982_0.7226748708778556"},"_hasShrinkwrap":false},"1.0.2":{"name":"@cybernetex/kbn-es-query","main":"target/server/index.js","browser":"target/public/index.js","version":"1.0.2","license":"Apache-2.0","scripts":{"build":"node scripts/build","kbn:bootstrap":"node scripts/build --source-maps","kbn:watch":"node scripts/build --source-maps --watch"},"dependencies":{"lodash":"npm:@elastic/lodash@3.10.1-kibana3","moment-timezone":"^0.5.14","@cybernetex/kbn-i18n":"1.0.0"},"devDependencies":{"@babel/cli":"7.4.4","@babel/core":"7.4.5","@babel/plugin-proposal-class-properties":"7.4.4","@babel/plugin-proposal-object-rest-spread":"7.4.4","@babel/preset-env":"7.4.5","@babel/preset-typescript":"7.3.3","@kbn/babel-preset":"1.0.0","@kbn/dev-utils":"1.0.0","@kbn/expect":"1.0.0","del":"^4.0.0","getopts":"^2.2.4","supports-color":"^7.0.0","typescript":"3.5.3"},"description":"This module is responsible for generating Elasticsearch queries for Kibana. See explanations below for each of the subdirectories.","_id":"@cybernetex/kbn-es-query@1.0.2","dist":{"shasum":"010adafe1af9df56d84786590af0e23f95b8c310","integrity":"sha512-ttQ783OdMJSgxX3TWVKEN8aj1i8/93KpAv1gpAPsB5GyHELJRc6iDTBhzgSXo1Sm7T+hhWNUqzWrXnjZ16d8LQ==","tarball":"https://registry.npmjs.org/@cybernetex/kbn-es-query/-/kbn-es-query-1.0.2.tgz","fileCount":279,"unpackedSize":694744,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdXMrzCRA9TVsSAnZWagAAPgsP/2gmcZk6H4C4VYkImGBY\nPgpe/fq+IGV3tLCcjMD0xI7EKbc8Xs3d9uTfFrmQ1uKh5/ZktOFhQvtM91Yi\n5/9I57vFHm9Nno/l01u6rBHGGQZZGeRZRk6IhKTAfygKLcpyy5mTamUoAh7N\nblEalVH66f88Qh2eybBoPiW2fS6RrMfvUj4wJ8APD1HyDnL4dpKKizZgWkBo\noiK4JT/ShZRu+gHkEveN/c7GLovE2SPNKgKeUYfScWKhnKwxy2T0hY5uoQjW\ndBXNZua7hsRMFL4looBQCE4nKwX/zBBgdzq5x+T09hgcKGSavqJM3JtXkplT\nhC9bE9xfPqifblfBWewT9tOcn7CiO0tWNBs+Z/YBYApFeqUb1jFRx8jTjnun\nG/dmVMPa5+UG1KIwR8TmHYH7zL2ZhPDmAjPi/zjVgXZEfTc5kTL81bH4hUOC\nUW3Ija5QcTtAlefTsvsx8LFKePZyrGDhvOvg8UUruCAFwtlQjhwNzN5i+HG2\nuQIf+4mzdZQFGYcEIx6RWd2I43A8yRjGXagCSOCHix567cPMtIui06vngeYU\n5b/j/yDh24nfBT8ahmv4XvoNWXs2bX+xOzLNqjxVQtLxwzZMQ5xXVaHRWrku\nrkvPHwR3VAACMUXc3r1g4pGporfUKNUaCuWB/rVY4zScINhxsfqSMGg2lLI6\n6uqd\r\n=OD1V\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID50vfrVFTlaYQdGG9e5DAi4s7SfHLAz/7DRSsCMHPgOAiAqVDf5+t31VWBcMDn8nrXbdx7e6V/aa/xWud1YbjusWA=="}]},"maintainers":[{"name":"freefood89","email":"freefood89@gmail.com"}],"_npmUser":{"name":"freefood89","email":"freefood89@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kbn-es-query_1.0.2_1566362354822_0.11357872099179445"},"_hasShrinkwrap":false}},"maintainers":[{"name":"freefood89","email":"freefood89@gmail.com"}],"description":"This module is responsible for generating Elasticsearch queries for Kibana. See explanations below for each of the subdirectories.","license":"Apache-2.0","readme":"# kbn-es-query\n\nThis module is responsible for generating Elasticsearch queries for Kibana. See explanations below for each of the subdirectories.\n\n## es_query\n\nThis folder contains the code that combines Lucene/KQL queries and filters into an Elasticsearch query.\n\n```javascript\nbuildEsQuery(indexPattern, queries, filters, config)\n```\n\nGenerates the Elasticsearch query DSL from combining the queries and filters provided.\n\n```javascript\nbuildQueryFromFilters(filters, indexPattern)\n```\n\nGenerates the Elasticsearch query DSL from the given filters.\n\n```javascript\nluceneStringToDsl(query)\n```\n\nGenerates the Elasticsearch query DSL from the given Lucene query.\n\n```javascript\nmigrateFilter(filter, indexPattern)\n```\n\nMigrates a filter from a previous version of Elasticsearch to the current version.\n\n```javascript\ndecorateQuery(query, queryStringOptions)\n```\n\nDecorates an Elasticsearch query_string query with the given options.\n\n## filters\n\nThis folder contains the code related to Kibana Filter objects, including their definitions, and helper functions to create them. Filters in Kibana always contain a `meta` property which describes which `index` the filter corresponds to, as well as additional data about the specific filter.\n\nThe object that is created by each of the following functions corresponds to a Filter object in the `lib` directory (e.g. `PhraseFilter`, `RangeFilter`, etc.)\n\n```javascript\nbuildExistsFilter(field, indexPattern)\n```\n\nCreates a filter (`ExistsFilter`) where the given field exists.\n\n```javascript\nbuildPhraseFilter(field, value, indexPattern)\n```\n\nCreates an filter (`PhraseFilter`) where the given field matches the given value.\n\n```javascript\nbuildPhrasesFilter(field, params, indexPattern)\n```\n\nCreates a filter (`PhrasesFilter`) where the given field matches one or more of the given values. `params` should be an array of values. \n\n```javascript\nbuildQueryFilter(query, index)\n```\n\nCreates a filter (`CustomFilter`) corresponding to a raw Elasticsearch query DSL object.\n\n```javascript\nbuildRangeFilter(field, params, indexPattern)\n```\n\nCreates a filter (`RangeFilter`) where the value for the given field is in the given range. `params` should contain `lt`, `lte`, `gt`, and/or `gte`.\n\n## kuery\n\nThis folder contains the code corresponding to generating Elasticsearch queries using the Kibana query language.\n\nIn general, you will only need to worry about the following functions from the `ast` folder:\n\n```javascript\nfromExpression(expression)\n```\n\nGenerates an abstract syntax tree corresponding to the raw Kibana query `expression`. \n\n```javascript\ntoElasticsearchQuery(node, indexPattern)\n```\n\nTakes an abstract syntax tree (generated from the previous method) and generates the Elasticsearch query DSL using the given `indexPattern`. Note that if no `indexPattern` is provided, then an Elasticsearch query DSL will still be generated, ignoring things like the index pattern scripted fields, field types, etc.\n\n","readmeFilename":"README.md"}