@devtable/dashboard 10.34.7 → 10.35.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,2 @@
1
+ import { TDashboardState, TPayloadForSQL } from '~/model';
2
+ export declare function payloadToDashboardState(payload: TPayloadForSQL): TDashboardState;
@@ -1,6 +1,6 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
2
  import { IDataSource } from '~/api-caller/types';
3
- import { ContextRecordType, FilterValuesType } from '~/model';
3
+ import { ContextRecordType, FilterValuesType, TDashboardState } from '~/model';
4
4
  export declare function buildHTTPRequest(pre_process: string, params: {
5
5
  context: Record<string, any>;
6
6
  filters: Record<string, any>;
@@ -8,4 +8,4 @@ export declare function buildHTTPRequest(pre_process: string, params: {
8
8
  export declare function explainHTTPRequest(pre_process: string, context: ContextRecordType, filters: FilterValuesType): AxiosRequestConfig<any>;
9
9
  export declare function preProcessWithDataSource(datasource: IDataSource, config: AxiosRequestConfig): any;
10
10
  export declare function postProcessWithDataSource(datasource: IDataSource, res: any): any;
11
- export declare function postProcessWithQuery(post_process: TFunctionString, res: any): any;
11
+ export declare function postProcessWithQuery(post_process: TFunctionString, res: any, state: TDashboardState): any;
@@ -1,8 +1,8 @@
1
- import { TPayloadForSQL, TPayloadForSQLSnippet } from '~/model';
1
+ import { TDashboardState, TPayloadForSQL, TPayloadForSQLSnippet } from '~/model';
2
2
  export declare function formatSQL(sql: string, payload: TPayloadForSQL | TPayloadForSQLSnippet): any;
3
3
  export declare function explainSQL(sql: string, payload: TPayloadForSQL): any;
4
4
  export declare function preProcessSQLQuery({ sql, pre_process }: {
5
5
  sql: string;
6
6
  pre_process: TFunctionString;
7
7
  }): any;
8
- export declare function postProcessSQLQuery(post_process: TFunctionString, data: any): any;
8
+ export declare function postProcessSQLQuery(post_process: TFunctionString, data: any, state: TDashboardState): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "10.34.7",
3
+ "version": "10.35.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",