account-lookup-service 17.0.3 → 17.2.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.
Files changed (122) hide show
  1. package/.circleci/config.yml +2 -1
  2. package/CHANGELOG.md +24 -0
  3. package/docker-compose.yml +8 -2
  4. package/jest.config.js +1 -0
  5. package/migrations/01_currency.js +5 -5
  6. package/migrations/02_endpointType.js +5 -5
  7. package/migrations/03_endpointType-indexes.js +5 -5
  8. package/migrations/04_partyIdType.js +5 -5
  9. package/migrations/05_partyIdType-indexes.js +5 -5
  10. package/migrations/08_oracleEndpoint.js +5 -5
  11. package/migrations/09_oracleEndpoint-indexes.js +5 -5
  12. package/migrations/10_oracleEndpoint-remove-constraints.js +5 -5
  13. package/package.json +17 -16
  14. package/scripts/_wait4_all.js +3 -1
  15. package/seeds/currency.js +5 -5
  16. package/seeds/endpointType.js +4 -4
  17. package/seeds/partyIdType.js +4 -4
  18. package/src/api/endpointcache.js +4 -4
  19. package/src/api/health.js +4 -4
  20. package/src/api/index.js +4 -4
  21. package/src/api/oracles/{ID}.js +31 -6
  22. package/src/api/oracles.js +33 -7
  23. package/src/api/participants/{ID}/error.js +5 -5
  24. package/src/api/participants/{ID}.js +5 -5
  25. package/src/api/participants/{Type}/{ID}/error.js +22 -6
  26. package/src/api/participants/{Type}/{ID}/{SubId}/error.js +5 -5
  27. package/src/api/participants/{Type}/{ID}/{SubId}.js +99 -5
  28. package/src/api/participants/{Type}/{ID}.js +83 -10
  29. package/src/api/participants.js +19 -6
  30. package/src/api/parties/{Type}/{ID}/error.js +20 -6
  31. package/src/api/parties/{Type}/{ID}/{SubId}/error.js +32 -7
  32. package/src/api/parties/{Type}/{ID}/{SubId}.js +55 -7
  33. package/src/api/parties/{Type}/{ID}.js +37 -10
  34. package/src/api/routes.js +5 -5
  35. package/src/domain/oracle/index.js +5 -5
  36. package/src/domain/oracle/oracle.js +11 -45
  37. package/src/domain/participants/index.js +5 -5
  38. package/src/domain/participants/participants.js +20 -59
  39. package/src/domain/parties/getPartiesByTypeAndID.js +9 -14
  40. package/src/domain/parties/index.js +5 -5
  41. package/src/domain/parties/parties.js +12 -23
  42. package/src/domain/timeout/dto.js +14 -2
  43. package/src/domain/timeout/index.js +6 -12
  44. package/src/handlers/TimeoutHandler.js +3 -3
  45. package/src/handlers/index.js +3 -3
  46. package/src/handlers/register.js +3 -3
  47. package/src/index.js +4 -4
  48. package/src/interface/admin-swagger.yaml +4 -0
  49. package/src/interface/admin_swagger.json +902 -900
  50. package/src/interface/api_swagger.json +2824 -2824
  51. package/src/interface/thirdparty/admin-swagger.yaml +2 -2
  52. package/src/interface/thirdparty/admin_swagger.json +902 -902
  53. package/src/interface/thirdparty/api_swagger.json +2917 -2917
  54. package/src/lib/argv.js +5 -5
  55. package/src/lib/cache.js +5 -5
  56. package/src/lib/config.js +5 -5
  57. package/src/lib/db.js +5 -5
  58. package/src/lib/headers.js +5 -5
  59. package/src/lib/healthCheck/subServiceHealth.js +5 -5
  60. package/src/lib/util.js +20 -2
  61. package/src/models/currency/currency.js +7 -16
  62. package/src/models/currency/index.js +5 -5
  63. package/src/models/endpointType/endpointType.js +7 -16
  64. package/src/models/endpointType/index.js +5 -5
  65. package/src/models/misc/migrationLock.js +5 -5
  66. package/src/models/oracle/facade.js +5 -5
  67. package/src/models/oracle/index.js +5 -5
  68. package/src/models/oracle/oracleEndpoint.js +17 -71
  69. package/src/models/oracle/oracleEndpointCached.js +5 -5
  70. package/src/models/participantEndpoint/facade.js +5 -5
  71. package/src/models/partyIdType/index.js +5 -5
  72. package/src/models/partyIdType/partyIdType.js +7 -16
  73. package/src/plugins.js +4 -4
  74. package/src/server.js +8 -12
  75. package/test/integration/api/parties.test.js +5 -5
  76. package/test/integration/domain/oracle/index.test.js +23 -5
  77. package/test/integration/domain/timeout/index.test.js +1 -1
  78. package/test/integration/models/currency/currency.test.js +5 -5
  79. package/test/integration/plugins.test.js +5 -5
  80. package/test/unit/api/health.test.js +5 -5
  81. package/test/unit/api/oracles/{ID}.test.js +5 -5
  82. package/test/unit/api/oracles.test.js +5 -5
  83. package/test/unit/api/participants/participants.test.js +5 -5
  84. package/test/unit/api/participants/{Type}/{ID}/error.test.js +7 -5
  85. package/test/unit/api/participants/{Type}/{ID}/{SubId}/error.test.js +5 -5
  86. package/test/unit/api/participants/{Type}/{ID}/{SubId}.test.js +5 -5
  87. package/test/unit/api/participants/{Type}/{ID}.test.js +5 -5
  88. package/test/unit/api/participants.test.js +5 -5
  89. package/test/unit/api/parties/endpointcache.test.js +5 -5
  90. package/test/unit/api/parties/parties.test.js +5 -5
  91. package/test/unit/api/parties/{Type}/{ID}/error.test.js +8 -6
  92. package/test/unit/api/parties/{Type}/{ID}/{SubId}/error.test.js +15 -5
  93. package/test/unit/api/parties/{Type}/{ID}/{SubId}.test.js +5 -5
  94. package/test/unit/api/parties/{Type}/{ID}.test.js +5 -5
  95. package/test/unit/domain/oracle/oracle.test.js +5 -5
  96. package/test/unit/domain/participants/participants.test.js +6 -6
  97. package/test/unit/domain/parties/parties.test.js +8 -8
  98. package/test/unit/domain/parties/utils.test.js +5 -5
  99. package/test/unit/domain/timeout/index.test.js +3 -3
  100. package/test/unit/handlers/TimeoutHandler.test.js +3 -3
  101. package/test/unit/handlers/index.test.js +3 -3
  102. package/test/unit/handlers/register.test.js +3 -3
  103. package/test/unit/index.test.js +5 -5
  104. package/test/unit/iso20022/partiesValidation.test.js +5 -5
  105. package/test/unit/lib/argv.test.js +5 -5
  106. package/test/unit/lib/config.test.js +5 -5
  107. package/test/unit/lib/healthCheck/subServiceHealth.test.js +5 -5
  108. package/test/unit/lib/migrator.test.js +5 -5
  109. package/test/unit/lib/util.test.js +5 -5
  110. package/test/unit/mocks.js +3 -3
  111. package/test/unit/models/currency/currency.test.js +5 -5
  112. package/test/unit/models/endpointType/endpointType.test.js +5 -5
  113. package/test/unit/models/misc/migrationLock.test.js +5 -5
  114. package/test/unit/models/oracle/facade.test.js +5 -5
  115. package/test/unit/models/oracle/oracleEndpoint.test.js +5 -5
  116. package/test/unit/models/oracle/oracleEndpointCached.test.js +5 -5
  117. package/test/unit/models/participantEndpoint/facade.test.js +5 -5
  118. package/test/unit/models/partyIdType/partyIdType.test.js +5 -5
  119. package/test/unit/plugins.test.js +5 -5
  120. package/test/util/helper.js +5 -5
  121. package/test/util/mockgen.js +5 -5
  122. package/test/util/testConfig.js +5 -5
