Files
new-phone-who-dis/resources/utils/events.ts
T
9abac70427 feat/messages additions (in memory of Leonard Nimoy) (#118)
* feat(resouces/messages): broadcast messagse to participants

* feat(phone/messages): notifications for messages

* remove weird empty onNet

* reformat?

* last reformat! This pr will be squashed

* tweak(phone/messages): send groupName to notification alert

* fix identifer

* fixing notification groupName

* resbasee...i think

* feat(messages): check for unread messages

* send nui event is count > 0

* remove usless test

* import.sql update

* Refactor NotificationsProvider and fix messages notifications

* Send groupId on message broadcast

* Update phone/src/apps/messages/components/modal/Conversation.tsx

* Update phone/src/apps/messages/hooks/useMessageNotifications.ts

* Update phone/src/os/notifications/providers/NotificationsProvider.tsx

* Update phone/src/common/typings/messages.ts

* Update phone/src/apps/messages/hooks/useMessageNotifications.ts

* clean sql file

* Update resources/server/sv_messages.ts

* Fetch message groups when other person created for you

* fix sql

* Select unreadCount from messageGroups

* whatever husky again

* Add members menu and add contact in messages

* Add from group bubbles

* Fix messages scroll with new msg

* Message image menu flicker + justify bottom messages

* Improve debugging

* Add container to Slider

* Improve logger

* Fix create message

* add creator identifier to group hash

* Fix dafuq i broke

* group_id bigger varchar in column

* group_id bigger varchar in column

* Phone visibility default browser

* Add debugging

Co-authored-by: J Francisco Rader <[email protected]>
Co-authored-by: J Francisco Rader <[email protected]>
2021-03-04 18:35:33 -05:00

119 lines
5.1 KiB
TypeScript

export default {
// Twitter
TWITTER_FETCH_TWEETS: 'phone:fetchTweets',
TWITTER_FETCH_TWEETS_SUCCESS: 'fetchTweets',
TWITTER_FETCH_TWEETS_FAILURE: 'fetchTweetsFailed',
TWITTER_FETCH_TWEETS_FILTERED: 'phone:fetchTweetsFiltered',
TWITTER_FETCH_TWEETS_FILTERED_SUCCESS: 'fetchTweetsFiltered',
TWITTER_FETCH_TWEETS_FILTERED_FAILURE: 'fetchTweetsFilteredFailed',
TWITTER_GET_OR_CREATE_PROFILE: 'phone:getOrCreateTwitterProfile',
TWITTER_GET_OR_CREATE_PROFILE_SUCCESS: 'getOrCreateTwitterProfile',
TWITTER_GET_OR_CREATE_PROFILE_FAILURE: 'getOrCreateTwitterProfileFailed',
TWITTER_UPDATE_PROFILE: 'phone:updateTwitterProfile',
TWITTER_UPDATE_PROFILE_LOADING: 'updateProfileLoading',
TWITTER_UPDATE_PROFILE_RESULT: 'updateProfileResult',
TWITTER_CREATE_TWEET: 'phone:createTweet',
TWITTER_CREATE_TWEET_LOADING: 'createTweetLoading',
TWITTER_CREATE_TWEET_RESULT: 'createTweetResult',
TWITTER_CREATE_TWEET_BROADCAST: 'createTweetBroadcast',
TWITTER_CREATE_TWEET_FAILURE: 'createTweetResultFailed',
TWITTER_DELETE_TWEET: 'phone:deleteTweet',
TWITTER_DELETE_TWEET_SUCCESS: 'deleteTweetSuccess',
TWITTER_DELETE_TWEET_FAILURE: 'deleteTweetFailed',
TWITTER_TOGGLE_LIKE: 'phone:toggleLike',
TWITTER_TOGGLE_LIKE_SUCCESS: 'toggleLikeSuccess',
TWITTER_TOGGLE_LIKE_FAILURE: 'toggleLikeFailed',
TWITTER_REPORT: 'phone:reportTweet',
TWITTER_REPORT_SUCCESS: 'reportTweetSuccess',
TWITTER_REPORT_FAILURE: 'reportTweetFailed',
// Contacts
CONTACTS_SEND_CONTACTS: 'phone:sendContacts',
CONTACTS_GET_CONTACTS: 'phone:getContacts',
CONTACTS_ADD_CONTACT_NUI: 'contacts:add',
CONTACTS_ADD_CONTACT: 'phone:addContacts',
CONTACTS_ADD_CONTACT_SUCCESS: 'contacts:addSuccess',
CONTACTS_UPDATE_CONTACT: 'phone:updateContact',
CONTACTS_DELETE_CONTACT: 'phone:deleteContact',
CONTACTS_DELETE_CONTACT_SUCCESS: 'contacts:deleteSuccess',
CONTACTS_UPDATE_CONTACT_SUCCESS: 'phone:updateContactSuccess',
CONTACTS_ACTION_RESULT: 'phone:contactActionResult',
// Sellout
SELLOUT_ADD_LISTING: 'phone:addListing',
SELLOUT_ADD_LISTING_SUCCESS: 'phone:addListingSuccess',
SELLOUT_FETCH_LISTING: 'phone:fetchAllListings',
SELLOUT_SEND_LISTING: 'phone:sendAllListings',
SELLOUT_ACTION_RESULT: 'phone:selloutActionResult',
//
BANK_ADD_TRANSFER: 'phone:addTransfer',
BANK_ADD_TRANSFER_SUCCESS: 'phone:addTransferSuccess',
BANK_FETCH_TRANSACTIONS: 'phone:fetchAllTransactions',
BANK_SEND_TRANSFERS: 'phone:sendTransfers',
BANK_TRANSACTION_ALERT: 'phone:bankTransactionAlert',
BANK_TRANSACTION_NOTIFICATION: 'phone:bankTransactionNotification',
BANK_SEND_CREDENTIALS: 'phone:sendBankCredentials',
BANK_GET_CREDENTIALS: 'phone:getBankCredentials',
//messages
MESSAGES_FETCH_MESSAGE_GROUPS: 'phone:fetchMessageGroups',
MESSAGES_FETCH_MESSAGE_GROUPS_SUCCESS: 'phone:fetchMessageGroupsSuccess',
MESSAGES_FETCH_MESSAGE_GROUPS_FAILED: 'phone:fetchMessageGroupsFailed',
MESSAGES_CREATE_MESSAGE_GROUP: 'phone:createMessageGroup',
MESSAGES_CREATE_MESSAGE_GROUP_SUCCESS: 'phone:createMessageGroupSuccess',
MESSAGES_CREATE_MESSAGE_GROUP_FAILED: 'phone:createMessageGroupFailed',
MESSAGES_SEND_MESSAGE: 'phone:sendMessage',
MESSAGES_SEND_MESSAGE_SUCCESS: 'phone:sendMessageSuccess',
MESSAGES_SEND_MESSAGE_FAILED: 'phone:sendMessageFailed',
MESSAGES_FETCH_MESSAGES: 'phone:fetchMessages',
MESSAGES_FETCH_MESSAGES_SUCCESS: 'phone:fetchMessagesSuccess',
MESSAGES_FETCH_MESSAGES_FAILED: 'phone:fetchMessagesFailed',
MESSAGES_ACTION_RESULT: 'phone:setMessagesAlert',
MESSAGES_CREATE_MESSAGE_BROADCAST: 'createMessagesBroadcast',
MESSAGES_SET_MESSAGE_READ: 'phone:setReadMessages',
// Notes
NOTE_ADD_NOTE: 'phone:addNote',
NOTE_FETCH_ALL_NOTES: 'phone:fetchAllNotes',
NOTE_SEND_NOTE: 'phone:sendNote',
NOTE_SEND_NOTE_SUCCESS: 'phone:sendNoteSuccess',
NOTE_DELETE_NOTE: 'phone:deleteNote',
NOTE_UPDATE_NOTE: 'phone:updateNote',
NOTE_UPDATE_NOTE_SUCCESS: 'phone:updateNoteSuccess',
NOTE_UPDATE_NOTE_FAILURE: 'phone:updateNoteFailure',
NOTE_ACTION_RESULT: 'phone:notesActionResult',
// DO NOT CHANGE WHATS BELOW, PLEASE - CHIP
OPEN_APP_CONTACTS: 'phone:app:CONTACTS',
OPEN_APP_BANK: 'phone:app:BANK',
OPEN_APP_NOTES: 'phone:app:NOTES',
OPEN_APP_LISTINGS: 'phone:app:SELLOUT',
OPEN_APP_CAMERA: 'phone:app:CAMERA',
OPEN_APP_DAILER: 'phone:app:DIALER',
// camera
CAMERA_TAKE_PHOTO: 'phone:TakePhoto',
CAMERA_UPLOAD_PHOTO: 'phone:UploadPhoto',
CAMERA_UPLOAD_PHOTO_SUCCESS: 'phone:UploadPhotoSuccess',
CAMERA_FETCH_PHOTOS: 'phone:FetchPhotos',
CAMERA_SEND_PHOTOS: 'phone:SendPhotos',
CAMERA_DELETE_PHOTO: 'photo:deletePhoto',
CAMERA_DELETE_PHOTO_SUCCESS: 'phone:deletePhotoSuccess',
// copy
PHONE_USE_CLIPBOARD: 'phone:useClipboard',
// calling
PHONE_INITIALIZE_CALL: 'phone:beginCall',
PHONE_START_CALL: 'phone:startCall',
PHONE_ACCEPT_CALL: 'phone:acceptCall',
PHONE_END_CALL: 'phone:endCall',
PHONE_CALL_WAS_ENDED: 'phone:callEnded',
PHONE_CALL_WAS_ACCEPTED: 'phone:callAccepted',
PHONE_CALL_REJECTED: 'phone:rejectCall',
PHONE_CALL_WAS_REJECTED: 'phone:callRejected',
PHONE_CALL_FETCH_CALLS: 'phone:fetchCalls',
PHONE_CALL_SEND_HISTORY: 'phone:sendCallHistory',
PHONE_CALL_SEND_HANGUP_ANIM: 'phone:sendHangupAnim',
};