@terascope/opensearch-client 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +17 -0
  3. package/dist/src/client/client.d.ts +233 -0
  4. package/dist/src/client/client.d.ts.map +1 -0
  5. package/dist/src/client/client.js +421 -0
  6. package/dist/src/client/client.js.map +1 -0
  7. package/dist/src/client/create-client.d.ts +17 -0
  8. package/dist/src/client/create-client.d.ts.map +1 -0
  9. package/dist/src/client/create-client.js +144 -0
  10. package/dist/src/client/create-client.js.map +1 -0
  11. package/dist/src/client/index.d.ts +4 -0
  12. package/dist/src/client/index.d.ts.map +1 -0
  13. package/dist/src/client/index.js +4 -0
  14. package/dist/src/client/index.js.map +1 -0
  15. package/dist/src/client/interfaces.d.ts +67 -0
  16. package/dist/src/client/interfaces.d.ts.map +1 -0
  17. package/dist/src/client/interfaces.js +2 -0
  18. package/dist/src/client/interfaces.js.map +1 -0
  19. package/dist/src/client/log-wrapper.d.ts +3 -0
  20. package/dist/src/client/log-wrapper.d.ts.map +1 -0
  21. package/dist/src/client/log-wrapper.js +21 -0
  22. package/dist/src/client/log-wrapper.js.map +1 -0
  23. package/dist/src/client/method-helpers/bulk.d.ts +25 -0
  24. package/dist/src/client/method-helpers/bulk.d.ts.map +1 -0
  25. package/dist/src/client/method-helpers/bulk.js +30 -0
  26. package/dist/src/client/method-helpers/bulk.js.map +1 -0
  27. package/dist/src/client/method-helpers/catIndices.d.ts +16 -0
  28. package/dist/src/client/method-helpers/catIndices.d.ts.map +1 -0
  29. package/dist/src/client/method-helpers/catIndices.js +24 -0
  30. package/dist/src/client/method-helpers/catIndices.js.map +1 -0
  31. package/dist/src/client/method-helpers/clusterGetSettings.d.ts +3 -0
  32. package/dist/src/client/method-helpers/clusterGetSettings.d.ts.map +1 -0
  33. package/dist/src/client/method-helpers/clusterGetSettings.js +16 -0
  34. package/dist/src/client/method-helpers/clusterGetSettings.js.map +1 -0
  35. package/dist/src/client/method-helpers/clusterHealth.d.ts +14 -0
  36. package/dist/src/client/method-helpers/clusterHealth.d.ts.map +1 -0
  37. package/dist/src/client/method-helpers/clusterHealth.js +27 -0
  38. package/dist/src/client/method-helpers/clusterHealth.js.map +1 -0
  39. package/dist/src/client/method-helpers/count.d.ts +17 -0
  40. package/dist/src/client/method-helpers/count.d.ts.map +1 -0
  41. package/dist/src/client/method-helpers/count.js +22 -0
  42. package/dist/src/client/method-helpers/count.js.map +1 -0
  43. package/dist/src/client/method-helpers/create.d.ts +34 -0
  44. package/dist/src/client/method-helpers/create.d.ts.map +1 -0
  45. package/dist/src/client/method-helpers/create.js +32 -0
  46. package/dist/src/client/method-helpers/create.js.map +1 -0
  47. package/dist/src/client/method-helpers/delete.d.ts +26 -0
  48. package/dist/src/client/method-helpers/delete.d.ts.map +1 -0
  49. package/dist/src/client/method-helpers/delete.js +23 -0
  50. package/dist/src/client/method-helpers/delete.js.map +1 -0
  51. package/dist/src/client/method-helpers/deleteByQuery.d.ts +66 -0
  52. package/dist/src/client/method-helpers/deleteByQuery.d.ts.map +1 -0
  53. package/dist/src/client/method-helpers/deleteByQuery.js +32 -0
  54. package/dist/src/client/method-helpers/deleteByQuery.js.map +1 -0
  55. package/dist/src/client/method-helpers/exists.d.ts +18 -0
  56. package/dist/src/client/method-helpers/exists.d.ts.map +1 -0
  57. package/dist/src/client/method-helpers/exists.js +23 -0
  58. package/dist/src/client/method-helpers/exists.js.map +1 -0
  59. package/dist/src/client/method-helpers/get.d.ts +18 -0
  60. package/dist/src/client/method-helpers/get.d.ts.map +1 -0
  61. package/dist/src/client/method-helpers/get.js +23 -0
  62. package/dist/src/client/method-helpers/get.js.map +1 -0
  63. package/dist/src/client/method-helpers/helper-utils.d.ts +5 -0
  64. package/dist/src/client/method-helpers/helper-utils.d.ts.map +1 -0
  65. package/dist/src/client/method-helpers/helper-utils.js +43 -0
  66. package/dist/src/client/method-helpers/helper-utils.js.map +1 -0
  67. package/dist/src/client/method-helpers/index-method.d.ts +43 -0
  68. package/dist/src/client/method-helpers/index-method.d.ts.map +1 -0
  69. package/dist/src/client/method-helpers/index-method.js +34 -0
  70. package/dist/src/client/method-helpers/index-method.js.map +1 -0
  71. package/dist/src/client/method-helpers/index.d.ts +41 -0
  72. package/dist/src/client/method-helpers/index.d.ts.map +1 -0
  73. package/dist/src/client/method-helpers/index.js +41 -0
  74. package/dist/src/client/method-helpers/index.js.map +1 -0
  75. package/dist/src/client/method-helpers/indicesCreate.d.ts +13 -0
  76. package/dist/src/client/method-helpers/indicesCreate.d.ts.map +1 -0
  77. package/dist/src/client/method-helpers/indicesCreate.js +47 -0
  78. package/dist/src/client/method-helpers/indicesCreate.js.map +1 -0
  79. package/dist/src/client/method-helpers/indicesDelete.d.ts +3 -0
  80. package/dist/src/client/method-helpers/indicesDelete.d.ts.map +1 -0
  81. package/dist/src/client/method-helpers/indicesDelete.js +23 -0
  82. package/dist/src/client/method-helpers/indicesDelete.js.map +1 -0
  83. package/dist/src/client/method-helpers/indicesDeleteTemplate.d.ts +3 -0
  84. package/dist/src/client/method-helpers/indicesDeleteTemplate.d.ts.map +1 -0
  85. package/dist/src/client/method-helpers/indicesDeleteTemplate.js +23 -0
  86. package/dist/src/client/method-helpers/indicesDeleteTemplate.js.map +1 -0
  87. package/dist/src/client/method-helpers/indicesExists.d.ts +3 -0
  88. package/dist/src/client/method-helpers/indicesExists.d.ts.map +1 -0
  89. package/dist/src/client/method-helpers/indicesExists.js +16 -0
  90. package/dist/src/client/method-helpers/indicesExists.js.map +1 -0
  91. package/dist/src/client/method-helpers/indicesExistsTemplate.d.ts +3 -0
  92. package/dist/src/client/method-helpers/indicesExistsTemplate.d.ts.map +1 -0
  93. package/dist/src/client/method-helpers/indicesExistsTemplate.js +22 -0
  94. package/dist/src/client/method-helpers/indicesExistsTemplate.js.map +1 -0
  95. package/dist/src/client/method-helpers/indicesGet.d.ts +12 -0
  96. package/dist/src/client/method-helpers/indicesGet.d.ts.map +1 -0
  97. package/dist/src/client/method-helpers/indicesGet.js +27 -0
  98. package/dist/src/client/method-helpers/indicesGet.js.map +1 -0
  99. package/dist/src/client/method-helpers/indicesGetFieldMapping.d.ts +20 -0
  100. package/dist/src/client/method-helpers/indicesGetFieldMapping.d.ts.map +1 -0
  101. package/dist/src/client/method-helpers/indicesGetFieldMapping.js +23 -0
  102. package/dist/src/client/method-helpers/indicesGetFieldMapping.js.map +1 -0
  103. package/dist/src/client/method-helpers/indicesGetIndexTemplate.d.ts +3 -0
  104. package/dist/src/client/method-helpers/indicesGetIndexTemplate.d.ts.map +1 -0
  105. package/dist/src/client/method-helpers/indicesGetIndexTemplate.js +29 -0
  106. package/dist/src/client/method-helpers/indicesGetIndexTemplate.js.map +1 -0
  107. package/dist/src/client/method-helpers/indicesGetMapping.d.ts +10 -0
  108. package/dist/src/client/method-helpers/indicesGetMapping.d.ts.map +1 -0
  109. package/dist/src/client/method-helpers/indicesGetMapping.js +24 -0
  110. package/dist/src/client/method-helpers/indicesGetMapping.js.map +1 -0
  111. package/dist/src/client/method-helpers/indicesGetSettings.d.ts +3 -0
  112. package/dist/src/client/method-helpers/indicesGetSettings.d.ts.map +1 -0
  113. package/dist/src/client/method-helpers/indicesGetSettings.js +20 -0
  114. package/dist/src/client/method-helpers/indicesGetSettings.js.map +1 -0
  115. package/dist/src/client/method-helpers/indicesGetTemplate.d.ts +3 -0
  116. package/dist/src/client/method-helpers/indicesGetTemplate.d.ts.map +1 -0
  117. package/dist/src/client/method-helpers/indicesGetTemplate.js +29 -0
  118. package/dist/src/client/method-helpers/indicesGetTemplate.js.map +1 -0
  119. package/dist/src/client/method-helpers/indicesPutMapping.d.ts +53 -0
  120. package/dist/src/client/method-helpers/indicesPutMapping.d.ts.map +1 -0
  121. package/dist/src/client/method-helpers/indicesPutMapping.js +28 -0
  122. package/dist/src/client/method-helpers/indicesPutMapping.js.map +1 -0
  123. package/dist/src/client/method-helpers/indicesPutSettings.d.ts +14 -0
  124. package/dist/src/client/method-helpers/indicesPutSettings.d.ts.map +1 -0
  125. package/dist/src/client/method-helpers/indicesPutSettings.js +27 -0
  126. package/dist/src/client/method-helpers/indicesPutSettings.js.map +1 -0
  127. package/dist/src/client/method-helpers/indicesPutTemplate.d.ts +22 -0
  128. package/dist/src/client/method-helpers/indicesPutTemplate.d.ts.map +1 -0
  129. package/dist/src/client/method-helpers/indicesPutTemplate.js +50 -0
  130. package/dist/src/client/method-helpers/indicesPutTemplate.js.map +1 -0
  131. package/dist/src/client/method-helpers/indicesRecovery.d.ts +3 -0
  132. package/dist/src/client/method-helpers/indicesRecovery.d.ts.map +1 -0
  133. package/dist/src/client/method-helpers/indicesRecovery.js +16 -0
  134. package/dist/src/client/method-helpers/indicesRecovery.js.map +1 -0
  135. package/dist/src/client/method-helpers/indicesRefresh.d.ts +3 -0
  136. package/dist/src/client/method-helpers/indicesRefresh.d.ts.map +1 -0
  137. package/dist/src/client/method-helpers/indicesRefresh.js +16 -0
  138. package/dist/src/client/method-helpers/indicesRefresh.js.map +1 -0
  139. package/dist/src/client/method-helpers/indicesStats.d.ts +15 -0
  140. package/dist/src/client/method-helpers/indicesStats.d.ts.map +1 -0
  141. package/dist/src/client/method-helpers/indicesStats.js +20 -0
  142. package/dist/src/client/method-helpers/indicesStats.js.map +1 -0
  143. package/dist/src/client/method-helpers/indicesValidateQuery.d.ts +36 -0
  144. package/dist/src/client/method-helpers/indicesValidateQuery.d.ts.map +1 -0
  145. package/dist/src/client/method-helpers/indicesValidateQuery.js +23 -0
  146. package/dist/src/client/method-helpers/indicesValidateQuery.js.map +1 -0
  147. package/dist/src/client/method-helpers/mget.d.ts +14 -0
  148. package/dist/src/client/method-helpers/mget.d.ts.map +1 -0
  149. package/dist/src/client/method-helpers/mget.js +64 -0
  150. package/dist/src/client/method-helpers/mget.js.map +1 -0
  151. package/dist/src/client/method-helpers/msearch.d.ts +13 -0
  152. package/dist/src/client/method-helpers/msearch.d.ts.map +1 -0
  153. package/dist/src/client/method-helpers/msearch.js +53 -0
  154. package/dist/src/client/method-helpers/msearch.js.map +1 -0
  155. package/dist/src/client/method-helpers/nodesInfo.d.ts +8 -0
  156. package/dist/src/client/method-helpers/nodesInfo.d.ts.map +1 -0
  157. package/dist/src/client/method-helpers/nodesInfo.js +25 -0
  158. package/dist/src/client/method-helpers/nodesInfo.js.map +1 -0
  159. package/dist/src/client/method-helpers/nodesStats.d.ts +15 -0
  160. package/dist/src/client/method-helpers/nodesStats.d.ts.map +1 -0
  161. package/dist/src/client/method-helpers/nodesStats.js +25 -0
  162. package/dist/src/client/method-helpers/nodesStats.js.map +1 -0
  163. package/dist/src/client/method-helpers/reindex.d.ts +37 -0
  164. package/dist/src/client/method-helpers/reindex.d.ts.map +1 -0
  165. package/dist/src/client/method-helpers/reindex.js +35 -0
  166. package/dist/src/client/method-helpers/reindex.js.map +1 -0
  167. package/dist/src/client/method-helpers/search.d.ts +51 -0
  168. package/dist/src/client/method-helpers/search.d.ts.map +1 -0
  169. package/dist/src/client/method-helpers/search.js +54 -0
  170. package/dist/src/client/method-helpers/search.js.map +1 -0
  171. package/dist/src/client/method-helpers/tasksCancel.d.ts +3 -0
  172. package/dist/src/client/method-helpers/tasksCancel.d.ts.map +1 -0
  173. package/dist/src/client/method-helpers/tasksCancel.js +16 -0
  174. package/dist/src/client/method-helpers/tasksCancel.js.map +1 -0
  175. package/dist/src/client/method-helpers/tasksGet.d.ts +3 -0
  176. package/dist/src/client/method-helpers/tasksGet.d.ts.map +1 -0
  177. package/dist/src/client/method-helpers/tasksGet.js +16 -0
  178. package/dist/src/client/method-helpers/tasksGet.js.map +1 -0
  179. package/dist/src/client/method-helpers/tasksList.d.ts +3 -0
  180. package/dist/src/client/method-helpers/tasksList.d.ts.map +1 -0
  181. package/dist/src/client/method-helpers/tasksList.js +16 -0
  182. package/dist/src/client/method-helpers/tasksList.js.map +1 -0
  183. package/dist/src/client/method-helpers/update.d.ts +79 -0
  184. package/dist/src/client/method-helpers/update.d.ts.map +1 -0
  185. package/dist/src/client/method-helpers/update.js +32 -0
  186. package/dist/src/client/method-helpers/update.js.map +1 -0
  187. package/dist/src/index.d.ts +4 -0
  188. package/dist/src/index.d.ts.map +1 -0
  189. package/dist/src/index.js +8 -0
  190. package/dist/src/index.js.map +1 -0
  191. package/dist/src/test-helpers/config.d.ts +3 -0
  192. package/dist/src/test-helpers/config.d.ts.map +1 -0
  193. package/dist/src/test-helpers/config.js +3 -0
  194. package/dist/src/test-helpers/config.js.map +1 -0
  195. package/dist/src/test-helpers/elasticsearch.d.ts +38 -0
  196. package/dist/src/test-helpers/elasticsearch.d.ts.map +1 -0
  197. package/dist/src/test-helpers/elasticsearch.js +213 -0
  198. package/dist/src/test-helpers/elasticsearch.js.map +1 -0
  199. package/dist/src/test-helpers/fixtures/even-date-data.d.ts +9 -0
  200. package/dist/src/test-helpers/fixtures/even-date-data.d.ts.map +1 -0
  201. package/dist/src/test-helpers/fixtures/even-date-data.js +10018 -0
  202. package/dist/src/test-helpers/fixtures/even-date-data.js.map +1 -0
  203. package/dist/src/test-helpers/fixtures/index.d.ts +3 -0
  204. package/dist/src/test-helpers/fixtures/index.d.ts.map +1 -0
  205. package/dist/src/test-helpers/fixtures/index.js +3 -0
  206. package/dist/src/test-helpers/fixtures/index.js.map +1 -0
  207. package/dist/src/test-helpers/fixtures/interfaces.d.ts +11 -0
  208. package/dist/src/test-helpers/fixtures/interfaces.d.ts.map +1 -0
  209. package/dist/src/test-helpers/fixtures/interfaces.js +2 -0
  210. package/dist/src/test-helpers/fixtures/interfaces.js.map +1 -0
  211. package/dist/src/test-helpers/fixtures/uneven-date-data.d.ts +9 -0
  212. package/dist/src/test-helpers/fixtures/uneven-date-data.d.ts.map +1 -0
  213. package/dist/src/test-helpers/fixtures/uneven-date-data.js +3032 -0
  214. package/dist/src/test-helpers/fixtures/uneven-date-data.js.map +1 -0
  215. package/dist/src/test-helpers/index.d.ts +4 -0
  216. package/dist/src/test-helpers/index.d.ts.map +1 -0
  217. package/dist/src/test-helpers/index.js +4 -0
  218. package/dist/src/test-helpers/index.js.map +1 -0
  219. package/dist/src/utils/elasticsearch.d.ts +25 -0
  220. package/dist/src/utils/elasticsearch.d.ts.map +1 -0
  221. package/dist/src/utils/elasticsearch.js +132 -0
  222. package/dist/src/utils/elasticsearch.js.map +1 -0
  223. package/dist/src/utils/index.d.ts +3 -0
  224. package/dist/src/utils/index.d.ts.map +1 -0
  225. package/dist/src/utils/index.js +3 -0
  226. package/dist/src/utils/index.js.map +1 -0
  227. package/dist/src/utils/validation.d.ts +3 -0
  228. package/dist/src/utils/validation.d.ts.map +1 -0
  229. package/dist/src/utils/validation.js +9 -0
  230. package/dist/src/utils/validation.js.map +1 -0
  231. package/package.json +58 -0
