feat: Implement create/edit dialog for pedimentos management
- Added create-edit-dialog component for creating and editing pedimentos. - Integrated dialog with data table actions for editing existing pedimentos. - Implemented infinite scroll functionality in the data table for loading more pedimentos. - Enhanced server-side loading of pedimentos with authentication checks. - Added filtering options for pedimentos based on status, client ID, and year. - Improved error handling and user feedback for actions like creating, editing, and deleting pedimentos.
This commit is contained in:
@@ -46,21 +46,21 @@ export const countriesApi = {
|
||||
*/
|
||||
list: (page = 1, pageSize = 50) =>
|
||||
api.get<CountryListResponse>(
|
||||
`/v1/countries?page=${page}&page_size=${pageSize}`
|
||||
`/v1/public/refrence_data/countries?page=${page}&page_size=${pageSize}`
|
||||
),
|
||||
|
||||
/**
|
||||
* Obtiene un país por su clave M3
|
||||
* @param m3_key - Clave M3 del país
|
||||
*/
|
||||
get: (m3_key: string) => api.get<Country>(`/v1/countries/${m3_key}`),
|
||||
get: (m3_key: string) => api.get<Country>(`/v1/public/refrence_data/countries/${m3_key}`),
|
||||
|
||||
/**
|
||||
* Crea un nuevo país
|
||||
* @param data - Datos del país a crear
|
||||
*/
|
||||
create: (data: CreateCountryData) =>
|
||||
api.post<Country>('/v1/countries', data),
|
||||
api.post<Country>('/v1/public/refrence_data/countries', data),
|
||||
|
||||
/**
|
||||
* Actualiza un país existente
|
||||
@@ -68,11 +68,11 @@ export const countriesApi = {
|
||||
* @param data - Datos a actualizar
|
||||
*/
|
||||
update: (m3_key: string, data: UpdateCountryData) =>
|
||||
api.put<Country>(`/v1/countries/${m3_key}`, data),
|
||||
api.put<Country>(`/v1/public/refrence_data/countries/${m3_key}`, data),
|
||||
|
||||
/**
|
||||
* Elimina un país
|
||||
* @param m3_key - Clave M3 del país a eliminar
|
||||
*/
|
||||
delete: (m3_key: string) => api.delete(`/v1/countries/${m3_key}`)
|
||||
delete: (m3_key: string) => api.delete(`/v1/public/refrence_data/countries/${m3_key}`)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user