Skip to content

Commit

Permalink
fix: update index.d.ts schemas (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleyow authored May 31, 2021
1 parent d44c3e3 commit 65ad460
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
11 changes: 5 additions & 6 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ declare namespace SDKStandardComponents {
*/
patchConsents(
consentId: string,
consentBody: tpAPI.Schemas.ConsentsIDPatchResponse,
consentBody: tpAPI.Schemas.ConsentsIDPatchResponseVerified | tpAPI.Schemas.ConsentsIDPatchResponseRevoked,
destParticipantId: string
): Promise<GenericRequestResponse | GenericRequestResponseUndefined>;

Expand All @@ -89,7 +89,7 @@ declare namespace SDKStandardComponents {
*/
putConsents(
consentId: string,
consentBody: tpAPI.Schemas.ConsentsIDPutResponseUnsigned | tpAPI.Schemas.ConsentsIDPutResponseSigned | tpAPI.Schemas.ConsentsIDPutResponseVerified,
consentBody: tpAPI.Schemas.ConsentsIDPutResponseSigned | tpAPI.Schemas.ConsentsIDPutResponseVerified,
destParticipantId: string
): Promise<GenericRequestResponse | GenericRequestResponseUndefined>;

Expand Down Expand Up @@ -139,10 +139,9 @@ declare namespace SDKStandardComponents {
*/
putConsentRequests(
consentRequestId: string,
consentRequestBody: tpAPI.Schemas.ConsentRequestsIDPutResponseOTP
| tpAPI.Schemas.ConsentRequestsIDPutResponseOTPAuth
| tpAPI.Schemas.ConsentRequestsIDPutResponseWeb
| tpAPI.Schemas.ConsentRequestsIDPutResponseWebAuth,
consentRequestBody:
tpAPI.Schemas.ConsentRequestsIDPutResponseOTP |
tpAPI.Schemas.ConsentRequestsIDPutResponseWeb,
destParticipantId: string
): Promise<GenericRequestResponse | GenericRequestResponseUndefined>;

Expand Down
18 changes: 9 additions & 9 deletions src/package-lock.json

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

4 changes: 2 additions & 2 deletions src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mojaloop/sdk-standard-components",
"version": "15.10.3",
"version": "15.10.4",
"description": "A set of standard components for connecting to Mojaloop API enabled Switches",
"main": "index.js",
"types": "index.d.ts",
Expand Down Expand Up @@ -34,7 +34,7 @@
"jws": "4.0.0"
},
"devDependencies": {
"@mojaloop/api-snippets": "^12.3.5",
"@mojaloop/api-snippets": "^12.3.16",
"@types/jest": "^25.2.1",
"@types/node": "^14.11.8",
"eslint": "7.0.0",
Expand Down

0 comments on commit 65ad460

Please sign in to comment.