taxtank-core 0.7.3 → 0.8.3

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 (56) hide show
  1. package/bundles/taxtank-core.umd.js +191 -164
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/collection.js +7 -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/bank/basiq-config.js +12 -0
  14. package/esm2015/lib/models/endpoint/endpoints.const.js +4 -4
  15. package/esm2015/lib/models/event/app-event-type.enum.js +2 -2
  16. package/esm2015/lib/models/notification/notification.js +3 -3
  17. package/esm2015/lib/models/property/property-sale/property-sale.js +1 -1
  18. package/esm2015/lib/models/property/{property-owner.js → property-share.js} +15 -15
  19. package/esm2015/lib/models/property/property.js +9 -8
  20. package/esm2015/lib/models/property/share-filter-options.enum.js +11 -0
  21. package/esm2015/lib/services/bank/bank-account.service.js +2 -2
  22. package/esm2015/lib/services/depreciation/depreciation.service.js +2 -2
  23. package/esm2015/lib/services/property/property-share/property-share.service.js +115 -0
  24. package/esm2015/lib/services/property/property.service.js +6 -6
  25. package/esm2015/lib/services/subscription/subscription.service.js +35 -16
  26. package/esm2015/public-api.js +8 -6
  27. package/fesm2015/taxtank-core.js +159 -135
  28. package/fesm2015/taxtank-core.js.map +1 -1
  29. package/lib/collections/collection.d.ts +2 -1
  30. package/lib/collections/property/property.collection.d.ts +1 -4
  31. package/lib/db/Enums/property/property-share-access.enum.d.ts +4 -0
  32. package/lib/db/Enums/property/{property-owner-status.enum.d.ts → property-share-status.enum.d.ts} +1 -1
  33. package/lib/db/Enums/user-event-type-client-type.enum.d.ts +8 -8
  34. package/lib/db/Models/client-details.d.ts +1 -0
  35. package/lib/db/Models/property/property-sale/property-sale.d.ts +4 -3
  36. package/lib/db/Models/property/{property-owner.d.ts → property-share.d.ts} +6 -6
  37. package/lib/db/Models/property/property.d.ts +2 -2
  38. package/lib/db/Models/user.d.ts +2 -2
  39. package/lib/models/bank/basiq-config.d.ts +17 -0
  40. package/lib/models/event/app-event-type.enum.d.ts +1 -1
  41. package/lib/models/property/{property-owner.d.ts → property-share.d.ts} +3 -3
  42. package/lib/models/property/property.d.ts +6 -5
  43. package/lib/models/property/share-filter-options.enum.d.ts +9 -0
  44. package/lib/services/property/property-share/property-share.service.d.ts +44 -0
  45. package/lib/services/property/property.service.d.ts +3 -3
  46. package/lib/services/subscription/subscription.service.d.ts +9 -4
  47. package/package.json +1 -1
  48. package/public-api.d.ts +7 -5
  49. package/esm2015/lib/db/Enums/property/property-owner-access.enum.js +0 -6
  50. package/esm2015/lib/db/Enums/property/property-owner-status.enum.js +0 -7
  51. package/esm2015/lib/db/Models/property/property-owner.js +0 -3
  52. package/esm2015/lib/models/property/ownership-filter-options.enum.js +0 -10
  53. package/esm2015/lib/services/property/property-owner/property-owner.service.js +0 -123
  54. package/lib/db/Enums/property/property-owner-access.enum.d.ts +0 -4
  55. package/lib/models/property/ownership-filter-options.enum.d.ts +0 -8
  56. 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
  */
