Skip to content

Commit 8eea656

Browse files
authored
chore: update types for fspiop 2.0 (#207)
* chore: update types for fspiop 2.0 * chore: audit
1 parent 33e39b0 commit 8eea656

3 files changed

Lines changed: 29 additions & 29 deletions

File tree

‎package-lock.json‎

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"devDependencies": {
5050
"@mojaloop/api-snippets": "^17.5.1",
5151
"@types/jest": "^29.5.12",
52-
"@types/node": "^20.14.2",
52+
"@types/node": "^20.14.9",
5353
"audit-ci": "^7.0.1",
5454
"eslint": "8.57.0",
5555
"eslint-config-airbnb-base": "15.0.0",
@@ -61,7 +61,7 @@
6161
"pre-commit": "^1.2.2",
6262
"replace": "^1.2.2",
6363
"standard-version": "^9.5.0",
64-
"typescript": "^5.4.5"
64+
"typescript": "^5.5.2"
6565
},
6666
"standard-version": {
6767
"scripts": {

‎src/index.d.ts‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ declare namespace SDKStandardComponents {
104104
*/
105105
putConsentsError(
106106
consentId: string,
107-
consentBody: fspiopAPI.Schemas.ErrorInformationObject,
107+
consentBody: fspiopAPI.Types.ErrorInformationObject,
108108
destParticipantId: string
109109
): Promise<GenericRequestResponse | GenericRequestResponseUndefined>;
110110

@@ -167,7 +167,7 @@ declare namespace SDKStandardComponents {
167167
*/
168168
putConsentRequestsError(
169169
consentRequestId: string,
170-
consentRequestBody: fspiopAPI.Schemas.ErrorInformationObject,
170+
consentRequestBody: fspiopAPI.Types.ErrorInformationObject,
171171
destParticipantId: string
172172
): Promise<GenericRequestResponse | GenericRequestResponseUndefined>;
173173

@@ -237,7 +237,7 @@ declare namespace SDKStandardComponents {
237237
* @returns {Promise<object>} JSON response body if one was received
238238
*/
239239
putThirdpartyRequestsTransactionsError(
240-
thirdpartyRequestsTransactionsBody: fspiopAPI.Schemas.ErrorInformationObject,
240+
thirdpartyRequestsTransactionsBody: fspiopAPI.Types.ErrorInformationObject,
241241
transactionRequestId: string,
242242
destParticipantId: string
243243
): Promise<GenericRequestResponse | GenericRequestResponseUndefined>;
@@ -318,7 +318,7 @@ declare namespace SDKStandardComponents {
318318
*/
319319
putAccountsError (
320320
userId: string,
321-
accountsBody: fspiopAPI.Schemas.ErrorInformationObject,
321+
accountsBody: fspiopAPI.Types.ErrorInformationObject,
322322
destParticipantId: string
323323
): Promise<GenericRequestResponse | GenericRequestResponseUndefined>;
324324

@@ -353,7 +353,7 @@ declare namespace SDKStandardComponents {
353353
*/
354354
putServicesError (
355355
serviceType: string,
356-
servicesBody: fspiopAPI.Schemas.ErrorInformationObject,
356+
servicesBody: fspiopAPI.Types.ErrorInformationObject,
357357
destParticipantId: string
358358
): Promise<GenericRequestResponse | GenericRequestResponseUndefined>;
359359

@@ -395,7 +395,7 @@ declare namespace SDKStandardComponents {
395395
* @returns {Promise<object>} JSON response body if one was received
396396
*/
397397
putThirdpartyRequestsVerificationsError(
398-
thirdpartyRequestsVerificationsBody: fspiopAPI.Schemas.ErrorInformationObject,
398+
thirdpartyRequestsVerificationsBody: fspiopAPI.Types.ErrorInformationObject,
399399
verificationsRequestId: string,
400400
destParticipantId: string
401401
): Promise<GenericRequestResponse | GenericRequestResponseUndefined>;
@@ -431,7 +431,7 @@ declare namespace SDKStandardComponents {
431431
idType: string,
432432
idValue: string,
433433
idSubValue: string | undefined,
434-
body: fspiopAPI.Schemas.Party,
434+
body: fspiopAPI.Types.Party,
435435
destFspId: string
436436
): Promise<GenericRequestResponse | GenericRequestResponseUndefined>;
437437

@@ -449,7 +449,7 @@ declare namespace SDKStandardComponents {
449449
idType: string,
450450
idValue: string,
451451
idSubValue: string | undefined,
452-
error: fspiopAPI.Schemas.ErrorInformationObject,
452+
error: fspiopAPI.Types.ErrorInformationObject,
453453
destFspId: string
454454
): Promise<GenericRequestResponse | GenericRequestResponseUndefined>;
455455

@@ -462,7 +462,7 @@ declare namespace SDKStandardComponents {
462462
* @returns {Promise<object>} JSON response body if one was received
463463
*/
464464
postQuotes(
465-
quoteRequest: fspiopAPI.Schemas.QuotesPostRequest,
465+
quoteRequest: fspiopAPI.Types.QuotesPostRequest,
466466
destParticipantId: string
467467
): Promise<GenericRequestResponse | GenericRequestResponseUndefined>;
468468

@@ -476,7 +476,7 @@ declare namespace SDKStandardComponents {
476476
*/
477477
putAuthorizations(
478478
transactionRequestId: string,
479-
authorizationResponse: fspiopAPI.Schemas.AuthorizationsIDPutResponse,
479+
authorizationResponse: fspiopAPI.Types.AuthorizationsIDPutResponse,
480480
destFspId: string
481481
): Promise<GenericRequestResponse | GenericRequestResponseUndefined>
482482

@@ -490,7 +490,7 @@ declare namespace SDKStandardComponents {
490490
*/
491491
putAuthorizationsError(
492492
transactionRequestId: string,
493-
error: fspiopAPI.Schemas.ErrorInformationObject,
493+
error: fspiopAPI.Types.ErrorInformationObject,
494494
destFspId: string
495495
): Promise<GenericRequestResponse | GenericRequestResponseUndefined>
496496

@@ -502,7 +502,7 @@ declare namespace SDKStandardComponents {
502502
* @param {string} destFspId The id of the destination participant
503503
*/
504504
postParticipants(
505-
participantRequest: fspiopAPI.Schemas.ParticipantsPostRequest,
505+
participantRequest: fspiopAPI.Types.ParticipantsPostRequest,
506506
destFspId: string
507507
): Promise<GenericRequestResponse | GenericRequestResponseUndefined>
508508
}

0 commit comments

Comments
 (0)