taxtank-core 0.28.96 → 0.28.98

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 (187) hide show
  1. package/bundles/taxtank-core.umd.js +2614 -2325
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/index.js +3 -1
  4. package/esm2015/lib/db/Models/abstract-model.js +2 -1
  5. package/esm2015/lib/db/Models/observable-model.js +10 -0
  6. package/esm2015/lib/db/Models/property/property.js +3 -3
  7. package/esm2015/lib/db/Models/sole/bas-report.js +3 -2
  8. package/esm2015/lib/functions/array/index.js +2 -1
  9. package/esm2015/lib/functions/array/to-array.js +7 -0
  10. package/esm2015/lib/interceptors/basiq-client-id.interceptor.js +3 -3
  11. package/esm2015/lib/interceptors/basiq-token.interceptor.js +3 -3
  12. package/esm2015/lib/interceptors/corelogic-interceptor.js +3 -3
  13. package/esm2015/lib/interceptors/financial-year-interceptor.js +3 -3
  14. package/esm2015/lib/interceptors/interceptors.module.js +4 -4
  15. package/esm2015/lib/interceptors/jwt-interceptor.js +3 -3
  16. package/esm2015/lib/interceptors/preloader.interceptor.js +3 -3
  17. package/esm2015/lib/interceptors/user-switcher-interceptor.js +3 -3
  18. package/esm2015/lib/models/event/app-event.js +12 -1
  19. package/esm2015/lib/models/property/property.js +3 -1
  20. package/esm2015/lib/models/user/user-roles.const.js +9 -6
  21. package/esm2015/lib/models/user/user.js +15 -4
  22. package/esm2015/lib/services/account-setup/account-setup.service.js +6 -5
  23. package/esm2015/lib/services/affiliate/rewardful/rewardful.service.js +3 -3
  24. package/esm2015/lib/services/asset/assets.service.js +3 -3
  25. package/esm2015/lib/services/auth/auth.service.js +3 -3
  26. package/esm2015/lib/services/auth/jwt.service.js +3 -3
  27. package/esm2015/lib/services/bank/bank-account-calculation.service.js +3 -3
  28. package/esm2015/lib/services/bank/bank-transaction-calculation.service.js +3 -3
  29. package/esm2015/lib/services/event/event-dispatcher.service.js +15 -4
  30. package/esm2015/lib/services/event/sse.service.js +3 -3
  31. package/esm2015/lib/services/export/export-formatter.service.js +3 -3
  32. package/esm2015/lib/services/header-title/header-title.service.js +3 -3
  33. package/esm2015/lib/services/http/address/address.service.js +3 -3
  34. package/esm2015/lib/services/http/bank/bank-account/bank-account.service.js +5 -5
  35. package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +5 -5
  36. package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +5 -5
  37. package/esm2015/lib/services/http/bank/bank.service.js +5 -5
  38. package/esm2015/lib/services/http/bank/basiq/basiq-token.service.js +3 -3
  39. package/esm2015/lib/services/http/bank/basiq/basiq.service.js +5 -5
  40. package/esm2015/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.js +5 -5
  41. package/esm2015/lib/services/http/chart-accounts/chart-accounts.service.js +3 -3
  42. package/esm2015/lib/services/http/chat/chat.service.js +5 -5
  43. package/esm2015/lib/services/http/chat/message/message.service.js +5 -5
  44. package/esm2015/lib/services/http/chat/message-document/message-document.service.js +3 -3
  45. package/esm2015/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.js +3 -3
  46. package/esm2015/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.js +3 -3
  47. package/esm2015/lib/services/http/depreciation/depreciation.service.js +5 -5
  48. package/esm2015/lib/services/http/document/document-folder/document-folder.service.js +5 -5
  49. package/esm2015/lib/services/http/document/document.service.js +5 -5
  50. package/esm2015/lib/services/http/facebook/facebook.service.js +3 -3
  51. package/esm2015/lib/services/http/firm/client-income/client-income-types.service.js +3 -3
  52. package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +5 -5
  53. package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +5 -5
  54. package/esm2015/lib/services/http/firm/employee/employee.service.js +5 -5
  55. package/esm2015/lib/services/http/firm/employee-invite/employee-invite.service.js +5 -5
  56. package/esm2015/lib/services/http/firm/firm.service.js +3 -3
  57. package/esm2015/lib/services/http/firm/portfolio-report/client-portfolio-report.service.js +3 -3
  58. package/esm2015/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.js +5 -5
  59. package/esm2015/lib/services/http/income-source/income-source.service.js +5 -5
  60. package/esm2015/lib/services/http/income-source/salary-forecast/salary-forecast.service.js +5 -5
  61. package/esm2015/lib/services/http/income-source/sole-forecast/sole-forecast.service.js +5 -5
  62. package/esm2015/lib/services/http/loan/borrowing-expense/borrowing-expense.service.js +3 -3
  63. package/esm2015/lib/services/http/loan/loan.service.js +5 -5
  64. package/esm2015/lib/services/http/property/property-category/property-category.service.js +5 -5
  65. package/esm2015/lib/services/http/property/property-category-movement/property-category-movement.service.js +5 -5
  66. package/esm2015/lib/services/http/property/property-document/property-document.service.js +5 -5
  67. package/esm2015/lib/services/http/property/property-sale/property-sale.service.js +5 -5
  68. package/esm2015/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.js +5 -5
  69. package/esm2015/lib/services/http/property/property-share/property-share.service.js +5 -5
  70. package/esm2015/lib/services/http/property/property.service.js +32 -49
  71. package/esm2015/lib/services/http/receipt/receipt.service.js +3 -3
  72. package/esm2015/lib/services/http/rest/http-method.type.js +2 -0
  73. package/esm2015/lib/services/http/rest/index.js +3 -1
  74. package/esm2015/lib/services/http/rest/rest-method.type.js +2 -0
  75. package/esm2015/lib/services/http/rest/rest-old.service.js +225 -0
  76. package/esm2015/lib/services/http/rest/rest.service.js +146 -149
  77. package/esm2015/lib/services/http/service-notification/service-notification.service.js +5 -5
  78. package/esm2015/lib/services/http/sole/bas-report/bas-report.service.js +5 -5
  79. package/esm2015/lib/services/http/sole/sole-business/sole-business.service.js +5 -5
  80. package/esm2015/lib/services/http/sole/sole-business-activity/sole-business-activity.service.js +5 -5
  81. package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.js +5 -5
  82. package/esm2015/lib/services/http/sole/sole-business-loss/sole-business-loss.service.js +5 -5
  83. package/esm2015/lib/services/http/sole/sole-contact/sole-contact.service.js +5 -5
  84. package/esm2015/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.js +3 -3
  85. package/esm2015/lib/services/http/sole/sole-details/sole-details.service.js +3 -3
  86. package/esm2015/lib/services/http/sole/sole-invoice/sole-invoice.service.js +5 -5
  87. package/esm2015/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.js +5 -5
  88. package/esm2015/lib/services/http/subscription/service-price.service.js +5 -5
  89. package/esm2015/lib/services/http/subscription/subscription.service.js +11 -5
  90. package/esm2015/lib/services/http/tax-review/tax-review-history/tax-review-history.service.js +5 -5
  91. package/esm2015/lib/services/http/tax-review/tax-review.service.js +5 -5
  92. package/esm2015/lib/services/http/tax-summary/tax-summary.service.js +3 -3
  93. package/esm2015/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.js +5 -5
  94. package/esm2015/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.js +3 -3
  95. package/esm2015/lib/services/http/transaction/transaction.service.js +5 -5
  96. package/esm2015/lib/services/http/tutorial-video/tutorial-video.service.js +3 -3
  97. package/esm2015/lib/services/http/user/occupation/occupation.service.js +3 -3
  98. package/esm2015/lib/services/http/user/user-event-setting/user-event-setting.service.js +5 -5
  99. package/esm2015/lib/services/http/user/user-event-type/user-event-type.service.js +5 -5
  100. package/esm2015/lib/services/http/user/user.service.js +3 -3
  101. package/esm2015/lib/services/http/user/users-invite/users-invite.service.js +5 -5
  102. package/esm2015/lib/services/http/vehicle/vehicle-claim-details.service.js +3 -3
  103. package/esm2015/lib/services/http/vehicle/vehicle-claim.service.js +5 -5
  104. package/esm2015/lib/services/http/vehicle/vehicle-logbook.service.js +5 -5
  105. package/esm2015/lib/services/http/vehicle/vehicle.service.js +5 -5
  106. package/esm2015/lib/services/intercom/intercom.service.js +3 -3
  107. package/esm2015/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.js +3 -3
  108. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.js +3 -3
  109. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.js +3 -3
  110. package/esm2015/lib/services/pdf/pdf-from-table/pdf-from-table.service.js +3 -3
  111. package/esm2015/lib/services/preloader/preloader.service.js +3 -3
  112. package/esm2015/lib/services/property/corelogic/corelogic.service.js +3 -3
  113. package/esm2015/lib/services/property/equity-position-chart/equity-position-chart.service.js +3 -3
  114. package/esm2015/lib/services/property/property-calculation/property-calculation.service.js +3 -3
  115. package/esm2015/lib/services/report/property/property-transaction-report.service.js +5 -6
  116. package/esm2015/lib/services/toast/toast.service.js +3 -3
  117. package/esm2015/lib/services/transaction/transaction-calculation.service.js +3 -3
  118. package/esm2015/lib/services/user/user-switcher.service.js +3 -3
  119. package/esm2015/lib/services/vehicle/logbook-best-period.service.js +3 -3
  120. package/esm2015/lib/services/xlsx/xlsx.service.js +3 -3
  121. package/esm2015/lib/tt-core.module.js +4 -4
  122. package/fesm2015/taxtank-core.js +2238 -1985
  123. package/fesm2015/taxtank-core.js.map +1 -1
  124. package/lib/collections/index.d.ts +2 -0
  125. package/lib/db/Models/observable-model.d.ts +8 -0
  126. package/lib/db/Models/property/property.d.ts +2 -2
  127. package/lib/db/Models/sole/bas-report.d.ts +2 -1
  128. package/lib/functions/array/index.d.ts +1 -0
  129. package/lib/functions/array/to-array.d.ts +4 -0
  130. package/lib/models/event/app-event.d.ts +9 -0
  131. package/lib/models/property/property.d.ts +2 -0
  132. package/lib/models/user/user-roles.const.d.ts +3 -0
  133. package/lib/models/user/user.d.ts +5 -2
  134. package/lib/services/event/event-dispatcher.service.d.ts +9 -1
  135. package/lib/services/http/bank/bank-account/bank-account.service.d.ts +1 -1
  136. package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +1 -1
  137. package/lib/services/http/bank/bank-transaction/bank-transaction.service.d.ts +1 -1
  138. package/lib/services/http/bank/bank.service.d.ts +1 -1
  139. package/lib/services/http/bank/basiq/basiq.service.d.ts +1 -1
  140. package/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.d.ts +1 -1
  141. package/lib/services/http/chat/chat.service.d.ts +1 -1
  142. package/lib/services/http/chat/message/message.service.d.ts +1 -1
  143. package/lib/services/http/depreciation/depreciation.service.d.ts +1 -1
  144. package/lib/services/http/document/document-folder/document-folder.service.d.ts +1 -1
  145. package/lib/services/http/document/document.service.d.ts +1 -1
  146. package/lib/services/http/firm/client-invite/client-invite.service.d.ts +1 -1
  147. package/lib/services/http/firm/client-movement/client-movement.service.d.ts +1 -1
  148. package/lib/services/http/firm/employee/employee.service.d.ts +1 -1
  149. package/lib/services/http/firm/employee-invite/employee-invite.service.d.ts +1 -1
  150. package/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.d.ts +1 -1
  151. package/lib/services/http/income-source/income-source.service.d.ts +1 -1
  152. package/lib/services/http/income-source/salary-forecast/salary-forecast.service.d.ts +1 -1
  153. package/lib/services/http/income-source/sole-forecast/sole-forecast.service.d.ts +1 -1
  154. package/lib/services/http/loan/loan.service.d.ts +1 -1
  155. package/lib/services/http/property/property-category/property-category.service.d.ts +1 -1
  156. package/lib/services/http/property/property-category-movement/property-category-movement.service.d.ts +1 -1
  157. package/lib/services/http/property/property-document/property-document.service.d.ts +1 -1
  158. package/lib/services/http/property/property-sale/property-sale.service.d.ts +1 -1
  159. package/lib/services/http/property/property-sale/tax-exemption/tax-exemption.service.d.ts +1 -1
  160. package/lib/services/http/property/property-share/property-share.service.d.ts +1 -1
  161. package/lib/services/http/property/property.service.d.ts +8 -11
  162. package/lib/services/http/rest/http-method.type.d.ts +1 -0
  163. package/lib/services/http/rest/index.d.ts +2 -0
  164. package/lib/services/http/rest/rest-method.type.d.ts +1 -0
  165. package/lib/services/http/rest/rest-old.service.d.ts +110 -0
  166. package/lib/services/http/rest/rest.service.d.ts +71 -62
  167. package/lib/services/http/service-notification/service-notification.service.d.ts +1 -1
  168. package/lib/services/http/sole/bas-report/bas-report.service.d.ts +1 -1
  169. package/lib/services/http/sole/sole-business/sole-business.service.d.ts +1 -1
  170. package/lib/services/http/sole/sole-business-activity/sole-business-activity.service.d.ts +1 -1
  171. package/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.d.ts +1 -1
  172. package/lib/services/http/sole/sole-business-loss/sole-business-loss.service.d.ts +1 -1
  173. package/lib/services/http/sole/sole-contact/sole-contact.service.d.ts +1 -1
  174. package/lib/services/http/sole/sole-invoice/sole-invoice.service.d.ts +1 -1
  175. package/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.d.ts +1 -1
  176. package/lib/services/http/subscription/service-price.service.d.ts +1 -1
  177. package/lib/services/http/tax-review/tax-review-history/tax-review-history.service.d.ts +1 -1
  178. package/lib/services/http/tax-review/tax-review.service.d.ts +1 -1
  179. package/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.d.ts +1 -1
  180. package/lib/services/http/transaction/transaction.service.d.ts +1 -1
  181. package/lib/services/http/user/user-event-setting/user-event-setting.service.d.ts +1 -1
  182. package/lib/services/http/user/user-event-type/user-event-type.service.d.ts +1 -1
  183. package/lib/services/http/user/users-invite/users-invite.service.d.ts +1 -1
  184. package/lib/services/http/vehicle/vehicle-claim.service.d.ts +1 -1
  185. package/lib/services/http/vehicle/vehicle-logbook.service.d.ts +1 -1
  186. package/lib/services/http/vehicle/vehicle.service.d.ts +1 -1
  187. package/package.json +1 -1
