taxtank-core 0.31.7 → 0.31.8

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.
Files changed (31) hide show
  1. package/esm2020/lib/db/Models/transaction/transaction-base.mjs +1 -1
  2. package/esm2020/lib/interfaces/document.interface.mjs +1 -1
  3. package/esm2020/lib/interfaces/index.mjs +1 -2
  4. package/esm2020/lib/models/bank/bank.mjs +10 -1
  5. package/esm2020/lib/models/depreciation/depreciation.mjs +2 -2
  6. package/esm2020/lib/models/firm/firm.mjs +1 -1
  7. package/esm2020/lib/models/property/property.mjs +1 -1
  8. package/esm2020/lib/models/registration-invite/registration-invite.mjs +1 -1
  9. package/esm2020/lib/models/sole/sole-business.mjs +1 -1
  10. package/esm2020/lib/models/sole/sole-contact.mjs +3 -3
  11. package/esm2020/lib/models/transaction/transaction.mjs +1 -1
  12. package/esm2020/lib/models/user/user.mjs +1 -1
  13. package/fesm2015/taxtank-core.mjs +9 -0
  14. package/fesm2015/taxtank-core.mjs.map +1 -1
  15. package/fesm2020/taxtank-core.mjs +9 -0
  16. package/fesm2020/taxtank-core.mjs.map +1 -1
  17. package/lib/db/Models/transaction/transaction-base.d.ts +1 -2
  18. package/lib/interfaces/document.interface.d.ts +3 -2
  19. package/lib/interfaces/index.d.ts +0 -1
  20. package/lib/models/bank/bank.d.ts +5 -2
  21. package/lib/models/depreciation/depreciation.d.ts +2 -3
  22. package/lib/models/firm/firm.d.ts +1 -2
  23. package/lib/models/property/property.d.ts +1 -2
  24. package/lib/models/registration-invite/registration-invite.d.ts +1 -2
  25. package/lib/models/sole/sole-business.d.ts +1 -2
  26. package/lib/models/sole/sole-contact.d.ts +3 -4
  27. package/lib/models/transaction/transaction.d.ts +2 -2
  28. package/lib/models/user/user.d.ts +1 -2
  29. package/package.json +1 -1
  30. package/esm2020/lib/interfaces/fileable.interface.mjs +0 -2
  31. package/lib/interfaces/fileable.interface.d.ts +0 -8
@@ -4,8 +4,7 @@ import { AppFile } from '../../../models';
4
4
  import { SoleBusiness } from '../sole/sole-business';
5
5
  import { TankTypeEnum } from '../../Enums/tank-type.enum';
6
6
  import { ObservableModel } from '../observable-model';
