taxtank-core 0.7.1 → 0.8.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.
Files changed (59) hide show
  1. package/bundles/taxtank-core.umd.js +196 -159
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/collection.js +13 -4
  4. package/esm2015/lib/collections/property/property.collection.js +2 -5
  5. package/esm2015/lib/db/Enums/property/property-share-access.enum.js +6 -0
  6. package/esm2015/lib/db/Enums/property/property-share-status.enum.js +7 -0
  7. package/esm2015/lib/db/Enums/user-event-type-client-type.enum.js +9 -9
  8. package/esm2015/lib/db/Models/client-details.js +1 -1
  9. package/esm2015/lib/db/Models/property/property-sale/property-sale.js +1 -1
  10. package/esm2015/lib/db/Models/property/property-share.js +3 -0
  11. package/esm2015/lib/db/Models/property/property.js +1 -1
  12. package/esm2015/lib/db/Models/user.js +1 -1
  13. package/esm2015/lib/models/depreciation/depreciation-lvp-rate.enum.js +6 -0
  14. package/esm2015/lib/models/depreciation/depreciation.js +6 -3
  15. package/esm2015/lib/models/endpoint/endpoints.const.js +4 -4
  16. package/esm2015/lib/models/event/app-event-type.enum.js +2 -2
  17. package/esm2015/lib/models/notification/notification.js +3 -3
  18. package/esm2015/lib/models/pdf/pdf-config.js +11 -3
  19. package/esm2015/lib/models/property/property-sale/property-sale.js +1 -1
  20. package/esm2015/lib/models/property/{property-owner.js → property-share.js} +15 -15
  21. package/esm2015/lib/models/property/property.js +9 -8
  22. package/esm2015/lib/models/property/share-filter-options.enum.js +11 -0
  23. package/esm2015/lib/services/bank/bank-account.service.js +2 -2
  24. package/esm2015/lib/services/depreciation/depreciation.service.js +2 -2
  25. package/esm2015/lib/services/pdf/pdf.service.js +26 -6
  26. package/esm2015/lib/services/property/property-share/property-share.service.js +115 -0
  27. package/esm2015/lib/services/property/property.service.js +6 -6
  28. package/esm2015/public-api.js +8 -6
  29. package/fesm2015/taxtank-core.js +167 -130
  30. package/fesm2015/taxtank-core.js.map +1 -1
  31. package/lib/collections/collection.d.ts +6 -1
  32. package/lib/collections/property/property.collection.d.ts +1 -4
  33. package/lib/db/Enums/property/property-share-access.enum.d.ts +4 -0
  34. package/lib/db/Enums/property/{property-owner-status.enum.d.ts → property-share-status.enum.d.ts} +1 -1
  35. package/lib/db/Enums/user-event-type-client-type.enum.d.ts +8 -8
  36. package/lib/db/Models/client-details.d.ts +1 -0
  37. package/lib/db/Models/property/property-sale/property-sale.d.ts +4 -3
  38. package/lib/db/Models/property/{property-owner.d.ts → property-share.d.ts} +6 -6
  39. package/lib/db/Models/property/property.d.ts +2 -2
  40. package/lib/db/Models/user.d.ts +2 -2
  41. package/lib/models/depreciation/depreciation-lvp-rate.enum.d.ts +4 -0
  42. package/lib/models/depreciation/depreciation.d.ts +1 -0
  43. package/lib/models/event/app-event-type.enum.d.ts +1 -1
  44. package/lib/models/property/{property-owner.d.ts → property-share.d.ts} +3 -3
  45. package/lib/models/property/property.d.ts +6 -5
  46. package/lib/models/property/share-filter-options.enum.d.ts +9 -0
  47. package/lib/services/pdf/pdf.service.d.ts +1 -0
  48. package/lib/services/property/property-share/property-share.service.d.ts +44 -0
  49. package/lib/services/property/property.service.d.ts +3 -3
  50. package/package.json +1 -1
  51. package/public-api.d.ts +7 -5
  52. package/esm2015/lib/db/Enums/property/property-owner-access.enum.js +0 -6
  53. package/esm2015/lib/db/Enums/property/property-owner-status.enum.js +0 -7
  54. package/esm2015/lib/db/Models/property/property-owner.js +0 -3
  55. package/esm2015/lib/models/property/ownership-filter-options.enum.js +0 -10
  56. package/esm2015/lib/services/property/property-owner/property-owner.service.js +0 -123
  57. package/lib/db/Enums/property/property-owner-access.enum.d.ts +0 -4
  58. package/lib/models/property/ownership-filter-options.enum.d.ts +0 -8
  59. package/lib/services/property/property-owner/property-owner.service.d.ts +0 -52
