drizzle-cube
Version:
Drizzle ORM-first semantic layer with Cube.js compatibility. Type-safe analytics and dashboards with SQL injection protection.
20 lines (19 loc) • 767 B
TypeScript
import { ModeAdapter } from './modeAdapter';
import { FunnelStepState, FunnelBindingKey } from '../types';
/**
* The shape of funnel mode state in the store.
* This is what the adapter's load() returns and save() receives.
*/
export interface FunnelSliceState {
/** The cube all funnel steps use (single-cube mode) */
funnelCube: string | null;
/** Funnel step definitions */
funnelSteps: FunnelStepState[];
/** Currently selected step index */
activeFunnelStepIndex: number;
/** Time dimension for temporal ordering */
funnelTimeDimension: string | null;
/** Binding key that links entities across steps */
funnelBindingKey: FunnelBindingKey | null;
}
export declare const funnelModeAdapter: ModeAdapter<FunnelSliceState>;