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.
@@ -561,47 +561,50 @@
561
561
  AppEventTypeEnum[AppEventTypeEnum["CURRENT_USER_GET_FAILED"] = 11] = "CURRENT_USER_GET_FAILED";
562
562
  AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_DELETED"] = 12] = "DEPRECIATION_DELETED";
563
563
  AppEventTypeEnum[AppEventTypeEnum["DEPRECIATIONS_CREATED"] = 13] = "DEPRECIATIONS_CREATED";
564
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_CREATED"] = 14] = "INCOME_SOURCES_CREATED";
565
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_UPDATED"] = 15] = "INCOME_SOURCES_UPDATED";
566
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_CREATED"] = 16] = "INCOME_SOURCES_FORECASTS_CREATED";
567
- AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_UPDATED"] = 17] = "INCOME_SOURCES_FORECASTS_UPDATED";
568
- AppEventTypeEnum[AppEventTypeEnum["LOAN_UPDATED"] = 18] = "LOAN_UPDATED";
569
- AppEventTypeEnum[AppEventTypeEnum["LOAN_PAYOUT_UPDATED"] = 19] = "LOAN_PAYOUT_UPDATED";
570
- AppEventTypeEnum[AppEventTypeEnum["MESSAGE_CREATED"] = 20] = "MESSAGE_CREATED";
571
- AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_CREATED"] = 21] = "MESSAGE_FILE_CREATED";
572
- AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_DELETED"] = 22] = "MESSAGE_FILE_DELETED";
573
- AppEventTypeEnum[AppEventTypeEnum["NOTIFICATION_ADDED"] = 23] = "NOTIFICATION_ADDED";
574
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED_WITH_DOCUMENT"] = 24] = "PROPERTY_UPDATED_WITH_DOCUMENT";
575
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DOCUMENT_ADDED"] = 25] = "PROPERTY_DOCUMENT_ADDED";
576
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_CREATED"] = 26] = "PROPERTY_MOVEMENT_CREATED";
577
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_UPDATED"] = 27] = "PROPERTY_MOVEMENT_UPDATED";
578
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_DELETED"] = 28] = "PROPERTY_MOVEMENT_DELETED";
579
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SHARE_UPDATED"] = 29] = "PROPERTY_SHARE_UPDATED";
580
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_ADDED"] = 30] = "PROPERTY_SALE_ADDED";
581
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_DELETED"] = 31] = "PROPERTY_SALE_DELETED";
582
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_ADDED"] = 32] = "PROPERTY_SUBSCRIPTION_ADDED";
583
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_DELETED"] = 33] = "PROPERTY_SUBSCRIPTION_DELETED";
584
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_VALUATION_DOCUMENT_CREATED"] = 34] = "PROPERTY_VALUATION_DOCUMENT_CREATED";
585
- AppEventTypeEnum[AppEventTypeEnum["SERVICE_SUBSCRIPTION_UPDATED"] = 35] = "SERVICE_SUBSCRIPTION_UPDATED";
586
- AppEventTypeEnum[AppEventTypeEnum["TAX_REVIEW_UPDATED"] = 36] = "TAX_REVIEW_UPDATED";
587
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_CREATED"] = 37] = "TRANSACTION_CREATED";
588
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_DELETED"] = 38] = "TRANSACTION_DELETED";
589
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED"] = 39] = "TRANSACTION_UPDATED";
590
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_CREATED_WITH_NEW_RECEIPT"] = 40] = "TRANSACTION_CREATED_WITH_NEW_RECEIPT";
591
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_NEW_RECEIPT"] = 41] = "TRANSACTION_UPDATED_WITH_NEW_RECEIPT";
592
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_DELETED_RECEIPT"] = 42] = "TRANSACTION_UPDATED_WITH_DELETED_RECEIPT";
593
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_CREATED"] = 43] = "TRANSACTION_RECEIPT_CREATED";
594
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_DELETED"] = 44] = "TRANSACTION_RECEIPT_DELETED";
595
- AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 45] = "TRANSACTIONS_CREATED";
596
- AppEventTypeEnum[AppEventTypeEnum["USER_UPDATED"] = 46] = "USER_UPDATED";
597
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 47] = "VEHICLE_CLAIM_UPDATED";
598
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 48] = "VEHICLE_CLAIM_CREATED";
599
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 49] = "VEHICLE_CLAIM_DETAILS_UPDATED";
600
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 50] = "VEHICLE_CLAIM_DETAILS_CREATED";
601
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 51] = "VEHICLE_LOGBOOK_CREATED";
602
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 52] = "VEHICLE_LOGBOOK_UPDATED";
603
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 53] = "VEHICLE_LOGBOOK_DELETED";
604
- AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 54] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
564
+ AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_UPDATED_WITH_RECEIPT"] = 14] = "DEPRECIATION_UPDATED_WITH_RECEIPT";
565
+ AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT"] = 15] = "DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT";
566
+ AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_RECEIPT_CREATED"] = 16] = "DEPRECIATION_RECEIPT_CREATED";
567
+ AppEventTypeEnum[AppEventTypeEnum["DEPRECIATION_RECEIPT_DELETED"] = 17] = "DEPRECIATION_RECEIPT_DELETED";
568
+ AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_CREATED"] = 18] = "INCOME_SOURCES_CREATED";
569
+ AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_UPDATED"] = 19] = "INCOME_SOURCES_UPDATED";
570
+ AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_CREATED"] = 20] = "INCOME_SOURCES_FORECASTS_CREATED";
571
+ AppEventTypeEnum[AppEventTypeEnum["INCOME_SOURCES_FORECASTS_UPDATED"] = 21] = "INCOME_SOURCES_FORECASTS_UPDATED";
572
+ AppEventTypeEnum[AppEventTypeEnum["LOAN_UPDATED"] = 22] = "LOAN_UPDATED";
573
+ AppEventTypeEnum[AppEventTypeEnum["LOAN_PAYOUT_UPDATED"] = 23] = "LOAN_PAYOUT_UPDATED";
574
+ AppEventTypeEnum[AppEventTypeEnum["MESSAGE_CREATED"] = 24] = "MESSAGE_CREATED";
575
+ AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_CREATED"] = 25] = "MESSAGE_FILE_CREATED";
576
+ AppEventTypeEnum[AppEventTypeEnum["MESSAGE_FILE_DELETED"] = 26] = "MESSAGE_FILE_DELETED";
577
+ AppEventTypeEnum[AppEventTypeEnum["NOTIFICATION_ADDED"] = 27] = "NOTIFICATION_ADDED";
578
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_UPDATED_WITH_DOCUMENT"] = 28] = "PROPERTY_UPDATED_WITH_DOCUMENT";
579
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_DOCUMENT_ADDED"] = 29] = "PROPERTY_DOCUMENT_ADDED";
580
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_CREATED"] = 30] = "PROPERTY_MOVEMENT_CREATED";
581
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_UPDATED"] = 31] = "PROPERTY_MOVEMENT_UPDATED";
582
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_DELETED"] = 32] = "PROPERTY_MOVEMENT_DELETED";
583
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SHARE_UPDATED"] = 33] = "PROPERTY_SHARE_UPDATED";
584
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_ADDED"] = 34] = "PROPERTY_SALE_ADDED";
585
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SALE_DELETED"] = 35] = "PROPERTY_SALE_DELETED";
586
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_ADDED"] = 36] = "PROPERTY_SUBSCRIPTION_ADDED";
587
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_DELETED"] = 37] = "PROPERTY_SUBSCRIPTION_DELETED";
588
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_VALUATION_DOCUMENT_CREATED"] = 38] = "PROPERTY_VALUATION_DOCUMENT_CREATED";
589
+ AppEventTypeEnum[AppEventTypeEnum["SERVICE_SUBSCRIPTION_UPDATED"] = 39] = "SERVICE_SUBSCRIPTION_UPDATED";
590
+ AppEventTypeEnum[AppEventTypeEnum["TAX_REVIEW_UPDATED"] = 40] = "TAX_REVIEW_UPDATED";
591
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_CREATED"] = 41] = "TRANSACTION_CREATED";
592
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_DELETED"] = 42] = "TRANSACTION_DELETED";
593
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED"] = 43] = "TRANSACTION_UPDATED";
594
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_RECEIPT"] = 44] = "TRANSACTION_UPDATED_WITH_RECEIPT";
595
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_UPDATED_WITH_DELETED_RECEIPT"] = 45] = "TRANSACTION_UPDATED_WITH_DELETED_RECEIPT";
596
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_CREATED"] = 46] = "TRANSACTION_RECEIPT_CREATED";
597
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTION_RECEIPT_DELETED"] = 47] = "TRANSACTION_RECEIPT_DELETED";
598
+ AppEventTypeEnum[AppEventTypeEnum["TRANSACTIONS_CREATED"] = 48] = "TRANSACTIONS_CREATED";
599
+ AppEventTypeEnum[AppEventTypeEnum["USER_UPDATED"] = 49] = "USER_UPDATED";
600
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_UPDATED"] = 50] = "VEHICLE_CLAIM_UPDATED";
601
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_CREATED"] = 51] = "VEHICLE_CLAIM_CREATED";
602
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_UPDATED"] = 52] = "VEHICLE_CLAIM_DETAILS_UPDATED";
603
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_CLAIM_DETAILS_CREATED"] = 53] = "VEHICLE_CLAIM_DETAILS_CREATED";
604
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_CREATED"] = 54] = "VEHICLE_LOGBOOK_CREATED";
605
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_UPDATED"] = 55] = "VEHICLE_LOGBOOK_UPDATED";
606
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_DELETED"] = 56] = "VEHICLE_LOGBOOK_DELETED";
607
+ AppEventTypeEnum[AppEventTypeEnum["VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED"] = 57] = "VEHICLE_LOGBOOK_BEST_PERIOD_UPDATED";
605
608
  })(exports.AppEventTypeEnum || (exports.AppEventTypeEnum = {}));
