api integration updates
This commit is contained in:
parent
a02ea1ea1f
commit
e527a971ea
@ -15,7 +15,7 @@ export class BasicDetailService {
|
||||
constructor(private http: HttpClient, private userService: UserService) { }
|
||||
|
||||
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),
|
||||
map(response => this.mapToBasicDetail(response?.[0])));
|
||||
}
|
||||
|
||||
@ -15,7 +15,7 @@ export class CarnetSequenceService {
|
||||
constructor(private http: HttpClient, private userService: UserService) { }
|
||||
|
||||
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)));
|
||||
}
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ export class ContactService {
|
||||
constructor(private http: HttpClient, private userService: UserService) { }
|
||||
|
||||
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)));
|
||||
}
|
||||
|
||||
@ -79,7 +79,7 @@ export class ContactService {
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -4,7 +4,8 @@
|
||||
@use '@angular/material' as mat;
|
||||
|
||||
html {
|
||||
@include mat.theme((density: -3));
|
||||
@include mat.theme((density: -3,
|
||||
));
|
||||
}
|
||||
|
||||
html,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user