easy-express-cwa
Version:
CLI tool to setup a common Express.js backend developed by codewithashim
30 lines (26 loc) • 1.34 kB
text/typescript
export const responseMessage = {
SIGNUP_MESSAGE: "Signup successful. Welcome!",
SIGNIN_MESSAGE: "Signin successful. Welcome back!",
INCORRECT_PASSWORD_MESSAGE: "Incorrect password. Please try again.",
INVALID_TOKEN_MESSAGE: "Invalid or expired token. Please log in again.",
REFETCH_TOKEN_MESSAGE: "Refresh Token Successful",
OLD_PASSWORD_ERROR: "Old Password is incorrect",
USER_NOT_EXIST: "User does not exist",
FORBIDDEN_MESSAGE: "Forbidden",
INVALID_REFRESH_TOKEN: "Invalid refresh token",
GET_ALL_USERS_MESSAGE: "All users retrieved successfully.",
GET_USER_BY_ID_MESSAGE: "User retrieved successfully.",
UPDATE_USER_MESSAGE: "Profile updated successfully.",
DELETE_USER_MESSAGE: "User deleted successfully.",
PHONE_NUMBER_REQUIRED_MESSAGE: "Phone number is required",
PASSWORD_CHANGE_MESSAGE: "Password changed successfully!",
NOT_FOUND_MESSAGE: "Resource not found.",
INTERNAL_SERVER_ERROR_MESSAGE: "Internal Server Error",
FAILED_MESSAGE: "Failed to ",
// Example entity messages
CREATE_EXAMPLE_MESSAGE: "Example created successfully.",
GET_ALL_EXAMPLES_MESSAGE: "All examples retrieved successfully.",
GET_EXAMPLE_BY_ID_MESSAGE: "Example retrieved successfully.",
UPDATE_EXAMPLE_MESSAGE: "Example updated successfully.",
DELETE_EXAMPLE_MESSAGE: "Example deleted successfully."
};