@@ -1,114 +1,123 @@
1
1
  import { Observable, ReplaySubject } from 'rxjs';
2
2
  import { HttpClient } from '@angular/common/http';
3
3
  import { EventDispatcherService } from '../../event/event-dispatcher.service';
4
- import { ToastService } from '../../toast/toast.service';
5
4
  import { IEventListener } from '../../../interfaces/event-listener.interface';
5
+ import { Collection } from '../../../collections/collection';
6
+ import { AbstractModel } from '../../../db/Models/abstract-model';
7
+ import { ObservableModel } from '../../../db/Models/observable-model';
8
+ import { RestMethod } from './rest-method.type';
9
+ import { HttpMethod } from './http-method.type';
6
10
  import * as i0 from "@angular/core";
7
11
  /**
8
12
  * Abstract base service that implements common services functionality
9
13
  * and describe abstract methods/properties that have to be implemented in child services
10
14
  * Model - entity service is working with
11
15
  * BaseModel - base entity model that extends by Model
12
- * @TODO TT-1777 Alex: refactor all services for work with collections instead of arrays
13
- * @TODO TT-1777 Alex: implement smart system of default toast messages
14
- * @TODO TT-1777 Alex: work not only with array/collection but with single objects
15
- * @TODO TT-1777 Alex: automatic events generation (eventDispatcher)
16
- * @TODO TT-1777 Alex: optional rest methods (not all services have all 4 methods)
16
+ * CollectionModel - entity collection class
17
17
  */
