feat(clients): align client form with first and last name API fields

This commit is contained in:
2026-06-23 12:56:23 +05:30
parent a731fca5e0
commit 27cf5c9d3f
16 changed files with 162 additions and 85 deletions

View File

@@ -9,7 +9,8 @@ import type {
function toClientPayload(payload: ClientRequest) {
return {
name: payload.name,
first_name: payload.first_name,
last_name: payload.last_name,
email: payload.email,
landline_number: payload.landline_number,
address: payload.address,
@@ -34,7 +35,8 @@ export const clientService = {
skip: params?.skip ?? 0,
limit: params?.limit ?? 10,
search_term: params?.search_term,
name: params?.name,
first_name: params?.first_name,
last_name: params?.last_name,
email: params?.email,
contact_name: params?.contact_name,
is_active: params?.is_active,