@firestitch/2fa 12.3.1 → 12.3.4
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/app/enums/verification-method-type.enum.d.ts +1 -1
- package/app/interfaces/verification-method.interface.d.ts +2 -2
- package/app/modules/manage/components/2fa-manage/2fa-manage.component.d.ts +3 -1
- package/app/modules/manage/components/emails/emails.component.d.ts +2 -2
- package/app/modules/manage/components/manage-methods/manage-methods.component.d.ts +3 -0
- package/app/modules/manage/components/numbers/numbers.component.d.ts +2 -2
- package/app/modules/verification/components/2fa-verification/2fa-verification.component.d.ts +2 -2
- package/app/modules/verification/components/2fa-verification-code/2fa-verification-code.component.d.ts +2 -2
- package/app/modules/verification/components/2fa-verification-methods/2fa-verification-methods.component.d.ts +3 -4
- package/bundles/firestitch-2fa.umd.js +95 -81
- package/bundles/firestitch-2fa.umd.js.map +1 -1
- package/esm2015/app/enums/verification-method-type.enum.js +7 -7
- package/esm2015/app/interfaces/verification-method.interface.js +1 -1
- package/esm2015/app/modules/manage/components/2fa-manage/2fa-manage.component.js +11 -2
- package/esm2015/app/modules/manage/components/emails/emails.component.js +5 -5
- package/esm2015/app/modules/manage/components/manage-methods/manage-methods.component.js +14 -7
- package/esm2015/app/modules/manage/components/numbers/numbers.component.js +5 -5
- package/esm2015/app/modules/manage/components/verification-methods/verification-methods.component.js +1 -1
- package/esm2015/app/modules/manage/services/two-factor-manage.service.js +7 -7
- package/esm2015/app/modules/verification/components/2fa-verification/2fa-verification.component.js +21 -18
- package/esm2015/app/modules/verification/components/2fa-verification-code/2fa-verification-code.component.js +4 -4
- package/esm2015/app/modules/verification/components/2fa-verification-methods/2fa-verification-methods.component.js +16 -21
- package/esm2015/public_api.js +2 -2
- package/fesm2015/firestitch-2fa.js +80 -66
- package/fesm2015/firestitch-2fa.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VerificationMethodType } from '../enums/verification-method-type.enum';
|
|
2
2
|
export interface IFsVerificationMethod {
|
|
3
3
|
id: number;
|
|
4
4
|
state?: string;
|
|
5
|
-
type:
|
|
5
|
+
type: VerificationMethodType;
|
|
6
6
|
phoneCode?: number;
|
|
7
7
|
phoneCountry?: string;
|
|
8
8
|
email?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
|
|
3
4
|
import { Observable } from 'rxjs';
|
|
4
5
|
import { TwoFactorManageService } from '../../services';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
@@ -9,6 +10,7 @@ export declare class Fs2faManageComponent implements OnDestroy, OnInit {
|
|
|
9
10
|
private _twoFactorManageService;
|
|
10
11
|
accountVerify: () => Observable<any>;
|
|
11
12
|
defaultCountry: string;
|
|
13
|
+
verificationMethodTypes: VerificationMethodType[];
|
|
12
14
|
verificationMethodsFetch: () => Observable<any[]>;
|
|
13
15
|
verificationMethodDelete: (verificationMethod: any) => Observable<any>;
|
|
14
16
|
verificationMethodCreate: (verificationMethod: any) => Observable<any>;
|
|
@@ -22,5 +24,5 @@ export declare class Fs2faManageComponent implements OnDestroy, OnInit {
|
|
|
22
24
|
reload(): void;
|
|
23
25
|
ngOnDestroy(): void;
|
|
24
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<Fs2faManageComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<Fs2faManageComponent, "fs-2fa-manage", never, { "accountVerify": "accountVerify"; "defaultCountry": "defaultCountry"; "verificationMethodsFetch": "verificationMethodsFetch"; "verificationMethodDelete": "verificationMethodDelete"; "verificationMethodCreate": "verificationMethodCreate"; "verificationMethodVerify": "verificationMethodVerify"; "verificationMethodResend": "verificationMethodResend"; }, {}, never, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Fs2faManageComponent, "fs-2fa-manage", never, { "accountVerify": "accountVerify"; "defaultCountry": "defaultCountry"; "verificationMethodTypes": "verificationMethodTypes"; "verificationMethodsFetch": "verificationMethodsFetch"; "verificationMethodDelete": "verificationMethodDelete"; "verificationMethodCreate": "verificationMethodCreate"; "verificationMethodVerify": "verificationMethodVerify"; "verificationMethodResend": "verificationMethodResend"; }, {}, never, never>;
|
|
26
28
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
2
|
import { FsMessage } from '@firestitch/message';
|
|
3
|
-
import {
|
|
3
|
+
import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
|
|
4
4
|
import { TwoFactorManageService } from '../../services';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class EmailsComponent {
|
|
@@ -8,7 +8,7 @@ export declare class EmailsComponent {
|
|
|
8
8
|
private _dialogRef;
|
|
9
9
|
private _message;
|
|
10
10
|
twoFactorManageService: TwoFactorManageService;
|
|
11
|
-
|
|
11
|
+
VerificationMethodType: typeof VerificationMethodType;
|
|
12
12
|
constructor(_data: any, _dialogRef: MatDialogRef<EmailsComponent>, _message: FsMessage);
|
|
13
13
|
add(): void;
|
|
14
14
|
deleted(): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
3
|
import { TwoFactorManageService } from '../../services';
|
|
4
|
+
import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
|
|
4
5
|
import { FsMessage } from '@firestitch/message';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class ManageMethodsComponent implements OnInit, OnDestroy {
|
|
@@ -10,6 +11,8 @@ export declare class ManageMethodsComponent implements OnInit, OnDestroy {
|
|
|
10
11
|
private _message;
|
|
11
12
|
twoFactorManageService: TwoFactorManageService;
|
|
12
13
|
verificationMethods: any;
|
|
14
|
+
verificationMethodTypes: {};
|
|
15
|
+
VerificationMethodType: typeof VerificationMethodType;
|
|
13
16
|
private _destroy$;
|
|
14
17
|
private _defaultCountry;
|
|
15
18
|
constructor(_data: any, _cdRef: ChangeDetectorRef, _dialog: MatDialog, _message: FsMessage);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
2
|
import { FsMessage } from '@firestitch/message';
|
|
3
|
-
import {
|
|
3
|
+
import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
|
|
4
4
|
import { TwoFactorManageService } from '../../services';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class NumbersComponent {
|
|
@@ -9,7 +9,7 @@ export declare class NumbersComponent {
|
|
|
9
9
|
private _message;
|
|
10
10
|
defaultCountry: any;
|
|
11
11
|
twoFactorManageService: TwoFactorManageService;
|
|
12
|
-
|
|
12
|
+
VerificationMethodType: typeof VerificationMethodType;
|
|
13
13
|
constructor(_data: any, _dialogRef: MatDialogRef<NumbersComponent>, _message: FsMessage);
|
|
14
14
|
add(): void;
|
|
15
15
|
deleted(): void;
|
package/app/modules/verification/components/2fa-verification/2fa-verification.component.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } fro
|
|
|
2
2
|
import { FsDialog } from '@firestitch/dialog';
|
|
3
3
|
import { IFsVerificationMethod } from '../../../../interfaces/verification-method.interface';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
-
import {
|
|
5
|
+
import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
|
|
6
6
|
import { Fs2faVerificationCodeComponent } from '../2fa-verification-code/2fa-verification-code.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class Fs2faVerificationComponent implements OnDestroy, AfterViewInit, OnInit {
|
|
@@ -19,7 +19,7 @@ export declare class Fs2faVerificationComponent implements OnDestroy, AfterViewI
|
|
|
19
19
|
resendInProgress: boolean;
|
|
20
20
|
code: string;
|
|
21
21
|
trustedDevice: boolean;
|
|
22
|
-
|
|
22
|
+
VerificationMethodType: typeof VerificationMethodType;
|
|
23
23
|
private _destroy$;
|
|
24
24
|
constructor(_cdRef: ChangeDetectorRef, _dialog: FsDialog);
|
|
25
25
|
ngOnInit(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { CodeInputComponent } from '../../../../modules/code-input/components/code-input';
|
|
3
|
-
import {
|
|
3
|
+
import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
|
|
4
4
|
import { IFsVerificationMethod } from '../../../../interfaces/verification-method.interface';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class Fs2faVerificationCodeComponent {
|
|
@@ -9,7 +9,7 @@ export declare class Fs2faVerificationCodeComponent {
|
|
|
9
9
|
code: any;
|
|
10
10
|
codeChanged: EventEmitter<string>;
|
|
11
11
|
codeCompleted: EventEmitter<void>;
|
|
12
|
-
|
|
12
|
+
VerificationMethodType: typeof VerificationMethodType;
|
|
13
13
|
codeChange(code: any): void;
|
|
14
14
|
focus(): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<Fs2faVerificationCodeComponent, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
|
|
4
4
|
import { IFsVerificationMethod } from '../../../../interfaces/verification-method.interface';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class Fs2faVerificationMethodsComponent {
|
|
@@ -9,9 +9,8 @@ export declare class Fs2faVerificationMethodsComponent {
|
|
|
9
9
|
method: IFsVerificationMethod;
|
|
10
10
|
phone: string;
|
|
11
11
|
code: string;
|
|
12
|
-
|
|
13
|
-
readonly verificationMethodType: typeof
|
|
14
|
-
private _getVerificationMethods;
|
|
12
|
+
verificationMethods: Record<string, IFsVerificationMethod[]>;
|
|
13
|
+
readonly verificationMethodType: typeof VerificationMethodType;
|
|
15
14
|
private _selectVerificationMethod;
|
|
16
15
|
constructor(_dialogData: any, _dialogRef: MatDialogRef<Fs2faVerificationMethodsComponent>);
|
|
17
16
|
compareWith(o1: any, o2: any): boolean;
|