@idea-ionic/auth 7.2.1 → 7.2.3
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 +1 -1
- package/src/auth.module.d.ts +0 -21
- package/src/auth.service.d.ts +0 -143
- package/src/confirmPassword.page.d.ts +0 -34
- package/src/forgotPassword.page.d.ts +0 -17
- package/src/mfaChallenge.page.d.ts +0 -20
- package/src/newPassword.page.d.ts +0 -29
- package/src/passwordPolicy.component.d.ts +0 -13
- package/src/resendLink.page.d.ts +0 -18
- package/src/setupMFA/setupMFA.module.d.ts +0 -12
- package/src/setupMFA/setupMFAButton.component.d.ts +0 -26
- package/src/setupMFA/setupMFAModal.component.d.ts +0 -20
- package/src/setupMFA.page.d.ts +0 -10
- package/src/signIn.page.d.ts +0 -31
- package/src/signUp.page.d.ts +0 -33
package/package.json
CHANGED
package/src/auth.module.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./signIn.page";
|
|
3
|
-
import * as i2 from "./signUp.page";
|
|
4
|
-
import * as i3 from "./newPassword.page";
|
|
5
|
-
import * as i4 from "./resendLink.page";
|
|
6
|
-
import * as i5 from "./forgotPassword.page";
|
|
7
|
-
import * as i6 from "./confirmPassword.page";
|
|
8
|
-
import * as i7 from "./mfaChallenge.page";
|
|
9
|
-
import * as i8 from "./setupMFA.page";
|
|
10
|
-
import * as i9 from "./passwordPolicy.component";
|
|
11
|
-
import * as i10 from "@angular/common";
|
|
12
|
-
import * as i11 from "@angular/forms";
|
|
13
|
-
import * as i12 from "@ionic/angular";
|
|
14
|
-
import * as i13 from "@idea-ionic/common";
|
|
15
|
-
import * as i14 from "@angular/router";
|
|
16
|
-
import * as i15 from "./setupMFA/setupMFA.module";
|
|
17
|
-
export declare class IDEAAuthModule {
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IDEAAuthModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IDEAAuthModule, [typeof i1.IDEASignInPage, typeof i2.IDEASignUpPage, typeof i3.IDEANewPasswordPage, typeof i4.IDEAResendLinkPage, typeof i5.IDEAForgotPasswordPage, typeof i6.IDEAConfirmPasswordPage, typeof i7.IDEAMFAChallengePage, typeof i8.IDEASetupMFAPage, typeof i9.IDEAPasswordPolicyComponent], [typeof i10.CommonModule, typeof i11.FormsModule, typeof i12.IonicModule, typeof i13.IDEATranslationsModule, typeof i14.RouterModule, typeof i15.IDEASetupMFAModule], never>;
|
|
20
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IDEAAuthModule>;
|
|
21
|
-
}
|
package/src/auth.service.d.ts
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
/// <reference types="modules/auth/node_modules/amazon-cognito-identity-js" />
|
|
2
|
-
import { CognitoUser } from 'amazon-cognito-identity-js';
|
|
3
|
-
import { IDEAStorageService } from '@idea-ionic/common';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Cognito wrapper to manage the authentication flow.
|
|
7
|
-
*
|
|
8
|
-
* Note: in IDEA's Cognito users pools, the email is an alias of the username.
|
|
9
|
-
*/
|
|
10
|
-
export declare class IDEAAuthService {
|
|
11
|
-
private storage;
|
|
12
|
-
private userPool;
|
|
13
|
-
challengeUsername: string;
|
|
14
|
-
private challengePassword;
|
|
15
|
-
private newAccountJustRegistered;
|
|
16
|
-
private mfaProjectName;
|
|
17
|
-
private passwordPolicy;
|
|
18
|
-
constructor(storage: IDEAStorageService);
|
|
19
|
-
/**
|
|
20
|
-
* Prepare the necessary structure to get authorized in Cognito.
|
|
21
|
-
*/
|
|
22
|
-
private prepareAuthDetails;
|
|
23
|
-
/**
|
|
24
|
-
* Prepare the necessary structure to identify a Cognito user.
|
|
25
|
-
*/
|
|
26
|
-
prepareCognitoUser(username: string): CognitoUser;
|
|
27
|
-
/**
|
|
28
|
-
* Prepare a user attribute (they are all strings) in Cognito's format.
|
|
29
|
-
*/
|
|
30
|
-
private prepareUserAttribute;
|
|
31
|
-
/**
|
|
32
|
-
* Perform a login through username and password.
|
|
33
|
-
*/
|
|
34
|
-
login(username: string, password: string): Promise<LoginOutcomeActions>;
|
|
35
|
-
/**
|
|
36
|
-
* Complete the new password flow in the authentication.
|
|
37
|
-
*/
|
|
38
|
-
confirmNewPassword(newPassword: string): Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* Complete the MFA challenge flow in the authentication.
|
|
41
|
-
*/
|
|
42
|
-
completeMFAChallenge(otpCode: string): Promise<void>;
|
|
43
|
-
/**
|
|
44
|
-
* Register a new user a set its default attributes.
|
|
45
|
-
*/
|
|
46
|
-
register(username: string, password: string, attributes?: any): Promise<CognitoUser>;
|
|
47
|
-
/**
|
|
48
|
-
* In case new account has just been registered, return the username.
|
|
49
|
-
*/
|
|
50
|
-
getNewAccountJustRegistered(): string;
|
|
51
|
-
/**
|
|
52
|
-
* Confirm a new registration through the confirmation code sent by Cognito.
|
|
53
|
-
*/
|
|
54
|
-
confirmRegistration(username: string, code: string): Promise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* Send again a confirmation code for a new registration.
|
|
57
|
-
*/
|
|
58
|
-
resendConfirmationCode(username: string): Promise<void>;
|
|
59
|
-
/**
|
|
60
|
-
* Logout the currently signed-in user.
|
|
61
|
-
*/
|
|
62
|
-
logout(options?: {
|
|
63
|
-
global: boolean;
|
|
64
|
-
}): Promise<void>;
|
|
65
|
-
/**
|
|
66
|
-
* Send a password reset request.
|
|
67
|
-
*/
|
|
68
|
-
forgotPassword(username: string): Promise<void>;
|
|
69
|
-
/**
|
|
70
|
-
* Confirm a new password after a password reset request.
|
|
71
|
-
*/
|
|
72
|
-
confirmPassword(username: string, code: string, newPwd: string): Promise<void>;
|
|
73
|
-
/**
|
|
74
|
-
* Gets the URL for enabling MFA. This URL can be used to generate a QR Code to read with an authenticator app.
|
|
75
|
-
*/
|
|
76
|
-
getURLForEnablingMFA(): Promise<string>;
|
|
77
|
-
/**
|
|
78
|
-
* Check whether the user has MFA enabled.
|
|
79
|
-
*/
|
|
80
|
-
checkIfUserHasMFAEnabled(bypassCache?: boolean): Promise<boolean>;
|
|
81
|
-
/**
|
|
82
|
-
* Configure a MFA device for the user.
|
|
83
|
-
*/
|
|
84
|
-
private setMFADevice;
|
|
85
|
-
/**
|
|
86
|
-
* Enable a new MFA device for the user by inserting an OTP code generated by it.
|
|
87
|
-
*/
|
|
88
|
-
enableMFA(otp: string, mfaDeviceName?: string): Promise<void>;
|
|
89
|
-
/**
|
|
90
|
-
* Disable MFA for a user by inserting an OTP code generated by it.
|
|
91
|
-
*/
|
|
92
|
-
disableMFA(otp: string, mfaDeviceName?: string): Promise<void>;
|
|
93
|
-
/**
|
|
94
|
-
* Check if a user is currently authenticated.
|
|
95
|
-
* @param offlineAllowed if set and if offline, skip authentication and retrieve data locally
|
|
96
|
-
* @param getFreshIdTokenOnExp cb function to execute when the idToken is refreshed
|
|
97
|
-
*/
|
|
98
|
-
isAuthenticated(offlineAllowed: boolean, getFreshIdTokenOnExp?: (freshIdToken: string) => void): Promise<any>;
|
|
99
|
-
/**
|
|
100
|
-
* Helper to refresh the session every N minutes.
|
|
101
|
-
*/
|
|
102
|
-
private refreshSession;
|
|
103
|
-
/**
|
|
104
|
-
* Run some post-auth checks, based on the users groups and on the app's configuration:
|
|
105
|
-
* - users in the Cognito's "admins" grup skip all the following rules.
|
|
106
|
-
* - users in the Cognito's "robots" group can't sign-into front-ends (they serve only back-end purposes).
|
|
107
|
-
* - if `env.idea.auth.singleSimultaneousSession` is on, make sure there is only one active session per user.
|
|
108
|
-
*/
|
|
109
|
-
private runPostAuthChecks;
|
|
110
|
-
/**
|
|
111
|
-
* Check whether the user signed-into multiple devices.
|
|
112
|
-
*/
|
|
113
|
-
private checkForSimultaneousSessions;
|
|
114
|
-
/**
|
|
115
|
-
* Set (or reset) the current user's device (by key) in the current project (stored in Cognito).
|
|
116
|
-
*/
|
|
117
|
-
private setCurrentDeviceForProject;
|
|
118
|
-
/**
|
|
119
|
-
* Update the currently logged in user's attributes.
|
|
120
|
-
*/
|
|
121
|
-
updateUserAttributes(attributes: any): Promise<void>;
|
|
122
|
-
/**
|
|
123
|
-
* Validate the password against the policy set in the environments configuration.
|
|
124
|
-
* In case there are errors, they are returned as an array of strings.
|
|
125
|
-
*/
|
|
126
|
-
validatePasswordAgainstPolicy(password: string): string[];
|
|
127
|
-
/**
|
|
128
|
-
* Get a complete password policy pattern, based on the environments configuration, to use on password input fields.
|
|
129
|
-
* Note: some of the symbols couldn't be included because unsupported by the input[pattern] attribute.
|
|
130
|
-
*/
|
|
131
|
-
getPasswordPolicyPatternForInput(): string;
|
|
132
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IDEAAuthService, never>;
|
|
133
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IDEAAuthService>;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* The possible actions following a successful login.
|
|
137
|
-
*/
|
|
138
|
-
export declare enum LoginOutcomeActions {
|
|
139
|
-
NONE = "none",
|
|
140
|
-
NEW_PASSWORD = "newPassword",
|
|
141
|
-
MFA_CHALLENGE = "mfaChallenge",
|
|
142
|
-
MFA_SETUP = "mfaSetup"
|
|
143
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NavController, PopoverController } from '@ionic/angular';
|
|
3
|
-
import { ActivatedRoute } from '@angular/router';
|
|
4
|
-
import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
|
|
5
|
-
import { IDEAAuthService } from './auth.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class IDEAConfirmPasswordPage implements OnInit {
|
|
8
|
-
private navCtrl;
|
|
9
|
-
private route;
|
|
10
|
-
private popoverCtrl;
|
|
11
|
-
private message;
|
|
12
|
-
private loading;
|
|
13
|
-
private t;
|
|
14
|
-
auth: IDEAAuthService;
|
|
15
|
-
email: string;
|
|
16
|
-
newPassword: string;
|
|
17
|
-
code: string;
|
|
18
|
-
passwordPolicy: {
|
|
19
|
-
minLength: number;
|
|
20
|
-
requireLowercase: boolean;
|
|
21
|
-
requireDigits: boolean;
|
|
22
|
-
requireSymbols: boolean;
|
|
23
|
-
requireUppercase: boolean;
|
|
24
|
-
};
|
|
25
|
-
errorMsg: string;
|
|
26
|
-
constructor(navCtrl: NavController, route: ActivatedRoute, popoverCtrl: PopoverController, message: IDEAMessageService, loading: IDEALoadingService, t: IDEATranslationsService, auth: IDEAAuthService);
|
|
27
|
-
ngOnInit(): void;
|
|
28
|
-
confirmPassword(): Promise<void>;
|
|
29
|
-
openPasswordPolicy(event: Event): Promise<void>;
|
|
30
|
-
goToForgotPassword(): void;
|
|
31
|
-
goToAuth(): void;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IDEAConfirmPasswordPage, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IDEAConfirmPasswordPage, "idea-confirm-password", never, {}, {}, never, never, false, never>;
|
|
34
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { NavController } from '@ionic/angular';
|
|
2
|
-
import { IDEAMessageService, IDEALoadingService } from '@idea-ionic/common';
|
|
3
|
-
import { IDEAAuthService } from './auth.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class IDEAForgotPasswordPage {
|
|
6
|
-
private navCtrl;
|
|
7
|
-
private message;
|
|
8
|
-
private loading;
|
|
9
|
-
private auth;
|
|
10
|
-
email: string;
|
|
11
|
-
constructor(navCtrl: NavController, message: IDEAMessageService, loading: IDEALoadingService, auth: IDEAAuthService);
|
|
12
|
-
forgotPassword(): Promise<void>;
|
|
13
|
-
goToConfirmPassword(): void;
|
|
14
|
-
goToAuth(): void;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IDEAForgotPasswordPage, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IDEAForgotPasswordPage, "idea-forgot-password", never, {}, {}, never, never, false, never>;
|
|
17
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NavController } from '@ionic/angular';
|
|
3
|
-
import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
|
|
4
|
-
import { IDEAAuthService } from './auth.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class IDEAMFAChallengePage implements OnInit {
|
|
7
|
-
private navCtrl;
|
|
8
|
-
private message;
|
|
9
|
-
private loading;
|
|
10
|
-
private auth;
|
|
11
|
-
private t;
|
|
12
|
-
otpCode: string;
|
|
13
|
-
errorMsg: string;
|
|
14
|
-
constructor(navCtrl: NavController, message: IDEAMessageService, loading: IDEALoadingService, auth: IDEAAuthService, t: IDEATranslationsService);
|
|
15
|
-
ngOnInit(): void;
|
|
16
|
-
completeMFAChallenge(): Promise<void>;
|
|
17
|
-
goToAuth(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IDEAMFAChallengePage, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IDEAMFAChallengePage, "idea-mfa-challenge", never, {}, {}, never, never, false, never>;
|
|
20
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NavController, PopoverController } from '@ionic/angular';
|
|
3
|
-
import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
|
|
4
|
-
import { IDEAAuthService } from './auth.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class IDEANewPasswordPage implements OnInit {
|
|
7
|
-
private navCtrl;
|
|
8
|
-
private popoverCtrl;
|
|
9
|
-
private message;
|
|
10
|
-
private loading;
|
|
11
|
-
private t;
|
|
12
|
-
auth: IDEAAuthService;
|
|
13
|
-
newPassword: string;
|
|
14
|
-
passwordPolicy: {
|
|
15
|
-
minLength: number;
|
|
16
|
-
requireLowercase: boolean;
|
|
17
|
-
requireDigits: boolean;
|
|
18
|
-
requireSymbols: boolean;
|
|
19
|
-
requireUppercase: boolean;
|
|
20
|
-
};
|
|
21
|
-
errorMsg: string;
|
|
22
|
-
constructor(navCtrl: NavController, popoverCtrl: PopoverController, message: IDEAMessageService, loading: IDEALoadingService, t: IDEATranslationsService, auth: IDEAAuthService);
|
|
23
|
-
ngOnInit(): void;
|
|
24
|
-
confirmNewPassword(): Promise<void>;
|
|
25
|
-
openPasswordPolicy(event: Event): Promise<void>;
|
|
26
|
-
goToAuth(): void;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IDEANewPasswordPage, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IDEANewPasswordPage, "idea-new-password", never, {}, {}, never, never, false, never>;
|
|
29
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class IDEAPasswordPolicyComponent {
|
|
3
|
-
passwordPolicy: {
|
|
4
|
-
minLength: number;
|
|
5
|
-
requireLowercase: boolean;
|
|
6
|
-
requireDigits: boolean;
|
|
7
|
-
requireSymbols: boolean;
|
|
8
|
-
requireUppercase: boolean;
|
|
9
|
-
};
|
|
10
|
-
constructor();
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IDEAPasswordPolicyComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IDEAPasswordPolicyComponent, "idea-password-policy", never, {}, {}, never, never, false, never>;
|
|
13
|
-
}
|
package/src/resendLink.page.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { NavController } from '@ionic/angular';
|
|
2
|
-
import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
|
|
3
|
-
import { IDEAAuthService } from './auth.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class IDEAResendLinkPage {
|
|
6
|
-
private navCtrl;
|
|
7
|
-
private message;
|
|
8
|
-
private loading;
|
|
9
|
-
private auth;
|
|
10
|
-
private t;
|
|
11
|
-
email: string;
|
|
12
|
-
errorMsg: string;
|
|
13
|
-
constructor(navCtrl: NavController, message: IDEAMessageService, loading: IDEALoadingService, auth: IDEAAuthService, t: IDEATranslationsService);
|
|
14
|
-
resendConfirmationLink(): Promise<void>;
|
|
15
|
-
goToAuth(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IDEAResendLinkPage, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IDEAResendLinkPage, "idea-resend-link", never, {}, {}, never, never, false, never>;
|
|
18
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./setupMFAModal.component";
|
|
3
|
-
import * as i2 from "./setupMFAButton.component";
|
|
4
|
-
import * as i3 from "@angular/common";
|
|
5
|
-
import * as i4 from "@angular/forms";
|
|
6
|
-
import * as i5 from "@ionic/angular";
|
|
7
|
-
import * as i6 from "@idea-ionic/common";
|
|
8
|
-
export declare class IDEASetupMFAModule {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IDEASetupMFAModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IDEASetupMFAModule, [typeof i1.IDEASetupMFAModalComponent, typeof i2.IDEASetupMFAButtonComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.IonicModule, typeof i6.IDEATranslationsModule], [typeof i1.IDEASetupMFAModalComponent, typeof i2.IDEASetupMFAButtonComponent]>;
|
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IDEASetupMFAModule>;
|
|
12
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { ModalController } from '@ionic/angular';
|
|
3
|
-
import { IDEAAuthService } from '../auth.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class IDEASetupMFAButtonComponent implements OnInit {
|
|
6
|
-
private modalCtrl;
|
|
7
|
-
private auth;
|
|
8
|
-
/**
|
|
9
|
-
* The color of the button.
|
|
10
|
-
*/
|
|
11
|
-
color: string;
|
|
12
|
-
/**
|
|
13
|
-
* The fill option for the button.
|
|
14
|
-
*/
|
|
15
|
-
fill: string;
|
|
16
|
-
/**
|
|
17
|
-
* Trigger then the MFA setup changes.
|
|
18
|
-
*/
|
|
19
|
-
change: EventEmitter<boolean>;
|
|
20
|
-
isMFAEnabled: boolean;
|
|
21
|
-
constructor(modalCtrl: ModalController, auth: IDEAAuthService);
|
|
22
|
-
ngOnInit(): Promise<void>;
|
|
23
|
-
openMFAModal(): Promise<void>;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IDEASetupMFAButtonComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IDEASetupMFAButtonComponent, "idea-setup-mfa-button", never, { "color": { "alias": "color"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; }, { "change": "change"; }, never, never, false, never>;
|
|
26
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { ModalController } from '@ionic/angular';
|
|
3
|
-
import { IDEAAuthService } from '../auth.service';
|
|
4
|
-
import { IDEALoadingService, IDEAMessageService } from '@idea-ionic/common';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class IDEASetupMFAModalComponent implements OnInit {
|
|
7
|
-
private modalCtrl;
|
|
8
|
-
private loading;
|
|
9
|
-
private message;
|
|
10
|
-
private auth;
|
|
11
|
-
otpCode: string;
|
|
12
|
-
isMFAEnabled: boolean;
|
|
13
|
-
constructor(modalCtrl: ModalController, loading: IDEALoadingService, message: IDEAMessageService, auth: IDEAAuthService);
|
|
14
|
-
ngOnInit(): Promise<void>;
|
|
15
|
-
private generateQRCodeCanvasByURL;
|
|
16
|
-
setMFA(enable: boolean): Promise<void>;
|
|
17
|
-
close(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IDEASetupMFAModalComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IDEASetupMFAModalComponent, "idea-setup-mfa-modal", never, {}, {}, never, never, false, never>;
|
|
20
|
-
}
|
package/src/setupMFA.page.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NavController } from '@ionic/angular';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class IDEASetupMFAPage {
|
|
4
|
-
private navCtrl;
|
|
5
|
-
constructor(navCtrl: NavController);
|
|
6
|
-
reloadApp(): void;
|
|
7
|
-
goToAuth(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IDEASetupMFAPage, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IDEASetupMFAPage, "idea-mfa-setup", never, {}, {}, never, never, false, never>;
|
|
10
|
-
}
|
package/src/signIn.page.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { NavController } from '@ionic/angular';
|
|
2
|
-
import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
|
|
3
|
-
import { IDEAAuthService } from './auth.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class IDEASignInPage {
|
|
6
|
-
private navCtrl;
|
|
7
|
-
private message;
|
|
8
|
-
private loading;
|
|
9
|
-
private t;
|
|
10
|
-
private auth;
|
|
11
|
-
title: string;
|
|
12
|
-
registrationPossible: boolean;
|
|
13
|
-
hasIntroPage: boolean;
|
|
14
|
-
website: string;
|
|
15
|
-
email: string;
|
|
16
|
-
password: string;
|
|
17
|
-
agreementsCheck: boolean;
|
|
18
|
-
newAccountRegistered: boolean;
|
|
19
|
-
errorMsg: string;
|
|
20
|
-
darkMode: boolean;
|
|
21
|
-
constructor(navCtrl: NavController, message: IDEAMessageService, loading: IDEALoadingService, t: IDEATranslationsService, auth: IDEAAuthService);
|
|
22
|
-
ionViewDidEnter(): void;
|
|
23
|
-
login(): Promise<void>;
|
|
24
|
-
goToIntro(): void;
|
|
25
|
-
goToForgotPassword(): void;
|
|
26
|
-
goToRegistration(): void;
|
|
27
|
-
translationExists(key: string): boolean;
|
|
28
|
-
openLink(url: string): Promise<void>;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IDEASignInPage, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IDEASignInPage, "idea-sign-in", never, {}, {}, never, never, false, never>;
|
|
31
|
-
}
|
package/src/signUp.page.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NavController, PopoverController } from '@ionic/angular';
|
|
3
|
-
import { IDEAMessageService, IDEALoadingService, IDEATranslationsService } from '@idea-ionic/common';
|
|
4
|
-
import { IDEAAuthService } from './auth.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class IDEASignUpPage implements OnInit {
|
|
7
|
-
private navCtrl;
|
|
8
|
-
private popoverCtrl;
|
|
9
|
-
private message;
|
|
10
|
-
private loading;
|
|
11
|
-
private t;
|
|
12
|
-
auth: IDEAAuthService;
|
|
13
|
-
email: string;
|
|
14
|
-
password: string;
|
|
15
|
-
agreementsCheck: boolean;
|
|
16
|
-
passwordPolicy: {
|
|
17
|
-
minLength: number;
|
|
18
|
-
requireLowercase: boolean;
|
|
19
|
-
requireDigits: boolean;
|
|
20
|
-
requireSymbols: boolean;
|
|
21
|
-
requireUppercase: boolean;
|
|
22
|
-
};
|
|
23
|
-
errorMsg: string;
|
|
24
|
-
constructor(navCtrl: NavController, popoverCtrl: PopoverController, message: IDEAMessageService, loading: IDEALoadingService, t: IDEATranslationsService, auth: IDEAAuthService);
|
|
25
|
-
ngOnInit(): void;
|
|
26
|
-
register(): Promise<void>;
|
|
27
|
-
translationExists(key: string): boolean;
|
|
28
|
-
openPasswordPolicy(event: Event): Promise<void>;
|
|
29
|
-
goToResendLink(): void;
|
|
30
|
-
goToAuth(): void;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IDEASignUpPage, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IDEASignUpPage, "idea-sign-up", never, {}, {}, never, never, false, never>;
|
|
33
|
-
}
|