@cellaware/utils 8.20.1 → 8.21.1

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;
@@ -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,5 @@
1
+ export declare const TAG_COLORS: string[];
2
+ export interface Tag {
3
+ name: string;
4
+ color: string;
5
+ }
@@ -0,0 +1 @@
1
+ export const TAG_COLORS = ['tag-red', 'tag-orange', 'tag-yellow', 'tag-green', 'tag-teal', 'tag-cyan', 'tag-blue', 'tag-indigo', 'tag-violet', 'tag-purple', 'tag-pink', 'tag-gray'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "8.20.1",
3
+ "version": "8.21.1",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",