@quillsql/react 2.16.27 → 2.16.29

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.d.cts CHANGED
@@ -770,6 +770,10 @@ interface QuillReportInternal extends QuillReport {
770
770
  flags?: {
771
771
  [tenantField: string]: string[] | 'QUILL_ALL_TENANTS';
772
772
  };
773
+ /** Indicates whether this report can be cached. */
774
+ isCacheable?: boolean;
775
+ /** Reason why this report query cannot be cached. */
776
+ isCacheableReason?: string;
773
777
  /**
774
778
  * ReportBuilderState used for ReportBuilder reports.
775
779
  * When present, backend will generate SQL from this state instead of using queryString.
@@ -1079,8 +1083,15 @@ interface DashboardProps {
1079
1083
  name: string;
1080
1084
  onClickReport: (report: QuillReport) => void;
1081
1085
  containerStyle?: CSSProperties;
1086
+ config?: {
1087
+ pageSize?: number;
1088
+ frontendCacheConfig?: {
1089
+ cacheType: 'memory' | 'indexedDB';
1090
+ };
1091
+ disableBackendCache?: boolean;
1092
+ };
1082
1093
  }
1083
- declare function Dashboard({ name, onClickReport, containerStyle, }: DashboardProps & React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1094
+ declare function Dashboard({ name, onClickReport, containerStyle, config }: DashboardProps & React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1084
1095
 
1085
1096
  type DashboardConfig = {
1086
1097
  dashboardId: string;
@@ -2620,9 +2631,10 @@ declare const useDashboards: () => {
2620
2631
  };
2621
2632
  declare const useDashboard: (dashboardName: string, config?: {
2622
2633
  pageSize?: number;
2623
- cacheEnabled?: boolean;
2624
- cacheType?: "memory" | "idb";
2625
- showCacheLogs?: boolean;
2634
+ frontendCacheConfig?: {
2635
+ cacheType: "memory" | "indexedDB";
2636
+ };
2637
+ disableBackendCache?: boolean;
2626
2638
  }) => {
2627
2639
  isLoading: boolean;
2628
2640
  sections: Record<string, QuillReport[]> | null;
package/dist/index.d.ts CHANGED
@@ -770,6 +770,10 @@ interface QuillReportInternal extends QuillReport {
770
770
  flags?: {
771
771
  [tenantField: string]: string[] | 'QUILL_ALL_TENANTS';
772
772
  };
773
+ /** Indicates whether this report can be cached. */
774
+ isCacheable?: boolean;
775
+ /** Reason why this report query cannot be cached. */
776
+ isCacheableReason?: string;
773
777
  /**
774
778
  * ReportBuilderState used for ReportBuilder reports.
775
779
  * When present, backend will generate SQL from this state instead of using queryString.
@@ -1079,8 +1083,15 @@ interface DashboardProps {
1079
1083
  name: string;
1080
1084
  onClickReport: (report: QuillReport) => void;
1081
1085
  containerStyle?: CSSProperties;
1086
+ config?: {
1087
+ pageSize?: number;
1088
+ frontendCacheConfig?: {
1089
+ cacheType: 'memory' | 'indexedDB';
1090
+ };
1091
+ disableBackendCache?: boolean;
1092
+ };
1082
1093
  }
1083
- declare function Dashboard({ name, onClickReport, containerStyle, }: DashboardProps & React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1094
+ declare function Dashboard({ name, onClickReport, containerStyle, config }: DashboardProps & React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1084
1095
 
1085
1096
  type DashboardConfig = {
1086
1097
  dashboardId: string;
@@ -2620,9 +2631,10 @@ declare const useDashboards: () => {
2620
2631
  };
2621
2632
  declare const useDashboard: (dashboardName: string, config?: {
2622
2633
  pageSize?: number;
2623
- cacheEnabled?: boolean;
2624
- cacheType?: "memory" | "idb";
2625
- showCacheLogs?: boolean;
2634
+ frontendCacheConfig?: {
2635
+ cacheType: "memory" | "indexedDB";
2636
+ };
2637
+ disableBackendCache?: boolean;
2626
2638
  }) => {
2627
2639
  isLoading: boolean;
2628
2640
  sections: Record<string, QuillReport[]> | null;