@sumaris-net/ngx-components 2.8.2-beta3 → 2.8.2-beta4
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
|
@@ -21,7 +21,6 @@ import { OverlayEventDetail } from '@ionic/core';
|
|
|
21
21
|
import { ToastController } from '@ionic/angular';
|
|
22
22
|
import { TranslateService } from '@ngx-translate/core';
|
|
23
23
|
import { TokenScope, UserToken } from './model/token.model';
|
|
24
|
-
import { DocumentNode } from 'graphql/language/ast';
|
|
25
24
|
import * as i0 from "@angular/core";
|
|
26
25
|
export declare interface AccountDetails {
|
|
27
26
|
loaded: boolean;
|
|
@@ -46,7 +45,6 @@ export interface UserSettingsOptions {
|
|
|
46
45
|
}
|
|
47
46
|
export declare const APP_USER_SETTINGS_OPTIONS: InjectionToken<UserSettingsOptions>;
|
|
48
47
|
export declare const APP_USER_TOKEN_SCOPES: InjectionToken<TokenScope[]>;
|
|
49
|
-
export declare const APP_INVALIDATE_TOKEN_QUERY: InjectionToken<DocumentNode>;
|
|
50
48
|
export declare interface IsEmailExistsVariables {
|
|
51
49
|
email: string;
|
|
52
50
|
hash: string;
|
|
@@ -68,8 +66,8 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
68
66
|
private translate;
|
|
69
67
|
private toastController;
|
|
70
68
|
protected environment: Environment;
|
|
71
|
-
protected invalidateTokenQuery: DocumentNode;
|
|
72
69
|
onLogin: Subject<Account>;
|
|
70
|
+
onWillLogout: Subject<Account>;
|
|
73
71
|
onLogout: Subject<void>;
|
|
74
72
|
onChange: Subject<Account>;
|
|
75
73
|
onAuthTokenChange: BehaviorSubject<string>;
|
|
@@ -89,7 +87,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
89
87
|
set tokenType(value: AuthTokenType);
|
|
90
88
|
get apiTokenEnabled(): boolean;
|
|
91
89
|
set apiTokenEnabled(value: boolean);
|
|
92
|
-
constructor(network: NetworkService, graphql: GraphqlService, settings: LocalSettingsService, storage: Storage, file: FileService, translate: TranslateService, toastController: ToastController, environment: Environment, options: UserSettingsOptions
|
|
90
|
+
constructor(network: NetworkService, graphql: GraphqlService, settings: LocalSettingsService, storage: Storage, file: FileService, translate: TranslateService, toastController: ToastController, environment: Environment, options: UserSettingsOptions);
|
|
93
91
|
ngOnStart(): Promise<Account>;
|
|
94
92
|
protected ngOnStop(): Promise<void>;
|
|
95
93
|
isLogin(): boolean;
|
|
@@ -125,7 +123,6 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
125
123
|
*/
|
|
126
124
|
save(account: Account): Promise<Account>;
|
|
127
125
|
logout(): Promise<void>;
|
|
128
|
-
invalidateToken(token: string): Promise<void>;
|
|
129
126
|
/**
|
|
130
127
|
* Load a account
|
|
131
128
|
*
|
|
@@ -194,7 +191,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
194
191
|
protected copyIdAndUpdateDateSettings(source: UserSettings | undefined, target: UserSettings): void;
|
|
195
192
|
protected copyIdAndUpdateDateToken(sources: UserToken[] | undefined, targets: UserToken[]): void;
|
|
196
193
|
protected showToast<T = any>(opts: ShowToastOptions): Promise<OverlayEventDetail<T>>;
|
|
197
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, [null, null, null, null, null, { optional: true; }, { optional: true; }, null, { optional: true; }
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, [null, null, null, null, null, { optional: true; }, { optional: true; }, null, { optional: true; }]>;
|
|
198
195
|
static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
|
|
199
196
|
}
|
|
200
197
|
export {};
|