-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathExternalTool.ts
More file actions
37 lines (33 loc) · 887 Bytes
/
ExternalTool.ts
File metadata and controls
37 lines (33 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
export interface ExternalTool {
id: number
displayName: string
description: string
types: ToolType[]
scope: ToolScope
contentType?: string // Only present when scope is 'file'
toolParameters?: { queryParameters?: Record<string, string>[] }
allowedApiCalls?: { name: string; httpMethod: string; urlTemplate: string; timeOut: number }[]
requirements?: { auxFilesExist: { formatTag: string; formatVersion: string }[] }
}
export enum ToolType {
Explore = 'explore',
Configure = 'configure',
Preview = 'preview',
Query = 'query'
}
export enum ToolScope {
Dataset = 'dataset',
File = 'file'
}
export interface DatasetExternalToolResolved {
toolUrlResolved: string
displayName: string
datasetId: number
preview: boolean
}
export interface FileExternalToolResolved {
toolUrlResolved: string
displayName: string
fileId: number
preview: boolean
}