@@ -1,11 +1,12 @@
1
1
  version: 2.1
2
2
  setup: true
3
3
  orbs:
4
- build: mojaloop/build@1.0.27
4
+ build: mojaloop/build@1.0.55
5
5
  workflows:
6
6
  setup:
7
7
  jobs:
8
8
  - build/workflow:
9
+ context: org-global
9
10
  filters:
10
11
  tags:
11
12
  only: /v\d+(\.\d+){2}(-[a-zA-Z-][0-9a-zA-Z-]*\.\d+)?/
package/CHANGELOG.md CHANGED
@@ -2,6 +2,30 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [17.2.0](https://github.com/mojaloop/account-lookup-service/compare/v17.1.0...v17.2.0) (2025-02-26)
6
+
7
+
8
+ ### Features
9
+
10
+ * update count metrics, fix int, update oracle code null currency ([#526](https://github.com/mojaloop/account-lookup-service/issues/526)) ([62167a5](https://github.com/mojaloop/account-lookup-service/commit/62167a5357b800af93bc0c4d950c0efbc6850a82))
11
+
12
+ ## [17.1.0](https://github.com/mojaloop/account-lookup-service/compare/v17.0.3...v17.1.0) (2025-02-20)
13
+
14
+
15
+ ### Features
16
+
17
+ * refactor audits ([#524](https://github.com/mojaloop/account-lookup-service/issues/524)) ([b02d396](https://github.com/mojaloop/account-lookup-service/commit/b02d396dd914c00bb3f0db7f046c5978a0d522b4))
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * add consent oracle and update license ([#525](https://github.com/mojaloop/account-lookup-service/issues/525)) ([18128dc](https://github.com/mojaloop/account-lookup-service/commit/18128dc8586fcb384b5505ab6ab7383c53a95488))
23
+
24
+
25
+ ### Chore
26
+
27
+ * update build orb to version 1.0.50 and add context to workflow ([#523](https://github.com/mojaloop/account-lookup-service/issues/523)) ([868c9b3](https://github.com/mojaloop/account-lookup-service/commit/868c9b32a3ca222a7cb46b1ed4fdd8bff839cd89))
28
+
5
29
  ### [17.0.3](https://github.com/mojaloop/account-lookup-service/compare/v17.0.2...v17.0.3) (2025-01-28)
6
30
 
7
31
 
@@ -46,10 +46,15 @@ services:
46
46
  command:
47
47
  - "sh"
48
48
  - "-c"
49
- - "sh /opt/wait-for/wait-for-account-lookup-service.sh && node src/index.js server"
49
+ - "npm run start:apiAndAdmin"
50
50
  ports:
51
51
  - "4001:4001"
52
52
  - "4002:4002"
53
+ depends_on:
54
+ mysql-als:
55
+ condition: service_healthy
56
+ central-ledger:
57
+ condition: service_healthy
53
58
  healthcheck:
54
59
  test: ["CMD", "sh", "-c" ,"apk --no-cache add curl", ";", "curl", "http://localhost:4001/health"]
55
60
  timeout: 20s
@@ -64,7 +69,8 @@ services:
64
69
  - "-c"
65
70
  - "node src/handlers/index.js h --timeout"
66
71
  depends_on:
67
- - redis-node-0
72
+ account-lookup-service:
73
+ condition: service_healthy
68
74
  ports:
69
75
  - "4003:4003"
70
76
  healthcheck:
package/jest.config.js CHANGED
@@ -13,6 +13,7 @@ module.exports = {
13
13
  lines: 90
14
14
  }
15
15
  },
16
+ maxWorkers: '50%',
16
17
  setupFiles: ['<rootDir>/test/unit/setup.js'],
17
18
  testMatch: ['<rootDir>/test/unit/**/*.test.js']
18
19
  }
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the 2020-2025 Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
  http://www.apache.org/licenses/LICENSE-2.0
7
7
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
8
  Contributors
@@ -12,11 +12,11 @@
12
12
  should be listed with a '*' in the first column. People who have
13
13
  contributed from an organization can be listed under the organization
14
14
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
15
+ Mojaloop Foundation organization for an example). Those individuals should have
16
16
  their names indented and be marked with a '-'. Email address can be added
17
17
  optionally within square brackets <email>.
18
- * Gates Foundation
19
- - Name Surname <name.surname@gatesfoundation.com>
18
+ * Mojaloop Foundation
19
+ - Name Surname <name.surname@mojaloop.io>
20
20
 
21
21
  * Georgi Georgiev <georgi.georgiev@modusbox.com>
22
22
  --------------
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the 2020-2025 Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
  http://www.apache.org/licenses/LICENSE-2.0
7
7
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
8
  Contributors
@@ -12,11 +12,11 @@
12
12
  should be listed with a '*' in the first column. People who have
13
13
  contributed from an organization can be listed under the organization
14
14
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
15
+ Mojaloop Foundation organization for an example). Those individuals should have
16
16
  their names indented and be marked with a '-'. Email address can be added
17
17
  optionally within square brackets <email>.
18
- * Gates Foundation
19
- - Name Surname <name.surname@gatesfoundation.com>
18
+ * Mojaloop Foundation
19
+ - Name Surname <name.surname@mojaloop.io>
20
20
 
21
21
  * Rajiv Mothilal <rajiv.mothilal@modusbox.com>
22
22
  --------------
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the 2020-2025 Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
  http://www.apache.org/licenses/LICENSE-2.0
7
7
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
8
  Contributors
@@ -12,11 +12,11 @@
12
12
  should be listed with a '*' in the first column. People who have
13
13
  contributed from an organization can be listed under the organization
14
14
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
15
+ Mojaloop Foundation organization for an example). Those individuals should have
16
16
  their names indented and be marked with a '-'. Email address can be added
17
17
  optionally within square brackets <email>.
18
- * Gates Foundation
19
- - Name Surname <name.surname@gatesfoundation.com>
18
+ * Mojaloop Foundation
19
+ - Name Surname <name.surname@mojaloop.io>
20
20
 
21
21
  * Rajiv Mothilal <rajiv.mothilal@modusbox.com>
22
22
  --------------
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the 2020-2025 Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
  http://www.apache.org/licenses/LICENSE-2.0
7
7
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
8
  Contributors
@@ -12,11 +12,11 @@
12
12
  should be listed with a '*' in the first column. People who have
13
13
  contributed from an organization can be listed under the organization
14
14
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
15
+ Mojaloop Foundation organization for an example). Those individuals should have
16
16
  their names indented and be marked with a '-'. Email address can be added
17
17
  optionally within square brackets <email>.
18
- * Gates Foundation
19
- - Name Surname <name.surname@gatesfoundation.com>
18
+ * Mojaloop Foundation
19
+ - Name Surname <name.surname@mojaloop.io>
20
20
 
21
21
  * Rajiv Mothilal <rajiv.mothilal@modusbox.com>
22
22
  --------------
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the 2020-2025 Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
  http://www.apache.org/licenses/LICENSE-2.0
7
7
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
8
  Contributors
@@ -12,11 +12,11 @@
12
12
  should be listed with a '*' in the first column. People who have
13
13
  contributed from an organization can be listed under the organization
14
14
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
15
+ Mojaloop Foundation organization for an example). Those individuals should have
16
16
  their names indented and be marked with a '-'. Email address can be added
17
17
  optionally within square brackets <email>.
18
- * Gates Foundation
19
- - Name Surname <name.surname@gatesfoundation.com>
18
+ * Mojaloop Foundation
19
+ - Name Surname <name.surname@mojaloop.io>
20
20
 
21
21
  * Rajiv Mothilal <rajiv.mothilal@modusbox.com>
22
22
 
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the 2020-2025 Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
  http://www.apache.org/licenses/LICENSE-2.0
7
7
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
8
  Contributors
@@ -12,11 +12,11 @@
12
12
  should be listed with a '*' in the first column. People who have
13
13
  contributed from an organization can be listed under the organization
14
14
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
15
+ Mojaloop Foundation organization for an example). Those individuals should have
16
16
  their names indented and be marked with a '-'. Email address can be added
17
17
  optionally within square brackets <email>.
18
- * Gates Foundation
19
- - Name Surname <name.surname@gatesfoundation.com>
18
+ * Mojaloop Foundation
19
+ - Name Surname <name.surname@mojaloop.io>
20
20
 
21
21
  * Rajiv Mothilal <rajiv.mothilal@modusbox.com>
22
22
 
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the 2020-2025 Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
  http://www.apache.org/licenses/LICENSE-2.0
7
7
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
8
  Contributors
@@ -12,11 +12,11 @@
12
12
  should be listed with a '*' in the first column. People who have
13
13
  contributed from an organization can be listed under the organization
14
14
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
15
+ Mojaloop Foundation organization for an example). Those individuals should have
16
16
  their names indented and be marked with a '-'. Email address can be added
