diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-04-09 14:40:21 -0700 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-04-09 14:40:21 -0700 |
commit | 444dc434b63c7a24d3447e23eb9b4a9b469566a7 (patch) | |
tree | 115ec5404492b3437d600b8f4047da1cadbcd6a8 | |
parent | 3d26676ea1e818b585b4b224f643524994a0e893 (diff) |
endpoint and error message
-rw-r--r-- | src/constants/api.ts | 4 | ||||
-rw-r--r-- | src/constants/strings.ts | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/constants/api.ts b/src/constants/api.ts index ffe47687..15ca6abc 100644 --- a/src/constants/api.ts +++ b/src/constants/api.ts @@ -55,6 +55,10 @@ export const UPDATE_BADGES_ENDPOINT: string = SP_USERS_ENDPOINT + 'update_badges // Register as FCM device export const FCM_ENDPOINT: string = API_URL + 'fcm/'; +// Retrieve Stream Chat token +export const CHAT_ENDPOINT: string = API_URL + 'chat/'; +export const CHAT_TOKEN_ENDPOINT: string = CHAT_ENDPOINT + 'get_token/'; + // Register Social Link (Non-integrated) export const LINK_SNAPCHAT_ENDPOINT: string = API_URL + 'link-sc/'; export const LINK_TIKTOK_ENDPOINT: string = API_URL + 'link-tt/'; diff --git a/src/constants/strings.ts b/src/constants/strings.ts index 4f792dcc..106032b0 100644 --- a/src/constants/strings.ts +++ b/src/constants/strings.ts @@ -34,6 +34,7 @@ export const ERROR_PROFILE_CREATION_SHORT = 'Profile creation failed 😓'; export const ERROR_PROFILE_UPDATE_SHORT = 'Profile update failed. 😔'; export const ERROR_PWD_ACCOUNT = (str: string) => `Please make sure that the email / username entered is registered with us. You may contact our customer support at ${str}`; export const ERROR_REGISTRATION = (str: string) => `Registration failed 😔, ${str}`; +export const ERROR_CHAT_CONNECTION = `Unable to establish chat connection`; export const ERROR_SELECT_BIRTHDAY = 'Please select your birthday'; export const ERROR_SELECT_CLASS_YEAR = 'Please select your Class Year'; export const ERROR_SELECT_GENDER = 'Please select your gender'; |