semaphor 0.0.33 → 0.0.35

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.
@@ -69,6 +69,9 @@ declare type Actions = {
69
69
  getSelectedSheetLayout: () => ReactGridLayout_2.Layout[] | undefined;
70
70
  getSelectedSheetLayouts: () => ReactGridLayout_2.Layouts | undefined;
71
71
  handleDataPointClickAction: (card: TCard, dataPoint: any) => void;
72
+ addBaseQuery: (baseQuery: TBaseQuery) => void;
73
+ removeBaseQuery: (baseQueryId: string) => void;
74
+ setBaseQueries: (baseQueries: TBaseQuery[]) => void;
72
75
  };
73
76
 
74
77
  declare type Actions_2 = {
@@ -307,6 +310,7 @@ export declare function getDashbaordStateWithoutData(dashboardState: TDashboard)
307
310
  style?: TStyle | undefined;
308
311
  filters?: TFilter[] | undefined;
309
312
  customCards?: CustomCard[] | undefined;
313
+ baseQueries?: TBaseQuery[] | undefined;
310
314
  };
311
315
 
312
316
  export declare function getFilterValueType(filter: TFilter): "string" | "number" | "date" | "boolean";
@@ -385,6 +389,13 @@ export declare type StyleProps = {
385
389
  };
386
390
  };
387
391
 
392
+ export declare type TBaseQuery = {
393
+ id: string;
394
+ name: string;
395
+ sql: string;
396
+ description?: string;
397
+ };
398
+
388
399
  export declare type TCard = {
389
400
  id: string;
390
401
  title: string;
@@ -434,6 +445,7 @@ export declare type TDashboard = {
434
445
  style?: TStyle;
435
446
  filters?: TFilter[];
436
447
  customCards?: CustomCard[];
448
+ baseQueries?: TBaseQuery[];
437
449
  };
438
450
 
439
451
  export declare type TDataColumn = {
@@ -757,6 +769,12 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
757
769
  card: TCard;
758
770
  }>;
759
771
  })[] | undefined;
772
+ baseQueries?: {
773
+ id: string;
774
+ name: string;
775
+ sql: string;
776
+ description?: string | undefined;
777
+ }[] | undefined;
760
778
  };
761
779
  selectedSheetId?: string | null | undefined;
762
780
  selectedFrameId?: string | null | undefined;
@@ -900,6 +918,9 @@ export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardSto
900
918
  getSelectedSheetLayout: () => ReactGridLayout_2.Layout[] | undefined;
901
919
  getSelectedSheetLayouts: () => ReactGridLayout_2.Layouts | undefined;
902
920
  handleDataPointClickAction: (card: TCard, dataPoint: any) => void;
921
+ addBaseQuery: (baseQuery: TBaseQuery) => void;
922
+ removeBaseQuery: (baseQueryId: string) => void;
923
+ setBaseQueries: (baseQueries: TBaseQuery[]) => void;
903
924
  };
904
925
  }) => void), shouldReplace?: boolean | undefined): void;
905
926
  }>;