606
609
 
607
610
  var EventDispatcherService = /** @class */ (function () {
@@ -975,6 +978,8 @@
975
978
  DEPRECIATIONS_GET: new Endpoint('GET', '\\/depreciations'),
976
979
  DEPRECIATIONS_POST: new Endpoint('POST', '\\/depreciations'),
977
980
  DEPRECIATIONS_PUT: new Endpoint('PUT', '\\/depreciations\\/\\d+'),
981
+ DEPRECIATION_RECEIPTS_POST: new Endpoint('POST', '\\/depreciations\\/\\d+\\/receipts'),
982
+ DEPRECIATION_RECEIPTS_DELETE: new Endpoint('DELETE', '\\/depreciations\\/\\d+\\/receipts\\/\\d+'),
978
983
  EMPLOYEES_GET: new Endpoint('GET', '\\/employees'),
979
984
  EMPLOYEES_INVITES_GET: new Endpoint('GET', '\\/employees\\/\\invites'),
980
985
  EMPLOYEES_INVITES_DELETE: new Endpoint('DELETE', '\\/employees\\/\\invites\\/\\d+'),
@@ -12007,62 +12012,104 @@
12007
12012
  return list;
12008
12013
  }
12009
12014
 
12010
- var TransactionReceiptService = /** @class */ (function () {
12011
- function TransactionReceiptService(http, eventDispatcherService, environment) {
12015
+ /**
12016
+ * Abstract service class to work with transactions-like receipt files (transactions, depreciations, e.t.c.)
12017
+ * @Todo TT-2191 refactor service when receipts API will be updated
12018
+ */
12019
+ var ReceiptService = /** @class */ (function () {
12020
+ function ReceiptService(http, eventDispatcherService, environment, toastService) {
12012
12021
  this.http = http;
12013
12022
  this.eventDispatcherService = eventDispatcherService;
12014
12023
  this.environment = environment;
12015
- this.url = 'receipts';
12016
- this.listenEvents();
12024
+ this.toastService = toastService;
12017
12025
  }
12026
+ ReceiptService.prototype.listenEvents = function () {
12027
+ this.listenParentWithReceiptUpdated();
12028
+ this.listenParentWithoutReceiptUpdated();
12029
+ };
12018
12030
  /**
12019
- * Transaction instance is necessary to take the ID and the receipt file from it.
12031
+ * Entity is necessary to take the ID and the receipt file from it.
12020
12032
  */
12021
- TransactionReceiptService.prototype.add = function (transaction) {
12033
+ ReceiptService.prototype.add = function (receiptEntity) {
12022
12034
  var _this = this;
12023
12035
  var formData = new FormData();
12024
- formData.append('file', transaction.file);
12025
- this.http.post(this.environment.apiV2 + "/transactions/" + transaction.id + "/" + this.url, formData)
12026
- .subscribe(function (receiptResponse) {
12027
- _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.TRANSACTION_RECEIPT_CREATED, classTransformer.plainToClass(TransactionReceipt, receiptResponse)));
12028
- });
12036
+ formData.append('file', receiptEntity.file);
12037
+ return this.http.post(this.environment.apiV2 + "/" + this.entityType + "/" + receiptEntity.id + "/receipts", formData)
12038
+ .pipe(operators.map(function (receipt) {
12039
+ var uploadedReceipt = _this.createModelInstance(receipt);
12040
+ _this.eventDispatcherService.dispatch(new AppEvent(_this.receiptCreatedEvent, uploadedReceipt));
12041
+ return uploadedReceipt;
12042
+ }));
12029
12043
  };
12030
- /**
12031
- * Transaction instance is necessary to take the ID and the receipt ID from it.
12032
- */
12033
- TransactionReceiptService.prototype.delete = function (transaction) {
12044
+ ReceiptService.prototype.delete = function (receiptEntity) {
12034
12045
  var _this = this;
12035
- this.http.delete(this.environment.apiV2 + "/transactions/" + transaction.id + "/" + this.url + "/" + transaction.receipt.id)
12036
- .subscribe(function () {
12037
- _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.TRANSACTION_RECEIPT_DELETED, transaction));
12038
- });
12039
- };
12040
- TransactionReceiptService.prototype.listenEvents = function () {
12041
- this.listenTransactionWithReceiptUpdated();
12042
- this.listenTransactionWithoutReceiptUpdated();
12046
+ return this.http.delete(this.environment.apiV2 + "/" + this.entityType + "/" + receiptEntity.id + "/receipts/" + receiptEntity.receipt.id)
12047
+ .pipe(operators.map(function () {
12048
+ _this.eventDispatcherService.dispatch(new AppEvent(_this.receiptDeletedEvent, receiptEntity));
12049
+ }));
12043
12050
  };
12044
- TransactionReceiptService.prototype.listenTransactionWithReceiptUpdated = function () {
12051
+ /**
12052
+ * Parent entity was updated with attached receipt
12053
+ */
12054
+ ReceiptService.prototype.listenParentWithReceiptUpdated = function () {
12045
12055
  var _this = this;
12046
- this.eventDispatcherService.on([
12047
- exports.AppEventTypeEnum.TRANSACTION_CREATED_WITH_NEW_RECEIPT,
12048
- exports.AppEventTypeEnum.TRANSACTION_UPDATED_WITH_NEW_RECEIPT
12049
- ]).subscribe(function (transaction) {
12050
- _this.add(transaction);
12056
+ this.eventDispatcherService.on(this.entityUpdatedWithReceiptEvent)
12057
+ .subscribe(function (receiptEntity) {
12058
+ _this.add(receiptEntity).subscribe();
12051
12059
  });
12052
12060
  };
12053
12061
  /**
12054
- * Case when transaction was updated, but receipt was removed
12062
+ * Parent entity was updated, but receipt was removed
12055
12063
  */
12056
- TransactionReceiptService.prototype.listenTransactionWithoutReceiptUpdated = function () {
12064
+ ReceiptService.prototype.listenParentWithoutReceiptUpdated = function () {
12057
12065
  var _this = this;
12058
- this.eventDispatcherService.on(exports.AppEventTypeEnum.TRANSACTION_UPDATED_WITH_DELETED_RECEIPT)
12059
- .subscribe(function (transaction) {
12060
- _this.delete(transaction);
12066
+ this.eventDispatcherService.on(this.entityUpdatedWithDeletedReceiptEvent)
12067
+ .subscribe(function (receiptEntity) {
12068
+ _this.delete(receiptEntity).subscribe();
12061
12069
  });
12062
12070
  };
12063
- return TransactionReceiptService;
12071
+ ReceiptService.prototype.createModelInstance = function (data) {
12072
+ return classTransformer.plainToClass(this.modelClass, data);
12073
+ };
12074
+ return ReceiptService;
12064
12075
  }());
12065
- TransactionReceiptService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionReceiptService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12076
+ ReceiptService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ReceiptService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12077
+ ReceiptService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ReceiptService, providedIn: 'root' });
12078
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: ReceiptService, decorators: [{
12079
+ type: i0.Injectable,
12080
+ args: [{
12081
+ providedIn: 'root'
12082
+ }]
12083
+ }], ctorParameters: function () {
12084
+ return [{ type: i1__namespace.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
12085
+ type: i0.Inject,
12086
+ args: ['environment']
12087
+ }] }, { type: ToastService }];
12088
+ } });
12089
+
12090
+ /**
12091
+ * @Todo TT-2191 refactor service when receipts API will be updated
12092
+ */
12093
+ var TransactionReceiptService = /** @class */ (function (_super) {
12094
+ __extends(TransactionReceiptService, _super);
12095
+ function TransactionReceiptService(http, eventDispatcherService, environment, toastService) {
12096
+ var _this = _super.call(this, http, eventDispatcherService, environment, toastService) || this;
12097
+ _this.http = http;
12098
+ _this.eventDispatcherService = eventDispatcherService;
12099
+ _this.environment = environment;
12100
+ _this.toastService = toastService;
12101
+ _this.modelClass = TransactionReceipt;
12102
+ _this.entityType = exports.AssetEntityTypeEnum.TRANSACTIONS;
12103
+ _this.receiptCreatedEvent = exports.AppEventTypeEnum.TRANSACTION_RECEIPT_CREATED;
12104
+ _this.receiptDeletedEvent = exports.AppEventTypeEnum.TRANSACTION_RECEIPT_DELETED;
12105
+ _this.entityUpdatedWithReceiptEvent = exports.AppEventTypeEnum.TRANSACTION_UPDATED_WITH_RECEIPT;
12106
+ _this.entityUpdatedWithDeletedReceiptEvent = exports.AppEventTypeEnum.TRANSACTION_UPDATED_WITH_DELETED_RECEIPT;
12107
+ _this.listenEvents();
12108
+ return _this;
12109
+ }
12110
+ return TransactionReceiptService;
12111
+ }(ReceiptService));
12112
+ TransactionReceiptService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionReceiptService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
12066
12113
  TransactionReceiptService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionReceiptService, providedIn: 'root' });