17
17
  optionally within square brackets <email>.
18
- * Gates Foundation
19
- - Name Surname <name.surname@gatesfoundation.com>
18
+ * Mojaloop Foundation
19
+ - Name Surname <name.surname@mojaloop.io>
20
20
 
21
21
  * Rajiv Mothilal <rajiv.mothilal@modusbox.com>
22
22
 
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the 2020-2025 Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
  http://www.apache.org/licenses/LICENSE-2.0
7
7
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
8
  Contributors
@@ -12,11 +12,11 @@
12
12
  should be listed with a '*' in the first column. People who have
13
13
  contributed from an organization can be listed under the organization
14
14
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
15
+ Mojaloop Foundation organization for an example). Those individuals should have
16
16
  their names indented and be marked with a '-'. Email address can be added
17
17
  optionally within square brackets <email>.
18
- * Gates Foundation
19
- - Name Surname <name.surname@gatesfoundation.com>
18
+ * Mojaloop Foundation
19
+ - Name Surname <name.surname@mojaloop.io>
20
20
 
21
21
  * Kevin Leyow <kevin.leyow@modusbox.com>
22
22
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "account-lookup-service",
3
3
  "description": "Account Lookup Service is used to validate Party and Participant lookups.",
4
- "version": "17.0.3",
4
+ "version": "17.2.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "ModusBox",
7
7
  "contributors": [
@@ -40,6 +40,7 @@
40
40
  "scripts": {
41
41
  "start": "LOG_LEVEL=debug node src/index.js server",
42
42
  "start:all": "run-p start:api start:admin start:handlers",
43
+ "start:apiAndAdmin": "run-p start:api start:admin",
43
44
  "start:api": "node src/index.js server --api",
44
45
  "start:admin": "node src/index.js server --admin",
45
46
  "start:handlers": "node src/handlers/index.js handlers --timeout",
@@ -49,7 +50,7 @@
49
50
  "lint:fix": "npm run standard:fix",
50
51
  "dev": "nodemon src/index.js server",
51
52
  "test": "npm run test:unit",
52
- "test:unit": "NODE_OPTIONS='--experimental-vm-modules' jest --runInBand",
53
+ "test:unit": "NODE_OPTIONS='--experimental-vm-modules --max-old-space-size=8192' jest --runInBand",
53
54
  "test:coverage": "npm test -- --coverage --coverageThreshold='{}'",
54
55
  "test:coverage-check": "npm test -- --coverage",
55
56
  "test:junit": "npm test -- --reporters=default --reporters=jest-junit",
@@ -90,23 +91,23 @@
90
91
  "@hapi/hapi": "21.3.12",
91
92
  "@hapi/inert": "7.1.0",
92
93
  "@hapi/vision": "7.0.3",
93
- "@mojaloop/central-services-error-handling": "13.0.4",
94
- "@mojaloop/central-services-health": "15.0.2",
95
- "@mojaloop/central-services-logger": "11.5.4",
96
- "@mojaloop/central-services-metrics": "12.4.4",
97
- "@mojaloop/central-services-shared": "18.16.2",
98
- "@mojaloop/central-services-stream": "11.4.3",
99
- "@mojaloop/database-lib": "11.1.2",
100
- "@mojaloop/event-sdk": "14.1.3",
101
- "@mojaloop/inter-scheme-proxy-cache-lib": "2.3.1",
102
- "@mojaloop/ml-schema-transformer-lib": "2.5.2",
103
- "@mojaloop/sdk-standard-components": "19.6.4",
94
+ "@mojaloop/central-services-error-handling": "13.0.6",
95
+ "@mojaloop/central-services-health": "15.0.4",
96
+ "@mojaloop/central-services-logger": "11.5.5",
97
+ "@mojaloop/central-services-metrics": "12.4.5",
98
+ "@mojaloop/central-services-shared": "18.19.0",
99
+ "@mojaloop/central-services-stream": "11.5.1",
100
+ "@mojaloop/database-lib": "11.1.3",
101
+ "@mojaloop/event-sdk": "14.1.5",
102
+ "@mojaloop/inter-scheme-proxy-cache-lib": "2.3.3",
103
+ "@mojaloop/ml-schema-transformer-lib": "2.5.4",
104
+ "@mojaloop/sdk-standard-components": "19.7.0",
104
105
  "@now-ims/hapi-now-auth": "2.1.0",
105
106
  "ajv": "8.17.1",
106
107
  "ajv-keywords": "5.1.0",
107
108
  "blipp": "4.0.2",
108
109
  "commander": "13.1.0",
109
- "cron": "3.5.0",
110
+ "cron": "4.1.0",
110
111
  "fast-safe-stringify": "^2.1.1",
111
112
  "hapi-auth-bearer-token": "8.0.0",
112
113
  "joi": "17.13.3",
@@ -162,7 +163,7 @@
162
163
  "devDependencies": {
163
164
  "@types/jest": "29.5.14",
164
165
  "audit-ci": "^7.1.0",
165
- "axios": "1.7.9",
166
+ "axios": "1.8.1",
166
167
  "axios-retry": "^4.5.0",
167
168
  "docdash": "2.0.2",
168
169
  "dotenv": "^16.4.7",
@@ -172,7 +173,7 @@
172
173
  "jest-junit": "16.0.0",
173
174
  "jsdoc": "4.0.4",
174
175
  "nodemon": "3.1.9",
175
- "npm-check-updates": "17.1.14",
176
+ "npm-check-updates": "17.1.15",
176
177
  "nyc": "17.1.0",
177
178
  "pre-commit": "1.2.2",
178
179
  "proxyquire": "2.1.3",
@@ -12,7 +12,9 @@ const expectedContainers = [
12
12
  'als_mysql',
13
13
  'als_kafka',
14
14
  'als_mysql_central_ledger',
15
- 'als_central-ledger'
15
+ 'als_central-ledger',
16
+ 'als_account-lookup-service',
17
+ 'als_account-lookup-service-handlers'
16
18
  // ## NOTE: These are not needed for Integration Tests
17
19
  // 'kowl'
18
20
  ]
package/seeds/currency.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the 2020-2025 Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
  http://www.apache.org/licenses/LICENSE-2.0
7
7
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
8
  Contributors
@@ -12,11 +12,11 @@
12
12
  should be listed with a '*' in the first column. People who have
13
13
  contributed from an organization can be listed under the organization
14
14
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
15
+ Mojaloop Foundation organization for an example). Those individuals should have
16
16
  their names indented and be marked with a '-'. Email address can be added
17
17
  optionally within square brackets <email>.
18
- * Gates Foundation
19
- - Name Surname <name.surname@gatesfoundation.com>
18
+ * Mojaloop Foundation
19
+ - Name Surname <name.surname@mojaloop.io>
20
20
 
21
21
  * Georgi Georgiev <georgi.georgiev@modusbox.com>
22
22
  --------------
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the 2020-2025 Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
  http://www.apache.org/licenses/LICENSE-2.0
7
7
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
8
  Contributors
@@ -12,10 +12,10 @@
12
12
  should be listed with a '*' in the first column. People who have
13
13
  contributed from an organization can be listed under the organization
14
14
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
15
+ Mojaloop Foundation organization for an example). Those individuals should have
16
16
  their names indented and be marked with a '-'. Email address can be added
17
17
  optionally within square brackets <email>.
18
- * Gates Foundation
18
+ * Mojaloop Foundation
19
19
 
20
20
  * Rajiv Mothilal <rajiv.mothilal@modusbox.com>
21
21
 
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the 2020-2025 Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
  http://www.apache.org/licenses/LICENSE-2.0
7
7
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
8
  Contributors
@@ -12,10 +12,10 @@
12
12
  should be listed with a '*' in the first column. People who have
13
13
  contributed from an organization can be listed under the organization
14
14
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
15
+ Mojaloop Foundation organization for an example). Those individuals should have
16
16
  their names indented and be marked with a '-'. Email address can be added
