213 lines
4.4 KiB
JavaScript
213 lines
4.4 KiB
JavaScript
|
/**
|
||
|
* New message websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsMessageNew
|
||
|
*/
|
||
|
export const wsMessageNew = 'message_new';
|
||
|
|
||
|
/**
|
||
|
* Updating message websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsMessageUpdated
|
||
|
*/
|
||
|
export const wsMessageUpdated = 'message_updated';
|
||
|
|
||
|
/**
|
||
|
* Websocket event delete message
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsMessageDeleted
|
||
|
*/
|
||
|
export const wsMessageDeleted = 'message_deleted';
|
||
|
|
||
|
/**
|
||
|
* Dialogue opening websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsDialogOpened
|
||
|
*
|
||
|
*/
|
||
|
export const wsDialogOpened = 'dialog_opened';
|
||
|
|
||
|
/**
|
||
|
* Dialogue closing websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsDialogClosed
|
||
|
*/
|
||
|
export const wsDialogClosed = 'dialog_closed';
|
||
|
|
||
|
/**
|
||
|
* Dialogue appointment websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsDialogAssign
|
||
|
*/
|
||
|
export const wsDialogAssign = 'dialog_assign';
|
||
|
|
||
|
/**
|
||
|
* Chat creating websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsChatCreated
|
||
|
*/
|
||
|
export const wsChatCreated = 'chat_created';
|
||
|
|
||
|
/**
|
||
|
* Chat updating websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsChatUpdated
|
||
|
*/
|
||
|
export const wsChatUpdated = 'chat_updated';
|
||
|
|
||
|
/**
|
||
|
* Unread chat updating websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsChatUnreadUpdated
|
||
|
*/
|
||
|
export const wsChatUnreadUpdated = 'chat_unread_updated';
|
||
|
|
||
|
/**
|
||
|
* User online status updating websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsUserOnlineUpdated
|
||
|
*/
|
||
|
export const wsUserOnlineUpdated = 'user_online_updated';
|
||
|
|
||
|
/**
|
||
|
* User joined chat websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsUserJoinedChat
|
||
|
*/
|
||
|
export const wsUserJoinedChat = 'user_joined_chat';
|
||
|
|
||
|
/**
|
||
|
* User left chat websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsUserLeftChat
|
||
|
*
|
||
|
*/
|
||
|
export const wsUserLeftChat = 'user_left_chat';
|
||
|
|
||
|
/**
|
||
|
* User updating websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsUserUpdated
|
||
|
*/
|
||
|
export const wsUserUpdated = 'user_updated';
|
||
|
|
||
|
/**
|
||
|
* Customer updating websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsCustomerUpdated
|
||
|
*/
|
||
|
export const wsCustomerUpdated = 'customer_updated';
|
||
|
|
||
|
/**
|
||
|
* Bot updating websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsBotUpdated
|
||
|
*
|
||
|
*/
|
||
|
export const wsBotUpdated = 'bot_updated';
|
||
|
|
||
|
/**
|
||
|
* Channel updating websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsChannelUpdated
|
||
|
*/
|
||
|
export const wsChannelUpdated = 'channel_updated';
|
||
|
|
||
|
/**
|
||
|
* Settings updating websocket event
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().wsSettingsUpdated
|
||
|
*/
|
||
|
export const wsSettingsUpdated = 'settings_updated';
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Public message scope
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().messageScopePublic
|
||
|
*/
|
||
|
export const messageScopePublic = 'public';
|
||
|
|
||
|
/**
|
||
|
* Public message scope
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().messageScopePrivate
|
||
|
*/
|
||
|
export const messageScopePrivate = 'private';
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Text message type
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().msgTypeText
|
||
|
*/
|
||
|
export const msgTypeText = 'text';
|
||
|
|
||
|
/**
|
||
|
* System message type
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().msgTypeSystem
|
||
|
*/
|
||
|
export const msgTypeSystem = 'system';
|
||
|
|
||
|
/**
|
||
|
* Command message type
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().msgTypeCommand
|
||
|
*/
|
||
|
export const msgTypeCommand = 'command';
|
||
|
|
||
|
/**
|
||
|
* Order message type
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().msgTypeOrder
|
||
|
*/
|
||
|
export const msgTypeOrder = 'order';
|
||
|
|
||
|
/**
|
||
|
* Product message type
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().msgTypeProduct
|
||
|
*/
|
||
|
export const msgTypeProduct = 'product';
|
||
|
|
||
|
/**
|
||
|
* File message type
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().msgTypeFile
|
||
|
*/
|
||
|
export const msgTypeFile = 'file';
|
||
|
|
||
|
/**
|
||
|
* Image message type
|
||
|
* @constant
|
||
|
* @type {string}
|
||
|
* @example RetailcrmBotApiClient.types().msgTypeImage
|
||
|
*/
|
||
|
export const msgTypeImage = 'image';
|