@mojaloop/central-services-shared 18.34.2 → 18.35.0-snapshot.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/central-services-shared",
3
- "version": "18.34.2",
3
+ "version": "18.35.0-snapshot.0",
4
4
  "description": "Shared code for mojaloop central services",
5
5
  "license": "Apache-2.0",
6
6
  "author": "ModusBox",
@@ -102,10 +102,17 @@ const FspEndpointTypes = {
102
102
  TP_CB_URL_SERVICES_GET: 'TP_CB_URL_SERVICES_GET',
103
103
  TP_CB_URL_SERVICES_PUT: 'TP_CB_URL_SERVICES_PUT',
104
104
  TP_CB_URL_SERVICES_PUT_ERROR: 'TP_CB_URL_SERVICES_PUT_ERROR',
105
- TP_CB_URL_ACCOUNT_REQUEST_POST: 'TP_CB_URL_ACCOUNT_REQUEST_POST',
106
- TP_CB_URL_ACCOUNT_REQUEST_PUT: 'TP_CB_URL_ACCOUNT_REQUEST_PUT',
107
- TP_CB_URL_ACCOUNT_REQUEST_PUT_ERROR: 'TP_CB_URL_ACCOUNT_REQUEST_PUT_ERROR',
108
- TP_CB_URL_ACCOUNT_REQUEST_GET: 'TP_CB_URL_ACCOUNT_REQUEST_GET'
105
+ TP_CB_URL_ACCOUNTS_REQUEST_POST: 'TP_CB_URL_ACCOUNTS_REQUEST_POST',
106
+ TP_CB_URL_ACCOUNTS_REQUEST_PUT: 'TP_CB_URL_ACCOUNTS_REQUEST_PUT',
107
+ TP_CB_URL_ACCOUNTS_REQUEST_PUT_ERROR: 'TP_CB_URL_ACCOUNTS_REQUEST_PUT_ERROR',
108
+ TP_CB_URL_ACCOUNTS_REQUEST_GET: 'TP_CB_URL_ACCOUNTS_REQUEST_GET',
109
+ // PISP v2 endpoint types
110
+ FSPIOP_CALLBACK_URL_TPP_CONSENT_REQ_SERVICE: 'FSPIOP_CALLBACK_URL_TPP_CONSENT_REQ_SERVICE',
111
+ FSPIOP_CALLBACK_URL_TPP_CONSENT_SERVICE: 'FSPIOP_CALLBACK_URL_TPP_CONSENT_SERVICE',
112
+ FSPIOP_CALLBACK_URL_TPP_TRANSACTION_REQ_SERVICE: 'FSPIOP_CALLBACK_URL_TPP_TRANSACTION_REQ_SERVICE',
113
+ FSPIOP_CALLBACK_URL_TPP_TRANSFER_SERVICE: 'FSPIOP_CALLBACK_URL_TPP_TRANSFER_SERVICE',
114
+ FSPIOP_CALLBACK_URL_TPP_AUTHORIZATIONS: 'FSPIOP_CALLBACK_URL_TPP_AUTHORIZATIONS',
115
+ FSPIOP_CALLBACK_URL_TPP_VERIFICATION: 'FSPIOP_CALLBACK_URL_TPP_VERIFICATION'
109
116
  }
110
117
 
