build: Use prettier for typescript

Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
Ralph Hopman
2025-01-15 11:59:30 +00:00
committed by Adam Saghy
parent 9d6cf1514a
commit cac1d11ad7
1812 changed files with 22516 additions and 16862 deletions
@@ -1,8 +1,5 @@
import { Injectable } from '@angular/core';
import {
Resolve,
ActivatedRouteSnapshot
} from '@angular/router';
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
import { Observable } from 'rxjs';
import { SavingsService } from '../savings.service';
@@ -10,18 +7,17 @@ import { SavingsService } from '../savings.service';
providedIn: 'root'
})
export class SavingDocumentsResolver implements Resolve<boolean> {
/**
* @param {SavingsService} savingsService Savings service.
*/
constructor(private savingsService: SavingsService) {}
/**
* @param {SavingsService} savingsService Savings service.
*/
constructor(private savingsService: SavingsService) { }
/**
* Returns the Savings data.
* @returns {Observable<any>}
*/
resolve(route: ActivatedRouteSnapshot): Observable<any> {
const savingAccountId = route.parent.paramMap.get('savingAccountId');
return this.savingsService.getSavingsDocuments(savingAccountId);
}
/**
* Returns the Savings data.
* @returns {Observable<any>}
*/
resolve(route: ActivatedRouteSnapshot): Observable<any> {
const savingAccountId = route.parent.paramMap.get('savingAccountId');
return this.savingsService.getSavingsDocuments(savingAccountId);
}
}
@@ -1,8 +1,5 @@
import { Injectable } from '@angular/core';
import {
Resolve,
ActivatedRouteSnapshot
} from '@angular/router';
import { Resolve, ActivatedRouteSnapshot } from '@angular/router';
import { Observable } from 'rxjs';
import { SavingsService } from '../savings.service';
@@ -10,18 +7,17 @@ import { SavingsService } from '../savings.service';
providedIn: 'root'
})
export class SavingNotesResolver implements Resolve<boolean> {
/**
* @param {SavingsService} savingsService Savings service.
*/
constructor(private savingsService: SavingsService) {}
/**
* @param {SavingsService} savingsService Savings service.
*/
constructor(private savingsService: SavingsService) { }
/**
* Returns the Savings data.
* @returns {Observable<any>}
*/
resolve(route: ActivatedRouteSnapshot): Observable<any> {
const savingAccountId = route.parent.paramMap.get('savingAccountId');
return this.savingsService.getSavingsNotes(savingAccountId);
}
/**
* Returns the Savings data.
* @returns {Observable<any>}
*/
resolve(route: ActivatedRouteSnapshot): Observable<any> {
const savingAccountId = route.parent.paramMap.get('savingAccountId');
return this.savingsService.getSavingsNotes(savingAccountId);
}
}
@@ -13,11 +13,10 @@ import { SavingsService } from '../savings.service';
*/
@Injectable()
export class SavingsAccountActionsResolver implements Resolve<Object> {
/**
* @param {SavingsService} SavingsService Savings service.
*/
constructor(private savingsService: SavingsService) { }
constructor(private savingsService: SavingsService) {}
/**
* Returns the Savings account actions data.
@@ -26,7 +25,8 @@ export class SavingsAccountActionsResolver implements Resolve<Object> {
*/
resolve(route: ActivatedRouteSnapshot): Observable<any> {
const actionName = route.paramMap.get('name');
const savingAccountId = route.paramMap.get('savingAccountId') || route.parent.parent.paramMap.get('savingAccountId');
const savingAccountId =
route.paramMap.get('savingAccountId') || route.parent.parent.paramMap.get('savingAccountId');
switch (actionName) {
case 'Assign Staff':
return this.savingsService.getSavingsAccountAndTemplate(savingAccountId, true);
@@ -39,13 +39,11 @@ export class SavingsAccountActionsResolver implements Resolve<Object> {
case 'Close':
return forkJoin([
this.savingsService.getSavingsTransactionTemplateResource(savingAccountId),
this.savingsService.getSavingsAccountData(savingAccountId)
]);
this.savingsService.getSavingsAccountData(savingAccountId)]);
case 'Apply Annual Fees':
return this.savingsService.getSavingsAccountData(savingAccountId);
default:
return undefined;
}
}
}
@@ -13,11 +13,10 @@ import { SavingsService } from '../savings.service';
*/
@Injectable()
export class SavingsAccountAndTemplateResolver implements Resolve<Object> {
/**
* @param {SavingsService} SavingsService Savings service.
*/
constructor(private savingsService: SavingsService) { }
constructor(private savingsService: SavingsService) {}
/**
* Returns the Savings Account data and template.
@@ -28,5 +27,4 @@ export class SavingsAccountAndTemplateResolver implements Resolve<Object> {
const savingAccountId = route.paramMap.get('savingAccountId');
return this.savingsService.getSavingsAccountAndTemplate(savingAccountId, true);
}
}
@@ -13,11 +13,10 @@ import { SavingsService } from '../savings.service';
*/
@Injectable()
export class SavingsAccountChargeResolver implements Resolve<Object> {
/**
* @param {SavingsService} SavingsService Savings service.
*/
constructor(private savingsService: SavingsService) { }
constructor(private savingsService: SavingsService) {}
/**
* Returns the Savings Account Charge data.
@@ -29,5 +28,4 @@ export class SavingsAccountChargeResolver implements Resolve<Object> {
const chargeId = route.paramMap.get('id');
return this.savingsService.getSavingsAccountCharge(savingAccountId, chargeId);
}
}
@@ -13,11 +13,10 @@ import { SavingsService } from '../savings.service';
*/
@Injectable()
export class SavingsAccountTemplateResolver implements Resolve<Object> {
/**
* @param {savingsService} SavingsService Savings service.
*/
constructor(private savingsService: SavingsService) { }
constructor(private savingsService: SavingsService) {}
/**
* Returns the Shares Account Template.
@@ -26,8 +25,7 @@ export class SavingsAccountTemplateResolver implements Resolve<Object> {
*/
resolve(route: ActivatedRouteSnapshot): Observable<any> {
const entityId = route.paramMap.get('clientId') || route.paramMap.get('groupId') || route.paramMap.get('centerId');
const isGroup = (route.paramMap.get('groupId') || route.paramMap.get('centerId')) ? true : false;
const isGroup = route.paramMap.get('groupId') || route.paramMap.get('centerId') ? true : false;
return this.savingsService.getSavingsAccountTemplate(entityId, undefined, isGroup);
}
}
@@ -13,11 +13,10 @@ import { SavingsService } from '../savings.service';
*/
@Injectable()
export class SavingsAccountTransactionTemplateResolver implements Resolve<Object> {
/**
* @param {SavingsService} SavingsService Savings service.
*/
constructor(private savingsService: SavingsService) { }
constructor(private savingsService: SavingsService) {}
/**
* Returns the Savings Account Transaction Template data.
@@ -29,5 +28,4 @@ export class SavingsAccountTransactionTemplateResolver implements Resolve<Object
const transactionId = route.paramMap.get('id');
return this.savingsService.getSavingsAccountTransactionTemplate(savingAccountId, transactionId);
}
}
@@ -13,11 +13,10 @@ import { SavingsService } from '../savings.service';
*/
@Injectable()
export class SavingsAccountTransactionResolver implements Resolve<Object> {
/**
* @param {SavingsService} SavingsService Savings service.
*/
constructor(private savingsService: SavingsService) { }
constructor(private savingsService: SavingsService) {}
/**
* Returns the Savings Account Transaction data.
@@ -29,5 +28,4 @@ export class SavingsAccountTransactionResolver implements Resolve<Object> {
const transactionId = route.parent.paramMap.get('id');
return this.savingsService.getSavingsAccountTransaction(savingAccountId, transactionId);
}
}
@@ -13,11 +13,10 @@ import { SavingsService } from '../savings.service';
*/
@Injectable()
export class SavingsAccountViewResolver implements Resolve<Object> {
/**
* @param {SavingsService} SavingsService Savings service.
*/
constructor(private savingsService: SavingsService) { }
constructor(private savingsService: SavingsService) {}
/**
* Returns the Savings Account data.
@@ -28,5 +27,4 @@ export class SavingsAccountViewResolver implements Resolve<Object> {
const savingAccountId = route.paramMap.get('savingAccountId');
return this.savingsService.getSavingsAccountData(savingAccountId);
}
}
@@ -13,20 +13,21 @@ import { SavingsService } from '../savings.service';
*/
@Injectable()
export class SavingsDatatableResolver implements Resolve<Object> {
/**
* @param {SavingsService} SavingsService Savings service.
*/
constructor(private savingsService: SavingsService) { }
constructor(private savingsService: SavingsService) {}
/**
* Returns the Savings Account's Datatable data.
* @returns {Observable<any>}
*/
resolve(route: ActivatedRouteSnapshot): Observable<any> {
const accountId = route.parent.parent.paramMap.get('savingAccountId') || route.parent.parent.paramMap.get('fixedDepositAccountId') || route.parent.parent.paramMap.get('recurringDepositAccountId');
const accountId =
route.parent.parent.paramMap.get('savingAccountId') ||
route.parent.parent.paramMap.get('fixedDepositAccountId') ||
route.parent.parent.paramMap.get('recurringDepositAccountId');
const datatableName = route.paramMap.get('datatableName');
return this.savingsService.getSavingsDatatable(accountId, datatableName);
}
}
@@ -13,11 +13,10 @@ import { SavingsService } from '../savings.service';
*/
@Injectable()
export class SavingsDatatablesResolver implements Resolve<Object> {
/**
* @param {SavingsService} SavingsService Savings service.
*/
constructor(private savingsService: SavingsService) { }
constructor(private savingsService: SavingsService) {}
/**
* Returns the Saving Account's Datatables data.
@@ -26,5 +25,4 @@ export class SavingsDatatablesResolver implements Resolve<Object> {
resolve(): Observable<any> {
return this.savingsService.getSavingsDatatables();
}
}
@@ -14,13 +14,14 @@ import { SettingsService } from 'app/settings/settings.service';
*/
@Injectable()
export class SavingsTransactionRecieptResolver implements Resolve<Object> {
/**
* @param {ReportsService} reportsService Reports service.
* @param {SettingsService} settingsService Settings Service.
*/
constructor(private reportsService: ReportsService,
private settingsService: SettingsService) { }
constructor(
private reportsService: ReportsService,
private settingsService: SettingsService
) {}
/**
* Returns the Savings Transaction Reciept
@@ -30,10 +31,15 @@ export class SavingsTransactionRecieptResolver implements Resolve<Object> {
resolve(route: ActivatedRouteSnapshot): Observable<any> {
const transactionId = route.paramMap.get('id');
const data = {
'output-type': 'PDF',
R_transactionId: transactionId
'output-type': 'PDF',
R_transactionId: transactionId
};
return this.reportsService.getPentahoRunReportData('Savings Transaction Receipt', data, 'default', this.settingsService.language.code, this.settingsService.dateFormat);
return this.reportsService.getPentahoRunReportData(
'Savings Transaction Receipt',
data,
'default',
this.settingsService.language.code,
this.settingsService.dateFormat
);
}
}
@@ -14,7 +14,7 @@ export class TransactionDatatableResolver implements Resolve<Object> {
*
* @param {SavingsService} savingsService
*/
constructor(private savingsService: SavingsService) { }
constructor(private savingsService: SavingsService) {}
/**
* Returns the Transactions Account's Datatable data.
* @returns {Observable<any>}
@@ -10,12 +10,11 @@ import { SavingsService } from '../savings.service';
@Injectable()
export class TransactionDatatablesResolver implements Resolve<Object> {
/**
*
* @param savingsService Savings Service
*/
constructor(private savingsService: SavingsService) { }
constructor(private savingsService: SavingsService) {}
/**
*
* @param route