api integration updates

This commit is contained in:
Cyril Joseph 2025-06-08 20:36:24 -03:00
parent a02ea1ea1f
commit e527a971ea
4 changed files with 6 additions and 5 deletions

View File

@ -15,7 +15,7 @@ export class BasicDetailService {
constructor(private http: HttpClient, private userService: UserService) { } constructor(private http: HttpClient, private userService: UserService) { }
getBasicDetailsById(id: number): BasicDetail | any { getBasicDetailsById(id: number): BasicDetail | any {
return this.http.get<any[]>(`${this.apiUrl}/${this.apiDb}/GetSelectedServiceprovider?p_spid=${id}`).pipe( return this.http.get<any[]>(`${this.apiUrl}/${this.apiDb}/GetSelectedServiceprovider/${id}`).pipe(
filter(response => response.length > 0), filter(response => response.length > 0),
map(response => this.mapToBasicDetail(response?.[0]))); map(response => this.mapToBasicDetail(response?.[0])));
} }

View File

@ -15,7 +15,7 @@ export class CarnetSequenceService {
constructor(private http: HttpClient, private userService: UserService) { } constructor(private http: HttpClient, private userService: UserService) { }
getCarnetSequenceById(id: number): Observable<CarnetSequence[]> { getCarnetSequenceById(id: number): Observable<CarnetSequence[]> {
return this.http.get<any[]>(`${this.apiUrl}/${this.apiDb}/GetCarnetSequence?p_spid=${id}`).pipe( return this.http.get<any[]>(`${this.apiUrl}/${this.apiDb}/GetCarnetSequence/${id}`).pipe(
map(response => this.mapToCarnetSequence(response))); map(response => this.mapToCarnetSequence(response)));
} }

View File

@ -15,7 +15,7 @@ export class ContactService {
constructor(private http: HttpClient, private userService: UserService) { } constructor(private http: HttpClient, private userService: UserService) { }
getContactsById(id: number): Observable<Contact[]> { getContactsById(id: number): Observable<Contact[]> {
return this.http.get<any[]>(`${this.apiUrl}/${this.apiDb}/GetSPAllContacts?p_SPid=${id}`).pipe( return this.http.get<any[]>(`${this.apiUrl}/${this.apiDb}/GetSPAllContacts/${id}`).pipe(
map(response => this.mapToContacts(response))); map(response => this.mapToContacts(response)));
} }
@ -79,7 +79,7 @@ export class ContactService {
} }
deleteContact(spContactId: string): Observable<any> { deleteContact(spContactId: string): Observable<any> {
return this.http.post(`${this.apiUrl}/${this.apiDb}/InactivateSPContact?p_spcontactid=${spContactId}`, null); return this.http.post(`${this.apiUrl}/${this.apiDb}/InactivateSPContact/${spContactId}`, null);
} }
} }

View File

@ -4,7 +4,8 @@
@use '@angular/material' as mat; @use '@angular/material' as mat;
html { html {
@include mat.theme((density: -3)); @include mat.theme((density: -3,
));
} }
html, html,