@cellaware/utils 8.20.0 → 8.21.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,7 @@
1
1
  import { DataContext } from "./client.js";
2
2
  import { DatagridCondition, DatagridStateBase } from "./datagrid.js";
3
3
  import { SubscriptionIntegration } from "./integration.js";
4
+ import { Tag } from "./tag.js";
4
5
  export declare const ALERT_VISIBILITY_PRIVATE = "private";
5
6
  export declare const ALERT_VISIBILITY_PUBLIC = "public";
6
7
  /**
@@ -30,9 +31,10 @@ export interface Alert {
30
31
  visibility: string;
31
32
  readonly: boolean;
32
33
  folder: string;
33
- tags: string[];
34
+ tags: Tag[];
34
35
  strategy: string;
35
36
  contentInfo: AlertContentInfo;
37
+ /** **Important:** because the alert condition is evaluated **AFTER** all datagrid transformations, the condition `columnName` maps to column format's `displayName`. */
36
38
  conditionInfo: DatagridCondition;
37
39
  clientId: string;
38
40
  userId: string;
@@ -1,4 +1,5 @@
1
1
  import { DatagridStateBase } from "./datagrid.js";
2
+ import { Tag } from "./tag.js";
2
3
  export declare const BI_STUDIO_VISIBILITY_PRIVATE = "private";
3
4
  export declare const BI_STUDIO_VISIBILITY_PUBLIC = "public";
4
5
  export declare const BI_STUDIO_VISIBILITY_GLOBAL = "global";
@@ -9,7 +10,7 @@ export interface BICanvas {
9
10
  visibility: string;
10
11
  readonly: boolean;
11
12
  folder: string;
12
- tags: string[];
13
+ tags: Tag[];
13
14
  dataSourceName: string;
14
15
  state: BICanvasState;
15
16
  clientId: string;
@@ -1,5 +1,6 @@
1
1
  import { DataContext } from "./client.js";
2
2
  import { DatagridStateBase } from "./datagrid.js";
3
+ import { Tag } from "./tag.js";
3
4
  export declare const DASHBOARD_VISIBILITY_PRIVATE = "private";
4
5
  export declare const DASHBOARD_VISIBILITY_PUBLIC = "public";
5
6
  export declare const DASHBOARD_VISIBILITY_GLOBAL = "global";
@@ -24,7 +25,7 @@ export interface Dashboard {
24
25
  filters: DashboardFilter[];
25
26
  parameters: DashboardParameter[];
26
27
  folder: string;
27
- tags: string[];
28
+ tags: Tag[];
28
29
  tv: boolean;
29
30
  clientId: string;
30
31
  userId: string;
@@ -1391,7 +1391,7 @@ export function transformDatagrid(rows, datagridState, locale, condition) {
1391
1391
  rowIdx++;
1392
1392
  });
1393
1393
  if (!!condition) {
1394
- rows = evaluatePivotDatagridCondition(rows, condition, mappedDisplayColumnNames);
1394
+ adjRows = evaluatePivotDatagridCondition(adjRows, condition, mappedDisplayColumnNames);
1395
1395
  }
1396
1396
  }
1397
1397
  else {
@@ -1451,7 +1451,7 @@ export function transformDatagrid(rows, datagridState, locale, condition) {
1451
1451
  rowIdx++;
1452
1452
  });
1453
1453
  if (!!condition) {
1454
- adjRows = evaluateDatagridCondition(rows, condition);
1454
+ adjRows = evaluateDatagridCondition(adjRows, condition);
1455
1455
  }
1456
1456
  }
1457
1457
  return {
@@ -1,6 +1,7 @@
1
1
  import { DataContext } from "./client.js";
2
2
  import { DatagridStateBase } from "./datagrid.js";
3
3
  import { SubscriptionIntegration } from "./integration.js";
4
+ import { Tag } from "./tag.js";
4
5
  export declare const REPORT_VISIBILITY_PRIVATE = "private";
5
6
  export declare const REPORT_VISIBILITY_PUBLIC = "public";
6
7
  export declare const REPORT_VISIBILITY_GLOBAL = "global";
@@ -28,7 +29,7 @@ export interface Report {
28
29
  landscape?: boolean;
29
30
  parameters: ReportParameter[];
30
31
  folder: string;
31
- tags: string[];
32
+ tags: Tag[];
32
33
  brief: string;
33
34
  email?: {
34
35
  subject: string;
@@ -0,0 +1,4 @@
1
+ export interface Tag {
2
+ name: string;
3
+ color: string;
4
+ }
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "8.20.0",
3
+ "version": "8.21.0",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",