taxtank-core 0.31.42 → 0.31.43

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 (149) hide show
  1. package/esm2020/lib/db/Enums/setup-item-type.enum.mjs +6 -0
  2. package/esm2020/lib/db/Models/setup-item.mjs +4 -0
  3. package/esm2020/lib/db/Models/user/user.mjs +1 -1
  4. package/esm2020/lib/interceptors/basiq-client-id.interceptor.mjs +3 -3
  5. package/esm2020/lib/interceptors/basiq-token.interceptor.mjs +3 -3
  6. package/esm2020/lib/interceptors/corelogic-interceptor.mjs +3 -3
  7. package/esm2020/lib/interceptors/financial-year-interceptor.mjs +3 -3
  8. package/esm2020/lib/interceptors/interceptors.module.mjs +4 -4
  9. package/esm2020/lib/interceptors/jwt-interceptor.mjs +3 -3
  10. package/esm2020/lib/interceptors/preloader.interceptor.mjs +3 -3
  11. package/esm2020/lib/interceptors/user-switcher-interceptor.mjs +3 -3
  12. package/esm2020/lib/models/account-setup/account-setup-item.mjs +36 -9
  13. package/esm2020/lib/models/account-setup/account-setup-items.enum.mjs +14 -10
  14. package/esm2020/lib/models/user/user.mjs +9 -1
  15. package/esm2020/lib/pipes/app-currency.pipe.mjs +3 -3
  16. package/esm2020/lib/services/account-setup/account-setup.service.mjs +88 -61
  17. package/esm2020/lib/services/affiliate/rewardful/rewardful.service.mjs +3 -3
  18. package/esm2020/lib/services/asset/assets.service.mjs +3 -3
  19. package/esm2020/lib/services/auth/auth.service.mjs +3 -3
  20. package/esm2020/lib/services/auth/jwt.service.mjs +3 -3
  21. package/esm2020/lib/services/bank/bank-account-calculation.service.mjs +3 -3
  22. package/esm2020/lib/services/bank/bank-transaction-calculation.service.mjs +3 -3
  23. package/esm2020/lib/services/data.service.mjs +3 -3
  24. package/esm2020/lib/services/event/event-dispatcher.service.mjs +3 -3
  25. package/esm2020/lib/services/event/sse.service.mjs +3 -3
  26. package/esm2020/lib/services/export/export-formatter.service.mjs +3 -3
  27. package/esm2020/lib/services/header-title/header-title.service.mjs +3 -3
  28. package/esm2020/lib/services/http/address/address.service.mjs +3 -3
  29. package/esm2020/lib/services/http/bank/bank-account/bank-account.service.mjs +3 -3
  30. package/esm2020/lib/services/http/bank/bank-connection/bank-connection.service.mjs +3 -3
  31. package/esm2020/lib/services/http/bank/bank-transaction/bank-transaction.service.mjs +3 -3
  32. package/esm2020/lib/services/http/bank/bank.service.mjs +3 -3
  33. package/esm2020/lib/services/http/bank/basiq/basiq-token.service.mjs +3 -3
  34. package/esm2020/lib/services/http/bank/basiq/basiq.service.mjs +3 -3
  35. package/esm2020/lib/services/http/budget/budget.service.mjs +3 -3
  36. package/esm2020/lib/services/http/chart-accounts/chart-accounts-depreciations/chart-accounts-depreciations.service.mjs +3 -3
  37. package/esm2020/lib/services/http/chart-accounts/chart-accounts.service.mjs +3 -3
  38. package/esm2020/lib/services/http/chat/chat.service.mjs +3 -3
  39. package/esm2020/lib/services/http/chat/message-document.service.mjs +3 -3
  40. package/esm2020/lib/services/http/chat/message.service.mjs +3 -3
  41. package/esm2020/lib/services/http/client/capital-gain/annual-client-details.service.mjs +3 -3
  42. package/esm2020/lib/services/http/client/occupation/occupation.service.mjs +3 -3
  43. package/esm2020/lib/services/http/depreciation/depreciation-capital-project/depreciation-capital-project.service.mjs +3 -3
  44. package/esm2020/lib/services/http/depreciation/depreciation.service.mjs +3 -3
  45. package/esm2020/lib/services/http/document/document-folder/document-folder.service.mjs +3 -3
  46. package/esm2020/lib/services/http/document/document.service.mjs +3 -3
  47. package/esm2020/lib/services/http/facebook/facebook.service.mjs +3 -3
  48. package/esm2020/lib/services/http/file/file.service.mjs +3 -3
  49. package/esm2020/lib/services/http/firm/client-income/client-income-types.service.mjs +3 -3
  50. package/esm2020/lib/services/http/firm/client-invite/client-invite.service.mjs +3 -3
  51. package/esm2020/lib/services/http/firm/client-movement/client-movement.service.mjs +3 -3
  52. package/esm2020/lib/services/http/firm/employee/employee.service.mjs +3 -3
  53. package/esm2020/lib/services/http/firm/employee-invite/employee-invite.service.mjs +3 -3
  54. package/esm2020/lib/services/http/firm/firm.service.mjs +3 -3
  55. package/esm2020/lib/services/http/firm/portfolio-report/client-portfolio-report.service.mjs +3 -3
  56. package/esm2020/lib/services/http/google/google.service.mjs +3 -3
  57. package/esm2020/lib/services/http/holding/holding-sale.service.mjs +3 -3
  58. package/esm2020/lib/services/http/holding/holding-type.service.mjs +3 -3
  59. package/esm2020/lib/services/http/holding/holding.service.mjs +3 -3
  60. package/esm2020/lib/services/http/income-source/income-source-forecast/income-source-forecast.service.mjs +3 -3
  61. package/esm2020/lib/services/http/income-source/income-source.service.mjs +3 -3
  62. package/esm2020/lib/services/http/income-source/salary-forecast/salary-forecast.service.mjs +3 -3
  63. package/esm2020/lib/services/http/income-source/sole-forecast/sole-forecast.service.mjs +3 -3
  64. package/esm2020/lib/services/http/loan/borrowing-expense/borrowing-expense.service.mjs +3 -3
  65. package/esm2020/lib/services/http/loan/loan.service.mjs +3 -3
  66. package/esm2020/lib/services/http/property/borrowing-report/borrowing-report.service.mjs +3 -3
  67. package/esm2020/lib/services/http/property/property-category/property-category.service.mjs +3 -3
  68. package/esm2020/lib/services/http/property/property-category-movement/property-category-movement.service.mjs +3 -3
  69. package/esm2020/lib/services/http/property/property-document/property-document.service.mjs +3 -3
  70. package/esm2020/lib/services/http/property/property-sale/property-sale.service.mjs +3 -3
  71. package/esm2020/lib/services/http/property/property-share/property-share.service.mjs +3 -3
  72. package/esm2020/lib/services/http/property/property-valuation/property-valuation.service.mjs +3 -3
  73. package/esm2020/lib/services/http/property/property.service.mjs +3 -3
  74. package/esm2020/lib/services/http/rest/rest-old.service.mjs +3 -3
  75. package/esm2020/lib/services/http/rest/rest.service.mjs +3 -3
  76. package/esm2020/lib/services/http/service-notification/service-notification.service.mjs +3 -3
  77. package/esm2020/lib/services/http/setup-item/setup-item.service.mjs +24 -0
  78. package/esm2020/lib/services/http/sole/bas-report/bas-report.service.mjs +3 -3
  79. package/esm2020/lib/services/http/sole/sole-business/sole-business.service.mjs +3 -3
  80. package/esm2020/lib/services/http/sole/sole-business-activity/sole-business-activity.service.mjs +3 -3
  81. package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss-rules/sole-business-loss-offset-rule.service.mjs +3 -3
  82. package/esm2020/lib/services/http/sole/sole-business-loss/sole-business-loss.service.mjs +3 -3
  83. package/esm2020/lib/services/http/sole/sole-contact/sole-contact.service.mjs +3 -3
  84. package/esm2020/lib/services/http/sole/sole-depreciation-method/sole-depreciation-method.service.mjs +3 -3
  85. package/esm2020/lib/services/http/sole/sole-details/sole-details.service.mjs +3 -3
  86. package/esm2020/lib/services/http/sole/sole-invoice/sole-invoice.service.mjs +3 -3
  87. package/esm2020/lib/services/http/sole/sole-invoice-template/sole-invoice-template.service.mjs +3 -3
  88. package/esm2020/lib/services/http/subscription/service-payment/service-payment.service.mjs +3 -3
  89. package/esm2020/lib/services/http/subscription/service-payment-method/service-payment-method.service.mjs +3 -3
  90. package/esm2020/lib/services/http/subscription/service-price/service-price.service.mjs +3 -3
  91. package/esm2020/lib/services/http/subscription/service-product/service-product.service.mjs +3 -3
  92. package/esm2020/lib/services/http/subscription/service-subscription/subscription.service.mjs +3 -3
  93. package/esm2020/lib/services/http/tax-review/tax-review-history/tax-review-history.service.mjs +3 -3
  94. package/esm2020/lib/services/http/tax-review/tax-review.service.mjs +3 -3
  95. package/esm2020/lib/services/http/tax-summary/tax-summary.service.mjs +3 -3
  96. package/esm2020/lib/services/http/transaction/transaction-allocation/allocation-rule/allocation-rule.service.mjs +3 -3
  97. package/esm2020/lib/services/http/transaction/transaction-allocation/transaction-allocation.service.mjs +3 -3
  98. package/esm2020/lib/services/http/transaction/transaction.service.mjs +3 -3
  99. package/esm2020/lib/services/http/tutorial-video/tutorial-video.service.mjs +3 -3
  100. package/esm2020/lib/services/http/user/financial-year/financial-year.service.mjs +3 -3
  101. package/esm2020/lib/services/http/user/user-event-setting/user-event-setting.service.mjs +3 -3
  102. package/esm2020/lib/services/http/user/user-event-type/user-event-type.service.mjs +3 -3
  103. package/esm2020/lib/services/http/user/user.service.mjs +10 -4
  104. package/esm2020/lib/services/http/user/users-invite/users-invite.service.mjs +3 -3
  105. package/esm2020/lib/services/http/vehicle/vehicle-claim-details.service.mjs +3 -3
  106. package/esm2020/lib/services/http/vehicle/vehicle-claim.service.mjs +3 -3
  107. package/esm2020/lib/services/http/vehicle/vehicle-logbook/vehicle-logbook.service.mjs +3 -3
  108. package/esm2020/lib/services/http/vehicle/vehicle.service.mjs +3 -3
  109. package/esm2020/lib/services/intercom/intercom.service.mjs +3 -3
  110. package/esm2020/lib/services/json/chart-accounts/chart-accounts-value.service.mjs +3 -3
  111. package/esm2020/lib/services/json/holding/holding-type-exchange.service.mjs +3 -3
  112. package/esm2020/lib/services/json/income-source/income-source-type.service.mjs +3 -3
  113. package/esm2020/lib/services/json/tax-exemption/tax-exemption.service.mjs +3 -3
  114. package/esm2020/lib/services/json/tax-return/tax-return-item.service.mjs +3 -3
  115. package/esm2020/lib/services/mixpanel/mixpanel.service.mjs +3 -3
  116. package/esm2020/lib/services/pdf/pdf-from-dom-element/pdf-from-dom-element.service.mjs +3 -3
  117. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-data-table/pdf-from-data-table.service.mjs +3 -3
  118. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-html-table/pdf-from-html-table.service.mjs +3 -3
  119. package/esm2020/lib/services/pdf/pdf-from-table/pdf-from-table.service.mjs +3 -3
  120. package/esm2020/lib/services/preloader/preloader.service.mjs +3 -3
  121. package/esm2020/lib/services/property/corelogic/corelogic.service.mjs +3 -3
  122. package/esm2020/lib/services/property/equity-position-chart/equity-position-chart.service.mjs +3 -3
  123. package/esm2020/lib/services/property/property-calculation/property-calculation.service.mjs +3 -3
  124. package/esm2020/lib/services/report/property/property-transaction-report.service.mjs +3 -3
  125. package/esm2020/lib/services/toast/toast.service.mjs +3 -3
  126. package/esm2020/lib/services/transaction/transaction-calculation.service.mjs +3 -3
  127. package/esm2020/lib/services/user/user-switcher.service.mjs +3 -3
  128. package/esm2020/lib/services/vehicle/logbook-best-period.service.mjs +3 -3
  129. package/esm2020/lib/services/xlsx/xlsx.service.mjs +3 -3
  130. package/esm2020/lib/tt-core.module.mjs +4 -4
  131. package/esm2020/lib/validators/unique-email.validator.mjs +3 -3
  132. package/esm2020/public-api.mjs +2 -1
  133. package/fesm2015/taxtank-core.mjs +543 -508
  134. package/fesm2015/taxtank-core.mjs.map +1 -1
  135. package/fesm2020/taxtank-core.mjs +543 -508
  136. package/fesm2020/taxtank-core.mjs.map +1 -1
  137. package/lib/db/Enums/setup-item-type.enum.d.ts +4 -0
  138. package/lib/db/Models/setup-item.d.ts +11 -0
  139. package/lib/db/Models/user/user.d.ts +2 -0
  140. package/lib/models/account-setup/account-setup-item.d.ts +13 -13
  141. package/lib/models/account-setup/account-setup-items.enum.d.ts +13 -9
  142. package/lib/models/user/user.d.ts +2 -0
  143. package/lib/services/account-setup/account-setup.service.d.ts +19 -15
  144. package/lib/services/http/setup-item/setup-item.service.d.ts +14 -0
  145. package/lib/services/http/user/user.service.d.ts +2 -0
  146. package/package.json +1 -1
  147. package/public-api.d.ts +1 -0
  148. package/esm2020/lib/models/account-setup/account-setup-items.const.mjs +0 -65
  149. package/lib/models/account-setup/account-setup-items.const.d.ts +0 -7
