@databrainhq/plugin 0.9.15 → 0.9.17

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.
@@ -6,6 +6,24 @@ declare type ColumnData = {
6
6
  datatype: string;
7
7
  as: string;
8
8
  };
9
+ export declare type TimeSeriesGroupType = 'yearly' | 'monthly' | 'weekly' | 'daily';
10
+ export declare type TimeSeriesType = 'bar' | 'line' | 'area';
11
+ export declare type TimeSeriesSettingsType = {
12
+ seriesType: {
13
+ type: TimeSeriesType;
14
+ column: string;
15
+ }[];
16
+ groupBySettings: {
17
+ isDynamic: boolean;
18
+ options: string[];
19
+ value: TimeSeriesGroupType;
20
+ };
21
+ };
22
+ export declare type TimeSeriesSettingsProps = {
23
+ settings: TimeSeriesSettingsType;
24
+ onChange: React.Dispatch<React.SetStateAction<TimeSeriesSettingsType>>;
25
+ yAxisList: string[];
26
+ };
9
27
  export declare type EmbeddedMetricCreationProps = {
10
28
  clientId: string;
11
29
  companyId: string;
@@ -117,6 +135,8 @@ export declare type MetricOutputProps = {
117
135
  tabContent: JSX.Element;
118
136
  }[];
119
137
  chartColors?: string[];
138
+ timeSeriesSettings: TimeSeriesSettingsType;
139
+ setTimeSeriesSettings: React.Dispatch<React.SetStateAction<TimeSeriesSettingsType>>;
120
140
  };
121
141
  export declare type CompanyIntegration = {
122
142
  id: string;
@@ -143,4 +163,18 @@ export declare type DrillDownSetting = {
143
163
  selectedDimensions: string[];
144
164
  isEnableGroupBy: boolean;
145
165
  };
166
+ export declare type TimeSeriesChartProps = {
167
+ dataArray: Record<string, any>[];
168
+ timeStampKey: string;
169
+ valuekeys: string[];
170
+ type: TimeSeriesType;
171
+ groupBy: TimeSeriesGroupType;
172
+ margins: Record<string, number>;
173
+ legendSettings: LegendSettings;
174
+ labelSettings: LabelSettings;
175
+ axisSettings: AxisSettings;
176
+ colors?: string[];
177
+ customSettings: CustomSettings;
178
+ backGroundColor: BackgroundSettings;
179
+ };
146
180
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databrainhq/plugin",
3
- "version": "0.9.15",
3
+ "version": "0.9.17",
4
4
  "description": "Databrain app dashboard ui plugin.",
5
5
  "author": "",
6
6
  "license": "MIT",