@trudb/tru-common-lib 0.0.628 → 0.0.629
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/esm2020/lib/classes/tru-name-value.mjs +3 -0
- package/esm2020/lib/services/tru-data-context.mjs +21 -1
- package/esm2020/lib/services/tru-entity-accessor.mjs +16 -1
- package/fesm2015/trudb-tru-common-lib.mjs +36 -0
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +35 -0
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/classes/tru-name-value.d.ts +8 -0
- package/lib/services/tru-data-context.d.ts +1 -0
- package/lib/services/tru-entity-accessor.d.ts +5 -2
- package/package.json +1 -1
|
@@ -33,6 +33,7 @@ export declare class TruDataContext {
|
|
|
33
33
|
entityAccess: () => TruEntityAccessor;
|
|
34
34
|
exportCahce: () => void;
|
|
35
35
|
save: (entities?: Array<Entity> | null, deleteOperation?: boolean) => Promise<void>;
|
|
36
|
+
saveWithoutNotification: () => Promise<void>;
|
|
36
37
|
revert: () => void;
|
|
37
38
|
revertWithoutPrompt: () => void;
|
|
38
39
|
delete: (entities: Array<Entity>, confirmMsg: string, onSuccess?: Function | undefined) => void;
|
|
@@ -6,6 +6,7 @@ import { HttpClient } from "@angular/common/http";
|
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
import { TruAppEnvironment } from "./tru-app-environment";
|
|
8
8
|
import { TruChoice } from "../classes/tru-choice";
|
|
9
|
+
import { TruNameValue } from "../classes/tru-name-value";
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class TruEntityAccessor {
|
|
11
12
|
private http;
|
|
@@ -15,10 +16,11 @@ export declare class TruEntityAccessor {
|
|
|
15
16
|
private _entityManager;
|
|
16
17
|
private _maxRecordCount;
|
|
17
18
|
constructor(http: HttpClient, appEnvironment: TruAppEnvironment, uiNotification: TruUiNotification);
|
|
19
|
+
set context(dataContext: TruDataContext);
|
|
18
20
|
private getQueryServiceName;
|
|
19
21
|
private warnIfMaxRecords;
|
|
20
22
|
private formatQueryChoices;
|
|
21
|
-
|
|
23
|
+
private formatNameValues;
|
|
22
24
|
add: (entity: typeof TruEntityBase, contextFilters?: any) => Entity;
|
|
23
25
|
search: (entity: typeof TruEntityBase, setupQuery: any | null, expands: [
|
|
24
26
|
] | null, global: boolean) => Observable<Entity[]>;
|
|
@@ -27,7 +29,8 @@ export declare class TruEntityAccessor {
|
|
|
27
29
|
searchCacheOnlySynchronously: (entity: typeof TruEntityBase, setupQuery?: any | null, expands?: [
|
|
28
30
|
] | null) => Array<any>;
|
|
29
31
|
searchQueryChoices: (entity: typeof TruEntityBase, setupQuery?: any | null, hid?: string | null, goToServer?: boolean, ref?: number | null | undefined) => Observable<TruChoice[]>;
|
|
30
|
-
|
|
32
|
+
searchNameValuesCacheOnly: (entity: typeof TruEntityBase, setupQuery?: any | null, ref?: number | null | undefined) => Observable<TruNameValue[]>;
|
|
33
|
+
searchByRef: (entity: typeof TruEntityBase, ref: number | null | undefined) => Observable<TruChoice[]>;
|
|
31
34
|
searchByRefPreferedCache: (entity: typeof TruEntityBase, ref: number | null | undefined) => Observable<any>;
|
|
32
35
|
searchByRefCacheOnly: (entity: typeof TruEntityBase, ref: number | null | undefined, includeDeleted?: boolean) => any;
|
|
33
36
|
searchByRefArrayCacheOnly: (entity: typeof TruEntityBase, setupQuery: any | null, refs: Array<number>, includeDeleted?: boolean) => any[] | null;
|