@mojaloop/sdk-scheme-adapter 25.0.0-snapshot.0 → 25.0.0-snapshot.2
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/.yarn/cache/{@eslint-compat-npm-1.2.5-13050bdc86-267afd3dc8.zip → @eslint-compat-npm-1.2.6-9efc700114-116c277749.zip} +0 -0
- package/.yarn/cache/{@mojaloop-api-snippets-npm-18.0.0-snapshot.0-2012a5395e-ddab9801c5.zip → @mojaloop-api-snippets-npm-17.7.11-b34e0af657-4b69b4ff2a.zip} +0 -0
- package/.yarn/cache/@redocly-openapi-core-npm-1.28.0-c4b1f1cf53-83f9fa2ed3.zip +0 -0
- package/.yarn/cache/@types-node-npm-22.13.0-ce5ef5ab7c-934122ad4c.zip +0 -0
- package/.yarn/cache/{openapi-typescript-npm-7.6.0-f408b3db12-f222c4064d.zip → openapi-typescript-npm-7.6.1-78f1e13542-ea71702705.zip} +0 -0
- package/.yarn/install-state.gz +0 -0
- package/modules/api-svc/package.json +3 -3
- package/modules/api-svc/src/lib/model/lib/shared.js +4 -4
- package/modules/api-svc/test/unit/lib/model/InboundTransfersModel.test.js +1 -1
- package/modules/api-svc/test/unit/lib/model/data/mockArguments.json +42 -35
- package/modules/outbound-command-event-handler/package.json +4 -4
- package/modules/outbound-domain-event-handler/package.json +3 -3
- package/modules/private-shared-lib/package-lock.json +3 -3
- package/modules/private-shared-lib/package.json +4 -4
- package/package.json +2 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/sdk-scheme-adapter-api-svc",
|
|
3
|
-
"version": "21.0.0-snapshot.
|
|
3
|
+
"version": "21.0.0-snapshot.2",
|
|
4
4
|
"description": "An adapter for connecting to Mojaloop API enabled switches.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@koa/cors": "^5.0.0",
|
|
67
|
-
"@mojaloop/api-snippets": "
|
|
67
|
+
"@mojaloop/api-snippets": "17.7.11",
|
|
68
68
|
"@mojaloop/central-services-error-handling": "^13.0.4",
|
|
69
69
|
"@mojaloop/central-services-logger": "^11.5.4",
|
|
70
70
|
"@mojaloop/central-services-metrics": "^12.4.4",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"jest-junit": "^16.0.0",
|
|
115
115
|
"npm-check-updates": "^16.7.10",
|
|
116
116
|
"openapi-response-validator": "^12.1.3",
|
|
117
|
-
"openapi-typescript": "^7.6.
|
|
117
|
+
"openapi-typescript": "^7.6.1",
|
|
118
118
|
"redis-mock": "^0.56.3",
|
|
119
119
|
"replace": "^1.2.2",
|
|
120
120
|
"standard-version": "^9.5.0",
|
|
@@ -184,7 +184,7 @@ const mojaloopQuoteRequestToInternal = (external) => {
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
if(external.extensionList) {
|
|
187
|
-
internal.extensionList = external.extensionList;
|
|
187
|
+
internal.extensionList = external.extensionList.extension;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
return internal;
|
|
@@ -245,7 +245,7 @@ const internalQuoteResponseToMojaloop = (internal) => {
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
if(internal.extensionList) {
|
|
248
|
-
external.extensionList = internal.extensionList;
|
|
248
|
+
external.extensionList = { extension: internal.extensionList };
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
return external;
|
|
@@ -299,8 +299,8 @@ const mojaloopPrepareToInternalTransfer = (external, quote, ilp, checkILP) => {
|
|
|
299
299
|
subScenario: quote.request.transactionType.subScenario,
|
|
300
300
|
note: quote.request.note
|
|
301
301
|
};
|
|
302
|
-
if (quote.internalRequest && quote.internalRequest.extensionList
|
|
303
|
-
internal.quoteRequestExtensions = [ ...quote.internalRequest.extensionList
|
|
302
|
+
if (quote.internalRequest && quote.internalRequest.extensionList) {
|
|
303
|
+
internal.quoteRequestExtensions = [ ...quote.internalRequest.extensionList ];
|
|
304
304
|
}
|
|
305
305
|
if (checkILP) {
|
|
306
306
|
internal.ilpPacket = { data: ilp.getTransactionObject(external.ilpPacket) };
|
|
@@ -132,7 +132,7 @@ describe('inboundModel', () => {
|
|
|
132
132
|
|
|
133
133
|
// check the extension list gets translated correctly to the mojaloop form
|
|
134
134
|
expect(MojaloopRequests.__putQuotes.mock.calls[0][1].extensionList)
|
|
135
|
-
.toStrictEqual(mockArgs.internalQuoteResponse.extensionList);
|
|
135
|
+
.toStrictEqual({ extension: [ ...mockArgs.internalQuoteResponse.extensionList ] });
|
|
136
136
|
});
|
|
137
137
|
|
|
138
138
|
test('adds a custom `expiration` property in case it is not defined.', async() => {
|
|
@@ -49,13 +49,16 @@
|
|
|
49
49
|
"subScenario": "SUBSCENARIO"
|
|
50
50
|
},
|
|
51
51
|
"extensionList": {
|
|
52
|
-
"extension": [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
"extension": [
|
|
53
|
+
{
|
|
54
|
+
"key": "qkey1",
|
|
55
|
+
"value": "qvalue1"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"key": "qkey2",
|
|
59
|
+
"value": "qvalue2"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
59
62
|
}
|
|
60
63
|
}
|
|
61
64
|
},
|
|
@@ -63,23 +66,23 @@
|
|
|
63
66
|
"quoteId": "fake-quote-id",
|
|
64
67
|
"transactionId": "fake-transaction-id",
|
|
65
68
|
"to": {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
"idType": "PERSONAL_ID",
|
|
70
|
+
"idValue": "123456789",
|
|
71
|
+
"idSubValue": "PASSPORT",
|
|
72
|
+
"fspId": "goldenpayeefsp",
|
|
73
|
+
"displayName": "Sridevi Miriyala",
|
|
74
|
+
"dateOfBirth": "2010-10-10",
|
|
75
|
+
"firstName": "Sridevi",
|
|
76
|
+
"lastName": "Miriyala"
|
|
74
77
|
},
|
|
75
78
|
"from": {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
"idType": "MSISDN",
|
|
80
|
+
"idValue": "17855501914",
|
|
81
|
+
"fspId": "mojaloop-sdk",
|
|
82
|
+
"displayName": "Murthy Kakarlamudi",
|
|
83
|
+
"dateOfBirth": "2010-10-10",
|
|
84
|
+
"firstName": "Murthy",
|
|
85
|
+
"lastName": "Kakarlamudi"
|
|
83
86
|
},
|
|
84
87
|
"amountType": "SEND",
|
|
85
88
|
"amount": 10,
|
|
@@ -89,15 +92,16 @@
|
|
|
89
92
|
"initiator": "PAYER",
|
|
90
93
|
"initiatorType": "CONSUMER",
|
|
91
94
|
"expiration": "2019-06-04T04:02:10.378Z",
|
|
92
|
-
"extensionList":
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
"extensionList": [
|
|
96
|
+
{
|
|
97
|
+
"key": "qkey1",
|
|
98
|
+
"value": "qvalue1"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"key": "qkey2",
|
|
102
|
+
"value": "qvalue2"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
101
105
|
},
|
|
102
106
|
"internalQuoteResponse": {
|
|
103
107
|
"transferAmount": 500,
|
|
@@ -108,15 +112,18 @@
|
|
|
108
112
|
"condition": "fH9pAYDQbmoZLPbvv3CSW2RfjU4jvM4ApG_fqGnR7Xs",
|
|
109
113
|
"expiration": "2019-11-12T09:02:10.378Z",
|
|
110
114
|
"isValid": 1,
|
|
111
|
-
"extensionList": [
|
|
115
|
+
"extensionList": [
|
|
116
|
+
{
|
|
112
117
|
"key": "qkey1",
|
|
113
118
|
"value": "qvalue1"
|
|
114
|
-
|
|
119
|
+
},
|
|
120
|
+
{
|
|
115
121
|
"key": "qkey2",
|
|
116
122
|
"value": "qvalue2"
|
|
117
|
-
|
|
123
|
+
}
|
|
124
|
+
]
|
|
118
125
|
},
|
|
119
|
-
"internalGetOTPResponse"
|
|
126
|
+
"internalGetOTPResponse": {
|
|
120
127
|
"value": "123456"
|
|
121
128
|
},
|
|
122
129
|
"fspId": "fake-fsp-id",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/sdk-scheme-adapter-outbound-command-event-handler",
|
|
3
|
-
"version": "0.3.0-snapshot.
|
|
3
|
+
"version": "0.3.0-snapshot.2",
|
|
4
4
|
"description": "Mojaloop sdk scheme adapter command event handler",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/mojaloop/sdk-scheme-adapter/",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"snapshot": "standard-version --no-verify --skip.changelog --prerelease snapshot --releaseCommitMessageFormat 'chore(snapshot): {{currentTag}}'"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@mojaloop/api-snippets": "
|
|
44
|
+
"@mojaloop/api-snippets": "17.7.11",
|
|
45
45
|
"@mojaloop/central-services-shared": "^18.17.0",
|
|
46
46
|
"@mojaloop/logging-bc-client-lib": "^0.5.8",
|
|
47
47
|
"@mojaloop/logging-bc-public-types-lib": "^0.5.4",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"yamljs": "^0.3.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@eslint/compat": "^1.2.
|
|
58
|
+
"@eslint/compat": "^1.2.6",
|
|
59
59
|
"@types/convict": "^6.1.6",
|
|
60
60
|
"@types/express": "^5.0.0",
|
|
61
61
|
"@types/jest": "^29.5.14",
|
|
62
|
-
"@types/node": "^22.
|
|
62
|
+
"@types/node": "^22.13.0",
|
|
63
63
|
"@types/node-cache": "^4.2.5",
|
|
64
64
|
"@types/supertest": "^6.0.2",
|
|
65
65
|
"@types/swagger-ui-express": "4.1.7",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/sdk-scheme-adapter-outbound-domain-event-handler",
|
|
3
|
-
"version": "0.3.0-snapshot.
|
|
3
|
+
"version": "0.3.0-snapshot.2",
|
|
4
4
|
"description": "mojaloop sdk scheme adapter outbound domain event handler",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/mojaloop/sdk-scheme-adapter/",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"snapshot": "standard-version --no-verify --skip.changelog --prerelease snapshot --releaseCommitMessageFormat 'chore(snapshot): {{currentTag}}'"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@mojaloop/api-snippets": "
|
|
44
|
+
"@mojaloop/api-snippets": "17.7.11",
|
|
45
45
|
"@mojaloop/logging-bc-client-lib": "^0.5.8",
|
|
46
46
|
"@mojaloop/logging-bc-public-types-lib": "^0.5.4",
|
|
47
47
|
"@mojaloop/sdk-scheme-adapter-private-shared-lib": "workspace:^",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@types/convict": "^6.1.6",
|
|
57
57
|
"@types/express": "^5.0.0",
|
|
58
58
|
"@types/jest": "^29.5.14",
|
|
59
|
-
"@types/node": "^22.
|
|
59
|
+
"@types/node": "^22.13.0",
|
|
60
60
|
"@types/node-cache": "^4.2.5",
|
|
61
61
|
"@types/supertest": "^6.0.2",
|
|
62
62
|
"@types/swagger-ui-express": "^4.1.7",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/sdk-scheme-adapter-private-shared-lib",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-snapshot.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@mojaloop/sdk-scheme-adapter-private-shared-lib",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.4.0-snapshot.1",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@mojaloop/api-snippets": "
|
|
12
|
+
"@mojaloop/api-snippets": "17.7.9",
|
|
13
13
|
"@mojaloop/central-services-shared": "^18.17.0",
|
|
14
14
|
"@mojaloop/logging-bc-public-types-lib": "^0.5.4",
|
|
15
15
|
"@mojaloop/platform-shared-lib-messaging-types-lib": "^0.7.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/sdk-scheme-adapter-private-shared-lib",
|
|
3
|
-
"version": "0.4.0-snapshot.
|
|
3
|
+
"version": "0.4.0-snapshot.2",
|
|
4
4
|
"description": "SDK Scheme Adapter private shared library.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/mojaloop/accounts-and-balances-bc/tree/main/modules/private-types",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"snapshot": "standard-version --no-verify --skip.changelog --prerelease snapshot --releaseCommitMessageFormat 'chore(snapshot): {{currentTag}}'"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@mojaloop/api-snippets": "
|
|
32
|
+
"@mojaloop/api-snippets": "17.7.11",
|
|
33
33
|
"@mojaloop/central-services-shared": "^18.17.0",
|
|
34
34
|
"@mojaloop/logging-bc-public-types-lib": "^0.5.4",
|
|
35
35
|
"@mojaloop/platform-shared-lib-messaging-types-lib": "^0.7.1",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"uuid": "^11.0.5"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@eslint/compat": "^1.2.
|
|
43
|
-
"@types/node": "^22.
|
|
42
|
+
"@eslint/compat": "^1.2.6",
|
|
43
|
+
"@types/node": "^22.13.0",
|
|
44
44
|
"@types/uuid": "^10.0.0",
|
|
45
45
|
"@typescript-eslint/eslint-plugin": "^8.22.0",
|
|
46
46
|
"@typescript-eslint/parser": "^8.22.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/sdk-scheme-adapter",
|
|
3
|
-
"version": "25.0.0-snapshot.
|
|
3
|
+
"version": "25.0.0-snapshot.2",
|
|
4
4
|
"description": "mojaloop sdk-scheme-adapter",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/mojaloop/sdk-scheme-adapter",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@types/jest": "^29.5.14",
|
|
85
|
-
"@types/node": "^22.
|
|
85
|
+
"@types/node": "^22.13.0",
|
|
86
86
|
"@types/node-cache": "^4.2.5",
|
|
87
87
|
"@typescript-eslint/eslint-plugin": "^8.22.0",
|
|
88
88
|
"@typescript-eslint/parser": "^8.22.0",
|