taxtank-core 0.8.3 → 0.8.7

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.
Files changed (166) hide show
  1. package/bundles/taxtank-core.umd.js +145 -140
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/collection.js +2 -2
  4. package/esm2015/lib/collections/depreciation.collection.js +3 -3
  5. package/esm2015/lib/collections/tax-summary/report-item.collection.js +141 -0
  6. package/esm2015/lib/db/Models/transaction-base.js +2 -1
  7. package/esm2015/lib/models/property/property.js +7 -4
  8. package/esm2015/lib/models/tax-summary/report-item-details.js +9 -0
  9. package/esm2015/lib/models/tax-summary/report-item.js +15 -0
  10. package/esm2015/lib/models/tax-summary/tax-summary-section.js +5 -5
  11. package/esm2015/lib/services/http/address/address.service.js +39 -0
  12. package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +118 -0
  13. package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +52 -0
  14. package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +89 -0
  15. package/esm2015/lib/services/http/bank/bank.service.js +24 -0
  16. package/esm2015/lib/services/http/bank/basiq/basiq.service.js +94 -0
  17. package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +38 -0
  18. package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +89 -0
  19. package/esm2015/lib/services/http/chat/chat.service.js +77 -0
  20. package/esm2015/lib/services/http/chat/message/message.service.js +65 -0
  21. package/esm2015/lib/services/http/chat/message-document/message-document.service.js +118 -0
  22. package/esm2015/lib/services/{depreciation/capital-project.service.js → http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js} +7 -7
  23. package/esm2015/lib/services/http/depreciation/depreciation.service.js +146 -0
  24. package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +84 -0
  25. package/esm2015/lib/services/{client → http/firm/client-invite}/client-invite.service.js +7 -7
  26. package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +98 -0
  27. package/esm2015/lib/services/http/firm/employee/employee.service.js +39 -0
  28. package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +53 -0
  29. package/esm2015/lib/services/http/firm/firm.service.js +79 -0
  30. package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +37 -0
  31. package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +90 -0
  32. package/esm2015/lib/services/http/income-source/income-source.service.js +109 -0
  33. package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +90 -0
  34. package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +87 -0
  35. package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +73 -0
  36. package/esm2015/lib/services/http/loan/loan.service.js +145 -0
  37. package/esm2015/lib/services/http/property/property-category/property-category.service.js +23 -0
  38. package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +47 -0
  39. package/esm2015/lib/services/http/property/property-document/property-document.service.js +70 -0
  40. package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +20 -0
  41. package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +21 -0
  42. package/esm2015/lib/services/http/property/property-share/property-share.service.js +115 -0
  43. package/esm2015/lib/services/http/property/property.service.js +126 -0
  44. package/esm2015/lib/services/http/rest/rest.service.js +190 -0
  45. package/esm2015/lib/services/http/service-notification/service-notification.service.js +65 -0
  46. package/esm2015/lib/services/http/subscription/subscription.service.js +157 -0
  47. package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +41 -0
  48. package/esm2015/lib/services/http/tax-review/tax-review.service.js +103 -0
  49. package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +71 -0
  50. package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +85 -0
  51. package/esm2015/lib/services/http/transaction/transaction.service.js +319 -0
  52. package/esm2015/lib/services/http/user/occupation/occupation.service.js +45 -0
  53. package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +59 -0
  54. package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +29 -0
  55. package/esm2015/lib/services/http/user/user.service.js +124 -0
  56. package/esm2015/lib/services/http/vehicle/vehicle.service.js +237 -0
  57. package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +45 -0
  58. package/esm2015/public-api.js +51 -51
  59. package/fesm2015/taxtank-core.js +67 -62
  60. package/fesm2015/taxtank-core.js.map +1 -1
  61. package/lib/collections/collection.d.ts +1 -1
  62. package/lib/collections/{tax-return-category-item.collection.d.ts → tax-summary/report-item.collection.d.ts} +5 -5
  63. package/lib/models/property/property.d.ts +1 -0
  64. package/lib/models/tax-summary/{tax-return-category-item-details.d.ts → report-item-details.d.ts} +2 -2
  65. package/lib/models/tax-summary/{tax-return-category-item.d.ts → report-item.d.ts} +4 -4
  66. package/lib/models/tax-summary/tax-summary-section.d.ts +2 -2
  67. package/lib/services/{address → http/address}/address.service.d.ts +1 -1
  68. package/lib/services/{bank → http/bank/bank-account}/bank-account.service.d.ts +5 -5
  69. package/lib/services/{bank → http/bank/bank-connection}/bank-connection.service.d.ts +5 -5
  70. package/lib/services/{bank → http/bank/bank-transaction}/bank-transaction.service.d.ts +5 -5
  71. package/lib/services/{bank → http/bank}/bank.service.d.ts +4 -4
  72. package/lib/services/{bank → http/bank/basiq}/basiq.service.d.ts +7 -7
  73. package/lib/services/{chart-accounts → http/chart-accounts/chart-accounts-depreciations}/chart-accounts-depreciations.service.d.ts +4 -4
  74. package/lib/services/{chart-accounts → http/chart-accounts}/chart-accounts.service.d.ts +3 -3
  75. package/lib/services/{chat → http/chat}/chat.service.d.ts +7 -7
  76. package/lib/services/{chat → http/chat/message}/message.service.d.ts +7 -7
  77. package/lib/services/{chat → http/chat/message-document}/message-document.service.d.ts +3 -3
  78. package/lib/services/{depreciation/capital-project.service.d.ts → http/depreciation/depreciation-capital-project/depreciation-capital-project.service.d.ts} +4 -4
  79. package/lib/services/{depreciation → http/depreciation}/depreciation.service.d.ts +5 -5
  80. package/lib/services/{document → http/document/document-folder}/document-folder.service.d.ts +6 -6
  81. package/lib/services/{client → http/firm/client-invite}/client-invite.service.d.ts +4 -4
  82. package/lib/services/{client → http/firm/client-movement}/client-movement.service.d.ts +7 -7
  83. package/lib/services/{employee → http/firm/employee}/employee.service.d.ts +4 -4
  84. package/lib/services/{employee → http/firm/employee-invite}/employee-invite.service.d.ts +4 -4
  85. package/lib/services/{firm → http/firm}/firm.service.d.ts +2 -2
  86. package/lib/services/{client → http/firm/portfolio-report}/client-portfolio-report.service.d.ts +1 -1
  87. package/lib/services/{income-source → http/income-source/income-source-forecast}/income-source-forecast.service.d.ts +5 -5
  88. package/lib/services/{income-source → http/income-source}/income-source.service.d.ts +8 -8
  89. package/lib/services/{income-source → http/income-source/salary-forecast}/salary-forecast.service.d.ts +6 -6
  90. package/lib/services/{income-source → http/income-source/sole-forecast}/sole-forecast.service.d.ts +5 -5
  91. package/lib/services/{borrowing-expense → http/loan/borrowing-expense}/borrowing-expense.service.d.ts +2 -2
  92. package/lib/services/{loan → http/loan}/loan.service.d.ts +6 -6
  93. package/lib/services/{property → http/property}/property-category/property-category.service.d.ts +4 -4
  94. package/lib/services/{property → http/property/property-category-movement}/property-category-movement.service.d.ts +4 -4
  95. package/lib/services/{property → http/property}/property-document/property-document.service.d.ts +5 -5
  96. package/lib/services/http/property/property-sale/property-sale.service.d.ts +10 -0
  97. package/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.d.ts +11 -0
  98. package/lib/services/{property → http/property}/property-share/property-share.service.d.ts +5 -5
  99. package/lib/services/{property → http/property}/property.service.d.ts +5 -5
  100. package/lib/services/{base-rest.service.d.ts → http/rest/rest.service.d.ts} +4 -4
  101. package/lib/services/http/service-notification/service-notification.service.d.ts +31 -0
  102. package/lib/services/{subscription → http/subscription}/subscription.service.d.ts +6 -6
  103. package/lib/services/{tax-review → http/tax-review/tax-review-history}/tax-review-history.service.d.ts +5 -5
  104. package/lib/services/{tax-review → http/tax-review}/tax-review.service.d.ts +6 -6
  105. package/lib/services/{tax-summary → http/tax-summary}/tax-summary.service.d.ts +2 -2
  106. package/lib/services/{transaction → http/transaction/transaction-allocation}/transaction-allocation.service.d.ts +6 -6
  107. package/lib/services/{transaction → http/transaction}/transaction.service.d.ts +7 -7
  108. package/lib/services/{user → http/user/occupation}/occupation.service.d.ts +1 -1
  109. package/lib/services/{user-event → http/user/user-event-setting}/user-event-setting.service.d.ts +5 -5
  110. package/lib/services/{user-event → http/user/user-event-type}/user-event-type.service.d.ts +5 -5
  111. package/lib/services/{user → http/user}/user.service.d.ts +3 -3
  112. package/lib/services/{work/work-tank.service.d.ts → http/vehicle/vehicle.service.d.ts} +9 -8
  113. package/lib/services/property/{equity-position-chart.service.d.ts → equity-position-chart/equity-position-chart.service.d.ts} +1 -1
  114. package/package.json +1 -1
  115. package/public-api.d.ts +50 -50
  116. package/esm2015/lib/collections/tax-return-category-item.collection.js +0 -141
  117. package/esm2015/lib/models/tax-summary/tax-return-category-item-details.js +0 -9
  118. package/esm2015/lib/models/tax-summary/tax-return-category-item.js +0 -15
  119. package/esm2015/lib/services/address/address.service.js +0 -39
  120. package/esm2015/lib/services/bank/bank-account.service.js +0 -118
  121. package/esm2015/lib/services/bank/bank-connection.service.js +0 -52
  122. package/esm2015/lib/services/bank/bank-transaction.service.js +0 -89
  123. package/esm2015/lib/services/bank/bank.service.js +0 -24
  124. package/esm2015/lib/services/bank/basiq.service.js +0 -94
  125. package/esm2015/lib/services/base-rest.service.js +0 -190
  126. package/esm2015/lib/services/borrowing-expense/borrowing-expense.service.js +0 -73
  127. package/esm2015/lib/services/chart-accounts/chart-accounts-depreciations.service.js +0 -38
  128. package/esm2015/lib/services/chart-accounts/chart-accounts.service.js +0 -89
  129. package/esm2015/lib/services/chat/chat.service.js +0 -77
  130. package/esm2015/lib/services/chat/message-document.service.js +0 -118
  131. package/esm2015/lib/services/chat/message.service.js +0 -65
  132. package/esm2015/lib/services/client/client-movement.service.js +0 -98
  133. package/esm2015/lib/services/client/client-portfolio-report.service.js +0 -37
  134. package/esm2015/lib/services/depreciation/depreciation.service.js +0 -146
  135. package/esm2015/lib/services/document/document-folder.service.js +0 -84
  136. package/esm2015/lib/services/employee/employee-invite.service.js +0 -53
  137. package/esm2015/lib/services/employee/employee.service.js +0 -39
  138. package/esm2015/lib/services/firm/firm.service.js +0 -79
  139. package/esm2015/lib/services/income-source/income-source-forecast.service.js +0 -90
  140. package/esm2015/lib/services/income-source/income-source.service.js +0 -109
  141. package/esm2015/lib/services/income-source/salary-forecast.service.js +0 -90
  142. package/esm2015/lib/services/income-source/sole-forecast.service.js +0 -87
  143. package/esm2015/lib/services/loan/loan.service.js +0 -145
  144. package/esm2015/lib/services/notification/notification.service.js +0 -65
  145. package/esm2015/lib/services/property/equity-position-chart.service.js +0 -45
  146. package/esm2015/lib/services/property/property-category/property-category.service.js +0 -23
  147. package/esm2015/lib/services/property/property-category-movement.service.js +0 -47
  148. package/esm2015/lib/services/property/property-document/property-document.service.js +0 -70
  149. package/esm2015/lib/services/property/property-sale/property-sale.service.js +0 -20
  150. package/esm2015/lib/services/property/property-sale/tax-exemption/tax-exemption.service.js +0 -21
  151. package/esm2015/lib/services/property/property-share/property-share.service.js +0 -115
  152. package/esm2015/lib/services/property/property.service.js +0 -126
  153. package/esm2015/lib/services/subscription/subscription.service.js +0 -157
  154. package/esm2015/lib/services/tax-review/tax-review-history.service.js +0 -41
  155. package/esm2015/lib/services/tax-review/tax-review.service.js +0 -103
  156. package/esm2015/lib/services/tax-summary/tax-summary.service.js +0 -71
  157. package/esm2015/lib/services/transaction/transaction-allocation.service.js +0 -85
  158. package/esm2015/lib/services/transaction/transaction.service.js +0 -319
  159. package/esm2015/lib/services/user/occupation.service.js +0 -45
  160. package/esm2015/lib/services/user/user.service.js +0 -124
  161. package/esm2015/lib/services/user-event/user-event-setting.service.js +0 -59
  162. package/esm2015/lib/services/user-event/user-event-type.service.js +0 -29
  163. package/esm2015/lib/services/work/work-tank.service.js +0 -236
  164. package/lib/services/notification/notification.service.d.ts +0 -31
  165. package/lib/services/property/property-sale/property-sale.service.d.ts +0 -10
  166. package/lib/services/property/property-sale/tax-exemption/tax-exemption.service.d.ts +0 -11
