taxtank-core 0.27.0 → 0.27.1
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.
- package/bundles/taxtank-core.umd.js +281 -155
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/models/endpoint/endpoints.const.js +3 -1
- package/esm2015/lib/models/event/app-event-type.enum.js +45 -42
- package/esm2015/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.js +40 -0
- package/esm2015/lib/services/http/depreciation/depreciation.service.js +61 -22
- package/esm2015/lib/services/http/depreciation/index.js +4 -0
- package/esm2015/lib/services/http/receipt/receipt.service.js +76 -0
- package/esm2015/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.js +20 -50
- package/esm2015/lib/services/http/transaction/transaction.service.js +12 -11
- package/esm2015/public-api.js +2 -3
- package/fesm2015/taxtank-core.js +257 -146
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/models/event/app-event-type.enum.d.ts +44 -41
- package/lib/services/http/depreciation/depreciation-receipt/depreciation-receipt.service.d.ts +28 -0
- package/lib/services/http/depreciation/depreciation.service.d.ts +15 -7
- package/lib/services/http/depreciation/index.d.ts +3 -0
- package/lib/services/http/receipt/receipt.service.d.ts +62 -0
- package/lib/services/http/transaction/transaction-receipt/transaction-receipt.service.d.ts +21 -21
- package/lib/services/http/transaction/transaction.service.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -2
package/fesm2015/taxtank-core.js
CHANGED
|
@@ -211,47 +211,50 @@ var AppEventTypeEnum;
|
|
|
211
211
|
AppEventTypeEnum[AppEventTypeEnum["CURRENT_USER_GET_FAILED"] = 11] = "CURRENT_USER_GET_FAILED";
|
|
212
212
|
AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_DELETED"] = 12] = "DEPRECIATION_DELETED";
|
|
213
213
|
AppEventTypeEnum[AppEventTypeEnum["DEPRECIATIONS_CREATED"] = 13] = "DEPRECIATIONS_CREATED";
|
|
214
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
215
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
216
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
217
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
218
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
219
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
220
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
221
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
222
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
223
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
224
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
225
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
226
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
227
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
228
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
229
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
230
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
231
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
232
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
233
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
234
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
235
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
236
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
237
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
238
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
239
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
240
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
241
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
242
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
243
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
244
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
245
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
246
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
247
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
248
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
249
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
250
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
251
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
252
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
253
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
254
|
-
AppEventTypeEnum[AppEventTypeEnum["
|
|
214
|
+
AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_UPDATED_WITH_RECEIPT"] = 14] = "DEPRECIATION_UPDATED_WITH_RECEIPT";
|
|
215
|
+
AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT"] = 15] = "DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT";
|
|
216
|
+
AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_RECEIPT_CREATED"] = 16] = "DEPRECIATION_RECEIPT_CREATED";
|
|
217
|
+
AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_RECEIPT_DELETED"] = 17] = "DEPRECIATION_RECEIPT_DELETED";
|
|
218
|
+
AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_CREATED"] = 18] = "INCOME_SOURCES_CREATED";
|
|
219
|
+
AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_UPDATED"] = 19] = "INCOME_SOURCES_UPDATED";
|
|
220
|
+
AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_CREATED"] = 20] = "INCOME_SOURCES_FORECASTS_CREATED";
|
|
221
|
+
AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_UPDATED"] = 21] = "INCOME_SOURCES_FORECASTS_UPDATED";
|
|
222
|
+
AppEventTypeEnum[AppEventTypeEnum["LOAN_UPDATED"] = 22] = "LOAN_UPDATED";
|
|
223
|
+
AppEventTypeEnum[AppEventTypeEnum["LOAN_PAYOUT_UPDATED"] = 23] = "LOAN_PAYOUT_UPDATED";
|
|
224
|
+
AppEventTypeEnum[AppEventTypeEnum["MESSAGE_CREATED"] = 24] = "MESSAGE_CREATED";
|
|
225
|
+
AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_CREATED"] = 25] = "MESSAGE_FILE_CREATED";
|
|
226
|
+
AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_DELETED"] = 26] = "MESSAGE_FILE_DELETED";
|
|
227
|
+
AppEventTypeEnum[AppEventTypeEnum["NOTIFICATION_ADDED"] = 27] = "NOTIFICATION_ADDED";
|
|
228
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED_WITH_DOCUMENT"] = 28] = "PROPERTY_UPDATED_WITH_DOCUMENT";
|
|
229
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DOCUMENT_ADDED"] = 29] = "PROPERTY_DOCUMENT_ADDED";
|
|
230
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_CREATED"] = 30] = "PROPERTY_MOVEMENT_CREATED";
|
|
231
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_UPDATED"] = 31] = "PROPERTY_MOVEMENT_UPDATED";
|
|
232
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_DELETED"] = 32] = "PROPERTY_MOVEMENT_DELETED";
|
|
233
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SHARE_UPDATED"] = 33] = "PROPERTY_SHARE_UPDATED";
|
|
234
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_ADDED"] = 34] = "PROPERTY_SALE_ADDED";
|
|
235
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_DELETED"] = 35] = "PROPERTY_SALE_DELETED";
|
|
236
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_ADDED"] = 36] = "PROPERTY_SUBSCRIPTION_ADDED";
|
|
237
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_DELETED"] = 37] = "PROPERTY_SUBSCRIPTION_DELETED";
|
|
238
|
+
AppEventTypeEnum[AppEventTypeEnum["PROPERTY_VALUATION_DOCUMENT_CREATED"] = 38] = "PROPERTY_VALUATION_DOCUMENT_CREATED";
|
|
239
|
+
AppEventTypeEnum[AppEventTypeEnum["SERVICE_SUBSCRIPTION_UPDATED"] = 39] = "SERVICE_SUBSCRIPTION_UPDATED";
|
|
240
|
+
AppEventTypeEnum[AppEventTypeEnum["TAX_REVIEW_UPDATED"] = 40] = "TAX_REVIEW_UPDATED";
|
|
241
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_CREATED"] = 41] = "TRANSACTION_CREATED";
|
|
242
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_DELETED"] = 42] = "TRANSACTION_DELETED";
|
|
243
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED"] = 43] = "TRANSACTION_UPDATED";
|
|
244
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_RECEIPT"] = 44] = "TRANSACTION_UPDATED_WITH_RECEIPT";
|
|
245
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_DELETED_RECEIPT"] = 45] = "TRANSACTION_UPDATED_WITH_DELETED_RECEIPT";
|
|
246
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_CREATED"] = 46] = "TRANSACTION_RECEIPT_CREATED";
|
|
247
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_DELETED"] = 47] = "TRANSACTION_RECEIPT_DELETED";
|
|
248
|
+
AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 48] = "TRANSACTIONS_CREATED";
|
|
249
|
+
AppEventTypeEnum[AppEventTypeEnum["USER_UPDATED"] = 49] = "USER_UPDATED";
|
|
250
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 50] = "VEHICLE_CLAIM_UPDATED";
|
|
251
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 51] = "VEHICLE_CLAIM_CREATED";
|
|
252
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 52] = "VEHICLE_CLAIM_DETAILS_UPDATED";
|
|
253
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 53] = "VEHICLE_CLAIM_DETAILS_CREATED";
|
|
254
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 54] = "VEHICLE_LOGBOOK_CREATED";
|
|
255
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 55] = "VEHICLE_LOGBOOK_UPDATED";
|
|
256
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 56] = "VEHICLE_LOGBOOK_DELETED";
|
|
257
|
+
AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 57] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
|
|
255
258
|
})(AppEventTypeEnum || (AppEventTypeEnum = {}));
|
|
256
259
|
|
|
257
260
|
class EventDispatcherService {
|
|
@@ -601,6 +604,8 @@ const ENDPOINTS = {
|
|
|
601
604
|
DEPRECIATIONS_GET: new Endpoint('GET', '\\/depreciations'),
|
|
602
605
|
DEPRECIATIONS_POST: new Endpoint('POST', '\\/depreciations'),
|
|
603
606
|
DEPRECIATIONS_PUT: new Endpoint('PUT', '\\/depreciations\\/\\d+'),
|
|
607
|
+
DEPRECIATION_RECEIPTS_POST: new Endpoint('POST', '\\/depreciations\\/\\d+\\/receipts'),
|
|
608
|
+
DEPRECIATION_RECEIPTS_DELETE: new Endpoint('DELETE', '\\/depreciations\\/\\d+\\/receipts\\/\\d+'),
|
|
604
609
|
EMPLOYEES_GET: new Endpoint('GET', '\\/employees'),
|
|
605
610
|
EMPLOYEES_INVITES_GET: new Endpoint('GET', '\\/employees\\/\\invites'),
|
|
606
611
|
EMPLOYEES_INVITES_DELETE: new Endpoint('DELETE', '\\/employees\\/\\invites\\/\\d+'),
|
|
@@ -9728,57 +9733,94 @@ function enumToList(data) {
|
|
|
9728
9733
|
return list;
|
|
9729
9734
|
}
|
|
9730
9735
|
|
|
9731
|
-
|
|
9732
|
-
|
|
9736
|
+
/**
|
|
9737
|
+
* Abstract service class to work with transactions-like receipt files (transactions, depreciations, e.t.c.)
|
|
9738
|
+
* @Todo TT-2191 refactor service when receipts API will be updated
|
|
9739
|
+
*/
|
|
9740
|
+
class ReceiptService {
|
|
9741
|
+
constructor(http, eventDispatcherService, environment, toastService) {
|
|
9733
9742
|
this.http = http;
|
|
9734
9743
|
this.eventDispatcherService = eventDispatcherService;
|
|
9735
9744
|
this.environment = environment;
|
|
9736
|
-
this.
|
|
9737
|
-
|
|
9745
|
+
this.toastService = toastService;
|
|
9746
|
+
}
|
|
9747
|
+
listenEvents() {
|
|
9748
|
+
this.listenParentWithReceiptUpdated();
|
|
9749
|
+
this.listenParentWithoutReceiptUpdated();
|
|
9738
9750
|
}
|
|
9739
9751
|
/**
|
|
9740
|
-
*
|
|
9752
|
+
* Entity is necessary to take the ID and the receipt file from it.
|
|
9741
9753
|
*/
|
|
9742
|
-
add(
|
|
9754
|
+
add(receiptEntity) {
|
|
9743
9755
|
const formData = new FormData();
|
|
9744
|
-
formData.append('file',
|
|
9745
|
-
this.http.post(`${this.environment.apiV2}
|
|
9746
|
-
.
|
|
9747
|
-
this.
|
|
9748
|
-
|
|
9756
|
+
formData.append('file', receiptEntity.file);
|
|
9757
|
+
return this.http.post(`${this.environment.apiV2}/${this.entityType}/${receiptEntity.id}/receipts`, formData)
|
|
9758
|
+
.pipe(map((receipt) => {
|
|
9759
|
+
const uploadedReceipt = this.createModelInstance(receipt);
|
|
9760
|
+
this.eventDispatcherService.dispatch(new AppEvent(this.receiptCreatedEvent, uploadedReceipt));
|
|
9761
|
+
return uploadedReceipt;
|
|
9762
|
+
}));
|
|
9763
|
+
}
|
|
9764
|
+
delete(receiptEntity) {
|
|
9765
|
+
return this.http.delete(`${this.environment.apiV2}/${this.entityType}/${receiptEntity.id}/receipts/${receiptEntity.receipt.id}`)
|
|
9766
|
+
.pipe(map(() => {
|
|
9767
|
+
this.eventDispatcherService.dispatch(new AppEvent(this.receiptDeletedEvent, receiptEntity));
|
|
9768
|
+
}));
|
|
9749
9769
|
}
|
|
9750
9770
|
/**
|
|
9751
|
-
*
|
|
9771
|
+
* Parent entity was updated with attached receipt
|
|
9752
9772
|
*/
|
|
9753
|
-
|
|
9754
|
-
this.
|
|
9755
|
-
.subscribe(() => {
|
|
9756
|
-
this.
|
|
9757
|
-
});
|
|
9758
|
-
}
|
|
9759
|
-
listenEvents() {
|
|
9760
|
-
this.listenTransactionWithReceiptUpdated();
|
|
9761
|
-
this.listenTransactionWithoutReceiptUpdated();
|
|
9762
|
-
}
|
|
9763
|
-
listenTransactionWithReceiptUpdated() {
|
|
9764
|
-
this.eventDispatcherService.on([
|
|
9765
|
-
AppEventTypeEnum.TRANSACTION_CREATED_WITH_NEW_RECEIPT,
|
|
9766
|
-
AppEventTypeEnum.TRANSACTION_UPDATED_WITH_NEW_RECEIPT
|
|
9767
|
-
]).subscribe((transaction) => {
|
|
9768
|
-
this.add(transaction);
|
|
9773
|
+
listenParentWithReceiptUpdated() {
|
|
9774
|
+
this.eventDispatcherService.on(this.entityUpdatedWithReceiptEvent)
|
|
9775
|
+
.subscribe((receiptEntity) => {
|
|
9776
|
+
this.add(receiptEntity).subscribe();
|
|
9769
9777
|
});
|
|
9770
9778
|
}
|
|
9771
9779
|
/**
|
|
9772
|
-
*
|
|
9780
|
+
* Parent entity was updated, but receipt was removed
|
|
9773
9781
|
*/
|
|
9774
|
-
|
|
9775
|
-
this.eventDispatcherService.on(
|
|
9776
|
-
.subscribe((
|
|
9777
|
-
this.delete(
|
|
9782
|
+
listenParentWithoutReceiptUpdated() {
|
|
9783
|
+
this.eventDispatcherService.on(this.entityUpdatedWithDeletedReceiptEvent)
|
|
9784
|
+
.subscribe((receiptEntity) => {
|
|
9785
|
+
this.delete(receiptEntity).subscribe();
|
|
9778
9786
|
});
|
|
9779
9787
|
}
|
|
9788
|
+
createModelInstance(data) {
|
|
9789
|
+
return plainToClass(this.modelClass, data);
|
|
9790
|
+
}
|
|
9791
|
+
}
|
|
9792
|
+
ReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9793
|
+
ReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ReceiptService, providedIn: 'root' });
|
|
9794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: ReceiptService, decorators: [{
|
|
9795
|
+
type: Injectable,
|
|
9796
|
+
args: [{
|
|
9797
|
+
providedIn: 'root'
|
|
9798
|
+
}]
|
|
9799
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
|
|
9800
|
+
type: Inject,
|
|
9801
|
+
args: ['environment']
|
|
9802
|
+
}] }, { type: ToastService }]; } });
|
|
9803
|
+
|
|
9804
|
+
/**
|
|
9805
|
+
* @Todo TT-2191 refactor service when receipts API will be updated
|
|
9806
|
+
*/
|
|
9807
|
+
class TransactionReceiptService extends ReceiptService {
|
|
9808
|
+
constructor(http, eventDispatcherService, environment, toastService) {
|
|
9809
|
+
super(http, eventDispatcherService, environment, toastService);
|
|
9810
|
+
this.http = http;
|
|
9811
|
+
this.eventDispatcherService = eventDispatcherService;
|
|
9812
|
+
this.environment = environment;
|
|
9813
|
+
this.toastService = toastService;
|
|
9814
|
+
this.modelClass = TransactionReceipt;
|
|
9815
|
+
this.entityType = AssetEntityTypeEnum.TRANSACTIONS;
|
|
9816
|
+
this.receiptCreatedEvent = AppEventTypeEnum.TRANSACTION_RECEIPT_CREATED;
|
|
9817
|
+
this.receiptDeletedEvent = AppEventTypeEnum.TRANSACTION_RECEIPT_DELETED;
|
|
9818
|
+
this.entityUpdatedWithReceiptEvent = AppEventTypeEnum.TRANSACTION_UPDATED_WITH_RECEIPT;
|
|
9819
|
+
this.entityUpdatedWithDeletedReceiptEvent = AppEventTypeEnum.TRANSACTION_UPDATED_WITH_DELETED_RECEIPT;
|
|
9820
|
+
this.listenEvents();
|
|
9821
|
+
}
|
|
9780
9822
|
}
|
|
9781
|
-
TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9823
|
+
TransactionReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9782
9824
|
TransactionReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionReceiptService, providedIn: 'root' });
|
|
9783
9825
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionReceiptService, decorators: [{
|
|
9784
9826
|
type: Injectable,
|
|
@@ -9788,7 +9830,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
9788
9830
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
|
|
9789
9831
|
type: Inject,
|
|
9790
9832
|
args: ['environment']
|
|
9791
|
-
}] }]; } });
|
|
9833
|
+
}] }, { type: ToastService }]; } });
|
|
9792
9834
|
|
|
9793
9835
|
/**
|
|
9794
9836
|
* Service for transactions business logic
|
|
@@ -9905,10 +9947,10 @@ class TransactionService extends RestService {
|
|
|
9905
9947
|
transactions.forEach((transaction, index) => {
|
|
9906
9948
|
// @TODO backend: need to upload file in the same backend endpoint with transaction add/update
|
|
9907
9949
|
// check if passed receipt and upload file
|
|
9908
|
-
if (transaction.file
|
|
9950
|
+
if (transaction.file) {
|
|
9909
9951
|
transaction.id = response[index].id;
|
|
9910
9952
|
addedTransactions[index].file = transaction.file;
|
|
9911
|
-
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.
|
|
9953
|
+
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.TRANSACTION_UPDATED_WITH_RECEIPT, addedTransactions[index]));
|
|
9912
9954
|
}
|
|
9913
9955
|
// @TODO Viktor: implement API for saving of nested transactions
|
|
9914
9956
|
// add child transactions if exist
|
|
@@ -9941,9 +9983,9 @@ class TransactionService extends RestService {
|
|
|
9941
9983
|
const updatedTransaction = plainToClass(Transaction, response);
|
|
9942
9984
|
// @TODO need to upload file in the same backend endpoint with transaction add/update
|
|
9943
9985
|
// check if passed new receipt and upload file
|
|
9944
|
-
if (transaction.file
|
|
9986
|
+
if (transaction.file) {
|
|
9945
9987
|
updatedTransaction.file = transaction.file;
|
|
9946
|
-
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.
|
|
9988
|
+
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.TRANSACTION_UPDATED_WITH_RECEIPT, updatedTransaction));
|
|
9947
9989
|
// receipt file was removed from form - we should delete receipt from transaction
|
|
9948
9990
|
}
|
|
9949
9991
|
else if (!transaction.file && transaction.receipt) {
|
|
@@ -9967,8 +10009,7 @@ class TransactionService extends RestService {
|
|
|
9967
10009
|
this.addBatch(childTransactionsToAdd).subscribe();
|
|
9968
10010
|
}
|
|
9969
10011
|
}
|
|
9970
|
-
|
|
9971
|
-
this.updateCache();
|
|
10012
|
+
this.replaceInCache(updatedTransaction);
|
|
9972
10013
|
return updatedTransaction;
|
|
9973
10014
|
}));
|
|
9974
10015
|
}
|
|
@@ -10082,16 +10123,14 @@ class TransactionService extends RestService {
|
|
|
10082
10123
|
// we don't need to keep file after save
|
|
10083
10124
|
transactionToUpdate.file = null;
|
|
10084
10125
|
transactionToUpdate.receipt = transactionReceipt;
|
|
10085
|
-
|
|
10086
|
-
this.updateCache();
|
|
10126
|
+
this.replaceInCache(transactionToUpdate);
|
|
10087
10127
|
});
|
|
10088
10128
|
}
|
|
10089
10129
|
listenReceiptDeleted() {
|
|
10090
10130
|
this.eventDispatcherService.on(AppEventTypeEnum.TRANSACTION_RECEIPT_DELETED).subscribe((transaction) => {
|
|
10091
10131
|
const transactionToUpdate = this.find(transaction.id);
|
|
10092
10132
|
transactionToUpdate.receipt = null;
|
|
10093
|
-
|
|
10094
|
-
this.updateCache();
|
|
10133
|
+
this.replaceInCache(transactionToUpdate);
|
|
10095
10134
|
});
|
|
10096
10135
|
}
|
|
10097
10136
|
listenVehicleClaimChanges() {
|
|
@@ -10104,6 +10143,10 @@ class TransactionService extends RestService {
|
|
|
10104
10143
|
this.resetCache();
|
|
10105
10144
|
});
|
|
10106
10145
|
}
|
|
10146
|
+
replaceInCache(transactionToReplace) {
|
|
10147
|
+
replace(this.cache, transactionToReplace);
|
|
10148
|
+
this.updateCache();
|
|
10149
|
+
}
|
|
10107
10150
|
}
|
|
10108
10151
|
TransactionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: TransactionReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10109
10152
|
TransactionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: TransactionService, providedIn: 'root' });
|
|
@@ -11193,62 +11236,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
|
|
|
11193
11236
|
}] }]; } });
|
|
11194
11237
|
|
|
11195
11238
|
/**
|
|
11196
|
-
*
|
|
11239
|
+
* @Todo TT-2191 refactor service when receipts API will be updated
|
|
11197
11240
|
*/
|
|
11198
|
-
class
|
|
11199
|
-
constructor(http, environment) {
|
|
11241
|
+
class DepreciationReceiptService extends ReceiptService {
|
|
11242
|
+
constructor(http, eventDispatcherService, environment, toastService) {
|
|
11243
|
+
super(http, eventDispatcherService, environment, toastService);
|
|
11200
11244
|
this.http = http;
|
|
11245
|
+
this.eventDispatcherService = eventDispatcherService;
|
|
11201
11246
|
this.environment = environment;
|
|
11202
|
-
this.
|
|
11203
|
-
|
|
11204
|
-
|
|
11205
|
-
this.
|
|
11206
|
-
this.
|
|
11207
|
-
|
|
11208
|
-
|
|
11209
|
-
|
|
11210
|
-
});
|
|
11211
|
-
this.cacheSubject.next(this.cache);
|
|
11212
|
-
});
|
|
11213
|
-
return this.cacheSubject.asObservable();
|
|
11214
|
-
}
|
|
11215
|
-
add(capitalProject, propertyId) {
|
|
11216
|
-
return this.http.post(`${this.environment.apiV2}/properties/${propertyId}/depreciation-capital-projects`, capitalProject)
|
|
11217
|
-
.pipe(map((capitalProjectBase) => {
|
|
11218
|
-
this.cache.push(plainToClass(DepreciationCapitalProject, capitalProjectBase));
|
|
11219
|
-
this.cacheSubject.next(this.cache);
|
|
11220
|
-
}));
|
|
11221
|
-
}
|
|
11222
|
-
update(capitalProject, propertyId) {
|
|
11223
|
-
return this.http.put(`${this.environment.apiV2}/properties/${propertyId}/depreciation-capital-projects/${capitalProject.id}`, capitalProject)
|
|
11224
|
-
.pipe(map((capitalProjectBase) => {
|
|
11225
|
-
replace(this.cache, plainToClass(DepreciationCapitalProject, capitalProjectBase));
|
|
11226
|
-
this.cacheSubject.next(this.cache);
|
|
11227
|
-
}));
|
|
11228
|
-
}
|
|
11229
|
-
delete(capitalProject, propertyId) {
|
|
11230
|
-
return this.http.delete(`${this.environment.apiV2}/properties/${propertyId}/depreciation-capital-projects/${capitalProject.id}`)
|
|
11231
|
-
.pipe(map(() => {
|
|
11232
|
-
this.cache = this.cache.filter((item) => capitalProject.id !== item.id);
|
|
11233
|
-
this.cacheSubject.next(this.cache);
|
|
11234
|
-
}));
|
|
11247
|
+
this.toastService = toastService;
|
|
11248
|
+
this.modelClass = DepreciationReceipt;
|
|
11249
|
+
this.entityType = AssetEntityTypeEnum.DEPRECIATIONS;
|
|
11250
|
+
this.receiptCreatedEvent = AppEventTypeEnum.DEPRECIATION_RECEIPT_CREATED;
|
|
11251
|
+
this.receiptDeletedEvent = AppEventTypeEnum.DEPRECIATION_RECEIPT_DELETED;
|
|
11252
|
+
this.entityUpdatedWithDeletedReceiptEvent = AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT;
|
|
11253
|
+
this.entityUpdatedWithReceiptEvent = AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_RECEIPT;
|
|
11254
|
+
this.listenEvents();
|
|
11235
11255
|
}
|
|
11236
11256
|
}
|
|
11237
|
-
|
|
11238
|
-
|
|
11239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type:
|
|
11257
|
+
DepreciationReceiptService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationReceiptService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11258
|
+
DepreciationReceiptService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationReceiptService, providedIn: 'root' });
|
|
11259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationReceiptService, decorators: [{
|
|
11240
11260
|
type: Injectable,
|
|
11241
11261
|
args: [{
|
|
11242
11262
|
providedIn: 'root'
|
|
11243
11263
|
}]
|
|
11244
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
11264
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
|
|
11245
11265
|
type: Inject,
|
|
11246
11266
|
args: ['environment']
|
|
11247
|
-
}] }]; } });
|
|
11267
|
+
}] }, { type: ToastService }]; } });
|
|
11248
11268
|
|
|
11249
11269
|
class DepreciationService extends RestService {
|
|
11250
|
-
constructor() {
|
|
11251
|
-
super(
|
|
11270
|
+
constructor(http, eventDispatcherService, environment, toastService, depreciationReceiptService) {
|
|
11271
|
+
super(http, eventDispatcherService, environment, toastService);
|
|
11272
|
+
this.http = http;
|
|
11273
|
+
this.eventDispatcherService = eventDispatcherService;
|
|
11274
|
+
this.environment = environment;
|
|
11275
|
+
this.toastService = toastService;
|
|
11276
|
+
this.depreciationReceiptService = depreciationReceiptService;
|
|
11252
11277
|
this.modelClass = Depreciation;
|
|
11253
11278
|
this.url = 'depreciations';
|
|
11254
11279
|
}
|
|
@@ -11269,15 +11294,41 @@ class DepreciationService extends RestService {
|
|
|
11269
11294
|
*/
|
|
11270
11295
|
addBatch(depreciations) {
|
|
11271
11296
|
return super.addBatch(depreciations).pipe(map((newDepreciations) => {
|
|
11297
|
+
depreciations.forEach((depreciation, index) => {
|
|
11298
|
+
// @TODO backend: need to upload file in the same backend endpoint with depreciation add/update
|
|
11299
|
+
// check if passed receipt and upload file
|
|
11300
|
+
if (depreciation.file && (depreciation.file instanceof File)) {
|
|
11301
|
+
depreciation.id = newDepreciations[index].id;
|
|
11302
|
+
newDepreciations[index].file = depreciation.file;
|
|
11303
|
+
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_RECEIPT, newDepreciations[index]));
|
|
11304
|
+
}
|
|
11305
|
+
});
|
|
11272
11306
|
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.DEPRECIATIONS_CREATED, newDepreciations));
|
|
11273
11307
|
return newDepreciations;
|
|
11274
11308
|
}));
|
|
11275
11309
|
}
|
|
11310
|
+
update(depreciation) {
|
|
11311
|
+
return super.update(depreciation).pipe(map((updatedDepreciation) => {
|
|
11312
|
+
// @TODO need to upload file in the same backend endpoint with depreciation add/update
|
|
11313
|
+
// check if passed new receipt and upload file
|
|
11314
|
+
if (depreciation.file && (depreciation.file instanceof File)) {
|
|
11315
|
+
updatedDepreciation.file = depreciation.file;
|
|
11316
|
+
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_RECEIPT, updatedDepreciation));
|
|
11317
|
+
// receipt file was removed from form - we should delete receipt from transaction
|
|
11318
|
+
}
|
|
11319
|
+
else if (!depreciation.file && depreciation.receipt) {
|
|
11320
|
+
this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT, updatedDepreciation));
|
|
11321
|
+
}
|
|
11322
|
+
return updatedDepreciation;
|
|
11323
|
+
}));
|
|
11324
|
+
}
|
|
11276
11325
|
/**
|
|
11277
11326
|
* Listen to Depreciations events
|
|
11278
11327
|
*/
|
|
11279
11328
|
listenEvents() {
|
|
11280
11329
|
this.listenToUpdatedLoan();
|
|
11330
|
+
this.listenReceiptAdded();
|
|
11331
|
+
this.listenReceiptDeleted();
|
|
11281
11332
|
this.listenVehicleClaimChanges();
|
|
11282
11333
|
this.listenToUpdatedBankAccount();
|
|
11283
11334
|
}
|
|
@@ -11287,21 +11338,20 @@ class DepreciationService extends RestService {
|
|
|
11287
11338
|
return response || 0;
|
|
11288
11339
|
}));
|
|
11289
11340
|
}
|
|
11290
|
-
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
*/
|
|
11294
|
-
uploadReceipt(depreciation) {
|
|
11295
|
-
const formData = new FormData();
|
|
11296
|
-
formData.append('file', depreciation.file);
|
|
11297
|
-
depreciation.receipt = null;
|
|
11298
|
-
this.http.post(`${this.environment.apiV2}/${this.url}/${depreciation.id}/receipts`, formData)
|
|
11299
|
-
.subscribe((receiptResponse) => {
|
|
11341
|
+
listenReceiptAdded() {
|
|
11342
|
+
this.eventDispatcherService.on(AppEventTypeEnum.DEPRECIATION_RECEIPT_CREATED).subscribe((receipt) => {
|
|
11343
|
+
const depreciationToUpdate = this.find(receipt.depreciation.id);
|
|
11300
11344
|
// we don't need to keep file after save
|
|
11301
|
-
|
|
11302
|
-
|
|
11303
|
-
|
|
11304
|
-
|
|
11345
|
+
depreciationToUpdate.file = null;
|
|
11346
|
+
depreciationToUpdate.receipt = receipt;
|
|
11347
|
+
this.replaceInCache(depreciationToUpdate);
|
|
11348
|
+
});
|
|
11349
|
+
}
|
|
11350
|
+
listenReceiptDeleted() {
|
|
11351
|
+
this.eventDispatcherService.on(AppEventTypeEnum.DEPRECIATION_RECEIPT_DELETED).subscribe((depreciation) => {
|
|
11352
|
+
const depreciationToUpdate = this.find(depreciation.id);
|
|
11353
|
+
depreciationToUpdate.receipt = null;
|
|
11354
|
+
this.replaceInCache(depreciationToUpdate);
|
|
11305
11355
|
});
|
|
11306
11356
|
}
|
|
11307
11357
|
/**
|
|
@@ -11335,15 +11385,76 @@ class DepreciationService extends RestService {
|
|
|
11335
11385
|
this.resetCache();
|
|
11336
11386
|
});
|
|
11337
11387
|
}
|
|
11388
|
+
replaceInCache(depreciationToReplace) {
|
|
11389
|
+
replace(this.cache, depreciationToReplace);
|
|
11390
|
+
this.updateCache();
|
|
11391
|
+
}
|
|
11338
11392
|
}
|
|
11339
|
-
DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationService, deps:
|
|
11393
|
+
DepreciationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: DepreciationReceiptService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11340
11394
|
DepreciationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationService, providedIn: 'root' });
|
|
11341
11395
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationService, decorators: [{
|
|
11342
11396
|
type: Injectable,
|
|
11343
11397
|
args: [{
|
|
11344
11398
|
providedIn: 'root'
|
|
11345
11399
|
}]
|
|
11346
|
-
}] }
|
|
11400
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
|
|
11401
|
+
type: Inject,
|
|
11402
|
+
args: ['environment']
|
|
11403
|
+
}] }, { type: ToastService }, { type: DepreciationReceiptService }]; } });
|
|
11404
|
+
|
|
11405
|
+
/**
|
|
11406
|
+
* Service for work with DepreciationCapitalProjects
|
|
11407
|
+
*/
|
|
11408
|
+
class DepreciationCapitalProjectService {
|
|
11409
|
+
constructor(http, environment) {
|
|
11410
|
+
this.http = http;
|
|
11411
|
+
this.environment = environment;
|
|
11412
|
+
this.cacheSubject = new ReplaySubject(1);
|
|
11413
|
+
}
|
|
11414
|
+
get(propertyId) {
|
|
11415
|
+
this.cacheSubject.next([]);
|
|
11416
|
+
this.http.get(`${this.environment.apiV2}/properties/${propertyId}/depreciation-capital-projects`)
|
|
11417
|
+
.subscribe((capitalProjectsBase) => {
|
|
11418
|
+
this.cache = capitalProjectsBase.map((capitalProjectBase) => {
|
|
11419
|
+
return plainToClass(DepreciationCapitalProject, capitalProjectBase);
|
|
11420
|
+
});
|
|
11421
|
+
this.cacheSubject.next(this.cache);
|
|
11422
|
+
});
|
|
11423
|
+
return this.cacheSubject.asObservable();
|
|
11424
|
+
}
|
|
11425
|
+
add(capitalProject, propertyId) {
|
|
11426
|
+
return this.http.post(`${this.environment.apiV2}/properties/${propertyId}/depreciation-capital-projects`, capitalProject)
|
|
11427
|
+
.pipe(map((capitalProjectBase) => {
|
|
11428
|
+
this.cache.push(plainToClass(DepreciationCapitalProject, capitalProjectBase));
|
|
11429
|
+
this.cacheSubject.next(this.cache);
|
|
11430
|
+
}));
|
|
11431
|
+
}
|
|
11432
|
+
update(capitalProject, propertyId) {
|
|
11433
|
+
return this.http.put(`${this.environment.apiV2}/properties/${propertyId}/depreciation-capital-projects/${capitalProject.id}`, capitalProject)
|
|
11434
|
+
.pipe(map((capitalProjectBase) => {
|
|
11435
|
+
replace(this.cache, plainToClass(DepreciationCapitalProject, capitalProjectBase));
|
|
11436
|
+
this.cacheSubject.next(this.cache);
|
|
11437
|
+
}));
|
|
11438
|
+
}
|
|
11439
|
+
delete(capitalProject, propertyId) {
|
|
11440
|
+
return this.http.delete(`${this.environment.apiV2}/properties/${propertyId}/depreciation-capital-projects/${capitalProject.id}`)
|
|
11441
|
+
.pipe(map(() => {
|
|
11442
|
+
this.cache = this.cache.filter((item) => capitalProject.id !== item.id);
|
|
11443
|
+
this.cacheSubject.next(this.cache);
|
|
11444
|
+
}));
|
|
11445
|
+
}
|
|
11446
|
+
}
|
|
11447
|
+
DepreciationCapitalProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationCapitalProjectService, deps: [{ token: i1.HttpClient }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11448
|
+
DepreciationCapitalProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationCapitalProjectService, providedIn: 'root' });
|
|
11449
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: DepreciationCapitalProjectService, decorators: [{
|
|
11450
|
+
type: Injectable,
|
|
11451
|
+
args: [{
|
|
11452
|
+
providedIn: 'root'
|
|
11453
|
+
}]
|
|
11454
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
11455
|
+
type: Inject,
|
|
11456
|
+
args: ['environment']
|
|
11457
|
+
}] }]; } });
|
|
11347
11458
|
|
|
11348
11459
|
/**
|
|
11349
11460
|
* Service to handle document-folders and depending documents logic
|
|
@@ -14722,5 +14833,5 @@ VehicleLogbookForm.maxDescriptionLength = 60;
|
|
|
14722
14833
|
* Generated bundle index. Do not edit.
|
|
14723
14834
|
*/
|
|
14724
14835
|
|
|
14725
|
-
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessOrLosses, MyTaxBusinessOrLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEmployeeShareSchemes, MyTaxEmployeeShareSchemesForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceItem, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
|
|
14836
|
+
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessOrLosses, MyTaxBusinessOrLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEmployeeShareSchemes, MyTaxEmployeeShareSchemesForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceItem, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
|
|
14726
14837
|
//# sourceMappingURL=taxtank-core.js.map
|