import { MemberType, PivotColumn } from "@metad/ocap-core"; /** * https://docs.microsoft.com/en-us/analysis-services/multidimensional-models/mdx/mdx-member-properties-intrinsic-member-properties?view=asallproducts-allversions */ export interface MemberIntrinsic { MEMBER_TYPE: MemberType; PARENT_UNIQUE_NAME: string; MEMBER_CAPTION: string; DESCRIPTION: string; } export interface Member extends MemberIntrinsic { Caption: string; DisplayInfo: string; LName: string; LNum: number; UName: string; hierarchy: string; index: number; } interface Tuple { index: number; hierarchies: { [name: string]: Member; }; members: Member[]; } export interface Axis { numTuples: null; numHierarchies: null; close(): any; reset(): any; hasMoreHierarchies(): any; nextHierarchy(): any; eachHierarchy(callback: any, scope?: any, args?: any): any; hasMoreTuples(): any; nextTuple(): any; tupleCount(): any; tupleIndex(): any; getTuple(): Tuple; eachTuple(callback: (tuple: Tuple) => boolean, scope?: any, args?: any): any; getHierarchies(): Array; getHierarchyNames(): any; hierarchyCount(): any; hierarchyIndex(hierarchyName: any): any; hierarchyName(index: any): any; hierarchy(hierarchyIndexOrName: any): HierarchyInfo; member(hierarchyIndexOrName: any): any; hasMemberProperty(propertyName: any): any; readAsArray(array?: any): any; readAsObject(object?: any): any; fetchAsArray(array?: any): any; fetchAsObject(object?: any): any; fetchAllAsArray(rows?: any): any; fetchAllAsObject(rows?: any): any; } export interface Cell { Value: number; FmtValue: string; FormatString: string; Currency: string; Unit: string; } export interface Cellset { cellValue(): any; cellProperty(property: string): any; nextCell(): -1 | number; cellOrdinal(): number; getByOrdinal(ordinal: number, tObj?: Record): Cell; indexForOrdinal(ordinal: number): number; close(): any; } export interface Dataset { axisCount(): number; getAxis(nameOrIndex: any): Axis; hasAxis(nameOrIndex: any): boolean; getColumnAxis(): Axis; hasColumnAxis(): boolean; getRowAxis(): Axis; hasRowAxis(): boolean; getCellset(): Cellset; fetchAsObject(): any; } interface HierarchyPropertyInfo { name: string; } export interface HierarchyInfo { index: number; name: string; UName: HierarchyPropertyInfo; Caption: HierarchyPropertyInfo; LName: HierarchyPropertyInfo; LNum: HierarchyPropertyInfo; DisplayInfo: HierarchyPropertyInfo; } export interface _PivotColumn extends PivotColumn { name: string; label?: string; dataType?: string; columns?: Array; isSummary?: boolean; memberType?: MemberType; uniqueName?: string; parentUniqueName?: string; childrenCardinality?: number; properties?: Array; isCell?: boolean; } export {};