taxtank-core 0.28.20 → 0.28.22

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 (28) hide show
  1. package/bundles/taxtank-core.umd.js +225 -180
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/collections/index.js +2 -1
  4. package/esm2015/lib/collections/property/index.js +4 -0
  5. package/esm2015/lib/collections/property/property-category-movement.collection.js +17 -0
  6. package/esm2015/lib/collections/property/property-sale/index.js +3 -0
  7. package/esm2015/lib/db/Enums/property/property-category-list.enum.js +2 -1
  8. package/esm2015/lib/models/chart-accounts/chart-accounts.js +12 -6
  9. package/esm2015/lib/models/depreciation/depreciation-group-item.js +5 -1
  10. package/esm2015/lib/models/depreciation/depreciation-group.js +4 -1
  11. package/esm2015/lib/models/endpoint/endpoints.const.js +2 -1
  12. package/esm2015/lib/models/financial-year/financial-year.js +7 -2
  13. package/esm2015/lib/models/property/property-category.js +7 -3
  14. package/esm2015/public-api.js +1 -3
  15. package/fesm2015/taxtank-core.js +181 -143
  16. package/fesm2015/taxtank-core.js.map +1 -1
  17. package/lib/collections/index.d.ts +1 -0
  18. package/lib/collections/property/index.d.ts +3 -0
  19. package/lib/collections/property/property-category-movement.collection.d.ts +11 -0
  20. package/lib/collections/property/property-sale/index.d.ts +2 -0
  21. package/lib/db/Enums/property/property-category-list.enum.d.ts +1 -0
  22. package/lib/models/chart-accounts/chart-accounts.d.ts +6 -1
  23. package/lib/models/depreciation/depreciation-group-item.d.ts +2 -0
  24. package/lib/models/depreciation/depreciation-group.d.ts +1 -0
  25. package/lib/models/financial-year/financial-year.d.ts +1 -1
  26. package/lib/models/property/property-category.d.ts +1 -0
  27. package/package.json +1 -1
  28. package/public-api.d.ts +0 -2
