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