Fix types
This commit is contained in:
parent
690a442e61
commit
f76ec8d2c9
|
@ -3,7 +3,10 @@ import { Datasource, Row, Query } from "@budibase/types"
|
||||||
export type WorkerCallback = (error: any, response?: any) => void
|
export type WorkerCallback = (error: any, response?: any) => void
|
||||||
|
|
||||||
export interface QueryEvent
|
export interface QueryEvent
|
||||||
extends Omit<Query, "datasourceId" | "name" | "parameters" | "readable"> {
|
extends Omit<
|
||||||
|
Query,
|
||||||
|
"datasourceId" | "name" | "parameters" | "readable" | "nestedSchemaFields"
|
||||||
|
> {
|
||||||
appId?: string
|
appId?: string
|
||||||
datasource: Datasource
|
datasource: Datasource
|
||||||
pagination?: any
|
pagination?: any
|
||||||
|
|
|
@ -14,6 +14,7 @@ export interface Query extends Document {
|
||||||
fields: RestQueryFields | any
|
fields: RestQueryFields | any
|
||||||
transformer: string | null
|
transformer: string | null
|
||||||
schema: Record<string, QuerySchema | string>
|
schema: Record<string, QuerySchema | string>
|
||||||
|
nestedSchemaFields: Record<string, Record<string, QuerySchema | string>>
|
||||||
readable: boolean
|
readable: boolean
|
||||||
queryVerb: string
|
queryVerb: string
|
||||||
// flag to state whether the default bindings are empty strings (old behaviour) or null
|
// flag to state whether the default bindings are empty strings (old behaviour) or null
|
||||||
|
|
Loading…
Reference in New Issue