12067
12114
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionReceiptService, decorators: [{
12068
12115
  type: i0.Injectable,
@@ -12073,7 +12120,7 @@
12073
12120
  return [{ type: i1__namespace.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
12074
12121
  type: i0.Inject,
12075
12122
  args: ['environment']
12076
- }] }];
12123
+ }] }, { type: ToastService }];
12077
12124
  } });
12078
12125
 
12079
12126
  /**
@@ -12197,10 +12244,10 @@
12197
12244
  transactions.forEach(function (transaction, index) {
12198
12245
  // @TODO backend: need to upload file in the same backend endpoint with transaction add/update
12199
12246
  // check if passed receipt and upload file
12200
- if (transaction.file && (transaction.file instanceof File)) {
12247
+ if (transaction.file) {
12201
12248
  transaction.id = response[index].id;
12202
12249
  addedTransactions[index].file = transaction.file;
12203
- _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.TRANSACTION_CREATED_WITH_NEW_RECEIPT, addedTransactions[index]));
12250
+ _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.TRANSACTION_UPDATED_WITH_RECEIPT, addedTransactions[index]));
12204
12251
  }
12205
12252
  // @TODO Viktor: implement API for saving of nested transactions
12206
12253
  // add child transactions if exist
@@ -12234,9 +12281,9 @@
12234
12281
  var updatedTransaction = classTransformer.plainToClass(Transaction, response);
12235
12282
  // @TODO need to upload file in the same backend endpoint with transaction add/update
12236
12283
  // check if passed new receipt and upload file
12237
- if (transaction.file && (transaction.file instanceof File)) {
12284
+ if (transaction.file) {
12238
12285
  updatedTransaction.file = transaction.file;
12239
- _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.TRANSACTION_UPDATED_WITH_NEW_RECEIPT, updatedTransaction));
12286
+ _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.TRANSACTION_UPDATED_WITH_RECEIPT, updatedTransaction));
12240
12287
  // receipt file was removed from form - we should delete receipt from transaction
12241
12288
  }
12242
12289
  else if (!transaction.file && transaction.receipt) {
@@ -12260,8 +12307,7 @@
12260
12307
  _this.addBatch(childTransactionsToAdd).subscribe();
12261
12308
  }
12262
12309
  }
12263
- replace(_this.cache, updatedTransaction);
12264
- _this.updateCache();
12310
+ _this.replaceInCache(updatedTransaction);
12265
12311
  return updatedTransaction;
12266
12312
  }));
12267
12313
  };
@@ -12380,8 +12426,7 @@
12380
12426
  // we don't need to keep file after save
12381
12427
  transactionToUpdate.file = null;
12382
12428
  transactionToUpdate.receipt = transactionReceipt;
12383
- replace(_this.cache, transactionToUpdate);
12384
- _this.updateCache();
12429
+ _this.replaceInCache(transactionToUpdate);
12385
12430
  });
12386
12431
  };
12387
12432
  TransactionService.prototype.listenReceiptDeleted = function () {
@@ -12389,8 +12434,7 @@
12389
12434
  this.eventDispatcherService.on(exports.AppEventTypeEnum.TRANSACTION_RECEIPT_DELETED).subscribe(function (transaction) {
12390
12435
  var transactionToUpdate = _this.find(transaction.id);
12391
12436
  transactionToUpdate.receipt = null;
12392
- replace(_this.cache, transactionToUpdate);
12393
- _this.updateCache();
12437
+ _this.replaceInCache(transactionToUpdate);
12394
12438
  });
12395
12439
  };
12396
12440
  TransactionService.prototype.listenVehicleClaimChanges = function () {
@@ -12404,6 +12448,10 @@
12404
12448
  _this.resetCache();
12405
12449
  });
12406
12450
  };
12451
+ TransactionService.prototype.replaceInCache = function (transactionToReplace) {
12452
+ replace(this.cache, transactionToReplace);
12453
+ this.updateCache();
12454
+ };
12407
12455
  return TransactionService;
12408
12456
  }(RestService));
12409
12457
  TransactionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TransactionService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: TransactionReceiptService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
@@ -13578,70 +13626,50 @@
13578
13626
  } });
13579
13627
 
13580
13628
  /**
13581
- * Service for work with DepreciationCapitalProjects
13629
+ * @Todo TT-2191 refactor service when receipts API will be updated
13582
13630
  */
