taxtank-core 0.28.7 → 0.28.8-2

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.
@@ -7,6 +7,7 @@ import { ExportCell } from '../../models/export/export-cell';
7
7
  import { Collection } from '../collection';
8
8
  import { TransactionMetadata } from '../../models/transaction/transaction-metadata';
9
9
  import { VehicleClaim } from '../../models';
10
+ import { ChartData } from '../../models/chart/chart-data';
10
11
  /**
11
12
  * Collection of transactions
12
13
  */
@@ -91,4 +92,10 @@ export declare class TransactionCollection extends ExportableCollection<Transact
91
92
  * Get list of vehicle transactions except KMS transactions
92
93
  */
93
94
  getLogbookTransactions(): this;
95
+ /**
96
+ * Build chart data with transactions cash position.
97
+ * Cash position = Income - Expenses (include depreciations)
98
+ * Chart data for each month from fin year start till current month
99
+ */
100
+ getCashPositionChartData(): ChartData[];
94
101
  }
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.28.7",
3
+ "version": "0.28.8-2",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",