@@ -660,6 +660,7 @@ const ENDPOINTS = {
660
660
  PROPERTIES_CATEGORIES_GET: new Endpoint('GET', '\\/properties\\/categories'),
661
661
  PROPERTIES_CATEGORIES_PUT: new Endpoint('PUT', '\\/properties\\/categories\\/\\d+'),
662
662
  PROPERTIES_CATEGORIES_POST: new Endpoint('POST', '\\/properties\\/categories'),
663
+ PROPERTIES_CATEGORIES_MOVEMENTS_GET: new Endpoint('GET', '\\/properties\\/\\d+\\/category-movements'),
663
664
  PROPERTIES_CATEGORY_MOVEMENTS_POST: new Endpoint('POST', '\\/properties\\/\\d+\\/category-movements'),
664
665
  PROPERTIES_CATEGORY_MOVEMENTS_PUT: new Endpoint('PUT', '\\/properties\\/\\d+\\/category-movements\\/\\d+'),
665
666
  PROPERTIES_SHARES_PUT: new Endpoint('PUT', '\\/properties\\/shares\\/\\d+'),
@@ -1209,7 +1210,12 @@ class FinancialYear {
1209
1210
  constructor(date) {
1210
1211
  this.yearStartDate = '-07-01';
1211
1212
  this.yearEndDate = '-06-30';
1212
- this.year = date ? FinancialYear.toFinYear(date) : +localStorage.getItem('financialYear') || FinancialYear.toFinYear(new Date());
1213
+ if (date) {
1214
+ this.year = date instanceof Date ? FinancialYear.toFinYear(date) : date;
1215
+ }
1216
+ else {
1217
+ this.year = +localStorage.getItem('financialYear') || FinancialYear.toFinYear(new Date());
1218
+ }
1213
1219
  this.setStartDate(this.year);
1214
1220
  this.setEndDate(this.year);
1215
1221
  }
@@ -2332,6 +2338,9 @@ class ChartAccounts extends ChartAccounts$1 {
2332
2338
  isIncome() {
2333
2339
  return CHART_ACCOUNTS_CATEGORIES.income.includes(this.category);
2334
2340
  }
2341
+ isExpense() {
2342
+ return CHART_ACCOUNTS_CATEGORIES.expense.includes(this.category);
2343
+ }
2335
2344
  isProperty() {
2336
2345
  return CHART_ACCOUNTS_CATEGORIES.property.includes(this.category);
2337
2346
  }
@@ -2347,7 +2356,7 @@ class ChartAccounts extends ChartAccounts$1 {
2347
2356
  * Check if chart accounts is property expense
2348
2357
  */
2349
2358
  isPropertyExpense() {
2350
- return this.category === ChartAccountsCategoryEnum.PROPERTY_EXPENSE;
2359
+ return this.isProperty() && this.isExpense();
2351
2360
  }
2352
2361
  /**
2353
2362
  * Check if chart accounts is property income
@@ -2361,10 +2370,6 @@ class ChartAccounts extends ChartAccounts$1 {
2361
2370
  isPersonalExpense() {
2362
2371
  return this.category === ChartAccountsCategoryEnum.PERSONAL_EXPENSE;
2363
2372
  }
2364
- isPropertyDepreciation() {
2365
- return [ChartAccountsCategoryEnum.PROPERTY_DEPRECIATION, ChartAccountsCategoryEnum.PROPERTY_CAPITAL_WORKS]
2366
- .includes(this.category);
2367
- }
2368
2373
  /**
2369
2374
  * Check if chart accounts category is depreciation
2370
2375
  */
@@ -2389,6 +2394,13 @@ class ChartAccounts extends ChartAccounts$1 {
2389
2394
  getValueByYear(year) {
2390
2395
  return this.values.find((value) => value.financialYear === year);
2391
2396
  }
2397
+ /**
2398
+ * no way to check how much used for work/sole, so we let user adjust it
2399
+ * except vehicle expense, which is equal to vehicleClaim.workUsage and personal, which is equal to 0
2400
+ */
2401
+ isClaimPercentEditable() {
2402
+ return (this.isWorkExpense() || this.isSoleExpense()) && (!this.isVehicleExpense() && !this.isPersonalExpense());
2403
+ }
2392
2404
  }
2393
2405
  __decorate([
2394
2406
  Type(() => ChartAccountsHeading)
@@ -3832,13 +3844,23 @@ __decorate([
3832
3844
  class PropertyCategory$1 extends AbstractModel {
3833
3845
  }
3834
3846
 
3847
+ var PropertyCategoryListEnum;
3848
+ (function (PropertyCategoryListEnum) {
3849
+ PropertyCategoryListEnum[PropertyCategoryListEnum["OWNER_OCCUPIED"] = 3] = "OWNER_OCCUPIED";
3850
+ PropertyCategoryListEnum[PropertyCategoryListEnum["SHARED"] = 4] = "SHARED";
3851
+ PropertyCategoryListEnum[PropertyCategoryListEnum["VACANT_LAND"] = 5] = "VACANT_LAND";
3852
+ })(PropertyCategoryListEnum || (PropertyCategoryListEnum = {}));
3853
+
3835
3854
  class PropertyCategory extends PropertyCategory$1 {
3836
3855
  // @Todo check if category is Owner Occupied. If will be needed to check more categories - move the checking to the backend
3837
3856
  isOwnerOccupied() {
3838
- return this.name === 'Owner Occupied';
3857
+ return this.id === PropertyCategoryListEnum.OWNER_OCCUPIED;
3839
3858
  }
3840
3859
  isVacantLand() {
3841
- return this.name === 'Vacant Land';
3860
+ return this.id === PropertyCategoryListEnum.VACANT_LAND;
3861
+ }
3862
+ isShared() {
3863
+ return this.id === PropertyCategoryListEnum.SHARED;
3842
3864
  }
3843
3865
  }
3844
3866
 
@@ -3967,12 +3989,6 @@ var TaxExemptionEnum;
3967
3989
  TaxExemptionEnum[TaxExemptionEnum["OTHER"] = 7] = "OTHER";
3968
3990
  })(TaxExemptionEnum || (TaxExemptionEnum = {}));
3969
3991
 
3970
- var PropertyCategoryListEnum;
3971
- (function (PropertyCategoryListEnum) {
3972
- PropertyCategoryListEnum[PropertyCategoryListEnum["OWNER_OCCUPIED"] = 3] = "OWNER_OCCUPIED";
3973
- PropertyCategoryListEnum[PropertyCategoryListEnum["VACANT_LAND"] = 5] = "VACANT_LAND";
3974
- })(PropertyCategoryListEnum || (PropertyCategoryListEnum = {}));
3975
-
3976
3992
  var TaxExemptionMetadataEnum;
3977
3993
  (function (TaxExemptionMetadataEnum) {
3978
3994
  // principle place of residence
@@ -5418,6 +5434,149 @@ class SoleInvoiceCollection extends Collection {
5418
5434
  }
5419
5435
  }
5420
5436
 
5437
+ class PropertySaleCollection extends Collection {
5438
+ get grossCGT() {
5439
+ return this.create(this.items.filter((propertySale) => propertySale.grossCGT > 0)).sumBy('grossCGT');
5440
+ }
5441
+ /**
5442
+ * Property sales are CGT applicable unless it has "Principle place of residence" exemption type
5443
+ */
5444
+ getCGTApplicable() {
5445
+ return this.create(this.items.filter((propertySale) => propertySale.isCGTApplicable()));
5446
+ }
5447
+ getByPropertyShareIds(ids) {
5448
+ return this.filterBy('share.id', ids);
5449
+ }
5450
+ }
5451
+
5452
+ class PropertyCollection extends Collection {
5453
+ /**
5454
+ * Get new property collection filtered by category id
5455
+ * @param id id of category for filter
5456
+ */
5457
+ getByCategoryId(id) {
5458
+ return new PropertyCollection(this.items.filter((property) => property.category.id === id));
5459
+ }
5460
+ /**
5461
+ * Get new property collection filtered by active status
5462
+ */
5463
+ getActiveProperties() {
5464
+ return new PropertyCollection(this.items.filter((property) => property.isActive));
5465
+ }
5466
+ getCreatedProperties() {
5467
+ return new PropertyCollection(this.items.filter((property) => property.isOwn()));
5468
+ }
5469
+ /**
5470
+ * Get new property collection filtered by shared
5471
+ */
5472
+ getSharedProperties() {
5473
+ return new PropertyCollection(this.items.filter((property) => !property.isOwn()));
5474
+ }
5475
+ /**
5476
+ * Properties that are taxed and will be included in reports (Tax summary, My tax report, e.t.c.)
5477
+ */
5478
+ getTaxInclusive() {
5479
+ return this.create(this.items.filter((property) => property.category.isTaxInclusive));
5480
+ }
5481
+ getUnsold() {
5482
+ return this.create(this.items.filter((property) => !property.isSold()));
5483
+ }
5484
+ /**
5485
+ * Get total purchase price for all properties in the collection
5486
+ */
5487
+ get purchasePrice() {
5488
+ return this.sumBy('purchasePrice');
5489
+ }
5490
+ get growthPercent() {
5491
+ return this.sumBy('growthPercent');
5492
+ }
5493
+ get marketValue() {
5494
+ return this.sumBy('marketValue');
5495
+ }
5496
+ get firstForecastYear() {
5497
+ return this.items.reduce((min, property) => {
5498
+ const current = property.firstForecastYear;
5499
+ return min > current ? current : min;
5500
+ }, new FinancialYear().year);
5501
+ }
5502
+ get marketValueGrowth() {
5503
+ return (this.marketValue - this.purchasePrice) / this.purchasePrice;
5504
+ }
5505
+ /**
5506
+ * list of properties
5507
+ */
5508
+ getCGTApplicable() {
5509
+ return this.create(this.items.filter((property) => property.isCGTApplicable()));
5510
+ }
5511
+ getOwnerOccupiedProperties() {
5512
+ return new PropertyCollection(this.items.filter((property) => property.category.isOwnerOccupied()));
5513
+ }
5514
+ get earliestContractDate() {
5515
+ return this.items.reduce((min, property) => {
5516
+ return min < property.contractDate ? min : property.contractDate;
5517
+ }, new FinancialYear(new Date()).startDate);
5518
+ }
5519
+ /**
5520
+ * Get list of unique property categories from collection
5521
+ */
5522
+ getCategories() {
5523
+ return uniqBy(this.items.map((property) => property.category), 'id');
5524
+ }
5525
+ /**
5526
+ * Get property with the highest growth percent
5527
+ */
5528
+ getBestPerformanceGrowthProperty() {
5529
+ return this.items.reduce((max, current) => {
5530
+ return max.growthPercent < current.growthPercent ? current : max;
5531
+ }, this.first);
5532
+ }
5533
+ /**
5534
+ * Get property with the lowest tax position
5535
+ */
5536
+ getBestPerformanceTaxProperty(transactions, depreciations) {
5537
+ const transactionsByProperty = transactions.groupBy('property.id');
5538
+ const depreciationsByProperty = depreciations.groupBy('property.id');
5539
+ return this.items.reduce((min, current) => {
5540
+ const minTaxPosition = min.getTaxPosition(transactionsByProperty.get(min.id), depreciationsByProperty.get(min.id));
5541
+ const currentTaxPosition = current.getTaxPosition(transactionsByProperty.get(current.id), depreciationsByProperty.get(current.id));
5542
+ return minTaxPosition > currentTaxPosition ? current : min;
5543
+ }, this.first);
5544
+ }
5545
+ /**
5546
+ * Show best performance properties first
5547
+ * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677997/Property+Tank+Dashboard
5548
+ */
5549
+ sortByBestPerformance(transactions, depreciations) {
5550
+ const activeProperties = this.getActiveProperties();
5551
+ // nothing to sort when no active properties
5552
+ if (!activeProperties.length) {
5553
+ return this;
5554
+ }
5555
+ const bestProperties = uniqBy(this.create([
5556
+ activeProperties.getBestPerformanceGrowthProperty(),
5557
+ activeProperties.getBestPerformanceTaxProperty(transactions, depreciations)
5558
+ ]).toArray(), 'id');
5559
+ const newItems = this.remove(bestProperties).toArray();
5560
+ newItems.unshift(...bestProperties);
5561
+ return this.create(newItems);
5562
+ }
5563
+ }
5564
+
5565
+ class PropertyCategoryMovementCollection extends Collection {
5566
+ /**
5567
+ * @TODO TT-2355 Alex refactor propertyForecast, use separated api (then I can remove property from param)
5568
+ */
5569
+ getByForecast(property, forecast) {
5570
+ const financialYear = new FinancialYear(forecast.financialYear);
5571
+ return this.filterBy('property.id', property.id).filter((movement) => {
5572
+ return movement.fromDate <= financialYear.endDate && movement.toDate >= financialYear.startDate;
5573
+ });
5574
+ }
5575
+ hasCategory(categoryId) {
5576
+ return !!this.findBy('propertyCategory.id', categoryId);
5577
+ }
5578
+ }
5579
+
5421
5580
  // @TODO Alex move here all collections
5422
5581
 
5423
5582
  class AccountSetupItemCollection extends Collection {
@@ -6163,134 +6322,6 @@ class MessageDocumentCollection extends Collection {
6163
6322
  }
6164
6323
  }
6165
6324
 
6166
- class PropertyCollection extends Collection {
6167
- /**
6168
- * Get new property collection filtered by category id
6169
- * @param id id of category for filter
6170
- */
6171
- getByCategoryId(id) {
6172
- return new PropertyCollection(this.items.filter((property) => property.category.id === id));
6173
- }
6174
- /**
6175
- * Get new property collection filtered by active status
6176
- */
6177
- getActiveProperties() {
6178
- return new PropertyCollection(this.items.filter((property) => property.isActive));
6179
- }
6180
- getCreatedProperties() {
6181
- return new PropertyCollection(this.items.filter((property) => property.isOwn()));
6182
- }
6183
- /**
6184
- * Get new property collection filtered by shared
6185
- */
6186
- getSharedProperties() {
6187
- return new PropertyCollection(this.items.filter((property) => !property.isOwn()));
6188
- }
6189
- /**
6190
- * Properties that are taxed and will be included in reports (Tax summary, My tax report, e.t.c.)
6191
- */
6192
- getTaxInclusive() {
6193
- return this.create(this.items.filter((property) => property.category.isTaxInclusive));
6194
- }
6195
- getUnsold() {
6196
- return this.create(this.items.filter((property) => !property.isSold()));
6197
- }
6198
- /**
6199
- * Get total purchase price for all properties in the collection
6200
- */
6201
- get purchasePrice() {
6202
- return this.sumBy('purchasePrice');
6203
- }
6204
- get growthPercent() {
6205
- return this.sumBy('growthPercent');
6206
- }
6207
- get marketValue() {
6208
- return this.sumBy('marketValue');
6209
- }
6210
- get firstForecastYear() {
6211
- return this.items.reduce((min, property) => {
6212
- const current = property.firstForecastYear;
6213
- return min > current ? current : min;
6214
- }, new FinancialYear().year);
6215
- }
6216
- get marketValueGrowth() {
6217
- return (this.marketValue - this.purchasePrice) / this.purchasePrice;
6218
- }
6219
- /**
6220
- * list of properties
6221
- */
6222
- getCGTApplicable() {
6223
- return this.create(this.items.filter((property) => property.isCGTApplicable()));
6224
- }
6225
- getOwnerOccupiedProperties() {
6226
- return new PropertyCollection(this.items.filter((property) => property.category.isOwnerOccupied()));
6227
- }
6228
- get earliestContractDate() {
6229
- return this.items.reduce((min, property) => {
6230
- return min < property.contractDate ? min : property.contractDate;
6231
- }, new FinancialYear(new Date()).startDate);
6232
- }
6233
- /**
6234
- * Get list of unique property categories from collection
6235
- */
6236
- getCategories() {
6237
- return uniqBy(this.items.map((property) => property.category), 'id');
6238
- }
6239
- /**
6240
- * Get property with the highest growth percent
6241
- */
6242
- getBestPerformanceGrowthProperty() {
6243
- return this.items.reduce((max, current) => {
6244
- return max.growthPercent < current.growthPercent ? current : max;
6245
- }, this.first);
6246
- }
6247
- /**
6248
- * Get property with the lowest tax position
6249
- */
6250
- getBestPerformanceTaxProperty(transactions, depreciations) {
6251
- const transactionsByProperty = transactions.groupBy('property.id');
6252
- const depreciationsByProperty = depreciations.groupBy('property.id');
6253
- return this.items.reduce((min, current) => {
6254
- const minTaxPosition = min.getTaxPosition(transactionsByProperty.get(min.id), depreciationsByProperty.get(min.id));
6255
- const currentTaxPosition = current.getTaxPosition(transactionsByProperty.get(current.id), depreciationsByProperty.get(current.id));
6256
- return minTaxPosition > currentTaxPosition ? current : min;
6257
- }, this.first);
6258
- }
6259
- /**
6260
- * Show best performance properties first
6261
- * https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/217677997/Property+Tank+Dashboard
6262
- */
6263
- sortByBestPerformance(transactions, depreciations) {
6264
- const activeProperties = this.getActiveProperties();
6265
- // nothing to sort when no active properties
6266
- if (!activeProperties.length) {
6267
- return this;
6268
- }
6269
- const bestProperties = uniqBy(this.create([
6270
- activeProperties.getBestPerformanceGrowthProperty(),
6271
- activeProperties.getBestPerformanceTaxProperty(transactions, depreciations)
6272
- ]).toArray(), 'id');
6273
- const newItems = this.remove(bestProperties).toArray();
6274
- newItems.unshift(...bestProperties);
6275
- return this.create(newItems);
6276
- }
6277
- }
6278
-
6279
- class PropertySaleCollection extends Collection {
6280
- get grossCGT() {
6281
- return this.create(this.items.filter((propertySale) => propertySale.grossCGT > 0)).sumBy('grossCGT');
6282
- }
6283
- /**
6284
- * Property sales are CGT applicable unless it has "Principle place of residence" exemption type
6285
- */
6286
- getCGTApplicable() {
6287
- return this.create(this.items.filter((propertySale) => propertySale.isCGTApplicable()));
6288
- }
6289
- getByPropertyShareIds(ids) {
6290
- return this.filterBy('share.id', ids);
6291
- }
6292
- }
6293
-
6294
6325
  /**
6295
6326
  * Enum with symbols based on depreciation LVP asset type
6296
6327
  */
@@ -7910,9 +7941,13 @@ class DepreciationGroup {
7910
7941
  getClaimAmount() {
7911
7942
  return this.children.reduce((sum, child) => sum + child.getClaimAmount(), 0);
7912
7943
  }
7944
+ getAmount() {
7945
+ return this.children.reduce((sum, child) => sum + child.getAmount(), 0);
7946
+ }
7913
7947
  }
7914
7948
 
7915
7949
  /**
7950
+ * @TODO Alex useless class, use parent instead
7916
7951
  * Depreciation Tree node with depreciation details
7917
7952
  */
7918
7953
  class DepreciationGroupItem extends DepreciationGroup {
@@ -7923,6 +7958,9 @@ class DepreciationGroupItem extends DepreciationGroup {
7923
7958
  getClaimAmount() {
7924
7959
  return this.depreciation.currentYearForecast.claimAmount;
7925
7960
  }
7961
+ getAmount() {
7962
+ return this.depreciation.currentYearForecast.amount;
7963
+ }
7926
7964
  }
7927
7965
 
7928
7966
  const DEPRECIATION_GROUPS = {
@@ -15984,5 +16022,5 @@ VehicleLogbookForm.maxDescriptionLength = 60;
15984
16022
  * Generated bundle index. Do not edit.
15985
16023
  */
15986
16024
 
15987
- export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessOrLosses, MyTaxBusinessOrLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEmployeeShareSchemes, MyTaxEmployeeShareSchemesForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RewardfulService, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
16025
+ export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressService, AddressTypeEnum, AlphabetColorsEnum, AppEvent, AppEventTypeEnum, AssetEntityTypeEnum, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionService, BankConnectionStatusEnum, BankLoginData, BankLoginForm, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasiqConfig, BasiqJob, BasiqService, BasiqToken, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsListEnum, ChartAccountsMetadata, ChartAccountsMetadataListEnum, ChartAccountsMetadataTypeEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsValue, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReceipt, DepreciationReceiptService, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderService, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FinancialYear, Firm, FirmService, FirmTypeEnum, HeaderTitleService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, InterceptorsModule, IntercomService, InviteStatusEnum, JwtService, KompassifyService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LogbookBestPeriodService, LogbookPeriod, LoginForm, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessOrLosses, MyTaxBusinessOrLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEmployeeShareSchemes, MyTaxEmployeeShareSchemesForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfOrientationEnum, PdfSettings, Phone, PhoneTypeEnum, PreloaderService, Property, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentService, PropertyEquityChartData, PropertyEquityChartItem, PropertyForecast, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetadata, PropertySaleTaxExemptionMetadataCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RewardfulService, SUBSCRIPTION_DESCRIPTION, SUBSCRIPTION_TITLE, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentStatusEnum, ServicePrice, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductIdEnum, ServiceProductStatusEnum, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, ShareFilterOptionsEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, SubscriptionService, SubscriptionTypeEnum, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetadata, TaxExemptionMetadataEnum, TaxExemptionService, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionMetadata, TransactionOperationEnum, TransactionReceipt, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, TutorialVideoService, USER_ROLES, USER_WORK_POSITION, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserInviteForm, UserMedicareExemptionEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleService, XlsxService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, minDateValidator, passwordMatchValidator, passwordValidator, replace, roundTo, sort, sortDeep, taxReviewFilterPredicate };
15988
16026
  //# sourceMappingURL=taxtank-core.js.map