13583
- var DepreciationCapitalProjectService = /** @class */ (function () {
13584
- function DepreciationCapitalProjectService(http, environment) {
13585
- this.http = http;
13586
- this.environment = environment;
13587
- this.cacheSubject = new rxjs.ReplaySubject(1);
13631
+ var DepreciationReceiptService = /** @class */ (function (_super) {
13632
+ __extends(DepreciationReceiptService, _super);
13633
+ function DepreciationReceiptService(http, eventDispatcherService, environment, toastService) {
13634
+ var _this = _super.call(this, http, eventDispatcherService, environment, toastService) || this;
13635
+ _this.http = http;
13636
+ _this.eventDispatcherService = eventDispatcherService;
13637
+ _this.environment = environment;
13638
+ _this.toastService = toastService;
13639
+ _this.modelClass = DepreciationReceipt;
13640
+ _this.entityType = exports.AssetEntityTypeEnum.DEPRECIATIONS;
13641
+ _this.receiptCreatedEvent = exports.AppEventTypeEnum.DEPRECIATION_RECEIPT_CREATED;
13642
+ _this.receiptDeletedEvent = exports.AppEventTypeEnum.DEPRECIATION_RECEIPT_DELETED;
13643
+ _this.entityUpdatedWithDeletedReceiptEvent = exports.AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT;
13644
+ _this.entityUpdatedWithReceiptEvent = exports.AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_RECEIPT;
13645
+ _this.listenEvents();
13646
+ return _this;
13588
13647
  }
13589
- DepreciationCapitalProjectService.prototype.get = function (propertyId) {
13590
- var _this = this;
13591
- this.cacheSubject.next([]);
13592
- this.http.get(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects")
13593
- .subscribe(function (capitalProjectsBase) {
13594
- _this.cache = capitalProjectsBase.map(function (capitalProjectBase) {
13595
- return classTransformer.plainToClass(DepreciationCapitalProject, capitalProjectBase);
13596
- });
13597
- _this.cacheSubject.next(_this.cache);
13598
- });
13599
- return this.cacheSubject.asObservable();
13600
- };
13601
- DepreciationCapitalProjectService.prototype.add = function (capitalProject, propertyId) {
13602
- var _this = this;
13603
- return this.http.post(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects", capitalProject)
13604
- .pipe(operators.map(function (capitalProjectBase) {
13605
- _this.cache.push(classTransformer.plainToClass(DepreciationCapitalProject, capitalProjectBase));
13606
- _this.cacheSubject.next(_this.cache);
13607
- }));
13608
- };
13609
- DepreciationCapitalProjectService.prototype.update = function (capitalProject, propertyId) {
13610
- var _this = this;
13611
- return this.http.put(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects/" + capitalProject.id, capitalProject)
13612
- .pipe(operators.map(function (capitalProjectBase) {
13613
- replace(_this.cache, classTransformer.plainToClass(DepreciationCapitalProject, capitalProjectBase));
13614
- _this.cacheSubject.next(_this.cache);
13615
- }));
13616
- };
13617
- DepreciationCapitalProjectService.prototype.delete = function (capitalProject, propertyId) {
13618
- var _this = this;
13619
- return this.http.delete(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects/" + capitalProject.id)
13620
- .pipe(operators.map(function () {
13621
- _this.cache = _this.cache.filter(function (item) { return capitalProject.id !== item.id; });
13622
- _this.cacheSubject.next(_this.cache);
13623
- }));
13624
- };
13625
- return DepreciationCapitalProjectService;
13626
- }());
13627
- DepreciationCapitalProjectService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13628
- DepreciationCapitalProjectService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, providedIn: 'root' });
13629
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, decorators: [{
13648
+ return DepreciationReceiptService;
13649
+ }(ReceiptService));
13650
+ DepreciationReceiptService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationReceiptService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13651
+ DepreciationReceiptService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationReceiptService, providedIn: 'root' });
13652
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationReceiptService, decorators: [{
13630
13653
  type: i0.Injectable,
13631
13654
  args: [{
13632
13655
  providedIn: 'root'
13633
13656
  }]
13634
13657
  }], ctorParameters: function () {
13635
- return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
13658
+ return [{ type: i1__namespace.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
13636
13659
  type: i0.Inject,
13637
13660
  args: ['environment']
13638
- }] }];
13661
+ }] }, { type: ToastService }];
13639
13662
  } });
