UNPKG

softchatjs-react-native

Version:

React native UI SDK for softchatjs-core. Create a free account at: https://www.softchatjs.com

85 lines (84 loc) 3.5 kB
var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/types.ts var types_exports = {}; __export(types_exports, { AttachmentTypes: () => AttachmentTypes, ClientActions: () => ClientActions, MediaType: () => MediaType, MessageStates: () => MessageStates, ServerActions: () => ServerActions }); module.exports = __toCommonJS(types_exports); var ClientActions = /* @__PURE__ */ ((ClientActions2) => { ClientActions2["INCOMING_MESSAGE"] = "incomingMessage"; ClientActions2["MESSAGES_READ"] = "messagesRead"; ClientActions2["USER_IS_TYPING"] = "userIsTyping"; ClientActions2["MESSAGE_ERROR"] = "sendMessageError"; ClientActions2["NEW_MESSAGE_REACTION"] = "newMessageReaction"; ClientActions2["ACK_HEALTH_CHECK"] = "acknowledgeHealthCheck"; ClientActions2["EDITED_MESSAGE"] = "editedMessage"; return ClientActions2; })(ClientActions || {}); var ServerActions = /* @__PURE__ */ ((ServerActions2) => { ServerActions2["INITIALIZE"] = "initialize"; ServerActions2["SEND_MESSAGE"] = "sendMessage"; ServerActions2["SEND_MESSAGE_REPLY"] = "sendMessageReply"; ServerActions2["USER_TYPING"] = "userTyping"; ServerActions2["HEALTH_CHECK"] = "healthCheck"; ServerActions2["SEND_LOCATION"] = "sendLocation"; ServerActions2["READ_MESSAGES"] = "readMessages"; ServerActions2["DELETE_MESSAGE"] = "deleteMessage"; ServerActions2["EDIT_MESSAGE"] = "editMessage"; ServerActions2["SEND_MESSAGE_REACTION"] = "sendMessageReaction"; ServerActions2["CONNECTION_CLOSED"] = "clearUserSession"; return ServerActions2; })(ServerActions || {}); var AttachmentTypes = /* @__PURE__ */ ((AttachmentTypes2) => { AttachmentTypes2["NONE"] = "none"; AttachmentTypes2["MAP"] = "map"; AttachmentTypes2["MEDIA"] = "media"; AttachmentTypes2["STICKER"] = "sticker"; return AttachmentTypes2; })(AttachmentTypes || {}); var MediaType = /* @__PURE__ */ ((MediaType2) => { MediaType2["VIDEO"] = "video"; MediaType2["AUDIO"] = "audio"; MediaType2["IMAGE"] = "image"; MediaType2["DOCUMENT"] = "document"; MediaType2["STICKER"] = "sticker"; return MediaType2; })(MediaType || {}); var MessageStates = /* @__PURE__ */ ((MessageStates2) => { MessageStates2[MessageStates2["NONE"] = 0] = "NONE"; MessageStates2[MessageStates2["FAILED"] = 1] = "FAILED"; MessageStates2[MessageStates2["LOADING"] = 2] = "LOADING"; MessageStates2[MessageStates2["SENT"] = 3] = "SENT"; MessageStates2[MessageStates2["DELIVERED"] = 4] = "DELIVERED"; MessageStates2[MessageStates2["READ"] = 5] = "READ"; return MessageStates2; })(MessageStates || {}); // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { AttachmentTypes, ClientActions, MediaType, MessageStates, ServerActions }); //# sourceMappingURL=types.js.map