taxtank-core 0.10.6 → 0.10.7

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,3 +1,4 @@
1
1
  export declare enum PropertyCategoryListEnum {
2
- OWNER_OCCUPIED = 3
2
+ OWNER_OCCUPIED = 3,
3
+ VACANT_LAND = 5
3
4
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Data table structure suitable for export
3
+ */
4
+ export declare class ExportDataTable {
5
+ caption?: string;
6
+ header: string[];
7
+ rows: string[][];
8
+ footer: string[];
9
+ }
@@ -42,6 +42,10 @@ export declare class TransactionService extends RestService<TransactionBase, Tra
42
42
  * get list of transactions with tank type 'Work'
43
43
  */
44
44
  getWorkTransactions(): Observable<Transaction[]>;
45
+ /**
46
+ * Get list of property holding costs (transactions related to vacant land property)
47
+ */
48
+ getPropertyHoldingCosts(propertyId: number): Observable<Transaction[]>;
45
49
  /**
46
50
  * get list of taxable transactions with tank type 'Work'
47
51
  */
@@ -1,10 +1,23 @@
1
+ import { ExportDataTable } from '../../models/export/export-data-table';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class PdfService {
3
4
  /**
4
- * Export file form provided HTML tables
5
+ * Export file from provided HTML tables
5
6
  */
6
7
  exportTables(tables: NodeListOf<HTMLTableElement>, title: string, fileName: string): void;
8
+ /**
9
+ * Export file from provided array-like table data
10
+ */
11
+ exportFromDataTables(dataTables: ExportDataTable[], title: string, fileName: string): void;
12
+ /**
13
+ * Generate file from array-like table data
14
+ */
15
+ private generateFromDataTables;
7
16
  private generateFromTables;
17
+ /**
18
+ * Set basic options for PDF table
19
+ */
20
+ private setTableOptions;
8
21
  private setDocumentTitle;
9
22
  private setDocumentLogo;
10
23
  static ɵfac: i0.ɵɵFactoryDeclaration<PdfService, never>;
@@ -0,0 +1,24 @@
1
+ import { Transaction } from '../../../models/transaction/transaction';
2
+ import { ExportDataTable } from '../../../models/export/export-data-table';
3
+ import { PdfService } from '../../pdf/pdf.service';
4
+ import { TransactionCollection } from '../../../collections/transaction.collection';
5
+ import { CurrencyPipe, DatePipe } from '@angular/common';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Service to work with holding costs (transactions related to vacant land property)
9
+ */
10
+ export declare class PropertyHoldingCostsService {
11
+ private pdfService;
12
+ private currencyPipe;
13
+ private datePipe;
14
+ url: string;
15
+ modelClass: typeof Transaction;
16
+ constructor(pdfService: PdfService, currencyPipe: CurrencyPipe, datePipe: DatePipe);
17
+ initDataTable(holdingCosts: TransactionCollection): ExportDataTable;
18
+ /**
19
+ * Get data for the exporting table rows
20
+ */
21
+ private getDataTableRows;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<PropertyHoldingCostsService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<PropertyHoldingCostsService>;
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taxtank-core",
3
- "version": "0.10.6",
3
+ "version": "0.10.7",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^12.2.3 || ~13.0.0",
package/public-api.d.ts CHANGED
@@ -80,6 +80,7 @@ export * from './lib/db/Enums/loan-type.enum';
80
80
  export * from './lib/db/Enums/loan-vehicle-type.enum';
81
81
  export * from './lib/db/Enums/phone-type.enum';
82
82
  export * from './lib/db/Enums/property/property-depreciation-calculation.enum';
83
+ export * from './lib/db/Enums/property/property-category-list.enum';
83
84
  export * from './lib/db/Enums/property/property-share-access.enum';
84
85
  export * from './lib/db/Enums/property/property-share-status.enum';
85
86
  export * from './lib/db/Enums/registration-invite-status.enum';
@@ -177,6 +178,7 @@ export * from './lib/models/endpoint/endpoint';
177
178
  export * from './lib/models/endpoint/endpoints.const';
178
179
  export * from './lib/models/event/app-event';
179
180
  export * from './lib/models/event/app-event-type.enum';
181
+ export * from './lib/models/export/export-data-table';
180
182
  export * from './lib/models/export/export-format.enum';
181
183
  export * from './lib/models/file/icons-file.enum';
182
184
  export * from './lib/models/financial-year/financial-year';
@@ -309,6 +311,7 @@ export * from './lib/services/report/property/property-transaction-report.servic
309
311
  export * from './lib/services/property/corelogic/corelogic.service';
310
312
  export * from './lib/services/http/property/property.service';
311
313
  export * from './lib/services/property/property-calculation/property-calculation.service';
314
+ export * from './lib/services/property/property-holding-costs/property-holding-costs.service';
312
315
  export * from './lib/services/http/property/property-category/property-category.service';
313
316
  export * from './lib/services/http/property/property-document/property-document.service';
314
317
  export * from './lib/services/http/property/property-share/property-share.service';