13640
13663
 
13641
13664
  var DepreciationService = /** @class */ (function (_super) {
13642
13665
  __extends(DepreciationService, _super);
13643
- function DepreciationService() {
13644
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
13666
+ function DepreciationService(http, eventDispatcherService, environment, toastService, depreciationReceiptService) {
13667
+ var _this = _super.call(this, http, eventDispatcherService, environment, toastService) || this;
13668
+ _this.http = http;
13669
+ _this.eventDispatcherService = eventDispatcherService;
13670
+ _this.environment = environment;
13671
+ _this.toastService = toastService;
13672
+ _this.depreciationReceiptService = depreciationReceiptService;
13645
13673
  _this.modelClass = Depreciation;
13646
13674
  _this.url = 'depreciations';
13647
13675
  return _this;
@@ -13665,15 +13693,42 @@
13665
13693
  DepreciationService.prototype.addBatch = function (depreciations) {
13666
13694
  var _this = this;
13667
13695
  return _super.prototype.addBatch.call(this, depreciations).pipe(operators.map(function (newDepreciations) {
13696
+ depreciations.forEach(function (depreciation, index) {
13697
+ // @TODO backend: need to upload file in the same backend endpoint with depreciation add/update
13698
+ // check if passed receipt and upload file
13699
+ if (depreciation.file && (depreciation.file instanceof File)) {
13700
+ depreciation.id = newDepreciations[index].id;
13701
+ newDepreciations[index].file = depreciation.file;
13702
+ _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_RECEIPT, newDepreciations[index]));
13703
+ }
13704
+ });
13668
13705
  _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.DEPRECIATIONS_CREATED, newDepreciations));
13669
13706
  return newDepreciations;
13670
13707
  }));
13671
13708
  };
