@sumaris-net/ngx-components 18.2.3 → 18.2.5
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/esm2022/src/app/core/services/base-entity-service.class.mjs +5 -5
- package/esm2022/src/app/social/user-event/testing/user-event.testing.service.mjs +1 -1
- package/esm2022/src/app/social/user-event/user-event.service.mjs +8 -5
- package/fesm2022/sumaris-net.ngx-components.mjs +11 -8
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/base-entity-service.class.d.ts +3 -3
- package/src/app/social/user-event/testing/user-event.testing.service.d.ts +2 -1
- package/src/app/social/user-event/user-event.service.d.ts +5 -5
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -50,11 +50,11 @@ export interface EntitySaveOptions<T = any, V = any> {
|
|
|
50
50
|
}>) => InternalRefetchQueriesInclude) | InternalRefetchQueriesInclude;
|
|
51
51
|
awaitRefetchQueries?: boolean;
|
|
52
52
|
update?: MutationUpdaterFn<{
|
|
53
|
-
data:
|
|
53
|
+
data: any;
|
|
54
54
|
}> | MutationUpdaterFunction<{
|
|
55
|
-
data:
|
|
55
|
+
data: any;
|
|
56
56
|
}, V, any, ApolloCache<{
|
|
57
|
-
data:
|
|
57
|
+
data: any;
|
|
58
58
|
}>>;
|
|
59
59
|
}
|
|
60
60
|
export declare abstract class BaseEntityService<T extends Entity<T, ID>, F extends EntityFilter<F, T, ID>, ID = number, WO extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions<T>, LO extends EntitiesServiceLoadOptions = EntitiesServiceLoadOptions<T>, Q extends BaseEntityGraphqlQueries = BaseEntityGraphqlQueries, M extends BaseEntityGraphqlMutations = BaseEntityGraphqlMutations, S extends BaseEntityGraphqlSubscriptions = BaseEntityGraphqlSubscriptions> extends BaseGraphqlService<T, F, ID> implements IEntitiesService<T, F, WO>, IEntityService<T, ID, LO> {
|
|
@@ -9,6 +9,7 @@ import { FetchPolicy } from '@apollo/client/core';
|
|
|
9
9
|
import { LoadResult } from '../../../shared/services/entity-service.class';
|
|
10
10
|
import { SortDirection } from '@angular/material/sort';
|
|
11
11
|
import { UserEventTest, UserEventTestFilter } from './user-event.testing.model';
|
|
12
|
+
import { EntitySaveOptions } from '../../../core/services/base-entity-service.class';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
export declare class UserEventTestService extends AbstractUserEventService<UserEventTest, UserEventTestFilter> {
|
|
14
15
|
protected graphql: GraphqlService;
|
|
@@ -31,7 +32,7 @@ export declare class UserEventTestService extends AbstractUserEventService<UserE
|
|
|
31
32
|
listenAllChanges(filter: any, options?: UserEventLoadOptions<UserEventTest> & {
|
|
32
33
|
interval?: number;
|
|
33
34
|
}): Observable<any[]>;
|
|
34
|
-
save(entity: any, options?:
|
|
35
|
+
save(entity: any, options?: EntitySaveOptions<UserEventTest>): Promise<any>;
|
|
35
36
|
saveAll(data: any[], opts?: any): Promise<any[]>;
|
|
36
37
|
protected defaultRecipient(): any;
|
|
37
38
|
watchAll(offset: number, size: number, sortBy?: string, sortDirection?: SortDirection, filter?: Partial<any>, opts?: UserEventWatchOptions<UserEventTest>): Observable<LoadResult<any>>;
|
|
@@ -5,14 +5,14 @@ import { GraphqlService } from '../../core/graphql/graphql.service';
|
|
|
5
5
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
6
6
|
import { IUserEvent, IUserEventFilter } from './user-event.model';
|
|
7
7
|
import { SortDirection } from '@angular/material/sort';
|
|
8
|
-
import { EntitiesServiceLoadOptions, EntitiesServiceWatchOptions,
|
|
8
|
+
import { EntitiesServiceLoadOptions, EntitiesServiceWatchOptions, IEntitiesService, LoadResult, Page } from '../../shared/services/entity-service.class';
|
|
9
9
|
import { TranslateService } from '@ngx-translate/core';
|
|
10
10
|
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
14
|
import { DocumentNode } from 'graphql/index';
|
|
15
|
-
import { MutableWatchQueriesUpdatePolicy } from '../../core/services/base-entity-service.class';
|
|
15
|
+
import { EntitySaveOptions, MutableWatchQueriesUpdatePolicy } from '../../core/services/base-entity-service.class';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
export declare const APP_USER_EVENT_SERVICE: InjectionToken<IUserEventService<any, any, number, UserEventWatchOptions<any>, UserEventLoadOptions<any>>>;
|
|
18
18
|
export declare interface UserEventLoadOptions<T> extends EntitiesServiceLoadOptions<T> {
|
|
@@ -59,7 +59,7 @@ export interface IUserEventService<E extends IUserEvent<E, ID>, F extends IUserE
|
|
|
59
59
|
listenAllChanges(filter: Partial<F>, options?: LO & {
|
|
60
60
|
interval?: number;
|
|
61
61
|
}): Observable<E[]>;
|
|
62
|
-
save(entity: E, options?:
|
|
62
|
+
save(entity: E, options?: EntitySaveOptions<E>): Promise<E>;
|
|
63
63
|
delete(entity: E): Promise<any>;
|
|
64
64
|
markAllAsRead(entities: E[]): any;
|
|
65
65
|
registerListener(listener: IUserEventListener<E, ID>): any;
|
|
@@ -102,8 +102,8 @@ export declare abstract class AbstractUserEventService<E extends IUserEvent<E, I
|
|
|
102
102
|
}): Observable<E[]>;
|
|
103
103
|
delete(entity: E): Promise<any>;
|
|
104
104
|
deleteAll(entities: E[], opts?: any): Promise<any>;
|
|
105
|
-
save(entity: E,
|
|
106
|
-
saveAll(entities: E[], opts?:
|
|
105
|
+
save(entity: E, opts?: EntitySaveOptions<E>): Promise<E>;
|
|
106
|
+
saveAll(entities: E[], opts?: EntitySaveOptions<E>): Promise<E[]>;
|
|
107
107
|
markAllAsRead(entities: E[]): Promise<void>;
|
|
108
108
|
registerListener(listener: IUserEventListener<E, ID>): void;
|
|
109
109
|
resetCount(): void;
|
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": "18.2.
|
|
5
|
+
"version": "18.2.5",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|