taxtank-core 0.12.1 → 0.12.4

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.
@@ -39,7 +39,7 @@ export declare class Collection<Model extends object> implements Iterable<Model>
39
39
  /**
40
40
  * Sort collection items by provided field
41
41
  */
42
- sortBy(filed?: string, isDesc?: boolean): void;
42
+ sortBy(field?: string, isDesc?: boolean): void;
43
43
  get first(): Model;
44
44
  get last(): Model;
45
45
  getByDateRange(from: Date, to: Date, dateField?: string): this;
@@ -0,0 +1,9 @@
1
+ import { Collection } from '../../collection';
2
+ import { VehicleExpense } from '../../../models/report/vehicle-expense/vehicle-expense';
3
+ import { TransactionCollection } from '../../transaction.collection';
4
+ import { DepreciationCollection } from '../../depreciation.collection';
5
+ import { VehicleClaim } from '../../../models/logbook/vehicle-claim';
6
+ export declare class VehicleExpenseCollection extends Collection<VehicleExpense> {
7
+ constructor(transactions: TransactionCollection, depreciations: DepreciationCollection, vehicleClaim: VehicleClaim);
8
+ private setItems;
9
+ }
@@ -9,5 +9,6 @@ export declare enum UserRolesEnum {
9
9
  SUBSCRIPTION = "ROLE_USER_SUBSCRIPTION",
10
10
  WORK_TANK = "ROLE_USER_WORK",
11
11
  PROPERTY_TANK = "ROLE_USER_PROPERTY",
12
+ SOLE_TANK = "ROLE_USER_SOLE",
12
13
  SWITCH_USER = "ROLE_PREVIOUS_ADMIN"
13
14
  }
@@ -1,8 +1,8 @@
1
1
  import { ClientDetails } from './client-details';
2
2
  export declare class ClientIncomeTypes {
3
3
  salary?: boolean;
4
- rental?: boolean;
5
- soleTrader?: boolean;
4
+ property?: boolean;
5
+ sole?: boolean;
6
6
  dividends?: boolean;
7
7
  other?: boolean;
8
8
  id?: number;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Vehicle expense for logbook section
3
+ */
4
+ export declare class VehicleExpense {
5
+ description: string;
6
+ amount: number;
7
+ claimPercent: number;
8
+ constructor(amount: number, claimPercent: number, description: string);
9
+ getClaimAmount(): number;
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.12.1",
3
+ "version": "0.12.4",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",
package/public-api.d.ts CHANGED
@@ -26,6 +26,7 @@ export * from './lib/collections/report/depreciation/depreciation-report-item.co
26
26
  export * from './lib/collections/report/property/property-report-item.collection';
27
27
  export * from './lib/collections/report/property/property-report-item-transaction.collection';
28
28
  export * from './lib/collections/report/property/property-report-item-depreciation.collection';
29
+ export * from './lib/collections/report/vehicle-expense/vehicle-expense.collection';
29
30
  export * from './lib/collections/service-price.collection';
30
31
  export * from './lib/collections/service-subscription.collection';
31
32
  export * from './lib/collections/tax-summary/report-item.collection';
@@ -237,6 +238,7 @@ export * from './lib/models/report/depreciation/depreciation-report-item';
237
238
  export * from './lib/models/report/depreciation/depreciation-lvp-asset-type.enum';
238
239
  export * from './lib/models/report/property/property-report-item';
239
240
  export * from './lib/models/report/property/property-report-item-transaction';
241
+ export * from './lib/models/report/vehicle-expense/vehicle-expense';
240
242
  export * from './lib/models/service-subscription/module-url-list.const';
241
243
  export * from './lib/models/service-subscription/service-payment';
242
244
  export * from './lib/models/service-subscription/service-price';