@@ -0,0 +1,4 @@
1
+ export declare enum SetupItemTypeEnum {
2
+ CLIENT = 1,
3
+ EMPLOYEE = 2
4
+ }
@@ -0,0 +1,11 @@
1
+ import { SetupItemTypeEnum } from '../Enums/setup-item-type.enum';
2
+ import { UserRolesEnum } from '../Enums/user-roles.enum';
3
+ import { AbstractModel } from './abstract-model';
4
+ export declare class SetupItem extends AbstractModel {
5
+ type?: SetupItemTypeEnum;
6
+ title?: string;
7
+ description?: string;
8
+ url?: string;
9
+ urlFragment?: string;
10
+ roles?: UserRolesEnum;
11
+ }
@@ -16,6 +16,7 @@ import { EmployeeDetails } from './employee-details';
16
16
  import { SoleDetails } from '../sole/sole-details';
17
17
  import { File } from '../file';
18
18
  import { ObservableModel } from '../observable-model';
19
+ import { SetupItem } from '../setup-item';
19
20
  export declare class User extends ObservableModel {
20
21
  intercomId?: number;
21
22
  createdAt?: Date;
@@ -54,4 +55,5 @@ export declare class User extends ObservableModel {
54
55
  employeeDetails?: EmployeeDetails;
55
56
  soleDetails?: SoleDetails;
56
57
  file: File;
58
+ blacklistSetupItems: SetupItem[];
57
59
  }
@@ -1,15 +1,15 @@
1
- /**
2
- * Account setup item instance is using for account setup checklist
3
- */
4
- import { AbstractModel } from '../../db/Models';
5
- export declare class AccountSetupItem extends AbstractModel {
6
- title: string;
7
- description: string;
8
- url: string;
9
- /**
10
- * hashtag to start product tour (connected with intercom)
11
- */
12
- urlFragment: string;
13
- clientIncomeTypes: string[];
1
+ import { SetupItem } from '../../db/Models/setup-item';
2
+ export declare class AccountSetupItem extends SetupItem {
14
3
  isCompleted: boolean;
4
+ get isSalary(): boolean;
5
+ get isOtherIncome(): boolean;
6
+ get isProperty(): boolean;
7
+ get isBankFeeds(): boolean;
8
+ get isWorkLogbook(): boolean;
9
+ get isTransactionAllocate(): boolean;
10
+ get isSoleBusiness(): boolean;
11
+ get isHoldings(): boolean;
12
+ get isFirmDetails(): boolean;
13
+ get isInviteTeam(): boolean;
14
+ get isInviteClients(): boolean;
15
15
  }
@@ -1,13 +1,17 @@
1
1
  /**
2
- * Enum list of all possible account setup items. Using with [ACCOUNT_SETUP_ITEMS]{@link ACCOUNT_SETUP_ITEMS}
2
+ * Enum list of all possible account setup items ids. Using with [ACCOUNT_SETUP_ITEMS]{@link ACCOUNT_SETUP_ITEMS}
3
+ * @TODO Vik/Nikita: Do we need to generate it from backend? If some ids changed?
3
4
  */
4
5
  export declare enum AccountSetupItemsEnum {
5
- SALARY = 0,
6
- OTHER_INCOME = 1,
7
- PROPERTY = 2,
8
- BANK_FEEDS = 3,
9
- WORK_LOGBOOK = 4,
10
- TRANSACTION = 5,
11
- SOLE_BUSINESS = 6,
12
- HOLDINGS = 7
6
+ SALARY = 1,
7
+ OTHER_INCOME = 2,
8
+ PROPERTY = 3,
9
+ BANK_FEEDS = 4,
10
+ WORK_LOGBOOK = 5,
11
+ TRANSACTION_ALLOCATE = 6,
12
+ SOLE_BUSINESS = 7,
13
+ HOLDINGS = 8,
14
+ FIRM_DETAILS = 9,
15
+ INVITE_TEAM = 10,
16
+ INVITE_CLIENTS = 11
13
17
  }
@@ -9,6 +9,7 @@ import { ServiceSubscriptionItem } from '../service-subscription';
9
9
  import { SoleDetails } from '../sole';
10
10
  import { AppFile } from '../file';
11
11
  import { MpTrackableInterface } from '../../interfaces';
12
+ import { AccountSetupItem } from '../account-setup/account-setup-item';
12
13
  export declare class User extends BaseUser implements MpTrackableInterface {
13
14
  subscriptions: ServiceSubscription[];
14
15
  clientDetails: ClientDetails;
@@ -19,6 +20,7 @@ export declare class User extends BaseUser implements MpTrackableInterface {
19
20
  createdAt: Date;
20
21
  clients: User[];
21
22
  file: AppFile;
23
+ blacklistSetupItems: AccountSetupItem[];
22
24
  get fullName(): string;
23
25
  get activeSubscription(): ServiceSubscription;
24
26
  get lastSubscription(): ServiceSubscription;
@@ -1,13 +1,16 @@
1
- import { BankAccountService, HoldingService, IncomeSourceService, PropertyService, SoleBusinessService, TransactionAllocationService, TransactionService, UserService, VehicleClaimService } from '../http';
1
+ import { BankAccountService, ClientInviteService, ClientMovementService, EmployeeInviteService, EmployeeService, FirmService, HoldingService, IncomeSourceService, PropertyService, SoleBusinessService, TransactionAllocationService, TransactionService, UserService, VehicleClaimService } from '../http';
2
2
  import { User } from '../../models';
3
3
  import { AccountSetupItemCollection } from '../../collections';
4
- import { Observable, ReplaySubject } from 'rxjs';
4
+ import { Observable } from 'rxjs';
5
+ import { SetupItemTypeEnum } from '../../db/Enums/setup-item-type.enum';
6
+ import { SetupItemService } from '../http/setup-item/setup-item.service';
5
7
  import * as i0 from "@angular/core";
6
8
  /**
7
9
  * Service handling user's account setup process.
8
10
  * Checks required steps and their completion
9
11
  */
10
12
  export declare class AccountSetupService {
13
+ private setupItemService;
11
14
  private propertyService;
12
15
  private incomeSourceService;
13
16
  private bankAccountsService;
@@ -17,23 +20,24 @@ export declare class AccountSetupService {
17
20
  private soleBusinessService;
18
21
  private holdingService;
19
22
  private userService;
20
- cache: AccountSetupItemCollection;
21
- cacheSubject: ReplaySubject<AccountSetupItemCollection>;
23
+ private clientMovementService;
24
+ private clientInviteService;
25
+ private employeeService;
26
+ private employeeInviteService;
27
+ private firmService;
28
+ items: AccountSetupItemCollection;
22
29
  user: User;
23
- constructor(propertyService: PropertyService, incomeSourceService: IncomeSourceService, bankAccountsService: BankAccountService, transactionAllocationService: TransactionAllocationService, vehicleClaimService: VehicleClaimService, transactionService: TransactionService, soleBusinessService: SoleBusinessService, holdingService: HoldingService, userService: UserService);
30
+ constructor(setupItemService: SetupItemService, propertyService: PropertyService, incomeSourceService: IncomeSourceService, bankAccountsService: BankAccountService, transactionAllocationService: TransactionAllocationService, vehicleClaimService: VehicleClaimService, transactionService: TransactionService, soleBusinessService: SoleBusinessService, holdingService: HoldingService, userService: UserService, clientMovementService: ClientMovementService, clientInviteService: ClientInviteService, employeeService: EmployeeService, employeeInviteService: EmployeeInviteService, firmService: FirmService);
24
31
  /**
25
- * Get list of account setup items for current user
32
+ * Get list of account setup items for current user/firm
26
33
  */
27
- get(): Observable<AccountSetupItemCollection>;
34
+ get(type: SetupItemTypeEnum): Observable<AccountSetupItemCollection>;
35
+ getClientItems$(): Observable<AccountSetupItemCollection>;
36
+ getFirmItems$(): Observable<AccountSetupItemCollection>;
28
37
  /**
29
- * Get a single AccountSetupItem and check it's completion
38
+ * Check and update isCompleted flag for passed item
30
39
  */
31
- private create;
32
- /**
33
- * Get batch of requests to get list of required AccountSetupItem's.
34
- * Some items are optional and depends of user's client income types
35
- */
36
- private createBatch;
40
+ private setItemStatus;
37
41
  /**
38
42
  * @TODO Alex: work with collection when services refactored
39
43
  * @TODO Vik: waiting for income sources refactoring
@@ -44,7 +48,7 @@ export declare class AccountSetupService {
44
48
  */
45
49
  private getLogbookItem;
46
50
  /**
47
- * Show bank feeds item when user has only holding tank
51
+ * Hide bank feeds item when user has only holding tank
48
52
  */
49
53
  private getBankFeedsItem;
50
54
  static ɵfac: i0.ɵɵFactoryDeclaration<AccountSetupService, never>;
@@ -0,0 +1,14 @@
1
+ import { AccountSetupItemCollection } from '../../../collections';
2
+ import { SetupItem } from '../../../db/Models/setup-item';
3
+ import { AccountSetupItem } from '../../../models/account-setup/account-setup-item';
4
+ import { RestService, RestMethod } from '../rest';
5
+ import * as i0 from "@angular/core";
6
+ export declare class SetupItemService extends RestService<SetupItem, AccountSetupItem, AccountSetupItemCollection> {
7
+ protected endpointUri: string;
8
+ protected isApiPlatform: boolean;
9
+ modelClass: typeof AccountSetupItem;
10
+ collectionClass: typeof AccountSetupItemCollection;
11
+ disabledMethods: RestMethod[];
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<SetupItemService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<SetupItemService>;
14
+ }
@@ -5,6 +5,7 @@ import { User } from '../../../models';
5
5
  import { EventDispatcherService } from '../../event';
6
6
  import { RestMethod, RestService } from '../rest';
7
7
  import { Collection } from '../../../collections';
8
+ import { AccountSetupItem } from '../../../models/account-setup/account-setup-item';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class UserService extends RestService<UserBase, User, Collection<User>> {
10
11
  protected http: HttpClient;
@@ -34,6 +35,7 @@ export declare class UserService extends RestService<UserBase, User, Collection<
34
35
  finishOnboarding(user: User): Observable<User>;
35
36
  updatePhoto(photo: FormData): Observable<void>;
36
37
  createBasiq(): Observable<string>;
38
+ skipSetupItem(item: AccountSetupItem): Observable<User>;
37
39
  /**
38
40
  * Update cache when user's service subscription is updated
39
41
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.31.42",
3
+ "version": "0.31.43",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^15.1.5",
package/public-api.d.ts CHANGED
@@ -52,6 +52,7 @@ export * from './lib/db/Enums/registration-invite-status.enum';
52
52
  export * from './lib/db/Enums/salary-forecast-frequency.enum';
53
53
  export * from './lib/db/Enums/service-notification-status.enum';
54
54
  export * from './lib/db/Enums/service-notification-type.enum';
55
+ export * from './lib/db/Enums/setup-item-type.enum';
55
56
  export * from './lib/db/Enums/sole-depreciation-method.enum';
56
57
  export * from './lib/db/Enums/sole-invoice-statuses.enum';
57
58
  export * from './lib/db/Enums/sole-invoice-tax-type.enum';
@@ -1,65 +0,0 @@
1
- import { AccountSetupItemsEnum } from './account-setup-items.enum';
2
- import { AccountSetupItem } from './account-setup-item';
3
- import { plainToClass } from 'class-transformer';
4
- /**
5
- * List of all possible account setup steps
6
- */
7
- export const ACCOUNT_SETUP_ITEMS = {
8
- [AccountSetupItemsEnum.SALARY]: plainToClass(AccountSetupItem, {
9
- title: 'Add your work income forecast',
10
- description: 'One the most important steps is to add your salary or wage incomes so we can automatically calculate tax withheld and your forecasted tax position.',
11
- url: '/client/work-tank/forecasting',
12
- urlFragment: 'salaryProductTour',
13
- clientIncomeTypes: ['work']
14
- }),
15
- [AccountSetupItemsEnum.OTHER_INCOME]: plainToClass(AccountSetupItem, {
16
- title: 'Add any other expected incomes',
17
- description: 'To ensure an accurate tax position forecast, add estimates for any other income types, like dividends, interest, trusts, annuities, director payments etc.',
18
- url: '/client/work-tank/forecasting',
19
- urlFragment: 'otherIncomeProductTour',
20
- clientIncomeTypes: ['work']
21
- }),
22
- [AccountSetupItemsEnum.PROPERTY]: plainToClass(AccountSetupItem, {
23
- title: 'Add your properties',
24
- description: 'Add your properties to seamlessly manage your rental incomes and expenses, whilst tracking your cash position, tax positions and equity forecasts in real time.',
25
- url: '/client/property-tank',
26
- urlFragment: 'productTour',
27
- clientIncomeTypes: ['property']
28
- }),
29
- [AccountSetupItemsEnum.BANK_FEEDS]: plainToClass(AccountSetupItem, {
30
- title: 'Link banks and select accounts',
31
- description: 'Link banks to automatically feed your account transactions to save you time and money. Allocating live transactions ensures nothing is missed, lost or forgotten!',
32
- url: '/client/bank-feeds',
33
- urlFragment: 'bankAccountProductTour',
34
- clientIncomeTypes: ['work', 'property', 'sole']
35
- }),
36
- [AccountSetupItemsEnum.WORK_LOGBOOK]: plainToClass(AccountSetupItem, {
37
- title: 'Set up your logbook method',
38
- description: 'Do you use your vehicle for work? Select your method and the kms or logbook % to automate accurately all vehicle expenses throughout the year.',
39
- url: '/client/work-tank/logbook',
40
- urlFragment: 'productTour'
41
- }),
42
- [AccountSetupItemsEnum.TRANSACTION]: plainToClass(AccountSetupItem, {
43
- title: 'Allocate transactions',
44
- description: 'Select one or multiple transactions, the category from the dropdown and attach your receipt. It’s that simple to capture every possible deduction, and keep organised all throughout the year.',
45
- url: '/client/bank-feeds',
46
- urlFragment: 'allocationProductTour',
47
- clientIncomeTypes: ['work', 'property', 'sole']
48
- }),
49
- [AccountSetupItemsEnum.SOLE_BUSINESS]: plainToClass(AccountSetupItem, {
50
- title: 'Add your Sole Trader business',
51
- description: 'Add up to 6 sole trader businesses to seamlessly manage invoicing, payments, BAS and prior even losses for every hustle without the hassle!',
52
- url: '/client/sole-tank',
53
- urlFragment: 'productTour',
54
- clientIncomeTypes: ['sole']
55
- }),
56
- [AccountSetupItemsEnum.HOLDINGS]: plainToClass(AccountSetupItem, {
57
- title: 'Add your holdings',
58
- description: 'Track your trades for shares, crypto and other assets in one place, and auto calculate CGT all year round!',
59
- url: '/client/holdings-tank',
60
- // @TODO Nicole waiting for product tour from
61
- urlFragment: 'productTour',
62
- clientIncomeTypes: ['holdings']
63
- }),
64
- };
65
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3VudC1zZXR1cC1pdGVtcy5jb25zdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4u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UgVHJhZGVyIGJ1c2luZXNzJyxcbiAgICBkZXNjcmlwdGlvbjogJ0FkZCB1cCB0byA2IHNvbGUgdHJhZGVyIGJ1c2luZXNzZXMgdG8gc2VhbWxlc3NseSBtYW5hZ2UgaW52b2ljaW5nLCBwYXltZW50cywgQkFTIGFuZCBwcmlvciBldmVuIGxvc3NlcyBmb3IgZXZlcnkgaHVzdGxlIHdpdGhvdXQgdGhlIGhhc3NsZSEnLFxuICAgIHVybDogJy9jbGllbnQvc29sZS10YW5rJyxcbiAgICB1cmxGcmFnbWVudDogJ3Byb2R1Y3RUb3VyJyxcbiAgICBjbGllbnRJbmNvbWVUeXBlczogWydzb2xlJ11cbiAgfSksXG4gIFtBY2NvdW50U2V0dXBJdGVtc0VudW0uSE9MRElOR1NdOiBwbGFpblRvQ2xhc3MoQWNjb3VudFNldHVwSXRlbSwge1xuICAgIHRpdGxlOiAnQWRkIHlvdXIgaG9sZGluZ3MnLFxuICAgIGRlc2NyaXB0aW9uOiAnVHJhY2sgeW91ciB0cmFkZXMgZm9yIHNoYXJlcywgY3J5cHRvIGFuZCBvdGhlciBhc3NldHMgaW4gb25lIHBsYWNlLCBhbmQgYXV0byBjYWxjdWxhdGUgQ0dUIGFsbCB5ZWFyIHJvdW5kIScsXG4gICAgdXJsOiAnL2NsaWVudC9ob2xkaW5ncy10YW5rJyxcbiAgICAvLyBAVE9ETyBOaWNvbGUgd2FpdGluZyBmb3IgcHJvZHVjdCB0b3VyIGZyb21cbiAgICB1cmxGcmFnbWVudDogJ3Byb2R1Y3RUb3VyJyxcbiAgICBjbGllbnRJbmNvbWVUeXBlczogWydob2xkaW5ncyddXG4gIH0pLFxufTtcbiJdfQ==
@@ -1,7 +0,0 @@
1
- import { AccountSetupItem } from './account-setup-item';
2
- /**
3
- * List of all possible account setup steps
4
- */
5
- export declare const ACCOUNT_SETUP_ITEMS: {
6
- [key: number]: AccountSetupItem;
7
- };