13709
+ DepreciationService.prototype.update = function (depreciation) {
13710
+ var _this = this;
13711
+ return _super.prototype.update.call(this, depreciation).pipe(operators.map(function (updatedDepreciation) {
13712
+ // @TODO need to upload file in the same backend endpoint with depreciation add/update
13713
+ // check if passed new receipt and upload file
13714
+ if (depreciation.file && (depreciation.file instanceof File)) {
13715
+ updatedDepreciation.file = depreciation.file;
13716
+ _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_RECEIPT, updatedDepreciation));
13717
+ // receipt file was removed from form - we should delete receipt from transaction
13718
+ }
13719
+ else if (!depreciation.file && depreciation.receipt) {
13720
+ _this.eventDispatcherService.dispatch(new AppEvent(exports.AppEventTypeEnum.DEPRECIATION_UPDATED_WITH_DELETED_RECEIPT, updatedDepreciation));
13721
+ }
13722
+ return updatedDepreciation;
13723
+ }));
13724
+ };
13672
13725
  /**
13673
13726
  * Listen to Depreciations events
13674
13727
  */
13675
13728
  DepreciationService.prototype.listenEvents = function () {
13676
13729
  this.listenToUpdatedLoan();
13730
+ this.listenReceiptAdded();
13731
+ this.listenReceiptDeleted();
13677
13732
  this.listenVehicleClaimChanges();
13678
13733
  this.listenToUpdatedBankAccount();
13679
13734
  };
