taxtank-core 0.23.0 → 0.23.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.
- package/bundles/taxtank-core.umd.js +67 -7
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/db/Models/transaction/transaction-base.js +16 -5
- package/esm2015/lib/models/chart-accounts/chart-accounts-category.e-collection.js +48 -0
- package/esm2015/public-api.js +4 -1
- package/fesm2015/taxtank-core.js +64 -8
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/db/Models/transaction/transaction-base.d.ts +2 -0
- package/lib/models/chart-accounts/chart-accounts-category.e-collection.d.ts +16 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Property } from '../property/property';
|
|
2
2
|
import { ChartAccounts } from '../chart-accounts/chart-accounts';
|
|
3
3
|
import { AbstractModel } from '../abstract-model';
|
|
4
|
+
import { SoleBusiness } from '../sole/sole-business';
|
|
4
5
|
export declare class TransactionBase extends AbstractModel {
|
|
5
6
|
id?: number;
|
|
6
7
|
amount?: number;
|
|
7
8
|
property?: Property;
|
|
9
|
+
business?: SoleBusiness;
|
|
8
10
|
date?: Date;
|
|
9
11
|
chartAccounts?: ChartAccounts;
|
|
10
12
|
description?: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ChartAccountsCategoryEnum } from '../../db/Enums/chart-accounts-category.enum';
|
|
2
|
+
/**
|
|
3
|
+
* @TODO Vik: we want to use enums from backend instead of declared types
|
|
4
|
+
*/
|
|
5
|
+
export declare type ChartAccountsType = 'income' | 'expense' | 'depreciation' | 'capital works';
|
|
6
|
+
export declare type ChartAccountsTankType = 'property' | 'work' | 'sole' | 'personal' | 'other';
|
|
7
|
+
/**
|
|
8
|
+
* @TODO Alex/Vik: think and create some new collection type
|
|
9
|
+
* @TODO Alex: research all constants and make the same structure
|
|
10
|
+
*/
|
|
11
|
+
export declare class ChartAccountsCategoryECollection {
|
|
12
|
+
items: ChartAccountsCategoryEnum[];
|
|
13
|
+
constructor(items?: ChartAccountsCategoryEnum[]);
|
|
14
|
+
getByType(types: ChartAccountsType | ChartAccountsType[]): ChartAccountsCategoryECollection;
|
|
15
|
+
getByTankType(tankTypes: ChartAccountsTankType | ChartAccountsTankType[]): ChartAccountsCategoryECollection;
|
|
16
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export * from './lib/collections/exportable.collection';
|
|
|
44
44
|
*/
|
|
45
45
|
export * from './lib/db/Models/abstract-model';
|
|
46
46
|
export * from './lib/db/Models/transaction/transaction-base';
|
|
47
|
+
export * from './lib/models/chart-accounts/chart-accounts-category.e-collection';
|
|
47
48
|
/**
|
|
48
49
|
* DB enums
|
|
49
50
|
*/
|
|
@@ -163,6 +164,7 @@ export * from './lib/models/chart/chart-data';
|
|
|
163
164
|
export * from './lib/models/chart/chart-serie';
|
|
164
165
|
export * from './lib/models/chart-accounts/chart-accounts';
|
|
165
166
|
export * from './lib/models/chart-accounts/chart-accounts-categories.const';
|
|
167
|
+
export * from './lib/models/chart-accounts/chart-accounts-category.e-collection';
|
|
166
168
|
export * from './lib/models/chart-accounts/chart-accounts-depreciation';
|
|
167
169
|
export * from './lib/models/chart-accounts/chart-accounts-heading';
|
|
168
170
|
export * from './lib/models/chart-accounts/chart-accounts-metadata';
|