File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
packages/cubejs-schema-compiler/src/compiler Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export type ToString = { toString(): string };
1414
1515export type GranularityDefinition = {
1616 sql ?: ( ...args : any [ ] ) => string ;
17+ name ?: string ;
1718 title ?: string ;
1819 interval ?: string ;
1920 offset ?: string ;
@@ -140,6 +141,17 @@ export type ViewIncludedMember = {
140141 name : string ;
141142} ;
142143
144+ export type FolderMember = {
145+ type ?: 'folder' ;
146+ name : string ;
147+ includes ?: FolderMember [ ] ;
148+ } ;
149+
150+ export type Folder = {
151+ name : string ;
152+ includes : FolderMember [ ] ;
153+ } ;
154+
143155export interface CubeDefinition {
144156 name : string ;
145157 extends ?: ( ...args : Array < unknown > ) => { __cubeName : string } ;
@@ -159,7 +171,7 @@ export interface CubeDefinition {
159171 accessPolicy ?: AccessPolicyDefinition [ ] ;
160172 // eslint-disable-next-line camelcase
161173 access_policy ?: any [ ] ;
162- folders ?: any [ ] ;
174+ folders ?: Folder [ ] ;
163175 includes ?: any ;
164176 excludes ?: any ;
165177 cubes ?: any ;
You can’t perform that action at this time.
0 commit comments