18
- export declare abstract class RestService<BaseModel, Model extends BaseModel> implements IEventListener {
18
+ export declare abstract class RestService<BaseModel extends AbstractModel, Model extends BaseModel, CollectionModel extends Collection<Model>> implements IEventListener {
19
19
  protected http: HttpClient;
20
20
  protected eventDispatcherService: EventDispatcherService;
21
21
  protected environment: any;
22
- protected toastService: ToastService;
23
- abstract url: string;
22
+ /**
23
+ * Url part for service entity API
24
+ */
25
+ protected abstract entityUrl: string;
26
+ /**
27
+ * Model class for instances creating
28
+ */
24
29
  abstract modelClass: any;
25
- protected cache: Model[];
26
- protected cacheSubject: ReplaySubject<Model[]>;
27
- protected isHydra: boolean;
28
- messageCreated: string;
29
- messageCreatedBatch: string;
30
- messageUpdated: string;
31
- messageUpdatedBatch: string;
32
- messageDeleted: string;
33
- messageDeletedBatch: string;
34
- constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any, toastService: ToastService);
35
30
  /**
36
- * get cached list of all instances
31
+ * Collection Model class for instances creating
37
32
  */
38
- get(): Observable<Model[]>;
33
+ abstract collectionClass: any;
39
34
  /**
40
- * get instance by id from cache
41
- * @param id ID of required item
35
+ * Cached array of service class instances
42
36
  */
43
- findById(id: number): Observable<Model>;
44
- find(id: number): Model;
37
+ protected cache: CollectionModel;
45
38
  /**
46
- * add new instance and update cache
39
+ * Subject for service cache
47
40
  */
48
- private create;
41
+ protected cacheSubject: ReplaySubject<CollectionModel>;
49
42
  /**
50
- * @TODO Alex TT-1777 rename to post
43
+ * Flag for work with API platform
51
44
  */
52
- add(model: Model, shouldUpdateCache?: boolean): Observable<Model>;
45
+ protected isApiPlatform: boolean;
53
46
  /**
54
- * @TODO Alex TT-1777 rename to upload
47
+ * List of methods unavailable for current API
55
48
  */
56
- postForm(file: File, params?: {
57
- [key: string]: string;
58
- }): Observable<Model>;
49
+ disabledMethods: RestMethod[];
50
+ constructor(http: HttpClient, eventDispatcherService: EventDispatcherService, environment: any);
51
+ protected get apiUrl(): string;
52
+ get(): Observable<CollectionModel>;
53
+ getSingle(): Observable<Model>;
59
54
  /**
60
- * Add several new items
61
- * @param models Array of new items for saving
62
- * @param queryParams query parameters for request
63
- * @TODO Alex TT-1777 rename to postBatch
55
+ * Create a new Model instance in database
64
56
  */
65
- addBatch(models: Model[], queryParams?: object): Observable<Model[]>;
57
+ post(model: Model): Observable<Model>;
66
58
  /**
67
- * Update item
68
- * @param model Existing instance for updating
69
- * @param queryParams query parameters for request
70
- * @TODO Alex TT-1777 rename to put
59
+ * Create multiple new Model instances in database
71
60
  */
72
- update(model: Model, queryParams?: object): Observable<Model>;
61
+ postBatch(models: Model[]): Observable<Model[]>;
73
62
  /**
74
- * Update several items
75
- * @param models Array of items for updating
76
- * @param queryParams query parameters for request
77
- * TODO Alex TT-1777 rename to putBatch
63
+ * Change an existing Model instance in database
78
64
  */
79
- updateBatch(models: Model[], queryParams?: object): Observable<Model[]>;
65
+ put(model: Model): Observable<Model>;
80
66
  /**
81
- * delete instance of class
82
- * @param model Class instance for deleting
67
+ * Change multiple existing Model instances in database
68
+ */
69
+ putBatch(models: Model[]): Observable<Model[]>;
70
+ /**
71
+ * Remove a Model instance from database
83
72
  */
84
73
  delete(model: Model): Observable<void>;
85
74
  /**
86
- * delete multiple instances of class
87
- * @param models Class instances array for deleting
75
+ * Remove multiple Model instances from database
88
76
  */
89
77
  deleteBatch(models: Model[]): Observable<void>;
90
78
  /**
91
- * clear service cache
79
+ * Refresh cache with actual backend data
92
80
  */
93
81
  resetCache(): void;
94
82
  /**
95
- * get list of base class instances directly from backend
83
+ * Get data from backend and fill the cache
84
+ */
85
+ protected fetch(): Observable<CollectionModel>;
86
+ /**
87
+ * Handle response data - update cache and dispatch event if it is needed
88
+ */
89
+ private handleResponse;
90
+ /**
91
+ * Update cache with passed items. Add/Update detects automatically, Delete via optional flag
96
92
  */
97
- protected fetch(): Observable<Model[]>;
93
+ protected updateCache(items: Model[], method: HttpMethod): void;
98
94
  /**
99
- * Update cache subject with current cache array value
95
+ * Generate and dispatch rest event
100
96
  */
101
- protected updateCache(): void;
97
+ protected dispatchEvent(method: HttpMethod, items: Model[]): void;
102
98
  /**
103
99
  * Create new instance of class
104
- * @param model The class for which you want to create an instance
105
- * @param baseModel base model instance that we will use as constructor options
100
+ * @param model The class whose instance to be created
101
+ * @param plain Single object or array from which will be created model instance(s)
102
+ */
103
+ protected createModelInstance(model: new (bm: BaseModel) => Model, plain: BaseModel): Model;
104
+ protected createCollectionInstance(collectionClass: new (items: Model[]) => CollectionModel, items: Model[]): CollectionModel;
105
+ /**
106
+ * Check if method is not disabled. Throw exception otherwise.
107
+ * Some entities does not have endpoints for all methods.
108
+ */
109
+ private handleAccessError;
110
+ /**
111
+ * Subscribe to http events and run callback
112
+ * @param type The class whose changes should be listened for
113
+ * @param methods The list of http methods should be listened for
114
+ * @param callback The function to be called when event triggered
106
115
  */
107
- protected createModelInstance(model: new (bm: BaseModel) => Model, baseModel: BaseModel): Model;
116
+ protected listenCSE(modelClass: typeof ObservableModel, methods: RestMethod[], callback: Function): void;
108
117
  /**
109
118
  * Method that call all listeners. Empty by default. Should be redefined by child services if required
110
119
  */
111
120
  listenEvents(): void;
112
- static ɵfac: i0.ɵɵFactoryDeclaration<RestService<any, any>, never>;
113
- static ɵprov: i0.ɵɵInjectableDeclaration<RestService<any, any>>;
121
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestService<any, any, any>, never>;
122
+ static ɵprov: i0.ɵɵInjectableDeclaration<RestService<any, any, any>>;
114
123
  }
