build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
@@ -15,11 +15,13 @@ import { SettingsService } from 'app/settings/settings.service';
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class OrganizationService {
|
||||
|
||||
/**
|
||||
* @param {HttpClient} http Http Client to send requests.
|
||||
*/
|
||||
constructor(private http: HttpClient, private settingsService: SettingsService) { }
|
||||
constructor(
|
||||
private http: HttpClient,
|
||||
private settingsService: SettingsService
|
||||
) {}
|
||||
|
||||
/**
|
||||
* @returns {Observable<any>} Loan Provisioning Criteria data
|
||||
@@ -490,7 +492,7 @@ export class OrganizationService {
|
||||
/**
|
||||
* @returns {Observable<any>} Payment Types data
|
||||
*/
|
||||
getPaymentTypesWithCode(): Observable<any> {
|
||||
getPaymentTypesWithCode(): Observable<any> {
|
||||
return this.http.get('/paymenttypes?onlyWithCode=true');
|
||||
}
|
||||
|
||||
@@ -547,9 +549,7 @@ export class OrganizationService {
|
||||
* @returns {Observable<any>} Entity Data Table Checks data.
|
||||
*/
|
||||
getEntityDataTableChecks(offset: number = 0, limit: number = -1): Observable<any> {
|
||||
const httpParams = new HttpParams()
|
||||
.set('offset', offset.toString())
|
||||
.set('limit', limit.toString());
|
||||
const httpParams = new HttpParams().set('offset', offset.toString()).set('limit', limit.toString());
|
||||
return this.http.get('/entityDatatableChecks', { params: httpParams });
|
||||
}
|
||||
|
||||
@@ -596,8 +596,7 @@ export class OrganizationService {
|
||||
* @returns {Observable<any>} Holidays data.
|
||||
*/
|
||||
getHolidays(officeId: string): Observable<any> {
|
||||
const httpParams = new HttpParams()
|
||||
.set('officeId', officeId.toString());
|
||||
const httpParams = new HttpParams().set('officeId', officeId.toString());
|
||||
return this.http.get('/holidays', { params: httpParams });
|
||||
}
|
||||
|
||||
@@ -652,8 +651,7 @@ export class OrganizationService {
|
||||
* @returns {Observable<any>} Resource Id.
|
||||
*/
|
||||
activateHoliday(holidayId: string): Observable<any> {
|
||||
const httpParams = new HttpParams()
|
||||
.set('command', 'activate');
|
||||
const httpParams = new HttpParams().set('command', 'activate');
|
||||
return this.http.post(`/holidays/${holidayId}`, null, { params: httpParams });
|
||||
}
|
||||
|
||||
@@ -709,8 +707,7 @@ export class OrganizationService {
|
||||
* @returns {Observable<any>} Staff data.
|
||||
*/
|
||||
getStaff(officeId: any): 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 });
|
||||
}
|
||||
|
||||
@@ -779,7 +776,11 @@ export class OrganizationService {
|
||||
if (legalFormType.length) {
|
||||
httpParams = httpParams.set('legalFormType', legalFormType);
|
||||
}
|
||||
return this.http.get(`${urlSuffix}/downloadtemplate`, { params: httpParams, responseType: 'arraybuffer', observe: 'response' });
|
||||
return this.http.get(`${urlSuffix}/downloadtemplate`, {
|
||||
params: httpParams,
|
||||
responseType: 'arraybuffer',
|
||||
observe: 'response'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -787,10 +788,12 @@ export class OrganizationService {
|
||||
* @returns {Observable<any>} Import Document
|
||||
*/
|
||||
getImportDocument(id: any): Observable<any> {
|
||||
const httpParams = new HttpParams()
|
||||
.set('importDocumentId', id)
|
||||
.set('tenantIdentifier', 'default');
|
||||
return this.http.get('/imports/downloadOutputTemplate', { params: httpParams, responseType: 'arraybuffer', observe: 'response' });
|
||||
const httpParams = new HttpParams().set('importDocumentId', id).set('tenantIdentifier', 'default');
|
||||
return this.http.get('/imports/downloadOutputTemplate', {
|
||||
params: httpParams,
|
||||
responseType: 'arraybuffer',
|
||||
observe: 'response'
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -810,5 +813,4 @@ export class OrganizationService {
|
||||
formData.append('dateFormat', this.settingsService.dateFormat);
|
||||
return this.http.post(`${urlSuffix}/uploadtemplate`, formData, { params: httpParams });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user