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
+6 -15
View File
@@ -12,11 +12,10 @@ import { Observable } from 'rxjs';
providedIn: 'root'
})
export class NavigationService {
/**
* @param {HttpClient} http Http Client to send requests.
*/
constructor(private http: HttpClient) { }
constructor(private http: HttpClient) {}
/**
* @returns {Observable<any>} Offices.
@@ -30,8 +29,7 @@ export class NavigationService {
* @returns {Observable<any>} Employees
*/
getEmployees(officeId: number): Observable<any> {
const httpParams = new HttpParams()
.set('officeId', officeId.toString());
const httpParams = new HttpParams().set('officeId', officeId.toString());
return this.http.get('/staff', { params: httpParams });
}
@@ -40,9 +38,7 @@ export class NavigationService {
* @returns {Observable<any>} Centers
*/
getCentersFromStaffId(staffId: number): Observable<any> {
const httpParams = new HttpParams()
.set('R_staffId', staffId.toString())
.set('genericResultSet', false.toString());
const httpParams = new HttpParams().set('R_staffId', staffId.toString()).set('genericResultSet', false.toString());
return this.http.get('/runreports/GroupNamesByStaff', { params: httpParams });
}
@@ -51,8 +47,7 @@ export class NavigationService {
* @returns {Observable<any>} Center
*/
getCenter(centerId: number): Observable<any> {
const httpParams = new HttpParams()
.set('associations', 'groupMembers');
const httpParams = new HttpParams().set('associations', 'groupMembers');
return this.http.get(`/centers/${centerId}`, { params: httpParams });
}
@@ -69,9 +64,7 @@ export class NavigationService {
* @returns {Observable<any>} Center Accounts
*/
getCenterSummary(centerId: number): Observable<any> {
const httpParams = new HttpParams()
.set('R_groupId', centerId.toString())
.set('genericResultSet', false.toString());
const httpParams = new HttpParams().set('R_groupId', centerId.toString()).set('genericResultSet', false.toString());
return this.http.get('/runreports/GroupSummaryCounts', { params: httpParams });
}
@@ -80,8 +73,7 @@ export class NavigationService {
* @returns {Observable<any>} Group
*/
getGroup(groupId: number): Observable<any> {
const httpParams = new HttpParams()
.set('associations', 'all');
const httpParams = new HttpParams().set('associations', 'all');
return this.http.get(`/groups/${groupId}`, { params: httpParams });
}
@@ -108,5 +100,4 @@ export class NavigationService {
getClientAccounts(clientId: number): Observable<any> {
return this.http.get(`/clients/${clientId}/accounts`);
}
}