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
+34 -22
View File
@@ -14,9 +14,15 @@ export class ClientsService {
/**
* @param {HttpClient} http Http Client to send requests.
*/
constructor(private http: HttpClient) { }
constructor(private http: HttpClient) {}
getFilteredClients(orderBy: string, sortOrder: string, orphansOnly: boolean, displayName: string, officeId?: any): Observable<any> {
getFilteredClients(
orderBy: string,
sortOrder: string,
orphansOnly: boolean,
displayName: string,
officeId?: any
): Observable<any> {
let httpParams = new HttpParams()
.set('displayName', displayName)
.set('orphansOnly', orphansOnly.toString())
@@ -62,9 +68,7 @@ export class ClientsService {
}
getClientDataAndTemplate(clientId: string) {
const httpParams = new HttpParams()
.set('template', 'true')
.set('staffInSelectedOfficeOnly', 'true');
const httpParams = new HttpParams().set('template', 'true').set('staffInSelectedOfficeOnly', 'true');
return this.http.get(`/clients/${clientId}`, { params: httpParams });
}
@@ -112,7 +116,9 @@ export class ClientsService {
*/
waiveClientCharge(chargeData: any) {
const httpParams = new HttpParams().set('command', 'waive');
return this.http.post(`/clients/${chargeData.clientId}/charges/${chargeData.resourceType}`, chargeData, { params: httpParams });
return this.http.post(`/clients/${chargeData.clientId}/charges/${chargeData.resourceType}`, chargeData, {
params: httpParams
});
}
getAllClientCharges(clientId: string) {
@@ -123,7 +129,10 @@ export class ClientsService {
* @param transactionData Transaction Data to be undone.
*/
undoTransaction(transactionData: any) {
return this.http.post(`/clients/${transactionData.clientId}/transactions/${transactionData.transactionId}?command=undo`, transactionData);
return this.http.post(
`/clients/${transactionData.clientId}/transactions/${transactionData.transactionId}?command=undo`,
transactionData
);
}
/**
@@ -149,18 +158,21 @@ export class ClientsService {
*/
payClientCharge(clientId: string, chargeId: string, payment: any) {
const httpParams = new HttpParams().set('command', 'paycharge');
return this.http.post(`/clients/${clientId}/charges/${chargeId}?command=paycharge`, payment, { params: httpParams });
return this.http.post(`/clients/${clientId}/charges/${chargeId}?command=paycharge`, payment, {
params: httpParams
});
}
getClientSummary(clientId: string) {
const httpParams = new HttpParams().set('R_clientId', clientId)
.set('genericResultSet', 'false');
const httpParams = new HttpParams().set('R_clientId', clientId).set('genericResultSet', 'false');
return this.http.get(`/runreports/ClientSummary`, { params: httpParams });
}
getClientProfileImage(clientId: string) {
const httpParams = new HttpParams().set('maxHeight', '150');
return this.http.skipErrorHandler().get(`/clients/${clientId}/images`, { params: httpParams, responseType: 'text' });
return this.http
.skipErrorHandler()
.get(`/clients/${clientId}/images`, { params: httpParams, responseType: 'text' });
}
uploadClientProfileImage(clientId: string, image: File) {
@@ -231,7 +243,9 @@ export class ClientsService {
}
downloadClientIdentificationDocument(parentEntityId: string, documentId: string) {
return this.http.get(`/client_identifiers/${parentEntityId}/documents/${documentId}/attachment`, { responseType: 'blob' });
return this.http.get(`/client_identifiers/${parentEntityId}/documents/${documentId}/attachment`, {
responseType: 'blob'
});
}
uploadClientIdentifierDocument(identifierId: string, documentData: any) {
@@ -318,9 +332,7 @@ export class ClientsService {
}
getClientReportTemplates() {
const httpParams = new HttpParams()
.set('entityId', '0')
.set('typeId', '0');
const httpParams = new HttpParams().set('entityId', '0').set('typeId', '0');
return this.http.get('/templates', { params: httpParams });
}
@@ -384,19 +396,19 @@ export class ClientsService {
searchByText(text: string, page: number, pageSize: number, sortAttribute: string = '', sortDirection: string = '') {
let request: any = {
request: {
text
},
page,
size: pageSize
request: {
text
},
page,
size: pageSize
};
if (sortAttribute !== '' && sortDirection !== '') {
request = {
...request,
sorts: [
{
direction: sortDirection,
property: sortAttribute
direction: sortDirection,
property: sortAttribute
}
]
};