taxtank-core 0.33.39 → 0.33.41

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.39",
3
+ "version": "0.33.41",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.0.0",
@@ -1,4 +1,7 @@
1
1
  export declare enum PropertyMessagesEnum {
2
2
  PHOTO_UPDATED = "Property photo updated",
3
- PROPERTY_UPDATED = "Property updated"
3
+ PROPERTY_UPDATED = "Property updated",
4
+ DELETE_CONFIRM = "Are you sure you want to delete property?",
5
+ DELETE = "Property deleted",
6
+ DELETE_500 = "Only properties without transactions can be removed"
4
7
  }
@@ -40,6 +40,7 @@ export declare class PropertyService extends RestService<PropertyBase, Property,
40
40
  * Deactivate activated property
41
41
  */
42
42
  deactivate(property: Property): Observable<void>;
43
+ delete(property: Property): Observable<void>;
43
44
  static ɵfac: i0.ɵɵFactoryDeclaration<PropertyService, never>;
44
45
  static ɵprov: i0.ɵɵInjectableDeclaration<PropertyService>;
45
46
  }
@@ -22,14 +22,8 @@ export declare class TransactionService extends RestService<TransactionBase, Tra
22
22
  * Listen events from Event Dispatcher services
23
23
  */
24
24
  listenEvents(): void;
25
- /**
26
- * current year transactions + previous year sole invoice transactions (needed whe invoice part paid in previous year)
27
- */
28
- getAll(): Observable<Transaction[]>;
29
- /**
30
- * current year transactions
31
- */
32
- get(): Observable<Transaction[]>;
25
+ protected fetch(path?: string, cache?: boolean): Observable<Transaction[]>;
26
+ getCurrentYear(): Observable<Transaction[]>;
33
27
  /**
34
28
  * Add single new transaction
35
29
  * @param model New Transaction instance for saving