@trudb/tru-common-lib 0.2.462 → 0.2.463
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.
- package/fesm2022/trudb-tru-common-lib.mjs +9 -5
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/classes/tru-data-change-parser.d.ts +3 -1
- package/lib/components/login/classes/tru-auth-strategy-provider.d.ts +1 -1
- package/lib/services/tru-connection-hub.d.ts +3 -1
- package/package.json +1 -1
|
@@ -5,8 +5,10 @@ import { TruDataContext } from "../services/tru-data-context";
|
|
|
5
5
|
import { TruModelPropertyLookup } from "../services/tru-model-property-lookup";
|
|
6
6
|
import { TruModelTypeLookup } from "../services/tru-model-type-lookup";
|
|
7
7
|
import { TruDataChange } from "./tru-data-change";
|
|
8
|
+
import { TruUser } from "../services/tru-user";
|
|
8
9
|
export declare class TruDataChangeParser {
|
|
9
10
|
private appEnvionment;
|
|
11
|
+
private user;
|
|
10
12
|
private dataContext;
|
|
11
13
|
private entity;
|
|
12
14
|
private tableName;
|
|
@@ -23,7 +25,7 @@ export declare class TruDataChangeParser {
|
|
|
23
25
|
private dataChanged$;
|
|
24
26
|
onDataChanged(): Subject<TruDataChange>;
|
|
25
27
|
dataChanged(change: TruDataChange): void;
|
|
26
|
-
constructor(connection: any, appEnviroment: TruAppEnvironment, dataContext: TruDataContext, globalDataContext: TruDataContext | null, entity: typeof TruEntityBase, tableName: string, addEntity: any, getLatestResults: any, getLatestQuery: any, contextFilters: [], expandPaths: Array<string>, isLoaded: () => boolean, modelTypeLookup: TruModelTypeLookup, modelPropertyLookup: TruModelPropertyLookup);
|
|
28
|
+
constructor(connection: any, appEnviroment: TruAppEnvironment, user: TruUser, dataContext: TruDataContext, globalDataContext: TruDataContext | null, entity: typeof TruEntityBase, tableName: string, addEntity: any, getLatestResults: any, getLatestQuery: any, contextFilters: [], expandPaths: Array<string>, isLoaded: () => boolean, modelTypeLookup: TruModelTypeLookup, modelPropertyLookup: TruModelPropertyLookup);
|
|
27
29
|
private findEntityInCache;
|
|
28
30
|
private findEntityInGlobalCache;
|
|
29
31
|
private checkIfDateTime;
|
|
@@ -5,5 +5,5 @@ import { TruAuthSessionStrategy } from "./tru-auth-session-strategy";
|
|
|
5
5
|
export declare const TruAuthStrategyProvider: {
|
|
6
6
|
provide: import("@angular/core").InjectionToken<import("./tru-auth-config").TruAuthStrategy<any>>;
|
|
7
7
|
deps: (typeof TruAppEnvironment | typeof HttpClient)[];
|
|
8
|
-
useFactory: (http: HttpClient, appEnvironment: TruAppEnvironment) =>
|
|
8
|
+
useFactory: (http: HttpClient, appEnvironment: TruAppEnvironment) => TruAuthSessionStrategy | TruAuthJwtStrategy;
|
|
9
9
|
};
|
|
@@ -2,6 +2,7 @@ import { Subject } from 'rxjs';
|
|
|
2
2
|
import { TruEntityBase } from '../base-classes/tru-entity-base';
|
|
3
3
|
import { TruDataChange } from '../classes/tru-data-change';
|
|
4
4
|
import { TruAppEnvironment } from './tru-app-environment';
|
|
5
|
+
import { TruUser } from './tru-user';
|
|
5
6
|
import { TruDataContext } from './tru-data-context';
|
|
6
7
|
import { TruModelPropertyLookup } from './tru-model-property-lookup';
|
|
7
8
|
import { TruModelTypeLookup } from './tru-model-type-lookup';
|
|
@@ -9,10 +10,11 @@ import * as i0 from "@angular/core";
|
|
|
9
10
|
export declare class TruConnectionHub {
|
|
10
11
|
private dataContext;
|
|
11
12
|
private appEnvironment;
|
|
13
|
+
private user;
|
|
12
14
|
private modelTypeLookup;
|
|
13
15
|
private modelPropertyLookup;
|
|
14
16
|
private connection;
|
|
15
|
-
constructor(dataContext: TruDataContext, appEnvironment: TruAppEnvironment, modelTypeLookup: TruModelTypeLookup, modelPropertyLookup: TruModelPropertyLookup);
|
|
17
|
+
constructor(dataContext: TruDataContext, appEnvironment: TruAppEnvironment, user: TruUser, modelTypeLookup: TruModelTypeLookup, modelPropertyLookup: TruModelPropertyLookup);
|
|
16
18
|
disconnect: () => void;
|
|
17
19
|
connect: () => void;
|
|
18
20
|
start: () => void;
|