@elastic/elasticsearch-canary
Advanced tools
Comparing version 8.6.0-canary.3 to 8.7.0-canary.1
@@ -223,3 +223,3 @@ "use strict"; | ||
const acceptedPath = ['name']; | ||
const acceptedBody = ['template', 'aliases', 'mappings', 'settings', 'version', '_meta']; | ||
const acceptedBody = ['template', 'version', '_meta', 'allow_auto_create']; | ||
const querystring = {}; | ||
@@ -226,0 +226,0 @@ // @ts-expect-error |
@@ -7,5 +7,5 @@ import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport'; | ||
} | ||
export default function FieldCapsApi(this: That, params: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.FieldCapsResponse>; | ||
export default function FieldCapsApi(this: That, params: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.FieldCapsResponse, unknown>>; | ||
export default function FieldCapsApi(this: That, params: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptions): Promise<T.FieldCapsResponse>; | ||
export default function FieldCapsApi(this: That, params?: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.FieldCapsResponse>; | ||
export default function FieldCapsApi(this: That, params?: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.FieldCapsResponse, unknown>>; | ||
export default function FieldCapsApi(this: That, params?: T.FieldCapsRequest | TB.FieldCapsRequest, options?: TransportRequestOptions): Promise<T.FieldCapsResponse>; | ||
export {}; |
@@ -23,3 +23,3 @@ "use strict"; | ||
const acceptedPath = ['index']; | ||
const acceptedBody = ['index_filter', 'runtime_mappings']; | ||
const acceptedBody = ['fields', 'index_filter', 'runtime_mappings']; | ||
const querystring = {}; | ||
@@ -35,2 +35,3 @@ // @ts-expect-error | ||
} | ||
params = params !== null && params !== void 0 ? params : {}; | ||
for (const key in params) { | ||
@@ -37,0 +38,0 @@ if (acceptedBody.includes(key)) { |
@@ -22,5 +22,5 @@ import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport'; | ||
getTrialStatus(this: That, params?: T.LicenseGetTrialStatusRequest | TB.LicenseGetTrialStatusRequest, options?: TransportRequestOptions): Promise<T.LicenseGetTrialStatusResponse>; | ||
post(this: That, params: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.LicensePostResponse>; | ||
post(this: That, params: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.LicensePostResponse, unknown>>; | ||
post(this: That, params: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptions): Promise<T.LicensePostResponse>; | ||
post(this: That, params?: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.LicensePostResponse>; | ||
post(this: That, params?: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.LicensePostResponse, unknown>>; | ||
post(this: That, params?: T.LicensePostRequest | TB.LicensePostRequest, options?: TransportRequestOptions): Promise<T.LicensePostResponse>; | ||
postStartBasic(this: That, params?: T.LicensePostStartBasicRequest | TB.LicensePostStartBasicRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.LicensePostStartBasicResponse>; | ||
@@ -27,0 +27,0 @@ postStartBasic(this: That, params?: T.LicensePostStartBasicRequest | TB.LicensePostStartBasicRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.LicensePostStartBasicResponse, unknown>>; |
@@ -116,2 +116,3 @@ "use strict"; | ||
} | ||
params = params !== null && params !== void 0 ? params : {}; | ||
for (const key in params) { | ||
@@ -118,0 +119,0 @@ if (acceptedBody.includes(key)) { |
@@ -10,5 +10,5 @@ import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport'; | ||
constructor(transport: Transport); | ||
clearTrainedModelDeploymentCache(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>; | ||
clearTrainedModelDeploymentCache(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>; | ||
clearTrainedModelDeploymentCache(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>; | ||
clearTrainedModelDeploymentCache(this: That, params: T.MlClearTrainedModelDeploymentCacheRequest | TB.MlClearTrainedModelDeploymentCacheRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MlClearTrainedModelDeploymentCacheResponse>; | ||
clearTrainedModelDeploymentCache(this: That, params: T.MlClearTrainedModelDeploymentCacheRequest | TB.MlClearTrainedModelDeploymentCacheRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.MlClearTrainedModelDeploymentCacheResponse, unknown>>; | ||
clearTrainedModelDeploymentCache(this: That, params: T.MlClearTrainedModelDeploymentCacheRequest | TB.MlClearTrainedModelDeploymentCacheRequest, options?: TransportRequestOptions): Promise<T.MlClearTrainedModelDeploymentCacheResponse>; | ||
closeJob(this: That, params: T.MlCloseJobRequest | TB.MlCloseJobRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MlCloseJobResponse>; | ||
@@ -218,2 +218,5 @@ closeJob(this: That, params: T.MlCloseJobRequest | TB.MlCloseJobRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.MlCloseJobResponse, unknown>>; | ||
updateModelSnapshot(this: That, params: T.MlUpdateModelSnapshotRequest | TB.MlUpdateModelSnapshotRequest, options?: TransportRequestOptions): Promise<T.MlUpdateModelSnapshotResponse>; | ||
updateTrainedModelDeployment(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>; | ||
updateTrainedModelDeployment(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>; | ||
updateTrainedModelDeployment(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>; | ||
upgradeJobSnapshot(this: That, params: T.MlUpgradeJobSnapshotRequest | TB.MlUpgradeJobSnapshotRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.MlUpgradeJobSnapshotResponse>; | ||
@@ -220,0 +223,0 @@ upgradeJobSnapshot(this: That, params: T.MlUpgradeJobSnapshotRequest | TB.MlUpgradeJobSnapshotRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.MlUpgradeJobSnapshotResponse, unknown>>; |
@@ -23,3 +23,3 @@ "use strict"; | ||
const acceptedPath = ['index', 'field', 'zoom', 'x', 'y']; | ||
const acceptedBody = ['aggs', 'exact_bounds', 'extent', 'fields', 'grid_precision', 'grid_type', 'query', 'runtime_mappings', 'size', 'sort', 'track_total_hits']; | ||
const acceptedBody = ['aggs', 'buffer', 'exact_bounds', 'extent', 'fields', 'grid_agg', 'grid_precision', 'grid_type', 'query', 'runtime_mappings', 'size', 'sort', 'track_total_hits', 'with_labels']; | ||
const querystring = {}; | ||
@@ -26,0 +26,0 @@ // @ts-expect-error |
@@ -28,2 +28,5 @@ import { Transport, TransportRequestOptions, TransportRequestOptionsWithMeta, TransportRequestOptionsWithOutMeta, TransportResult } from '@elastic/transport'; | ||
resetTransform(this: That, params: T.TransformResetTransformRequest | TB.TransformResetTransformRequest, options?: TransportRequestOptions): Promise<T.TransformResetTransformResponse>; | ||
scheduleNowTransform(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>; | ||
scheduleNowTransform(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>; | ||
scheduleNowTransform(this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>; | ||
startTransform(this: That, params: T.TransformStartTransformRequest | TB.TransformStartTransformRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TransformStartTransformResponse>; | ||
@@ -30,0 +33,0 @@ startTransform(this: That, params: T.TransformStartTransformRequest | TB.TransformStartTransformRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TransformStartTransformResponse, unknown>>; |
@@ -179,2 +179,19 @@ "use strict"; | ||
} | ||
async scheduleNowTransform(params, options) { | ||
const acceptedPath = ['transform_id']; | ||
const querystring = {}; | ||
const body = undefined; | ||
params = params !== null && params !== void 0 ? params : {}; | ||
for (const key in params) { | ||
if (acceptedPath.includes(key)) { | ||
continue; | ||
} | ||
else if (key !== 'body') { | ||
querystring[key] = params[key]; | ||
} | ||
} | ||
const method = 'POST'; | ||
const path = `/_transform/${encodeURIComponent(params.transform_id.toString())}/_schedule_now`; | ||
return await this.transport.request({ path, method, querystring, body }, options); | ||
} | ||
async startTransform(params, options) { | ||
@@ -181,0 +198,0 @@ const acceptedPath = ['transform_id']; |
@@ -30,2 +30,3 @@ import AsyncSearchApi from './api/async_search'; | ||
import GraphApi from './api/graph'; | ||
import healthReportApi from './api/health_report'; | ||
import IlmApi from './api/ilm'; | ||
@@ -109,2 +110,3 @@ import indexApi from './api/index'; | ||
graph: GraphApi; | ||
healthReport: typeof healthReportApi; | ||
ilm: IlmApi; | ||
@@ -111,0 +113,0 @@ index: typeof indexApi; |
@@ -59,2 +59,3 @@ "use strict"; | ||
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")); | ||
@@ -395,2 +396,3 @@ const index_1 = tslib_1.__importDefault(require("./api/index")); | ||
API.prototype.getSource = get_source_1.default; | ||
API.prototype.healthReport = health_report_1.default; | ||
API.prototype.index = index_1.default; | ||
@@ -397,0 +399,0 @@ API.prototype.info = info_1.default; |
@@ -58,4 +58,4 @@ /// <reference types="node" /> | ||
} | ||
declare type UpdateAction = [UpdateActionOperation, Record<string, any>]; | ||
declare type Action = IndexAction | CreateAction | UpdateAction | DeleteAction; | ||
type UpdateAction = [UpdateActionOperation, Record<string, any>]; | ||
type Action = IndexAction | CreateAction | UpdateAction | DeleteAction; | ||
export interface OnDropDocument<TDocument = unknown> { | ||
@@ -62,0 +62,0 @@ status: number; |
{ | ||
"name": "@elastic/elasticsearch-canary", | ||
"version": "8.6.0-canary.3", | ||
"versionCanary": "8.6.0-canary.3", | ||
"version": "8.7.0-canary.1", | ||
"versionCanary": "8.7.0-canary.1", | ||
"description": "The official Elasticsearch client for Node.js", | ||
@@ -94,3 +94,3 @@ "main": "index.js", | ||
}, | ||
"commitHash": "0f0c600b" | ||
"commitHash": "ccf98d12" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2825843
262
47894
1