@mojaloop/sdk-scheme-adapter 24.6.0 → 24.6.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.
Files changed (20) hide show
  1. package/.yarn/cache/{@grpc-grpc-js-npm-1.13.0-8a179eeb73-5153924bd9.zip → @grpc-grpc-js-npm-1.13.1-f86f03d07c-ee6d61bd14.zip} +0 -0
  2. package/.yarn/cache/{@mojaloop-event-sdk-npm-14.3.2-ff892a5f55-372ff7a256.zip → @mojaloop-event-sdk-npm-14.4.0-b9c6d842fb-0bcd36c533.zip} +0 -0
  3. package/.yarn/cache/@mojaloop-ml-schema-transformer-lib-npm-2.6.0-6b700210d0-93fb6590d3.zip +0 -0
  4. package/.yarn/cache/@rollup-rollup-linux-x64-musl-npm-4.37.0-51462d4265-8.zip +0 -0
  5. package/.yarn/cache/{@types-node-npm-22.13.11-07edd664a8-82d8e0ff38.zip → @types-node-npm-22.13.13-b6310cb3a6-763c120725.zip} +0 -0
  6. package/.yarn/cache/{@types-supertest-npm-6.0.2-1f239669e4-1eafa47266.zip → @types-supertest-npm-6.0.3-0d43ae5953-5f75e41906.zip} +0 -0
  7. package/.yarn/cache/ts-jest-npm-29.3.0-8cb17d4807-791f39ba74.zip +0 -0
  8. package/.yarn/cache/type-fest-npm-4.37.0-91bfb2c937-303f34778e.zip +0 -0
  9. package/.yarn/install-state.gz +0 -0
  10. package/CHANGELOG.md +14 -0
  11. package/modules/api-svc/package.json +2 -2
  12. package/modules/api-svc/src/lib/model/AccountsModel.js +1 -7
  13. package/modules/api-svc/test/unit/api/accounts/accounts.test.js +0 -11
  14. package/modules/api-svc/test/unit/inboundApi/data/isoBodies.json +1 -1
  15. package/modules/outbound-command-event-handler/package.json +3 -3
  16. package/modules/outbound-domain-event-handler/package.json +3 -3
  17. package/modules/private-shared-lib/package.json +2 -2
  18. package/package.json +3 -3
  19. package/.yarn/cache/ts-jest-npm-29.2.6-81e5c09384-ff71b27e99.zip +0 -0
  20. package/modules/api-svc/test/unit/api/accounts/data/postAccountsSuccessResponseWithError1.json +0 -34
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.2](https://github.com/mojaloop/sdk-scheme-adapter/compare/v24.6.1...v24.6.2) (2025-03-24)
3
+
4
+
5
+ ### Chore
6
+
7
+ * remove misleading currency response ([#568](https://github.com/mojaloop/sdk-scheme-adapter/issues/568)) ([3792454](https://github.com/mojaloop/sdk-scheme-adapter/commit/3792454ba6334870f0f284bf58ddf94f18c1f337))
8
+
9
+ ### [24.6.1](https://github.com/mojaloop/sdk-scheme-adapter/compare/v24.6.0...v24.6.1) (2025-03-24)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * datetime property ([#566](https://github.com/mojaloop/sdk-scheme-adapter/issues/566)) ([6c400df](https://github.com/mojaloop/sdk-scheme-adapter/commit/6c400dfd593cf14642d7931f856d4a8b75a53617))
15
+
2
16
  ## [24.6.0](https://github.com/mojaloop/sdk-scheme-adapter/compare/v24.5.0...v24.6.0) (2025-03-24)
3
17
 
4
18
 
@@ -69,9 +69,9 @@
69
69
  "@mojaloop/central-services-logger": "11.7.0",
70
70
  "@mojaloop/central-services-metrics": "12.5.0",
71
71
  "@mojaloop/central-services-shared": "18.23.0",
72
- "@mojaloop/event-sdk": "14.3.2",
72
+ "@mojaloop/event-sdk": "14.4.0",
73
73
  "@mojaloop/logging-bc-client-lib": "0.5.8",
74
- "@mojaloop/ml-schema-transformer-lib": "2.5.8",
74
+ "@mojaloop/ml-schema-transformer-lib": "2.6.0",
75
75
  "@mojaloop/sdk-scheme-adapter-private-shared-lib": "workspace:^",
76
76
  "@mojaloop/sdk-standard-components": "19.11.0",
77
77
  "ajv": "8.17.1",
@@ -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, Errors } = require('@mojaloop/sdk-standard-components');
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
  () => {
@@ -177,7 +177,7 @@
177
177
  },
178
178
  "AccptncDtTm": "2024-10-25T15:34:49.305Z",
179
179
  "PrcgDt": {
180
- "Dt": "2024-10-25T15:34:49.305Z"
180
+ "DtTm": "2024-10-25T15:34:49.305Z"
181
181
  },
182
182
  "AcctSvcrRef": "ACCTSVCRREF",
183
183
  "ClrSysRef": "CLRSYSREF",
@@ -60,9 +60,9 @@
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.11",
63
+ "@types/node": "22.13.13",
64
64
  "@types/node-cache": "4.2.5",
65
- "@types/supertest": "6.0.2",
65
+ "@types/supertest": "6.0.3",
66
66
  "@types/swagger-ui-express": "4.1.8",
67
67
  "@types/yamljs": "0.2.34",
68
68
  "@typescript-eslint/eslint-plugin": "8.27.0",
@@ -74,7 +74,7 @@
74
74
  "npm-check-updates": "16.7.10",
75
75
  "replace": "1.2.2",
76
76
  "standard-version": "9.5.0",
77
- "ts-jest": "29.2.6",
77
+ "ts-jest": "29.3.0",
78
78
  "ts-node": "10.9.2",
79
79
  "typescript": "5.8.2"
80
80
  },
@@ -57,9 +57,9 @@
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.11",
60
+ "@types/node": "22.13.13",
61
61
  "@types/node-cache": "4.2.5",
62
- "@types/supertest": "6.0.2",
62
+ "@types/supertest": "6.0.3",
63
63
  "@types/swagger-ui-express": "4.1.8",
64
64
  "@types/yamljs": "0.2.34",
65
65
  "@typescript-eslint/eslint-plugin": "8.27.0",
@@ -71,7 +71,7 @@
71
71
  "npm-check-updates": "16.7.10",
72
72
  "replace": "1.2.2",
73
73
  "standard-version": "9.5.0",
74
- "ts-jest": "29.2.6",
74
+ "ts-jest": "29.3.0",
75
75
  "ts-node": "10.9.2",
76
76
  "typescript": "5.8.2"
77
77
  },
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@eslint/compat": "1.2.7",
43
- "@types/node": "22.13.11",
43
+ "@types/node": "22.13.13",
44
44
  "@types/uuid": "10.0.0",
