This commit is contained in:
2026-03-14 17:32:00 -05:00
parent b776ec3381
commit f1fd2ed979
7 changed files with 197 additions and 10 deletions

View File

@@ -108,6 +108,16 @@ export const api = {
return response.blob();
},
getAttachments(token: string, ownerType: string, ownerId: string) {
return request<FileAttachmentDto[]>(
`/api/v1/files${buildQueryString({
ownerType,
ownerId,
})}`,
undefined,
token
);
},
getCustomers(token: string, filters?: { q?: string; status?: CrmRecordStatus; state?: string }) {
return request<CrmRecordSummaryDto[]>(
`/api/v1/crm/customers${buildQueryString({