taxtank-core 1.0.71 → 1.0.73

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,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "1.0.71",
3
+ "version": "1.0.73",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^19.0.2",
@@ -57,5 +57,6 @@ export declare class User extends ObservableModel {
57
57
  employeeDetails?: EmployeeDetails;
58
58
  soleDetails?: SoleDetails;
59
59
  file: File;
60
+ isGoogleAuthenticatorEnabled?: boolean;
60
61
  blacklistSetupItems: SetupItem[];
61
62
  }
@@ -3,3 +3,4 @@ export * from './reset-password.form';
3
3
  export * from './user-invite.form';
4
4
  export * from './user.form';
5
5
  export * from './client-details.form';
6
+ export * from './mfa-details.form';
@@ -0,0 +1,10 @@
1
+ import { FormControl } from '@angular/forms';
2
+ import { MfaDetails } from '../../models';
3
+ import { AbstractForm, ControlsInterface } from '../abstract.form';
4
+ interface MfaDetailsControlsInterface extends ControlsInterface {
5
+ email: FormControl<string>;
6
+ }
7
+ export declare class MfaDetailsForm extends AbstractForm<MfaDetails, MfaDetailsControlsInterface> {
8
+ constructor(mfaDetails: MfaDetails);
9
+ }
10
+ export {};
@@ -7,3 +7,4 @@ export * from './user-roles.const';
7
7
  export * from './user-to-register';
8
8
  export * from './user-work-position.const';
9
9
  export * from './user';
10
+ export * from './mfa-details';
@@ -0,0 +1,2 @@
1
+ export * from './mfa-details';
2
+ export * from './mfa-details.interface';
@@ -0,0 +1,9 @@
1
+ import { MfaDetailsInterface } from './mfa-details.interface';
2
+ import { AbstractModel } from '../../../db/Models';
3
+ export declare class MfaDetails extends AbstractModel implements MfaDetailsInterface {
4
+ googleAuthenticatorSecret: string;
5
+ googleAuthenticatorEnabled: boolean;
6
+ email: string;
7
+ emailAuthEnabled: string;
8
+ otpAuthUri: string;
9
+ }
@@ -0,0 +1,6 @@
1
+ export interface MfaDetailsInterface {
2
+ googleAuthenticatorSecret: string;
3
+ googleAuthenticatorEnabled: boolean;
4
+ email: string;
5
+ emailAuthEnabled: string;
6
+ }
@@ -57,7 +57,7 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
57
57
  [key: number]: string;
58
58
  };
59
59
  constructor(environment: any);
60
- protected get apiUrl(): string;
60
+ get apiUrl(): string;
61
61
  setCache(data: any[], next?: boolean): void;
62
62
  /**
63
63
  * Refresh cache with actual backend data
@@ -71,7 +71,7 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
71
71
  * Get data from backend and fill the cache
72
72
  */
73
73
  fetch(path?: string, cache?: boolean, queryParams?: {}): Observable<CollectionModel>;
74
- fetchFirst(queryParams?: {}): Observable<Model>;
74
+ fetchFirst(path?: string, cache?: boolean, queryParams?: {}): Observable<Model>;
75
75
  get(path?: string): Observable<CollectionModel>;
76
76
  getBy(path: string, values: any): Observable<CollectionModel>;
77
77
  getFirst(): Observable<Model>;
@@ -5,3 +5,4 @@ export * from './user-messages.enum';
5
5
  export * from './users-invite/users-invite.service';
6
6
  export * from './user.service';
7
7
  export * from './financial-year/financial-year.service';
8
+ export * from './mfa-details';
@@ -0,0 +1,2 @@
1
+ export * from './mfa-details.service';
2
+ export * from './mfa-details-messages.enum';
@@ -0,0 +1,5 @@
1
+ export declare enum MfaDetailsMessagesEnum {
2
+ CREATED = "2fa added successfully",
3
+ DELETED = "2fa deleted",
4
+ CONFIRM_DELETE = "Are you sure?"
5
+ }
@@ -0,0 +1,18 @@
1
+ import { MfaDetails, MfaDetailsInterface } from '../../../../models';
2
+ import { RestMethod, RestService } from '../../rest';
3
+ import { Collection } from '../../../../collections';
4
+ import { Observable } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class MfaDetailsService extends RestService<MfaDetailsInterface, MfaDetails, Collection<MfaDetails>> {
7
+ modelClass: typeof MfaDetails;
8
+ collectionClass: typeof Collection;
9
+ endpointUri: string;
10
+ disabledMethods: RestMethod[];
11
+ useBackendError: boolean;
12
+ setup(mfaDetails: MfaDetails): Observable<MfaDetails>;
13
+ confirmGoogle(mfaDetails: MfaDetails, otp: string): Observable<MfaDetails>;
14
+ sendEmail(mfaDetails: MfaDetails): Observable<MfaDetails>;
15
+ confirmEmail(mfaDetails: MfaDetails, otp: string): Observable<MfaDetails>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<MfaDetailsService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<MfaDetailsService>;
18
+ }
@@ -2,5 +2,8 @@ export declare enum UserMessagesEnum {
2
2
  PHOTO_UPDATED = "Profile photo updated",
3
3
  USER_DATA_UPDATED = "Data was successfully updated!",
4
4
  CLIENT_DETAILS_UPDATED = "Client details updated",
5
- DELETE = "Closing your account will mean you won't be able to access this account again. It will also revoke consent for all banks and delete all transaction data. This can not be undone."
5
+ DELETE = "Closing your account will mean you won't be able to access this account again. It will also revoke consent for all banks and delete all transaction data. This can not be undone.",
6
+ PASSWORD_UPDATED = "Password changed successfully!",
7
+ PASSWORD_MISMATCH = "Your current password is wrong",
8
+ PASSWORD_ERROR = "Can not change password. Try again later"
6
9
  }