@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.
@@ -0,0 +1,8 @@
1
+ export declare abstract class TruNameValue {
2
+ abstract name: string;
3
+ abstract value: {
4
+ $: string | number | null | undefined;
5
+ };
6
+ abstract checked?: boolean | null | undefined;
7
+ abstract notAnOption?: boolean | undefined;
8
+ }
@@ -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
- set context(dataContext: TruDataContext);
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
- searchByRef: (entity: typeof TruEntityBase, ref: number | null | undefined) => Observable<any[]>;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trudb/tru-common-lib",
3
- "version": "0.0.628",
3
+ "version": "0.0.629",
4
4
  "type": "module",
5
5
  "peerDependencies": {},
6
6
  "dependencies": {