@figuro/chatwoot-sdk
Version:
SDK for JS/Typescript for Chatwoot.
37 lines (36 loc) • 1.14 kB
TypeScript
import type { user } from "../models/user";
import type { CancelablePromise } from "../core/CancelablePromise";
import { ChatwootAPIConfig } from "../core/ChatwootAPI";
export declare class ConversationAssignment {
private chatwootAPI;
constructor({ config }: {
config: ChatwootAPIConfig;
});
/**
* Assign Conversation
* Assign a conversation to an agent or a team
* @returns user Success
* @throws ApiError
* {@link https://www.chatwoot.com/developers/api/#tag/Conversation-Assignment/operation/assign-a-conversation}
*/
assign({ accountId, conversationId, data, }: {
/**
* The numeric ID of the account
*/
accountId: number;
/**
* The numeric ID of the conversation
*/
conversationId: number;
data: {
/**
* Id of the assignee user
*/
assignee_id?: number;
/**
* Id of the team. If the assignee_id is present, this param would be ignored
*/
team_id?: number;
};
}): CancelablePromise<user>;
}