Chore: Migrate REST API - getDepartmentInfo to Typescript (#3795)

This commit is contained in:
Reinaldo Neto 2022-03-02 16:00:51 -03:00 committed by GitHub
parent c5023eaeea
commit cb8d4be7eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -76,6 +76,9 @@ export type OmnichannelEndpoints = {
GET: (params: { sort: string }) => PaginatedResult<{ agents: ILivechatDepartmentAgents[] }>; GET: (params: { sort: string }) => PaginatedResult<{ agents: ILivechatDepartmentAgents[] }>;
POST: (params: { upsert: string[]; remove: string[] }) => void; POST: (params: { upsert: string[]; remove: string[] }) => void;
}; };
'livechat/department/:departmentId/?includeAgents=false': {
GET: () => PaginatedResult<{ department: ILivechatDepartment[] }>;
};
'livechat/departments.available-by-unit/:id': { 'livechat/departments.available-by-unit/:id': {
GET: (params: PaginatedRequest<{ text: string }>) => PaginatedResult<{ GET: (params: PaginatedRequest<{ text: string }>) => PaginatedResult<{
departments: ILivechatDepartment[]; departments: ILivechatDepartment[];

View File

@ -406,7 +406,7 @@ export const forwardLivechat = (transferData: any) =>
// RC 0.36.0 // RC 0.36.0
sdk.methodCallWrapper('livechat:transfer', transferData); sdk.methodCallWrapper('livechat:transfer', transferData);
export const getDepartmentInfo = (departmentId: string): any => export const getDepartmentInfo = (departmentId: string) =>
// RC 2.2.0 // RC 2.2.0
sdk.get(`livechat/department/${departmentId}?includeAgents=false`); sdk.get(`livechat/department/${departmentId}?includeAgents=false`);