UNPKG

liveperson-functions-cli

Version:
21 lines (20 loc) 790 B
import { IConversation } from '../conversation-util/IConversation'; import { ILpClient } from '../lp-client/LpClient'; import { ISDEsResponse } from './ISDEResponse'; import { ISDEsRequest } from './ISDEsRequest'; import { ISDEUtil } from './ISDEUtil'; export declare class SDEUtil implements ISDEUtil { private lpClient; private brandId; constructor(lpClient: ILpClient); getSDEsFromConv(conversation: IConversation): { sdes: ISDEsResponse; unAuthSdes: ISDEsResponse; }; addSDEs(sdes: ISDEsRequest, visitorId: string, sessionId: string): Promise<void>; /** * Will sort the events of the SDES by the server-timestamp. The last event is the most recent one. * @param sdes the sdes which should be sorted. */ private sortSDEs; }