UNPKG

@droppii-org/chat-sdk

Version:

Droppii React Chat SDK

24 lines (23 loc) 1.23 kB
export const ENDPOINTS = { chatService: { getChatToken: "/chat-service/v1/auth/token", getSessionSummary: "chat-service/v1/crm/sessions/assigned/summary", getSessionsByTagOrStatus: "chat-service/v1/crm/sessions/assigned/query", searchMessage: "chat-service/v1/messages/search", updateSession: (sessionId) => `chat-service/v1/crm/sessions/${sessionId}`, uploadFcmToken: "chat-service/third/fcm_update_token", getUserSideInfo: (conversationId, userId) => `chat-service/v1/crm/conversations/${conversationId}/sidebar/user/${userId}`, updateNote: (noteId) => `chat-service/v1/notes/${noteId}`, createNote: "chat-service/v1/notes", listSessionByConversation: (conversationId) => `chat-service/v1/crm/conversations/${conversationId}/sessions`, updateSessionInfo: (sessionId) => `chat-service/v1/crm/sessions/${sessionId}`, closeSession: (sessionId) => `chat-service/v1/crm/sessions/${sessionId}/close`, getLabelSession: "chat-service/v1/labels", }, identityService: { getToken: "/identity-service/v1/identity/get-token", }, userService: { getCurrentUserInfo: "/user-service/v1/app/user", }, };