taxtank-core 0.33.92 → 0.33.93

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 (38) hide show
  1. package/esm2022/src/lib/db/Models/depreciation/depreciation.mjs +7 -1
  2. package/esm2022/src/lib/forms/aussie/aussie-appointment.form.mjs +19 -0
  3. package/esm2022/src/lib/forms/aussie/aussie-confirmation.form.mjs +12 -0
  4. package/esm2022/src/lib/forms/aussie/aussie-store.form.mjs +1 -2
  5. package/esm2022/src/lib/forms/aussie/index.mjs +3 -1
  6. package/esm2022/src/lib/forms/bank/bank-account/bank-accounts-import.form.mjs +4 -4
  7. package/esm2022/src/lib/forms/depreciation/depreciation.form.mjs +16 -7
  8. package/esm2022/src/lib/forms/property/property-sale/property-sale-cost-base.form.mjs +2 -3
  9. package/esm2022/src/lib/forms/property/property-sale/property-sale-cost-sale.form.mjs +2 -2
  10. package/esm2022/src/lib/models/aussie/aussie-appointment.mjs +11 -1
  11. package/esm2022/src/lib/models/aussie/aussie-broker.mjs +6 -2
  12. package/esm2022/src/lib/models/date-range.mjs +10 -0
  13. package/esm2022/src/lib/models/depreciation/depreciation.mjs +4 -1
  14. package/esm2022/src/lib/models/holding/holding-trade-import.mjs +1 -1
  15. package/esm2022/src/lib/models/index.mjs +2 -1
  16. package/esm2022/src/lib/services/http/aussie/aussie.service.mjs +13 -6
  17. package/esm2022/src/lib/services/http/holding/holding-trade-import/holding-trade-import-messages.enum.mjs +1 -2
  18. package/esm2022/src/lib/services/http/holding/holding-trade-import/holding-trade-import.service.mjs +1 -9
  19. package/esm2022/src/lib/validators/phone-number.validator.mjs +1 -1
  20. package/fesm2022/taxtank-core.mjs +96 -34
  21. package/fesm2022/taxtank-core.mjs.map +1 -1
  22. package/package.json +1 -1
  23. package/src/lib/db/Models/depreciation/depreciation.d.ts +1 -0
  24. package/src/lib/forms/aussie/aussie-appointment.form.d.ts +9 -0
  25. package/src/lib/forms/aussie/aussie-confirmation.form.d.ts +6 -0
  26. package/src/lib/forms/aussie/aussie-store.form.d.ts +0 -1
  27. package/src/lib/forms/aussie/index.d.ts +2 -0
  28. package/src/lib/forms/depreciation/depreciation.form.d.ts +1 -0
  29. package/src/lib/forms/property/property-sale/property-sale-cost-base.form.d.ts +1 -2
  30. package/src/lib/forms/property/property-sale/property-sale-cost-sale.form.d.ts +2 -3
  31. package/src/lib/models/aussie/aussie-appointment.d.ts +2 -2
  32. package/src/lib/models/aussie/aussie-broker.d.ts +2 -2
  33. package/src/lib/models/date-range.d.ts +8 -0
  34. package/src/lib/models/depreciation/depreciation.d.ts +1 -0
  35. package/src/lib/models/holding/holding-trade-import.d.ts +0 -1
  36. package/src/lib/models/index.d.ts +1 -0
  37. package/src/lib/services/http/aussie/aussie.service.d.ts +4 -0
  38. package/src/lib/services/http/holding/holding-trade-import/holding-trade-import-messages.enum.d.ts +1 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.33.92",
