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
@@ -20,7 +20,7 @@ export declare class Collection<Model extends object> implements Iterable<Model>
20
20
  * Get list of items ids
21
21
  */
22
22
  getIds(): number[];
23
- getOneBy(path: string, value: any): Model;
23
+ findBy(path: string, value: any): Model;
24
24
  getBy(path: string, value: any): this;
25
25
  /**
26
26
  * Get single item by id
@@ -1,10 +1,10 @@
1
- import { Collection } from './collection';
2
- import { TaxReturnCategoryItem } from '../models/tax-summary/tax-return-category-item';
3
- import { TaxReturnCategorySectionEnum } from '../db/Enums/tax-return-category-section.enum';
1
+ import { Collection } from '../collection';
2
+ import { ReportItem } from '../../models/tax-summary/report-item';
3
+ import { TaxReturnCategorySectionEnum } from '../../db/Enums/tax-return-category-section.enum';
4
4
  /**
5
5
  * collection for tax return category items
6
6
  */
7
- export declare class TaxReturnCategoryItemCollection extends Collection<TaxReturnCategoryItem> {
7
+ export declare class ReportItemCollection extends Collection<ReportItem> {
8
8
  /**
9
9
  * Work income
10
10
  */
@@ -62,7 +62,7 @@ export declare class TaxReturnCategoryItemCollection extends Collection<TaxRetur
62
62
  * taxWithheld by section (work or other)
63
63
  */
64
64
  getTaxWithheld(section?: TaxReturnCategorySectionEnum): number;
65
- getTaxCreditsCollection(): TaxReturnCategoryItemCollection;
65
+ getTaxCreditsCollection(): ReportItemCollection;
66
66
  getTotalAmountByIncomeSourceName(name: string): number;
67
67
  private getByCategory;
68
68
  }
@@ -80,6 +80,7 @@ export declare class Property extends PropertyBase implements Photoable, Documen
80
80
  * tax exemption can reduce cgt from 100% to less (up to zero)
81
81
  */
82
82
  getCGTExemptionRatio(sale: PropertySale): number;
83
+ isOneYearExemptionApplicable(sale: PropertySale): boolean;
83
84
  /**
84
85
  * ownership duration from purchase till sale
85
86
  */
@@ -1,11 +1,11 @@
1
1
  import { TaxReturnCategorySectionEnum } from '../../db/Enums/tax-return-category-section.enum';
2
2
  /**
3
3
  * Used in tax summary reports to show specific details relating to an amount in the report.
4
- * See structure in TaxReturnCategoryItem class.
4
+ * See structure in ReportItem class.
5
5
  * Example an amount of $550 for property income could be comprised of 2 different property amounts of $300 and $250.
6
6
  * This is useful in providing drill-down information for the tax summary report.
7
7
  */
8
- export declare class TaxReturnCategoryItemDetails {
8
+ export declare class ReportItemDetails {
9
9
  amount: number;
10
10
  name: string;
11
11
  type: number;
@@ -1,13 +1,13 @@
1
1
  import { TaxReturnCategory } from '../../db/Models/tax-return-category';
2
- import { TaxReturnCategoryItemDetails } from './tax-return-category-item-details';
2
+ import { ReportItemDetails } from './report-item-details';
3
3
  /**
4
4
  * Used in tax summary reports to show amounts relating to a tax return category entity and details of what this
5
5
  * amount is comprised of. Example here shows an amount of $951.96 and also details of what this amount is comprised of:
6
6
  */
7
- export declare class TaxReturnCategoryItem {
7
+ export declare class ReportItem {
8
8
  amount: number;
9
- details: TaxReturnCategoryItemDetails[];
10
- items: TaxReturnCategoryItem[];
9
+ details: ReportItemDetails[];
10
+ items: ReportItem[];
11
11
  taxReturnCategory: TaxReturnCategory;
12
12
  taxWithheld: number;
13
13
  /**
@@ -1,5 +1,5 @@
1
1
  import { TaxSummarySectionEnum } from '../../db/Enums/tax-summary-section.enum';
2
- import { TaxReturnCategoryItemCollection } from '../../collections/tax-return-category-item.collection';
2
+ import { ReportItemCollection } from '../../collections/tax-summary/report-item.collection';
3
3
  /**
4
4
  * Base class for each sections of Tax Summary report, contains common properties/methods
5
5
  * See also TaxSummary model
@@ -7,6 +7,6 @@ import { TaxReturnCategoryItemCollection } from '../../collections/tax-return-ca
7
7
  export declare class TaxSummarySection {
8
8
  section: TaxSummarySectionEnum;
9
9
  netAmount: number;
10
- items: TaxReturnCategoryItemCollection;
10
+ items: ReportItemCollection;
11
11
  id?: string;
12
12
  }
@@ -1,6 +1,6 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable, ReplaySubject } from 'rxjs';
3
- import { Country } from '../../models/address/country';
3
+ import { Country } from '../../../models/address/country';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class AddressService {
6
6
  private http;
@@ -1,14 +1,14 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { BankAccount as BankAccountBase } from '../../db/Models/bank-account';
4
- import { BaseRestService } from '../base-rest.service';
5
- import { BankAccount } from '../../models/bank/bank-account';
6
- import { EventDispatcherService } from '../event/event-dispatcher.service';
3
+ import { BankAccount as BankAccountBase } from '../../../../db/Models/bank-account';
4
+ import { RestService } from '../../rest/rest.service';
5
+ import { BankAccount } from '../../../../models/bank/bank-account';
6
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * Service that handling user's bank accounts logic
10
10
  */
11
- export declare class BankAccountService extends BaseRestService<BankAccountBase, BankAccount> {
11
+ export declare class BankAccountService extends RestService<BankAccountBase, BankAccount> {
12
12
  protected http: HttpClient;
13
13
  protected eventDispatcherService: EventDispatcherService;
14
14
  protected environment: any;
@@ -1,15 +1,15 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { BankConnection as BankConnectionBase } from '../../db/Models/bank-connection';
4
- import { EventDispatcherService } from '../event/event-dispatcher.service';
5
- import { BankConnection } from '../../models/bank/bank-connection';
6
- import { BaseRestService } from '../base-rest.service';
3
+ import { BankConnection as BankConnectionBase } from '../../../../db/Models/bank-connection';
4
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
5
+ import { BankConnection } from '../../../../models/bank/bank-connection';
6
+ import { RestService } from '../../rest/rest.service';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * BankConnection means user account at specific bank (usually each user has only one at the same bank)
10
10
  * service handles BankConnection management
11
11
  */
12
- export declare class BankConnectionService extends BaseRestService<BankConnectionBase, BankConnection> {
12
+ export declare class BankConnectionService extends RestService<BankConnectionBase, BankConnection> {
13
13
  protected http: HttpClient;
14
14
  protected eventDispatcherService: EventDispatcherService;
15
15
  protected environment: any;
@@ -1,14 +1,14 @@
1
- import { BankTransaction as BankTransactionBase } from '../../db/Models/bank-transaction';
1
+ import { BankTransaction as BankTransactionBase } from '../../../../db/Models/bank-transaction';
2
2
  import { Observable } from 'rxjs';
3
- import { BaseRestService } from '../base-rest.service';
3
+ import { RestService } from '../../rest/rest.service';
4
4
  import { HttpClient } from '@angular/common/http';
5
- import { BankTransaction } from '../../models/bank/bank-transaction';
6
- import { EventDispatcherService } from '../event/event-dispatcher.service';
5
+ import { BankTransaction } from '../../../../models/bank/bank-transaction';
6
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * Service for bank transactions business logic
10
10
  */
11
- export declare class BankTransactionService extends BaseRestService<BankTransactionBase, BankTransaction> {
11
+ export declare class BankTransactionService extends RestService<BankTransactionBase, BankTransaction> {
12
12
  protected http: HttpClient;
13
13
  protected eventDispatcherService: EventDispatcherService;
14
14
  protected environment: any;
@@ -1,11 +1,11 @@
1
- import { Bank as BankBase } from '../../db/Models/bank';
2
- import { Bank } from '../../models/bank/bank';
3
- import { BaseRestService } from '../base-rest.service';
1
+ import { Bank as BankBase } from '../../../db/Models/bank';
2
+ import { Bank } from '../../../models/bank/bank';
3
+ import { RestService } from '../rest/rest.service';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Service that handling banks logic
7
7
  */
8
- export declare class BankService extends BaseRestService<BankBase, Bank> {
8
+ export declare class BankService extends RestService<BankBase, Bank> {
9
9
  modelClass: typeof Bank;
10
10
  url: string;
11
11
  isHydra: boolean;
@@ -1,17 +1,17 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable, ReplaySubject } from 'rxjs';
3
- import { BankAccount as BankAccountBase } from '../../db/Models/bank-account';
4
- import { BaseRestService } from '../base-rest.service';
5
- import { BankAccount } from '../../models/bank/bank-account';
6
- import { BasiqToken } from '../../models/bank/basiq-token';
7
- import { EventDispatcherService } from '../event/event-dispatcher.service';
8
- import { BankConnection } from '../../models/bank/bank-connection';
3
+ import { BankAccount as BankAccountBase } from '../../../../db/Models/bank-account';
4
+ import { RestService } from '../../rest/rest.service';
5
+ import { BankAccount } from '../../../../models/bank/bank-account';
6
+ import { BasiqToken } from '../../../../models/bank/basiq-token';
7
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
8
+ import { BankConnection } from '../../../../models/bank/bank-connection';
9
9
  import * as i0 from "@angular/core";
10
10
  /**
11
11
  * basiq is a middleman between bank and user
12
12
  * service is responsible for fetching bank related information
13
13
  */
14
- export declare class BasiqService extends BaseRestService<BankAccountBase, BankAccount> {
14
+ export declare class BasiqService extends RestService<BankAccountBase, BankAccount> {
15
15
  protected http: HttpClient;
16
16
  protected eventDispatcherService: EventDispatcherService;
17
17
  protected environment: any;
@@ -1,12 +1,12 @@
1
- import { BaseRestService } from '../base-rest.service';
2
- import { ChartAccountsDepreciation as ChartAccountsDepreciationBase } from '../../db/Models/chart-accounts-depreciation';
1
+ import { RestService } from '../../rest/rest.service';
2
+ import { ChartAccountsDepreciation as ChartAccountsDepreciationBase } from '../../../../db/Models/chart-accounts-depreciation';
3
3
  import { Observable } from 'rxjs';
4
- import { ChartAccountsDepreciation } from '../../models/chart-accounts/chart-accounts-depreciation';
4
+ import { ChartAccountsDepreciation } from '../../../../models/chart-accounts/chart-accounts-depreciation';
5
5
  import * as i0 from "@angular/core";
6
6
  /**
7
7
  * Service to work with depreciation chart accounts
8
8
  */
9
- export declare class ChartAccountsDepreciationService extends BaseRestService<ChartAccountsDepreciationBase, ChartAccountsDepreciation> {
9
+ export declare class ChartAccountsDepreciationService extends RestService<ChartAccountsDepreciationBase, ChartAccountsDepreciation> {
10
10
  url: string;
11
11
  modelClass: typeof ChartAccountsDepreciation;
12
12
  isHydra: boolean;
@@ -1,8 +1,8 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable, ReplaySubject } from 'rxjs';
3
- import { ChartAccountsCategoryEnum } from '../../db/Enums/chart-accounts-category.enum';
4
- import { ChartAccounts } from '../../models/chart-accounts/chart-accounts';
5
- import { ChartAccountsHeading } from '../../models/chart-accounts/chart-accounts-heading';
3
+ import { ChartAccountsCategoryEnum } from '../../../db/Enums/chart-accounts-category.enum';
4
+ import { ChartAccounts } from '../../../models/chart-accounts/chart-accounts';
5
+ import { ChartAccountsHeading } from '../../../models/chart-accounts/chart-accounts-heading';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Chart accounts service
@@ -1,15 +1,15 @@
1
- import { Chat as ChatBase } from '../../db/Models/chat';
1
+ import { Chat as ChatBase } from '../../../db/Models/chat';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { SseService } from '../event/sse.service';
4
- import { BaseRestService } from '../base-rest.service';
5
- import { IEventListener } from '../../interfaces/event-listener.interface';
6
- import { Chat } from '../../models/chat/chat';
7
- import { EventDispatcherService } from '../event/event-dispatcher.service';
3
+ import { SseService } from '../../event/sse.service';
4
+ import { RestService } from '../rest/rest.service';
5
+ import { IEventListener } from '../../../interfaces/event-listener.interface';
6
+ import { Chat } from '../../../models/chat/chat';
7
+ import { EventDispatcherService } from '../../event/event-dispatcher.service';
8
8
  import * as i0 from "@angular/core";
9
9
  /**
10
10
  * Service for work with chats
11
11
  */
12
- export declare class ChatService extends BaseRestService<ChatBase, Chat> implements IEventListener {
12
+ export declare class ChatService extends RestService<ChatBase, Chat> implements IEventListener {
13
13
  protected http: HttpClient;
14
14
  protected eventDispatcherService: EventDispatcherService;
15
15
  protected environment: any;
@@ -1,15 +1,15 @@
1
- import { Message as MessageBase } from '../../db/Models/message';
2
- import { IEventListener } from '../../interfaces/event-listener.interface';
1
+ import { Message as MessageBase } from '../../../../db/Models/message';
2
+ import { IEventListener } from '../../../../interfaces/event-listener.interface';
3
3
  import { HttpClient } from '@angular/common/http';
4
- import { Message } from '../../models/chat/message';
5
- import { BaseRestService } from '../base-rest.service';
6
- import { EventDispatcherService } from '../event/event-dispatcher.service';
7
- import { SseService } from '../event/sse.service';
4
+ import { Message } from '../../../../models/chat/message';
5
+ import { RestService } from '../../rest/rest.service';
6
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
7
+ import { SseService } from '../../../event/sse.service';
8
8
  import * as i0 from "@angular/core";
9
9
  /**
10
10
  * Service for work with messages
11
11
  */
12
- export declare class MessageService extends BaseRestService<MessageBase, Message> implements IEventListener {
12
+ export declare class MessageService extends RestService<MessageBase, Message> implements IEventListener {
13
13
  protected http: HttpClient;
14
14
  protected eventDispatcherService: EventDispatcherService;
15
15
  protected environment: any;
@@ -1,8 +1,8 @@
1
1
  import { Observable, ReplaySubject } from 'rxjs';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { IEventListener } from '../../interfaces/event-listener.interface';
4
- import { MessageDocument } from '../../models/chat/message-document';
5
- import { EventDispatcherService } from '../event/event-dispatcher.service';
3
+ import { IEventListener } from '../../../../interfaces/event-listener.interface';
4
+ import { MessageDocument } from '../../../../models/chat/message-document';
5
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Service for work with Message Documents
@@ -1,11 +1,11 @@
1
1
  import { Observable, ReplaySubject } from 'rxjs';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { DepreciationCapitalProject } from '../../models/depreciation/depreciation-capital-project';
3
+ import { DepreciationCapitalProject } from '../../../../models/depreciation/depreciation-capital-project';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Service for work with DepreciationCapitalProjects
7
7
  */
8
- export declare class CapitalProjectService {
8
+ export declare class DepreciationCapitalProjectService {
9
9
  private http;
10
10
  private environment;
11
11
  cache: DepreciationCapitalProject[];
@@ -15,6 +15,6 @@ export declare class CapitalProjectService {
15
15
  add(capitalProject: DepreciationCapitalProject, propertyId: number): Observable<void>;
16
16
  update(capitalProject: DepreciationCapitalProject, propertyId: number): Observable<void>;
17
17
  delete(capitalProject: DepreciationCapitalProject, propertyId: number): Observable<void>;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<CapitalProjectService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<CapitalProjectService>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<DepreciationCapitalProjectService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<DepreciationCapitalProjectService>;
20
20
  }
@@ -1,11 +1,11 @@
1
1
  import { Observable } from 'rxjs';
2
- import { Depreciation as DepreciationBase } from '../../db/Models/depreciation';
2
+ import { Depreciation as DepreciationBase } from '../../../db/Models/depreciation';
3
3
  import { HttpClient } from '@angular/common/http';
4
- import { BaseRestService } from '../base-rest.service';
5
- import { Depreciation } from '../../models/depreciation/depreciation';
6
- import { EventDispatcherService } from '../event/event-dispatcher.service';
4
+ import { RestService } from '../rest/rest.service';
5
+ import { Depreciation } from '../../../models/depreciation/depreciation';
6
+ import { EventDispatcherService } from '../../event/event-dispatcher.service';
7
7
  import * as i0 from "@angular/core";
8
- export declare class DepreciationService extends BaseRestService<DepreciationBase, Depreciation> {
8
+ export declare class DepreciationService extends RestService<DepreciationBase, Depreciation> {
9
9
  protected http: HttpClient;
10
10
  protected eventDispatcherService: EventDispatcherService;
11
11
  protected environment: any;
@@ -1,15 +1,15 @@
1
- import { DocumentFolder as DocumentFolderBase } from '../../db/Models/document-folder';
1
+ import { DocumentFolder as DocumentFolderBase } from '../../../../db/Models/document-folder';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { Document } from '../../models/document/document';
3
+ import { Document } from '../../../../models/document/document';
4
4
  import { Observable } from 'rxjs';
5
- import { BaseRestService } from '../base-rest.service';
6
- import { DocumentFolder } from '../../models/document/document-folder';
7
- import { EventDispatcherService } from '../event/event-dispatcher.service';
5
+ import { RestService } from '../../rest/rest.service';
6
+ import { DocumentFolder } from '../../../../models/document/document-folder';
7
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
8
8
  import * as i0 from "@angular/core";
9
9
  /**
10
10
  * Service to handle document-folders and depending documents logic
11
11
  */
12
- export declare class DocumentFolderService extends BaseRestService<DocumentFolderBase, DocumentFolder> {
12
+ export declare class DocumentFolderService extends RestService<DocumentFolderBase, DocumentFolder> {
13
13
  protected http: HttpClient;
14
14
  protected eventDispatcherService: EventDispatcherService;
15
15
  protected environment: any;
@@ -1,9 +1,9 @@
1
1
  import { Observable } from 'rxjs';
2
- import { ClientInvite as ClientInviteBase } from '../../db/Models/client-invite';
3
- import { BaseRestService } from '../base-rest.service';
4
- import { ClientInvite } from '../../models/client/client-invite';
2
+ import { ClientInvite as ClientInviteBase } from '../../../../db/Models/client-invite';
3
+ import { RestService } from '../../rest/rest.service';
4
+ import { ClientInvite } from '../../../../models/client/client-invite';
5
5
  import * as i0 from "@angular/core";
6
- export declare class ClientInviteService extends BaseRestService<ClientInviteBase, ClientInvite> {
6
+ export declare class ClientInviteService extends RestService<ClientInviteBase, ClientInvite> {
7
7
  url: string;
8
8
  modelClass: typeof ClientInvite;
9
9
  /**
@@ -1,13 +1,13 @@
1
- import { ClientMovement as ClientMovementBase } from '../../db/Models/client-movement';
1
+ import { ClientMovement as ClientMovementBase } from '../../../../db/Models/client-movement';
2
2
  import { Observable } from 'rxjs';
3
- import { ClientMovementCollection } from '../../collections/client-movement.collection';
4
- import { FirmTypeEnum } from '../../db/Enums/firm-type.enum';
3
+ import { ClientMovementCollection } from '../../../../collections/client-movement.collection';
4
+ import { FirmTypeEnum } from '../../../../db/Enums/firm-type.enum';
5
5
  import { HttpClient } from '@angular/common/http';
6
- import { BaseRestService } from '../base-rest.service';
7
- import { ClientMovement } from '../../models/client/client-movement';
8
- import { EventDispatcherService } from '../event/event-dispatcher.service';
6
+ import { RestService } from '../../rest/rest.service';
7
+ import { ClientMovement } from '../../../../models/client/client-movement';
8
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
9
9
  import * as i0 from "@angular/core";
10
- export declare class ClientMovementService extends BaseRestService<ClientMovementBase, ClientMovement> {
10
+ export declare class ClientMovementService extends RestService<ClientMovementBase, ClientMovement> {
11
11
  protected http: HttpClient;
12
12
  protected eventDispatcherService: EventDispatcherService;
13
13
  protected environment: any;
@@ -1,9 +1,9 @@
1
- import { BaseRestService } from '../base-rest.service';
2
- import { User as UserBase } from '../../db/Models/user';
1
+ import { RestService } from '../../rest/rest.service';
2
+ import { User as UserBase } from '../../../../db/Models/user';
3
3
  import { Observable } from 'rxjs';
4
- import { User } from '../../models/user/user';
4
+ import { User } from '../../../../models/user/user';
5
5
  import * as i0 from "@angular/core";
6
- export declare class EmployeeService extends BaseRestService<UserBase, User> {
6
+ export declare class EmployeeService extends RestService<UserBase, User> {
7
7
  url: string;
8
8
  modelClass: typeof User;
9
9
  /**
@@ -1,9 +1,9 @@
1
- import { EmployeeInvite as EmployeeInviteBase } from '../../db/Models/employee-invite';
1
+ import { EmployeeInvite as EmployeeInviteBase } from '../../../../db/Models/employee-invite';
2
2
  import { Observable } from 'rxjs';
3
- import { EmployeeInvite } from '../../models/employee/employee-invite';
4
- import { BaseRestService } from '../base-rest.service';
3
+ import { EmployeeInvite } from '../../../../models/employee/employee-invite';
4
+ import { RestService } from '../../rest/rest.service';
5
5
  import * as i0 from "@angular/core";
6
- export declare class EmployeeInviteService extends BaseRestService<EmployeeInviteBase, EmployeeInvite> {
6
+ export declare class EmployeeInviteService extends RestService<EmployeeInviteBase, EmployeeInvite> {
7
7
  url: string;
8
8
  modelClass: typeof EmployeeInvite;
9
9
  /**
@@ -1,7 +1,7 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable, ReplaySubject } from 'rxjs';
3
- import { FirmTypeEnum } from '../../db/Enums/firm-type.enum';
4
- import { Firm } from '../../models/firm/firm';
3
+ import { FirmTypeEnum } from '../../../db/Enums/firm-type.enum';
4
+ import { Firm } from '../../../models/firm/firm';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class FirmService {
7
7
  private http;
@@ -1,6 +1,6 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { ClientPortfolioReportCollection } from '../../collections/client-portfolio-report.collection';
3
+ import { ClientPortfolioReportCollection } from '../../../../collections/client-portfolio-report.collection';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Service to work with employee clients tax summary data
@@ -1,13 +1,13 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { IncomeSourceForecast as IncomeSourceForecastBase } from '../../db/Models/income-source-forecast';
3
- import { BaseRestService } from '../base-rest.service';
4
- import { IncomeSourceForecast } from '../../models/income-source/income-source-forecast';
5
- import { EventDispatcherService } from '../event/event-dispatcher.service';
2
+ import { IncomeSourceForecast as IncomeSourceForecastBase } from '../../../../db/Models/income-source-forecast';
3
+ import { RestService } from '../../rest/rest.service';
4
+ import { IncomeSourceForecast } from '../../../../models/income-source/income-source-forecast';
5
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Service to work with Other Income Forecasts
9
9
  */
10
- export declare class IncomeSourceForecastService extends BaseRestService<IncomeSourceForecastBase, IncomeSourceForecast> {
10
+ export declare class IncomeSourceForecastService extends RestService<IncomeSourceForecastBase, IncomeSourceForecast> {
11
11
  protected http: HttpClient;
12
12
  protected eventDispatcherService: EventDispatcherService;
13
13
  protected environment: any;
@@ -1,17 +1,17 @@
1
1
  import { Observable, ReplaySubject } from 'rxjs';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { IncomeSource as IncomeSourceBase } from '../../db/Models/income-source';
4
- import { BaseRestService } from '../base-rest.service';
5
- import { IncomeSourceType } from '../../models/income-source/income-source-type';
6
- import { SalaryForecast } from '../../models/income-source/salary-forecast';
7
- import { IncomeSourceTypeEnum } from '../../db/Enums/income-source-type.enum';
8
- import { EventDispatcherService } from '../event/event-dispatcher.service';
9
- import { IncomeSource } from '../../models/income-source/income-source';
3
+ import { IncomeSource as IncomeSourceBase } from '../../../db/Models/income-source';
4
+ import { RestService } from '../rest/rest.service';
5
+ import { IncomeSourceType } from '../../../models/income-source/income-source-type';
6
+ import { SalaryForecast } from '../../../models/income-source/salary-forecast';
7
+ import { IncomeSourceTypeEnum } from '../../../db/Enums/income-source-type.enum';
8
+ import { EventDispatcherService } from '../../event/event-dispatcher.service';
9
+ import { IncomeSource } from '../../../models/income-source/income-source';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
12
  * Service to work with income sources
13
13
  */
14
- export declare class IncomeSourceService extends BaseRestService<IncomeSourceBase, IncomeSource> {
14
+ export declare class IncomeSourceService extends RestService<IncomeSourceBase, IncomeSource> {
15
15
  protected http: HttpClient;
16
16
  protected eventDispatcherService: EventDispatcherService;
17
17
  protected environment: any;
@@ -1,14 +1,14 @@
1
- import { SalaryForecast as SalaryForecastBase } from '../../db/Models/salary-forecast';
1
+ import { SalaryForecast as SalaryForecastBase } from '../../../../db/Models/salary-forecast';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { BaseRestService } from '../base-rest.service';
4
- import { IEventListener } from '../../interfaces/event-listener.interface';
5
- import { SalaryForecast } from '../../models/income-source/salary-forecast';
6
- import { EventDispatcherService } from '../event/event-dispatcher.service';
3
+ import { RestService } from '../../rest/rest.service';
4
+ import { IEventListener } from '../../../../interfaces/event-listener.interface';
5
+ import { SalaryForecast } from '../../../../models/income-source/salary-forecast';
6
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * Service to work with Salary Forecasts
10
10
  */
11
- export declare class SalaryForecastService extends BaseRestService<SalaryForecastBase, SalaryForecast> implements IEventListener {
11
+ export declare class SalaryForecastService extends RestService<SalaryForecastBase, SalaryForecast> implements IEventListener {
12
12
  protected http: HttpClient;
13
13
  protected eventDispatcherService: EventDispatcherService;
14
14
  protected environment: any;
@@ -1,10 +1,10 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { SoleForecast as SoleForecastBase } from '../../db/Models/sole-forecast';
3
- import { BaseRestService } from '../base-rest.service';
4
- import { SoleForecast } from '../../models/income-source/sole-forecast';
5
- import { EventDispatcherService } from '../event/event-dispatcher.service';
2
+ import { SoleForecast as SoleForecastBase } from '../../../../db/Models/sole-forecast';
3
+ import { RestService } from '../../rest/rest.service';
4
+ import { SoleForecast } from '../../../../models/income-source/sole-forecast';
5
+ import { EventDispatcherService } from '../../../event/event-dispatcher.service';
6
6
  import * as i0 from "@angular/core";
7
- export declare class SoleForecastService extends BaseRestService<SoleForecastBase, SoleForecast> {
7
+ export declare class SoleForecastService extends RestService<SoleForecastBase, SoleForecast> {
8
8
  protected http: HttpClient;
9
9
  protected eventDispatcherService: EventDispatcherService;
10
10
  protected environment: any;
@@ -1,7 +1,7 @@
1
1
  import { Observable, ReplaySubject } from 'rxjs';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { BorrowingExpense } from '../../models/borrowing-expense/borrowing-expense';
4
- import { Loan } from '../../models/loan/loan';
3
+ import { BorrowingExpense } from '../../../../models/borrowing-expense/borrowing-expense';
4
+ import { Loan } from '../../../../models/loan/loan';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class BorrowingExpenseService {
7
7
  private http;
@@ -1,15 +1,15 @@
1
1
  import { Observable } from 'rxjs';
2
- import { Loan as LoanBase } from '../../db/Models/loan';
2
+ import { Loan as LoanBase } from '../../../db/Models/loan';
3
3
  import { HttpClient } from '@angular/common/http';
4
- import { BaseRestService } from '../base-rest.service';
5
- import { Loan } from '../../models/loan/loan';
6
- import { EventDispatcherService } from '../event/event-dispatcher.service';
7
- import { LoanPayout } from '../../models/loan/loan-payout';
4
+ import { RestService } from '../rest/rest.service';
5
+ import { Loan } from '../../../models/loan/loan';
6
+ import { EventDispatcherService } from '../../event/event-dispatcher.service';
7
+ import { LoanPayout } from '../../../models/loan/loan-payout';
8
8
  import * as i0 from "@angular/core";
9
9
  /**
10
10
  * Service that handling loans logic
11
11
  */
12
- export declare class LoanService extends BaseRestService<LoanBase, Loan> {
12
+ export declare class LoanService extends RestService<LoanBase, Loan> {
13
13
  protected http: HttpClient;
14
14
  protected eventDispatcherService: EventDispatcherService;
15
15
  protected environment: any;
@@ -1,11 +1,11 @@
1
- import { PropertyCategory as PropertyCategoryBase } from '../../../db/Models/property/property-category';
2
- import { BaseRestService } from '../../base-rest.service';
3
- import { PropertyCategory } from '../../../models/property/property-category';
1
+ import { PropertyCategory as PropertyCategoryBase } from '../../../../db/Models/property/property-category';
2
+ import { RestService } from '../../rest/rest.service';
3
+ import { PropertyCategory } from '../../../../models/property/property-category';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Service for work with Property Categories
7
7
  */
8
- export declare class PropertyCategoryService extends BaseRestService<PropertyCategoryBase, PropertyCategory> {
8
+ export declare class PropertyCategoryService extends RestService<PropertyCategoryBase, PropertyCategory> {
9
9
  modelClass: typeof PropertyCategory;
10
10
  url: string;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<PropertyCategoryService, never>;