Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add consentRequests error codes for linking #143

Merged
merged 1 commit into from
Apr 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,10 @@ declare namespace SDKStandardComponents {
TP_OTP_VALIDATION_ERROR: MojaloopApiErrorCode
TP_FSP_OTP_VALIDATION_ERROR: MojaloopApiErrorCode
TP_FSP_CONSENT_SCOPES_ERROR: MojaloopApiErrorCode
TP_CONSENT_REQ_VALIDATION_ERROR: MojaloopApiErrorCode
TP_FSP_CONSENT_REQ_NO_SCOPES: MojaloopApiErrorCode
TP_NO_TRUSTED_CALLBACK_URI: MojaloopApiErrorCode
TP_CONSENT_REQ_USER_NOT_ALLOWED: MojaloopApiErrorCode
TP_AUTH_SERVICE_ERROR: MojaloopApiErrorCode
}

Expand Down
4 changes: 4 additions & 0 deletions src/lib/errors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ const MojaloopApiErrorCodes = {
TP_OTP_VALIDATION_ERROR: { code: '7205', message: 'OTP failed validation' },
TP_FSP_OTP_VALIDATION_ERROR: { code: '7206', message: 'FSP failed to validate OTP' },
TP_FSP_CONSENT_SCOPES_ERROR: { code: '7207', message: 'FSP failed retrieve scopes for consent request' },
TP_CONSENT_REQ_VALIDATION_ERROR: { code: '7208', message: 'FSP failed to validate consent request' },
TP_FSP_CONSENT_REQ_NO_SCOPES: { code: '7209', message: 'FSP does not find scopes suitable' },
TP_NO_TRUSTED_CALLBACK_URI: { code: '7210', message: 'FSP does not trust PISP callback URI' },
TP_CONSENT_REQ_USER_NOT_ALLOWED: { code: '7211', message: 'FSP does not allow consent requests for specified username' },
TP_AUTH_SERVICE_ERROR: { code: '7300', message: 'Generic Thirdparty auth service error' },
};

Expand Down
2 changes: 1 addition & 1 deletion src/package-lock.json

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

2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mojaloop/sdk-standard-components",
"version": "15.6.1",
"version": "15.7.0",
"description": "A set of standard components for connecting to Mojaloop API enabled Switches",
"main": "index.js",
"types": "index.d.ts",
Expand Down