@cellaware/utils 9.0.9 → 9.1.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.
@@ -65,6 +65,7 @@ export interface BIDataSource {
65
65
  folder: string;
66
66
  tags: Tag[];
67
67
  views: BIDataSourceView[];
68
+ relationships: BIDataSourceRelationship[];
68
69
  measures: BIDataSourceExpression[];
69
70
  clientId: string;
70
71
  userId: string;
@@ -79,12 +80,16 @@ export interface BIDataSourceView {
79
80
  compiledQuery: string;
80
81
  disabled?: boolean;
81
82
  }
82
- export interface BIDataSourceColumnRelationship {
83
- tableName: string;
84
- columnName: string;
83
+ export interface BIDataSourceRelationship {
84
+ sourceTableName: string;
85
+ targetTableName: string;
86
+ columns: BIDataSourceRelationshipLink[];
85
87
  type: 'many-to-one' | 'one-to-one' | 'many-to-many' | 'one-to-many';
86
- /** Default is `inner`. */
87
- join?: 'inner' | 'left' | 'right' | 'full';
88
+ join: 'inner' | 'left' | 'right' | 'full';
89
+ }
90
+ export interface BIDataSourceRelationshipLink {
91
+ sourceColumnName: string;
92
+ targetColumnName: string;
88
93
  }
89
94
  export interface BIDataSourceColumnCalendar {
90
95
  /** https://www.ag-grid.com/studio/angular/calendars/#fragment-reference */
@@ -95,7 +100,6 @@ export interface BIDataSourceColumn {
95
100
  dataType: string;
96
101
  description: string;
97
102
  comment: string;
98
- relationship?: BIDataSourceColumnRelationship;
99
103
  /** Important: a calendar represents the semantics of a **particular** date -- each date field should have its own calendar. */
100
104
  calendar?: BIDataSourceColumnCalendar;
101
105
  hidden?: boolean;
@@ -38,6 +38,7 @@ export function initBIDataSource() {
38
38
  folder: '',
39
39
  tags: [],
40
40
  views: [],
41
+ relationships: [],
41
42
  measures: [],
42
43
  clientId: '',
43
44
  userId: ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "9.0.9",
3
+ "version": "9.1.1",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",