taxtank-core 0.23.0 → 0.23.3

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,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;
@@ -9,4 +9,9 @@ export declare class BankAccountPropertiesForm extends FormArray {
9
9
  add(): void;
10
10
  enablePercent(): void;
11
11
  disablePercent(): void;
12
+ /**
13
+ * Percentage available for adding a new bank account property.
14
+ * Remaining percent can't be more than 100 and less than 0
15
+ */
16
+ private getRemainingPercent;
12
17
  }
@@ -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
+ }
@@ -5,4 +5,9 @@ export interface VideoSource {
5
5
  name: string;
6
6
  src: string;
7
7
  webContentLink: string;
8
+ videoMediaMetadata: {
9
+ width: number;
10
+ height: number;
11
+ durationMillis: string;
12
+ };
8
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.23.0",
3
+ "version": "0.23.3",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",
package/public-api.d.ts CHANGED
@@ -163,6 +163,7 @@ export * from './lib/models/chart/chart-data';
163
163
  export * from './lib/models/chart/chart-serie';
164
164
  export * from './lib/models/chart-accounts/chart-accounts';
165
165
  export * from './lib/models/chart-accounts/chart-accounts-categories.const';
166
+ export * from './lib/models/chart-accounts/chart-accounts-category.e-collection';
166
167
  export * from './lib/models/chart-accounts/chart-accounts-depreciation';
167
168
  export * from './lib/models/chart-accounts/chart-accounts-heading';
168
169
  export * from './lib/models/chart-accounts/chart-accounts-metadata';