taxtank-core 0.28.6 → 0.28.8-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/bundles/taxtank-core.umd.js +120 -38
  2. package/bundles/taxtank-core.umd.js.map +1 -1
  3. package/esm2015/lib/db/Enums/user-event-type-type.enum.js +48 -0
  4. package/esm2015/lib/forms/bank/bank-account/bank-account-import.form.js +3 -3
  5. package/esm2015/lib/forms/loan/loan.form.js +5 -1
  6. package/esm2015/lib/models/loan/loan-max-number-of-payments.enum.js +3 -2
  7. package/esm2015/lib/models/notification/notification.js +1 -1
  8. package/esm2015/lib/models/service-subscription/service-subscription.js +20 -1
  9. package/esm2015/lib/services/http/bank/bank-connection/bank-connection.service.js +13 -4
  10. package/esm2015/lib/services/http/bank/bank-transaction/bank-transaction.service.js +3 -3
  11. package/esm2015/lib/services/http/bank/basiq/basiq.service.js +3 -3
  12. package/esm2015/lib/services/http/firm/client-invite/client-invite.service.js +3 -3
  13. package/esm2015/lib/services/http/firm/client-movement/client-movement.service.js +3 -3
  14. package/esm2015/lib/services/http/service-notification/service-notification.service.js +2 -1
  15. package/esm2015/lib/services/http/tax-review/tax-review.service.js +3 -3
  16. package/fesm2015/taxtank-core.js +120 -38
  17. package/fesm2015/taxtank-core.js.map +1 -1
  18. package/lib/db/Enums/user-event-type-type.enum.d.ts +46 -0
  19. package/lib/forms/loan/loan.form.d.ts +1 -0
  20. package/lib/models/loan/loan-max-number-of-payments.enum.d.ts +2 -1
  21. package/lib/models/notification/notification.d.ts +2 -4
  22. package/lib/models/service-subscription/service-subscription.d.ts +9 -0
  23. package/lib/services/http/bank/bank-connection/bank-connection.service.d.ts +3 -1
  24. package/package.json +1 -1