3
+ "version": "0.33.93",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^17.0.0",
@@ -14,6 +14,7 @@ export declare class Depreciation extends TransactionBase {
14
14
  createdAt?: Date;
15
15
  updatedAt?: Date;
16
16
  date?: Date;
17
+ claimStartDate?: Date;
17
18
  amount?: number;
18
19
  description?: string;
19
20
  type?: DepreciationTypeEnum;
@@ -0,0 +1,9 @@
1
+ import { AbstractForm } from '../abstract.form';
2
+ import { AussieAppointment } from '../../models';
3
+ import { AussieService } from '../../services';
4
+ export declare class AussieAppointmentForm extends AbstractForm<AussieAppointment> {
5
+ private appointment;
6
+ private aussieService;
7
+ constructor(appointment: AussieAppointment, aussieService: AussieService);
8
+ submit(data?: object, includeDisabledFields?: boolean): AussieAppointment;
9
+ }
@@ -0,0 +1,6 @@
1
+ import { AbstractForm } from '../abstract.form';
2
+ import { AussieAppointment } from '../../models';
3
+ export declare class AussieConfirmationForm extends AbstractForm<AussieAppointment> {
4
+ private appointment;
5
+ constructor(appointment: AussieAppointment);
6
+ }
@@ -4,7 +4,6 @@ import { AussieService } from '../../services';
4
4
  import { IEventListener } from '../../interfaces';
5
5
  export declare class AussieStoreForm extends AbstractForm<AussieAppointment> implements IEventListener {
6
6
  private aussieService;
7
- excludeExtraneousValues: boolean;
8
7
  constructor(appointment: AussieAppointment, aussieService: AussieService);
9
8
  listenEvents(): void;
10
9
  get store(): AussieStore;
@@ -1 +1,3 @@
1
1
  export * from './aussie-store.form';
2
+ export * from './aussie-appointment.form';
3
+ export * from './aussie-confirmation.form';
@@ -2,5 +2,6 @@ import { TransactionBaseForm } from '../transaction';
2
2
  import { Depreciation } from '../../models';
3
3
  export declare class DepreciationForm extends TransactionBaseForm<Depreciation> {
4
4
  constructor(depreciation: Depreciation, registeredForGst: boolean);
5
+ watchChartAccounts(): void;
5
6
  submit(data?: object, includeDisabledFields?: boolean): Depreciation;
6
7
  }
@@ -1,6 +1,5 @@
1
1
  import { AbstractForm } from '../../abstract.form';
2
- import { PropertySale, PropertySaleCostBase } from '../../../models/property/property-sale';
3
- import { Property } from '../../../models/property/property';
2
+ import { Property, PropertySale, PropertySaleCostBase } from '../../../models';
4
3
  /**
5
4
  * @Todo TT-2143 remove Property stuff and use this form just for PropertySale
6
5
  * @Todo TT-2143 create and extend from abstract PropertySale form
@@ -1,7 +1,6 @@
1
1
  import { AbstractForm } from '../../abstract.form';
2
- import { PropertySale } from '../../../models/property/property-sale';
3
- import { Property } from '../../../models/property/property';
4
- import { IEventListener } from '../../../interfaces/event-listener.interface';
2
+ import { Property, PropertySale } from '../../../models';
3
+ import { IEventListener } from '../../../interfaces';
5
4
  /**
6
5
  * @Todo TT-2143 Create and extend from abstract PropertySale form
7
6
  */
@@ -1,9 +1,9 @@
1
- import { DateRange } from 'moment-range';
2
1
  import { AussieStore } from './aussie-store';
3
2
  import { AbstractModel } from '../../db/Models';
3
+ import { DateRange } from '../date-range';
4
4
  export declare class AussieAppointment extends AbstractModel {
5
5
  store: AussieStore;
6
- phoneNumber: string;
6
+ phone: string;
7
7
  timeslot: DateRange;
8
8
  interactionType: 'Phone' | 'Video';
9
9
  otp: number;
@@ -1,9 +1,9 @@
1
1
  import { AbstractModel } from '../../db/Models';
2
- import { DateRange } from 'moment-range';
2
+ import { DateRange } from '../date-range';
3
3
  export declare class AussieBroker extends AbstractModel {
4
4
  name: string;
5
5
  imageUrl: string;
6
6
  availability: Date[];
7
- timeslotsByDay: Record<string, DateRange>;
7
+ timeslotsByDay: Record<string, DateRange[]>;
8
8
  getTimeslotsByDay(): Record<string, DateRange[]>;
9
9
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * custom DateRange because moment has problems with class-transformer
3
+ */
4
+ export declare class DateRange {
5
+ start: Date;
6
+ end: Date;
7
+ constructor(start: Date, end: Date);
8
+ }
@@ -14,6 +14,7 @@ export declare class Depreciation extends DepreciationBase implements Expense {
14
14
  static lowValuePoolThreshold: number;
15
15
  purchaseDate: Date;
16
16
  date: Date;
17
+ claimStartDate: Date;
17
18
  lowValuePoolDate: Date;
18
19
  writeOffManualDate: Date;
19
20
  writeOffDate: Date;
@@ -5,5 +5,4 @@ export declare class HoldingTradeImport extends ObservableModel {
5
5
  createdAt: Date;
6
6
  updatedAt: Date;
7
7
  holdings?: HoldingTrade[];
8
- skippedTickers?: string[];
9
8
  }
@@ -26,3 +26,4 @@ export * from './tax-return';
26
26
  export * from './firm';
27
27
  export * from './home-office';
28
28
  export * from './aussie';
29
+ export * from './date-range';
@@ -1,15 +1,19 @@
1
1
  import { AussieStore, AussieStoreInterface } from '../../../models';
2
2
  import { RestMethod, RestService } from '../rest';
3
3
  import { Collection } from '../../../collections';
4
+ import { Observable } from 'rxjs';
4
5
  import * as i0 from "@angular/core";
5
6
  /**
6
7
  * Service that handling banks logic
7
8
  */
8
9
  export declare class AussieService extends RestService<AussieStoreInterface, AussieStore, Collection<AussieStore>> {
10
+ protected environment: any;
9
11
  modelClass: typeof AussieStore;
10
12
  collectionClass: typeof Collection;
11
13
  endpointUri: string;
12
14
  disabledMethods: RestMethod[];
15
+ constructor(environment: any);
16
+ postAppointment(): Observable<any>;
13
17
  static ɵfac: i0.ɵɵFactoryDeclaration<AussieService, never>;
14
18
  static ɵprov: i0.ɵɵInjectableDeclaration<AussieService>;
15
19
  }
@@ -3,6 +3,5 @@ export declare enum HoldingTradeImportMessagesEnum {
3
3
  UPDATED = "Import updated successfully",
4
4
  CONFIRM_DELETE = "Are you sure you want to delete this import?",
5
5
  DELETED = "Import deleted successfully",
6
- DELETE_ERROR = "Import including sold assets can not be deleted",
7
- SKIPPED = "We were unable to match these tickers: %list%. Please check and try again, or contact support for assistance."
6
+ DELETE_ERROR = "Import including sold assets can not be deleted"
8
7
  }