2022-07-25 21:45:29 +02:00
|
|
|
export type WorkerCallback = (error: any, response?: any) => void
|
|
|
|
|
|
|
|
export interface QueryEvent {
|
|
|
|
appId?: string
|
|
|
|
datasource: any
|
|
|
|
queryVerb: string
|
|
|
|
fields: { [key: string]: any }
|
|
|
|
parameters: { [key: string]: any }
|
|
|
|
pagination?: any
|
|
|
|
transformer: any
|
|
|
|
queryId: string
|
2023-01-13 20:53:46 +01:00
|
|
|
environmentVariables?: Record<string, string>
|
2022-07-25 21:45:29 +02:00
|
|
|
ctx?: any
|
2023-09-29 14:17:14 +02:00
|
|
|
schema?: Record<string, { name?: string; type: string }>
|
2022-07-25 21:45:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface QueryVariable {
|
|
|
|
queryId: string
|
|
|
|
name: string
|
|
|
|
}
|