Skip to content

Commit 5603116

Browse files
committed
refactor: remove LivechatUsersManagerPOST schema and update endpoint type
1 parent 735c59b commit 5603116

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/rest-typings/src/v1/omnichannel.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,7 @@ const LivechatDepartmentsByUnitIdSchema = {
951951

952952
export const isLivechatDepartmentsByUnitIdProps = ajv.compile<LivechatDepartmentsByUnitIdProps>(LivechatDepartmentsByUnitIdSchema);
953953

954+
954955
type LivechatQueueProps = {
955956
agentId?: string;
956957
includeOfflineAgents?: booleanString;
@@ -4661,7 +4662,7 @@ export type OmnichannelEndpoints = {
46614662
) => PaginatedResult<{
46624663
users: (ILivechatAgent & { departments: string[] })[];
46634664
}>;
4664-
POST: (params: PaginatedRequest<{ username: string }>) => { success: boolean };
4665+
POST: (params: POSTLivechatUsersTypeProps) => { success: boolean };
46654666
};
46664667

46674668
'/v1/livechat/users/agent/:_id': {

0 commit comments

Comments
 (0)