@trudb/tru-common-lib 0.0.182 → 0.0.183

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.
@@ -1,18 +1,20 @@
1
1
  import { EntityManager, EntityQuery, MetadataStore } from 'breeze-client';
2
+ import { TruBreezeMetadataProvider } from './tru-breeze-metadata-provider';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class TruBreezeContextFactory {
5
+ private breezeMetadataProvider;
4
6
  /**
5
7
  * Maximum number of records to return from a query.
6
8
  * @return {number}
7
9
  */
8
10
  private servicePath;
9
11
  private metadataStore;
10
- constructor();
12
+ constructor(breezeMetadataProvider: TruBreezeMetadataProvider);
11
13
  /**
12
14
  * Note: hasServerMetadata is false to prevent the automatic query of the metadata from the server.
13
15
  */
14
16
  private breezeDataService;
15
- setUpMetadata: (metadata: any) => MetadataStore;
17
+ setUpMetadata: (metadata: object) => MetadataStore;
16
18
  /**
17
19
  * Returns a new data context object.
18
20
  * @return {object} - Breeze Manager
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TruBreezeMetadataProvider {
3
+ private _metadata;
4
+ constructor();
5
+ get metadata(): object;
6
+ set metadata(json: object);
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<TruBreezeMetadataProvider, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<TruBreezeMetadataProvider>;
9
+ }
@@ -4,14 +4,16 @@ import { TruUiNotification } from "./tru-ui-notification";
4
4
  import { TruDataContext } from "./tru-data-context";
5
5
  import { HttpClient } from "@angular/common/http";
6
6
  import { Observable } from 'rxjs';
7
+ import { TruAppEnvironment } from "./tru-app-environment";
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class TruEntityAccessor {
9
10
  private http;
11
+ private appEnvironment;
10
12
  private uiNotification;
11
13
  private _breezeContext;
12
14
  private _entityManager;
13
15
  private _maxRecordCount;
14
- constructor(http: HttpClient, uiNotification: TruUiNotification);
16
+ constructor(http: HttpClient, appEnvironment: TruAppEnvironment, uiNotification: TruUiNotification);
15
17
  private getQueryServiceName;
16
18
  private warnIfMaxRecords;
17
19
  private formatQueryChoices;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trudb/tru-common-lib",
3
- "version": "0.0.182",
3
+ "version": "0.0.183",
4
4
  "type": "module",
5
5
  "peerDependencies": {},
6
6
  "dependencies": {
package/public-api.d.ts CHANGED
@@ -28,6 +28,7 @@ export * from "./lib/components/toolbar/text/tru-toolbar-text";
28
28
  export * from "./lib/components/toolbar/text/tru-toolbar-text-module";
29
29
  export * from './lib/services/tru-app-environment';
30
30
  export * from './lib/services/tru-breeze-context-factory';
31
+ export * from './lib/services/tru-breeze-metadata-provider';
31
32
  export * from './lib/services/tru-component-lookup';
32
33
  export * from './lib/services/tru-data-context';
33
34
  export * from './lib/services/tru-entity-accessor';