@@ -1734,10 +1737,7 @@ class PropertyCollection extends Collection {
1734
1737
  getActiveProperties() {
1735
1738
  return new PropertyCollection(this.items.filter((property) => property.isActive));
1736
1739
  }
1737
- /**
1738
- * Get new property collection filtered by owner
1739
- */
1740
- getOwnProperties() {
1740
+ getCreatedProperties() {
1741
1741
  return new PropertyCollection(this.items.filter((property) => property.isOwn()));
1742
1742
  }
1743
1743
  /**
@@ -2499,18 +2499,18 @@ var PropertyDepreciationCalculationEnum;
2499
2499
  PropertyDepreciationCalculationEnum[PropertyDepreciationCalculationEnum["DIMINISHING"] = 2] = "DIMINISHING";
2500
2500
  })(PropertyDepreciationCalculationEnum || (PropertyDepreciationCalculationEnum = {}));
2501
2501
 
2502
- var PropertyOwnerAccessEnum;
2503
- (function (PropertyOwnerAccessEnum) {
2504
- PropertyOwnerAccessEnum[PropertyOwnerAccessEnum["VIEW"] = 1] = "VIEW";
2505
- PropertyOwnerAccessEnum[PropertyOwnerAccessEnum["EDIT"] = 2] = "EDIT";
2506
- })(PropertyOwnerAccessEnum || (PropertyOwnerAccessEnum = {}));
2502
+ var PropertyShareAccessEnum;
2503
+ (function (PropertyShareAccessEnum) {
2504
+ PropertyShareAccessEnum[PropertyShareAccessEnum["VIEW"] = 1] = "VIEW";
2505
+ PropertyShareAccessEnum[PropertyShareAccessEnum["EDIT"] = 2] = "EDIT";
2506
+ })(PropertyShareAccessEnum || (PropertyShareAccessEnum = {}));
2507
2507
 
2508
- var PropertyOwnerStatusEnum;
2509
- (function (PropertyOwnerStatusEnum) {
2510
- PropertyOwnerStatusEnum[PropertyOwnerStatusEnum["PENDING"] = 1] = "PENDING";
2511
- PropertyOwnerStatusEnum[PropertyOwnerStatusEnum["APPROVED"] = 2] = "APPROVED";
2512
- PropertyOwnerStatusEnum[PropertyOwnerStatusEnum["REJECTED"] = 3] = "REJECTED";
2513
- })(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 = {}));
2514
2514
 
2515
2515
  var RegistrationInviteStatusEnum;
2516
2516
  (function (RegistrationInviteStatusEnum) {
@@ -2733,14 +2733,14 @@ var UserEventTypeClientTypeEnum;
2733
2733
  UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["FIRM_INVITE_ACCEPTED"] = 2012] = "FIRM_INVITE_ACCEPTED";
2734
2734
  UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["FIRM_INVITE_REJECTED"] = 2013] = "FIRM_INVITE_REJECTED";
2735
2735
  UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["FIRM_INVITE_REGISTERED"] = 2014] = "FIRM_INVITE_REGISTERED";
2736
- UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["CO_OWNER_INVITE"] = 2020] = "CO_OWNER_INVITE";
2737
- UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["CO_OWNER_INVITE_TO_REGISTER"] = 2021] = "CO_OWNER_INVITE_TO_REGISTER";
2738
- UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["CO_OWNER_INVITE_ACCEPTED"] = 2022] = "CO_OWNER_INVITE_ACCEPTED";
2739
- UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["CO_OWNER_INVITE_REJECTED"] = 2023] = "CO_OWNER_INVITE_REJECTED";
2740
- UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["CO_OWNER_INVITE_REGISTERED"] = 2024] = "CO_OWNER_INVITE_REGISTERED";
2741
- UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["CO_OWNER_CHANGE_REQUESTED"] = 2025] = "CO_OWNER_CHANGE_REQUESTED";
2742
- UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["CO_OWNER_CHANGE_ACCEPTED"] = 2026] = "CO_OWNER_CHANGE_ACCEPTED";
2743
- 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";
2744
2744
  UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["BASIQ_NEW_ACCOUNTS"] = 2030] = "BASIQ_NEW_ACCOUNTS";
2745
2745
  UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["BASIQ_FIRST_IMPORT_COMPLETE"] = 2031] = "BASIQ_FIRST_IMPORT_COMPLETE";
2746
2746
  UserEventTypeClientTypeEnum[UserEventTypeClientTypeEnum["BASIQ_AUTHORIZATION_FAIL"] = 2032] = "BASIQ_AUTHORIZATION_FAIL";
@@ -2815,6 +2815,18 @@ var VehicleLogbookPurposeEnum;
2815
2815
  VehicleLogbookPurposeEnum[VehicleLogbookPurposeEnum["PERSONAL"] = 2] = "PERSONAL";
2816
2816
  })(VehicleLogbookPurposeEnum || (VehicleLogbookPurposeEnum = {}));
2817
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
+
2818
2830
  var TaxExemptionMetadataEnum;
2819
2831
  (function (TaxExemptionMetadataEnum) {
2820
2832
  // principle place of residence
@@ -3470,18 +3482,6 @@ __decorate([
3470
3482
  Type(() => Date)
3471
3483
  ], PropertyCategoryMovement.prototype, "toDate", void 0);
3472
3484
 
3473
- var TaxExemptionEnum;
3474
- (function (TaxExemptionEnum) {
3475
- TaxExemptionEnum[TaxExemptionEnum["ONE_YEAR_RULE"] = 1] = "ONE_YEAR_RULE";
3476
- // principle place of residence
3477
- TaxExemptionEnum[TaxExemptionEnum["PPR"] = 2] = "PPR";
3478
- TaxExemptionEnum[TaxExemptionEnum["SIX_YEARS_RULE"] = 3] = "SIX_YEARS_RULE";
3479
- TaxExemptionEnum[TaxExemptionEnum["INVESTMENT_TO_PPR"] = 4] = "INVESTMENT_TO_PPR";
3480
- TaxExemptionEnum[TaxExemptionEnum["PPR_TO_INVESTMENT"] = 5] = "PPR_TO_INVESTMENT";
3481
- TaxExemptionEnum[TaxExemptionEnum["TRANSFER"] = 6] = "TRANSFER";
3482
- TaxExemptionEnum[TaxExemptionEnum["OTHER"] = 7] = "OTHER";
3483
- })(TaxExemptionEnum || (TaxExemptionEnum = {}));
3484
-
3485
3485
  var PropertyCategoryListEnum;
3486
3486
  (function (PropertyCategoryListEnum) {
3487
3487
  PropertyCategoryListEnum[PropertyCategoryListEnum["OWNER_OCCUPIED"] = 3] = "OWNER_OCCUPIED";
@@ -3561,21 +3561,21 @@ class Property extends Property$1 {
3561
3561
  return (this.marketValue - this.purchasePrice) / this.marketValue;
3562
3562
  }
3563
3563
  get myShare() {
3564
- return this.owners.find((owner) => owner.user.id === +localStorage.getItem('userId'));
3564
+ return this.shares.find((share) => share.user.id === +localStorage.getItem('userId'));
3565
3565
  }
3566
3566
  /**
3567
- * exact claim percent includes ownership
3567
+ * exact claim including share percent
3568
3568
  */
3569
- get ownershipClaimPercent() {
3570
- return this.ownershipPercent * this.claimPercent / 100;
3569
+ get shareClaimPercent() {
3570
+ return this.sharePercent * this.claimPercent / 100;
3571
3571
  }
3572
3572
  get actualValuation() {
3573
3573
  return this.valuations.reduce((maxDateValuation, valuation) => {
3574
3574
  return maxDateValuation.date > valuation.date ? maxDateValuation : valuation;
3575
3575
  }, this.valuations[0]);
3576
3576
  }
3577
- get ownershipPercent() {
3578
- return this.myShare.ownershipPercent;
3577
+ get sharePercent() {
3578
+ return this.myShare.percent;
3579
3579
  }
3580
3580
  get previousCategory() {
3581
3581
  let previousCategory;
@@ -3593,9 +3593,10 @@ class Property extends Property$1 {
3593
3593
  return this.forecasts.find((forecast) => forecast.financialYear === year);
3594
3594
  }
3595
3595
  get isShared() {
3596
- return this.owners.length > 1;
3596
+ return this.shares.length > 1;
3597
3597
  }
3598
3598
  /**
3599
+ * @TODO consider to move methods related with propertySale to separated class, since used just in one module yet
3599
3600
  * purchase costs - claimed costs, except `ppr to investment` exemption,
3600
3601
  * in that case it's equal to market value, when property became an investment property
3601
3602
  */
@@ -4832,6 +4833,18 @@ var BankTransactionSummaryFieldsEnum;
4832
4833
  BankTransactionSummaryFieldsEnum["ALLOCATED_AMOUNT"] = "allocatedAmount";
4833
4834
  })(BankTransactionSummaryFieldsEnum || (BankTransactionSummaryFieldsEnum = {}));
4834
4835
 
4836
+ /**
4837
+ * Class describe configuration options for basiq connect control
4838
+ * https://www.npmjs.com/package/@basiq/basiq-connect-control
4839
+ */
4840
+ class BasiqConfig {
4841
+ constructor(options) {
4842
+ // ID of the DOM element to which Basiq Connect Control will be rendered;
4843
+ this.containerId = 'basiq-control';
4844
+ Object.assign(this, options);
4845
+ }
4846
+ }
4847
+
4835
4848
  /**
4836
4849
  * access token, needed to access basiq connect ui (https://github.com/basiqio/basiq-connect-ui)
4837
4850
  */
@@ -5416,7 +5429,7 @@ var AppEventTypeEnum;
5416
5429
  AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_CREATED"] = 22] = "PROPERTY_MOVEMENT_CREATED";
5417
5430
  AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_UPDATED"] = 23] = "PROPERTY_MOVEMENT_UPDATED";
5418
5431
  AppEventTypeEnum[AppEventTypeEnum["PROPERTY_MOVEMENT_DELETED"] = 24] = "PROPERTY_MOVEMENT_DELETED";
5419
- AppEventTypeEnum[AppEventTypeEnum["PROPERTY_OWNER_UPDATED"] = 25] = "PROPERTY_OWNER_UPDATED";
5432
+ AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SHARE_UPDATED"] = 25] = "PROPERTY_SHARE_UPDATED";
5420
5433
  AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_ADDED"] = 26] = "PROPERTY_SUBSCRIPTION_ADDED";
5421
5434
  AppEventTypeEnum[AppEventTypeEnum["PROPERTY_SUBSCRIPTION_DELETED"] = 27] = "PROPERTY_SUBSCRIPTION_DELETED";
5422
5435
  AppEventTypeEnum[AppEventTypeEnum["PROPERTY_VALUATION_DOCUMENT_CREATED"] = 28] = "PROPERTY_VALUATION_DOCUMENT_CREATED";
@@ -5631,8 +5644,8 @@ __decorate([
5631
5644
  // return '/client/bank-feeds';
5632
5645
  // case NOTIFICATION_EVENT_TYPES.clientInvite.includes(obj.eventType):
5633
5646
  // return '/client/users/invitations';
5634
- // case NOTIFICATION_EVENT_TYPES.propertyOwner.includes(obj.eventType):
5635
- // return '/client/users/co-owners';
5647
+ // case NOTIFICATION_EVENT_TYPES.propertyShare.includes(obj.eventType):
5648
+ // return '/client/users/shares';
5636
5649
  // case NOTIFICATION_EVENT_TYPES.employeeInviteFromClient.includes(obj.eventType):
5637
5650
  // return '/firm/clients/invites';
5638
5651
  default:
@@ -5718,14 +5731,15 @@ const CAPITAL_COSTS_ITEMS = [
5718
5731
  ];
5719
5732
 
5720
5733
  /**
5734
+ * @TODO used only on dashboard, move from tt-core
5721
5735
  * Enum with properties ownership filter options
5722
5736
  */
5723
- var OwnershipFilterOptionsEnum;
5724
- (function (OwnershipFilterOptionsEnum) {
5725
- OwnershipFilterOptionsEnum[OwnershipFilterOptionsEnum["ALL_PROPERTIES"] = 1] = "ALL_PROPERTIES";
5726
- OwnershipFilterOptionsEnum[OwnershipFilterOptionsEnum["OWN_PROPERTIES"] = 2] = "OWN_PROPERTIES";
5727
- OwnershipFilterOptionsEnum[OwnershipFilterOptionsEnum["SHARED_PROPERTIES"] = 3] = "SHARED_PROPERTIES";
5728
- })(OwnershipFilterOptionsEnum || (OwnershipFilterOptionsEnum = {}));
5737
+ var ShareFilterOptionsEnum;
5738
+ (function (ShareFilterOptionsEnum) {
5739
+ ShareFilterOptionsEnum[ShareFilterOptionsEnum["ALL"] = 1] = "ALL";
5740
+ ShareFilterOptionsEnum[ShareFilterOptionsEnum["CREATED"] = 2] = "CREATED";
5741
+ ShareFilterOptionsEnum[ShareFilterOptionsEnum["SHARED"] = 3] = "SHARED";
5742
+ })(ShareFilterOptionsEnum || (ShareFilterOptionsEnum = {}));
5729
5743
 
5730
5744
  /**
5731
5745
  * class contains equity information for passed financial year
@@ -5908,49 +5922,49 @@ class PropertyEquityChartData {
5908
5922
  }
5909
5923
  }
5910
5924
 
5911
- class PropertyOwner$1 {
5925
+ class PropertyShare$1 {
5912
5926
  }
5913
5927
 
5914
- class PropertyOwner extends PropertyOwner$1 {
5928
+ class PropertyShare extends PropertyShare$1 {
5915
5929
  isAccepted() {
5916
- return this.status === PropertyOwnerStatusEnum.APPROVED;
5930
+ return this.status === PropertyShareStatusEnum.APPROVED;
5917
5931
  }
5918
5932
  isPending() {
5919
- return this.status === PropertyOwnerStatusEnum.PENDING;
5933
+ return this.status === PropertyShareStatusEnum.PENDING;
5920
5934
  }
5921
5935
  isRejected() {
5922
- return this.status === PropertyOwnerStatusEnum.REJECTED;
5936
+ return this.status === PropertyShareStatusEnum.REJECTED;
5923
5937
  }
5924
5938
  get statusName() {
5925
5939
  var _a;
5926
- return (_a = PropertyOwnerStatusEnum[this.status]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
5940
+ return (_a = PropertyShareStatusEnum[this.status]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
5927
5941
  }
5928
5942
  /**
5929
5943
  * Return full user name if user is already registered.
5930
5944
  * Otherwise - return first name from invitation
5931
5945
  */
5932
- get fullName() {
5946
+ get userName() {
5933
5947
  return this.user ? this.user.fullName : `${this.invite.firstName}`;
5934
5948
  }
5935
5949
  }
5936
5950
  __decorate([
5937
5951
  Type(() => Date)
5938
- ], PropertyOwner.prototype, "fromDate", void 0);
5952
+ ], PropertyShare.prototype, "fromDate", void 0);
5939
5953
  __decorate([
5940
5954
  Type(() => Date)
5941
- ], PropertyOwner.prototype, "toDate", void 0);
5955
+ ], PropertyShare.prototype, "toDate", void 0);
5942
5956
  __decorate([
5943
5957
  Type(() => User)
5944
- ], PropertyOwner.prototype, "user", void 0);
5958
+ ], PropertyShare.prototype, "user", void 0);
5945
5959
  __decorate([
5946
5960
  Type(() => RegistrationInvite)
5947
- ], PropertyOwner.prototype, "invite", void 0);
5961
+ ], PropertyShare.prototype, "invite", void 0);
5948
5962
  __decorate([
5949
5963
  Type(() => Property)
5950
- ], PropertyOwner.prototype, "property", void 0);
5964
+ ], PropertyShare.prototype, "property", void 0);
5951
5965
  __decorate([
5952
5966
  Transform(({ obj }) => obj.user ? obj.user.email : obj.invite.email)
5953
- ], PropertyOwner.prototype, "email", void 0);
5967
+ ], PropertyShare.prototype, "email", void 0);
5954
5968
 