@@ -1,7 +1,7 @@
1
1
  import { ServiceNotification as NotificationBase } from '../../../db/Models/service-notification';
2
2
  import { Notification } from '../../../models/notification/notification';
3
3
  import { HttpClient } from '@angular/common/http';
4
- import { RestService } from '../rest/rest.service';
4
+ import { RestService } from '../rest/rest-old.service';
5
5
  import { EventDispatcherService } from '../../event/event-dispatcher.service';
6
6
  import { SseService } from '../../event/sse.service';
7
7
  import { ToastService } from '../../toast/toast.service';
@@ -1,4 +1,4 @@
1
- import { RestService } from '../../rest/rest.service';
1
+ import { RestService } from '../../rest/rest-old.service';
2
2
  import { BasReport as BasReportBase } from '../../../../db/Models/sole/bas-report';
3
3
  import { BasReport } from '../../../../models';
4
4
  import * as i0 from "@angular/core";
@@ -1,4 +1,4 @@
1
- import { RestService } from '../../rest/rest.service';
1
+ import { RestService } from '../../rest/rest-old.service';
2
2
  import { SoleBusiness as SoleBusinessBase } from '../../../../db/Models/sole/sole-business';
3
3
  import { SoleBusiness } from '../../../../models';
4
4
  import { Observable } from 'rxjs';
