backend-setup-tool
Version:
A powerful CLI tool to instantly scaffold a clean and scalable Node.js/Express.js backend for SQL or NoSQL projects.
109 lines (108 loc) • 2.77 kB
JavaScript
export default {
JWT_INVALID: "Invalid JWT Token.",
USER_EXISTS: {
message: "User Already Exists",
},
USER_NOT_FOUND: {
message: "User Doesn't Exists",
},
INVALID_CREDENTIALS: {
message: "Invalid Credentials, Email or Password.",
},
JWT_NOT_FOUND: {
message: "JWT Doesn't Exists in the Header.",
},
REFRESH_TOKEN_NOT_FOUND: {
message: "Refresh token not found. Please log in again.",
},
INVALID_REFRESH_TOKEN: {
message: "Invalid Refresh token. Please log in again.",
},
PASSWORD_RESET_EMAIL_SENT: {
message: "Password Reset Email Sent.",
},
TOKEN_PASSWORD_REQUIRED: {
message: "Token and new password are required",
},
RESET_TOKEN_EXPIRED: {
message: "Reset token has expired",
},
PASSWORD_RESET_SUCCESSFULL: {
message: "Password has been successfully reset",
},
USER_ID_NOT_FOUND: {
message: "User ID is required",
},
PHONE_NUMBER_EXISTS: {
message: "Phone number is already in use",
},
OLD_PASSWORD_NOT_CORRECT: {
message: "Old password is incorrect",
},
NO_CHANGES_DETECTED: {
message: "No changes detected to update",
},
PROFILE_UPDATED: {
message: "Profile Updated Successfully",
},
SERVER_ERROR: {
message: "Internal Server Error.",
},
FAILED_TO_EXTRACT_EMAILS: {
message: "Failed to extract emails from the file",
},
INVALID_EMAILS: {
message: "Invalid email array format. Ensure it is a valid JSON array.",
},
EMAILS_DATA_NOT_FOUND: {
message: "Provide either an email array or a file",
},
NO_VERIFICATION_DATA_FOUND: {
message: "No Data Found in the Verification Table",
},
FAILED_TO_SAVE_DATA: {
message: "Failed to Save Results Data.",
},
IDTOKEN_NOT_FOUND: {
message: "No idToken provided",
},
GOOGLE_AUTH_SUCCESSFULL: {
message: "Google Authentication Successful",
},
INVALID_GOOGLE_TOKEN: {
message: "INVALID GOOGLE TOKEN",
},
INSUFFICIENT_CREDITS: {
message: "Insufficient Credits",
},
NO_VERIFICATION_RESULTS_FOUND: {
message: "No Verification Results Found",
},
welcomStatus: {
message: "Welcome! this is latest API version v-1.0.4 🚀",
},
PASSWORD_RESET_INSTRUCTIONS_SENT: {
message: "Password Reset Instruction send to you'r email! Check inbox ",
},
PAYMENT_NOT_FOUND: {
message: "Payment Not Found",
},
INVOICES_NOT_FOUND: {
message: "Invoice Not Found",
},
PAYMENT_DETAILS_NOT_FOUND: {
message: "Payment Not Found",
},
INVITATION_SENT: {
message: "Invitation Sent Successfully",
},
USER_BLOCKED: {
message: "You're Blocked! Contact our Support",
},
EMAILS_DATA_NOT_FOUND: {
message: "Provide either an email",
},
API_CALL_FAILED: {
message: "API Call Failed",
},
};