taxtank-core 0.29.15 → 0.29.17

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.
@@ -1,6 +1,6 @@
1
1
  import { ClientDetails } from './client-details';
2
- import { AbstractModel } from '../abstract-model';
3
- export declare class ClientIncomeTypes extends AbstractModel {
2
+ import { ObservableModel } from '../observable-model';
3
+ export declare class ClientIncomeTypes extends ObservableModel {
4
4
  salary?: boolean;
5
5
  property?: boolean;
6
6
  sole?: boolean;
@@ -115,7 +115,7 @@ export declare abstract class RestService<BaseModel extends AbstractModel, Model
115
115
  /**
116
116
  * Subscribe to http events and run callback.
117
117
  * CSE - Cleint Sent Events
118
- * @param type The class whose changes should be listened for
118
+ * @param modelClass
119
119
  * @param methods The list of http methods should be listened for
120
120
  * @param callback The function to be called when event triggered
121
121
  */
@@ -4,6 +4,8 @@ import { User } from '../../../models';
4
4
  import { EventDispatcherService, SseService } from '../../event';
5
5
  import { JwtService } from '../../auth';
6
6
  import { IEventListener } from '../../../interfaces';
7
+ import { ObservableModel } from '../../../db/Models';
8
+ import { HttpMethod } from '../rest';
7
9
  import * as i0 from "@angular/core";
8
10
  /**
9
11
  * Service to work with user
@@ -81,6 +83,15 @@ export declare class UserService implements IEventListener {
81
83
  * capital losses updates on property sale
82
84
  */
83
85
  private listenPropertySale;
86
+ /**
87
+ * @TODO remove when the class refactored on RestService
88
+ * Subscribe to http events and run callback.
89
+ * CSE - Cleint Sent Events
90
+ * @param modelClass
91
+ * @param methods The list of http methods should be listened for
92
+ * @param callback The function to be called when event triggered
93
+ */
94
+ protected listenCSE(modelClass: typeof ObservableModel, methods: HttpMethod[], callback: Function): void;
84
95
  static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
85
96
  static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
86
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.29.15",
3
+ "version": "0.29.17",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",