@@ -522,9 +522,9 @@ const ENDPOINTS = {
522
522
  PROPERTIES_CATEGORIES_POST: new Endpoint('POST', '\\/properties\\/categories'),
523
523
  PROPERTIES_CATEGORY_MOVEMENTS_POST: new Endpoint('POST', '\\/properties\\/\\d+\\/category-movements'),
524
524
  PROPERTIES_CATEGORY_MOVEMENTS_PUT: new Endpoint('PUT', '\\/properties\\/\\d+\\/category-movements\\/\\d+'),
525
- PROPERTIES_CO_OWNERS_PUT: new Endpoint('PUT', '\\/properties\\/co-owners\\/\\d+'),
526
- PROPERTIES_CO_OWNERS_GET: new Endpoint('GET', '\\/properties\\/co-owners'),
527
- PROPERTIES_CO_OWNERS_POST: new Endpoint('POST', '\\/properties\\/co-owners'),
525
+ PROPERTIES_SHARES_PUT: new Endpoint('PUT', '\\/properties\\/shares\\/\\d+'),
526
+ PROPERTIES_SHARES_GET: new Endpoint('GET', '\\/properties\\/shares'),
527
+ PROPERTIES_SHARES_POST: new Endpoint('POST', '\\/properties\\/shares'),
528
528
  PROPERTIES_DEACTIVATE_PUT: new Endpoint('PUT', '\\/properties\\/\\d+\\/deactivate'),
529
529
  PROPERTIES_DEPRECIATION_CAPITAL_PROJECT_GET: new Endpoint('GET', '\\/properties\\/\\d+\\/depreciation-capital-projects'),
530
530
  PROPERTIES_DEPRECIATION_CAPITAL_PROJECT_POST: new Endpoint('POST', '\\/properties\\/\\d+\\/depreciation-capital-projects'),
@@ -832,9 +832,6 @@ class Collection {
832
832
  create(items = []) {
833
833
  return new this.constructor(items);
834
834
  }
835
- getBy(field, value) {
836
- return this.create(this.items.filter((item) => item[field] === value));
837
- }
838
835
  groupBy(path = '') {
839
836
  return new CollectionDictionary(this, path);
840
837
  }
@@ -865,6 +862,12 @@ class Collection {
865
862
  getIds() {
866
863
  return this.items.map((item) => item['id']);
867
864
  }
865
+ getOneBy(path, value) {
866
+ return this.items.find((item) => get(item, path) === value);
867
+ }
868
+ getBy(path, value) {
869
+ return this.create(this.items.filter((item) => get(item, path) === value));
870
+ }
868
871
  /**
869
872
  * Get single item by id
870
873
  */
@@ -884,6 +887,12 @@ class Collection {
884
887
  toArray() {
885
888
  return [...this.items];
886
889
  }
890
+ /**
891
+ * Filter items by specific provided callback
892
+ */
893
+ filter(callback) {
894
+ return new Collection(this.items.filter(callback));
895
+ }
887
896
  get first() {
888
897
  return first(this.items);
889
898
  }
@@ -1728,10 +1737,7 @@ class PropertyCollection extends Collection {
1728
1737
  getActiveProperties() {
1729
1738
  return new PropertyCollection(this.items.filter((property) => property.isActive));
1730
1739
  }
1731
- /**
1732
- * Get new property collection filtered by owner
1733
- */
1734
- getOwnProperties() {
1740
+ getCreatedProperties() {
1735
1741
  return new PropertyCollection(this.items.filter((property) => property.isOwn()));
1736
1742
  }
1737
1743
  /**
@@ -2493,18 +2499,18 @@ var PropertyDepreciationCalculationEnum;
2493
2499
  PropertyDepreciationCalculationEnum[PropertyDepreciationCalculationEnum["DIMINISHING"] = 2] = "DIMINISHING";
2494
2500
  })(PropertyDepreciationCalculationEnum || (PropertyDepreciationCalculationEnum = {}));
2495
2501
 
2496
- var PropertyOwnerAccessEnum;
2497
- (function (PropertyOwnerAccessEnum) {
2498
- PropertyOwnerAccessEnum[PropertyOwnerAccessEnum["VIEW"] = 1] = "VIEW";
2499
- PropertyOwnerAccessEnum[PropertyOwnerAccessEnum["EDIT"] = 2] = "EDIT";
2500
- })(PropertyOwnerAccessEnum || (PropertyOwnerAccessEnum = {}));
2502
+ var PropertyShareAccessEnum;
2503
+ (function (PropertyShareAccessEnum) {
2504
+ PropertyShareAccessEnum[PropertyShareAccessEnum["VIEW"] = 1] = "VIEW";
2505
+ PropertyShareAccessEnum[PropertyShareAccessEnum["EDIT"] = 2] = "EDIT";
2506
+ })(PropertyShareAccessEnum || (PropertyShareAccessEnum = {}));
2501
2507
 
2502
- var PropertyOwnerStatusEnum;
2503
- (function (PropertyOwnerStatusEnum) {
2504
- PropertyOwnerStatusEnum[PropertyOwnerStatusEnum["PENDING"] = 1] = "PENDING";
2505
- PropertyOwnerStatusEnum[PropertyOwnerStatusEnum["APPROVED"] = 2] = "APPROVED";
2506
- PropertyOwnerStatusEnum[PropertyOwnerStatusEnum["REJECTED"] = 3] = "REJECTED";
2507
- })(PropertyOwnerStatusEnum || (PropertyOwnerStatusEnum = {}));
2508
+ var PropertyShareStatusEnum;
2509
+ (function (PropertyShareStatusEnum) {
2510
+ PropertyShareStatusEnum[PropertyShareStatusEnum["PENDING"] = 1] = "PENDING";
2511
+ PropertyShareStatusEnum[PropertyShareStatusEnum["APPROVED"] = 2] = "APPROVED";
2512
+ PropertyShareStatusEnum[PropertyShareStatusEnum["REJECTED"] = 3] = "REJECTED";
2513
+ })(PropertyShareStatusEnum || (PropertyShareStatusEnum = {}));
2508
2514
 
2509
2515
  var RegistrationInviteStatusEnum;
2510
2516
  (function (RegistrationInviteStatusEnum) {
@@ -2727,14 +2733,14 @@ var UserEventTypeClientTypeEnum;
2727
2733
  UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["FIRM_INVITE_ACCEPTED"] = 2012] = "FIRM_INVITE_ACCEPTED";
2728
2734
  UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["FIRM_INVITE_REJECTED"] = 2013] = "FIRM_INVITE_REJECTED";
2729
2735
  UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["FIRM_INVITE_REGISTERED"] = 2014] = "FIRM_INVITE_REGISTERED";
2730
- UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["CO_OWNER_INVITE"] = 2020] = "CO_OWNER_INVITE";
2731
- UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["CO_OWNER_INVITE_TO_REGISTER"] = 2021] = "CO_OWNER_INVITE_TO_REGISTER";
2732
- UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["CO_OWNER_INVITE_ACCEPTED"] = 2022] = "CO_OWNER_INVITE_ACCEPTED";
2733
- UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["CO_OWNER_INVITE_REJECTED"] = 2023] = "CO_OWNER_INVITE_REJECTED";
2734
- UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["CO_OWNER_INVITE_REGISTERED"] = 2024] = "CO_OWNER_INVITE_REGISTERED";
2735
- UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["CO_OWNER_CHANGE_REQUESTED"] = 2025] = "CO_OWNER_CHANGE_REQUESTED";
2736
- UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["CO_OWNER_CHANGE_ACCEPTED"] = 2026] = "CO_OWNER_CHANGE_ACCEPTED";
2737
- UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["CO_OWNER_CHANGE_REJECTED"] = 2027] = "CO_OWNER_CHANGE_REJECTED";
2736
+ UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["PROPERTY_SHARE_INVITE"] = 2020] = "PROPERTY_SHARE_INVITE";
2737
+ UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["PROPERTY_SHARE_INVITE_TO_REGISTER"] = 2021] = "PROPERTY_SHARE_INVITE_TO_REGISTER";
2738
+ UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["PROPERTY_SHARE_INVITE_ACCEPTED"] = 2022] = "PROPERTY_SHARE_INVITE_ACCEPTED";
2739
+ UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["PROPERTY_SHARE_INVITE_REJECTED"] = 2023] = "PROPERTY_SHARE_INVITE_REJECTED";
2740
+ UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["PROPERTY_SHARE_INVITE_REGISTERED"] = 2024] = "PROPERTY_SHARE_INVITE_REGISTERED";
2741
+ UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["PROPERTY_SHARE_CHANGE_REQUESTED"] = 2025] = "PROPERTY_SHARE_CHANGE_REQUESTED";
2742
+ UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["PROPERTY_SHARE_CHANGE_ACCEPTED"] = 2026] = "PROPERTY_SHARE_CHANGE_ACCEPTED";
2743
+ UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["PROPERTY_SHARE_CHANGE_REJECTED"] = 2027] = "PROPERTY_SHARE_CHANGE_REJECTED";
2738
2744
  UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["BASIQ_NEW_ACCOUNTS"] = 2030] = "BASIQ_NEW_ACCOUNTS";
2739
2745
  UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["BASIQ_FIRST_IMPORT_COMPLETE"] = 2031] = "BASIQ_FIRST_IMPORT_COMPLETE";
2740
2746
  UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["BASIQ_AUTHORIZATION_FAIL"] = 2032] = "BASIQ_AUTHORIZATION_FAIL";
@@ -2809,6 +2815,18 @@ var VehicleLogbookPurposeEnum;
2809
2815
  VehicleLogbookPurposeEnum[VehicleLogbookPurposeEnum["PERSONAL"] = 2] = "PERSONAL";
2810
2816
  })(VehicleLogbookPurposeEnum || (VehicleLogbookPurposeEnum = {}));
2811
2817
 
2818
+ var TaxExemptionEnum;
2819
+ (function (TaxExemptionEnum) {
2820
+ TaxExemptionEnum[TaxExemptionEnum["ONE_YEAR_RULE"] = 1] = "ONE_YEAR_RULE";
2821
+ // principle place of residence
2822
+ TaxExemptionEnum[TaxExemptionEnum["PPR"] = 2] = "PPR";
2823
+ TaxExemptionEnum[TaxExemptionEnum["SIX_YEARS_RULE"] = 3] = "SIX_YEARS_RULE";
2824
+ TaxExemptionEnum[TaxExemptionEnum["INVESTMENT_TO_PPR"] = 4] = "INVESTMENT_TO_PPR";
2825
+ TaxExemptionEnum[TaxExemptionEnum["PPR_TO_INVESTMENT"] = 5] = "PPR_TO_INVESTMENT";
2826
+ TaxExemptionEnum[TaxExemptionEnum["TRANSFER"] = 6] = "TRANSFER";
2827
+ TaxExemptionEnum[TaxExemptionEnum["OTHER"] = 7] = "OTHER";
2828
+ })(TaxExemptionEnum || (TaxExemptionEnum = {}));
2829
+
2812
2830
  var TaxExemptionMetadataEnum;
2813
2831
  (function (TaxExemptionMetadataEnum) {
2814
2832
  // principle place of residence
@@ -3464,18 +3482,6 @@ __decorate([
3464
3482
  Type(() => Date)
3465
3483
  ], PropertyCategoryMovement.prototype, "toDate", void 0);
3466
3484
 
3467
- var TaxExemptionEnum;
3468
- (function (TaxExemptionEnum) {
3469
- TaxExemptionEnum[TaxExemptionEnum["ONE_YEAR_RULE"] = 1] = "ONE_YEAR_RULE";
3470
- // principle place of residence
3471
- TaxExemptionEnum[TaxExemptionEnum["PPR"] = 2] = "PPR";
3472
- TaxExemptionEnum[TaxExemptionEnum["SIX_YEARS_RULE"] = 3] = "SIX_YEARS_RULE";
3473
- TaxExemptionEnum[TaxExemptionEnum["INVESTMENT_TO_PPR"] = 4] = "INVESTMENT_TO_PPR";
3474
- TaxExemptionEnum[TaxExemptionEnum["PPR_TO_INVESTMENT"] = 5] = "PPR_TO_INVESTMENT";
3475
- TaxExemptionEnum[TaxExemptionEnum["TRANSFER"] = 6] = "TRANSFER";
3476
- TaxExemptionEnum[TaxExemptionEnum["OTHER"] = 7] = "OTHER";
3477
- })(TaxExemptionEnum || (TaxExemptionEnum = {}));
3478
-
3479
3485
  var PropertyCategoryListEnum;
3480
3486
  (function (PropertyCategoryListEnum) {
3481
3487
  PropertyCategoryListEnum[PropertyCategoryListEnum["OWNER_OCCUPIED"] = 3] = "OWNER_OCCUPIED";
@@ -3555,21 +3561,21 @@ class Property extends Property$1 {
3555
3561
  return (this.marketValue - this.purchasePrice) / this.marketValue;
3556
3562
  }
3557
3563
  get myShare() {
3558
- return this.owners.find((owner) => owner.user.id === +localStorage.getItem('userId'));
3564
+ return this.shares.find((share) => share.user.id === +localStorage.getItem('userId'));
3559
3565
  }
3560
3566
  /**
3561
- * exact claim percent includes ownership
3567
+ * exact claim including share percent
3562
3568
  */
3563
- get ownershipClaimPercent() {
3564
- return this.ownershipPercent * this.claimPercent / 100;
3569
+ get shareClaimPercent() {
3570
+ return this.sharePercent * this.claimPercent / 100;
3565
3571
  }
3566
3572
  get actualValuation() {
3567
3573
  return this.valuations.reduce((maxDateValuation, valuation) => {
3568
3574
  return maxDateValuation.date > valuation.date ? maxDateValuation : valuation;
3569
3575
  }, this.valuations[0]);
3570
3576
  }
3571
- get ownershipPercent() {
3572
- return this.myShare.ownershipPercent;
3577
+ get sharePercent() {
3578
+ return this.myShare.percent;
3573
3579
  }
3574
3580
  get previousCategory() {
3575
3581
  let previousCategory;
@@ -3587,9 +3593,10 @@ class Property extends Property$1 {
3587
3593
  return this.forecasts.find((forecast) => forecast.financialYear === year);
3588
3594
  }
3589
3595
  get isShared() {
3590
- return this.owners.length > 1;
3596
+ return this.shares.length > 1;
3591
3597
  }
3592
3598
  /**
3599
+ * @TODO consider to move methods related with propertySale to separated class, since used just in one module yet
3593
3600
  * purchase costs - claimed costs, except `ppr to investment` exemption,
3594
3601
  * in that case it's equal to market value, when property became an investment property
3595
3602
  */
@@ -4282,7 +4289,7 @@ class Depreciation extends Depreciation$1 {
4282
4289
  * @TODO new FinancialYear(this.writeOffDate) === new FinancialYear()
4283
4290
  */
4284
4291
  isLowValuePool() {
4285
- return this.isAsset && !this.isWrittenOff() &&
4292
+ return this.isAsset &&
4286
4293
  this.calculation === DepreciationCalculationEnum.DIMINISHING &&
4287
4294
  this.amount > Depreciation.WRITTEN_OFF_THRESHOLD &&
4288
4295
  this.amount <= Depreciation.LOW_VALUE_POOL_THRESHOLD;
@@ -4364,7 +4371,7 @@ class Depreciation extends Depreciation$1 {
4364
4371
  * Create a new transaction from current depreciation
4365
4372
  */
4366
4373
  toTransaction() {
4367
- return plainToClass(Transaction, this);
4374
+ return plainToClass(Transaction, Object.assign({}, this, { amount: this.getCurrentYearForecastAmount() }));
4368
4375
  }
4369
4376
  }
4370
4377
  Depreciation.WRITTEN_OFF_THRESHOLD = 300;
@@ -4375,6 +4382,9 @@ __decorate([
4375
4382
  __decorate([
4376
4383
  Type(() => Date)
4377
4384
  ], Depreciation.prototype, "date", void 0);
4385
+ __decorate([
4386
+ Type(() => Date)
4387
+ ], Depreciation.prototype, "lowValuePoolDate", void 0);
4378
4388
  __decorate([
4379
4389
  Type(() => Date)
4380
4390
  ], Depreciation.prototype, "writeOffManualDate", void 0);
@@ -5212,6 +5222,12 @@ class DataTableColumn {
5212
5222
  }
5213
5223
  }
5214
5224
 
5225
+ var DepreciationLvpRateEnum;
5226
+ (function (DepreciationLvpRateEnum) {
5227
+ DepreciationLvpRateEnum[DepreciationLvpRateEnum["FIRST_YEAR"] = 0.1875] = "FIRST_YEAR";
5228
+ DepreciationLvpRateEnum[DepreciationLvpRateEnum["DEFAULT"] = 0.375] = "DEFAULT";
5229
+ })(DepreciationLvpRateEnum || (DepreciationLvpRateEnum = {}));
5230
+
5215
5231
  var DepreciationGroupEnum;
5216
5232
  (function (DepreciationGroupEnum) {
5217
5233
  DepreciationGroupEnum[DepreciationGroupEnum["BUILDING_IMPROVEMENTS"] = 0] = "BUILDING_IMPROVEMENTS";
@@ -5401,7 +5417,7 @@ var AppEventTypeEnum;
5401
5417
  AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_CREATED"] = 22] = "PROPERTY_MOVEMENT_CREATED";
5402
5418
  AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_UPDATED"] = 23] = "PROPERTY_MOVEMENT_UPDATED";
5403
5419
  AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_DELETED"] = 24] = "PROPERTY_MOVEMENT_DELETED";
5404
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_OWNER_UPDATED"] = 25] = "PROPERTY_OWNER_UPDATED";
5420
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SHARE_UPDATED"] = 25] = "PROPERTY_SHARE_UPDATED";
5405
5421
  AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_ADDED"] = 26] = "PROPERTY_SUBSCRIPTION_ADDED";
5406
5422
  AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_DELETED"] = 27] = "PROPERTY_SUBSCRIPTION_DELETED";
5407
5423
  AppEventTypeEnum[AppEventTypeEnum["PROPERTY_VALUATION_DOCUMENT_CREATED"] = 28] = "PROPERTY_VALUATION_DOCUMENT_CREATED";
@@ -5616,8 +5632,8 @@ __decorate([
5616
5632
  // return '/client/bank-feeds';
5617
5633
  // case NOTIFICATION_EVENT_TYPES.clientInvite.includes(obj.eventType):
5618
5634
  // return '/client/users/invitations';
5619
- // case NOTIFICATION_EVENT_TYPES.propertyOwner.includes(obj.eventType):
5620
- // return '/client/users/co-owners';
5635
+ // case NOTIFICATION_EVENT_TYPES.propertyShare.includes(obj.eventType):
5636
+ // return '/client/users/shares';
5621
5637
  // case NOTIFICATION_EVENT_TYPES.employeeInviteFromClient.includes(obj.eventType):
5622
5638
  // return '/firm/clients/invites';
5623
5639
  default:
@@ -5703,14 +5719,15 @@ const CAPITAL_COSTS_ITEMS = [
5703
5719
  ];
5704
5720
 
5705
5721
  /**
5722
+ * @TODO used only on dashboard, move from tt-core
5706
5723
  * Enum with properties ownership filter options
5707
5724
  */
5708
- var OwnershipFilterOptionsEnum;
5709
- (function (OwnershipFilterOptionsEnum) {
5710
- OwnershipFilterOptionsEnum[OwnershipFilterOptionsEnum["ALL_PROPERTIES"] = 1] = "ALL_PROPERTIES";
5711
- OwnershipFilterOptionsEnum[OwnershipFilterOptionsEnum["OWN_PROPERTIES"] = 2] = "OWN_PROPERTIES";
5712
- OwnershipFilterOptionsEnum[OwnershipFilterOptionsEnum["SHARED_PROPERTIES"] = 3] = "SHARED_PROPERTIES";
5713
- })(OwnershipFilterOptionsEnum || (OwnershipFilterOptionsEnum = {}));
5725
+ var ShareFilterOptionsEnum;
5726
+ (function (ShareFilterOptionsEnum) {
5727
+ ShareFilterOptionsEnum[ShareFilterOptionsEnum["ALL"] = 1] = "ALL";
5728
+ ShareFilterOptionsEnum[ShareFilterOptionsEnum["CREATED"] = 2] = "CREATED";
5729
+ ShareFilterOptionsEnum[ShareFilterOptionsEnum["SHARED"] = 3] = "SHARED";
5730
+ })(ShareFilterOptionsEnum || (ShareFilterOptionsEnum = {}));
5714
5731
 
5715
5732
  /**
5716
5733
  * class contains equity information for passed financial year
@@ -5893,49 +5910,49 @@ class PropertyEquityChartData {
5893
5910
  }
5894
5911
  }
5895
5912
 
5896
- class PropertyOwner$1 {
5913
+ class PropertyShare$1 {
5897
5914
  }
5898
5915
 
5899
- class PropertyOwner extends PropertyOwner$1 {
5916
+ class PropertyShare extends PropertyShare$1 {
5900
5917
  isAccepted() {
5901
- return this.status === PropertyOwnerStatusEnum.APPROVED;
5918
+ return this.status === PropertyShareStatusEnum.APPROVED;
5902
5919
  }
5903
5920
  isPending() {
5904
- return this.status === PropertyOwnerStatusEnum.PENDING;
5921
+ return this.status === PropertyShareStatusEnum.PENDING;
5905
5922
  }
5906
5923
  isRejected() {
5907
- return this.status === PropertyOwnerStatusEnum.REJECTED;
5924
+ return this.status === PropertyShareStatusEnum.REJECTED;
5908
5925
  }
5909
5926
  get statusName() {
5910
5927
  var _a;
5911
- return (_a = PropertyOwnerStatusEnum[this.status]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
5928
+ return (_a = PropertyShareStatusEnum[this.status]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
5912
5929
  }
5913
5930
  /**
5914
5931
  * Return full user name if user is already registered.
5915
5932
  * Otherwise - return first name from invitation
5916
5933
  */
5917
- get fullName() {
5934
+ get userName() {
5918
5935
  return this.user ? this.user.fullName : `${this.invite.firstName}`;
5919
5936
  }
5920
5937
  }
5921
5938
  __decorate([
5922
5939
  Type(() => Date)
5923
- ], PropertyOwner.prototype, "fromDate", void 0);
5940
+ ], PropertyShare.prototype, "fromDate", void 0);
5924
5941
  __decorate([
5925
5942
  Type(() => Date)
5926
- ], PropertyOwner.prototype, "toDate", void 0);
5943
+ ], PropertyShare.prototype, "toDate", void 0);
5927
5944
  __decorate([
5928
5945
  Type(() => User)
5929
- ], PropertyOwner.prototype, "user", void 0);
5946
+ ], PropertyShare.prototype, "user", void 0);
5930
5947
  __decorate([
5931
5948
  Type(() => RegistrationInvite)
5932
- ], PropertyOwner.prototype, "invite", void 0);
5949
+ ], PropertyShare.prototype, "invite", void 0);
5933
5950
  __decorate([
5934
5951
  Type(() => Property)
5935
- ], PropertyOwner.prototype, "property", void 0);
5952
+ ], PropertyShare.prototype, "property", void 0);
5936
5953
  __decorate([
5937
5954
  Transform(({ obj }) => obj.user ? obj.user.email : obj.invite.email)
5938
- ], PropertyOwner.prototype, "email", void 0);
5955
+ ], PropertyShare.prototype, "email", void 0);
5939
5956
 
5940
5957
  class PropertySale$1 {
5941
5958
  }
@@ -6730,7 +6747,7 @@ class BankAccountService extends BaseRestService {
6730
6747
  */
6731
6748
  listenToEventDispatcherChanges() {
6732
6749
  this.eventDispatcherService.on([
6733
- AppEventTypeEnum.PROPERTY_OWNER_UPDATED,
6750
+ AppEventTypeEnum.PROPERTY_SHARE_UPDATED,
6734
6751
  AppEventTypeEnum.LOAN_PAYOUT_UPDATED,
6735
6752
  AppEventTypeEnum.BANK_CONNECTION_ADDED
6736
6753
  ]).subscribe(() => {
@@ -7850,7 +7867,7 @@ class DepreciationService extends BaseRestService {
7850
7867
  * Listen to EventDispatcherService event related to updated bank loan
7851
7868
  */
7852
7869
  listenToUpdatedLoan() {
7853
- this.eventDispatcherService.on([AppEventTypeEnum.LOAN_UPDATED, AppEventTypeEnum.PROPERTY_OWNER_UPDATED]).subscribe(() => {
7870
+ this.eventDispatcherService.on([AppEventTypeEnum.LOAN_UPDATED, AppEventTypeEnum.PROPERTY_SHARE_UPDATED]).subscribe(() => {
7854
7871
  this.fetch().subscribe();
7855
7872
  });
7856
7873
  }
@@ -8695,8 +8712,16 @@ const PDF_CONFIG = {
8695
8712
  fontWeight: 'bold',
8696
8713
  positionX: 14,
8697
8714
  positionY: 10,
8698
- fillColor: 255,
8699
- textColor: 0
8715
+ colorWhite: '#ffffff',
8716
+ colorBlack: '#000000',
8717
+ colorPrimary: '#00b7f0'
8718
+ },
8719
+ logo: {
8720
+ src: '/assets/img/icons/logo.png',
8721
+ width: 30,
8722
+ height: 7,
8723
+ positionX: 168,
8724
+ positionY: 6
8700
8725
  },
8701
8726
  // coords for file section title (group, table, e.t.c.)
8702
8727
  contentTitleCoords: {
@@ -8733,20 +8758,35 @@ class PdfService {
8733
8758
  generateFromTables(tables, title) {
8734
8759
  const pdf = new jsPDF();
8735
8760
  this.setDocumentTitle(pdf, title);
8761
+ this.setDocumentLogo(pdf);
8736
8762
  tables.forEach((table) => {
8737
- var _a, _b;
8763
+ var _a;
8764
+ // Add table caption if not provided
8765
+ if (!table.caption) {
8766
+ table.createCaption();
8767
+ table.caption.innerText = '';
8768
+ }
8738
8769
  // coords of last table
8739
8770
  const lastTableCoords = pdf['lastAutoTable'].finalY || PDF_CONFIG.contentCoords.marginTop;
8740
- pdf.text((_a = table.caption) === null || _a === void 0 ? void 0 : _a.innerText, PDF_CONFIG.contentCoords.marginLeft, lastTableCoords + PDF_CONFIG.contentCoords.marginTop);
8771
+ pdf.text(table.caption.innerText, PDF_CONFIG.contentCoords.marginLeft, lastTableCoords + PDF_CONFIG.contentCoords.marginTop);
8741
8772
  // get caption height based on caption content height
8742
- const captionHeight = pdf.getTextDimensions(pdf.splitTextToSize((_b = table.caption) === null || _b === void 0 ? void 0 : _b.innerText, pdf.internal.pageSize.width)).h;
8773
+ const captionHeight = pdf.getTextDimensions(pdf.splitTextToSize((_a = table.caption) === null || _a === void 0 ? void 0 : _a.innerText, pdf.internal.pageSize.width)).h;
8743
8774
  // table options
8744
8775
  const options = {
8745
8776
  html: table,
8746
8777
  startY: lastTableCoords + captionHeight + PDF_CONFIG.contentTitleCoords.marginTop,
8778
+ headStyles: {
8779
+ fillColor: PDF_CONFIG.text.colorPrimary,
8780
+ },
8747
8781
  footStyles: {
8748
- fillColor: PDF_CONFIG.text.fillColor,
8749
- textColor: PDF_CONFIG.text.textColor
8782
+ fillColor: PDF_CONFIG.text.colorWhite,
8783
+ textColor: PDF_CONFIG.text.colorBlack
8784
+ },
8785
+ didParseCell: (data) => {
8786
+ // Align last column content to right
8787
+ if (data.table.columns.length > 1 && (data.column.index === data.table.columns.length - 1)) {
8788
+ data.cell.styles.halign = 'right';
8789
+ }
8750
8790
  }
8751
8791
  };
8752
8792
  autoTable(pdf, options);
@@ -8758,6 +8798,11 @@ class PdfService {
8758
8798
  .setFont(PDF_CONFIG.text.fontName, PDF_CONFIG.text.fontStyle, PDF_CONFIG.text.fontWeight)
8759
8799
  .text(title, PDF_CONFIG.text.positionX, PDF_CONFIG.text.positionY);
8760
8800
  }
8801
+ setDocumentLogo(doc) {
8802
+ const logo = new Image();
8803
+ logo.src = PDF_CONFIG.logo.src;
8804
+ doc.addImage(logo, 'PNG', PDF_CONFIG.logo.positionX, PDF_CONFIG.logo.positionY, PDF_CONFIG.logo.width, PDF_CONFIG.logo.height);
8805
+ }
8761
8806
  /**
8762
8807
  * @Todo remove/refactor when all DataTable dependent methods will be cleared-up
8763
8808
  * Generate PDF file from provided data
@@ -8811,16 +8856,16 @@ class PropertyService extends BaseRestService {
8811
8856
  this.listenEvents();
8812
8857
  }
8813
8858
  listenEvents() {
8814
- this.listenCoOwnerInviteAccepted();
8859
+ this.listenShareInviteAccepted();
8815
8860
  this.listenServiceSubscriptionUpdated();
8816
8861
  // @TODO Alex: consider to refactor property movements logic similar to client-movements
8817
8862
  this.listenMovementsChanged();
8818
8863
  }
8819
8864
  /**
8820
- * Update cache when owner invitation accepted
8865
+ * Update cache when share invitation accepted
8821
8866
  */
8822
- listenCoOwnerInviteAccepted() {
8823
- this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_OWNER_UPDATED).subscribe(() => this.resetCache());
8867
+ listenShareInviteAccepted() {
8868
+ this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SHARE_UPDATED).subscribe(() => this.resetCache());
8824
8869
  }
8825
8870
  /**
8826
8871
  * Update cache when user's service subscription is updated
@@ -8887,7 +8932,7 @@ class PropertyService extends BaseRestService {
8887
8932
  this.updateCache();
8888
8933
  }));
8889
8934
  }
8890
- getByCoOwnerId(id) {
8935
+ getByShareId(id) {
8891
8936
  return this.get().pipe(map((properties) => {
8892
8937
  return properties.filter((property) => property.user.id === id);
8893
8938
  }));
@@ -9109,15 +9154,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
9109
9154
  }] }]; } });
9110
9155
 
9111
9156
  // @TODO check and improve logic during refactoring
9112
- class PropertyOwnerService extends BaseRestService {
9157
+ class PropertyShareService extends BaseRestService {
9113
9158
  constructor(http, eventDispatcherService, environment) {
9114
9159
  super(http, eventDispatcherService, environment);
9115
9160
  this.http = http;
9116
9161
  this.eventDispatcherService = eventDispatcherService;
9117
9162
  this.environment = environment;
9118
- // api url parameter for properties co-owners
9119
- this.url = 'properties/co-owners';
9120
- this.modelClass = PropertyOwner;
9163
+ // api url parameter for properties shares
9164
+ this.url = 'properties/shares';
9165
+ this.modelClass = PropertyShare;
9121
9166
  this.listenEvents();
9122
9167
  }
9123
9168
  /**
@@ -9129,70 +9174,62 @@ class PropertyOwnerService extends BaseRestService {
9129
9174
  /**
9130
9175
  * Updated loan
9131
9176
  */
9132
- update(propertyOwner) {
9133
- return this.http.put(`${this.environment.apiV2}/${this.url}/${propertyOwner.id}`, propertyOwner)
9134
- .pipe(map((updatedPropertyOwnerBase) => {
9135
- const updatedPropertyOwner = plainToClass(PropertyOwner, updatedPropertyOwnerBase);
9177
+ update(propertyShare) {
9178
+ return this.http.put(`${this.environment.apiV2}/${this.url}/${propertyShare.id}`, propertyShare)
9179
+ .pipe(map((updatedPropertyShareBase) => {
9180
+ const updatedPropertyShare = plainToClass(PropertyShare, updatedPropertyShareBase);
9136
9181
  // if loan type is NOT vehicle - fire EventDispatcher event
9137
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.PROPERTY_OWNER_UPDATED, null));
9138
- replace(this.cache, updatedPropertyOwner);
9182
+ this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.PROPERTY_SHARE_UPDATED, null));
9183
+ replace(this.cache, updatedPropertyShare);
9139
9184
  this.updateCache();
9140
- return updatedPropertyOwner;
9185
+ return updatedPropertyShare;
9141
9186
  }));
9142
9187
  }
9143
9188
  /**
9144
- * Re-invite property owner
9189
+ * Re-invite property share
9145
9190
  * @param share user to share property
9146
9191
  */
9147
9192
  reinvite(share) {
9148
9193
  return this.http.post(`${this.environment.apiV2}/${this.url}/${share.id}/reinvite`, {});
9149
9194
  }
9150
- /**
9151
- * Get incoming property owners list
9152
- */
9153
9195
  getIncoming() {
9154
9196
  return this.get()
9155
- .pipe(map((propertyOwners) => {
9156
- const propertyOwnersIncoming = [];
9157
- propertyOwners.forEach((propertyOwner) => {
9197
+ .pipe(map((propertyShares) => {
9198
+ const propertySharesIncoming = [];
9199
+ propertyShares.forEach((propertyShare) => {
9158
9200
  var _a;
9159
- if (((_a = propertyOwner.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn()) && propertyOwner.isPending() && propertyOwner.property.user.id !== +localStorage.getItem('userId')) {
9160
- propertyOwnersIncoming.push(propertyOwner);
9201
+ if (((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn()) && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId')) {
9202
+ propertySharesIncoming.push(propertyShare);
9161
9203
  }
9162
9204
  });
9163
- return propertyOwnersIncoming;
9205
+ return propertySharesIncoming;
9164
9206
  }));
9165
9207
  }
9166
9208
  /**
9167
- * Get outcoming property owners list
9209
+ * Get outcoming property shares list
9168
9210
  */
9169
9211
  getOutcoming() {
9170
- return this.get().pipe(map((propertyOwners) => {
9171
- return this.filterOutcoming(propertyOwners);
9212
+ return this.get().pipe(map((propertyShares) => {
9213
+ return this.filterOutcoming(propertyShares);
9172
9214
  }));
9173
9215
  }
9174
9216
  /**
9175
- * Filter outcoming property owners
9176
- * @param propertyOwners which should be filtered
9217
+ * Filter outcoming property shares
9177
9218
  */
9178
- filterOutcoming(propertyOwners) {
9179
- const propertyOwnersOutcoming = [];
9180
- propertyOwners.forEach((propertyOwner) => {
9219
+ filterOutcoming(propertyShares) {
9220
+ const propertySharesOutcoming = [];
9221
+ propertyShares.forEach((propertyShare) => {
9181
9222
  var _a;
9182
- if (!((_a = propertyOwner.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn())) {
9183
- propertyOwnersOutcoming.push(propertyOwner);
9223
+ if (!((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn())) {
9224
+ propertySharesOutcoming.push(propertyShare);
9184
9225
  }
9185
9226
  });
9186
- return propertyOwnersOutcoming;
9227
+ return propertySharesOutcoming;
9187
9228
  }
9188
- /**
9189
- * Get list of co-owners filtered by property id
9190
- * @param propertyId
9191
- */
9192
9229
  getByPropertyId(propertyId) {
9193
9230
  return this.get()
9194
- .pipe(map((propertyOwners) => {
9195
- return propertyOwners.filter((propertyOwner) => propertyOwner.property.id === propertyId);
9231
+ .pipe(map((propertyShares) => {
9232
+ return propertyShares.filter((propertyShare) => propertyShare.property.id === propertyId);
9196
9233
  }));
9197
9234
  }
9198
9235
  /**
@@ -9201,16 +9238,16 @@ class PropertyOwnerService extends BaseRestService {
9201
9238
  listenUserUpdated() {
9202
9239
  this.eventDispatcherService.on(AppEventTypeEnum.USER_UPDATED)
9203
9240
  .subscribe(() => {
9204
- this.fetch().subscribe((propertyOwners) => {
9205
- this.cache = propertyOwners;
9241
+ this.fetch().subscribe((propertyShares) => {
9242
+ this.cache = propertyShares;
9206
9243
  this.updateCache();
9207
9244
  });
9208
9245
  });
9209
9246
  }
9210
9247
  }
9211
- PropertyOwnerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyOwnerService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9212
- PropertyOwnerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyOwnerService, providedIn: 'root' });
9213
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyOwnerService, decorators: [{
9248
+ PropertyShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyShareService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9249
+ PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
9250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyShareService, decorators: [{
9214
9251
  type: Injectable,
9215
9252
  args: [{
9216
9253
  providedIn: 'root'
@@ -10721,5 +10758,5 @@ class ResetPasswordForm extends AbstractForm {
10721
10758
  * Generated bundle index. Do not edit.
10722
10759
  */
10723
10760
 
10724
- export { AbstractForm, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Bank, BankAccount, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CapitalProjectService, ChartAccounts, ChartAccountsCategoryEnum, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartData, ChartSerie, Chat, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientInvite, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEFAULT_VEHICLE_EXPENSE, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DataTable, DataTableColumn, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationReceipt, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSalaryEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookCollection, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, Notification, NotificationService, Occupation, OccupationService, OwnershipFilterOptionsEnum, PasswordForm, PdfService, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyOwner, PropertyOwnerAccessEnum, PropertyOwnerService, PropertyOwnerStatusEnum, PropertySale, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertySubscription, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ResetPasswordForm, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceTypeEnum, ServiceProduct, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, SoleForecast, SoleForecastService, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryItem, TaxReturnCategoryItemCollection, TaxReturnCategoryItemDetails, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, Vehicle, VehicleClaim, VehicleClaimMethodEnum, VehicleLogbook, VehicleLogbookPurposeEnum, WORK_TANK_LOGBOOK_PURPOSE_OPTIONS, WorkTankService, XlsxService, cloneDeep, compare, compareMatOptions, createDate, displayMatOptions, enumToList, getDocIcon, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
10761
+ export { AbstractForm, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Bank, BankAccount, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CapitalProjectService, ChartAccounts, ChartAccountsCategoryEnum, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartData, ChartSerie, Chat, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientInvite, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEFAULT_VEHICLE_EXPENSE, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DataTable, DataTableColumn, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpRateEnum, DepreciationReceipt, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSalaryEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookCollection, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, Notification, NotificationService, Occupation, OccupationService, PasswordForm, PdfService, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertySale, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ResetPasswordForm, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceTypeEnum, ServiceProduct, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleForecast, SoleForecastService, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryItem, TaxReturnCategoryItemCollection, TaxReturnCategoryItemDetails, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, Vehicle, VehicleClaim, VehicleClaimMethodEnum, VehicleLogbook, VehicleLogbookPurposeEnum, WORK_TANK_LOGBOOK_PURPOSE_OPTIONS, WorkTankService, XlsxService, cloneDeep, compare, compareMatOptions, createDate, displayMatOptions, enumToList, getDocIcon, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
10725
10762
  //# sourceMappingURL=taxtank-core.js.map