Chore: Migrate REST API - getDepartmentInfo to Typescript (#3795)
This commit is contained in:
parent
c5023eaeea
commit
cb8d4be7eb
|
@ -76,6 +76,9 @@ export type OmnichannelEndpoints = {
|
|||
GET: (params: { sort: string }) => PaginatedResult<{ agents: ILivechatDepartmentAgents[] }>;
|
||||
POST: (params: { upsert: string[]; remove: string[] }) => void;
|
||||
};
|
||||
'livechat/department/:departmentId/?includeAgents=false': {
|
||||
GET: () => PaginatedResult<{ department: ILivechatDepartment[] }>;
|
||||
};
|
||||
'livechat/departments.available-by-unit/:id': {
|
||||
GET: (params: PaginatedRequest<{ text: string }>) => PaginatedResult<{
|
||||
departments: ILivechatDepartment[];
|
||||
|
|
|
@ -406,7 +406,7 @@ export const forwardLivechat = (transferData: any) =>
|
|||
// RC 0.36.0
|
||||
sdk.methodCallWrapper('livechat:transfer', transferData);
|
||||
|
||||
export const getDepartmentInfo = (departmentId: string): any =>
|
||||
export const getDepartmentInfo = (departmentId: string) =>
|
||||
// RC 2.2.0
|
||||
sdk.get(`livechat/department/${departmentId}?includeAgents=false`);
|
||||
|
||||
|
|
Loading…
Reference in New Issue