111
118
  const FspEndpointTemplates = {
@@ -139,39 +146,49 @@ const FspEndpointTemplates = {
139
146
  BULK_TRANSFERS_PUT_ERROR: '/{{fsp}}/bulkTransfers/{{ID}}/error',
140
147
  BULK_QUOTES_POST: '/bulkQuotes',
141
148
  BULK_QUOTES_ERROR_PUT: '/bulkQuotes/{{bulkQuoteId}}/error',
142
- TP_TRANSACTION_REQUEST_GET: '/thirdpartyRequests/transactions/{{ID}}',
143
- TP_TRANSACTION_REQUEST_POST: '/thirdpartyRequests/transactions',
144
- TP_TRANSACTION_REQUEST_PUT: '/thirdpartyRequests/transactions/{{ID}}',
145
- TP_TRANSACTION_REQUEST_PUT_ERROR: '/thirdpartyRequests/transactions/{{ID}}/error',
146
- TP_TRANSACTION_REQUEST_PATCH: '/thirdpartyRequests/transactions/{{ID}}',
147
- TP_REQUESTS_AUTHORIZATIONS_POST: '/thirdpartyRequests/authorizations',
148
- TP_REQUESTS_AUTHORIZATIONS_PUT: '/thirdpartyRequests/authorizations/{{ID}}',
149
- TP_REQUESTS_AUTHORIZATIONS_PUT_ERROR: '/thirdpartyRequests/authorizations/{{ID}}/error',
150
- TP_REQUESTS_VERIFICATIONS_POST: '/thirdpartyRequests/verifications',
151
- TP_REQUESTS_VERIFICATIONS_PUT: '/thirdpartyRequests/verifications/{{ID}}',
152
- TP_REQUESTS_VERIFICATIONS_PUT_ERROR: '/thirdpartyRequests/verifications/{{ID}}/error',
153
- TP_CONSENT_REQUEST_PATCH: '/consentRequests/{{ID}}',
154
- TP_CONSENT_REQUEST_POST: '/consentRequests',
155
- TP_CONSENT_REQUEST_PUT: '/consentRequests/{{ID}}',
156
- TP_CONSENT_REQUEST_PUT_ERROR: '/consentRequests/{{ID}}/error',
157
- TP_CONSENT_CREATE_CREDENTIAL_POST: '/consents/{{ID}}/createCredential',
158
- TP_CONSENT_POST: '/consents',
159
- TP_CONSENT_GET: '/consents/{{ID}}',
160
- TP_CONSENT_PUT: '/consents/{{ID}}',
161
- TP_CONSENT_PATCH: '/consents/{{ID}}',
162
- TP_CONSENT_PUT_ERROR: '/consents/{{ID}}/error',
163
- TP_CONSENT_GENERATE_CHALLENGE_POST: '/consents/{{ID}}/generateChallenge',
164
- TP_CONSENT_GENERATE_CHALLENGE_PUT_ERROR: '/consents/{{ID}}/generateChallenge/error',
165
- TP_ACCOUNTS_GET: '/accounts/{{ID}}',
166
- TP_ACCOUNTS_PUT: '/accounts/{{ID}}',
167
- TP_ACCOUNTS_PUT_ERROR: '/accounts/{{ID}}/error',
149
+ // PISP v2 - tppTransactionRequests (spec section 3.9)
150
+ TP_TRANSACTION_REQUEST_GET: '/tppTransactionRequests/{{ID}}',
151
+ TP_TRANSACTION_REQUEST_POST: '/tppTransactionRequests',
152
+ TP_TRANSACTION_REQUEST_PUT: '/tppTransactionRequests/{{ID}}',
153
+ TP_TRANSACTION_REQUEST_PUT_ERROR: '/tppTransactionRequests/{{ID}}/error',
154
+ // PISP v2 - tppAuthorizations (spec section 3.7)
155
+ TP_AUTHORIZATION_GET: '/tppAuthorizations/{{ID}}',
156
+ TP_AUTHORIZATION_POST: '/tppAuthorizations',
157
+ TP_AUTHORIZATION_PUT: '/tppAuthorizations/{{ID}}',
158
+ TP_AUTHORIZATION_PUT_ERROR: '/tppAuthorizations/{{ID}}/error',
159
+ // PISP v2 - tppTransfers (spec section 3.8)
160
+ TP_TRANSFER_GET: '/tppTransfers/{{ID}}',
161
+ TP_TRANSFER_POST: '/tppTransfers',
162
+ TP_TRANSFER_PUT: '/tppTransfers/{{ID}}',
163
+ TP_TRANSFER_PUT_ERROR: '/tppTransfers/{{ID}}/error',
164
+ // PISP v2 - tppVerifications (spec section 3.10)
165
+ TP_VERIFICATION_GET: '/tppVerifications/{{ID}}',
166
+ TP_VERIFICATION_POST: '/tppVerifications',
167
+ TP_VERIFICATION_PUT: '/tppVerifications/{{ID}}',
168
+ TP_VERIFICATION_PUT_ERROR: '/tppVerifications/{{ID}}/error',
169
+ // PISP v2 - tppConsentRequests (spec section 3.4)
170
+ TP_CONSENT_REQUEST_GET: '/tppConsentRequests/{{ID}}',
171
+ TP_CONSENT_REQUEST_POST: '/tppConsentRequests',
172
+ TP_CONSENT_REQUEST_PATCH: '/tppConsentRequests/{{ID}}',
173
+ TP_CONSENT_REQUEST_PUT: '/tppConsentRequests/{{ID}}',
174
+ TP_CONSENT_REQUEST_PUT_ERROR: '/tppConsentRequests/{{ID}}/error',
175
+ // PISP v2 - tppConsents (spec section 3.5)
176
+ TP_CONSENT_POST: '/tppConsents',
177
+ TP_CONSENT_GET: '/tppConsents/{{ID}}',
178
+ TP_CONSENT_DELETE: '/tppConsents/{{ID}}',
179
+ TP_CONSENT_PUT: '/tppConsents/{{ID}}',
180
+ TP_CONSENT_PATCH: '/tppConsents/{{ID}}',
181
+ TP_CONSENT_PUT_ERROR: '/tppConsents/{{ID}}/error',
182
+ TP_ACCOUNTS_GET: '/tppAccounts/{{accountRequestId}}/{{signedChallenge}}',
183
+ TP_ACCOUNTS_PUT: '/tppAccounts/{{accountRequestId}}',
184
+ TP_ACCOUNTS_PUT_ERROR: '/tppAccounts/{{accountRequestId}}/error',
168
185
  TP_SERVICES_GET: '/services/{{ServiceType}}',
169
186
  TP_SERVICES_PUT: '/services/{{ServiceType}}',
170
187
  TP_SERVICES_PUT_ERROR: '/services/{{ServiceType}}/error',
171
- TP_ACCOUNT_REQUEST_POST: '/tppAccountRequest',
172
- TP_ACCOUNT_REQUEST_PUT: '/tppAccountRequest/{{ID}}',
173
- TP_ACCOUNT_REQUEST_PUT_ERROR: '/tppAccountRequest/{{ID}}/error',
174
- TP_ACCOUNT_REQUEST_GET: '/tppAccountRequest/{{ID}}'
188
+ TP_ACCOUNT_REQUEST_POST: '/tppAccountsRequest',
189
+ TP_ACCOUNT_REQUEST_PUT: '/tppAccountsRequest/{{ID}}',
190
+ TP_ACCOUNT_REQUEST_PUT_ERROR: '/tppAccountsRequest/{{ID}}/error',
191
+ TP_ACCOUNT_REQUEST_GET: '/tppAccountsRequest/{{ID}}'
175
192
  }
176
193
 
177
194
  module.exports = {