@devtable/dashboard 8.45.0 → 8.46.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,6 +1,6 @@
1
1
  import { AnyObject } from '~/types';
2
2
  export declare type AggregationType = {
3
- type: 'none' | 'sum' | 'mean' | 'median' | 'max' | 'min';
3
+ type: 'none' | 'sum' | 'mean' | 'median' | 'max' | 'min' | 'CV' | 'std';
4
4
  config: Record<$TSFixMe, never>;
5
5
  } | {
6
6
  type: 'quantile';
@@ -9,4 +9,4 @@ export declare type AggregationType = {
9
9
  };
10
10
  };
11
11
  export declare const DefaultAggregation: AggregationType;
12
- export declare function aggregateValue(data: AnyObject[], data_field: string, aggregation: AggregationType): number | number[] | null;
12
+ export declare function aggregateValue(data: AnyObject[], data_field: string, aggregation: AggregationType): number | number[] | "N/A" | null;
@@ -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: Record<string, number>[]): number | number[] | null;
3
+ export declare function getAggregatedValue({ data_field, aggregation }: ITemplateVariable, data: Record<string, number>[]): number | number[] | "N/A" | null;
4
4
  export declare function formatAggregatedValue({ formatter }: ITemplateVariable, value: number | string | number[] | null): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "8.45.0",
3
+ "version": "8.46.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",