@evergis/api
Advanced tools
Comparing version 0.1.38 to 0.1.39
import { ServiceBase } from './ServiceBase'; | ||
import { Schema, EvaluatedToolDc, Tool, AccessControlListDc, ToolInfo, ToolInfoDc, TaskStatusDataDc } from './data-contracts'; | ||
import { ExtendedToolDefinitionDc, EvaluatedToolDc, ToolDefinition, AccessControlListDc, ToolInfo, ToolInfoDc, TaskStatusDataDc } from './data-contracts'; | ||
export declare class Tools extends ServiceBase { | ||
getTools(): Promise<string[]>; | ||
getToolDescription(name: string): Promise<{ | ||
[key: string]: Schema; | ||
}>; | ||
reloadTools(): Promise<string[]>; | ||
getToolDescription(name: string): Promise<ExtendedToolDefinitionDc>; | ||
evaluateTool({ name, parameters }: EvaluateToolParams): Promise<EvaluatedToolDc>; | ||
@@ -20,3 +19,3 @@ getToolAcl(name: string): Promise<AccessControlListDc>; | ||
/** */ | ||
parameters?: Tool; | ||
parameters?: ToolDefinition; | ||
}; | ||
@@ -31,3 +30,3 @@ export declare type GetToolsListsParams = { | ||
/** */ | ||
Type?: string; | ||
Type: string; | ||
/** */ | ||
@@ -34,0 +33,0 @@ UserName?: string; |
@@ -12,4 +12,9 @@ /* | ||
} | ||
reloadTools() { | ||
return this.http.post(`${this.name}/reload`).json(); | ||
} | ||
getToolDescription(name) { | ||
return this.http.get(`${this.name}/${name}`).json(); | ||
return this.http | ||
.get(`${this.name}/${name}`) | ||
.json(); | ||
} | ||
@@ -16,0 +21,0 @@ evaluateTool({ name, parameters }) { |
{ | ||
"name": "@evergis/api", | ||
"version": "0.1.38", | ||
"version": "0.1.39", | ||
"license": "ISC", | ||
@@ -5,0 +5,0 @@ "author": "everpoint", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
264127
5697