From 6cc7978851081ecc9d49e902eacd29ab4a90146d Mon Sep 17 00:00:00 2001 From: "elastic-renovate-prod[bot]" <174716857+elastic-renovate-prod[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 23:06:53 +0000 Subject: [PATCH 1/3] Update dependency @elastic/elasticsearch to ^8.16.0 --- package.json | 2 +- yarn.lock | 142 ++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 136 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index fb6b8b093560c..c0ec8b3995a49 100644 --- a/package.json +++ b/package.json @@ -116,7 +116,7 @@ "@elastic/datemath": "5.0.3", "@elastic/ebt": "^1.1.1", "@elastic/ecs": "^8.11.1", - "@elastic/elasticsearch": "^8.15.2", + "@elastic/elasticsearch": "^8.16.0", "@elastic/ems-client": "8.5.3", "@elastic/eui": "97.3.1", "@elastic/filesaver": "1.1.2", diff --git a/yarn.lock b/yarn.lock index 2dd177d56de3c..bb99f6dab085c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1721,12 +1721,13 @@ "@elastic/transport" "^8.3.1" tslib "^2.4.0" -"@elastic/elasticsearch@^8.15.2": - version "8.15.2" - resolved "https://registry.yarnpkg.com/@elastic/elasticsearch/-/elasticsearch-8.15.2.tgz#024e3617b0d1db6425b369a7176d3514598e4c9e" - integrity sha512-DTvjK4bs4WkgdQkXZJx2eVcwKzF1it/PyGT3rl1ReUNIWbkzMEKksiDQK3wY1U3WHT4zTuWQi4GrDOC1w5ej8Q== +"@elastic/elasticsearch@^8.16.0": + version "8.16.0" + resolved "https://registry.yarnpkg.com/@elastic/elasticsearch/-/elasticsearch-8.16.0.tgz#35c6729e15684154b8b3c391cfad34877d771cf0" + integrity sha512-uiPC6AePESl/jakx+ZLarLsLdxDHiCSrpAkkXJ5Q8A78vadEQsTGXRUVFwWWkS8gfGthnT3O+QK6BHXuszd0KQ== dependencies: - "@elastic/transport" "^8.8.1" + "@elastic/transport" "^8.9.1" + apache-arrow "^18.0.0" tslib "^2.4.0" "@elastic/ems-client@8.5.3": @@ -1906,7 +1907,7 @@ undici "^5.28.3" yaml "^2.2.2" -"@elastic/transport@^8.3.1", "@elastic/transport@^8.8.1": +"@elastic/transport@^8.3.1": version "8.8.1" resolved "https://registry.yarnpkg.com/@elastic/transport/-/transport-8.8.1.tgz#d64244907bccdad5626c860b492faeef12194b1f" integrity sha512-4RQIiChwNIx3B0O+2JdmTq/Qobj6+1g2RQnSv1gt4V2SVfAYjGwOKu0ZMKEHQOXYNG6+j/Chero2G9k3/wXLEw== @@ -1919,6 +1920,19 @@ tslib "^2.4.0" undici "^6.12.0" +"@elastic/transport@^8.9.1": + version "8.9.1" + resolved "https://registry.yarnpkg.com/@elastic/transport/-/transport-8.9.1.tgz#1acc090ac45903a3d5a8b7269f6ba6410108dc0a" + integrity sha512-jasKNQeOb1vNf9aEYg+8zXmetaFjApDTSCC4QTl6aTixvyiRiSLcCiB8P6Q0lY9JIII/BhqNl8WbpFnsKitntw== + dependencies: + "@opentelemetry/api" "1.x" + debug "^4.3.4" + hpagent "^1.0.0" + ms "^2.1.3" + secure-json-parse "^2.4.0" + tslib "^2.4.0" + undici "^6.12.0" + "@emotion/babel-plugin-jsx-pragmatic@^0.2.1": version "0.2.1" resolved "https://registry.yarnpkg.com/@emotion/babel-plugin-jsx-pragmatic/-/babel-plugin-jsx-pragmatic-0.2.1.tgz#01d3306fde73b60d683f78f3bd9f6b2c919b63b6" @@ -9848,6 +9862,13 @@ regenerator-runtime "^0.13.7" resolve-from "^5.0.0" +"@swc/helpers@^0.5.11": + version "0.5.15" + resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.15.tgz#79efab344c5819ecf83a43f3f9f811fc84b516d7" + integrity sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g== + dependencies: + tslib "^2.8.0" + "@szmarczak/http-timer@^4.0.5": version "4.0.5" resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-4.0.5.tgz#bfbd50211e9dfa51ba07da58a14cdfd333205152" @@ -10304,6 +10325,16 @@ dependencies: "@types/color-convert" "*" +"@types/command-line-args@^5.2.3": + version "5.2.3" + resolved "https://registry.yarnpkg.com/@types/command-line-args/-/command-line-args-5.2.3.tgz#553ce2fd5acf160b448d307649b38ffc60d39639" + integrity sha512-uv0aG6R0Y8WHZLTamZwtfsDLVRnOa+n+n5rEvFWL5Na5gZ8V2Teab/duDPFzIIIhs9qizDpcavCusCLJZu62Kw== + +"@types/command-line-usage@^5.0.4": + version "5.0.4" + resolved "https://registry.yarnpkg.com/@types/command-line-usage/-/command-line-usage-5.0.4.tgz#374e4c62d78fbc5a670a0f36da10235af879a0d5" + integrity sha512-BwR5KP3Es/CSht0xqBcUXS3qCAUVXwpRKsV2+arxeb65atasuXG9LykC9Ab10Cw3s2raH92ZqOeILaQbsB2ACg== + "@types/connect-history-api-fallback@^1.3.5": version "1.3.5" resolved "https://registry.yarnpkg.com/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.3.5.tgz#d1f7a8a09d0ed5a57aee5ae9c18ab9b803205dae" @@ -11002,7 +11033,7 @@ dependencies: "@types/node" "*" -"@types/node@*", "@types/node@14 || 16 || 17", "@types/node@20.10.5", "@types/node@>= 8", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@>=18.0.0", "@types/node@^14.0.10 || ^16.0.0", "@types/node@^14.14.20 || ^16.0.0", "@types/node@^18.0.0", "@types/node@^18.11.18": +"@types/node@*", "@types/node@14 || 16 || 17", "@types/node@20.10.5", "@types/node@>= 8", "@types/node@>=12.12.47", "@types/node@>=13.7.0", "@types/node@>=18.0.0", "@types/node@^14.0.10 || ^16.0.0", "@types/node@^14.14.20 || ^16.0.0", "@types/node@^18.0.0", "@types/node@^18.11.18", "@types/node@^20.13.0": version "20.10.5" resolved "https://registry.yarnpkg.com/@types/node/-/node-20.10.5.tgz#47ad460b514096b7ed63a1dae26fad0914ed3ab2" integrity sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw== @@ -12507,6 +12538,21 @@ anymatch@^3.0.0, anymatch@^3.0.3, anymatch@^3.1.3, anymatch@~3.1.2: normalize-path "^3.0.0" picomatch "^2.0.4" +apache-arrow@^18.0.0: + version "18.0.0" + resolved "https://registry.yarnpkg.com/apache-arrow/-/apache-arrow-18.0.0.tgz#a187bd55318a7a68b6ff09835d05e89e019eba2e" + integrity sha512-gFlPaqN9osetbB83zC29AbbZqGiCuFH1vyyPseJ+B7SIbfBtESV62mMT/CkiIt77W6ykC/nTWFzTXFs0Uldg4g== + dependencies: + "@swc/helpers" "^0.5.11" + "@types/command-line-args" "^5.2.3" + "@types/command-line-usage" "^5.0.4" + "@types/node" "^20.13.0" + command-line-args "^5.2.1" + command-line-usage "^7.0.1" + flatbuffers "^24.3.25" + json-bignum "^0.0.3" + tslib "^2.6.2" + app-module-path@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/app-module-path/-/app-module-path-2.2.0.tgz#641aa55dfb7d6a6f0a8141c4b9c0aa50b6c24dd5" @@ -12668,6 +12714,16 @@ arr-union@^3.1.0: resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= +array-back@^3.0.1, array-back@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/array-back/-/array-back-3.1.0.tgz#b8859d7a508871c9a7b2cf42f99428f65e96bfb0" + integrity sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q== + +array-back@^6.2.2: + version "6.2.2" + resolved "https://registry.yarnpkg.com/array-back/-/array-back-6.2.2.tgz#f567d99e9af88a6d3d2f9dfcc21db6f9ba9fd157" + integrity sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw== + array-buffer-byte-length@^1.0.0, array-buffer-byte-length@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz#1e5583ec16763540a27ae52eed99ff899223568f" @@ -14051,6 +14107,13 @@ ccount@^1.0.0: resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.0.5.tgz#ac82a944905a65ce204eb03023157edf29425c17" integrity sha512-MOli1W+nfbPLlKEhInaxhRdp7KVLFxLN5ykwzHgLsLI3H3gs5jjFAK4Eoj3OzzcxCtumDaI8onoVDeQyWaNTkw== +chalk-template@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/chalk-template/-/chalk-template-0.4.0.tgz#692c034d0ed62436b9062c1707fadcd0f753204b" + integrity sha512-/ghrgmhfY8RaSdeo43hNXxpoHAtxdbskUHjPpfqUWGttFgycUhYPGx3YZBCnUCvOa7Doivn1IZec3DEGFoMgLg== + dependencies: + chalk "^4.1.2" + chalk@2.4.2, chalk@^2.3.0, chalk@^2.4.1, chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" @@ -14628,6 +14691,26 @@ comma-separated-tokens@^1.0.0: resolved "https://registry.yarnpkg.com/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz#632b80b6117867a158f1080ad498b2fbe7e3f5ea" integrity sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw== +command-line-args@^5.2.1: + version "5.2.1" + resolved "https://registry.yarnpkg.com/command-line-args/-/command-line-args-5.2.1.tgz#c44c32e437a57d7c51157696893c5909e9cec42e" + integrity sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg== + dependencies: + array-back "^3.1.0" + find-replace "^3.0.0" + lodash.camelcase "^4.3.0" + typical "^4.0.0" + +command-line-usage@^7.0.1: + version "7.0.3" + resolved "https://registry.yarnpkg.com/command-line-usage/-/command-line-usage-7.0.3.tgz#6bce992354f6af10ecea2b631bfdf0c8b3bfaea3" + integrity sha512-PqMLy5+YGwhMh1wS04mVG44oqDsgyLRSKJBdOo1bnYhMKBW65gZF1dRp2OZRhiTjgUHljy99qkO7bsctLaw35Q== + dependencies: + array-back "^6.2.2" + chalk-template "^0.4.0" + table-layout "^4.1.0" + typical "^7.1.1" + commander@2, commander@^2.15.0, commander@^2.19.0, commander@^2.20.0, commander@^2.7.1: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" @@ -18146,6 +18229,13 @@ find-my-way-ts@^0.1.2: resolved "https://registry.yarnpkg.com/find-my-way-ts/-/find-my-way-ts-0.1.5.tgz#9de9494f19e0319d4f6366bb91d6bf7952af7874" integrity sha512-4GOTMrpGQVzsCH2ruUn2vmwzV/02zF4q+ybhCIrw/Rkt3L8KWcycdC6aJMctJzwN4fXD4SD5F/4B9Sksh5rE0A== +find-replace@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/find-replace/-/find-replace-3.0.0.tgz#3e7e23d3b05167a76f770c9fbd5258b0def68c38" + integrity sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ== + dependencies: + array-back "^3.0.1" + find-root@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/find-root/-/find-root-1.1.0.tgz#abcfc8ba76f708c42a97b3d685b7e9450bfb9ce4" @@ -18207,6 +18297,11 @@ flat@^5.0.2: resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== +flatbuffers@^24.3.25: + version "24.3.25" + resolved "https://registry.yarnpkg.com/flatbuffers/-/flatbuffers-24.3.25.tgz#e2f92259ba8aa53acd0af7844afb7c7eb95e7089" + integrity sha512-3HDgPbgiwWMI9zVB7VYBHaMrbOO7Gm0v+yD2FV/sCKj+9NDeVL7BOBYUuhWAQGKWOzBo8S9WdMvV0eixO233XQ== + flatstr@^1.0.12: version "1.0.12" resolved "https://registry.yarnpkg.com/flatstr/-/flatstr-1.0.12.tgz#c2ba6a08173edbb6c9640e3055b95e287ceb5931" @@ -21649,6 +21744,11 @@ json-bigint@^1.0.0: dependencies: bignumber.js "^9.0.0" +json-bignum@^0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/json-bignum/-/json-bignum-0.0.3.tgz#41163b50436c773d82424dbc20ed70db7604b8d7" + integrity sha512-2WHyXj3OfHSgNyuzDbSxI1w2jgw5gkWSWhS7Qg4bWXx1nLk3jnbwfUeS0PSba3IzpTUWdHxBieELUzXRjQB2zg== + json-buffer@3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" @@ -29783,6 +29883,14 @@ tabbable@^5.3.3: resolved "https://registry.yarnpkg.com/tabbable/-/tabbable-5.3.3.tgz#aac0ff88c73b22d6c3c5a50b1586310006b47fbf" integrity sha512-QD9qKY3StfbZqWOPLp0++pOrAVb/HbUi5xCc8cUo4XjP19808oaMiDzn0leBY5mCespIBM0CIZePzZjgzR83kA== +table-layout@^4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/table-layout/-/table-layout-4.1.1.tgz#0f72965de1a5c0c1419c9ba21cae4e73a2f73a42" + integrity sha512-iK5/YhZxq5GO5z8wb0bY1317uDF3Zjpha0QFFLA8/trAoiLbQD0HUbMesEaxyzUgDxi2QlcbM8IvqOlEjgoXBA== + dependencies: + array-back "^6.2.2" + wordwrapjs "^5.1.0" + table@^6.8.0, table@^6.8.1: version "6.8.1" resolved "https://registry.yarnpkg.com/table/-/table-6.8.1.tgz#ea2b71359fe03b017a5fbc296204471158080bdf" @@ -30463,6 +30571,11 @@ tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== +tslib@^2.8.0: + version "2.8.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f" + integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w== + tslib@~2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e" @@ -30659,6 +30772,16 @@ typewise@^1.0.3: dependencies: typewise-core "^1.2.0" +typical@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/typical/-/typical-4.0.0.tgz#cbeaff3b9d7ae1e2bbfaf5a4e6f11eccfde94fc4" + integrity sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw== + +typical@^7.1.1: + version "7.3.0" + resolved "https://registry.yarnpkg.com/typical/-/typical-7.3.0.tgz#930376be344228709f134613911fa22aa09617a4" + integrity sha512-ya4mg/30vm+DOWfBg4YK3j2WD6TWtRkCbasOJr40CseYENzCUby/7rIvXA99JGsQHeNxLbnXdyLLxKSv3tauFw== + uc.micro@^2.0.0, uc.micro@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-2.1.0.tgz#f8d3f7d0ec4c3dea35a7e3c8efa4cb8b45c9e7ee" @@ -32248,6 +32371,11 @@ wordwrap@^1.0.0: resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== +wordwrapjs@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/wordwrapjs/-/wordwrapjs-5.1.0.tgz#4c4d20446dcc670b14fa115ef4f8fd9947af2b3a" + integrity sha512-JNjcULU2e4KJwUNv6CHgI46UvDGitb6dGryHajXTDiLgg1/RiGoPSDw4kZfYnwGtEXf2ZMeIewDQgFGzkCB2Sg== + worker-farm@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.7.0.tgz#26a94c5391bbca926152002f69b84a4bf772e5a8" From f0cf8abcba4248f303b19546f605063eabf2ae6e Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Fri, 15 Nov 2024 01:15:04 +0000 Subject: [PATCH 2/3] [CI] Auto-commit changed files from 'node scripts/notice' --- yarn.lock | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/yarn.lock b/yarn.lock index bb99f6dab085c..637cfdb1d2c01 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1907,20 +1907,7 @@ undici "^5.28.3" yaml "^2.2.2" -"@elastic/transport@^8.3.1": - version "8.8.1" - resolved "https://registry.yarnpkg.com/@elastic/transport/-/transport-8.8.1.tgz#d64244907bccdad5626c860b492faeef12194b1f" - integrity sha512-4RQIiChwNIx3B0O+2JdmTq/Qobj6+1g2RQnSv1gt4V2SVfAYjGwOKu0ZMKEHQOXYNG6+j/Chero2G9k3/wXLEw== - dependencies: - "@opentelemetry/api" "1.x" - debug "^4.3.4" - hpagent "^1.0.0" - ms "^2.1.3" - secure-json-parse "^2.4.0" - tslib "^2.4.0" - undici "^6.12.0" - -"@elastic/transport@^8.9.1": +"@elastic/transport@^8.3.1", "@elastic/transport@^8.9.1": version "8.9.1" resolved "https://registry.yarnpkg.com/@elastic/transport/-/transport-8.9.1.tgz#1acc090ac45903a3d5a8b7269f6ba6410108dc0a" integrity sha512-jasKNQeOb1vNf9aEYg+8zXmetaFjApDTSCC4QTl6aTixvyiRiSLcCiB8P6Q0lY9JIII/BhqNl8WbpFnsKitntw== @@ -30561,7 +30548,7 @@ tslib@2.5.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== -tslib@2.6.2, tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.5.0, tslib@^2.6.2: +tslib@2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== @@ -30571,7 +30558,7 @@ tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tslib@^2.8.0: +tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.5.0, tslib@^2.6.2, tslib@^2.8.0: version "2.8.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f" integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w== From 8fbe9325d1b28fd2671833a152e8febea0cd6e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Fern=C3=A1ndez=20Haro?= Date: Tue, 10 Dec 2024 11:48:26 +0100 Subject: [PATCH 3/3] Fix types --- .../src/lib/apis/open_point_in_time.test.ts | 5 +++-- .../src/lib/repository.security_extension.test.ts | 7 ++++--- .../src/lib/search_cursor_pit.test.ts | 3 ++- .../src/lib/search_cursor_scroll.test.ts | 5 ++++- .../strategies/sql_search/sql_search_strategy.ts | 4 ++-- .../server/routes/field_preview.ts | 3 +-- .../server/telemetry_collection/get_cluster_stats.ts | 2 -- .../plugins/shared/ml/common/types/management.ts | 2 +- .../test_models/models/inference_base.ts | 2 +- .../server/alerts_service/alerts_service.test.ts | 1 + .../server/ai_assistant_service/index.test.ts | 1 + .../server/es/cluster_client_adapter.test.ts | 1 + .../index_management/common/types/data_streams.ts | 2 +- .../public/application/lib/data_streams.tsx | 12 +++++++----- .../server/lib/data_stream_serialization.ts | 6 +++--- .../dataset_quality/server/services/data_stream.ts | 1 - .../server/routes/knowledge_base/route.ts | 4 ++-- .../server/endpoint/mocks/utils.mock.ts | 6 +++--- .../entity_analytics/entity_store/utils/ingest.ts | 1 - 19 files changed, 37 insertions(+), 31 deletions(-) diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/open_point_in_time.test.ts b/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/open_point_in_time.test.ts index ca07f39d6620e..2efc33eddddfd 100644 --- a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/open_point_in_time.test.ts +++ b/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/apis/open_point_in_time.test.ts @@ -36,6 +36,7 @@ import { createGenericNotFoundErrorPayload, } from '../../test_helpers/repository.test.common'; import { PointInTimeFinder } from '../point_in_time_finder'; +import { OpenPointInTimeResponse } from '@elastic/elasticsearch/lib/api/types'; describe('SavedObjectsRepository', () => { let client: ReturnType; @@ -81,7 +82,7 @@ describe('SavedObjectsRepository', () => { describe('#openPointInTimeForType', () => { const type = 'index-pattern'; - const generateResults = (id?: string) => ({ id: id || 'id' }); + const generateResults = (id?: string) => ({ id: id || 'id' } as OpenPointInTimeResponse); const successResponse = async (type: string, options?: SavedObjectsOpenPointInTimeOptions) => { client.openPointInTime.mockResponseOnce(generateResults()); const result = await repository.openPointInTimeForType(type, options); @@ -136,7 +137,7 @@ describe('SavedObjectsRepository', () => { it(`throws when ES is unable to find the index`, async () => { client.openPointInTime.mockResolvedValueOnce( elasticsearchClientMock.createSuccessTransportRequestPromise( - { id: 'error' }, + { id: 'error' } as OpenPointInTimeResponse, { statusCode: 404 } ) ); diff --git a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.security_extension.test.ts b/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.security_extension.test.ts index 984a60814d591..171b37c3a6b3b 100644 --- a/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.security_extension.test.ts +++ b/packages/core/saved-objects/core-saved-objects-api-server-internal/src/lib/repository.security_extension.test.ts @@ -66,6 +66,7 @@ import { import { savedObjectsExtensionsMock } from '../mocks/saved_objects_extensions.mock'; import { arrayMapsAreEqual } from '@kbn/core-saved-objects-utils-server'; import { mockAuthenticatedUser } from '@kbn/core-security-common/mocks'; +import { OpenPointInTimeResponse } from '@elastic/elasticsearch/lib/api/types'; describe('SavedObjectsRepository Security Extension', () => { let client: ReturnType; @@ -676,7 +677,7 @@ describe('SavedObjectsRepository Security Extension', () => { test(`returns result when partially authorized`, async () => { setupAuthorizeFunc(mockSecurityExt.authorizeOpenPointInTime, 'partially_authorized'); - client.openPointInTime.mockResponseOnce({ id }); + client.openPointInTime.mockResponseOnce({ id } as OpenPointInTimeResponse); const result = await repository.openPointInTimeForType(type); expect(mockSecurityExt.authorizeOpenPointInTime).toHaveBeenCalledTimes(1); @@ -687,7 +688,7 @@ describe('SavedObjectsRepository Security Extension', () => { test(`returns result when fully authorized`, async () => { setupAuthorizeFunc(mockSecurityExt.authorizeOpenPointInTime, 'fully_authorized'); - client.openPointInTime.mockResponseOnce({ id }); + client.openPointInTime.mockResponseOnce({ id } as OpenPointInTimeResponse); const result = await repository.openPointInTimeForType(type); expect(mockSecurityExt.authorizeOpenPointInTime).toHaveBeenCalledTimes(1); @@ -702,7 +703,7 @@ describe('SavedObjectsRepository Security Extension', () => { test(`calls authorizeOpenPointInTime with correct parameters`, async () => { setupAuthorizeFunc(mockSecurityExt.authorizeOpenPointInTime, 'fully_authorized'); - client.openPointInTime.mockResponseOnce({ id }); + client.openPointInTime.mockResponseOnce({ id } as OpenPointInTimeResponse); const namespaces = [namespace, 'x', 'y', 'z']; await repository.openPointInTimeForType(type, { namespaces }); expect(mockSecurityExt.authorizeOpenPointInTime).toHaveBeenCalledTimes(1); diff --git a/packages/kbn-generate-csv/src/lib/search_cursor_pit.test.ts b/packages/kbn-generate-csv/src/lib/search_cursor_pit.test.ts index 4852cfb9d32c1..ab5e294397a6e 100644 --- a/packages/kbn-generate-csv/src/lib/search_cursor_pit.test.ts +++ b/packages/kbn-generate-csv/src/lib/search_cursor_pit.test.ts @@ -17,6 +17,7 @@ import { createSearchSourceMock } from '@kbn/data-plugin/common/search/search_so import { createSearchRequestHandlerContext } from '@kbn/data-plugin/server/search/mocks'; import type { SearchCursorSettings } from './search_cursor'; import { SearchCursorPit } from './search_cursor_pit'; +import { OpenPointInTimeResponse } from '@elastic/elasticsearch/lib/api/types'; class TestSearchCursorPit extends SearchCursorPit { constructor(...args: ConstructorParameters) { @@ -69,7 +70,7 @@ describe('CSV Export Search Cursor', () => { openPointInTimeSpy = jest .spyOn(es.asCurrentUser, 'openPointInTime') - .mockResolvedValue({ id: 'somewhat-pit-id' }); + .mockResolvedValue({ id: 'somewhat-pit-id' } as OpenPointInTimeResponse); logger = loggingSystemMock.createLogger(); }); diff --git a/packages/kbn-generate-csv/src/lib/search_cursor_scroll.test.ts b/packages/kbn-generate-csv/src/lib/search_cursor_scroll.test.ts index 5d6cd6f67a4d6..cdccbca468a76 100644 --- a/packages/kbn-generate-csv/src/lib/search_cursor_scroll.test.ts +++ b/packages/kbn-generate-csv/src/lib/search_cursor_scroll.test.ts @@ -16,6 +16,7 @@ import { createSearchSourceMock } from '@kbn/data-plugin/common/search/search_so import { createSearchRequestHandlerContext } from '@kbn/data-plugin/server/search/mocks'; import type { SearchCursorSettings } from './search_cursor'; import { SearchCursorScroll } from './search_cursor_scroll'; +import type { OpenPointInTimeResponse } from '@elastic/elasticsearch/lib/api/types'; class TestSearchCursorScroll extends SearchCursorScroll { constructor(...args: ConstructorParameters) { @@ -47,7 +48,9 @@ describe('CSV Export Search Cursor', () => { es = elasticsearchServiceMock.createScopedClusterClient(); data = createSearchRequestHandlerContext(); - jest.spyOn(es.asCurrentUser, 'openPointInTime').mockResolvedValue({ id: 'simply-scroll-id' }); + jest + .spyOn(es.asCurrentUser, 'openPointInTime') + .mockResolvedValue({ id: 'simply-scroll-id' } as OpenPointInTimeResponse); logger = loggingSystemMock.createLogger(); }); diff --git a/src/plugins/data/server/search/strategies/sql_search/sql_search_strategy.ts b/src/plugins/data/server/search/strategies/sql_search/sql_search_strategy.ts index 9fb6fafb11dbb..ad03451bf8691 100644 --- a/src/plugins/data/server/search/strategies/sql_search/sql_search_strategy.ts +++ b/src/plugins/data/server/search/strategies/sql_search/sql_search_strategy.ts @@ -11,7 +11,7 @@ import type { IncomingHttpHeaders } from 'http'; import type { IScopedClusterClient, Logger } from '@kbn/core/server'; import { catchError, tap } from 'rxjs'; import type { DiagnosticResult } from '@elastic/transport'; -import { SqlQueryResponse } from '@elastic/elasticsearch/lib/api/types'; +import { SqlQueryResponse, type SqlQuerySqlFormat } from '@elastic/elasticsearch/lib/api/types'; import { getKbnServerError } from '@kbn/kibana-utils-plugin/server'; import { getKbnSearchError } from '../../report_search_error'; import type { ISearchStrategy, SearchStrategyDependencies } from '../../types'; @@ -61,9 +61,9 @@ export const sqlSearchStrategyProvider = ( } else { ({ headers, body, meta } = await client.sql.query( { - format: params.format ?? 'json', ...getDefaultAsyncSubmitParams(searchConfig, options), ...params, + format: (params.format ?? 'json') as SqlQuerySqlFormat, }, { ...options.transport, signal: options.abortSignal, meta: true } )); diff --git a/src/plugins/data_view_field_editor/server/routes/field_preview.ts b/src/plugins/data_view_field_editor/server/routes/field_preview.ts index 8d585a7688714..a7df6a9f4e2ac 100644 --- a/src/plugins/data_view_field_editor/server/routes/field_preview.ts +++ b/src/plugins/data_view_field_editor/server/routes/field_preview.ts @@ -81,9 +81,8 @@ export const registerFieldPreviewRoute = ({ router }: RouteDependencies): void = }; try { - // client types need to be update to support this request format + // client types need to be updated to support this request format // when it does, supply response types - // @ts-expect-error const { result } = await client.asCurrentUser.scriptsPainlessExecute(body); return res.ok({ body: { values: result } }); diff --git a/src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.ts b/src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.ts index 35afcacc3d0b5..317066c46720b 100644 --- a/src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.ts +++ b/src/plugins/telemetry/server/telemetry_collection/get_cluster_stats.ts @@ -20,8 +20,6 @@ export async function getClusterStats(esClient: ElasticsearchClient) { return await esClient.cluster.stats( { timeout: CLUSTER_STAT_TIMEOUT, - - // @ts-expect-error include_remotes: true, }, { diff --git a/x-pack/platform/plugins/shared/ml/common/types/management.ts b/x-pack/platform/plugins/shared/ml/common/types/management.ts index 51685435296d9..98d1fe166534d 100644 --- a/x-pack/platform/plugins/shared/ml/common/types/management.ts +++ b/x-pack/platform/plugins/shared/ml/common/types/management.ts @@ -29,7 +29,7 @@ export interface AnalyticsManagementItems { export interface TrainedModelsManagementItems { id: string; description: string; - state: estypes.MlDeploymentState | ''; + state: estypes.MlDeploymentAssignmentState | ''; type: Array; spaces: string[]; } diff --git a/x-pack/platform/plugins/shared/ml/public/application/model_management/test_models/models/inference_base.ts b/x-pack/platform/plugins/shared/ml/public/application/model_management/test_models/models/inference_base.ts index b7ac57a5750a8..eee0a38e0731b 100644 --- a/x-pack/platform/plugins/shared/ml/public/application/model_management/test_models/models/inference_base.ts +++ b/x-pack/platform/plugins/shared/ml/public/application/model_management/test_models/models/inference_base.ts @@ -376,10 +376,10 @@ export abstract class InferenceBase { }; } - // @ts-expect-error error does not exist in type protected getDocFromResponse({ doc, error }: estypes.IngestSimulatePipelineSimulation) { if (doc === undefined) { if (error) { + // @ts-expect-error Error is now typed in estypes. However, I doubt that it doesn't get the HTTP wrapper expected. this.setFinishedWithErrors(error); throw Error(error.reason); } diff --git a/x-pack/plugins/alerting/server/alerts_service/alerts_service.test.ts b/x-pack/plugins/alerting/server/alerts_service/alerts_service.test.ts index 5b32cf507c815..ec78cb5ea9cd7 100644 --- a/x-pack/plugins/alerting/server/alerts_service/alerts_service.test.ts +++ b/x-pack/plugins/alerting/server/alerts_service/alerts_service.test.ts @@ -102,6 +102,7 @@ const GetDataStreamResponse: IndicesGetDataStreamResponse = { template: 'ignored', next_generation_managed_by: 'Index Lifecycle Management', prefer_ilm: false, + rollover_on_write: false, }, ], }; diff --git a/x-pack/plugins/elastic_assistant/server/ai_assistant_service/index.test.ts b/x-pack/plugins/elastic_assistant/server/ai_assistant_service/index.test.ts index c60fe9a220482..32a1a30fec255 100644 --- a/x-pack/plugins/elastic_assistant/server/ai_assistant_service/index.test.ts +++ b/x-pack/plugins/elastic_assistant/server/ai_assistant_service/index.test.ts @@ -79,6 +79,7 @@ const GetDataStreamResponse: IndicesGetDataStreamResponse = { template: 'ignored', next_generation_managed_by: 'Data stream lifecycle', prefer_ilm: false, + rollover_on_write: false, }, ], }; diff --git a/x-pack/plugins/event_log/server/es/cluster_client_adapter.test.ts b/x-pack/plugins/event_log/server/es/cluster_client_adapter.test.ts index eb76b90f0556a..4e8e43352f454 100644 --- a/x-pack/plugins/event_log/server/es/cluster_client_adapter.test.ts +++ b/x-pack/plugins/event_log/server/es/cluster_client_adapter.test.ts @@ -569,6 +569,7 @@ export const GetDataStreamsResponse: estypes.IndicesGetDataStreamResponse = { template: '', hidden: true, prefer_ilm: false, + rollover_on_write: true, next_generation_managed_by: 'Index Lifecycle Management', }, ], diff --git a/x-pack/plugins/index_management/common/types/data_streams.ts b/x-pack/plugins/index_management/common/types/data_streams.ts index 993d32f32bee1..b6c3e46966dfa 100644 --- a/x-pack/plugins/index_management/common/types/data_streams.ts +++ b/x-pack/plugins/index_management/common/types/data_streams.ts @@ -81,7 +81,7 @@ export interface DataStreamIndex { name: string; uuid: string; preferILM: boolean; - managedBy: string; + managedBy?: string; } export interface DataRetention { diff --git a/x-pack/plugins/index_management/public/application/lib/data_streams.tsx b/x-pack/plugins/index_management/public/application/lib/data_streams.tsx index 6747e84df751d..138a91e86df67 100644 --- a/x-pack/plugins/index_management/public/application/lib/data_streams.tsx +++ b/x-pack/plugins/index_management/public/application/lib/data_streams.tsx @@ -87,7 +87,7 @@ export const isDataStreamFullyManagedByILM = (dataStream?: DataStream | null) => return ( dataStream?.nextGenerationManagedBy?.toLowerCase() === 'index lifecycle management' && dataStream?.indices?.every( - (index) => index.managedBy.toLowerCase() === 'index lifecycle management' + (index) => index.managedBy?.toLowerCase() === 'index lifecycle management' ) ); }; @@ -95,20 +95,22 @@ export const isDataStreamFullyManagedByILM = (dataStream?: DataStream | null) => export const isDataStreamFullyManagedByDSL = (dataStream?: DataStream | null) => { return ( dataStream?.nextGenerationManagedBy?.toLowerCase() === 'data stream lifecycle' && - dataStream?.indices?.every((index) => index.managedBy.toLowerCase() === 'data stream lifecycle') + dataStream?.indices?.every( + (index) => index.managedBy?.toLowerCase() === 'data stream lifecycle' + ) ); }; export const isDSLWithILMIndices = (dataStream?: DataStream | null) => { if (dataStream?.nextGenerationManagedBy?.toLowerCase() === 'data stream lifecycle') { const ilmIndices = dataStream?.indices?.filter( - (index) => index.managedBy.toLowerCase() === 'index lifecycle management' + (index) => index.managedBy?.toLowerCase() === 'index lifecycle management' ); const dslIndices = dataStream?.indices?.filter( - (index) => index.managedBy.toLowerCase() === 'data stream lifecycle' + (index) => index.managedBy?.toLowerCase() === 'data stream lifecycle' ); - // When there arent any ILM indices, there's no need to show anything. + // When there aren't any ILM indices, there's no need to show anything. if (!ilmIndices?.length) { return; } diff --git a/x-pack/plugins/index_management/server/lib/data_stream_serialization.ts b/x-pack/plugins/index_management/server/lib/data_stream_serialization.ts index 31c0baa6c6b8c..2556fab947665 100644 --- a/x-pack/plugins/index_management/server/lib/data_stream_serialization.ts +++ b/x-pack/plugins/index_management/server/lib/data_stream_serialization.ts @@ -43,13 +43,13 @@ export function deserializeDataStream(dataStreamFromEs: EnhancedDataStreamFromEs ({ index_name: indexName, index_uuid: indexUuid, - prefer_ilm: preferILM, + prefer_ilm: preferILM = false, managed_by: managedBy, }: { index_name: string; index_uuid: string; - prefer_ilm: boolean; - managed_by: string; + prefer_ilm?: boolean; + managed_by?: string; }) => ({ name: indexName, uuid: indexUuid, diff --git a/x-pack/plugins/observability_solution/dataset_quality/server/services/data_stream.ts b/x-pack/plugins/observability_solution/dataset_quality/server/services/data_stream.ts index 1157b40936a6d..e54f0f33f375a 100644 --- a/x-pack/plugins/observability_solution/dataset_quality/server/services/data_stream.ts +++ b/x-pack/plugins/observability_solution/dataset_quality/server/services/data_stream.ts @@ -20,7 +20,6 @@ class DataStreamService { try { const { data_streams: dataStreamsInfo } = await esClient.indices.getDataStream({ name: datasetName, - // @ts-expect-error verbose: true, }); diff --git a/x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/knowledge_base/route.ts b/x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/knowledge_base/route.ts index 4ff94393bc525..6aa63c177c746 100644 --- a/x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/knowledge_base/route.ts +++ b/x-pack/plugins/observability_solution/observability_ai_assistant/server/routes/knowledge_base/route.ts @@ -12,7 +12,7 @@ import * as t from 'io-ts'; import { InferenceInferenceEndpointInfo, MlDeploymentAllocationState, - MlDeploymentState, + MlDeploymentAssignmentState, } from '@elastic/elasticsearch/lib/api/typesWithBodyKey'; import moment from 'moment'; import { createObservabilityAIAssistantServerRoute } from '../create_observability_ai_assistant_server_route'; @@ -34,7 +34,7 @@ const getKnowledgeBaseStatus = createObservabilityAIAssistantServerRoute({ enabled: boolean; endpoint?: Partial; model_stats?: { - deployment_state: MlDeploymentState | undefined; + deployment_state: MlDeploymentAssignmentState | undefined; allocation_state: MlDeploymentAllocationState | undefined; }; }> => { diff --git a/x-pack/plugins/security_solution/server/endpoint/mocks/utils.mock.ts b/x-pack/plugins/security_solution/server/endpoint/mocks/utils.mock.ts index e4de97523a84a..d8d043c29ec67 100644 --- a/x-pack/plugins/security_solution/server/endpoint/mocks/utils.mock.ts +++ b/x-pack/plugins/security_solution/server/endpoint/mocks/utils.mock.ts @@ -6,7 +6,7 @@ */ import type { ElasticsearchClientMock } from '@kbn/core-elasticsearch-client-server-mocks'; -import type { SearchResponse } from '@elastic/elasticsearch/lib/api/types'; +import type { OpenPointInTimeResponse, SearchResponse } from '@elastic/elasticsearch/lib/api/types'; import { v4 as uuidV4 } from 'uuid'; import { BaseDataGenerator } from '../../../common/endpoint/data_generators/base_data_generator'; @@ -45,14 +45,14 @@ export const applyEsClientSearchMock = ({ const pitResponse = { id: `mock:pit:${index}:${uuidV4()}` }; openedPitIds.add(pitResponse.id); - return pitResponse; + return pitResponse as OpenPointInTimeResponse; } if (priorOpenPointInTimeImplementation) { return priorOpenPointInTimeImplementation(...args); } - return { id: 'mock' }; + return { id: 'mock' } as OpenPointInTimeResponse; }); esClientMock.closePointInTime.mockImplementation(async (...args) => { diff --git a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/entity_store/utils/ingest.ts b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/entity_store/utils/ingest.ts index 24f7d759190b5..aec5812332ab2 100644 --- a/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/entity_store/utils/ingest.ts +++ b/x-pack/test/security_solution_api_integration/test_suites/entity_analytics/entity_store/utils/ingest.ts @@ -31,7 +31,6 @@ export const applyIngestProcessorToDoc = async ( const firstDoc = res.docs?.[0]; - // @ts-expect-error error is not in the types const error = firstDoc?.error; if (error) { log.error('Full painless error below: ');