@@ -0,0 +1,46 @@
1
+ export declare enum UserEventTypeTypeEnum {
2
+ REGISTERED = 1000,
3
+ PASSWORD_RESET_REQUEST = 1001,
4
+ APP_FEATURES = 1010,
5
+ SUBSCRIBED = 2000,
6
+ UNSUBSCRIBED = 2001,
7
+ SUBSCRIPTION_UPDATE = 2004,
8
+ SUBSCRIPTION_TRIAL_UPDATE = 2005,
9
+ SUBSCRIPTION_PAYMENT_FAILED = 2006,
10
+ CLIENT_INVITE = 2010,
11
+ CLIENT_INVITE_TO_REGISTER = 2011,
12
+ FIRM_INVITE_ACCEPTED = 2012,
13
+ FIRM_INVITE_REJECTED = 2013,
14
+ FIRM_INVITE_REGISTERED = 2014,
15
+ PROPERTY_SHARE_INVITE = 2020,
16
+ PROPERTY_SHARE_INVITE_TO_REGISTER = 2021,
17
+ PROPERTY_SHARE_INVITE_ACCEPTED = 2022,
18
+ PROPERTY_SHARE_INVITE_REJECTED = 2023,
19
+ PROPERTY_SHARE_INVITE_REGISTERED = 2024,
20
+ PROPERTY_SHARE_CHANGE_REQUESTED = 2025,
21
+ PROPERTY_SHARE_CHANGE_ACCEPTED = 2026,
22
+ PROPERTY_SHARE_CHANGE_REJECTED = 2027,
23
+ OWNER_SUBSCRIBED = 2028,
24
+ OWNER_UNSUBSCRIBED = 2029,
25
+ BASIQ_NEW_ACCOUNTS = 2030,
26
+ BASIQ_FIRST_IMPORT_COMPLETE = 2031,
27
+ BASIQ_AUTHORIZATION_FAIL = 2032,
28
+ TRANSACTION_ALLOCATE_REMINDER = 2033,
29
+ REGISTRATION_INVITE = 2040,
30
+ REGISTRATION_INVITE_ACCEPTED = 2041,
31
+ CLIENT_EMAIL_CONFIRMED = 2050,
32
+ TAX_REVIEW_REQUESTED = 2060,
33
+ FIRM_INVITE_TO_REGISTER = 3000,
34
+ FIRM_INVITE = 3001,
35
+ CLIENT_INVITE_ACCEPTED = 3002,
36
+ CLIENT_INVITE_REJECTED = 3003,
37
+ CLIENT_INVITE_REGISTERED = 3004,
38
+ FIRM_NEW_CLIENT = 3005,
39
+ FIRM_LOST_CLIENT = 3006,
40
+ EMPLOYEE_INVITE = 3010,
41
+ EMPLOYEE_LOST_CLIENT = 3011,
42
+ EMPLOYEE_NEW_CLIENT = 3012,
43
+ EMPLOYEE_INVITE_ACCEPTED = 3013,
44
+ EMPLOYEE_EMAIL_CONFIRMED = 3020,
45
+ TAX_REVIEW_RECEIVED = 3030
46
+ }
@@ -18,6 +18,7 @@ export declare class LoanForm extends AbstractForm<Loan> {
18
18
  * term validation depends on selected repaymentFrequency
19
19
  */
20
20
  listenRepaymentFrequencyChanges(): void;
21
+ d: any;
21
22
  /**
22
23
  * For vehicle loans term has a maximum value depended of repayment frequency
23
24
  */
@@ -1,5 +1,6 @@
1
1
  /**
2
- * Enum with maximum number of payments, depending on the frequency
2
+ * Enum with maximum number of payments, depending on the frequency.
3
+ * Used only for vehicle loans
3
4
  */
4
5
  export declare enum LoanMaxNumberOfPaymentsEnum {
5
6
  WEEKLY = 260,
@@ -1,12 +1,10 @@
1
1
  import { ServiceNotification as ServiceNotificationBase } from '../../db/Models/service-notification';
2
- import { UserEventTypeUserTypeEnum } from '../../db/Enums/user-event-type-user-type.enum';
3
- import { UserEventTypeEmployeeTypeEnum } from '../../db/Enums/user-event-type-employee-type.enum';
4
- import { UserEventTypeClientTypeEnum } from '../../db/Enums/user-event-type-client-type.enum';
5
2
  import { User } from '../user/user';
3
+ import { UserEventTypeTypeEnum } from '../../db/Enums/user-event-type-type.enum';
6
4
  export declare class Notification extends ServiceNotificationBase {
7
5
  sender: User;
8
6
  redirectionLink: string;
9
- get eventType(): UserEventTypeUserTypeEnum | UserEventTypeEmployeeTypeEnum | UserEventTypeClientTypeEnum;
7
+ get eventType(): UserEventTypeTypeEnum;
10
8
  /**
11
9
  * Check if notification is from user or not
12
10
  */
@@ -65,4 +65,13 @@ export declare class ServiceSubscription extends ServiceSubscriptionBase {
65
65
  * Case when payment was failed, but user has a time to update payment method
66
66
  */
67
67
  isPastDue(): boolean;
68
+ /**
69
+ * Check if current subscription has provided subscription item
70
+ */
71
+ hasItem(itemToCheck: ServiceSubscriptionItem): boolean;
72
+ /**
73
+ * Recommended number of properties to buy,
74
+ * based on the property service product and the number of properties the user has
75
+ */
76
+ getRecommendedPropertiesQty(propertyItem: ServiceSubscriptionItem, propertiesQty: number): number;
68
77
  }
@@ -3,19 +3,21 @@ import { BankConnection as BankConnectionBase } from '../../../../db/Models/bank
3
3
  import { BankConnection } from '../../../../models/bank/bank-connection';
4
4
  import { RestService } from '../../rest/rest.service';
5
5
  import { IEventListener } from '../../../../interfaces/event-listener.interface';
6
+ import { UserEventTypeTypeEnum } from '../../../../db/Enums/user-event-type-type.enum';
6
7
  import * as i0 from "@angular/core";
7
8
  /**
8
9
  * BankConnection means user account at specific bank (usually each user has only one at the same bank)
9
10
  * service handles BankConnection management
10
11
  */
11
12
  export declare class BankConnectionService extends RestService<BankConnectionBase, BankConnection> implements IEventListener {
13
+ static userEventTypes: UserEventTypeTypeEnum[];
12
14
  modelClass: typeof BankConnection;
13
15
  url: string;
14
16
  listenEvents(): void;
15
17
  add(bankConnection: BankConnection): Observable<BankConnection>;
16
18
  listenToAddedBankAccounts(): void;
17
19
  /**
18
- * Update cache when basiq login failed to get actual connections statuses
20
+ * Update cache when basiq accounts were retrieved or login to basic was failed to get actual connections statuses
19
21
  */
20
22
  listenNotifications(): void;
21
23
  static ɵfac: i0.ɵɵFactoryDeclaration<BankConnectionService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.28.6",
3
+ "version": "0.28.8-1",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",