@@ -1,4 +1,4 @@
1
- import { RestService } from '../../rest/rest.service';
1
+ import { RestService } from '../../rest/rest-old.service';
2
2
  import { SoleBusinessActivity as SoleBusinessActivityBase } from '../../../../db/Models/sole/sole-business-activity';
3
3
  import { SoleBusinessActivity } from '../../../../models';
4
4
  import * as i0 from "@angular/core";
@@ -1,4 +1,4 @@
1
- import { RestService } from '../../../rest/rest.service';
1
+ import { RestService } from '../../../rest/rest-old.service';
2
2
  import { SoleBusinessLossOffsetRule } from '../../../../../models';
3
3
  import * as i0 from "@angular/core";
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { RestService } from '../../rest/rest.service';
1
+ import { RestService } from '../../rest/rest-old.service';
2
2
  import { SoleBusinessLoss as SoleBusinessLossBase } from '../../../../db/Models/sole/sole-business-loss';
3
3
  import { SoleBusinessLoss } from '../../../../models';
4
4
  import { IEventListener } from '../../../../interfaces/event-listener.interface';
@@ -1,4 +1,4 @@
1
- import { RestService } from '../../rest/rest.service';
1
+ import { RestService } from '../../rest/rest-old.service';
2
2
  import { SoleContact as SoleContactBase } from '../../../../db/Models/sole/sole-contact';
