@devtable/dashboard 10.18.0 → 10.19.0

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.
@@ -1,3 +1,10 @@
1
+ export declare type TCustomAggregation = {
2
+ type: 'custom';
3
+ config: {
4
+ func: string;
5
+ };
6
+ };
7
+ export declare const DefaultCustomAggregationFunc: string;
1
8
  export declare type AggregationType = {
2
9
  type: 'none' | 'sum' | 'mean' | 'median' | 'max' | 'min' | 'CV' | 'std';
3
10
  config: Record<$TSFixMe, never>;
@@ -6,8 +13,8 @@ export declare type AggregationType = {
6
13
  config: {
7
14
  p: number;
8
15
  };
9
- };
16
+ } | TCustomAggregation;
10
17
  export declare const DefaultAggregation: AggregationType;
11
18
  export declare function aggregateValueFromNumbers(numbers: number[], aggregation: AggregationType): number | number[] | "N/A";
12
19
  export declare function formatNumbersAndAggregateValue(possibleNumbers: Array<string | number>, aggregation: AggregationType): number | number[] | "N/A";
13
- export declare function aggregateValue(data: TPanelData, data_field: string, aggregation: AggregationType): number | number[] | "N/A" | null;
20
+ export declare function aggregateValue(data: TPanelData, data_field: string, aggregation: AggregationType): any;
@@ -1,4 +1,4 @@
1
1
  import { ITemplateVariable } from './types';
2
2
  export declare function getNonStatsDataText(data: $TSFixMe): any;
3
- export declare function getAggregatedValue({ data_field, aggregation }: ITemplateVariable, data: TPanelData): number | number[] | "N/A" | null;
4
- export declare function formatAggregatedValue({ formatter }: ITemplateVariable, value: number | string | number[] | null): any;
3
+ export declare function getAggregatedValue({ data_field, aggregation }: ITemplateVariable, data: TPanelData): any;
4
+ export declare function formatAggregatedValue({ formatter, aggregation }: ITemplateVariable, value: number | string | number[] | null): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "10.18.0",
3
+ "version": "10.19.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",