taxtank-core 0.29.31 → 0.29.33

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.
@@ -1,5 +1,6 @@
1
1
  import { Collection } from '../collection';
2
2
  import { ServicePrice } from '../../models';
3
+ import { ServiceProductCollection } from './service-product.collection';
3
4
  /**
4
5
  * @TODO vik refactor
5
6
  */
@@ -12,4 +13,5 @@ export declare class ServicePriceCollection extends Collection<ServicePrice> {
12
13
  get annualPackage(): this;
13
14
  get annualPackageSum(): number;
14
15
  getProperty(isAnnual: boolean, isPackage: boolean): ServicePrice;
16
+ get products(): ServiceProductCollection;
15
17
  }
@@ -4,9 +4,10 @@ import { ServiceProduct, ServiceSubscription } from '../../models';
4
4
  import { CollectionDictionary } from '../collection-dictionary';
5
5
  export declare class ServiceSubscriptionCollection extends Collection<ServiceSubscription> {
6
6
  getActive(): this;
7
+ getInactive(): this;
7
8
  getTrials(): this;
8
9
  getActiveTrials(): this;
9
- getExpiringTrials(): this;
10
+ getExpiredTrials(): this;
10
11
  getPaid(): this;
11
12
  getActivePaid(): ServiceSubscription;
12
13
  /**
@@ -5,5 +5,5 @@ export declare class SubscriptionItemCollection extends Collection<ServiceSubscr
5
5
  get propertiesItem(): ServiceSubscriptionItem;
6
6
  get propertyQuantity(): number;
7
7
  hasProduct(product: ServiceProduct): boolean;
8
- getPrices(): ServicePriceCollection;
8
+ get prices(): ServicePriceCollection;
9
9
  }
@@ -1,12 +1,11 @@
1
1
  import { ClientDetails } from './client-details';
2
2
  import { ObservableModel } from '../observable-model';
3
3
  export declare class ClientIncomeTypes extends ObservableModel {
4
- salary?: boolean;
4
+ id?: number;
5
+ clientDetails?: ClientDetails;
6
+ work?: boolean;
5
7
  property?: boolean;
6
8
  sole?: boolean;
7
- dividends?: boolean;
8
- other?: boolean;
9
- id?: number;
9
+ holdings?: boolean;
10
10
  deletedAt?: Date;
11
- clientDetails?: ClientDetails;
12
11
  }
@@ -38,6 +38,7 @@ export declare class User extends AbstractModel {
38
38
  roles?: UserRolesEnum;
39
39
  financialYear?: number;
40
40
  dateOfBirth?: Date;
41
+ lastSeen?: Date;
41
42
  deletedAt?: Date;
42
43
  properties?: Property[];
43
44
  propertySubscriptions?: PropertySubscription[];
@@ -109,4 +109,5 @@ export declare class ChartAccounts extends ChartAccountsBase {
109
109
  * chart accounts included in salary, like tips or allowance
110
110
  */
111
111
  isSalaryIncluded(): boolean;
112
+ isPropertyCapitalWorks(): boolean;
112
113
  }
@@ -6,7 +6,6 @@ export declare class ServiceSubscription extends ServiceSubscriptionBase {
6
6
  startDate: Date;
7
7
  endDate: Date;
8
8
  items: ServiceSubscriptionItem[];
9
- lastTrialDays: number;
10
9
  get frequency(): 'month' | 'year';
11
10
  get isTrial(): boolean;
12
11
  get isPaid(): boolean;
@@ -19,12 +18,6 @@ export declare class ServiceSubscription extends ServiceSubscriptionBase {
19
18
  * A subscription is considered active if the end date has not yet arrived and its status is "Active" or "Past due"
20
19
  */
21
20
  get isActive(): boolean;
22
- get daysRemain(): number;
23
- /**
24
- * Check if trial expired
25
- */
26
- isTrialExpired(): boolean;
27
- isTrialExpiring(): boolean;
28
21
  isRenewable(): boolean;
29
22
  getItems(): SubscriptionItemCollection;
30
23
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.29.31",
3
+ "version": "0.29.33",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",