5955
5969
  class PropertySale$1 {
5956
5970
  }
@@ -6745,7 +6759,7 @@ class BankAccountService extends BaseRestService {
6745
6759
  */
6746
6760
  listenToEventDispatcherChanges() {
6747
6761
  this.eventDispatcherService.on([
6748
- AppEventTypeEnum.PROPERTY_OWNER_UPDATED,
6762
+ AppEventTypeEnum.PROPERTY_SHARE_UPDATED,
6749
6763
  AppEventTypeEnum.LOAN_PAYOUT_UPDATED,
6750
6764
  AppEventTypeEnum.BANK_CONNECTION_ADDED
6751
6765
  ]).subscribe(() => {
@@ -7865,7 +7879,7 @@ class DepreciationService extends BaseRestService {
7865
7879
  * Listen to EventDispatcherService event related to updated bank loan
7866
7880
  */
7867
7881
  listenToUpdatedLoan() {
7868
- this.eventDispatcherService.on([AppEventTypeEnum.LOAN_UPDATED, AppEventTypeEnum.PROPERTY_OWNER_UPDATED]).subscribe(() => {
7882
+ this.eventDispatcherService.on([AppEventTypeEnum.LOAN_UPDATED, AppEventTypeEnum.PROPERTY_SHARE_UPDATED]).subscribe(() => {
7869
7883
  this.fetch().subscribe();
7870
7884
  });
7871
7885
  }
@@ -8854,16 +8868,16 @@ class PropertyService extends BaseRestService {
8854
8868
  this.listenEvents();
8855
8869
  }
8856
8870
  listenEvents() {
8857
- this.listenCoOwnerInviteAccepted();
8871
+ this.listenShareInviteAccepted();
8858
8872
  this.listenServiceSubscriptionUpdated();
8859
8873
  // @TODO Alex: consider to refactor property movements logic similar to client-movements
8860
8874
  this.listenMovementsChanged();
8861
8875
  }
8862
8876
  /**
8863
- * Update cache when owner invitation accepted
8877
+ * Update cache when share invitation accepted
8864
8878
  */
8865
- listenCoOwnerInviteAccepted() {
8866
- this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_OWNER_UPDATED).subscribe(() => this.resetCache());
8879
+ listenShareInviteAccepted() {
8880
+ this.eventDispatcherService.on(AppEventTypeEnum.PROPERTY_SHARE_UPDATED).subscribe(() => this.resetCache());
8867
8881
  }
8868
8882
  /**
8869
8883
  * Update cache when user's service subscription is updated
@@ -8930,7 +8944,7 @@ class PropertyService extends BaseRestService {
8930
8944
  this.updateCache();
8931
8945
  }));
8932
8946
  }
8933
- getByCoOwnerId(id) {
8947
+ getByShareId(id) {
8934
8948
  return this.get().pipe(map((properties) => {
8935
8949
  return properties.filter((property) => property.user.id === id);
8936
8950
  }));
@@ -9152,15 +9166,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
9152
9166
  }] }]; } });
9153
9167
 
9154
9168
  // @TODO check and improve logic during refactoring
9155
- class PropertyOwnerService extends BaseRestService {
9169
+ class PropertyShareService extends BaseRestService {
9156
9170
  constructor(http, eventDispatcherService, environment) {
9157
9171
  super(http, eventDispatcherService, environment);
9158
9172
  this.http = http;
9159
9173
  this.eventDispatcherService = eventDispatcherService;
9160
9174
  this.environment = environment;
9161
- // api url parameter for properties co-owners
9162
- this.url = 'properties/co-owners';
9163
- this.modelClass = PropertyOwner;
9175
+ // api url parameter for properties shares
9176
+ this.url = 'properties/shares';
9177
+ this.modelClass = PropertyShare;
9164
9178
  this.listenEvents();
9165
9179
  }
9166
9180
  /**
@@ -9172,70 +9186,62 @@ class PropertyOwnerService extends BaseRestService {
9172
9186
  /**
9173
9187
  * Updated loan
9174
9188
  */
9175
- update(propertyOwner) {
9176
- return this.http.put(`${this.environment.apiV2}/${this.url}/${propertyOwner.id}`, propertyOwner)
9177
- .pipe(map((updatedPropertyOwnerBase) => {
9178
- const updatedPropertyOwner = plainToClass(PropertyOwner, updatedPropertyOwnerBase);
9189
+ update(propertyShare) {
9190
+ return this.http.put(`${this.environment.apiV2}/${this.url}/${propertyShare.id}`, propertyShare)
9191
+ .pipe(map((updatedPropertyShareBase) => {
9192
+ const updatedPropertyShare = plainToClass(PropertyShare, updatedPropertyShareBase);
9179
9193
  // if loan type is NOT vehicle - fire EventDispatcher event
9180
- this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.PROPERTY_OWNER_UPDATED, null));
9181
- replace(this.cache, updatedPropertyOwner);
9194
+ this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.PROPERTY_SHARE_UPDATED, null));
9195
+ replace(this.cache, updatedPropertyShare);
9182
9196
  this.updateCache();
9183
- return updatedPropertyOwner;
9197
+ return updatedPropertyShare;
9184
9198
  }));
9185
9199
  }
9186
9200
  /**
9187
- * Re-invite property owner
9201
+ * Re-invite property share
9188
9202
  * @param share user to share property
9189
9203
  */
9190
9204
  reinvite(share) {
9191
9205
  return this.http.post(`${this.environment.apiV2}/${this.url}/${share.id}/reinvite`, {});
9192
9206
  }
9193
- /**
9194
- * Get incoming property owners list
9195
- */
9196
9207
  getIncoming() {
9197
9208
  return this.get()
9198
- .pipe(map((propertyOwners) => {
9199
- const propertyOwnersIncoming = [];
9200
- propertyOwners.forEach((propertyOwner) => {
9209
+ .pipe(map((propertyShares) => {
9210
+ const propertySharesIncoming = [];
9211
+ propertyShares.forEach((propertyShare) => {
9201
9212
  var _a;
9202
- if (((_a = propertyOwner.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn()) && propertyOwner.isPending() && propertyOwner.property.user.id !== +localStorage.getItem('userId')) {
9203
- propertyOwnersIncoming.push(propertyOwner);
9213
+ if (((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn()) && propertyShare.isPending() && propertyShare.property.user.id !== +localStorage.getItem('userId')) {
9214
+ propertySharesIncoming.push(propertyShare);
9204
9215
  }
9205
9216
  });
9206
- return propertyOwnersIncoming;
9217
+ return propertySharesIncoming;
9207
9218
  }));
9208
9219
  }
9209
9220
  /**
9210
- * Get outcoming property owners list
9221
+ * Get outcoming property shares list
9211
9222
  */
9212
9223
  getOutcoming() {
9213
- return this.get().pipe(map((propertyOwners) => {
9214
- return this.filterOutcoming(propertyOwners);
9224
+ return this.get().pipe(map((propertyShares) => {
9225
+ return this.filterOutcoming(propertyShares);
9215
9226
  }));
9216
9227
  }
9217
9228
  /**
9218
- * Filter outcoming property owners
9219
- * @param propertyOwners which should be filtered
9229
+ * Filter outcoming property shares
9220
9230
  */
9221
- filterOutcoming(propertyOwners) {
9222
- const propertyOwnersOutcoming = [];
9223
- propertyOwners.forEach((propertyOwner) => {
9231
+ filterOutcoming(propertyShares) {
9232
+ const propertySharesOutcoming = [];
9233
+ propertyShares.forEach((propertyShare) => {
9224
9234
  var _a;
9225
- if (!((_a = propertyOwner.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn())) {
9226
- propertyOwnersOutcoming.push(propertyOwner);
9235
+ if (!((_a = propertyShare.user) === null || _a === void 0 ? void 0 : _a.isLoggedIn())) {
9236
+ propertySharesOutcoming.push(propertyShare);
9227
9237
  }
9228
9238
  });
9229
- return propertyOwnersOutcoming;
9239
+ return propertySharesOutcoming;
9230
9240
  }
9231
- /**
9232
- * Get list of co-owners filtered by property id
9233
- * @param propertyId
9234
- */
9235
9241
  getByPropertyId(propertyId) {
9236
9242
  return this.get()
9237
- .pipe(map((propertyOwners) => {
9238
- return propertyOwners.filter((propertyOwner) => propertyOwner.property.id === propertyId);
9243
+ .pipe(map((propertyShares) => {
9244
+ return propertyShares.filter((propertyShare) => propertyShare.property.id === propertyId);
9239
9245
  }));
9240
9246
  }
9241
9247
  /**
@@ -9244,16 +9250,16 @@ class PropertyOwnerService extends BaseRestService {
9244
9250
  listenUserUpdated() {
9245
9251
  this.eventDispatcherService.on(AppEventTypeEnum.USER_UPDATED)
9246
9252
  .subscribe(() => {
9247
- this.fetch().subscribe((propertyOwners) => {
9248
- this.cache = propertyOwners;
9253
+ this.fetch().subscribe((propertyShares) => {
9254
+ this.cache = propertyShares;
9249
9255
  this.updateCache();
9250
9256
  });
9251
9257
  });
9252
9258
  }
9253
9259
  }
9254
- 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 });
9255
- PropertyOwnerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyOwnerService, providedIn: 'root' });
9256
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyOwnerService, decorators: [{
9260
+ 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 });
9261
+ PropertyShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyShareService, providedIn: 'root' });
9262
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: PropertyShareService, decorators: [{
9257
9263
  type: Injectable,
9258
9264
  args: [{
9259
9265
  providedIn: 'root'
@@ -9358,16 +9364,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImpo
9358
9364
  }] });
9359
9365
 
9360
9366
  class SubscriptionService {
9361
- constructor(http, eventDispatcherService, environment) {
9367
+ constructor(http, eventDispatcherService, sseService, environment) {
9362
9368
  this.http = http;
9363
9369
  this.eventDispatcherService = eventDispatcherService;
9370
+ this.sseService = sseService;
9364
9371
  this.environment = environment;
9365
9372
  this.serviceSubscriptionSubject = new ReplaySubject(1);
9366
9373
  this.serviceSubscriptionsSubject = new ReplaySubject(1);
9367
9374
  this.servicePaymentsSubject = new ReplaySubject(1);
9375
+ this.subscriptionChangeSubject = new BehaviorSubject(null);
9376
+ this.listenEvents();
9368
9377
  }
9369
- getSubscription() {
9370
- if (!this._serviceSubscription) {
9378
+ listenEvents() {
9379
+ this.listenSubscriptions();
9380
+ }
9381
+ getSubscription(force = false) {
9382
+ if (!this._serviceSubscription || force) {
9371
9383
  this.http.get(`${this.environment.apiV2}/subscriptions/last`)
9372
9384
  .pipe(map((response) => {
9373
9385
  return plainToClass(ServiceSubscription, response);
@@ -9393,8 +9405,18 @@ class SubscriptionService {
9393
9405
  .subscribe((prices) => {
9394
9406
  this._serviceSubscriptions = new ServiceSubscriptionCollection([
9395
9407
  plainToClass(ServiceSubscription, { items: [] }),
9396
- plainToClass(ServiceSubscription, { items: [plainToClass(ServiceSubscriptionItem, { price: prices.property, quantity: 2 })] }),
9397
- plainToClass(ServiceSubscription, { items: [plainToClass(ServiceSubscriptionItem, { price: prices.property, quantity: 3 })] })
9408
+ plainToClass(ServiceSubscription, {
9409
+ items: [plainToClass(ServiceSubscriptionItem, {
9410
+ price: prices.property,
9411
+ quantity: 2
9412
+ })]
9413
+ }),
9414
+ plainToClass(ServiceSubscription, {
9415
+ items: [plainToClass(ServiceSubscriptionItem, {
9416
+ price: prices.property,
9417
+ quantity: 3
9418
+ })]
9419
+ })
9398
9420
  ]);
9399
9421
  this._serviceSubscriptions.items.forEach((subscription) => {
9400
9422
  subscription.items.push(plainToClass(ServiceSubscriptionItem, { price: prices.work, quantity: 1 }));
@@ -9456,24 +9478,26 @@ class SubscriptionService {
9456
9478
  * Change subscription plan
9457
9479
  */
9458
9480
  changeSubscription(items) {
9459
- return this.http.put(`${this.environment.apiV2}/subscriptions/items`, items).pipe(map(() => {
9460
- // Set cache value as null and fire request to backend to get updated subscription value
9461
- this._serviceSubscription = null;
9462
- this.serviceSubscriptionSubject.next(this._serviceSubscription);
9463
- // update property list
9481
+ return this.http.put(`${this.environment.apiV2}/subscriptions/items`, items);
9482
+ }
9483
+ listenSubscriptions() {
9484
+ this.sseService.on(`serviceSubscriptions`)
9485
+ .pipe(map((event) => plainToClass(ServiceSubscription, event)))
9486
+ .subscribe((subscription) => {
9487
+ this.getSubscription(true).subscribe();
9488
+ this.subscriptionChangeSubject.next(subscription);
9464
9489
  this.eventDispatcherService.dispatch(new AppEvent(AppEventTypeEnum.SERVICE_SUBSCRIPTION_UPDATED, null));
9465
- this.getSubscription().subscribe();
9466
- }));
9490
+ });
9467
9491
  }
9468
9492
  }
9469
- SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9493
+ SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SubscriptionService, deps: [{ token: i1.HttpClient }, { token: EventDispatcherService }, { token: SseService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable });
9470
9494
  SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SubscriptionService, providedIn: 'root' });
9471
9495
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0, type: SubscriptionService, decorators: [{
9472
9496
  type: Injectable,
9473
9497
  args: [{
9474
9498
  providedIn: 'root'
9475
9499
  }]
9476
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: undefined, decorators: [{
9500
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: EventDispatcherService }, { type: SseService }, { type: undefined, decorators: [{
9477
9501
  type: Inject,
9478
9502
  args: ['environment']
9479
9503
  }] }]; } });
@@ -10764,5 +10788,5 @@ class ResetPasswordForm extends AbstractForm {
10764
10788
  * Generated bundle index. Do not edit.
10765
10789
  */
10766
10790
 
10767
- 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, 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 };
10791
+ 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, BasiqConfig, 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 };
10768
10792
  //# sourceMappingURL=taxtank-core.js.map