@@ -13683,22 +13738,22 @@
13683
13738
  return response || 0;
13684
13739
  }));
13685
13740
  };
13686
- /**
13687
- * Upload depreciation receipt
13688
- * @param depreciation for which will be uploaded receipt
13689
- */
13690
- DepreciationService.prototype.uploadReceipt = function (depreciation) {
13741
+ DepreciationService.prototype.listenReceiptAdded = function () {
13691
13742
  var _this = this;
13692
- var formData = new FormData();
13693
- formData.append('file', depreciation.file);
13694
- depreciation.receipt = null;
13695
- this.http.post(this.environment.apiV2 + "/" + this.url + "/" + depreciation.id + "/receipts", formData)
13696
- .subscribe(function (receiptResponse) {
13743
+ this.eventDispatcherService.on(exports.AppEventTypeEnum.DEPRECIATION_RECEIPT_CREATED).subscribe(function (receipt) {
13744
+ var depreciationToUpdate = _this.find(receipt.depreciation.id);
13697
13745
  // we don't need to keep file after save
13698
- depreciation.file = null;
13699
- depreciation.receipt = classTransformer.plainToClass(DepreciationReceipt, receiptResponse);
13700
- replace(_this.cache, depreciation);
13701
- _this.cacheSubject.next(_this.cache.slice());
13746
+ depreciationToUpdate.file = null;
13747
+ depreciationToUpdate.receipt = receipt;
13748
+ _this.replaceInCache(depreciationToUpdate);
13749
+ });
13750
+ };
13751
+ DepreciationService.prototype.listenReceiptDeleted = function () {
13752
+ var _this = this;
13753
+ this.eventDispatcherService.on(exports.AppEventTypeEnum.DEPRECIATION_RECEIPT_DELETED).subscribe(function (depreciation) {
13754
+ var depreciationToUpdate = _this.find(depreciation.id);
13755
+ depreciationToUpdate.receipt = null;
13756
+ _this.replaceInCache(depreciationToUpdate);
13702
13757
  });
13703
13758
  };
13704
13759
  /**
@@ -13735,16 +13790,86 @@
13735
13790
  _this.resetCache();
13736
13791
  });
13737
13792
  };
13793
+ DepreciationService.prototype.replaceInCache = function (depreciationToReplace) {
13794
+ replace(this.cache, depreciationToReplace);
13795
+ this.updateCache();
13796
+ };
13738
13797
  return DepreciationService;
13739
13798
  }(RestService));
13740
- DepreciationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable });
13799
+ DepreciationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, deps: [{ token: i1__namespace.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }, { token: ToastService }, { token: DepreciationReceiptService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13741
13800
  DepreciationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, providedIn: 'root' });
13742
13801
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationService, decorators: [{
13743
13802
  type: i0.Injectable,
13744
13803
  args: [{
13745
13804
  providedIn: 'root'
13746
13805
  }]
13747
- }] });
13806
+ }], ctorParameters: function () {
13807
+ return [{ type: i1__namespace.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
13808
+ type: i0.Inject,
13809
+ args: ['environment']
13810
+ }] }, { type: ToastService }, { type: DepreciationReceiptService }];
13811
+ } });
13812
+
13813
+ /**
13814
+ * Service for work with DepreciationCapitalProjects
13815
+ */
13816
+ var DepreciationCapitalProjectService = /** @class */ (function () {
13817
+ function DepreciationCapitalProjectService(http, environment) {
13818
+ this.http = http;
13819
+ this.environment = environment;
13820
+ this.cacheSubject = new rxjs.ReplaySubject(1);
13821
+ }
13822
+ DepreciationCapitalProjectService.prototype.get = function (propertyId) {
13823
+ var _this = this;
13824
+ this.cacheSubject.next([]);
13825
+ this.http.get(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects")
13826
+ .subscribe(function (capitalProjectsBase) {
13827
+ _this.cache = capitalProjectsBase.map(function (capitalProjectBase) {
13828
+ return classTransformer.plainToClass(DepreciationCapitalProject, capitalProjectBase);
13829
+ });
13830
+ _this.cacheSubject.next(_this.cache);
13831
+ });
13832
+ return this.cacheSubject.asObservable();
13833
+ };
13834
+ DepreciationCapitalProjectService.prototype.add = function (capitalProject, propertyId) {
13835
+ var _this = this;
13836
+ return this.http.post(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects", capitalProject)
13837
+ .pipe(operators.map(function (capitalProjectBase) {
13838
+ _this.cache.push(classTransformer.plainToClass(DepreciationCapitalProject, capitalProjectBase));
13839
+ _this.cacheSubject.next(_this.cache);
13840
+ }));
13841
+ };
13842
+ DepreciationCapitalProjectService.prototype.update = function (capitalProject, propertyId) {
13843
+ var _this = this;
13844
+ return this.http.put(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects/" + capitalProject.id, capitalProject)
13845
+ .pipe(operators.map(function (capitalProjectBase) {
13846
+ replace(_this.cache, classTransformer.plainToClass(DepreciationCapitalProject, capitalProjectBase));
13847
+ _this.cacheSubject.next(_this.cache);
13848
+ }));
13849
+ };
13850
+ DepreciationCapitalProjectService.prototype.delete = function (capitalProject, propertyId) {
13851
+ var _this = this;
13852
+ return this.http.delete(this.environment.apiV2 + "/properties/" + propertyId + "/depreciation-capital-projects/" + capitalProject.id)
13853
+ .pipe(operators.map(function () {
13854
+ _this.cache = _this.cache.filter(function (item) { return capitalProject.id !== item.id; });
13855
+ _this.cacheSubject.next(_this.cache);
13856
+ }));
13857
+ };
13858
+ return DepreciationCapitalProjectService;
13859
+ }());
13860
+ DepreciationCapitalProjectService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, deps: [{ token: i1__namespace.HttpClient }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
13861
+ DepreciationCapitalProjectService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, providedIn: 'root' });
13862
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: DepreciationCapitalProjectService, decorators: [{
13863
+ type: i0.Injectable,
13864
+ args: [{
13865
+ providedIn: 'root'
13866
+ }]
13867
+ }], ctorParameters: function () {
13868
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
13869
+ type: i0.Inject,
13870
+ args: ['environment']
13871
+ }] }];
13872
+ } });
13748
13873
 
13749
13874
  /**
13750
13875
  * Service to handle document-folders and depending documents logic
@@ -17527,6 +17652,7 @@
17527
17652
  exports.DepreciationLvpReportItem = DepreciationLvpReportItem;
17528
17653
  exports.DepreciationLvpReportItemCollection = DepreciationLvpReportItemCollection;
17529
17654
  exports.DepreciationReceipt = DepreciationReceipt;
17655
+ exports.DepreciationReceiptService = DepreciationReceiptService;
17530
17656
  exports.DepreciationReportItem = DepreciationReportItem;
17531
17657
  exports.DepreciationReportItemCollection = DepreciationReportItemCollection;
17532
17658
  exports.DepreciationService = DepreciationService;