UNPKG

@elastic/elasticsearch

Version:
620 lines 26.9 kB
"use strict"; /* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); /* eslint-disable import/export */ /* eslint-disable @typescript-eslint/no-misused-new */ /* eslint-disable @typescript-eslint/no-extraneous-class */ /* eslint-disable @typescript-eslint/no-unused-vars */ // This file was automatically generated by elastic/elastic-client-generator-js // DO NOT MODIFY IT BY HAND. Instead, modify the source open api file, // and elastic/elastic-client-generator-js to regenerate this file again. const async_search_1 = tslib_1.__importDefault(require("./api/async_search")); const autoscaling_1 = tslib_1.__importDefault(require("./api/autoscaling")); const bulk_1 = tslib_1.__importDefault(require("./api/bulk")); const capabilities_1 = tslib_1.__importDefault(require("./api/capabilities")); const cat_1 = tslib_1.__importDefault(require("./api/cat")); const ccr_1 = tslib_1.__importDefault(require("./api/ccr")); const clear_scroll_1 = tslib_1.__importDefault(require("./api/clear_scroll")); const close_point_in_time_1 = tslib_1.__importDefault(require("./api/close_point_in_time")); const cluster_1 = tslib_1.__importDefault(require("./api/cluster")); const connector_1 = tslib_1.__importDefault(require("./api/connector")); const count_1 = tslib_1.__importDefault(require("./api/count")); const create_1 = tslib_1.__importDefault(require("./api/create")); const dangling_indices_1 = tslib_1.__importDefault(require("./api/dangling_indices")); const delete_1 = tslib_1.__importDefault(require("./api/delete")); const delete_by_query_1 = tslib_1.__importDefault(require("./api/delete_by_query")); const delete_by_query_rethrottle_1 = tslib_1.__importDefault(require("./api/delete_by_query_rethrottle")); const delete_script_1 = tslib_1.__importDefault(require("./api/delete_script")); const enrich_1 = tslib_1.__importDefault(require("./api/enrich")); const eql_1 = tslib_1.__importDefault(require("./api/eql")); const esql_1 = tslib_1.__importDefault(require("./api/esql")); const exists_1 = tslib_1.__importDefault(require("./api/exists")); const exists_source_1 = tslib_1.__importDefault(require("./api/exists_source")); const explain_1 = tslib_1.__importDefault(require("./api/explain")); const features_1 = tslib_1.__importDefault(require("./api/features")); const field_caps_1 = tslib_1.__importDefault(require("./api/field_caps")); const fleet_1 = tslib_1.__importDefault(require("./api/fleet")); const get_1 = tslib_1.__importDefault(require("./api/get")); const get_script_1 = tslib_1.__importDefault(require("./api/get_script")); const get_script_context_1 = tslib_1.__importDefault(require("./api/get_script_context")); const get_script_languages_1 = tslib_1.__importDefault(require("./api/get_script_languages")); const get_source_1 = tslib_1.__importDefault(require("./api/get_source")); const graph_1 = tslib_1.__importDefault(require("./api/graph")); const health_report_1 = tslib_1.__importDefault(require("./api/health_report")); const ilm_1 = tslib_1.__importDefault(require("./api/ilm")); const index_1 = tslib_1.__importDefault(require("./api/index")); const indices_1 = tslib_1.__importDefault(require("./api/indices")); const inference_1 = tslib_1.__importDefault(require("./api/inference")); const info_1 = tslib_1.__importDefault(require("./api/info")); const ingest_1 = tslib_1.__importDefault(require("./api/ingest")); const knn_search_1 = tslib_1.__importDefault(require("./api/knn_search")); const license_1 = tslib_1.__importDefault(require("./api/license")); const logstash_1 = tslib_1.__importDefault(require("./api/logstash")); const mget_1 = tslib_1.__importDefault(require("./api/mget")); const migration_1 = tslib_1.__importDefault(require("./api/migration")); const ml_1 = tslib_1.__importDefault(require("./api/ml")); const monitoring_1 = tslib_1.__importDefault(require("./api/monitoring")); const msearch_1 = tslib_1.__importDefault(require("./api/msearch")); const msearch_template_1 = tslib_1.__importDefault(require("./api/msearch_template")); const mtermvectors_1 = tslib_1.__importDefault(require("./api/mtermvectors")); const nodes_1 = tslib_1.__importDefault(require("./api/nodes")); const open_point_in_time_1 = tslib_1.__importDefault(require("./api/open_point_in_time")); const ping_1 = tslib_1.__importDefault(require("./api/ping")); const profiling_1 = tslib_1.__importDefault(require("./api/profiling")); const put_script_1 = tslib_1.__importDefault(require("./api/put_script")); const query_rules_1 = tslib_1.__importDefault(require("./api/query_rules")); const rank_eval_1 = tslib_1.__importDefault(require("./api/rank_eval")); const reindex_1 = tslib_1.__importDefault(require("./api/reindex")); const reindex_rethrottle_1 = tslib_1.__importDefault(require("./api/reindex_rethrottle")); const render_search_template_1 = tslib_1.__importDefault(require("./api/render_search_template")); const rollup_1 = tslib_1.__importDefault(require("./api/rollup")); const scripts_painless_execute_1 = tslib_1.__importDefault(require("./api/scripts_painless_execute")); const scroll_1 = tslib_1.__importDefault(require("./api/scroll")); const search_1 = tslib_1.__importDefault(require("./api/search")); const search_application_1 = tslib_1.__importDefault(require("./api/search_application")); const search_mvt_1 = tslib_1.__importDefault(require("./api/search_mvt")); const search_shards_1 = tslib_1.__importDefault(require("./api/search_shards")); const search_template_1 = tslib_1.__importDefault(require("./api/search_template")); const searchable_snapshots_1 = tslib_1.__importDefault(require("./api/searchable_snapshots")); const security_1 = tslib_1.__importDefault(require("./api/security")); const shutdown_1 = tslib_1.__importDefault(require("./api/shutdown")); const simulate_1 = tslib_1.__importDefault(require("./api/simulate")); const slm_1 = tslib_1.__importDefault(require("./api/slm")); const snapshot_1 = tslib_1.__importDefault(require("./api/snapshot")); const sql_1 = tslib_1.__importDefault(require("./api/sql")); const ssl_1 = tslib_1.__importDefault(require("./api/ssl")); const synonyms_1 = tslib_1.__importDefault(require("./api/synonyms")); const tasks_1 = tslib_1.__importDefault(require("./api/tasks")); const terms_enum_1 = tslib_1.__importDefault(require("./api/terms_enum")); const termvectors_1 = tslib_1.__importDefault(require("./api/termvectors")); const text_structure_1 = tslib_1.__importDefault(require("./api/text_structure")); const transform_1 = tslib_1.__importDefault(require("./api/transform")); const update_1 = tslib_1.__importDefault(require("./api/update")); const update_by_query_1 = tslib_1.__importDefault(require("./api/update_by_query")); const update_by_query_rethrottle_1 = tslib_1.__importDefault(require("./api/update_by_query_rethrottle")); const watcher_1 = tslib_1.__importDefault(require("./api/watcher")); const xpack_1 = tslib_1.__importDefault(require("./api/xpack")); const kAsyncSearch = Symbol('AsyncSearch'); const kAutoscaling = Symbol('Autoscaling'); const kCat = Symbol('Cat'); const kCcr = Symbol('Ccr'); const kCluster = Symbol('Cluster'); const kConnector = Symbol('Connector'); const kDanglingIndices = Symbol('DanglingIndices'); const kEnrich = Symbol('Enrich'); const kEql = Symbol('Eql'); const kEsql = Symbol('Esql'); const kFeatures = Symbol('Features'); const kFleet = Symbol('Fleet'); const kGraph = Symbol('Graph'); const kIlm = Symbol('Ilm'); const kIndices = Symbol('Indices'); const kInference = Symbol('Inference'); const kIngest = Symbol('Ingest'); const kLicense = Symbol('License'); const kLogstash = Symbol('Logstash'); const kMigration = Symbol('Migration'); const kMl = Symbol('Ml'); const kMonitoring = Symbol('Monitoring'); const kNodes = Symbol('Nodes'); const kProfiling = Symbol('Profiling'); const kQueryRules = Symbol('QueryRules'); const kRollup = Symbol('Rollup'); const kSearchApplication = Symbol('SearchApplication'); const kSearchableSnapshots = Symbol('SearchableSnapshots'); const kSecurity = Symbol('Security'); const kShutdown = Symbol('Shutdown'); const kSimulate = Symbol('Simulate'); const kSlm = Symbol('Slm'); const kSnapshot = Symbol('Snapshot'); const kSql = Symbol('Sql'); const kSsl = Symbol('Ssl'); const kSynonyms = Symbol('Synonyms'); const kTasks = Symbol('Tasks'); const kTextStructure = Symbol('TextStructure'); const kTransform = Symbol('Transform'); const kWatcher = Symbol('Watcher'); const kXpack = Symbol('Xpack'); class API { constructor() { Object.defineProperty(this, _a, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _b, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _c, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _d, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _e, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _f, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _g, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _h, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _j, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _k, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _l, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _m, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _o, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _p, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _q, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _r, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _s, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _t, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _u, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _v, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _w, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _x, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _y, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _z, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _0, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _1, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _2, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _3, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _4, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _5, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _6, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _7, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _8, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _9, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _10, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _11, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _12, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _13, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _14, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _15, { enumerable: true, configurable: true, writable: true, value: void 0 }); Object.defineProperty(this, _16, { enumerable: true, configurable: true, writable: true, value: void 0 }); this[kAsyncSearch] = null; this[kAutoscaling] = null; this[kCat] = null; this[kCcr] = null; this[kCluster] = null; this[kConnector] = null; this[kDanglingIndices] = null; this[kEnrich] = null; this[kEql] = null; this[kEsql] = null; this[kFeatures] = null; this[kFleet] = null; this[kGraph] = null; this[kIlm] = null; this[kIndices] = null; this[kInference] = null; this[kIngest] = null; this[kLicense] = null; this[kLogstash] = null; this[kMigration] = null; this[kMl] = null; this[kMonitoring] = null; this[kNodes] = null; this[kProfiling] = null; this[kQueryRules] = null; this[kRollup] = null; this[kSearchApplication] = null; this[kSearchableSnapshots] = null; this[kSecurity] = null; this[kShutdown] = null; this[kSimulate] = null; this[kSlm] = null; this[kSnapshot] = null; this[kSql] = null; this[kSsl] = null; this[kSynonyms] = null; this[kTasks] = null; this[kTextStructure] = null; this[kTransform] = null; this[kWatcher] = null; this[kXpack] = null; } } _a = kAsyncSearch, _b = kAutoscaling, _c = kCat, _d = kCcr, _e = kCluster, _f = kConnector, _g = kDanglingIndices, _h = kEnrich, _j = kEql, _k = kEsql, _l = kFeatures, _m = kFleet, _o = kGraph, _p = kIlm, _q = kIndices, _r = kInference, _s = kIngest, _t = kLicense, _u = kLogstash, _v = kMigration, _w = kMl, _x = kMonitoring, _y = kNodes, _z = kProfiling, _0 = kQueryRules, _1 = kRollup, _2 = kSearchApplication, _3 = kSearchableSnapshots, _4 = kSecurity, _5 = kShutdown, _6 = kSimulate, _7 = kSlm, _8 = kSnapshot, _9 = kSql, _10 = kSsl, _11 = kSynonyms, _12 = kTasks, _13 = kTextStructure, _14 = kTransform, _15 = kWatcher, _16 = kXpack; exports.default = API; API.prototype.bulk = bulk_1.default; API.prototype.capabilities = capabilities_1.default; API.prototype.clearScroll = clear_scroll_1.default; API.prototype.closePointInTime = close_point_in_time_1.default; API.prototype.count = count_1.default; API.prototype.create = create_1.default; API.prototype.delete = delete_1.default; API.prototype.deleteByQuery = delete_by_query_1.default; API.prototype.deleteByQueryRethrottle = delete_by_query_rethrottle_1.default; API.prototype.deleteScript = delete_script_1.default; API.prototype.exists = exists_1.default; API.prototype.existsSource = exists_source_1.default; API.prototype.explain = explain_1.default; API.prototype.fieldCaps = field_caps_1.default; API.prototype.get = get_1.default; API.prototype.getScript = get_script_1.default; API.prototype.getScriptContext = get_script_context_1.default; API.prototype.getScriptLanguages = get_script_languages_1.default; API.prototype.getSource = get_source_1.default; API.prototype.healthReport = health_report_1.default; API.prototype.index = index_1.default; API.prototype.info = info_1.default; API.prototype.knnSearch = knn_search_1.default; API.prototype.mget = mget_1.default; API.prototype.msearch = msearch_1.default; API.prototype.msearchTemplate = msearch_template_1.default; API.prototype.mtermvectors = mtermvectors_1.default; API.prototype.openPointInTime = open_point_in_time_1.default; API.prototype.ping = ping_1.default; API.prototype.putScript = put_script_1.default; API.prototype.rankEval = rank_eval_1.default; API.prototype.reindex = reindex_1.default; API.prototype.reindexRethrottle = reindex_rethrottle_1.default; API.prototype.renderSearchTemplate = render_search_template_1.default; API.prototype.scriptsPainlessExecute = scripts_painless_execute_1.default; API.prototype.scroll = scroll_1.default; API.prototype.search = search_1.default; API.prototype.searchMvt = search_mvt_1.default; API.prototype.searchShards = search_shards_1.default; API.prototype.searchTemplate = search_template_1.default; API.prototype.termsEnum = terms_enum_1.default; API.prototype.termvectors = termvectors_1.default; API.prototype.update = update_1.default; API.prototype.updateByQuery = update_by_query_1.default; API.prototype.updateByQueryRethrottle = update_by_query_rethrottle_1.default; Object.defineProperties(API.prototype, { asyncSearch: { get() { return this[kAsyncSearch] === null ? (this[kAsyncSearch] = new async_search_1.default(this.transport)) : this[kAsyncSearch]; } }, autoscaling: { get() { return this[kAutoscaling] === null ? (this[kAutoscaling] = new autoscaling_1.default(this.transport)) : this[kAutoscaling]; } }, cat: { get() { return this[kCat] === null ? (this[kCat] = new cat_1.default(this.transport)) : this[kCat]; } }, ccr: { get() { return this[kCcr] === null ? (this[kCcr] = new ccr_1.default(this.transport)) : this[kCcr]; } }, cluster: { get() { return this[kCluster] === null ? (this[kCluster] = new cluster_1.default(this.transport)) : this[kCluster]; } }, connector: { get() { return this[kConnector] === null ? (this[kConnector] = new connector_1.default(this.transport)) : this[kConnector]; } }, danglingIndices: { get() { return this[kDanglingIndices] === null ? (this[kDanglingIndices] = new dangling_indices_1.default(this.transport)) : this[kDanglingIndices]; } }, enrich: { get() { return this[kEnrich] === null ? (this[kEnrich] = new enrich_1.default(this.transport)) : this[kEnrich]; } }, eql: { get() { return this[kEql] === null ? (this[kEql] = new eql_1.default(this.transport)) : this[kEql]; } }, esql: { get() { return this[kEsql] === null ? (this[kEsql] = new esql_1.default(this.transport)) : this[kEsql]; } }, features: { get() { return this[kFeatures] === null ? (this[kFeatures] = new features_1.default(this.transport)) : this[kFeatures]; } }, fleet: { get() { return this[kFleet] === null ? (this[kFleet] = new fleet_1.default(this.transport)) : this[kFleet]; } }, graph: { get() { return this[kGraph] === null ? (this[kGraph] = new graph_1.default(this.transport)) : this[kGraph]; } }, ilm: { get() { return this[kIlm] === null ? (this[kIlm] = new ilm_1.default(this.transport)) : this[kIlm]; } }, indices: { get() { return this[kIndices] === null ? (this[kIndices] = new indices_1.default(this.transport)) : this[kIndices]; } }, inference: { get() { return this[kInference] === null ? (this[kInference] = new inference_1.default(this.transport)) : this[kInference]; } }, ingest: { get() { return this[kIngest] === null ? (this[kIngest] = new ingest_1.default(this.transport)) : this[kIngest]; } }, license: { get() { return this[kLicense] === null ? (this[kLicense] = new license_1.default(this.transport)) : this[kLicense]; } }, logstash: { get() { return this[kLogstash] === null ? (this[kLogstash] = new logstash_1.default(this.transport)) : this[kLogstash]; } }, migration: { get() { return this[kMigration] === null ? (this[kMigration] = new migration_1.default(this.transport)) : this[kMigration]; } }, ml: { get() { return this[kMl] === null ? (this[kMl] = new ml_1.default(this.transport)) : this[kMl]; } }, monitoring: { get() { return this[kMonitoring] === null ? (this[kMonitoring] = new monitoring_1.default(this.transport)) : this[kMonitoring]; } }, nodes: { get() { return this[kNodes] === null ? (this[kNodes] = new nodes_1.default(this.transport)) : this[kNodes]; } }, profiling: { get() { return this[kProfiling] === null ? (this[kProfiling] = new profiling_1.default(this.transport)) : this[kProfiling]; } }, queryRules: { get() { return this[kQueryRules] === null ? (this[kQueryRules] = new query_rules_1.default(this.transport)) : this[kQueryRules]; } }, rollup: { get() { return this[kRollup] === null ? (this[kRollup] = new rollup_1.default(this.transport)) : this[kRollup]; } }, searchApplication: { get() { return this[kSearchApplication] === null ? (this[kSearchApplication] = new search_application_1.default(this.transport)) : this[kSearchApplication]; } }, searchableSnapshots: { get() { return this[kSearchableSnapshots] === null ? (this[kSearchableSnapshots] = new searchable_snapshots_1.default(this.transport)) : this[kSearchableSnapshots]; } }, security: { get() { return this[kSecurity] === null ? (this[kSecurity] = new security_1.default(this.transport)) : this[kSecurity]; } }, shutdown: { get() { return this[kShutdown] === null ? (this[kShutdown] = new shutdown_1.default(this.transport)) : this[kShutdown]; } }, simulate: { get() { return this[kSimulate] === null ? (this[kSimulate] = new simulate_1.default(this.transport)) : this[kSimulate]; } }, slm: { get() { return this[kSlm] === null ? (this[kSlm] = new slm_1.default(this.transport)) : this[kSlm]; } }, snapshot: { get() { return this[kSnapshot] === null ? (this[kSnapshot] = new snapshot_1.default(this.transport)) : this[kSnapshot]; } }, sql: { get() { return this[kSql] === null ? (this[kSql] = new sql_1.default(this.transport)) : this[kSql]; } }, ssl: { get() { return this[kSsl] === null ? (this[kSsl] = new ssl_1.default(this.transport)) : this[kSsl]; } }, synonyms: { get() { return this[kSynonyms] === null ? (this[kSynonyms] = new synonyms_1.default(this.transport)) : this[kSynonyms]; } }, tasks: { get() { return this[kTasks] === null ? (this[kTasks] = new tasks_1.default(this.transport)) : this[kTasks]; } }, textStructure: { get() { return this[kTextStructure] === null ? (this[kTextStructure] = new text_structure_1.default(this.transport)) : this[kTextStructure]; } }, transform: { get() { return this[kTransform] === null ? (this[kTransform] = new transform_1.default(this.transport)) : this[kTransform]; } }, watcher: { get() { return this[kWatcher] === null ? (this[kWatcher] = new watcher_1.default(this.transport)) : this[kWatcher]; } }, xpack: { get() { return this[kXpack] === null ? (this[kXpack] = new xpack_1.default(this.transport)) : this[kXpack]; } } }); //# sourceMappingURL=index.js.map