Repository navigation
Expand file tree
/
Copy pathmessages.py
More file actions
74 lines (73 loc) · 3.3 KB
/
Copy pathmessages.py
File metadata and controls
74 lines (73 loc) · 3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
"""Module containing response messages"""
FILE_ERROR = "File not uploaded"
BEARER_AUTH_DESC = "Enter: **'Bearer <JWT>'**, where JWT is the access token"
SAME_PASSWORD = "The new password cannot be same as old password"
PROVIDE_FILE = "Please provide a file"
UNSUPPORTED_FILE = "Please upload an image or video"
FILE_NOT_FOUND = "The provided file does not exist."
POST_DELETED = "Post deleted"
EMAIL_PHONE_NA = "Provide email or phone number."
OTP_SEND = "OTP send successfully"
OTP_VERIFIED = "OTP is successfully verified"
INVALID_OTP = "The OTP is invalid"
OTP_TIMEOUT = "The OTP has expired"
PASSWORD_RESET = "Password Reset"
PASSWORD_UPDATED = "Password has been successfully updated"
USER_CREATE_SUCESS = "User created successfully"
USER_LOGIN_SUCESS = "User logged in successfully"
USER_LOGOUT_SUCESS = "User logged out successfully"
PROFILE_RETRIEVED = "Profile retrieved successfully"
PROFILE_UPDATED = "The profile has been successfully updated"
INVALID_CREDS = "Invalid Credentials."
IMAGE_UPLOAD_FAIL = "Image not uploaded"
IMAGE_UPLOAD_SUCESS = "Uploaded Image Successfully"
SQL_ALCHEMY_ERROR = "An error with database occured"
NOT_VALID_EMAIL = "Enter a valid E-mail address"
SEARCH_TYPE_OPTIONS = " Search type should be any one of: [top, accounts, tags]"
NOT_VALID_USERNAME = "Enter a valid username"
VALID_USERNAME = "Username is valid"
NOT_VALID_PHONE = "Enter a valid phone number"
NOT_VALID_PASSWORD = "Enter a valid password"
POST_ADD_SUCCESS = "The post has be successfully added."
POST_RETRIEVE_SUCCESS = "The posts has be successfully retrieved."
POST_RETRIEVE_FAIL = "The post does not exist."
COMMENT_RETRIEVE_FAIL = "The comment does not exist."
COMMENT_CREATED = "The comment has be successfully added"
COMMENT_DELETED = "The comment has been deleted"
COMMENT_RETRIEVED = "The comment has be successfully retrieved"
REPLY_RETRIEVE_FAIL = "The reply does not exist."
REPLY_CREATED = "Reply to comment has been added"
REPLY_RETRIEVED = "Reply sucessfully retrieved"
FOLLOWED_USER = "Followed user successfully"
UNFOLLOWED_USER = "Unfollowed user successfully"
ALREADY_FOLLOWING = "Already following user"
ALREADY_UNFOLLOWING = "Already not following user"
FOLLOW_ERROR = "Cant follow/unfollow self"
REQUEST_OK = "OK"
ALREADY_LIKED = "Already liked"
ALREADY_SAVED = "The post is already saved"
LIKED_SUCCESS = "Liked successfully"
SAVE_SUCCESS = "The post has been saved"
ALREADY_UNLIKED = "Already not liked"
ALREADY_NOT_SAVED = "Already not saved"
UNLIKED_SUCCESS = "Like removed successfully"
UNSAVED_SUCCESS = "Unsaved post successfully"
USERNAME_EXISTS = "Username already exists"
USER_ERROR = "User does not exists"
EMAIL_PHONE_EXISTS = "Email or phone number already exists"
PROVIDE_PASSWORD = "Provide a valid password"
ACTIVITY_RETRIEVE_SUCCESS = "Retrieved activity successfully"
BAD_PARAMETERS = "Bad parameters"
ROOM_ERROR = "Chat-room couldnt be created"
TOKEN_REVOKED = "Token has be revoked"
MESSAGE_RETRIEVED = "Messages Retrieved"
ROOM_CREATED = "Room created sucessfully"
MESSAGE_ADDED = "Message added successfully"
TOKEN_ADDED = "Token has been added"
NO_TOKEN = "Please provide a token"
IGNORE_WARNING_MESSAGE = (
"Multiple schemas resolved to the name UserProfile. "
"The name has been modified. Either manually add each "
"of the schemas with a different name or provide a "
"custom schema_name_resolver."
)