@sumaris-net/ngx-components 2.4.151 → 2.4.152

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "2.4.151",
4
+ "version": "2.4.152",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -11,6 +11,8 @@ import { NetworkService } from '../../core/services/network.service';
11
11
  import { BaseGraphqlService, BaseGraphqlServiceOptions } from '../../core/services/base-graphql-service.class';
12
12
  import { Moment } from 'moment';
13
13
  import { IStartableService } from '../../shared/services/startable-service.class';
14
+ import { DocumentNode } from 'graphql/index';
15
+ import { MutableWatchQueriesUpdatePolicy } from '../../core/services/base-entity-service.class';
14
16
  import * as i0 from "@angular/core";
15
17
  export declare const APP_USER_EVENT_SERVICE: InjectionToken<IUserEventService<any, any, number, UserEventWatchOptions, UserEventLoadOptions>>;
16
18
  export declare interface UserEventLoadOptions extends EntitiesServiceLoadOptions {
@@ -42,6 +44,7 @@ export interface UserEventServiceOptions<Q extends IUserEventQueries = IUserEven
42
44
  queries: Q;
43
45
  mutations?: Partial<M>;
44
46
  subscriptions?: Partial<S>;
47
+ watchQueriesUpdatePolicy?: MutableWatchQueriesUpdatePolicy;
45
48
  }
46
49
  export interface IUserEventService<E extends IUserEvent<E, ID>, F extends IUserEventFilter<E, ID>, ID = number, WO extends UserEventWatchOptions = UserEventWatchOptions, LO extends UserEventLoadOptions = UserEventLoadOptions> extends IEntitiesService<E, F, WO>, IStartableService {
47
50
  countSubject: Observable<number>;
@@ -74,6 +77,7 @@ export declare abstract class AbstractUserEventService<E extends IUserEvent<E, I
74
77
  protected readonly mutations: Partial<M>;
75
78
  protected readonly subscriptions: Partial<S>;
76
79
  protected readonly _countSubject: BehaviorSubject<number>;
80
+ protected readonly watchQueriesUpdatePolicy: MutableWatchQueriesUpdatePolicy;
77
81
  protected resetCountDate: Moment;
78
82
  protected listeners: IUserEventListener<E, ID>[];
79
83
  private _subscriptions;
@@ -119,6 +123,7 @@ export declare abstract class AbstractUserEventService<E extends IUserEvent<E, I
119
123
  protected fillDefaultProperties(entity: E): void;
120
124
  protected unreadEvents(events: E[]): number;
121
125
  protected copyIdAndUpdateDate(source: E, target: E): void;
126
+ protected getLoadQueries(): DocumentNode[];
122
127
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractUserEventService<any, any, any, any, any, any, any, any>, never>;
123
128
  static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractUserEventService<any, any, any, any, any, any, any, any>, never, never, {}, {}, never, never, false>;
124
129
  }
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "2.4.151",
5
+ "version": "2.4.152",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{