3
3
  import { SoleContact } from '../../../../models';
4
4
  import * as i0 from "@angular/core";
@@ -1,4 +1,4 @@
1
- import { RestService } from '../../rest/rest.service';
1
+ import { RestService } from '../../rest/rest-old.service';
2
2
  import { SoleInvoice as SoleInvoiceBase } from '../../../../db/Models/sole/sole-invoice';
3
3
  import { SoleInvoice } from '../../../../models';
4
4
  import { SoleInvoiceStatusesEnum } from '../../../../db/Enums/sole-invoice-statuses.enum';
@@ -1,4 +1,4 @@
1
- import { RestService } from '../../rest/rest.service';
1
+ import { RestService } from '../../rest/rest-old.service';
2
2
  import { SoleInvoiceTemplate as SoleInvoiceTemplateBase } from '../../../../db/Models/sole/sole-invoice-template';
3
3
  import { SoleInvoiceTemplate } from '../../../../models';
4
4
  import * as i0 from "@angular/core";
@@ -1,6 +1,6 @@
1
1
  import { ServicePrice as ServicePriceBase } from '../../../db/Models/subscription/service-price';
2
2
  import { ServicePrice } from '../../../models/service-subscription/service-price';
3
- import { RestService } from '../rest/rest.service';
3
+ import { RestService } from '../rest/rest-old.service';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Service that handling banks logic
@@ -1,5 +1,5 @@
1
1
  import { TaxReview as TaxReviewBase } from '../../../../db/Models/firm/accountant/tax-review';
