@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/esm2020/src/app/social/user-event/user-event.service.mjs +35 -22
- package/fesm2015/sumaris-net.ngx-components.mjs +31 -21
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +34 -21
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/social/user-event/user-event.service.d.ts +5 -0
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -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
|
}
|
package/src/assets/manifest.json
CHANGED
|
@@ -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.
|
|
5
|
+
"version": "2.4.152",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|