17
17
  optionally within square brackets <email>.
18
- * Gates Foundation
18
+ * Mojaloop Foundation
19
19
 
20
20
  * Rajiv Mothilal <rajiv.mothilal@modusbox.com>
21
21
 
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the 2020-2025 Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
  http://www.apache.org/licenses/LICENSE-2.0
7
7
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
8
  Contributors
@@ -12,10 +12,10 @@
12
12
  should be listed with a '*' in the first column. People who have
13
13
  contributed from an organization can be listed under the organization
14
14
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
15
+ Mojaloop Foundation organization for an example). Those individuals should have
16
16
  their names indented and be marked with a '-'. Email address can be added
17
17
  optionally within square brackets <email>.
18
- * Gates Foundation
18
+ * Mojaloop Foundation
19
19
 
20
20
  * Juan Correa <juan.correa@modusbox.com>
21
21
 
package/src/api/health.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the 2020-2025 Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
  http://www.apache.org/licenses/LICENSE-2.0
7
7
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
8
  Contributors
@@ -12,10 +12,10 @@
12
12
  should be listed with a '*' in the first column. People who have
13
13
  contributed from an organization can be listed under the organization
14
14
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
15
+ Mojaloop Foundation organization for an example). Those individuals should have
16
16
  their names indented and be marked with a '-'. Email address can be added
