Skip to content

Commit

Permalink
feat(errorcode): Undeprecate ACCOUNT_IN_USE and improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
racerxdl committed Mar 20, 2020
1 parent 52ced06 commit ee561c0
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 20 deletions.
9 changes: 4 additions & 5 deletions dist/models/ErrorCodes.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/models/ErrorCodes.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/models/ErrorObject.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/models/ErrorObject.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 14 additions & 7 deletions dist/qlog/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,23 @@ declare class QLog {
slash(): void;
_enableLog(logName: string): void;
_disableLog(logName: string): void;
headPadding: any;
set headPadding(value: number | null);
get headPadding(): number | null;
enableLogs(...args: string[]): void;
disableLogs(...args: string[]): void;
scope(...name: string[]): QLog;
showDateTime: boolean;
showScope: boolean;
showBadge: boolean;
showLabel: boolean;
showErrorCodeErrorData: boolean;
showFilename: boolean;
set showDateTime(value: boolean);
get showDateTime(): boolean;
set showScope(value: boolean);
get showScope(): boolean;
set showBadge(value: boolean);
get showBadge(): boolean;
set showLabel(value: boolean);
get showLabel(): boolean;
set showErrorCodeErrorData(value: boolean);
get showErrorCodeErrorData(): boolean;
set showFilename(value: boolean);
get showFilename(): boolean;
}
declare const _default: QLog;
export default _default;
10 changes: 5 additions & 5 deletions src/models/ErrorCodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const ErrorCodes: { [id: string]: string } = {
// region Public Use
InternalServerError: 'INTERNAL_SERVER_ERROR',
NotFound: 'NOT_FOUND',
// deprecated

// deprecated in favor of ErrorCode: INVALID_LOGIN_INFORMATION -> ErrorField: email -> Message: Email Already in Use
EmailAlreadyInUse: 'EMAIL_ALREADY_IN_USE',
NoDataAvailable: 'NO_DATA_AVAILABLE',
InvalidLoginInformation: 'INVALID_LOGIN_INFORMATION',
Expand All @@ -19,18 +20,18 @@ const ErrorCodes: { [id: string]: string } = {
AlreadyPaid: 'ALREADY_PAID',
PaymentError: 'PAYMENT_ERROR',
InsufficientFunds: 'INSUFFICIENT_FUNDS',
// deprecated
// deprecated in favor of ErrorCode: SYSTEM_UNAVAILABLE -> ErrorField: bank
BankingSystemOffline: 'BANKING_SYSTEM_OFFLINE',
OutdatedAPI: 'OUTDATED_API',
// deprecated
// deprecated in favor of ErrorCode: NOT_SUPPORTED -> ErrorField: bank
BankNotSupported: 'BANK_NOT_SUPPORTED',
// deprecated
VaultSystemOffline: 'VAULT_SYSTEM_OFFLINE',
ServerIsBusy: 'SERVER_IS_BUSY',
Revoked: 'REVOKED',
AlreadySigned: 'ALREADY_SIGNED',
Rejected: 'REJECTED',
// deprecated
// deprecated in favor of ErrorCode: NOT_SUPPORTED -> ErrorField: operation
OperationNotSupported: 'OPERATION_NOT_SUPPORTED',
GraphQLError: 'GRAPHQL_ERROR',
OperationLimitExceeded: 'OPERATION_LIMIT_EXCEEDED',
Expand All @@ -40,7 +41,6 @@ const ErrorCodes: { [id: string]: string } = {
NotImplemented: 'NOT_IMPLEMENTED',
MaxOTPTriesExceeded: 'MAX_OTP_TRIES_EXCEEDED',

// deprecated
AccountInUse: 'ACCOUNT_IN_USE',
AccountLocked: 'ACCOUNT_LOCKED',
NotSupported: 'NOT_SUPPORTED',
Expand Down

0 comments on commit ee561c0

Please sign in to comment.