made some url changes due to cinvoice sales ordeer conflicts with zoho books
This commit is contained in:
parent
5836b8823f
commit
7b45abc367
@ -48,12 +48,12 @@ export const crmAPI = {
|
|||||||
|
|
||||||
// New API endpoints for sales orders, purchase orders, and invoices
|
// New API endpoints for sales orders, purchase orders, and invoices
|
||||||
getSalesOrders: (params?: CrmSearchParams) =>
|
getSalesOrders: (params?: CrmSearchParams) =>
|
||||||
http.get<CrmApiResponse<CrmPaginatedResponse<any>>>(`/api/v1/integrations/sales-orders?provider=zoho`, params),
|
http.get<CrmApiResponse<CrmPaginatedResponse<any>>>(`/api/v1/integrations/zoho/crm/sales-orders?provider=zoho`, params),
|
||||||
|
|
||||||
getPurchaseOrders: (params?: CrmSearchParams) =>
|
getPurchaseOrders: (params?: CrmSearchParams) =>
|
||||||
http.get<CrmApiResponse<CrmPaginatedResponse<any>>>(`/api/v1/integrations/purchase-orders?provider=zoho`, params),
|
http.get<CrmApiResponse<CrmPaginatedResponse<any>>>(`/api/v1/integrations/zoho/crm/purchase-orders?provider=zoho`, params),
|
||||||
|
|
||||||
getInvoices: (params?: CrmSearchParams) =>
|
getInvoices: (params?: CrmSearchParams) =>
|
||||||
http.get<CrmApiResponse<CrmPaginatedResponse<any>>>(`/api/v1/integrations/invoices?provider=zoho`, params),
|
http.get<CrmApiResponse<CrmPaginatedResponse<any>>>(`/api/v1/integrations/zoho/crm/invoices?provider=zoho`, params),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -81,6 +81,10 @@ const getScopeForService = (_serviceKey?: ServiceKey): string => {
|
|||||||
'ZohoBooks.FullAccess.READ',
|
'ZohoBooks.FullAccess.READ',
|
||||||
// Zoho People
|
// Zoho People
|
||||||
'ZohoPeople.employee.READ',
|
'ZohoPeople.employee.READ',
|
||||||
|
'ZohoPeople.attendance.READ',
|
||||||
|
'ZohoPeople.leave.READ',
|
||||||
|
'ZohoPeople.performance.READ',
|
||||||
|
'ZohoPeople.forms.READ',
|
||||||
//can read the user info
|
//can read the user info
|
||||||
'aaaserver.profile.READ'
|
'aaaserver.profile.READ'
|
||||||
].join(',');
|
].join(',');
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export const zohoProjectsAPI = {
|
|||||||
limit: 20,
|
limit: 20,
|
||||||
...params,
|
...params,
|
||||||
};
|
};
|
||||||
return http.get<ZohoProjectsApiResponse>(`${ZOHO_PROJECTS_BASE_URL}/all-projects`, queryParams);
|
return http.get<ZohoProjectsApiResponse>(`${ZOHO_PROJECTS_BASE_URL}/zoho/projects/all-projects`, queryParams);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Get all project tasks with pagination
|
// Get all project tasks with pagination
|
||||||
@ -43,7 +43,7 @@ export const zohoProjectsAPI = {
|
|||||||
limit: 50,
|
limit: 50,
|
||||||
...params,
|
...params,
|
||||||
};
|
};
|
||||||
return http.get<ZohoTasksApiResponse>(`${ZOHO_PROJECTS_BASE_URL}/all-project-tasks`, queryParams);
|
return http.get<ZohoTasksApiResponse>(`${ZOHO_PROJECTS_BASE_URL}/zoho/projects/all-project-tasks`, queryParams);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Get all project issues with pagination
|
// Get all project issues with pagination
|
||||||
@ -55,7 +55,7 @@ export const zohoProjectsAPI = {
|
|||||||
limit: 50,
|
limit: 50,
|
||||||
...params,
|
...params,
|
||||||
};
|
};
|
||||||
return http.get<ZohoIssuesApiResponse>(`${ZOHO_PROJECTS_BASE_URL}/all-project-issues`, queryParams);
|
return http.get<ZohoIssuesApiResponse>(`${ZOHO_PROJECTS_BASE_URL}/zoho/projects/all-project-issues`, queryParams);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Get all project phases with pagination
|
// Get all project phases with pagination
|
||||||
@ -67,7 +67,7 @@ export const zohoProjectsAPI = {
|
|||||||
limit: 50,
|
limit: 50,
|
||||||
...params,
|
...params,
|
||||||
};
|
};
|
||||||
return http.get<ZohoPhasesApiResponse>(`${ZOHO_PROJECTS_BASE_URL}/all-project-phases`, queryParams);
|
return http.get<ZohoPhasesApiResponse>(`${ZOHO_PROJECTS_BASE_URL}/zoho/projects/all-project-phases`, queryParams);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Get projects by filters
|
// Get projects by filters
|
||||||
@ -81,7 +81,7 @@ export const zohoProjectsAPI = {
|
|||||||
...filters,
|
...filters,
|
||||||
...params,
|
...params,
|
||||||
};
|
};
|
||||||
return http.get<ZohoProjectsApiResponse>(`${ZOHO_PROJECTS_BASE_URL}/all-projects`, queryParams);
|
return http.get<ZohoProjectsApiResponse>(`${ZOHO_PROJECTS_BASE_URL}/zoho/projects/all-projects`, queryParams);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user