17
17
  optionally within square brackets <email>.
18
- * Gates Foundation
18
+ * Mojaloop Foundation
19
19
 
20
20
  * Rajiv Mothilal <rajiv.mothilal@modusbox.com>
21
21
  * Steven Oderayi <steven.oderayi@mousbox.com>
package/src/api/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the 2020-2025 Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
  http://www.apache.org/licenses/LICENSE-2.0
7
7
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
8
  Contributors
@@ -12,10 +12,10 @@
12
12
  should be listed with a '*' in the first column. People who have
13
13
  contributed from an organization can be listed under the organization
14
14
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
15
+ Mojaloop Foundation organization for an example). Those individuals should have
16
16
  their names indented and be marked with a '-'. Email address can be added
17
17
  optionally within square brackets <email>.
18
- * Gates Foundation
18
+ * Mojaloop Foundation
19
19
 
20
20
  * ModusBox
21
21
  - Rajiv Mothilal <rajiv.mothilal@modusbox.com>
@@ -1,8 +1,8 @@
1
1
  /*****
2
2
  License
3
3
  --------------
4
- Copyright © 2017 Bill & Melinda Gates Foundation
5
- The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
4
+ Copyright © 2020-2025 Mojaloop Foundation
5
+ The Mojaloop files are made available by the 2020-2025 Mojaloop Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
6
  http://www.apache.org/licenses/LICENSE-2.0
7
7
  Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
8
  Contributors
@@ -12,10 +12,10 @@
12
12
  should be listed with a '*' in the first column. People who have
13
13
  contributed from an organization can be listed under the organization
14
14
  that actually holds the copyright for their contributions (see the
15
- Gates Foundation organization for an example). Those individuals should have
15
+ Mojaloop Foundation organization for an example). Those individuals should have
16
16
  their names indented and be marked with a '-'. Email address can be added
17
17
  optionally within square brackets <email>.
18
- * Gates Foundation
18
+ * Mojaloop Foundation
19
19
 
20
20
  * Rajiv Mothilal <rajiv.mothilal@modusbox.com>
21
21
 
@@ -25,6 +25,7 @@
25
25
  'use strict'
26
26
 
27
27
  const ErrorHandler = require('@mojaloop/central-services-error-handling')
28
+ const EventFrameworkUtil = require('@mojaloop/central-services-shared').Util.EventFramework
28
29
  const Enum = require('@mojaloop/central-services-shared').Enum
29
30
  const EventSdk = require('@mojaloop/event-sdk')
30
31
  const Logger = require('@mojaloop/central-services-logger')
@@ -49,9 +50,21 @@ module.exports = {
49
50
  'Ingress: Update oracle details by Id',
50
51
  ['success']
51
52
  ).startTimer()
52
- const span = request.span
53
+ const { params, method, path, span } = request
53
54
  const spanTags = LibUtil.getSpanTags(request, Enum.Events.Event.Type.ORACLE, Enum.Events.Event.Action.PUT)
54
55
  span.setTags(spanTags)
56
+ const queryTags = EventFrameworkUtil.Tags.getQueryTags(
57
+ Enum.Tags.QueryTags.serviceName.accountLookupServiceAdmin,
58
+ Enum.Tags.QueryTags.auditType.oracleAdmin,
59
+ Enum.Tags.QueryTags.contentType.httpRequest,
60
+ Enum.Tags.QueryTags.operation.updateOracle,
61
+ {
62
+ httpMethod: method,
63
+ httpPath: path,
64
+ oracleId: params.ID
65
+ }
66
+ )
67
+ span.setTags(queryTags)
55
68
  await span.audit({
56
69
  headers: request.headers,
57
70
  payload: request.payload
@@ -80,9 +93,21 @@ module.exports = {
80
93
  'Ingress: Delete oracle by Id',
81
94
  ['success']
82
95
  ).startTimer()
83
- const span = request.span
96
+ const { params, method, path, span } = request
84
97
  const spanTags = LibUtil.getSpanTags(request, Enum.Events.Event.Type.ORACLE, Enum.Events.Event.Action.DELETE)
85
98
  span.setTags(spanTags)
99
+ const queryTags = EventFrameworkUtil.Tags.getQueryTags(
100
+ Enum.Tags.QueryTags.serviceName.accountLookupServiceAdmin,
101
+ Enum.Tags.QueryTags.auditType.oracleAdmin,
102
+ Enum.Tags.QueryTags.contentType.httpRequest,
103
+ Enum.Tags.QueryTags.operation.deleteOracle,
104
+ {
105
+ httpMethod: method,
106
+ httpPath: path,
107
+ oracleId: params.ID
108
+ }
109
+ )
110
+ span.setTags(queryTags)
86
111
  await span.audit({
87
112
  headers: request.headers
88
113
  }, EventSdk.AuditEventAction.start)