taxtank-core 0.33.29 → 0.33.31

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.33.29",
3
+ "version": "0.33.31",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.0.0",
@@ -1,2 +1,3 @@
1
1
  export * from './borrowing-expense';
2
2
  export * from './loan.service';
3
+ export * from './loan-messages.enum';
@@ -0,0 +1,6 @@
1
+ export declare enum LoanMessagesEnum {
2
+ POST = "Loan added successfully",
3
+ PUT = "Loan updated successfully",
4
+ DELETE = "Loan deleted successfully",
5
+ DELETE_CONFIRM = "Are you sure you want to delete this loan?"
6
+ }
@@ -42,6 +42,7 @@ export declare class LoanService extends RestService<LoanBase, Loan, LoanCollect
42
42
  * @TODO Alex: move to separated service
43
43
  */
44
44
  updatePayoutLoan(loan: Loan, paidOutLoan: LoanPayout): Observable<any>;
45
+ delete(loan: Loan): Observable<void>;
45
46
  static ɵfac: i0.ɵɵFactoryDeclaration<LoanService, never>;
46
47
  static ɵprov: i0.ɵɵInjectableDeclaration<LoanService>;
47
48
  }
@@ -83,7 +83,7 @@ export declare abstract class RestService<BaseModel, Model extends AbstractModel
83
83
  /**
84
84
  * Remove a Model instance from database
85
85
  */
86
- delete(model: Model): Observable<void>;
86
+ delete(model: Model, path?: string): Observable<void>;
87
87
  /**
88
88
  * Remove multiple Model instances from database
89
89
  */
@@ -1,5 +1,6 @@
1
1
  export declare enum UserMessagesEnum {
2
2
  PHOTO_UPDATED = "Profile photo updated",
3
3
  USER_DATA_UPDATED = "Data was successfully updated!",
4
- CLIENT_DETAILS_UPDATED = "Client details updated"
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
6
  }
@@ -31,6 +31,7 @@ export declare class UserService extends RestService<UserBase, User, Collection<
31
31
  */
32
32
  search(email: string): Observable<User>;
33
33
  finishOnboarding(user: User): Observable<User>;
34
+ deactivate(user: User): Observable<User>;
34
35
  updatePhoto(photo: FormData): Observable<void>;
35
36
  createBasiq(): Observable<string>;
36
37
  skipSetupItem(item: AccountSetupItem): Observable<User>;