taxtank-core 0.33.30 → 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.30",
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
  */