@sumaris-net/ngx-components 18.2.4 → 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "18.2.4",
4
+ "version": "18.2.5",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -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?: UserEventLoadOptions<UserEventTest>): Promise<any>;
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, EntityServiceLoadOptions, IEntitiesService, LoadResult, Page } from '../../shared/services/entity-service.class';
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?: LO): Promise<E>;
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, options?: EntityServiceLoadOptions<E>): Promise<E>;
106
- saveAll(entities: E[], opts?: any): Promise<E[]>;
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;
@@ -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.4",
5
+ "version": "18.2.5",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{