@quillsql/react 2.16.79 → 2.16.81
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.
- package/dist/index.cjs +2192 -2363
- package/dist/index.d.cts +221 -93
- package/dist/index.d.ts +221 -93
- package/dist/index.js +1966 -2164
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ interface PopoverComponentProps {
|
|
|
16
16
|
ignoredRefs?: React$1.RefObject<any>[];
|
|
17
17
|
horizontalPadding?: number;
|
|
18
18
|
titlePaddingLeft?: number;
|
|
19
|
+
viewportPadding?: number;
|
|
20
|
+
popoverOffset?: number;
|
|
19
21
|
}
|
|
20
22
|
interface ButtonComponentProps {
|
|
21
23
|
onClick: () => void;
|
|
@@ -772,6 +774,8 @@ interface QuillReport {
|
|
|
772
774
|
};
|
|
773
775
|
rowCount: number;
|
|
774
776
|
queryString: string;
|
|
777
|
+
/** Saved virtual queries used as this report's datasources. */
|
|
778
|
+
virtualQueries?: string[];
|
|
775
779
|
filterMap?: {
|
|
776
780
|
[key: string]: {
|
|
777
781
|
table: string;
|
|
@@ -1851,6 +1855,161 @@ interface TableProps {
|
|
|
1851
1855
|
*/
|
|
1852
1856
|
declare const Table: ({ TableComponent, ...props }: TableProps) => react_jsx_runtime.JSX.Element | null;
|
|
1853
1857
|
|
|
1858
|
+
type ClientFeatures = {
|
|
1859
|
+
cloudCache?: boolean;
|
|
1860
|
+
[key: string]: boolean | undefined;
|
|
1861
|
+
};
|
|
1862
|
+
type QuillProviderClient = {
|
|
1863
|
+
name: string;
|
|
1864
|
+
id?: string;
|
|
1865
|
+
clientId?: string;
|
|
1866
|
+
queryEndpoint: string;
|
|
1867
|
+
streamEndpoint?: string;
|
|
1868
|
+
queryHeaders?: HeadersInit;
|
|
1869
|
+
withCredentials: boolean;
|
|
1870
|
+
databaseType?: string;
|
|
1871
|
+
features?: ClientFeatures;
|
|
1872
|
+
featureFlags?: {
|
|
1873
|
+
[key: string]: boolean;
|
|
1874
|
+
};
|
|
1875
|
+
/** @deprecated Use clerkOrgId instead */
|
|
1876
|
+
domainName?: string;
|
|
1877
|
+
clerkOrgId: string;
|
|
1878
|
+
allTenantTypes?: QuillTenant[];
|
|
1879
|
+
defaultDashboard?: {
|
|
1880
|
+
name: string;
|
|
1881
|
+
owner: string;
|
|
1882
|
+
};
|
|
1883
|
+
schemaNames?: string[];
|
|
1884
|
+
};
|
|
1885
|
+
type QuillTenant = {
|
|
1886
|
+
name: string;
|
|
1887
|
+
tenantField: string;
|
|
1888
|
+
query?: string;
|
|
1889
|
+
mappings?: {
|
|
1890
|
+
[key: string]: {
|
|
1891
|
+
query: string;
|
|
1892
|
+
};
|
|
1893
|
+
};
|
|
1894
|
+
flags?: string[];
|
|
1895
|
+
tenantIds?: {
|
|
1896
|
+
id: string | number;
|
|
1897
|
+
flag: string;
|
|
1898
|
+
label: string;
|
|
1899
|
+
}[];
|
|
1900
|
+
scope: 'row' | 'schema' | 'database';
|
|
1901
|
+
defaultId?: string | number;
|
|
1902
|
+
fieldType?: 'string' | 'number' | 'none';
|
|
1903
|
+
};
|
|
1904
|
+
|
|
1905
|
+
interface QuillFetchOptions {
|
|
1906
|
+
client: Pick<QuillProviderClient, 'id' | 'clientId' | 'queryEndpoint' | 'queryHeaders' | 'withCredentials'>;
|
|
1907
|
+
task: string;
|
|
1908
|
+
method?: string;
|
|
1909
|
+
metadata: any;
|
|
1910
|
+
abortSignal?: AbortSignal;
|
|
1911
|
+
credentials?: RequestCredentials;
|
|
1912
|
+
urlParameters?: string;
|
|
1913
|
+
adminMode?: boolean;
|
|
1914
|
+
getToken: () => Promise<string>;
|
|
1915
|
+
}
|
|
1916
|
+
interface QuillResults {
|
|
1917
|
+
data?: any;
|
|
1918
|
+
queries?: any;
|
|
1919
|
+
status?: string;
|
|
1920
|
+
error?: string;
|
|
1921
|
+
message?: string;
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
type VirtualQueryColumn = {
|
|
1925
|
+
name: string;
|
|
1926
|
+
displayName?: string;
|
|
1927
|
+
fieldType: string;
|
|
1928
|
+
isVisible?: boolean;
|
|
1929
|
+
_id?: string;
|
|
1930
|
+
};
|
|
1931
|
+
type VirtualQuery = {
|
|
1932
|
+
id: string;
|
|
1933
|
+
name: string;
|
|
1934
|
+
displayName?: string;
|
|
1935
|
+
queryString: string;
|
|
1936
|
+
columns: VirtualQueryColumn[];
|
|
1937
|
+
clientId: string;
|
|
1938
|
+
shared: boolean;
|
|
1939
|
+
};
|
|
1940
|
+
type SavedQuerySelectOption = {
|
|
1941
|
+
id: string;
|
|
1942
|
+
label: string;
|
|
1943
|
+
};
|
|
1944
|
+
type ReportVirtualQueryReference = {
|
|
1945
|
+
id: string;
|
|
1946
|
+
name: string;
|
|
1947
|
+
dashboardName?: string;
|
|
1948
|
+
};
|
|
1949
|
+
type VirtualQueryFetchFn = (options: Omit<QuillFetchOptions, 'getToken'>) => Promise<QuillResults>;
|
|
1950
|
+
declare function getVirtualQueryLabel(query: VirtualQuery): string;
|
|
1951
|
+
/** Minimal column shape for persist — only `field` / `fieldType` are read. */
|
|
1952
|
+
type SaveVirtualQueryColumnInput = {
|
|
1953
|
+
field?: string;
|
|
1954
|
+
fieldType?: string;
|
|
1955
|
+
};
|
|
1956
|
+
declare function fetchVirtualQueries(args: {
|
|
1957
|
+
quillFetchWithToken: VirtualQueryFetchFn;
|
|
1958
|
+
queryEndpoint: string;
|
|
1959
|
+
clientId: string;
|
|
1960
|
+
queryHeaders?: HeadersInit;
|
|
1961
|
+
withCredentials?: boolean;
|
|
1962
|
+
}): Promise<{
|
|
1963
|
+
queries: VirtualQuery[];
|
|
1964
|
+
error?: string;
|
|
1965
|
+
}>;
|
|
1966
|
+
declare function saveVirtualQuery(args: {
|
|
1967
|
+
quillFetchWithToken: VirtualQueryFetchFn;
|
|
1968
|
+
client: QuillFetchOptions['client'];
|
|
1969
|
+
queryString: string;
|
|
1970
|
+
columns: SaveVirtualQueryColumnInput[];
|
|
1971
|
+
existingVirtualQuery?: VirtualQuery | null;
|
|
1972
|
+
displayName: string;
|
|
1973
|
+
shared: boolean;
|
|
1974
|
+
adminMode?: boolean;
|
|
1975
|
+
}): Promise<{
|
|
1976
|
+
virtualQuery?: VirtualQuery;
|
|
1977
|
+
error?: string;
|
|
1978
|
+
}>;
|
|
1979
|
+
declare function deleteVirtualQuery(args: {
|
|
1980
|
+
quillFetchWithToken: VirtualQueryFetchFn;
|
|
1981
|
+
queryEndpoint: string;
|
|
1982
|
+
clientId: string;
|
|
1983
|
+
id: string;
|
|
1984
|
+
queryHeaders?: HeadersInit;
|
|
1985
|
+
withCredentials?: boolean;
|
|
1986
|
+
}): Promise<{
|
|
1987
|
+
success: boolean;
|
|
1988
|
+
error?: string;
|
|
1989
|
+
}>;
|
|
1990
|
+
declare function virtualQueryToTable(query: VirtualQuery): Table$1;
|
|
1991
|
+
declare function resolveSavedQueryIdFromBaseTables(tableNames: string[], catalog: VirtualQuery[]): string | undefined;
|
|
1992
|
+
declare function buildSavedQuerySelectOptions(queries: VirtualQuery[], options?: {
|
|
1993
|
+
sharedOnly?: boolean;
|
|
1994
|
+
alwaysIncludeId?: string;
|
|
1995
|
+
}): SavedQuerySelectOption[];
|
|
1996
|
+
declare function buildReportVirtualQueries(savedQueryId?: string | null): string[];
|
|
1997
|
+
declare function upsertVirtualQueryTableInSchema(tables: Table$1[], query: VirtualQuery): Table$1[];
|
|
1998
|
+
declare function upsertVirtualQueryInCatalog(queries: VirtualQuery[], query: VirtualQuery): VirtualQuery[];
|
|
1999
|
+
declare function findLinkedReportsUsingVirtualQuery(reports: Iterable<{
|
|
2000
|
+
id?: string;
|
|
2001
|
+
name?: string;
|
|
2002
|
+
dashboardName?: string;
|
|
2003
|
+
virtualQueries?: string[] | null;
|
|
2004
|
+
}>, virtualQueryId: string): ReportVirtualQueryReference[];
|
|
2005
|
+
declare function findReportsBlockingVirtualQueryDeletion(reports: Iterable<{
|
|
2006
|
+
id?: string;
|
|
2007
|
+
name?: string;
|
|
2008
|
+
dashboardName?: string;
|
|
2009
|
+
virtualQueries?: string[] | null;
|
|
2010
|
+
}>, virtualQueryId: string): ReportVirtualQueryReference[];
|
|
2011
|
+
declare function formatReportsBlockingVirtualQueryDeletion(reports: ReportVirtualQueryReference[]): string;
|
|
2012
|
+
|
|
1854
2013
|
/**
|
|
1855
2014
|
* Props for the Quill SQLEditor component.
|
|
1856
2015
|
*/
|
|
@@ -1893,6 +2052,8 @@ interface SQLEditorProps {
|
|
|
1893
2052
|
}[];
|
|
1894
2053
|
onChange: (event: React$1.ChangeEvent<HTMLSelectElement>) => void;
|
|
1895
2054
|
width: number;
|
|
2055
|
+
disabled?: boolean;
|
|
2056
|
+
hideEmptyOption?: boolean;
|
|
1896
2057
|
}) => React$1.JSX.Element;
|
|
1897
2058
|
/**
|
|
1898
2059
|
* A table component to show the results of the SQL query.
|
|
@@ -2036,7 +2197,9 @@ interface SQLEditorProps {
|
|
|
2036
2197
|
onSubmitCreateReport?: (report: QuillReport) => void;
|
|
2037
2198
|
/** A callback function that will trigger when a chart is edited */
|
|
2038
2199
|
onSubmitEditReport?: (report: QuillReport) => void;
|
|
2039
|
-
onSaveQueryComplete?: (
|
|
2200
|
+
onSaveQueryComplete?: (virtualQuery: VirtualQuery) => void;
|
|
2201
|
+
/** Opens a report that uses the active saved query. */
|
|
2202
|
+
onOpenLinkedReport?: (report: ReportVirtualQueryReference) => void;
|
|
2040
2203
|
/** A callback function triggered when a chart element is clicked */
|
|
2041
2204
|
onClickChartElement?: (event: any) => void;
|
|
2042
2205
|
/** A callback function triggered when a user wants to add a virtual table */
|
|
@@ -2053,6 +2216,10 @@ interface SQLEditorProps {
|
|
|
2053
2216
|
* Whether SQL queries will be able to open a report creation flow.
|
|
2054
2217
|
*/
|
|
2055
2218
|
isChartBuilderEnabled?: boolean;
|
|
2219
|
+
/** Opens an external report builder instead of the legacy chart builder. */
|
|
2220
|
+
onOpenReportBuilder?: (input: {
|
|
2221
|
+
virtualQueryId?: string;
|
|
2222
|
+
}) => void;
|
|
2056
2223
|
/**
|
|
2057
2224
|
* Whether the "new query" button is enabled.
|
|
2058
2225
|
*/
|
|
@@ -2086,10 +2253,21 @@ interface SQLEditorProps {
|
|
|
2086
2253
|
* A report id that the SQL Editor will query from and modify.
|
|
2087
2254
|
*/
|
|
2088
2255
|
reportId?: string;
|
|
2256
|
+
/** The saved query being edited, if this editor was opened from one. */
|
|
2257
|
+
existingVirtualQuery?: VirtualQuery | null;
|
|
2258
|
+
/**
|
|
2259
|
+
* Default Query Type when creating a new query (no existingVirtualQuery).
|
|
2260
|
+
* `true` = Shared, `false` = Report Query. Defaults to Shared.
|
|
2261
|
+
*/
|
|
2262
|
+
initialShared?: boolean;
|
|
2089
2263
|
/**
|
|
2090
2264
|
* The default query to use as a placeholder.
|
|
2091
2265
|
*/
|
|
2092
2266
|
defaultQuery?: string;
|
|
2267
|
+
/**
|
|
2268
|
+
* Default display name when creating a new saved query (no existingVirtualQuery).
|
|
2269
|
+
*/
|
|
2270
|
+
defaultDisplayName?: string;
|
|
2093
2271
|
/**
|
|
2094
2272
|
* The default dashboard to add the query to.
|
|
2095
2273
|
*/
|
|
@@ -2109,7 +2287,7 @@ interface SQLEditorProps {
|
|
|
2109
2287
|
/**
|
|
2110
2288
|
* The label of the button to add the current query to a dashboard.
|
|
2111
2289
|
*
|
|
2112
|
-
* @default "
|
|
2290
|
+
* @default "Link to report"
|
|
2113
2291
|
*/
|
|
2114
2292
|
addToDashboardButtonLabel?: string;
|
|
2115
2293
|
/**
|
|
@@ -2152,7 +2330,7 @@ interface SQLEditorProps {
|
|
|
2152
2330
|
* ### SQLEditor API
|
|
2153
2331
|
* @see https://docs.quillsql.com/components/sql-editor
|
|
2154
2332
|
*/
|
|
2155
|
-
declare function SQLEditor({ ButtonComponent, SecondaryButtonComponent, DeleteButtonComponent, TextInputComponent, SelectComponent, TableComponent, isNewQueryEnabled, LoadingComponent, ModalComponent, PopoverComponent, CardComponent, LabelComponent, HeaderComponent, SubHeaderComponent, TextComponent, ErrorMessageComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, ChartBuilderFormContainer, CheckboxComponent, defaultQuery, destinationDashboard, destinationSection, onChangeQuery, onChangeData, onChangeColumns, onChangeFields, onDiscardChanges, onSaveChanges, onCloseChartBuilder, isChartBuilderEnabled, isAdminEnabled, chartBuilderOptions, chartBuilderTitle, runQueryOnMount, onAddToDashboardComplete, onSubmitCreateReport, onSubmitEditReport, onSaveQueryComplete, addToDashboardButtonLabel, report, reportId, organizationName, isChartBuilderHorizontalView, containerStyle, className, onClickChartElement, onRequestAddVirtualTable, }: SQLEditorProps): react_jsx_runtime.JSX.Element;
|
|
2333
|
+
declare function SQLEditor({ ButtonComponent, SecondaryButtonComponent, DeleteButtonComponent, TextInputComponent, SelectComponent, TableComponent, isNewQueryEnabled, LoadingComponent, ModalComponent, PopoverComponent, CardComponent, LabelComponent, HeaderComponent, SubHeaderComponent, TextComponent, ErrorMessageComponent, ChartBuilderInputRowContainer, ChartBuilderInputColumnContainer, PivotRowContainer, PivotColumnContainer, ChartBuilderFormContainer, CheckboxComponent, defaultQuery, defaultDisplayName, destinationDashboard, destinationSection, onChangeQuery, onChangeData, onChangeColumns, onChangeFields, onDiscardChanges, onSaveChanges, onCloseChartBuilder, onOpenReportBuilder, isChartBuilderEnabled, isAdminEnabled, chartBuilderOptions, chartBuilderTitle, runQueryOnMount, onAddToDashboardComplete, onSubmitCreateReport, onSubmitEditReport, onSaveQueryComplete, onOpenLinkedReport, addToDashboardButtonLabel, report, reportId, existingVirtualQuery, initialShared, organizationName, isChartBuilderHorizontalView, containerStyle, className, onClickChartElement, onRequestAddVirtualTable, }: SQLEditorProps): react_jsx_runtime.JSX.Element;
|
|
2156
2334
|
declare const SchemaListComponent: ({ schema, theme, loading, LoadingComponent, width, onClick, style, onRequestAddVirtualTable, ButtonComponent, }: {
|
|
2157
2335
|
schema: any;
|
|
2158
2336
|
theme: any;
|
|
@@ -2168,6 +2346,23 @@ declare const SchemaListComponent: ({ schema, theme, loading, LoadingComponent,
|
|
|
2168
2346
|
}) => React$1.JSX.Element;
|
|
2169
2347
|
}) => react_jsx_runtime.JSX.Element;
|
|
2170
2348
|
|
|
2349
|
+
type SavedQueriesData = {
|
|
2350
|
+
queries: VirtualQuery[];
|
|
2351
|
+
isSavedQueriesLoading: boolean;
|
|
2352
|
+
};
|
|
2353
|
+
type CustomField = {
|
|
2354
|
+
viewName: string;
|
|
2355
|
+
refTable: string;
|
|
2356
|
+
field: string;
|
|
2357
|
+
refColumn?: string;
|
|
2358
|
+
type?: string;
|
|
2359
|
+
refField?: string;
|
|
2360
|
+
};
|
|
2361
|
+
|
|
2362
|
+
declare const AdditionalSchemaTablesContext: React$1.Context<[Table$1[], (value: React$1.SetStateAction<Table$1[]>) => void]>;
|
|
2363
|
+
declare const SavedQueriesContext: React$1.Context<[SavedQueriesData, (value: React$1.SetStateAction<SavedQueriesData>) => void]>;
|
|
2364
|
+
declare const ThemeContext: React$1.Context<[QuillTheme | null, (value: React$1.SetStateAction<QuillTheme | null>) => void]>;
|
|
2365
|
+
|
|
2171
2366
|
/**
|
|
2172
2367
|
* Props for the Quill ReportBuilder component.
|
|
2173
2368
|
*/
|
|
@@ -2795,8 +2990,8 @@ interface PaginationState {
|
|
|
2795
2990
|
type Updater<T> = T | ((old: T) => T);
|
|
2796
2991
|
type OnChangeFn<T> = (updaterOrValue: Updater<T>) => void;
|
|
2797
2992
|
declare const DEFAULT_PAGE_SIZE = 10;
|
|
2798
|
-
/**
|
|
2799
|
-
declare const DEFAULT_USE_REPORT_ROWS_PER_REQUEST
|
|
2993
|
+
/** Base row window fetched before per-page server requests kick in. */
|
|
2994
|
+
declare const DEFAULT_USE_REPORT_ROWS_PER_REQUEST: number;
|
|
2800
2995
|
|
|
2801
2996
|
type SelectOption = {
|
|
2802
2997
|
label: string;
|
|
@@ -3119,7 +3314,14 @@ interface UseReportOptions {
|
|
|
3119
3314
|
* before navigation or feedback. Resolves to `undefined` when persist is skipped
|
|
3120
3315
|
* (e.g. missing client, dashboard name, or report state).
|
|
3121
3316
|
*/
|
|
3122
|
-
type
|
|
3317
|
+
type UseReportSaveOverrides = {
|
|
3318
|
+
name?: string;
|
|
3319
|
+
section?: string;
|
|
3320
|
+
filterMap?: QuillReportInternal['filterMap'];
|
|
3321
|
+
dateField?: QuillReportInternal['dateField'];
|
|
3322
|
+
reportFlags?: QuillReportInternal['flags'] | null;
|
|
3323
|
+
};
|
|
3324
|
+
type UseReportSaveChangesFn = (overrides?: UseReportSaveOverrides) => Promise<unknown>;
|
|
3123
3325
|
/**
|
|
3124
3326
|
* @param reportIdArg When omitted, the hook can bootstrap a report via `saveReport`
|
|
3125
3327
|
* (`create-report`) on the first `setReport({ datasources })`, after schema is available.
|
|
@@ -3182,6 +3384,7 @@ declare function useReport(reportIdArg?: string, options?: UseReportOptions): {
|
|
|
3182
3384
|
};
|
|
3183
3385
|
rowCount: number;
|
|
3184
3386
|
queryString: string;
|
|
3387
|
+
virtualQueries?: string[];
|
|
3185
3388
|
filterMap?: {
|
|
3186
3389
|
[key: string]: {
|
|
3187
3390
|
table: string;
|
|
@@ -3210,6 +3413,11 @@ declare function useReport(reportIdArg?: string, options?: UseReportOptions): {
|
|
|
3210
3413
|
table: UseFormTable;
|
|
3211
3414
|
tableLoading: boolean;
|
|
3212
3415
|
loading: boolean;
|
|
3416
|
+
/**
|
|
3417
|
+
* Initial report-task / load execution error. Preserved after schema rebuild
|
|
3418
|
+
* recovery so Report Builder can show why state was reset.
|
|
3419
|
+
*/
|
|
3420
|
+
error: string;
|
|
3213
3421
|
/** Report title: form override, then `sourceReport.name`, else `report-name` task. */
|
|
3214
3422
|
name: string;
|
|
3215
3423
|
/**
|
|
@@ -3468,6 +3676,11 @@ type UseDashboardReload = (overrideDashboardName?: string, fetchFromServer?: boo
|
|
|
3468
3676
|
}, options?: {
|
|
3469
3677
|
preserveExistingDateFilter?: boolean;
|
|
3470
3678
|
}) => Promise<void>;
|
|
3679
|
+
/** Read cached dashboard configuration without loading reports or filter values. */
|
|
3680
|
+
declare const useDashboardConfigInternal: (dashboardName: string | null) => {
|
|
3681
|
+
data: DashboardConfig | null;
|
|
3682
|
+
isLoading: boolean;
|
|
3683
|
+
};
|
|
3471
3684
|
declare const useDashboardInternal: (dashboardName: string | null, customFilters?: InternalFilter[]) => {
|
|
3472
3685
|
data: DashboardConfig | null;
|
|
3473
3686
|
dashboardFilters: InternalDashboardFilter[] | null;
|
|
@@ -3540,11 +3753,6 @@ declare const useDashboard: (dashboardName: string, config?: {
|
|
|
3540
3753
|
cacheEnabled?: boolean;
|
|
3541
3754
|
cacheType?: "memory" | "idb";
|
|
3542
3755
|
showCacheLogs?: boolean;
|
|
3543
|
-
cacheDateRange?: {
|
|
3544
|
-
startDate: Date;
|
|
3545
|
-
endDate: Date;
|
|
3546
|
-
};
|
|
3547
|
-
reportStaleTimeMs?: number;
|
|
3548
3756
|
}) => {
|
|
3549
3757
|
isLoading: boolean;
|
|
3550
3758
|
sections: Record<string, QuillReport[]> | null;
|
|
@@ -3564,7 +3772,6 @@ declare const useDashboard: (dashboardName: string, config?: {
|
|
|
3564
3772
|
} | Filter>) => void;
|
|
3565
3773
|
lastUpdated: number;
|
|
3566
3774
|
forceCacheRefresh: () => void;
|
|
3567
|
-
primeReportSource: (reportId: string) => Promise<void>;
|
|
3568
3775
|
reload: UseDashboardReload;
|
|
3569
3776
|
};
|
|
3570
3777
|
declare const useDashboardReport: (reportId: string, config?: {
|
|
@@ -3848,15 +4055,6 @@ declare const useAskQuill: (dashboardName: string) => {
|
|
|
3848
4055
|
onChangeFilterTree: (filterTree: FilterTreeNode) => void;
|
|
3849
4056
|
};
|
|
3850
4057
|
|
|
3851
|
-
type CustomField = {
|
|
3852
|
-
viewName: string;
|
|
3853
|
-
refTable: string;
|
|
3854
|
-
field: string;
|
|
3855
|
-
refColumn?: string;
|
|
3856
|
-
type?: string;
|
|
3857
|
-
refField?: string;
|
|
3858
|
-
};
|
|
3859
|
-
|
|
3860
4058
|
declare const useVirtualTables: () => {
|
|
3861
4059
|
data: Table$1[];
|
|
3862
4060
|
isLoading: boolean;
|
|
@@ -3886,75 +4084,7 @@ declare const useVirtualTables: () => {
|
|
|
3886
4084
|
}>;
|
|
3887
4085
|
};
|
|
3888
4086
|
|
|
3889
|
-
|
|
3890
|
-
cloudCache?: boolean;
|
|
3891
|
-
[key: string]: boolean | undefined;
|
|
3892
|
-
};
|
|
3893
|
-
type QuillProviderClient = {
|
|
3894
|
-
name: string;
|
|
3895
|
-
id?: string;
|
|
3896
|
-
clientId?: string;
|
|
3897
|
-
queryEndpoint: string;
|
|
3898
|
-
streamEndpoint?: string;
|
|
3899
|
-
queryHeaders?: HeadersInit;
|
|
3900
|
-
withCredentials: boolean;
|
|
3901
|
-
databaseType?: string;
|
|
3902
|
-
features?: ClientFeatures;
|
|
3903
|
-
featureFlags?: {
|
|
3904
|
-
[key: string]: boolean;
|
|
3905
|
-
};
|
|
3906
|
-
/** @deprecated Use clerkOrgId instead */
|
|
3907
|
-
domainName?: string;
|
|
3908
|
-
clerkOrgId: string;
|
|
3909
|
-
allTenantTypes?: QuillTenant[];
|
|
3910
|
-
defaultDashboard?: {
|
|
3911
|
-
name: string;
|
|
3912
|
-
owner: string;
|
|
3913
|
-
};
|
|
3914
|
-
schemaNames?: string[];
|
|
3915
|
-
};
|
|
3916
|
-
type QuillTenant = {
|
|
3917
|
-
name: string;
|
|
3918
|
-
tenantField: string;
|
|
3919
|
-
query?: string;
|
|
3920
|
-
mappings?: {
|
|
3921
|
-
[key: string]: {
|
|
3922
|
-
query: string;
|
|
3923
|
-
};
|
|
3924
|
-
};
|
|
3925
|
-
flags?: string[];
|
|
3926
|
-
tenantIds?: {
|
|
3927
|
-
id: string | number;
|
|
3928
|
-
flag: string;
|
|
3929
|
-
label: string;
|
|
3930
|
-
}[];
|
|
3931
|
-
scope: 'row' | 'schema' | 'database';
|
|
3932
|
-
defaultId?: string | number;
|
|
3933
|
-
fieldType?: 'string' | 'number' | 'none';
|
|
3934
|
-
};
|
|
3935
|
-
|
|
3936
|
-
interface QuillFetchOptions {
|
|
3937
|
-
client: Pick<QuillProviderClient, 'id' | 'clientId' | 'queryEndpoint' | 'queryHeaders' | 'withCredentials'>;
|
|
3938
|
-
task: string;
|
|
3939
|
-
method?: string;
|
|
3940
|
-
metadata: any;
|
|
3941
|
-
abortSignal?: AbortSignal;
|
|
3942
|
-
credentials?: RequestCredentials;
|
|
3943
|
-
urlParameters?: string;
|
|
3944
|
-
adminMode?: boolean;
|
|
3945
|
-
/** Internal opt-in for exact initial-request sharing across mounted hooks. */
|
|
3946
|
-
shareRequest?: boolean;
|
|
3947
|
-
getToken: () => Promise<string>;
|
|
3948
|
-
}
|
|
3949
|
-
interface QuillResults {
|
|
3950
|
-
data?: any;
|
|
3951
|
-
queries?: any;
|
|
3952
|
-
status?: string;
|
|
3953
|
-
error?: string;
|
|
3954
|
-
message?: string;
|
|
3955
|
-
}
|
|
3956
|
-
|
|
3957
|
-
declare const quillFetch: ({ client, task, method, metadata, abortSignal, credentials, urlParameters, shareRequest, getToken, }: QuillFetchOptions) => Promise<QuillResults>;
|
|
4087
|
+
declare const quillFetch: ({ client, task, method, metadata, abortSignal, credentials, urlParameters, getToken, }: QuillFetchOptions) => Promise<QuillResults>;
|
|
3958
4088
|
|
|
3959
4089
|
declare const downloadCSV: (data: {
|
|
3960
4090
|
rows: any[];
|
|
@@ -3962,8 +4092,6 @@ declare const downloadCSV: (data: {
|
|
|
3962
4092
|
name?: string;
|
|
3963
4093
|
}) => void;
|
|
3964
4094
|
|
|
3965
|
-
declare const ThemeContext: React$1.Context<[QuillTheme | null, (value: React$1.SetStateAction<QuillTheme | null>) => void]>;
|
|
3966
|
-
|
|
3967
4095
|
interface SidebarHeadingComponentProps {
|
|
3968
4096
|
label: string;
|
|
3969
4097
|
}
|
|
@@ -4486,4 +4614,4 @@ interface ReportTableProps {
|
|
|
4486
4614
|
}
|
|
4487
4615
|
declare const ReportTable: ({ reportBuilder, TableComponent, }: ReportTableProps) => react_jsx_runtime.JSX.Element;
|
|
4488
4616
|
|
|
4489
|
-
export { ALL_TENANTS, AddColumns, AddFilters, AddLimit, AddPivot, AddSort, type AxisFormat$1 as AxisFormat, type BarChartInteraction, type ButtonComponentProps, Calculation, type ChangelogEntry, Chart, ChartDisplay, ChartEditor, type ChartEditorProps, type ChartProps, type ChartType, type ChartTypeOption, Chat, type ChatModelId, type ChatProps, type CheckboxComponentProps, type ColorMapType, type Column$1 as Column, type ColumnActions, type ColumnSelectionOption, type ContainerComponentProps, DEFAULT_PAGE_SIZE, DEFAULT_USE_REPORT_ROWS_PER_REQUEST, Dashboard, type DashboardDateFilter, type DashboardFilter, DashboardFilterType, DashboardLegacy, type DashboardLegacyProps, type DashboardMultiFilter, type DashboardProps, type DashboardSectionComponentProps, type DashboardSingleFilter, type DashboardTenantFilter, type DatasourceOption, DateOperator, type DateRange, type DateRangePickerComponentProps, type DateRangePickerOption, type DeleteButtonComponentProps, type DraggableColumnComponentProps, type EventBreadcrumb, type EventContext, type EventError, type EventMetadata, type EventTracking, type EventUser, type Filter, type FilterDraftQueryBuilderProps, type FilterFieldOptions, type FilterPopoverComponentProps, FilterType, type HeaderComponentProps, type HeaderProps, type InternalDashboardDateFilter, type InternalDashboardTenantFilter, type InternalFilter, type LabelComponentProps, type LimitPopoverComponentProps, type ModalComponentProps, NullOperator, NumberOperator, type OnChangeFn, type Option, type PaginationState, type Pivot, type PivotAggregation, type PivotDateBucket, type PivotDimensionFilter, type PopoverComponentProps, type QueryBuilderDisplayGroup, type QueryBuilderDisplayRule, type QuillCustomInterval, type QuillCustomRelativeInterval, type QuillCustomRepeatingInterval, type QuillCustomStaticInterval, type QuillFetchOptions, type QuillPreviousMonthInterval, type QuillPreviousQuarterInterval, QuillProvider, type QuillProviderProps, type QuillReport, type QuillReportProps, type QuillResults, type QuillTheme, type QuillWeekInterval, ReportBuilder$1 as ReportBuilder, type ReportBuilderColumn, type ReportBuilderLimit, type ReportBuilderProps, type ReportBuilderSort, type ReportBuilderState, type ReportColumnInput, type ReportColumnValue, ReportDetail, type ReportDetailProps, type ReportDetailTable, ReportTable, type ReportXAxisValue, type ReportYAxisFieldValue, type ReportYAxisValue, SINGLE_TENANT, SQLEditor, type SQLEditorProps, SaveReport, SchemaListComponent, type SelectColumnComponentProps, type SelectComponentProps, type SetFiltersInput, type SetReportBuilderInput, type SetReportChartAxesInput, type SidebarComponentProps, type SidebarHeadingComponentProps, type SortPopoverComponentProps, StaticChart, type StaticChartProps, StringOperator, Table, type TableComponentProps, type TableProps, type TabsComponentProps, type TextComponentProps, type TextInputComponentProps, ThemeContext, type Updater, type UseDashboardReload, type UseFormQueryBuilderField, type UseFormQueryBuilderProps, type UseReportFilterDraft, type UseReportQueryBuilder, areQueryBuilderFilterDraftsDirty, countFilterRules, defaultFilterRuleValueForOperator, downloadCSV, quillFormat as format, isQueryBuilderDisplayGroup, isQueryBuilderDisplayRule, normalizeRelativeDateRules, prepareQueryBuilderFiltersForSet, queryBuilderFiltersForEditor, quillFetch, stripQueryBuilderTransientFields, tableColumnFormatFromUiSelection, useAllReports, useAskQuill, useChangelogRefresh, useDashboard, useDashboardInternal, useDashboardReport, useDashboardReports, useDashboards, useExport, useMemoizedRows, useQuill, useReport, useReportBuilder, useReportQueryBuilder, useReports, useTenants, useVirtualTables };
|
|
4617
|
+
export { ALL_TENANTS, AddColumns, AddFilters, AddLimit, AddPivot, AddSort, AdditionalSchemaTablesContext, type AxisFormat$1 as AxisFormat, type BarChartInteraction, type ButtonComponentProps, Calculation, type ChangelogEntry, Chart, ChartDisplay, ChartEditor, type ChartEditorProps, type ChartProps, type ChartType, type ChartTypeOption, Chat, type ChatModelId, type ChatProps, type CheckboxComponentProps, type ColorMapType, type Column$1 as Column, type ColumnActions, type ColumnSelectionOption, type ContainerComponentProps, DEFAULT_PAGE_SIZE, DEFAULT_USE_REPORT_ROWS_PER_REQUEST, Dashboard, type DashboardDateFilter, type DashboardFilter, DashboardFilterType, DashboardLegacy, type DashboardLegacyProps, type DashboardMultiFilter, type DashboardProps, type DashboardSectionComponentProps, type DashboardSingleFilter, type DashboardTenantFilter, type DatasourceOption, DateOperator, type DateRange, type DateRangePickerComponentProps, type DateRangePickerOption, type DeleteButtonComponentProps, type DraggableColumnComponentProps, type EventBreadcrumb, type EventContext, type EventError, type EventMetadata, type EventTracking, type EventUser, type Filter, type FilterDraftQueryBuilderProps, type FilterFieldOptions, type FilterPopoverComponentProps, FilterType, type HeaderComponentProps, type HeaderProps, type InternalDashboardDateFilter, type InternalDashboardTenantFilter, type InternalFilter, type LabelComponentProps, type LimitPopoverComponentProps, type ModalComponentProps, NullOperator, NumberOperator, type OnChangeFn, type Option, type PaginationState, type Pivot, type PivotAggregation, type PivotDateBucket, type PivotDimensionFilter, type PopoverComponentProps, type QueryBuilderDisplayGroup, type QueryBuilderDisplayRule, type QuillCustomInterval, type QuillCustomRelativeInterval, type QuillCustomRepeatingInterval, type QuillCustomStaticInterval, type QuillFetchOptions, type QuillPreviousMonthInterval, type QuillPreviousQuarterInterval, QuillProvider, type QuillProviderProps, type QuillReport, type QuillReportProps, type QuillResults, type QuillTheme, type QuillWeekInterval, ReportBuilder$1 as ReportBuilder, type ReportBuilderColumn, type ReportBuilderLimit, type ReportBuilderProps, type ReportBuilderSort, type ReportBuilderState, type ReportColumnInput, type ReportColumnValue, ReportDetail, type ReportDetailProps, type ReportDetailTable, ReportTable, type ReportVirtualQueryReference, type ReportXAxisValue, type ReportYAxisFieldValue, type ReportYAxisValue, SINGLE_TENANT, SQLEditor, type SQLEditorProps, SaveReport, SavedQueriesContext, type SavedQueriesData, type SavedQuerySelectOption, SchemaListComponent, type SelectColumnComponentProps, type SelectComponentProps, type SetFiltersInput, type SetReportBuilderInput, type SetReportChartAxesInput, type SidebarComponentProps, type SidebarHeadingComponentProps, type SortPopoverComponentProps, StaticChart, type StaticChartProps, StringOperator, Table, type TableComponentProps, type TableProps, type TabsComponentProps, type TextComponentProps, type TextInputComponentProps, ThemeContext, type Updater, type UseDashboardReload, type UseFormQueryBuilderField, type UseFormQueryBuilderProps, type UseReportFilterDraft, type UseReportQueryBuilder, type UseReportSaveOverrides, type VirtualQuery, type VirtualQueryColumn, areQueryBuilderFilterDraftsDirty, buildReportVirtualQueries, buildSavedQuerySelectOptions, countFilterRules, defaultFilterRuleValueForOperator, deleteVirtualQuery, downloadCSV, fetchVirtualQueries, findLinkedReportsUsingVirtualQuery, findReportsBlockingVirtualQueryDeletion, quillFormat as format, formatReportsBlockingVirtualQueryDeletion, getVirtualQueryLabel, isQueryBuilderDisplayGroup, isQueryBuilderDisplayRule, normalizeRelativeDateRules, prepareQueryBuilderFiltersForSet, queryBuilderFiltersForEditor, quillFetch, resolveSavedQueryIdFromBaseTables, saveVirtualQuery, stripQueryBuilderTransientFields, tableColumnFormatFromUiSelection, upsertVirtualQueryInCatalog, upsertVirtualQueryTableInSchema, useAllReports, useAskQuill, useChangelogRefresh, useDashboard, useDashboardConfigInternal, useDashboardInternal, useDashboardReport, useDashboardReports, useDashboards, useExport, useMemoizedRows, useQuill, useReport, useReportBuilder, useReportQueryBuilder, useReports, useTenants, useVirtualTables, virtualQueryToTable };
|