2
- import { RestService } from '../../rest/rest.service';
2
+ import { RestService } from '../../rest/rest-old.service';
3
3
  import { TaxReview } from '../../../../models/tax-review/tax-review';
4
4
  import { IEventListener } from '../../../../interfaces/event-listener.interface';
5
5
  import * as i0 from "@angular/core";
@@ -1,6 +1,6 @@
1
1
  import { TaxReview as TaxReviewBase } from '../../../db/Models/firm/accountant/tax-review';
2
2
  import { Observable } from 'rxjs';
3
- import { RestService } from '../rest/rest.service';
3
+ import { RestService } from '../rest/rest-old.service';
4
4
  import { TaxReview } from '../../../models/tax-review/tax-review';
5
5
  import { IEventListener } from '../../../interfaces/event-listener.interface';
6
6
  import * as i0 from "@angular/core";
@@ -1,7 +1,7 @@
1
1
  import { TransactionAllocation as TransactionAllocationBase } from '../../../../db/Models/transaction/transaction-allocation';
2
2
  import { TransactionAllocation } from '../../../../models/transaction/transaction-allocation';
3
3
  import { Transaction } from '../../../../models/transaction/transaction';
4
- import { RestService } from '../../rest/rest.service';
4
+ import { RestService } from '../../rest/rest-old.service';
5
5
  import { Observable } from 'rxjs';
