Skip to content

Commit

Permalink
fix(cubejs-client-core): hierarchy typings (#9042)
Browse files Browse the repository at this point in the history
  • Loading branch information
tenphi authored Dec 16, 2024
1 parent 1cf867a commit 7c38845
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/cubejs-client-core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,18 @@ declare module '@cubejs-client/core' {

export type CubeMember = TCubeMeasure | TCubeDimension | TCubeSegment;

export type TCubeFolder = {
name: string;
members: string[];
};

export type TCubeHierarchy = {
name: string;
title: string;
levels: string[];
public?: boolean;
};

/**
* @deprecated use DryRunResponse
*/
Expand All @@ -998,6 +1010,8 @@ declare module '@cubejs-client/core' {
measures: TCubeMeasure[];
dimensions: TCubeDimension[];
segments: TCubeSegment[];
folders: TCubeFolder[];
hierarchies: TCubeHierarchy[];
connectedComponent?: number;
type?: 'view' | 'cube';
/**
Expand Down

0 comments on commit 7c38845

Please sign in to comment.