7
- import { Fileable } from '../../../interfaces';
8
- export declare class TransactionBase extends ObservableModel implements Fileable {
7
+ export declare class TransactionBase extends ObservableModel {
9
8
  amount?: number;
10
9
  file: AppFile;
11
10
  property?: Property;
@@ -1,8 +1,9 @@
1
1
  import { AbstractModel } from '../db/Models';
2
- import { Fileable } from './fileable.interface';
2
+ import { AppFile } from '../models';
3
3
  /**
4
4
  * Interface for documents
5
5
  */
6
- export interface DocumentInterface extends Fileable {
6
+ export interface DocumentInterface extends AbstractModel {
7
7
  get parent(): AbstractModel;
8
+ file?: AppFile;
8
9
  }
@@ -8,7 +8,6 @@ export * from './document.interface';
8
8
  export * from './documentable.interface';
9
9
  export * from './event-listener.interface';
10
10
  export * from './expense.interface';
11
- export * from './fileable.interface';
12
11
  export * from './income-source-forecast.interface';
13
12
  export * from './option.interface';
14
13
  export * from './table-exportable.interface';
@@ -1,12 +1,15 @@
1
1
  import { Bank as BankBase } from '../../db/Models/bank/bank';
2
2
  import { BankExternalStats } from './bank-external-stats';
3
- import { Fileable } from '../../interfaces';
4
3
  import { AppFile } from '../file';
5
- export declare class Bank extends BankBase implements Fileable {
4
+ export declare class Bank extends BankBase {
6
5
  logo: string;
7
6
  isPopular: boolean;
8
7
  externalStats: BankExternalStats;
9
8
  file: AppFile;
10
9
  isManual(): boolean;
11
10
  isBasiq(): boolean;
11
+ /**
12
+ * some images come from basiq (starting http), the rest from assets
13
+ */
14
+ getPhoto(): string;
12
15
  }
@@ -5,12 +5,11 @@ import { DepreciationForecast } from './depreciation-forecast';
5
5
  import { ChartAccounts } from '../chart-accounts';
6
6
  import { BankTransaction } from '../bank';
7
7
  import { Transaction } from '../transaction';
8
- import { Expense } from '../../interfaces/expense.interface';
9
- import { Fileable } from '../../interfaces';
8
+ import { Expense } from '../../interfaces';
10
9
  /**
11
10
  * @TODO Alex: clarify grouping rules and refactor
12
11
  */
13
- export declare class Depreciation extends DepreciationBase implements Expense, Fileable {
12
+ export declare class Depreciation extends DepreciationBase implements Expense {
14
13
  static WRITTEN_OFF_THRESHOLD: number;
15
14
  static LOW_VALUE_POOL_THRESHOLD: number;
16
15
  purchaseDate: Date;
@@ -2,9 +2,8 @@ import { Firm as FirmBase } from '../../db/Models/firm/firm';
2
2
  import { Phone } from '../phone/phone';
3
3
  import { Address } from '../address';
4
4
  import { User } from '../user';
5
- import { Fileable } from '../../interfaces';
6
5
  import { AppFile } from '../file';
7
- export declare class Firm extends FirmBase implements Fileable {
6
+ export declare class Firm extends FirmBase {
8
7
  owner: User;
9
8
  address: Address;
10
9
  phone: Phone;
@@ -1,5 +1,4 @@
1
1
  import { Property as PropertyBase } from '../../db/Models/property/property';
2
- import { Fileable } from '../../interfaces';
3
2
  import { PropertyShare } from '../../db/Models';
4
3
  import { PropertySubscription } from './property-subscription';
5
4
  import { Address } from '../address';
@@ -16,7 +15,7 @@ import { AppFile } from '../file';
16
15
  /**
17
16
  * propertySale docs - https://taxtank.atlassian.net/wiki/spaces/TAXTANK/pages/4209508353/Property+Sold+button
18
17
  */
19
- export declare class Property extends PropertyBase implements Fileable {
18
+ export declare class Property extends PropertyBase {
20
19
  /**
21
20
  * Property acquired before 20 September 1985 will generally be treated as pre-Capital Gains Tax (CGT) assets.
22
21
  * Any assets acquired before this day are CGT exempt (because the tax didn't exist before this date).
@@ -1,6 +1,5 @@
1
1
  import { RegistrationInvite as RegistrationInviteBase } from '../../db/Models/user/registration-invite';
2
- import { Fileable } from '../../interfaces';
3
2
  import { AppFile } from '../file';
4
- export declare class RegistrationInvite extends RegistrationInviteBase implements Fileable {
3
+ export declare class RegistrationInvite extends RegistrationInviteBase {
5
4
  file: AppFile;
6
5
  }
@@ -9,9 +9,8 @@ import { Depreciation } from '../depreciation';
9
9
  import { Transaction } from '../transaction';
10
10
  import { SoleBusinessActivity } from '../../db/Models';
11
11
  import { IncomeSource } from '../income-source';
12
- import { Fileable } from '../../interfaces';
13
12
  import { AppFile } from '../file';
14
- export declare class SoleBusiness extends SoleBusinessBase implements Fileable {
13
+ export declare class SoleBusiness extends SoleBusinessBase {
15
14
  /**
16
15
  * Maximum number of businesses that a person can have, according to the ATO
17
16
  */
@@ -1,11 +1,10 @@
1
1
  import { SoleContact as SoleContactBase } from '../../db/Models/sole/sole-contact';
2
- import { User } from '../user/user';
3
- import { Address } from '../address/address';
2
+ import { User } from '../user';
3
+ import { Address } from '../address';
4
4
  import { Phone } from '../phone/phone';
5
5
  import { SoleInvoice } from './sole-invoice';
6
- import { Fileable } from '../../interfaces';
7
6
  import { AppFile } from '../file';
8
- export declare class SoleContact extends SoleContactBase implements Fileable {
7
+ export declare class SoleContact extends SoleContactBase {
9
8
  user: User;
10
9
  phone: Phone;
11
10
  address: Address;
@@ -9,9 +9,9 @@ import { Loan } from '../loan';
9
9
  import { TransactionAllocation } from './transaction-allocation';
10
10
  import { TransactionAllocationCollection } from '../../collections';
11
11
  import { Depreciation } from '../depreciation';
12
- import { Expense, Fileable } from '../../interfaces';
12
+ import { Expense } from '../../interfaces';
13
13
  import { SoleInvoiceItem } from '../sole';
14
- export declare class Transaction extends TransactionBase implements Expense, Fileable {
14
+ export declare class Transaction extends TransactionBase implements Expense {
15
15
  transactions: Transaction[];
16
16
  property: Property;
17
17
  chartAccounts: ChartAccounts;
@@ -8,8 +8,7 @@ import { ServiceSubscription } from '../service-subscription/service-subscriptio
8
8
  import { ServiceSubscriptionItem } from '../service-subscription/service-subscription-item';
9
9
  import { SoleDetails } from '../sole';
10
10
  import { AppFile } from '../file';
11
- import { Fileable } from '../../interfaces/fileable.interface';
12
- export declare class User extends BaseUser implements Fileable {
11
+ export declare class User extends BaseUser {
13
12
  subscriptions: ServiceSubscription[];
14
13
  clientDetails: ClientDetails;
15
14
  employeeDetails: EmployeeDetails;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.31.7",
3
+ "version": "0.31.8",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/compiler": "^15.1.5",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZWFibGUuaW50ZXJmYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL2ludGVyZmFjZXMvZmlsZWFibGUuaW50ZXJmYWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBYnN0cmFjdE1vZGVsIH0gZnJvbSAnLi4vZGIvTW9kZWxzJztcbmltcG9ydCB7IEFwcEZpbGUgfSBmcm9tICcuLi9tb2RlbHMnO1xuXG4vKipcbiAqIFRoZSBpbnRlcmZhY2Ugc2hvd3MgdGhhdCB0aGUgZW50aXR5IG1heSBoYXMgYSBmaWxlXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgRmlsZWFibGUgZXh0ZW5kcyBBYnN0cmFjdE1vZGVsIHtcbiAgZmlsZT86IEFwcEZpbGU7XG59XG4iXX0=
@@ -1,8 +0,0 @@
1
- import { AbstractModel } from '../db/Models';
2
- import { AppFile } from '../models';
3
- /**
4
- * The interface shows that the entity may has a file
5
- */
6
- export interface Fileable extends AbstractModel {
7
- file?: AppFile;
8
- }