diff --git a/dist/models/ErrorCodes.js b/dist/models/ErrorCodes.js index a0aabf3..6e6aed4 100644 --- a/dist/models/ErrorCodes.js +++ b/dist/models/ErrorCodes.js @@ -7,7 +7,7 @@ const ErrorCodes = { // 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', @@ -20,10 +20,10 @@ const ErrorCodes = { 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', @@ -31,7 +31,7 @@ const ErrorCodes = { 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', @@ -40,7 +40,6 @@ const ErrorCodes = { BoletoOurNumberExausted: 'BOLETO_OUR_NUMBER_EXAUSTED', NotImplemented: 'NOT_IMPLEMENTED', MaxOTPTriesExceeded: 'MAX_OTP_TRIES_EXCEEDED', - // deprecated AccountInUse: 'ACCOUNT_IN_USE', AccountLocked: 'ACCOUNT_LOCKED', NotSupported: 'NOT_SUPPORTED', diff --git a/dist/models/ErrorCodes.js.map b/dist/models/ErrorCodes.js.map index 925c4a8..3e00239 100644 --- a/dist/models/ErrorCodes.js.map +++ b/dist/models/ErrorCodes.js.map @@ -1 +1 @@ -{"version":3,"file":"ErrorCodes.js","sourceRoot":"","sources":["../../src/models/ErrorCodes.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,MAAM,UAAU,GAA6B;IAC3C,oBAAoB;IACpB,mBAAmB,EAAE,uBAAuB;IAC5C,QAAQ,EAAE,WAAW;IACrB,aAAa;IACb,iBAAiB,EAAE,sBAAsB;IACzC,eAAe,EAAE,mBAAmB;IACpC,uBAAuB,EAAE,2BAA2B;IACpD,SAAS,EAAE,YAAY;IACvB,aAAa,EAAE,gBAAgB;IAC/B,gBAAgB,EAAE,mBAAmB;IACrC,gBAAgB,EAAE,oBAAoB;IACtC,gBAAgB,EAAE,oBAAoB;IACtC,aAAa,EAAE,gBAAgB;IAC/B,WAAW,EAAE,cAAc;IAC3B,YAAY,EAAE,eAAe;IAC7B,iBAAiB,EAAE,oBAAoB;IACvC,aAAa;IACb,oBAAoB,EAAE,wBAAwB;IAC9C,WAAW,EAAE,cAAc;IAC3B,aAAa;IACb,gBAAgB,EAAE,oBAAoB;IACtC,aAAa;IACb,kBAAkB,EAAE,sBAAsB;IAC1C,YAAY,EAAE,gBAAgB;IAC9B,OAAO,EAAE,SAAS;IAClB,aAAa,EAAE,gBAAgB;IAC/B,QAAQ,EAAE,UAAU;IACpB,aAAa;IACb,qBAAqB,EAAE,yBAAyB;IAChD,YAAY,EAAE,eAAe;IAC7B,sBAAsB,EAAE,0BAA0B;IAClD,sBAAsB,EAAE,0BAA0B;IAClD,wBAAwB,EAAE,6BAA6B;IACvD,uBAAuB,EAAE,4BAA4B;IACrD,cAAc,EAAE,iBAAiB;IACjC,mBAAmB,EAAE,wBAAwB;IAE7C,aAAa;IACb,YAAY,EAAE,gBAAgB;IAC9B,aAAa,EAAE,gBAAgB;IAC/B,YAAY,EAAE,eAAe;IAC7B,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K,KAAK,EAAE;YAC3B,OAAO,CAAC,CAAC;SACV;KACF;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAIA,kDAAmB"} \ No newline at end of file diff --git a/dist/models/ErrorObject.js b/dist/models/ErrorObject.js index bcee239..c2d8ad7 100644 --- a/dist/models/ErrorObject.js +++ b/dist/models/ErrorObject.js @@ -32,6 +32,7 @@ class ErrorObject extends Error { return me; } } +exports.default = ErrorObject; ErrorObject.GraphQL = new graphql_1.GraphQLObjectType({ name: 'ErrorObject', description: 'An object containing the error data', @@ -56,5 +57,4 @@ ErrorObject.GraphQL = new graphql_1.GraphQLObjectType({ }, }), }); -exports.default = ErrorObject; //# sourceMappingURL=ErrorObject.js.map \ No newline at end of file diff --git a/dist/models/ErrorObject.js.map b/dist/models/ErrorObject.js.map index 00ca1a6..0f22359 100644 --- a/dist/models/ErrorObject.js.map +++ b/dist/models/ErrorObject.js.map @@ -1 +1 @@ -{"version":3,"file":"ErrorObject.js","sourceRoot":"","sources":["../../src/models/ErrorObject.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAEH,qCAAyD;AACzD,6CAA6D;AAE7D,MAAqB,WAAY,SAAQ,KAAK;IAM5C,YAAY,IAAS;QACnB,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAG3C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,uBAAU,CAAC,mBAAmB,CAAC;QAClE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC;QACxC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QACtD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,IAA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,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE;YACnD,EAAE,IAAI,iBAAiB,IAAI,CAAC,KAAK,EAAE,CAAC;SACrC;QAED,OAAO,EAAE,CAAC;IACZ,CAAC;;AAtCH,8BAgEC;AAxBQ,mBAAO,GAAG,IAAI,2BAAiB,CAAC;IACrC,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,qCAAqC;IAClD,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;QACb,SAAS,EAAE;YACT,IAAI,EAAE,uBAAa;SACpB;QACD,UAAU,EAAE;YACV,IAAI,EAAE,uBAAa;YACnB,OAAO,CAAC,MAAM;gBACZ,OAAO,MAAM,CAAC,KAAK,CAAC;YACtB,CAAC;SACF;QACD,UAAU,EAAE;YACV,IAAI,EAAE,uBAAa;SACpB;QACD,SAAS,EAAE;YACT,IAAI,EAAE,uBAAa;SACpB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,uBAAa;SACpB;KACF,CAAC;CACH,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/qlog/index.d.ts b/dist/qlog/index.d.ts index 9143048..62f70fc 100644 --- a/dist/qlog/index.d.ts +++ b/dist/qlog/index.d.ts @@ -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; diff --git a/src/models/ErrorCodes.ts b/src/models/ErrorCodes.ts index 9c0b97a..058e08a 100755 --- a/src/models/ErrorCodes.ts +++ b/src/models/ErrorCodes.ts @@ -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', @@ -19,10 +20,10 @@ 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', @@ -30,7 +31,7 @@ const ErrorCodes: { [id: string]: string } = { 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', @@ -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',