@cellaware/utils 9.1.0 → 9.1.2

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.
@@ -48,6 +48,8 @@ export interface BIDataSourceExternal {
48
48
  calendars: any[];
49
49
  /** Indicates if data is pre-loaded rather than loaded dynamically via a Data Engine. */
50
50
  preload: boolean;
51
+ /** Our own internal representation of relationships. Having this makes things easier during query generation. */
52
+ biDataSourceRelationships: BIDataSourceRelationship[];
51
53
  }
52
54
  export interface BIDataSource {
53
55
  dataSourceId: string;
@@ -80,23 +82,17 @@ export interface BIDataSourceView {
80
82
  compiledQuery: string;
81
83
  disabled?: boolean;
82
84
  }
83
- export interface BIDataSourceColumnRelationship {
84
- tableName: string;
85
- columnName: string;
86
- type: 'many-to-one' | 'one-to-one' | 'many-to-many' | 'one-to-many';
87
- /** Default is `inner`. */
88
- join?: 'inner' | 'left' | 'right' | 'full';
89
- }
90
85
  export interface BIDataSourceRelationship {
91
86
  sourceTableName: string;
92
87
  targetTableName: string;
93
- columns: {
94
- sourceColumnName: string;
95
- targetColumnName: string;
96
- }[];
88
+ columns: BIDataSourceRelationshipLink[];
97
89
  type: 'many-to-one' | 'one-to-one' | 'many-to-many' | 'one-to-many';
98
90
  join: 'inner' | 'left' | 'right' | 'full';
99
91
  }
92
+ export interface BIDataSourceRelationshipLink {
93
+ sourceColumnName: string;
94
+ targetColumnName: string;
95
+ }
100
96
  export interface BIDataSourceColumnCalendar {
101
97
  /** https://www.ag-grid.com/studio/angular/calendars/#fragment-reference */
102
98
  fragments: string[];
@@ -106,7 +102,6 @@ export interface BIDataSourceColumn {
106
102
  dataType: string;
107
103
  description: string;
108
104
  comment: string;
109
- relationship?: BIDataSourceColumnRelationship;
110
105
  /** Important: a calendar represents the semantics of a **particular** date -- each date field should have its own calendar. */
111
106
  calendar?: BIDataSourceColumnCalendar;
112
107
  hidden?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "9.1.0",
3
+ "version": "9.1.2",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",