@budibase/shared-core 3.41.2 → 3.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ToolType } from "@budibase/types";
|
|
2
|
+
export type QueryToolType = ToolType.REST_QUERY | ToolType.DATASOURCE_QUERY;
|
|
3
|
+
export declare const isQueryToolType: (sourceType: ToolType | undefined) => sourceType is QueryToolType;
|
|
4
|
+
interface QueryToolBindingOptions {
|
|
5
|
+
sourceType: QueryToolType;
|
|
6
|
+
sourceLabel?: string;
|
|
7
|
+
queryName?: string;
|
|
8
|
+
queryId: string;
|
|
9
|
+
}
|
|
10
|
+
type ReadableQueryToolBindingOptions = Omit<QueryToolBindingOptions, "queryId">;
|
|
11
|
+
export declare const getReadableQueryToolBinding: ({ sourceType, sourceLabel, queryName, }: ReadableQueryToolBindingOptions) => string;
|
|
12
|
+
export declare const getQueryToolBindings: ({ sourceType, sourceLabel, queryName, queryId, }: QueryToolBindingOptions) => {
|
|
13
|
+
readableBinding: string;
|
|
14
|
+
runtimeBinding: string;
|
|
15
|
+
};
|
|
16
|
+
export {};
|