drizzle-cube 0.1.40 → 0.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -408,6 +408,7 @@ export declare interface FilterCondition {
408
408
  member: string;
409
409
  operator: FilterOperator;
410
410
  values: any[];
411
+ dateRange?: string | string[];
411
412
  }
412
413
 
413
414
  /**
@@ -450,8 +451,11 @@ declare interface Measure {
450
451
  title?: string;
451
452
  description?: string;
452
453
  type: MeasureType;
453
- /** Column to aggregate or SQL expression */
454
- sql: AnyColumn | SQL | ((ctx: QueryContext) => AnyColumn | SQL);
454
+ /**
455
+ * Column to aggregate or SQL expression
456
+ * Optional for calculated measures (type: 'calculated') which use calculatedSql instead
457
+ */
458
+ sql?: AnyColumn | SQL | ((ctx: QueryContext) => AnyColumn | SQL);
455
459
  /** Display format */
456
460
  format?: string;
457
461
  /** Whether to show in UI */