45
45
  "@typescript-eslint/eslint-plugin": "8.27.0",
46
46
  "@typescript-eslint/parser": "8.27.0",
@@ -49,7 +49,7 @@
49
49
  "npm-check-updates": "16.7.10",
50
50
  "replace": "1.2.2",
51
51
  "standard-version": "9.5.0",
52
- "ts-jest": "29.2.6",
52
+ "ts-jest": "29.3.0",
53
53
  "tslib": "2.8.1",
54
54
  "typescript": "5.8.2"
55
55
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter",
3
- "version": "24.6.0",
3
+ "version": "24.6.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.13.11",
85
+ "@types/node": "22.13.13",
86
86
  "@types/node-cache": "4.2.5",
87
87
  "@typescript-eslint/eslint-plugin": "8.27.0",
88
88
  "@typescript-eslint/parser": "8.27.0",
@@ -96,7 +96,7 @@
96
96
  "npm-check-updates": "16.7.10",
97
97
  "replace": "1.2.2",
98
98
  "standard-version": "9.5.0",
99
- "ts-jest": "29.2.6",
99
+ "ts-jest": "29.3.0",
100
100
  "ts-node": "10.9.2",
101
101
  "typescript": "5.8.2",
102
102
  "yarn-audit-fix": "10.1.1"
@@ -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
- }