@sumaris-net/ngx-components 2.4.1 → 2.4.2
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/doc/changelog.md +3 -0
- package/esm2020/src/app/core/graphql/graphql.service.mjs +14 -5
- package/fesm2015/sumaris-net.ngx-components.mjs +13 -4
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +13 -4
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +2 -2
- package/src/app/core/graphql/graphql.service.d.ts +5 -2
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.
|
|
4
|
+
"version": "2.4.2",
|
|
5
5
|
"author": "contact@e-is.pro",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"readmeFilename": "README.md",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@angular-devkit/build-angular": "~14.2.10",
|
|
18
18
|
"@angular/compiler-cli": "~14.2.10",
|
|
19
|
-
"@apollo/client": "~3.7.
|
|
19
|
+
"@apollo/client": "~3.7.3",
|
|
20
20
|
"@ionic/storage": "~3.0.6",
|
|
21
21
|
"d3": "~7.6.1",
|
|
22
22
|
"localforage": "~1.10.0",
|
|
@@ -15,6 +15,7 @@ import { CryptoService } from '../services/crypto.service';
|
|
|
15
15
|
import { PropertiesMap } from '../../shared/types';
|
|
16
16
|
import { StartableService } from '../../shared/services/startable-service.class';
|
|
17
17
|
import { StorageService } from '../../shared/services/storage/storage.service';
|
|
18
|
+
import { DocumentNode } from 'graphql';
|
|
18
19
|
import * as i0 from "@angular/core";
|
|
19
20
|
export interface WatchQueryOptions<V> {
|
|
20
21
|
query: any;
|
|
@@ -37,6 +38,7 @@ export interface MutateQueryOptions<T, V = OperationVariables> extends MutationB
|
|
|
37
38
|
forceOffline?: boolean;
|
|
38
39
|
}
|
|
39
40
|
export declare const APP_GRAPHQL_TYPE_POLICIES: InjectionToken<TypePolicies>;
|
|
41
|
+
export declare const APP_GRAPHQL_FRAGMENTS: InjectionToken<DocumentNode[]>;
|
|
40
42
|
export declare type ConnectionParams = {
|
|
41
43
|
authToken?: string;
|
|
42
44
|
authBasic?: string;
|
|
@@ -50,6 +52,7 @@ export declare class GraphqlService extends StartableService<ApolloClient<any>>
|
|
|
50
52
|
private cryptoService;
|
|
51
53
|
protected environment: any;
|
|
52
54
|
private typePolicies;
|
|
55
|
+
private fragments;
|
|
53
56
|
private readonly _networkStatusChanged$;
|
|
54
57
|
private httpParams;
|
|
55
58
|
private wsParams;
|
|
@@ -61,7 +64,7 @@ export declare class GraphqlService extends StartableService<ApolloClient<any>>
|
|
|
61
64
|
get client(): ApolloClient<any>;
|
|
62
65
|
get cache(): ApolloCache<any>;
|
|
63
66
|
get defaultFetchPolicy(): WatchQueryFetchPolicy;
|
|
64
|
-
constructor(platform: Platform, apollo: Apollo, httpLink: HttpLink, network: NetworkService, storage: StorageService, cryptoService: CryptoService, environment: any, typePolicies: TypePolicies);
|
|
67
|
+
constructor(platform: Platform, apollo: Apollo, httpLink: HttpLink, network: NetworkService, storage: StorageService, cryptoService: CryptoService, environment: any, typePolicies: TypePolicies, fragments: DocumentNode[]);
|
|
65
68
|
setAuthToken(token: string): Promise<void>;
|
|
66
69
|
setAuthBasic(basic: string): Promise<void>;
|
|
67
70
|
/**
|
|
@@ -140,6 +143,6 @@ export declare class GraphqlService extends StartableService<ApolloClient<any>>
|
|
|
140
143
|
private createAppErrorByCode;
|
|
141
144
|
private getI18nErrorMessageByCode;
|
|
142
145
|
private toAppError;
|
|
143
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GraphqlService, [null, null, null, null, null, null, null, { optional: true; }]>;
|
|
146
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraphqlService, [null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
144
147
|
static ɵprov: i0.ɵɵInjectableDeclaration<GraphqlService>;
|
|
145
148
|
}
|