@@ -1,9 +1,9 @@
1
- import { PropertyCategoryMovement } from '../../models/property/property-category-movement';
2
- import { PropertyCategoryMovement as PropertyCategoryMovementBase } from '../../db/Models/property/property-category-movement';
3
- import { BaseRestService } from '../base-rest.service';
1
+ import { PropertyCategoryMovement } from '../../../../models/property/property-category-movement';
2
+ import { PropertyCategoryMovement as PropertyCategoryMovementBase } from '../../../../db/Models/property/property-category-movement';
3
+ import { RestService } from '../../rest/rest.service';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
6
- export declare class PropertyCategoryMovementService extends BaseRestService<PropertyCategoryMovementBase, PropertyCategoryMovement> {
6
+ export declare class PropertyCategoryMovementService extends RestService<PropertyCategoryMovementBase, PropertyCategoryMovement> {
7
7
  modelClass: typeof PropertyCategoryMovement;
8
8
  url: string;
9
9
  add(model: PropertyCategoryMovement): Observable<PropertyCategoryMovement>;
@@ -1,14 +1,14 @@
1
1
  import { Observable } from 'rxjs';
2
- import { PropertyDocument as PropertyDocumentBase } from '../../../db/Models/property/property-document';
2
+ import { PropertyDocument as PropertyDocumentBase } from '../../../../db/Models/property/property-document';
3
3
  import { HttpClient } from '@angular/common/http';
4
- import { EventDispatcherService } from '../../event/event-dispatcher.service';
5
- import { PropertyDocument } from '../../../models/property/property-document';
6
- import { BaseRestService } from '../../base-rest.service';
4
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
5
+ import { PropertyDocument } from '../../../../models/property/property-document';
6
+ import { RestService } from '../../rest/rest.service';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * Class for work with Property Documents
10
10
  */
11
- export declare class PropertyDocumentService extends BaseRestService<PropertyDocumentBase, PropertyDocument> {
11
+ export declare class PropertyDocumentService extends RestService<PropertyDocumentBase, PropertyDocument> {
12
12
  protected http: HttpClient;
13
13
  protected eventDispatcherService: EventDispatcherService;
14
14
  protected environment: any;
@@ -0,0 +1,10 @@
1
+ import { PropertySale as PropertySaleBase } from '../../../../db/Models/property/property-sale/property-sale';
2
+ import { PropertySale } from '../../../../models/property/property-sale/property-sale';
3
+ import { RestService } from '../../rest/rest.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class PropertySaleService extends RestService<PropertySaleBase, PropertySale> {
6
+ modelClass: typeof PropertySale;
7
+ url: string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<PropertySaleService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<PropertySaleService>;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { RestService } from '../../../rest/rest.service';
2
+ import { TaxExemption as BaseTaxExemption } from '../../../../../db/Models/property/property-sale/tax-exemption';
3
+ import { TaxExemption } from '../../../../../models/property/property-sale/tax-exemption';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TaxExemptionService extends RestService<BaseTaxExemption, TaxExemption> {
6
+ modelClass: typeof TaxExemption;
7
+ url: string;
8
+ isHydra: boolean;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaxExemptionService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<TaxExemptionService>;
11
+ }
@@ -1,11 +1,11 @@
1
1
  import { Observable } from 'rxjs';
2
- import { PropertyShare as PropertyShareBase } from '../../../db/Models/property/property-share';
2
+ import { PropertyShare as PropertyShareBase } from '../../../../db/Models/property/property-share';
3
3
  import { HttpClient } from '@angular/common/http';
4
- import { EventDispatcherService } from '../../event/event-dispatcher.service';
5
- import { PropertyShare } from '../../../models/property/property-share';
6
- import { BaseRestService } from '../../base-rest.service';
4
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
5
+ import { PropertyShare } from '../../../../models/property/property-share';
6
+ import { RestService } from '../../rest/rest.service';
7
7
  import * as i0 from "@angular/core";
8
- export declare class PropertyShareService extends BaseRestService<PropertyShareBase, PropertyShare> {
8
+ export declare class PropertyShareService extends RestService<PropertyShareBase, PropertyShare> {
9
9
  protected http: HttpClient;
10
10
  protected eventDispatcherService: EventDispatcherService;
11
11
  protected environment: any;
@@ -1,14 +1,14 @@
1
- import { Property as PropertyBase } from '../../db/Models/property/property';
1
+ import { Property as PropertyBase } from '../../../db/Models/property/property';
2
2
  import { Observable } from 'rxjs';
3
3
  import { HttpClient } from '@angular/common/http';
4
- import { BaseRestService } from '../base-rest.service';
5
- import { Property } from '../../models/property/property';
6
- import { EventDispatcherService } from '../event/event-dispatcher.service';
4
+ import { RestService } from '../rest/rest.service';
5
+ import { Property } from '../../../models/property/property';
6
+ import { EventDispatcherService } from '../../event/event-dispatcher.service';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * Service for work with Property
10
10
  */
11
- export declare class PropertyService extends BaseRestService<PropertyBase, Property> {
11
+ export declare class PropertyService extends RestService<PropertyBase, Property> {
12
12
  protected http: HttpClient;
13
13
  protected eventDispatcherService: EventDispatcherService;
14
14
  protected environment: any;
@@ -1,6 +1,6 @@
1
1
  import { Observable, ReplaySubject } from 'rxjs';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { EventDispatcherService } from './event/event-dispatcher.service';
3
+ import { EventDispatcherService } from '../../event/event-dispatcher.service';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Abstract base service that implements common services functionality
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
8
8
  * Model - entity service is working with
9
9
  * BaseModel - base entity model that extends by Model
10
10
  */
11
- export declare abstract class BaseRestService<BaseModel, Model extends BaseModel> {
11
+ export declare abstract class RestService<BaseModel, Model extends BaseModel> {
12
12
  protected http: HttpClient;
13
13
  protected eventDispatcherService: EventDispatcherService;
14
14
  protected environment: any;
@@ -86,6 +86,6 @@ export declare abstract class BaseRestService<BaseModel, Model extends BaseModel
86
86
  * @param baseModel base model instance that we will use as constructor options
87
87
  */
88
88
  protected createModelInstance(model: new (bm: BaseModel) => Model, baseModel: BaseModel): Model;
89
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseRestService<any, any>, never>;
90
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseRestService<any, any>>;
89
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestService<any, any>, never>;
90
+ static ɵprov: i0.ɵɵInjectableDeclaration<RestService<any, any>>;
91
91
  }
@@ -0,0 +1,31 @@
1
+ import { ServiceNotification as NotificationBase } from '../../../db/Models/service-notification';
2
+ import { Notification } from '../../../models/notification/notification';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import { IEventListener } from '../../../interfaces/event-listener.interface';
5
+ import { RestService } from '../rest/rest.service';
6
+ import { EventDispatcherService } from '../../event/event-dispatcher.service';
7
+ import { SseService } from '../../event/sse.service';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * Service to handle service notifications logic
11
+ */
12
+ export declare class ServiceNotificationService extends RestService<NotificationBase, Notification> implements IEventListener {
13
+ protected http: HttpClient;
14
+ protected eventDispatcherService: EventDispatcherService;
15
+ protected environment: any;
16
+ private sseService;
17
+ modelClass: typeof Notification;
18
+ url: string;
19
+ isHydra: boolean;
20
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, sseService: SseService);
21
+ /**
22
+ * SSE and Event Dispatcher Services listeners
23
+ */
24
+ listenEvents(): void;
25
+ /**
26
+ * subscribe to new chat messages
27
+ */
28
+ private listenNotifications;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<ServiceNotificationService, never>;
30
+ static ɵprov: i0.ɵɵInjectableDeclaration<ServiceNotificationService>;
31
+ }
@@ -1,11 +1,11 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
3
- import { ServiceSubscriptionCollection } from '../../collections/service-subscription.collection';
4
- import { ServiceSubscription } from '../../models/service-subscription/service-subscription';
5
- import { ServicePayment } from '../../models/service-subscription/service-payment';
6
- import { EventDispatcherService } from '../event/event-dispatcher.service';
7
- import { ServiceSubscriptionItem } from '../../models/service-subscription/service-subscription-item';
8
- import { SseService } from '../event/sse.service';
3
+ import { ServiceSubscriptionCollection } from '../../../collections/service-subscription.collection';
4
+ import { ServiceSubscription } from '../../../models/service-subscription/service-subscription';
5
+ import { ServicePayment } from '../../../models/service-subscription/service-payment';
6
+ import { EventDispatcherService } from '../../event/event-dispatcher.service';
7
+ import { ServiceSubscriptionItem } from '../../../models/service-subscription/service-subscription-item';
8
+ import { SseService } from '../../event/sse.service';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class SubscriptionService {
11
11
  private http;
@@ -1,13 +1,13 @@
1
- import { TaxReview as TaxReviewBase } from '../../db/Models/tax-review';
1
+ import { TaxReview as TaxReviewBase } from '../../../../db/Models/tax-review';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { BaseRestService } from '../base-rest.service';
4
- import { TaxReview } from '../../models/tax-review/tax-review';
5
- import { EventDispatcherService } from '../event/event-dispatcher.service';
3
+ import { RestService } from '../../rest/rest.service';
4
+ import { TaxReview } from '../../../../models/tax-review/tax-review';
5
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Service to work with tax review history
9
9
  */
10
- export declare class TaxReviewHistoryService extends BaseRestService<TaxReviewBase, TaxReview> {
10
+ export declare class TaxReviewHistoryService extends RestService<TaxReviewBase, TaxReview> {
11
11
  protected http: HttpClient;
12
12
  protected eventDispatcherService: EventDispatcherService;
13
13
  protected environment: any;
@@ -1,15 +1,15 @@
1
- import { TaxReview as TaxReviewBase } from '../../db/Models/tax-review';
1
+ import { TaxReview as TaxReviewBase } from '../../../db/Models/tax-review';
2
2
  import { Observable } from 'rxjs';
3
3
  import { HttpClient } from '@angular/common/http';
4
- import { BaseRestService } from '../base-rest.service';
5
- import { IEventListener } from '../../interfaces/event-listener.interface';
6
- import { TaxReview } from '../../models/tax-review/tax-review';
7
- import { EventDispatcherService } from '../event/event-dispatcher.service';
4
+ import { RestService } from '../rest/rest.service';
5
+ import { IEventListener } from '../../../interfaces/event-listener.interface';
6
+ import { TaxReview } from '../../../models/tax-review/tax-review';
7
+ import { EventDispatcherService } from '../../event/event-dispatcher.service';
8
8
  import * as i0 from "@angular/core";
9
9
  /**
10
10
  * Service to work with tax review
11
11
  */
12
- export declare class TaxReviewService extends BaseRestService<TaxReviewBase, TaxReview> implements IEventListener {
12
+ export declare class TaxReviewService extends RestService<TaxReviewBase, TaxReview> implements IEventListener {
13
13
  protected http: HttpClient;
14
14
  protected eventDispatcherService: EventDispatcherService;
15
15
  protected environment: any;
@@ -1,7 +1,7 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable, ReplaySubject } from 'rxjs';
3
- import { TaxSummary } from '../../models/tax-summary/tax-summary';
4
- import { EventDispatcherService } from '../event/event-dispatcher.service';
3
+ import { TaxSummary } from '../../../models/tax-summary/tax-summary';
4
+ import { EventDispatcherService } from '../../event/event-dispatcher.service';
5
5
  import * as i0 from "@angular/core";
6
6
  /**
7
7
  * Service to work with tax summary logic
@@ -1,16 +1,16 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { TransactionAllocation as TransactionAllocationBase } from '../../db/Models/transaction-allocation';
3
- import { TransactionAllocation } from '../../models/transaction/transaction-allocation';
4
- import { Transaction } from '../../models/transaction/transaction';
5
- import { BaseRestService } from '../base-rest.service';
6
- import { EventDispatcherService } from '../event/event-dispatcher.service';
2
+ import { TransactionAllocation as TransactionAllocationBase } from '../../../../db/Models/transaction-allocation';
3
+ import { TransactionAllocation } from '../../../../models/transaction/transaction-allocation';
4
+ import { Transaction } from '../../../../models/transaction/transaction';
5
+ import { RestService } from '../../rest/rest.service';
6
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
7
7
  import { Observable } from 'rxjs';
8
8
  import * as i0 from "@angular/core";
9
9
  /**
10
10
  * Service for transaction allocations business logic
11
11
  * @TODO alex refactor
12
12
  */
13
- export declare class TransactionAllocationService extends BaseRestService<TransactionAllocationBase, TransactionAllocation> {
13
+ export declare class TransactionAllocationService extends RestService<TransactionAllocationBase, TransactionAllocation> {
14
14
  protected http: HttpClient;
15
15
  protected eventDispatcherService: EventDispatcherService;
16
16
  protected environment: any;
@@ -1,17 +1,17 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
- import { Transaction as TransactionBase } from '../../db/Models/transaction';
3
+ import { Transaction as TransactionBase } from '../../../db/Models/transaction';
4
4
  import { HttpClient } from '@angular/common/http';
5
- import { EventDispatcherService } from '../event/event-dispatcher.service';
6
- import { BaseRestService } from '../base-rest.service';
7
- import { Transaction } from '../../models/transaction/transaction';
8
- import { ChartAccounts } from '../../models/chart-accounts/chart-accounts';
9
- import { ChartAccountsTaxLabelsEnum } from '../../models/chart-accounts/chart-accounts-tax-labels.enum';
5
+ import { EventDispatcherService } from '../../event/event-dispatcher.service';
6
+ import { RestService } from '../rest/rest.service';
7
+ import { Transaction } from '../../../models/transaction/transaction';
8
+ import { ChartAccounts } from '../../../models/chart-accounts/chart-accounts';
9
+ import { ChartAccountsTaxLabelsEnum } from '../../../models/chart-accounts/chart-accounts-tax-labels.enum';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
12
  * Service for transactions business logic
13
13
  */
14
- export declare class TransactionService extends BaseRestService<TransactionBase, Transaction> {
14
+ export declare class TransactionService extends RestService<TransactionBase, Transaction> {
15
15
  protected http: HttpClient;
16
16
  protected eventDispatcherService: EventDispatcherService;
17
17
  protected environment: any;
@@ -1,6 +1,6 @@
1
1
  import { Observable, ReplaySubject } from 'rxjs';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { Occupation } from '../../models/user/occupation';
3
+ import { Occupation } from '../../../../models/user/occupation';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Service that works with Occupations
@@ -1,11 +1,11 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { UserEventSetting } from '../../models/user-event/user-event-setting';
3
- import { UserEventSetting as UserEventSettingBase } from '../../db/Models/user-event-setting';
4
- import { EventDispatcherService } from '../event/event-dispatcher.service';
5
- import { BaseRestService } from '../base-rest.service';
2
+ import { UserEventSetting } from '../../../../models/user-event/user-event-setting';
3
+ import { UserEventSetting as UserEventSettingBase } from '../../../../db/Models/user-event-setting';
4
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
5
+ import { RestService } from '../../rest/rest.service';
6
6
  import { Observable } from 'rxjs';
7
7
  import * as i0 from "@angular/core";
8
- export declare class UserEventSettingService extends BaseRestService<UserEventSettingBase, UserEventSetting> {
8
+ export declare class UserEventSettingService extends RestService<UserEventSettingBase, UserEventSetting> {
9
9
  protected http: HttpClient;
10
10
  protected eventDispatcherService: EventDispatcherService;
11
11
  protected environment: any;
@@ -1,10 +1,10 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { UserEventType as UserEventTypeBase } from '../../db/Models/user-event-type';
3
- import { UserEventType } from '../../models/user-event/user-event-type';
4
- import { EventDispatcherService } from '../event/event-dispatcher.service';
5
- import { BaseRestService } from '../base-rest.service';
2
+ import { UserEventType as UserEventTypeBase } from '../../../../db/Models/user-event-type';
3
+ import { UserEventType } from '../../../../models/user-event/user-event-type';
4
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
5
+ import { RestService } from '../../rest/rest.service';
6
6
  import * as i0 from "@angular/core";
7
- export declare class UserEventTypeService extends BaseRestService<UserEventTypeBase, UserEventType> {
7
+ export declare class UserEventTypeService extends RestService<UserEventTypeBase, UserEventType> {
8
8
  protected http: HttpClient;
9
9
  protected eventDispatcherService: EventDispatcherService;
10
10
  protected environment: any;
@@ -1,8 +1,8 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable, ReplaySubject } from 'rxjs';
3
- import { User } from '../../models/user/user';
4
- import { EventDispatcherService } from '../event/event-dispatcher.service';
5
- import { JwtService } from '../auth/jwt.service';
3
+ import { User } from '../../../models/user/user';
4
+ import { EventDispatcherService } from '../../event/event-dispatcher.service';
5
+ import { JwtService } from '../../auth/jwt.service';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Service to work with user
@@ -1,18 +1,19 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable, ReplaySubject } from 'rxjs';
3
3
  import { TransactionService } from '../transaction/transaction.service';
4
- import { Vehicle } from '../../models/logbook/vehicle';
5
- import { VehicleClaim } from '../../models/logbook/vehicle-claim';
6
- import { VehicleLogbook } from '../../models/logbook/vehicle-logbook';
7
- import { IncomePosition } from '../../models/income-position/income-position';
4
+ import { Vehicle } from '../../../models/logbook/vehicle';
5
+ import { VehicleClaim } from '../../../models/logbook/vehicle-claim';
6
+ import { VehicleLogbook } from '../../../models/logbook/vehicle-logbook';
7
+ import { IncomePosition } from '../../../models/income-position/income-position';
8
8
  import { DepreciationService } from '../depreciation/depreciation.service';
9
9
  import { ChartAccountsService } from '../chart-accounts/chart-accounts.service';
10
- import { EventDispatcherService } from '../event/event-dispatcher.service';
10
+ import { EventDispatcherService } from '../../event/event-dispatcher.service';
11
11
  import * as i0 from "@angular/core";
12
12
  /**
13
13
  * Service that allows to work with WorkTank operations
14
+ * @TODO separate into multiple services, extend restService
14
15
  */
15
- export declare class WorkTankService {
16
+ export declare class VehicleService {
16
17
  private http;
17
18
  private transactionService;
18
19
  private depreciationService;
@@ -88,6 +89,6 @@ export declare class WorkTankService {
88
89
  * @param vehicle which should be deleted
89
90
  */
90
91
  deleteVehicle(vehicle: Vehicle): Observable<void>;
91
- static ɵfac: i0.ɵɵFactoryDeclaration<WorkTankService, never>;
92
- static ɵprov: i0.ɵɵInjectableDeclaration<WorkTankService>;
92
+ static ɵfac: i0.ɵɵFactoryDeclaration<VehicleService, never>;
93
+ static ɵprov: i0.ɵɵInjectableDeclaration<VehicleService>;
93
94
  }
@@ -1,6 +1,6 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { ChartData } from '../../models/chart/chart-data';
3
+ import { ChartData } from '../../../models/chart/chart-data';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Service for get property equity position half-year history chart data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.8.3",
3
+ "version": "0.8.7",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",
package/public-api.d.ts CHANGED
@@ -23,7 +23,7 @@ export * from './lib/collections/message-document.collection';
23
23
  export * from './lib/collections/property/property.collection';
24
24
  export * from './lib/collections/service-price.collection';
25
25
  export * from './lib/collections/service-subscription.collection';
26
- export * from './lib/collections/tax-return-category-item.collection';
26
+ export * from './lib/collections/tax-summary/report-item.collection';
27
27
  export * from './lib/collections/tax-review.collection';
28
28
  export * from './lib/collections/transaction-allocation.collection';
29
29
  export * from './lib/collections/transaction.collection';
@@ -230,8 +230,8 @@ export * from './lib/models/service-subscription/subscription-description.const'
230
230
  export * from './lib/models/service-subscription/subscription-title.const';
231
231
  export * from './lib/models/service-subscription/subscription-type.enum';
232
232
  export * from './lib/models/tax-review/tax-review';
233
- export * from './lib/models/tax-summary/tax-return-category-item';
234
- export * from './lib/models/tax-summary/tax-return-category-item-details';
233
+ export * from './lib/models/tax-summary/report-item';
234
+ export * from './lib/models/tax-summary/report-item-details';
235
235
  export * from './lib/models/tax-summary/tax-summary';
236
236
  export * from './lib/models/tax-summary/tax-summary-section';
237
237
  export * from './lib/models/tax-summary/tax-summary-type.enum';
@@ -256,69 +256,69 @@ export * from './lib/models/user-event/user-event-type';
256
256
  /**
257
257
  * Services
258
258
  */
259
- export * from './lib/services/address/address.service';
259
+ export * from './lib/services/http/address/address.service';
260
260
  export * from './lib/services/asset/assets.service';
261
261
  export * from './lib/services/auth/auth.service';
262
262
  export * from './lib/services/auth/jwt.service';
263
- export * from './lib/services/bank/bank.service';
264
- export * from './lib/services/bank/bank-account.service';
263
+ export * from './lib/services/http/bank/bank.service';
264
+ export * from './lib/services/http/bank/bank-account/bank-account.service';
265
265
  export * from './lib/services/bank/bank-account-calculation.service';
266
- export * from './lib/services/bank/bank-connection.service';
267
- export * from './lib/services/bank/bank-transaction.service';
266
+ export * from './lib/services/http/bank/bank-connection/bank-connection.service';
267
+ export * from './lib/services/http/bank/bank-transaction/bank-transaction.service';
268
268
  export * from './lib/services/bank/bank-transaction-calculation.service';
269
- export * from './lib/services/bank/basiq.service';
270
- export * from './lib/services/borrowing-expense/borrowing-expense.service';
271
- export * from './lib/services/chart-accounts/chart-accounts.service';
272
- export * from './lib/services/chart-accounts/chart-accounts-depreciations.service';
273
- export * from './lib/services/chat/chat.service';
274
- export * from './lib/services/chat/message.service';
275
- export * from './lib/services/chat/message-document.service';
276
- export * from './lib/services/client/client-invite.service';
277
- export * from './lib/services/client/client-movement.service';
278
- export * from './lib/services/client/client-portfolio-report.service';
279
- export * from './lib/services/depreciation/capital-project.service';
280
- export * from './lib/services/depreciation/depreciation.service';
281
- export * from './lib/services/document/document-folder.service';
282
- export * from './lib/services/employee/employee.service';
283
- export * from './lib/services/employee/employee-invite.service';
269
+ export * from './lib/services/http/bank/basiq/basiq.service';
270
+ export * from './lib/services/http/loan/borrowing-expense/borrowing-expense.service';
271
+ export * from './lib/services/http/chart-accounts/chart-accounts.service';
272
+ export * from './lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service';
273
+ export * from './lib/services/http/chat/chat.service';
274
+ export * from './lib/services/http/chat/message/message.service';
275
+ export * from './lib/services/http/chat/message-document/message-document.service';
276
+ export * from './lib/services/http/firm/client-invite/client-invite.service';
277
+ export * from './lib/services/http/firm/client-movement/client-movement.service';
278
+ export * from './lib/services/http/firm/portfolio-report/client-portfolio-report.service';
279
+ export * from './lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service';
280
+ export * from './lib/services/http/depreciation/depreciation.service';
281
+ export * from './lib/services/http/document/document-folder/document-folder.service';
282
+ export * from './lib/services/http/firm/employee/employee.service';
283
+ export * from './lib/services/http/firm/employee-invite/employee-invite.service';
284
284
  export * from './lib/services/event/event-dispatcher.service';
285
285
  export * from './lib/services/event/sse.service';
286
- export * from './lib/services/firm/firm.service';
286
+ export * from './lib/services/http/firm/firm.service';
287
287
  export * from './lib/services/header-title/header-title.service';
288
- export * from './lib/services/income-source/income-source.service';
289
- export * from './lib/services/income-source/income-source-forecast.service';
290
- export * from './lib/services/income-source/salary-forecast.service';
291
- export * from './lib/services/income-source/sole-forecast.service';
288
+ export * from './lib/services/http/income-source/income-source.service';
289
+ export * from './lib/services/http/income-source/income-source-forecast/income-source-forecast.service';
290
+ export * from './lib/services/http/income-source/salary-forecast/salary-forecast.service';
291
+ export * from './lib/services/http/income-source/sole-forecast/sole-forecast.service';
292
292
  export * from './lib/services/intercom/intercom.service';
293
- export * from './lib/services/loan/loan.service';
294
- export * from './lib/services/notification/notification.service';
293
+ export * from './lib/services/http/loan/loan.service';
294
+ export * from './lib/services/http/service-notification/service-notification.service';
295
295
  export * from './lib/services/pdf/pdf.service';
296
296
  export * from './lib/services/preloader/preloader.service';
297
297
  export * from './lib/services/property/corelogic/corelogic.service';
298
- export * from './lib/services/property/property.service';
298
+ export * from './lib/services/http/property/property.service';
299
299
  export * from './lib/services/property/property-calculation/property-calculation.service';
300
- export * from './lib/services/property/property-category/property-category.service';
301
- export * from './lib/services/property/property-document/property-document.service';
302
- export * from './lib/services/property/property-share/property-share.service';
303
- export * from './lib/services/property/property-sale/property-sale.service';
304
- export * from './lib/services/property/equity-position-chart.service';
305
- export * from './lib/services/property/property.service';
306
- export * from './lib/services/property/property-category-movement.service';
307
- export * from './lib/services/subscription/subscription.service';
308
- export * from './lib/services/tax-review/tax-review.service';
309
- export * from './lib/services/tax-review/tax-review-history.service';
310
- export * from './lib/services/tax-summary/tax-summary.service';
311
- export * from './lib/services/transaction/transaction.service';
312
- export * from './lib/services/transaction/transaction-allocation.service';
300
+ export * from './lib/services/http/property/property-category/property-category.service';
301
+ export * from './lib/services/http/property/property-document/property-document.service';
302
+ export * from './lib/services/http/property/property-share/property-share.service';
303
+ export * from './lib/services/http/property/property-sale/property-sale.service';
304
+ export * from './lib/services/property/equity-position-chart/equity-position-chart.service';
305
+ export * from './lib/services/http/property/property.service';
306
+ export * from './lib/services/http/property/property-category-movement/property-category-movement.service';
307
+ export * from './lib/services/http/subscription/subscription.service';
308
+ export * from './lib/services/http/tax-review/tax-review.service';
309
+ export * from './lib/services/http/tax-review/tax-review-history/tax-review-history.service';
310
+ export * from './lib/services/http/tax-summary/tax-summary.service';
311
+ export * from './lib/services/http/transaction/transaction.service';
312
+ export * from './lib/services/http/transaction/transaction-allocation/transaction-allocation.service';
313
313
  export * from './lib/services/transaction/transaction-calculation.service';
314
- export * from './lib/services/user/occupation.service';
315
- export * from './lib/services/user/user.service';
314
+ export * from './lib/services/http/user/occupation/occupation.service';
315
+ export * from './lib/services/http/user/user.service';
316
316
  export * from './lib/services/user/user-switcher.service';
317
- export * from './lib/services/user-event/user-event-setting.service';
318
- export * from './lib/services/user-event/user-event-type.service';
319
- export * from './lib/services/work/work-tank.service';
317
+ export * from './lib/services/http/user/user-event-setting/user-event-setting.service';
318
+ export * from './lib/services/http/user/user-event-type/user-event-type.service';
319
+ export * from './lib/services/http/vehicle/vehicle.service';
320
320
  export * from './lib/services/xlsx/xlsx.service';
321
- export * from './lib/services/property/property-sale/tax-exemption/tax-exemption.service';
321
+ export * from './lib/services/http/property/property-sale/tax-exemption/tax-exemption.service';
322
322
  /**
323
323
  * Interfaces
324
324
  */