This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
727b611
commit d0e5846
Showing
6 changed files
with
61 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,51 @@ | ||
export const USER_NOT_FOUND = '404001: User not found'; | ||
export const GROUP_NOT_FOUND = '404001: User not found'; | ||
export const SESSION_NOT_FOUND = '404001: User not found'; | ||
export const EMAIL_NOT_FOUND = '404001: User not found'; | ||
export const API_KEY_NOT_FOUND = '404001: User not found'; | ||
export const APPROVED_SUBNET_NOT_FOUND = 'Approved subnet not found'; | ||
export const AUDIT_LOG_NOT_FOUND = 'Approved subnet not found'; | ||
export const DOMAIN_NOT_FOUND = 'Approved subnet not found'; | ||
export const MEMBERSHIP_NOT_FOUND = 'Approved subnet not found'; | ||
export const BILLING_NOT_FOUND = 'Approved subnet not found'; | ||
export const CUSTOMER_NOT_FOUND = 'Approved subnet not found'; | ||
export const INVOICE_NOT_FOUND = 'Approved subnet not found'; | ||
export const SUBSCRIPTION_NOT_FOUND = 'Approved subnet not found'; | ||
export const SOURCE_NOT_FOUND = 'Approved subnet not found'; | ||
export const WEBHOOK_NOT_FOUND = 'Approved subnet not found'; | ||
|
||
export const UNAUTHORIZED_RESOURCE = 'Unauthorized'; | ||
|
||
export const INVALID_CREDENTIALS = 'INVALID_CREDENTIALS'; | ||
export const INVALID_MFA_CODE = 'INVALID_MFA_CODE'; | ||
export const NO_TOKEN_PROVIDED = 'No token'; | ||
export const INVALID_TOKEN = 'No token'; | ||
|
||
export const DOMAIN_TXT_NOT_FOUND = ''; | ||
export const DOMAIN_HTML_NOT_FOUND = ''; | ||
|
||
export const UNVERIFIED_EMAIL = 'UNVERIFIED_EMAIL'; | ||
export const NO_EMAILS = 'User has no email attached to it'; | ||
export const EMAIL_USER_CONFLICT = 'A user with this email already exists'; | ||
export const EMAIL_VERIFIED_CONFLICT = 'This email is already verified'; | ||
|
||
export const GROUP_NOT_FOUND = '404002: Group not found'; | ||
export const SESSION_NOT_FOUND = '404003: Session not found'; | ||
export const EMAIL_NOT_FOUND = '404004: Email not found'; | ||
export const API_KEY_NOT_FOUND = '404005: API key not found'; | ||
export const APPROVED_SUBNET_NOT_FOUND = '404006: Approved subnet not found'; | ||
export const AUDIT_LOG_NOT_FOUND = '404007: Audit log not found'; | ||
export const DOMAIN_NOT_FOUND = '404008: Domain not found'; | ||
export const MEMBERSHIP_NOT_FOUND = '404009: Membership not found'; | ||
export const BILLING_NOT_FOUND = '404010: Billing not found'; | ||
export const CUSTOMER_NOT_FOUND = '404011: Customer not found'; | ||
export const INVOICE_NOT_FOUND = '404012: Invoice not found'; | ||
export const SUBSCRIPTION_NOT_FOUND = '404013: Subscription not found'; | ||
export const SOURCE_NOT_FOUND = '404014: Source not found'; | ||
export const WEBHOOK_NOT_FOUND = '404015: Webhook not found'; | ||
|
||
export const UNAUTHORIZED_RESOURCE = '401000: Insufficient permission'; | ||
export const INVALID_CREDENTIALS = '401001: Invalid credentials'; | ||
export const INVALID_MFA_CODE = '401002: Invalid one-time code'; | ||
export const INVALID_TOKEN = '401003: Invalid token'; | ||
export const UNVERIFIED_EMAIL = '401004: Email is not verified'; | ||
export const UNVERIFIED_LOCATION = '401005: Location is not verified'; | ||
export const MFA_BACKUP_CODE_USED = '401007: Backup code is already used'; | ||
|
||
export const NO_TOKEN_PROVIDED = '400001: No token provided'; | ||
export const DOMAIN_NOT_VERIFIED = '400002: Domain not verified'; | ||
export const MFA_PHONE_NOT_FOUND = '400003: Phone number not found'; | ||
export const MFA_PHONE_OR_TOKEN_REQUIRED = | ||
'400004: Phone number or token is required'; | ||
export const MFA_NOT_ENABLED = | ||
'400005: Multi-factor authentication is not enabled'; | ||
export const NO_EMAILS = '400006: User has no email attached to it'; | ||
|
||
export const EMAIL_USER_CONFLICT = | ||
'409001: User with this email already exists'; | ||
export const EMAIL_VERIFIED_CONFLICT = '409002: This email is already verified'; | ||
export const BILLING_ACCOUNT_CREATED_CONFLICT = | ||
'409003: Billing account is already created'; | ||
export const MFA_ENABLED_CONFLICT = | ||
'Two-factor authentication is already enabled'; | ||
export const MFA_NOT_ENABLED = 'MFA_NOT_ENABLED'; | ||
export const MFA_BACKUP_CODE_USED = 'MFA_BACKUP_CODE_USED'; | ||
export const MFA_PHONE_OR_TOKEN_REQUIRED = 'MFA_BACKUP_CODE_USED'; | ||
export const MFA_PHONE_NOT_FOUND = 'MFA_BACKUP_CODE_USED'; | ||
export const UNVERIFIED_LOCATION = 'UNVERIFIED_LOCATION'; | ||
|
||
export const CURRENT_PASSWORD_REQUIRED = 'Current password is required'; | ||
'409004: Multi-factor authentication is already enabled'; | ||
export const CURRENT_PASSWORD_REQUIRED = '409005: Current password is required'; | ||
export const COMPROMISED_PASSWORD = | ||
'This password has been compromised in a data breach.'; | ||
|
||
export const CANNOT_DELETE_SOLE_MEMBER = ''; | ||
export const CANNOT_DELETE_SOLE_OWNER = ''; | ||
|
||
export const BILLING_ACCOUNT_CREATED_CONFLICT = ''; | ||
|
||
export const ORDER_BY_ASC_DESC = 'Order should be "ASC" or "DESC"'; | ||
export const ORDER_BY_FORMAT = 'Order should be "ASC" or "DESC"'; | ||
export const WHERE_PIPE_FORMAT = 'Order should be "ASC" or "DESC"'; | ||
export const OPTIONAL_INT_PIPE_NUMBER = '$key should be a number'; | ||
export const CURSOR_PIPE_FORMAT = `$key should be like "id 12, name Anand"`; | ||
'409006: This password has been compromised in a data breach.'; | ||
export const CANNOT_DELETE_SOLE_MEMBER = | ||
'409007: Cannot remove the only member'; | ||
export const CANNOT_DELETE_SOLE_OWNER = '409008: Cannot remove the only owner'; | ||
export const ORDER_BY_ASC_DESC = '409009: Invalid sorting order'; | ||
export const ORDER_BY_FORMAT = '409010: Invalid ordering format'; | ||
export const WHERE_PIPE_FORMAT = '409011: Invalid query format'; | ||
export const OPTIONAL_INT_PIPE_NUMBER = '409012: $key should be a number'; | ||
export const CURSOR_PIPE_FORMAT = '409013: Invalid cursor format'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters