1
1
import _ from 'lodash' ;
2
- import { Instance , SnapshotIn , flow , getParent , getRoot , types } from 'mobx-state-tree' ;
3
2
import { IObservableArray } from 'mobx' ;
3
+ import { Instance , SnapshotIn , flow , getParent , getRoot , types } from 'mobx-state-tree' ;
4
4
import { CURRENT_SCHEMA_VERSION , QueryMetaSnapshotIn } from '~/model/meta-model' ;
5
- import { downloadDataAsCSV , downloadDataListAsZip , downloadJSON } from '~/utils/download' ;
6
- import { IContentRenderModel } from '../../../../../dashboard-render' ;
7
- import { QueryRenderModel , QueryRenderModelInstance , type IQueryRenderModel } from './query' ;
8
5
import { TransformQueryMetaInstance } from '~/model/meta-model/dashboard/content/query/transform-query' ;
9
6
import { typeAssert } from '~/types/utils' ;
7
+ import { downloadDataAsCSV , downloadDataListAsZip , downloadJSON } from '~/utils/download' ;
8
+ import { IContentRenderModel } from '../../../../../dashboard-render' ;
9
+ import { QueryRenderModel , type IQueryRenderModel } from './query' ;
10
10
11
11
export const QueriesRenderModel = types
12
12
. model ( 'QueriesRenderModel' , {
@@ -65,7 +65,7 @@ export const QueriesRenderModel = types
65
65
}
66
66
} ) ;
67
67
68
- this . findByIDSet ( new Set ( queryIDs ) ) . forEach ( ( q : QueryRenderModelInstance ) => {
68
+ this . findByIDSet ( new Set ( queryIDs ) ) . forEach ( ( q : IQueryRenderModel ) => {
69
69
const config = q . config as TransformQueryMetaInstance ;
70
70
if ( ! q . isTransform || config . dep_query_ids . length === 0 ) {
71
71
return ;
@@ -81,7 +81,7 @@ export const QueriesRenderModel = types
81
81
return this . visibleQueryIDSet . has ( queryID ) ;
82
82
} ,
83
83
addTransformDepQueryIDs ( targetSet : Set < string > , excludeSet ?: Set < string > ) {
84
- this . findByIDSet ( targetSet ) . forEach ( ( q : QueryRenderModelInstance ) => {
84
+ this . findByIDSet ( targetSet ) . forEach ( ( q : IQueryRenderModel ) => {
85
85
const config = q . config as TransformQueryMetaInstance ;
86
86
if ( ! q . isTransform || config . dep_query_ids . length === 0 ) {
87
87
return ;
0 commit comments