@@ -0,0 +1,23 @@
1
+ import { ElasticsearchDistribution } from '@terascope/types';
2
+ export function convertExistsParams(params, distributionMeta) {
3
+ const { majorVersion, distribution, version } = distributionMeta;
4
+ const { type = '_doc', ...parsedParams } = params;
5
+ if (distribution === ElasticsearchDistribution.elasticsearch) {
6
+ if (majorVersion === 8 || majorVersion === 7) {
7
+ return parsedParams;
8
+ }
9
+ if (majorVersion === 6) {
10
+ return {
11
+ type,
12
+ ...parsedParams
13
+ };
14
+ }
15
+ }
16
+ if (distribution === ElasticsearchDistribution.opensearch) {
17
+ if ([1, 2, 3].includes(majorVersion)) {
18
+ return parsedParams;
19
+ }
20
+ }
21
+ throw new Error(`Unsupported ${distribution} version ${version}`);
22
+ }
23
+ //# sourceMappingURL=exists.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exists.js","sourceRoot":"","sources":["../../../../src/client/method-helpers/exists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAgC,MAAM,kBAAkB,CAAC;AAE3F,MAAM,UAAU,mBAAmB,CAC/B,MAAiC,EACjC,gBAAgC;IAEhC,MAAM,EACF,YAAY,EACZ,YAAY,EACZ,OAAO,EACV,GAAG,gBAAgB,CAAC;IAErB,MAAM,EACF,IAAI,GAAG,MAAM,EACb,GAAG,YAAY,EAClB,GAAG,MAAM,CAAC;IAEX,IAAI,YAAY,KAAK,yBAAyB,CAAC,aAAa,EAAE,CAAC;QAC3D,IAAI,YAAY,KAAK,CAAC,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YAC3C,OAAO,YAAY,CAAC;QACxB,CAAC;QAED,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO;gBACH,IAAI;gBACJ,GAAG,YAAY;aAClB,CAAC;QACN,CAAC;IACL,CAAC;IAED,IAAI,YAAY,KAAK,yBAAyB,CAAC,UAAU,EAAE,CAAC;QACxD,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;YACnC,OAAO,YAAY,CAAC;QACxB,CAAC;IACL,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,eAAe,YAAY,YAAY,OAAO,EAAE,CAAC,CAAC;AACtE,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { ClientParams, ClientMetadata } from '@terascope/types';
2
+ export declare function convertGetParams(params: ClientParams.ExistsParams, distributionMeta: ClientMetadata): {
3
+ id: string;
4
+ index: string;
5
+ preference?: string;
6
+ realtime?: boolean;
7
+ refresh?: boolean;
8
+ routing?: string;
9
+ } | {
10
+ id: string;
11
+ index: string;
12
+ preference?: string;
13
+ realtime?: boolean;
14
+ refresh?: boolean;
15
+ routing?: string;
16
+ type: string;
17
+ };
18
+ //# sourceMappingURL=get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../../src/client/method-helpers/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE3F,wBAAgB,gBAAgB,CAC5B,MAAM,EAAE,YAAY,CAAC,YAAY,EACjC,gBAAgB,EAAE,cAAc;;;;;;;;;;;;;;;EAiCnC"}
@@ -0,0 +1,23 @@
1
+ import { ElasticsearchDistribution } from '@terascope/types';
2
+ export function convertGetParams(params, distributionMeta) {
3
+ const { majorVersion, distribution, version } = distributionMeta;
4
+ const { type = '_doc', ...parsedParams } = params;
5
+ if (distribution === ElasticsearchDistribution.elasticsearch) {
6
+ if (majorVersion === 8 || majorVersion === 7) {
7
+ return parsedParams;
8
+ }
9
+ if (majorVersion === 6) {
10
+ return {
11
+ type,
12
+ ...parsedParams
13
+ };
14
+ }
15
+ }
16
+ if (distribution === ElasticsearchDistribution.opensearch) {
17
+ if ([1, 2, 3].includes(majorVersion)) {
18
+ return parsedParams;
19
+ }
20
+ }
21
+ throw new Error(`Unsupported ${distribution} version ${version}`);
22
+ }
23
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../src/client/method-helpers/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAgC,MAAM,kBAAkB,CAAC;AAE3F,MAAM,UAAU,gBAAgB,CAC5B,MAAiC,EACjC,gBAAgC;IAEhC,MAAM,EACF,YAAY,EACZ,YAAY,EACZ,OAAO,EACV,GAAG,gBAAgB,CAAC;IAErB,MAAM,EACF,IAAI,GAAG,MAAM,EACb,GAAG,YAAY,EAClB,GAAG,MAAM,CAAC;IAEX,IAAI,YAAY,KAAK,yBAAyB,CAAC,aAAa,EAAE,CAAC;QAC3D,IAAI,YAAY,KAAK,CAAC,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YAC3C,OAAO,YAAY,CAAC;QACxB,CAAC;QAED,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO;gBACH,IAAI;gBACJ,GAAG,YAAY;aAClB,CAAC;QACN,CAAC;IACL,CAAC;IAED,IAAI,YAAY,KAAK,yBAAyB,CAAC,UAAU,EAAE,CAAC;QACxD,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;YACnC,OAAO,YAAY,CAAC;QACxB,CAAC;IACL,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,eAAe,YAAY,YAAY,OAAO,EAAE,CAAC,CAAC;AACtE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { ESTypes, ClientMetadata } from '@terascope/types';
2
+ export declare function validateDistribution(distributionMeta: ClientMetadata): void;
3
+ export declare function ensureNoTypeInMapping(mappings: Record<string, any> | undefined): Record<string, any>;
4
+ export declare function ensureTypeInMapping(body: ESTypes.IndexTemplateProperties | undefined): ESTypes.IndexTemplateProperties | undefined;
5
+ //# sourceMappingURL=helper-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper-utils.d.ts","sourceRoot":"","sources":["../../../../src/client/method-helpers/helper-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEtF,wBAAgB,oBAAoB,CAChC,gBAAgB,EAAE,cAAc,QAWnC;AAeD,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,uBAc9E;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,SAAS,+CAQpF"}
@@ -0,0 +1,43 @@
1
+ import { ElasticsearchDistribution } from '@terascope/types';
2
+ export function validateDistribution(distributionMeta) {
3
+ const { majorVersion, distribution, version } = distributionMeta;
4
+ if (!validDistributionAndVersion(distribution, majorVersion)) {
5
+ throw new Error(`Unsupported ${distribution} version: ${version}`);
6
+ }
7
+ }
8
+ function validDistributionAndVersion(distribution, majorVersion) {
9
+ const supportedEsVersions = [6, 7, 8];
10
+ const supportedOpenVersions = [1, 2, 3];
11
+ return (distribution === ElasticsearchDistribution.elasticsearch
12
+ && supportedEsVersions.includes(majorVersion))
13
+ || (distribution === ElasticsearchDistribution.opensearch
14
+ && supportedOpenVersions.includes(majorVersion));
15
+ }
16
+ export function ensureNoTypeInMapping(mappings) {
17
+ const parsed = {};
18
+ if (mappings != null) {
19
+ for (const [k, v] of Object.entries(mappings)) {
20
+ if (k === 'properties')
21
+ parsed[k] = v;
22
+ if (k === '_meta')
23
+ parsed[k] = v;
24
+ if (k === 'dynamic')
25
+ parsed[k] = v;
26
+ if (v.properties)
27
+ parsed.properties = v.properties;
28
+ if (v._meta)
29
+ parsed._meta = v._meta;
30
+ if (v.dynamic !== undefined)
31
+ parsed.dynamic = v.dynamic;
32
+ }
33
+ }
34
+ return parsed;
35
+ }
36
+ export function ensureTypeInMapping(body) {
37
+ if (body?.mappings?.properties) {
38
+ const { properties } = body.mappings;
39
+ body.mappings = { _doc: { properties } };
40
+ }
41
+ return body;
42
+ }
43
+ //# sourceMappingURL=helper-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper-utils.js","sourceRoot":"","sources":["../../../../src/client/method-helpers/helper-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAA2B,MAAM,kBAAkB,CAAC;AAEtF,MAAM,UAAU,oBAAoB,CAChC,gBAAgC;IAEhC,MAAM,EACF,YAAY,EACZ,YAAY,EACZ,OAAO,EACV,GAAG,gBAAgB,CAAC;IAErB,IAAI,CAAC,2BAA2B,CAAC,YAAY,EAAE,YAAY,CAAC,EAAE,CAAC;QAC3D,MAAM,IAAI,KAAK,CAAC,eAAe,YAAY,aAAa,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;AACL,CAAC;AAED,SAAS,2BAA2B,CAChC,YAAuC,EACvC,YAAoB;IAEpB,MAAM,mBAAmB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACtC,MAAM,qBAAqB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAExC,OAAO,CAAC,YAAY,KAAK,yBAAyB,CAAC,aAAa;WACzD,mBAAmB,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;WAC/C,CAAC,YAAY,KAAK,yBAAyB,CAAC,UAAU;eAClD,qBAAqB,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,QAAyC;IAC3E,MAAM,MAAM,GAAwB,EAAE,CAAC;IACvC,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;QACnB,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC5C,IAAI,CAAC,KAAK,YAAY;gBAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YACtC,IAAI,CAAC,KAAK,OAAO;gBAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YACjC,IAAI,CAAC,KAAK,SAAS;gBAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YAEnC,IAAI,CAAC,CAAC,UAAU;gBAAE,MAAM,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC;YACnD,IAAI,CAAC,CAAC,KAAK;gBAAE,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;YACpC,IAAI,CAAC,CAAC,OAAO,KAAK,SAAS;gBAAE,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC;QAC5D,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,IAAiD;IACjF,IAAI,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;QAC7B,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC;QAErC,IAAI,CAAC,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC;IAC7C,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { ClientParams, ClientMetadata } from '@terascope/types';
2
+ export declare function convertIndexParams(params: ClientParams.IndexParams, distributionMeta: ClientMetadata): {
3
+ id?: string;
4
+ index: string;
5
+ op_type?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").OpType;
6
+ refresh?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").IndexRefresh;
7
+ routing?: string;
8
+ timeout?: string | number;
9
+ if_seq_no?: number;
10
+ if_primary_term?: number;
11
+ version?: number;
12
+ version_type?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").VersionType;
13
+ wait_for_active_shards?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").WaitForActiveShards;
14
+ body?: unknown;
15
+ } | {
16
+ id?: string;
17
+ index: string;
18
+ op_type?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").OpType;
19
+ refresh?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").IndexRefresh;
20
+ routing?: string;
21
+ timeout?: string | number;
22
+ if_seq_no?: number;
23
+ if_primary_term?: number;
24
+ version?: number;
25
+ version_type?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").VersionType;
26
+ wait_for_active_shards?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").WaitForActiveShards;
27
+ document: unknown;
28
+ } | {
29
+ id?: string;
30
+ index: string;
31
+ op_type?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").OpType;
32
+ refresh?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").IndexRefresh;
33
+ routing?: string;
34
+ timeout?: string | number;
35
+ if_seq_no?: number;
36
+ if_primary_term?: number;
37
+ version?: number;
38
+ version_type?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").VersionType;
39
+ wait_for_active_shards?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").WaitForActiveShards;
40
+ body?: unknown;
41
+ type: string;
42
+ };
43
+ //# sourceMappingURL=index-method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-method.d.ts","sourceRoot":"","sources":["../../../../src/client/method-helpers/index-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE3F,wBAAgB,kBAAkB,CAC9B,MAAM,EAAE,YAAY,CAAC,WAAW,EAChC,gBAAgB,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoDnC"}
@@ -0,0 +1,34 @@
1
+ import { ElasticsearchDistribution } from '@terascope/types';
2
+ export function convertIndexParams(params, distributionMeta) {
3
+ const { majorVersion, distribution, version } = distributionMeta;
4
+ if (distribution === ElasticsearchDistribution.elasticsearch) {
5
+ if (majorVersion === 8) {
6
+ // make sure to remove type
7
+ const { type, body, ...parsedParams } = params;
8
+ // ES8 does not have body
9
+ return {
10
+ document: body,
11
+ ...parsedParams
12
+ };
13
+ }
14
+ if (majorVersion === 7) {
15
+ const { type, ...parsedParams } = params;
16
+ return parsedParams;
17
+ }
18
+ if (majorVersion === 6) {
19
+ const { type = '_doc', ...parsedParams } = params;
20
+ return {
21
+ type,
22
+ ...parsedParams
23
+ };
24
+ }
25
+ }
26
+ if (distribution === ElasticsearchDistribution.opensearch) {
27
+ if ([1, 2, 3].includes(majorVersion)) {
28
+ const { type, ...parsedParams } = params;
29
+ return parsedParams;
30
+ }
31
+ }
32
+ throw new Error(`Unsupported ${distribution} version ${version}`);
33
+ }
34
+ //# sourceMappingURL=index-method.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-method.js","sourceRoot":"","sources":["../../../../src/client/method-helpers/index-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAgC,MAAM,kBAAkB,CAAC;AAE3F,MAAM,UAAU,kBAAkB,CAC9B,MAAgC,EAChC,gBAAgC;IAEhC,MAAM,EACF,YAAY,EACZ,YAAY,EACZ,OAAO,EACV,GAAG,gBAAgB,CAAC;IAErB,IAAI,YAAY,KAAK,yBAAyB,CAAC,aAAa,EAAE,CAAC;QAC3D,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YACrB,2BAA2B;YAC3B,MAAM,EACF,IAAI,EAAE,IAAI,EAAE,GAAG,YAAY,EAC9B,GAAG,MAAM,CAAC;YACX,yBAAyB;YACzB,OAAO;gBACH,QAAQ,EAAE,IAAI;gBACd,GAAG,YAAY;aAClB,CAAC;QACN,CAAC;QAED,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YACrB,MAAM,EACF,IAAI,EAAE,GAAG,YAAY,EACxB,GAAG,MAAM,CAAC;YAEX,OAAO,YAAY,CAAC;QACxB,CAAC;QAED,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YACrB,MAAM,EACF,IAAI,GAAG,MAAM,EAAE,GAAG,YAAY,EACjC,GAAG,MAAM,CAAC;YAEX,OAAO;gBACH,IAAI;gBACJ,GAAG,YAAY;aAClB,CAAC;QACN,CAAC;IACL,CAAC;IAED,IAAI,YAAY,KAAK,yBAAyB,CAAC,UAAU,EAAE,CAAC;QACxD,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;YACnC,MAAM,EACF,IAAI,EAAE,GAAG,YAAY,EACxB,GAAG,MAAM,CAAC;YAEX,OAAO,YAAY,CAAC;QACxB,CAAC;IACL,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,eAAe,YAAY,YAAY,OAAO,EAAE,CAAC,CAAC;AACtE,CAAC"}
@@ -0,0 +1,41 @@
1
+ export * from './bulk.js';
2
+ export * from './count.js';
3
+ export * from './create.js';
4
+ export * from './delete.js';
5
+ export * from './deleteByQuery.js';
6
+ export * from './get.js';
7
+ export * from './exists.js';
8
+ export * from './helper-utils.js';
9
+ export * from './search.js';
10
+ export * from './msearch.js';
11
+ export * from './mget.js';
12
+ export * from './reindex.js';
13
+ export * from './index-method.js';
14
+ export * from './update.js';
15
+ export * from './clusterGetSettings.js';
16
+ export * from './clusterHealth.js';
17
+ export * from './catIndices.js';
18
+ export * from './nodesInfo.js';
19
+ export * from './nodesStats.js';
20
+ export * from './indicesCreate.js';
21
+ export * from './indicesGet.js';
22
+ export * from './indicesDelete.js';
23
+ export * from './indicesExists.js';
24
+ export * from './indicesDeleteTemplate.js';
25
+ export * from './indicesPutTemplate.js';
26
+ export * from './indicesExistsTemplate.js';
27
+ export * from './indicesGetTemplate.js';
28
+ export * from './indicesGetIndexTemplate.js';
29
+ export * from './tasksList.js';
30
+ export * from './tasksGet.js';
31
+ export * from './tasksCancel.js';
32
+ export * from './indicesValidateQuery.js';
33
+ export * from './indicesRecovery.js';
34
+ export * from './indicesRefresh.js';
35
+ export * from './indicesPutSettings.js';
36
+ export * from './indicesGetSettings.js';
37
+ export * from './indicesGetFieldMapping.js';
38
+ export * from './indicesPutMapping.js';
39
+ export * from './indicesGetMapping.js';
40
+ export * from './indicesStats.js';
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/method-helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,41 @@
1
+ export * from './bulk.js';
2
+ export * from './count.js';
3
+ export * from './create.js';
4
+ export * from './delete.js';
5
+ export * from './deleteByQuery.js';
6
+ export * from './get.js';
7
+ export * from './exists.js';
8
+ export * from './helper-utils.js';
9
+ export * from './search.js';
10
+ export * from './msearch.js';
11
+ export * from './mget.js';
12
+ export * from './reindex.js';
13
+ export * from './index-method.js';
14
+ export * from './update.js';
15
+ export * from './clusterGetSettings.js';
16
+ export * from './clusterHealth.js';
17
+ export * from './catIndices.js';
18
+ export * from './nodesInfo.js';
19
+ export * from './nodesStats.js';
20
+ export * from './indicesCreate.js';
21
+ export * from './indicesGet.js';
22
+ export * from './indicesDelete.js';
23
+ export * from './indicesExists.js';
24
+ export * from './indicesDeleteTemplate.js';
25
+ export * from './indicesPutTemplate.js';
26
+ export * from './indicesExistsTemplate.js';
27
+ export * from './indicesGetTemplate.js';
28
+ export * from './indicesGetIndexTemplate.js';
29
+ export * from './tasksList.js';
30
+ export * from './tasksGet.js';
31
+ export * from './tasksCancel.js';
32
+ export * from './indicesValidateQuery.js';
33
+ export * from './indicesRecovery.js';
34
+ export * from './indicesRefresh.js';
35
+ export * from './indicesPutSettings.js';
36
+ export * from './indicesGetSettings.js';
37
+ export * from './indicesGetFieldMapping.js';
38
+ export * from './indicesPutMapping.js';
39
+ export * from './indicesGetMapping.js';
40
+ export * from './indicesStats.js';
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/method-helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { ClientParams, ClientMetadata } from '@terascope/types';
2
+ export declare function convertIndicesCreateParams(params: ClientParams.IndicesCreateParams, distributionMeta: ClientMetadata): ClientParams.IndicesCreateParams | {
3
+ index: string;
4
+ wait_for_active_shards?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types.js").WaitForActiveShards;
5
+ timeout?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types.js").TimeSpan;
6
+ master_timeout?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types.js").TimeSpan;
7
+ aliases: {
8
+ [alias: string]: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types.js").Alias;
9
+ } | undefined;
10
+ mappings: Record<string, any>;
11
+ settings: Record<string, any> | undefined;
12
+ };
13
+ //# sourceMappingURL=indicesCreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicesCreate.d.ts","sourceRoot":"","sources":["../../../../src/client/method-helpers/indicesCreate.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAG3F,wBAAgB,0BAA0B,CACtC,MAAM,EAAE,YAAY,CAAC,mBAAmB,EACxC,gBAAgB,EAAE,cAAc;;;;;;;;;;EAuEnC"}
@@ -0,0 +1,47 @@
1
+ import { ElasticsearchDistribution } from '@terascope/types';
2
+ import { ensureNoTypeInMapping, ensureTypeInMapping } from './helper-utils.js';
3
+ export function convertIndicesCreateParams(params, distributionMeta) {
4
+ const { majorVersion, distribution, version } = distributionMeta;
5
+ if (distribution === ElasticsearchDistribution.elasticsearch) {
6
+ if (majorVersion === 8) {
7
+ const { include_type_name, body, ...parsedParams } = params;
8
+ return {
9
+ aliases: body?.aliases,
10
+ // ensure no type in mapping
11
+ mappings: ensureNoTypeInMapping(body?.mappings),
12
+ settings: body?.settings,
13
+ ...parsedParams
14
+ };
15
+ }
16
+ if (majorVersion === 7) {
17
+ return params;
18
+ }
19
+ if (majorVersion === 6) {
20
+ const { body, include_type_name, ...parsedParams } = params;
21
+ return {
22
+ include_type_name: true,
23
+ body: ensureTypeInMapping(body),
24
+ ...parsedParams
25
+ };
26
+ }
27
+ }
28
+ if (distribution === ElasticsearchDistribution.opensearch) {
29
+ if (majorVersion === 1) {
30
+ return params;
31
+ }
32
+ if (majorVersion === 2 || majorVersion === 3) {
33
+ const { include_type_name, master_timeout, body, ...parsedParams } = params;
34
+ const newBody = {
35
+ ...body,
36
+ mappings: ensureNoTypeInMapping(body?.mappings),
37
+ };
38
+ return {
39
+ ...parsedParams,
40
+ body: newBody,
41
+ ...(master_timeout !== undefined && { cluster_manager_timeout: master_timeout }),
42
+ };
43
+ }
44
+ }
45
+ throw new Error(`unsupported ${distribution} version: ${version}`);
46
+ }
47
+ //# sourceMappingURL=indicesCreate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicesCreate.js","sourceRoot":"","sources":["../../../../src/client/method-helpers/indicesCreate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAgC,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE/E,MAAM,UAAU,0BAA0B,CACtC,MAAwC,EACxC,gBAAgC;IAEhC,MAAM,EACF,YAAY,EACZ,YAAY,EACZ,OAAO,EACV,GAAG,gBAAgB,CAAC;IAErB,IAAI,YAAY,KAAK,yBAAyB,CAAC,aAAa,EAAE,CAAC;QAC3D,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YACrB,MAAM,EACF,iBAAiB,EACjB,IAAI,EACJ,GAAG,YAAY,EAClB,GAAG,MAAM,CAAC;YAEX,OAAO;gBACH,OAAO,EAAE,IAAI,EAAE,OAAO;gBACtB,4BAA4B;gBAC5B,QAAQ,EAAE,qBAAqB,CAAC,IAAI,EAAE,QAAQ,CAAC;gBAC/C,QAAQ,EAAE,IAAI,EAAE,QAAQ;gBACxB,GAAG,YAAY;aAClB,CAAC;QACN,CAAC;QAED,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,MAAM,CAAC;QAClB,CAAC;QAED,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YACrB,MAAM,EACF,IAAI,EACJ,iBAAiB,EACjB,GAAG,YAAY,EAClB,GAAG,MAAM,CAAC;YAEX,OAAO;gBACH,iBAAiB,EAAE,IAAI;gBACvB,IAAI,EAAE,mBAAmB,CAAC,IAAI,CAAC;gBAC/B,GAAG,YAAY;aAClB,CAAC;QACN,CAAC;IACL,CAAC;IAED,IAAI,YAAY,KAAK,yBAAyB,CAAC,UAAU,EAAE,CAAC;QACxD,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,MAAM,CAAC;QAClB,CAAC;QAED,IAAI,YAAY,KAAK,CAAC,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YAC3C,MAAM,EACF,iBAAiB,EACjB,cAAc,EACd,IAAI,EACJ,GAAG,YAAY,EAClB,GAAG,MAAM,CAAC;YAEX,MAAM,OAAO,GAAG;gBACZ,GAAG,IAAI;gBACP,QAAQ,EAAE,qBAAqB,CAAC,IAAI,EAAE,QAAQ,CAAC;aAClD,CAAC;YAEF,OAAO;gBACH,GAAG,YAAY;gBACf,IAAI,EAAE,OAAO;gBACb,GAAG,CAAC,cAAc,KAAK,SAAS,IAAI,EAAE,uBAAuB,EAAE,cAAc,EAAE,CAAC;aACnF,CAAC;QACN,CAAC;IACL,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,eAAe,YAAY,aAAa,OAAO,EAAE,CAAC,CAAC;AACvE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ClientParams, ClientMetadata } from '@terascope/types';
2
+ export declare function convertIndicesDeleteParams(params: ClientParams.IndicesDeleteParams, distributionMeta: ClientMetadata): ClientParams.IndicesDeleteParams;
3
+ //# sourceMappingURL=indicesDelete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicesDelete.d.ts","sourceRoot":"","sources":["../../../../src/client/method-helpers/indicesDelete.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE3F,wBAAgB,0BAA0B,CACtC,MAAM,EAAE,YAAY,CAAC,mBAAmB,EACxC,gBAAgB,EAAE,cAAc,oCA8BnC"}
@@ -0,0 +1,23 @@
1
+ import { ElasticsearchDistribution } from '@terascope/types';
2
+ export function convertIndicesDeleteParams(params, distributionMeta) {
3
+ const { majorVersion, distribution, version } = distributionMeta;
4
+ if (distribution === ElasticsearchDistribution.elasticsearch) {
5
+ if ([6, 7, 8].includes(majorVersion)) {
6
+ return params;
7
+ }
8
+ }
9
+ if (distribution === ElasticsearchDistribution.opensearch) {
10
+ if (majorVersion === 1) {
11
+ return params;
12
+ }
13
+ if (majorVersion === 2 || majorVersion === 3) {
14
+ const { master_timeout, ...parsedParams } = params;
15
+ return {
16
+ ...parsedParams,
17
+ ...(master_timeout !== undefined && { cluster_manager_timeout: master_timeout }),
18
+ };
19
+ }
20
+ }
21
+ throw new Error(`unsupported ${distribution} version: ${version}`);
22
+ }
23
+ //# sourceMappingURL=indicesDelete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicesDelete.js","sourceRoot":"","sources":["../../../../src/client/method-helpers/indicesDelete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAgC,MAAM,kBAAkB,CAAC;AAE3F,MAAM,UAAU,0BAA0B,CACtC,MAAwC,EACxC,gBAAgC;IAEhC,MAAM,EACF,YAAY,EACZ,YAAY,EACZ,OAAO,EACV,GAAG,gBAAgB,CAAC;IAErB,IAAI,YAAY,KAAK,yBAAyB,CAAC,aAAa,EAAE,CAAC;QAC3D,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;YACnC,OAAO,MAAM,CAAC;QAClB,CAAC;IACL,CAAC;IAED,IAAI,YAAY,KAAK,yBAAyB,CAAC,UAAU,EAAE,CAAC;QACxD,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,MAAM,CAAC;QAClB,CAAC;QAED,IAAI,YAAY,KAAK,CAAC,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YAC3C,MAAM,EAAE,cAAc,EAAE,GAAG,YAAY,EAAE,GAAG,MAAM,CAAC;YAEnD,OAAO;gBACH,GAAG,YAAY;gBACf,GAAG,CAAC,cAAc,KAAK,SAAS,IAAI,EAAE,uBAAuB,EAAE,cAAc,EAAE,CAAC;aACnF,CAAC;QACN,CAAC;IACL,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,eAAe,YAAY,aAAa,OAAO,EAAE,CAAC,CAAC;AACvE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ClientParams, ClientMetadata } from '@terascope/types';
2
+ export declare function convertIndicesDeleteTemplateParams(params: ClientParams.IndicesDeleteTemplateParams, distributionMeta: ClientMetadata): ClientParams.IndicesDeleteTemplateParams;
3
+ //# sourceMappingURL=indicesDeleteTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicesDeleteTemplate.d.ts","sourceRoot":"","sources":["../../../../src/client/method-helpers/indicesDeleteTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE3F,wBAAgB,kCAAkC,CAC9C,MAAM,EAAE,YAAY,CAAC,2BAA2B,EAChD,gBAAgB,EAAE,cAAc,4CA8BnC"}
@@ -0,0 +1,23 @@
1
+ import { ElasticsearchDistribution } from '@terascope/types';
2
+ export function convertIndicesDeleteTemplateParams(params, distributionMeta) {
3
+ const { majorVersion, distribution, version } = distributionMeta;
4
+ if (distribution === ElasticsearchDistribution.elasticsearch) {
5
+ if ([6, 7, 8].includes(majorVersion)) {
6
+ return params;
7
+ }
8
+ }
9
+ if (distribution === ElasticsearchDistribution.opensearch) {
10
+ if (majorVersion === 1) {
11
+ return params;
12
+ }
13
+ if (majorVersion === 2 || majorVersion === 3) {
14
+ const { master_timeout, ...parsedParams } = params;
15
+ return {
16
+ ...parsedParams,
17
+ ...(master_timeout !== undefined && { cluster_manager_timeout: master_timeout }),
18
+ };
19
+ }
20
+ }
21
+ throw new Error(`unsupported ${distribution} version: ${version}`);
22
+ }
23
+ //# sourceMappingURL=indicesDeleteTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicesDeleteTemplate.js","sourceRoot":"","sources":["../../../../src/client/method-helpers/indicesDeleteTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAgC,MAAM,kBAAkB,CAAC;AAE3F,MAAM,UAAU,kCAAkC,CAC9C,MAAgD,EAChD,gBAAgC;IAEhC,MAAM,EACF,YAAY,EACZ,YAAY,EACZ,OAAO,EACV,GAAG,gBAAgB,CAAC;IAErB,IAAI,YAAY,KAAK,yBAAyB,CAAC,aAAa,EAAE,CAAC;QAC3D,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;YACnC,OAAO,MAAM,CAAC;QAClB,CAAC;IACL,CAAC;IAED,IAAI,YAAY,KAAK,yBAAyB,CAAC,UAAU,EAAE,CAAC;QACxD,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,MAAM,CAAC;QAClB,CAAC;QAED,IAAI,YAAY,KAAK,CAAC,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YAC3C,MAAM,EAAE,cAAc,EAAE,GAAG,YAAY,EAAE,GAAG,MAAM,CAAC;YAEnD,OAAO;gBACH,GAAG,YAAY;gBACf,GAAG,CAAC,cAAc,KAAK,SAAS,IAAI,EAAE,uBAAuB,EAAE,cAAc,EAAE,CAAC;aACnF,CAAC;QACN,CAAC;IACL,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,eAAe,YAAY,aAAa,OAAO,EAAE,CAAC,CAAC;AACvE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ClientParams, ClientMetadata } from '@terascope/types';
2
+ export declare function convertIndicesExistsParams(params: ClientParams.IndicesExistsParams, distributionMeta: ClientMetadata): ClientParams.IndicesExistsParams;
3
+ //# sourceMappingURL=indicesExists.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicesExists.d.ts","sourceRoot":"","sources":["../../../../src/client/method-helpers/indicesExists.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE3F,wBAAgB,0BAA0B,CACtC,MAAM,EAAE,YAAY,CAAC,mBAAmB,EACxC,gBAAgB,EAAE,cAAc,oCAqBnC"}
@@ -0,0 +1,16 @@
1
+ import { ElasticsearchDistribution } from '@terascope/types';
2
+ export function convertIndicesExistsParams(params, distributionMeta) {
3
+ const { majorVersion, distribution, version } = distributionMeta;
4
+ if (distribution === ElasticsearchDistribution.elasticsearch) {
5
+ if ([6, 7, 8].includes(majorVersion)) {
6
+ return params;
7
+ }
8
+ }
9
+ if (distribution === ElasticsearchDistribution.opensearch) {
10
+ if ([1, 2, 3].includes(majorVersion)) {
11
+ return params;
12
+ }
13
+ }
14
+ throw new Error(`unsupported ${distribution} version: ${version}`);
15
+ }
16
+ //# sourceMappingURL=indicesExists.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicesExists.js","sourceRoot":"","sources":["../../../../src/client/method-helpers/indicesExists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAgC,MAAM,kBAAkB,CAAC;AAE3F,MAAM,UAAU,0BAA0B,CACtC,MAAwC,EACxC,gBAAgC;IAEhC,MAAM,EACF,YAAY,EACZ,YAAY,EACZ,OAAO,EACV,GAAG,gBAAgB,CAAC;IAErB,IAAI,YAAY,KAAK,yBAAyB,CAAC,aAAa,EAAE,CAAC;QAC3D,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;YACnC,OAAO,MAAM,CAAC;QAClB,CAAC;IACL,CAAC;IAED,IAAI,YAAY,KAAK,yBAAyB,CAAC,UAAU,EAAE,CAAC;QACxD,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;YACnC,OAAO,MAAM,CAAC;QAClB,CAAC;IACL,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,eAAe,YAAY,aAAa,OAAO,EAAE,CAAC,CAAC;AACvE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ClientParams, ClientMetadata } from '@terascope/types';
2
+ export declare function convertIndicesExistsTemplateParams(params: ClientParams.IndicesExistsTemplateParams, distributionMeta: ClientMetadata): ClientParams.IndicesExistsTemplateParams;
3
+ //# sourceMappingURL=indicesExistsTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicesExistsTemplate.d.ts","sourceRoot":"","sources":["../../../../src/client/method-helpers/indicesExistsTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE3F,wBAAgB,kCAAkC,CAC9C,MAAM,EAAE,YAAY,CAAC,2BAA2B,EAChD,gBAAgB,EAAE,cAAc,4CA4BnC"}
@@ -0,0 +1,22 @@
1
+ import { ElasticsearchDistribution } from '@terascope/types';
2
+ export function convertIndicesExistsTemplateParams(params, distributionMeta) {
3
+ const { majorVersion, distribution, version } = distributionMeta;
4
+ if (distribution === ElasticsearchDistribution.elasticsearch) {
5
+ if ([6, 7, 8].includes(majorVersion))
6
+ return params;
7
+ }
8
+ if (distribution === ElasticsearchDistribution.opensearch) {
9
+ if (majorVersion === 1) {
10
+ return params;
11
+ }
12
+ if (majorVersion === 2 || majorVersion === 3) {
13
+ const { master_timeout, ...parsedParams } = params;
14
+ return {
15
+ ...parsedParams,
16
+ ...(master_timeout !== undefined && { cluster_manager_timeout: master_timeout }),
17
+ };
18
+ }
19
+ }
20
+ throw new Error(`unsupported ${distribution} version: ${version}`);
21
+ }
22
+ //# sourceMappingURL=indicesExistsTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicesExistsTemplate.js","sourceRoot":"","sources":["../../../../src/client/method-helpers/indicesExistsTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAgC,MAAM,kBAAkB,CAAC;AAE3F,MAAM,UAAU,kCAAkC,CAC9C,MAAgD,EAChD,gBAAgC;IAEhC,MAAM,EACF,YAAY,EACZ,YAAY,EACZ,OAAO,EACV,GAAG,gBAAgB,CAAC;IAErB,IAAI,YAAY,KAAK,yBAAyB,CAAC,aAAa,EAAE,CAAC;QAC3D,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC;YAAE,OAAO,MAAM,CAAC;IACxD,CAAC;IAED,IAAI,YAAY,KAAK,yBAAyB,CAAC,UAAU,EAAE,CAAC;QACxD,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,MAAM,CAAC;QAClB,CAAC;QAED,IAAI,YAAY,KAAK,CAAC,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YAC3C,MAAM,EAAE,cAAc,EAAE,GAAG,YAAY,EAAE,GAAG,MAAM,CAAC;YAEnD,OAAO;gBACH,GAAG,YAAY;gBACf,GAAG,CAAC,cAAc,KAAK,SAAS,IAAI,EAAE,uBAAuB,EAAE,cAAc,EAAE,CAAC;aACnF,CAAC;QACN,CAAC;IACL,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,eAAe,YAAY,aAAa,OAAO,EAAE,CAAC,CAAC;AACvE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { ClientParams, ClientMetadata } from '@terascope/types';
2
+ export declare function convertIndicesGetParams(params: ClientParams.IndicesGetParams, distributionMeta: ClientMetadata): {
3
+ index: string | string[];
4
+ local?: boolean;
5
+ ignore_unavailable?: boolean;
6
+ allow_no_indices?: boolean;
7
+ expand_wildcards?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").ExpandWildcards;
8
+ flat_settings?: boolean;
9
+ include_defaults?: boolean;
10
+ master_timeout?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").TimeSpan;
11
+ };
12
+ //# sourceMappingURL=indicesGet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicesGet.d.ts","sourceRoot":"","sources":["../../../../src/client/method-helpers/indicesGet.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE3F,wBAAgB,uBAAuB,CACnC,MAAM,EAAE,YAAY,CAAC,gBAAgB,EACrC,gBAAgB,EAAE,cAAc;;;;;;;;;EA2CnC"}
@@ -0,0 +1,27 @@
1
+ import { ElasticsearchDistribution } from '@terascope/types';
2
+ export function convertIndicesGetParams(params, distributionMeta) {
3
+ const { majorVersion, distribution, version } = distributionMeta;
4
+ if (distribution === ElasticsearchDistribution.elasticsearch) {
5
+ if (majorVersion === 8) {
6
+ const { include_type_name, ...parsedParams } = params;
7
+ return parsedParams;
8
+ }
9
+ if ([6, 7].includes(majorVersion)) {
10
+ return params;
11
+ }
12
+ }
13
+ if (distribution === ElasticsearchDistribution.opensearch) {
14
+ if (majorVersion === 1) {
15
+ return params;
16
+ }
17
+ if (majorVersion === 2 || majorVersion === 3) {
18
+ const { master_timeout, include_type_name, ...parsedParams } = params;
19
+ return {
20
+ ...parsedParams,
21
+ ...(master_timeout !== undefined && { cluster_manager_timeout: master_timeout }),
22
+ };
23
+ }
24
+ }
25
+ throw new Error(`unsupported ${distribution} version: ${version}`);
26
+ }
27
+ //# sourceMappingURL=indicesGet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicesGet.js","sourceRoot":"","sources":["../../../../src/client/method-helpers/indicesGet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAgC,MAAM,kBAAkB,CAAC;AAE3F,MAAM,UAAU,uBAAuB,CACnC,MAAqC,EACrC,gBAAgC;IAEhC,MAAM,EACF,YAAY,EACZ,YAAY,EACZ,OAAO,EACV,GAAG,gBAAgB,CAAC;IAErB,IAAI,YAAY,KAAK,yBAAyB,CAAC,aAAa,EAAE,CAAC;QAC3D,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YACrB,MAAM,EACF,iBAAiB,EACjB,GAAG,YAAY,EAClB,GAAG,MAAM,CAAC;YAEX,OAAO,YAAY,CAAC;QACxB,CAAC;QAED,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;YAChC,OAAO,MAAM,CAAC;QAClB,CAAC;IACL,CAAC;IAED,IAAI,YAAY,KAAK,yBAAyB,CAAC,UAAU,EAAE,CAAC;QACxD,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,MAAM,CAAC;QAClB,CAAC;QAED,IAAI,YAAY,KAAK,CAAC,IAAI,YAAY,KAAK,CAAC,EAAE,CAAC;YAC3C,MAAM,EACF,cAAc,EACd,iBAAiB,EACjB,GAAG,YAAY,EAClB,GAAG,MAAM,CAAC;YAEX,OAAO;gBACH,GAAG,YAAY;gBACf,GAAG,CAAC,cAAc,KAAK,SAAS,IAAI,EAAE,uBAAuB,EAAE,cAAc,EAAE,CAAC;aACnF,CAAC;QACN,CAAC;IACL,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,eAAe,YAAY,aAAa,OAAO,EAAE,CAAC,CAAC;AACvE,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { ClientParams, ClientMetadata } from '@terascope/types';
2
+ export declare function convertIndicesGetFieldMappingParams(params: ClientParams.IndicesGetFieldMappingParams, distributionMeta: ClientMetadata): {
3
+ fields: string | string[];
4
+ index?: string | string[];
5
+ allow_no_indices?: boolean;
6
+ expand_wildcards?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").ExpandWildcards;
7
+ ignore_unavailable?: boolean;
8
+ include_defaults?: boolean;
9
+ local?: boolean;
10
+ } | {
11
+ fields: string | string[];
12
+ index?: string | string[];
13
+ allow_no_indices?: boolean;
14
+ expand_wildcards?: import("packages/types/dist/src/elasticsearch-client/elasticsearch-types").ExpandWildcards;
15
+ ignore_unavailable?: boolean;
16
+ include_defaults?: boolean;
17
+ local?: boolean;
18
+ type: string | string[];
19
+ };
20
+ //# sourceMappingURL=indicesGetFieldMapping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indicesGetFieldMapping.d.ts","sourceRoot":"","sources":["../../../../src/client/method-helpers/indicesGetFieldMapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE3F,wBAAgB,mCAAmC,CAC/C,MAAM,EAAE,YAAY,CAAC,4BAA4B,EACjD,gBAAgB,EAAE,cAAc;;;;;;;;;;;;;;;;;EAkCnC"}