plmt-constructor-sdk 0.17.5 → 0.17.6

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,4 +1,5 @@
1
1
  import { ColumnType } from '../data';
2
+ import { DataQueryFunction_Server } from './config';
2
3
  export { ColumnType as ColumnFieldType_Server } from '../data';
3
4
  export declare enum DatasetColumnType_Server {
4
5
  Dimension = "dimension",
@@ -16,4 +17,5 @@ export interface Column_Server {
16
17
  path: string;
17
18
  base_type: ColumnType;
18
19
  data_type?: DatasetColumnType_Server;
20
+ agg_fn?: DataQueryFunction_Server;
19
21
  }
@@ -32,6 +32,7 @@ function parseDataToWidgetData(widget, dataOptionsMap, dataSettingsMethods = def
32
32
  path: source.path,
33
33
  format: formatters[source.path] || ((value) => value),
34
34
  name: source.name,
35
+ agg_fn: source.agg_fn,
35
36
  }));
36
37
  const columnsByBlock = {};
37
38
  const filters = [];
package/data.d.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  * @packageDocumentation
5
5
  * @module Работа с данными
6
6
  */
7
+ import { DataQueryFunction_Server } from './__internal__/config';
7
8
  export declare enum ColumnType {
8
9
  String = "string",
9
10
  Number = "number",
@@ -80,6 +81,7 @@ export interface Column {
80
81
  id: number;
81
82
  name: string;
82
83
  path: string;
84
+ agg_fn?: DataQueryFunction_Server;
83
85
  format: (value: any) => string;
84
86
  }
85
87
  export interface Filter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plmt-constructor-sdk",
3
- "version": "0.17.5",
3
+ "version": "0.17.6",
4
4
  "description": "Набор инструментов для создания виджетов.",
5
5
  "dependencies": {
6
6
  "logical-not": "^1.0.9"