6
6
  import { IEventListener } from '../../../../interfaces/event-listener.interface';
7
7
  import * as i0 from "@angular/core";
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Transaction as TransactionBase } from '../../../db/Models/transaction/transaction';
4
- import { RestService } from '../rest/rest.service';
4
+ import { RestService } from '../rest/rest-old.service';
5
5
  import { Transaction } from '../../../models/transaction/transaction';
6
6
  import { ChartAccounts } from '../../../models/chart-accounts/chart-accounts';
7
7
  import { ChartAccountsTaxLabelsEnum } from '../../../models/chart-accounts/chart-accounts-tax-labels.enum';
@@ -1,6 +1,6 @@
1
1
  import { UserEventSetting } from '../../../../models/user-event/user-event-setting';
2
2
  import { UserEventSetting as UserEventSettingBase } from '../../../../db/Models/user/user-event-setting';
3
- import { RestService } from '../../rest/rest.service';
3
+ import { RestService } from '../../rest/rest-old.service';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class UserEventSettingService extends RestService<UserEventSettingBase, UserEventSetting> {
@@ -1,6 +1,6 @@
1
1
  import { UserEventType as UserEventTypeBase } from '../../../../db/Models/user/user-event-type';
2
2
  import { UserEventType } from '../../../../models/user-event/user-event-type';
3
- import { RestService } from '../../rest/rest.service';
3
+ import { RestService } from '../../rest/rest-old.service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class UserEventTypeService extends RestService<UserEventTypeBase, UserEventType> {
6
6
  modelClass: typeof UserEventType;
@@ -1,4 +1,4 @@
1
- import { RestService } from '../../rest/rest.service';
1
+ import { RestService } from '../../rest/rest-old.service';
2
2
  import { RegistrationInvite as RegistrationInviteBase } from '../../../../db/Models/user/registration-invite';
3
3
  import { RegistrationInvite } from '../../../../models/registration-invite/registration-invite';
4
4
  import * as i0 from "@angular/core";
@@ -1,6 +1,6 @@
1
1
  import { VehicleClaim as VehicleClaimBase } from '../../../db/Models/vehicle/vehicle-claim';
2
2
  import { VehicleClaim } from '../../../models';
3
- import { RestService } from '../rest/rest.service';
3
+ import { RestService } from '../rest/rest-old.service';
4
4
  import { IEventListener } from '../../../interfaces/event-listener.interface';
5
5
  import { Observable } from 'rxjs';
6
6
  import * as i0 from "@angular/core";
@@ -1,6 +1,6 @@
1
1
  import { VehicleLogbook as VehicleLogbookBase } from '../../../db/Models/vehicle/vehicle-logbook';
2
2
  import { VehicleLogbook } from '../../../models';
3
- import { RestService } from '../rest/rest.service';
3
+ import { RestService } from '../rest/rest-old.service';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Vehicle logbook service. Allows user to add, update or delete vehicle trips
@@ -1,6 +1,6 @@
1
1
  import { Vehicle as VehicleBase } from '../../../db/Models/vehicle/vehicle';
2
2
  import { Vehicle } from '../../../models';
3
- import { RestService } from '../rest/rest.service';
3
+ import { RestService } from '../rest/rest-old.service';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Service that allows to work with WorkTank operations
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.28.96",
3
+ "version": "0.28.98",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",