@mojaloop/sdk-scheme-adapter 24.6.1 → 24.6.3
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/.ncurc.yaml +1 -2
- package/.yarn/cache/@apidevtools-swagger-parser-npm-10.0.3-9e554f93c2-580a86d4c2.zip +0 -0
- package/.yarn/cache/{@mojaloop-central-services-logger-npm-11.7.0-bd1e0d14fc-386d668607.zip → @mojaloop-central-services-logger-npm-11.8.0-7e88e0dd5d-c84fe0cacb.zip} +0 -0
- package/.yarn/cache/{@mojaloop-central-services-shared-npm-18.23.0-1dc7ef9c6e-5404b8b52b.zip → @mojaloop-central-services-shared-npm-18.23.1-a9b58d7496-50f5f83ce5.zip} +0 -0
- package/.yarn/cache/@mojaloop-ml-schema-transformer-lib-npm-2.7.0-bc64d97e72-bad585bd7d.zip +0 -0
- package/.yarn/cache/{@mojaloop-sdk-standard-components-npm-19.11.0-7029898826-da3795e27f.zip → @mojaloop-sdk-standard-components-npm-19.11.2-d6fd02bca7-0cbc9e56e2.zip} +0 -0
- package/.yarn/cache/{@types-node-npm-22.13.12-2627e8ff6d-712dded901.zip → @types-node-npm-22.13.14-2796c41449-8c5a3c1ec0.zip} +0 -0
- package/.yarn/cache/{@types-supertest-npm-6.0.2-1f239669e4-1eafa47266.zip → @types-supertest-npm-6.0.3-0d43ae5953-5f75e41906.zip} +0 -0
- package/.yarn/cache/{@typescript-eslint-eslint-plugin-npm-8.27.0-a14dc5e23e-43a621b9ce.zip → @typescript-eslint-eslint-plugin-npm-8.28.0-16bd93a9cb-97e2e05864.zip} +0 -0
- package/.yarn/cache/{@typescript-eslint-parser-npm-8.27.0-1840c7fec3-42506d8840.zip → @typescript-eslint-parser-npm-8.28.0-3e5cf59c3a-c7a90e4933.zip} +0 -0
- package/.yarn/cache/{@typescript-eslint-scope-manager-npm-8.27.0-2f4609ad61-298e66204f.zip → @typescript-eslint-scope-manager-npm-8.28.0-64219db177-27a7b60c55.zip} +0 -0
- package/.yarn/cache/{@typescript-eslint-type-utils-npm-8.27.0-f656ad756d-3ddbf21c0b.zip → @typescript-eslint-type-utils-npm-8.28.0-880209d847-2f231cebcc.zip} +0 -0
- package/.yarn/cache/{@typescript-eslint-types-npm-8.27.0-937f976830-b14b90bb94.zip → @typescript-eslint-types-npm-8.28.0-648d0ea17f-555f1e7a74.zip} +0 -0
- package/.yarn/cache/{@typescript-eslint-typescript-estree-npm-8.27.0-d91ae020e3-b118ac9d3d.zip → @typescript-eslint-typescript-estree-npm-8.28.0-d19a78207c-7e4e3b1580.zip} +0 -0
- package/.yarn/cache/{@typescript-eslint-utils-npm-8.27.0-02f4cb8861-f88d2130f4.zip → @typescript-eslint-utils-npm-8.28.0-d61217bfde-56e3cb6e6e.zip} +0 -0
- package/.yarn/cache/{@typescript-eslint-visitor-keys-npm-8.27.0-c9cf563957-d422c66db7.zip → @typescript-eslint-visitor-keys-npm-8.28.0-54d3bc097e-e95b207508.zip} +0 -0
- package/.yarn/cache/commander-npm-9.5.0-993b3f2434-c7a3e27aa5.zip +0 -0
- package/.yarn/cache/lodash.get-npm-4.4.2-7bda64ed87-e403047ddb.zip +0 -0
- package/.yarn/cache/swagger-parser-npm-10.0.3-51abfd6363-bd99d94543.zip +0 -0
- package/.yarn/cache/validator-npm-13.15.0-b048a51909-0d1faacb80.zip +0 -0
- package/.yarn/cache/z-schema-npm-5.0.5-94fb0e21a9-8a1d66817a.zip +0 -0
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +14 -0
- package/modules/api-svc/package.json +5 -5
- package/modules/api-svc/src/lib/model/AccountsModel.js +1 -7
- package/modules/api-svc/test/unit/api/accounts/accounts.test.js +0 -11
- package/modules/outbound-command-event-handler/package.json +5 -5
- package/modules/outbound-domain-event-handler/package.json +4 -4
- package/modules/private-shared-lib/package.json +4 -4
- package/package.json +4 -4
- package/.yarn/cache/@mojaloop-central-services-logger-npm-11.6.2-f23a495932-dbe46a02df.zip +0 -0
- package/.yarn/cache/@mojaloop-central-services-shared-npm-18.22.3-d3de464e63-09a0ab31b1.zip +0 -0
- package/.yarn/cache/@mojaloop-ml-schema-transformer-lib-npm-2.5.8-ac5a2345a8-1d38e5c2ed.zip +0 -0
- package/.yarn/cache/@mojaloop-ml-schema-transformer-lib-npm-2.6.0-6b700210d0-93fb6590d3.zip +0 -0
- package/.yarn/cache/@rollup-rollup-linux-x64-musl-npm-4.35.0-4d96bf3a6f-8.zip +0 -0
- package/modules/api-svc/test/unit/api/accounts/data/postAccountsSuccessResponseWithError1.json +0 -34
package/.ncurc.yaml
CHANGED
|
@@ -10,6 +10,5 @@ reject: [
|
|
|
10
10
|
## TODO: The new version of nx causes submodules to be broken.
|
|
11
11
|
"nx",
|
|
12
12
|
## esLint 9.15.0 caused the error: TypeError: Error while loading rule '@typescript-eslint/no-unused-expressions': Cannot read properties of undefined (reading 'allowShortCircuit')
|
|
13
|
-
"eslint"
|
|
14
|
-
"@mojaloop/sdk-standard-components" # Need to use snapshot version for now until pending PR is merged
|
|
13
|
+
"eslint"
|
|
15
14
|
]
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
# Changelog: [mojaloop/sdk-scheme-adapter](https://github.com/mojaloop/sdk-scheme-adapter)
|
|
2
|
+
### [24.6.3](https://github.com/mojaloop/sdk-scheme-adapter/compare/v24.6.2...v24.6.3) (2025-03-27)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Chore
|
|
6
|
+
|
|
7
|
+
* **csi-1321:** update deps ([#567](https://github.com/mojaloop/sdk-scheme-adapter/issues/567)) ([b547e61](https://github.com/mojaloop/sdk-scheme-adapter/commit/b547e6129f01dc2a2b9465a004ab5a5d0e358923))
|
|
8
|
+
|
|
9
|
+
### [24.6.2](https://github.com/mojaloop/sdk-scheme-adapter/compare/v24.6.1...v24.6.2) (2025-03-24)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chore
|
|
13
|
+
|
|
14
|
+
* remove misleading currency response ([#568](https://github.com/mojaloop/sdk-scheme-adapter/issues/568)) ([3792454](https://github.com/mojaloop/sdk-scheme-adapter/commit/3792454ba6334870f0f284bf58ddf94f18c1f337))
|
|
15
|
+
|
|
2
16
|
### [24.6.1](https://github.com/mojaloop/sdk-scheme-adapter/compare/v24.6.0...v24.6.1) (2025-03-24)
|
|
3
17
|
|
|
4
18
|
|
|
@@ -66,17 +66,17 @@
|
|
|
66
66
|
"@koa/cors": "5.0.0",
|
|
67
67
|
"@mojaloop/api-snippets": "17.10.1",
|
|
68
68
|
"@mojaloop/central-services-error-handling": "13.0.7",
|
|
69
|
-
"@mojaloop/central-services-logger": "11.
|
|
69
|
+
"@mojaloop/central-services-logger": "11.8.0",
|
|
70
70
|
"@mojaloop/central-services-metrics": "12.5.0",
|
|
71
|
-
"@mojaloop/central-services-shared": "18.23.
|
|
71
|
+
"@mojaloop/central-services-shared": "18.23.1",
|
|
72
72
|
"@mojaloop/event-sdk": "14.4.0",
|
|
73
73
|
"@mojaloop/logging-bc-client-lib": "0.5.8",
|
|
74
|
-
"@mojaloop/ml-schema-transformer-lib": "2.
|
|
74
|
+
"@mojaloop/ml-schema-transformer-lib": "2.7.0",
|
|
75
75
|
"@mojaloop/sdk-scheme-adapter-private-shared-lib": "workspace:^",
|
|
76
|
-
"@mojaloop/sdk-standard-components": "19.11.
|
|
76
|
+
"@mojaloop/sdk-standard-components": "19.11.2",
|
|
77
77
|
"ajv": "8.17.1",
|
|
78
78
|
"axios": "1.8.4",
|
|
79
|
-
"body-parser": "
|
|
79
|
+
"body-parser": "2.2.0",
|
|
80
80
|
"co-body": "6.2.0",
|
|
81
81
|
"dotenv": "16.4.7",
|
|
82
82
|
"env-var": "7.5.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
const safeStringify = require('fast-safe-stringify');
|
|
33
33
|
const idGenerator = require('@mojaloop/central-services-shared').Util.id;
|
|
34
34
|
const StateMachine = require('javascript-state-machine');
|
|
35
|
-
const { MojaloopRequests
|
|
35
|
+
const { MojaloopRequests } = require('@mojaloop/sdk-standard-components');
|
|
36
36
|
const { BackendError } = require('./common');
|
|
37
37
|
|
|
38
38
|
const { SDKStateEnum } = require('./common');
|
|
@@ -289,12 +289,6 @@ class AccountsModel {
|
|
|
289
289
|
idType: party.partyId.partyIdType,
|
|
290
290
|
idValue: party.partyId.partyIdentifier,
|
|
291
291
|
idSubValue: party.partyId.partySubIdOrType,
|
|
292
|
-
...!response.body.currency && {
|
|
293
|
-
error: {
|
|
294
|
-
statusCode: Errors.MojaloopApiErrorCodes.CLIENT_ERROR.code,
|
|
295
|
-
message: 'Provided currency not supported',
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
292
|
...party.errorInformation && {
|
|
299
293
|
error: {
|
|
300
294
|
statusCode: party.errorInformation.errorCode,
|
|
@@ -47,7 +47,6 @@ const defaultConfig = require('../../data/defaultConfig');
|
|
|
47
47
|
|
|
48
48
|
// Accounts
|
|
49
49
|
const postAccountsSuccessResponse = require('./data/postAccountsSuccessResponse');
|
|
50
|
-
const postAccountsSuccessResponseWithError1 = require('./data/postAccountsSuccessResponseWithError1');
|
|
51
50
|
const postAccountsSuccessResponseWithError2 = require('./data/postAccountsSuccessResponseWithError2');
|
|
52
51
|
const postAccountsErrorTimeoutResponse = require('./data/postAccountsErrorTimeoutResponse');
|
|
53
52
|
const postAccountsErrorMojaloopResponse = require('./data/postAccountsErrorMojaloopResponse');
|
|
@@ -98,16 +97,6 @@ describe('Outbound Accounts API', () => {
|
|
|
98
97
|
return testPostAccounts(putBodyFn, 200, postAccountsSuccessResponse);
|
|
99
98
|
});
|
|
100
99
|
|
|
101
|
-
test('should return success response with error info on invalid currency (1)', () => {
|
|
102
|
-
const putBodyFn = (body) => ({
|
|
103
|
-
partyList: body.partyList.map(party => ({
|
|
104
|
-
partyId: party,
|
|
105
|
-
})),
|
|
106
|
-
currency: undefined,
|
|
107
|
-
});
|
|
108
|
-
return testPostAccounts(putBodyFn, 200, postAccountsSuccessResponseWithError1);
|
|
109
|
-
});
|
|
110
|
-
|
|
111
100
|
test(
|
|
112
101
|
'should return success response with error info on errorInformation presence (2)',
|
|
113
102
|
() => {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@mojaloop/api-snippets": "17.10.1",
|
|
45
|
-
"@mojaloop/central-services-shared": "18.23.
|
|
45
|
+
"@mojaloop/central-services-shared": "18.23.1",
|
|
46
46
|
"@mojaloop/logging-bc-client-lib": "0.5.8",
|
|
47
47
|
"@mojaloop/logging-bc-public-types-lib": "0.5.5",
|
|
48
48
|
"@mojaloop/sdk-scheme-adapter-private-shared-lib": "workspace:^",
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
"@types/convict": "6.1.6",
|
|
61
61
|
"@types/express": "5.0.1",
|
|
62
62
|
"@types/jest": "29.5.14",
|
|
63
|
-
"@types/node": "22.13.
|
|
63
|
+
"@types/node": "22.13.14",
|
|
64
64
|
"@types/node-cache": "4.2.5",
|
|
65
|
-
"@types/supertest": "6.0.
|
|
65
|
+
"@types/supertest": "6.0.3",
|
|
66
66
|
"@types/swagger-ui-express": "4.1.8",
|
|
67
67
|
"@types/yamljs": "0.2.34",
|
|
68
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
69
|
-
"@typescript-eslint/parser": "8.
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "8.28.0",
|
|
69
|
+
"@typescript-eslint/parser": "8.28.0",
|
|
70
70
|
"copyfiles": "2.4.1",
|
|
71
71
|
"eslint": "9.15.0",
|
|
72
72
|
"jest": "29.7.0",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"@types/convict": "6.1.6",
|
|
58
58
|
"@types/express": "5.0.1",
|
|
59
59
|
"@types/jest": "29.5.14",
|
|
60
|
-
"@types/node": "22.13.
|
|
60
|
+
"@types/node": "22.13.14",
|
|
61
61
|
"@types/node-cache": "4.2.5",
|
|
62
|
-
"@types/supertest": "6.0.
|
|
62
|
+
"@types/supertest": "6.0.3",
|
|
63
63
|
"@types/swagger-ui-express": "4.1.8",
|
|
64
64
|
"@types/yamljs": "0.2.34",
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
66
|
-
"@typescript-eslint/parser": "8.
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "8.28.0",
|
|
66
|
+
"@typescript-eslint/parser": "8.28.0",
|
|
67
67
|
"copyfiles": "2.4.1",
|
|
68
68
|
"eslint": "9.15.0",
|
|
69
69
|
"jest": "29.7.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@mojaloop/api-snippets": "17.10.1",
|
|
33
|
-
"@mojaloop/central-services-shared": "18.23.
|
|
33
|
+
"@mojaloop/central-services-shared": "18.23.1",
|
|
34
34
|
"@mojaloop/logging-bc-public-types-lib": "0.5.5",
|
|
35
35
|
"@mojaloop/platform-shared-lib-messaging-types-lib": "0.7.1",
|
|
36
36
|
"@mojaloop/platform-shared-lib-nodejs-kafka-client-lib": "0.5.18",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@eslint/compat": "1.2.7",
|
|
43
|
-
"@types/node": "22.13.
|
|
43
|
+
"@types/node": "22.13.14",
|
|
44
44
|
"@types/uuid": "10.0.0",
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
46
|
-
"@typescript-eslint/parser": "8.
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "8.28.0",
|
|
46
|
+
"@typescript-eslint/parser": "8.28.0",
|
|
47
47
|
"eslint": "9.15.0",
|
|
48
48
|
"jest": "29.7.0",
|
|
49
49
|
"npm-check-updates": "16.7.10",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/sdk-scheme-adapter",
|
|
3
|
-
"version": "24.6.
|
|
3
|
+
"version": "24.6.3",
|
|
4
4
|
"description": "mojaloop sdk-scheme-adapter",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/mojaloop/sdk-scheme-adapter",
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@types/jest": "29.5.14",
|
|
85
|
-
"@types/node": "22.13.
|
|
85
|
+
"@types/node": "22.13.14",
|
|
86
86
|
"@types/node-cache": "4.2.5",
|
|
87
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
88
|
-
"@typescript-eslint/parser": "8.
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "8.28.0",
|
|
88
|
+
"@typescript-eslint/parser": "8.28.0",
|
|
89
89
|
"audit-ci": "7.1.0",
|
|
90
90
|
"eslint": "9.15.0",
|
|
91
91
|
"eslint-config-airbnb-typescript": "18.0.0",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/modules/api-svc/test/unit/api/accounts/data/postAccountsSuccessResponseWithError1.json
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"accounts": [
|
|
3
|
-
{
|
|
4
|
-
"currency": "USD",
|
|
5
|
-
"idType": "MSISDN",
|
|
6
|
-
"idValue": "123456789"
|
|
7
|
-
}
|
|
8
|
-
],
|
|
9
|
-
"currentState": "COMPLETED",
|
|
10
|
-
"modelId": "00000000000000000000000001",
|
|
11
|
-
"postAccountsResponse": {
|
|
12
|
-
"body": {
|
|
13
|
-
"partyList": [
|
|
14
|
-
{
|
|
15
|
-
"partyId": {
|
|
16
|
-
"fspId": "mojaloop-sdk",
|
|
17
|
-
"partyIdType": "MSISDN",
|
|
18
|
-
"partyIdentifier": "123456789"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"response": [
|
|
25
|
-
{
|
|
26
|
-
"error": {
|
|
27
|
-
"message": "Provided currency not supported",
|
|
28
|
-
"statusCode": "3000"
|
|
29
|
-
},
|
|
30
|
-
"idType": "MSISDN",
|
|
31
|
-
"idValue": "123456789"
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
}
|