crm3
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user