orgnanization onboarding stepper form changes, code refactor for custom data-table grid
This commit is contained in:
@@ -11,6 +11,7 @@ import {
|
||||
CountryLookupDto,
|
||||
CreateCountryRequest,
|
||||
UpdateCountryRequest,
|
||||
UpdateCountryStatusRequest,
|
||||
} from '../models/country.model';
|
||||
import { COUNTRY_ENDPOINTS } from './country.endpoints';
|
||||
|
||||
@@ -32,6 +33,14 @@ export class CountryService {
|
||||
return this.http.put<CountryDto>(COUNTRY_ENDPOINTS.update(id), request);
|
||||
}
|
||||
|
||||
updateStatus(id: string, request: UpdateCountryStatusRequest): Observable<CountryDto> {
|
||||
return this.http.patch<CountryDto>(COUNTRY_ENDPOINTS.changeStatus(id), request);
|
||||
}
|
||||
|
||||
delete(id: string): Observable<void> {
|
||||
return this.http.delete<void>(COUNTRY_ENDPOINTS.delete(id));
|
||||
}
|
||||
|
||||
getCountryById(id: string): Observable<CountryDto> {
|
||||
return this.http.get<CountryDto>(COUNTRY_ENDPOINTS.getById(id));
|
||||
}
|
||||
@@ -42,3 +51,4 @@ export class CountryService {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user