diff --git a/package-lock.json b/package-lock.json index cd98fb156..669be3329 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mojaloop/central-ledger", - "version": "18.0.1", + "version": "18.1.0-iso.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mojaloop/central-ledger", - "version": "18.0.1", + "version": "18.1.0-iso.2", "license": "Apache-2.0", "dependencies": { "@hapi/basic": "7.0.2", @@ -16,7 +16,7 @@ "@hapi/inert": "7.1.0", "@hapi/vision": "7.0.3", "@mojaloop/central-services-error-handling": "13.0.3", - "@mojaloop/central-services-health": "15.0.0", + "@mojaloop/central-services-health": "15.0.1", "@mojaloop/central-services-logger": "11.5.2", "@mojaloop/central-services-metrics": "12.4.3", "@mojaloop/central-services-shared": "18.15.1", @@ -1239,12 +1239,12 @@ } }, "node_modules/@mojaloop/central-services-health": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@mojaloop/central-services-health/-/central-services-health-15.0.0.tgz", - "integrity": "sha512-z0vIyK9XGnIIaOfHADG3IDeLw2puJKlEDReJeNxMSocwhiacIm+xLbE0CMyM1lFSQGmr4USg9LP9Y9tdOznkyg==", + "version": "15.0.1", + "resolved": "https://registry.npmjs.org/@mojaloop/central-services-health/-/central-services-health-15.0.1.tgz", + "integrity": "sha512-+1H8d2XMoRYfiMILnpS7q/ZZgs9JhBOQp7XePcYX/xwlkntgHNXnSATqld1ic8HdKKdfQWx1VR8rmhdFPLx1Cg==", "dependencies": { - "@hapi/hapi": "21.3.6", - "tslib": "2.6.2" + "@hapi/hapi": "21.3.12", + "tslib": "2.8.1" }, "peerDependencies": { "@mojaloop/central-services-error-handling": ">=12.x.x", @@ -1259,43 +1259,6 @@ } } }, - "node_modules/@mojaloop/central-services-health/node_modules/@hapi/hapi": { - "version": "21.3.6", - "resolved": "https://registry.npmjs.org/@hapi/hapi/-/hapi-21.3.6.tgz", - "integrity": "sha512-fbJ7QYQZl7Ixe6fmKjJbVO3zUrDa5aY+4xn7xBvJFXw6be76B4d28qknrD2la1aXo6GIhTUsJnqzU2awqmG0Sg==", - "dependencies": { - "@hapi/accept": "^6.0.1", - "@hapi/ammo": "^6.0.1", - "@hapi/boom": "^10.0.1", - "@hapi/bounce": "^3.0.1", - "@hapi/call": "^9.0.1", - "@hapi/catbox": "^12.1.1", - "@hapi/catbox-memory": "^6.0.1", - "@hapi/heavy": "^8.0.1", - "@hapi/hoek": "^11.0.2", - "@hapi/mimos": "^7.0.1", - "@hapi/podium": "^5.0.1", - "@hapi/shot": "^6.0.1", - "@hapi/somever": "^4.1.1", - "@hapi/statehood": "^8.1.1", - "@hapi/subtext": "^8.1.0", - "@hapi/teamwork": "^6.0.0", - "@hapi/topo": "^6.0.1", - "@hapi/validate": "^2.0.1" - }, - "engines": { - "node": ">=14.15.0" - } - }, - "node_modules/@mojaloop/central-services-health/node_modules/@hapi/validate": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@hapi/validate/-/validate-2.0.1.tgz", - "integrity": "sha512-NZmXRnrSLK8MQ9y/CMqE9WSspgB9xA41/LlYR0k967aSZebWr4yNrpxIbov12ICwKy4APSlWXZga9jN5p6puPA==", - "dependencies": { - "@hapi/hoek": "^11.0.2", - "@hapi/topo": "^6.0.1" - } - }, "node_modules/@mojaloop/central-services-logger": { "version": "11.5.2", "resolved": "https://registry.npmjs.org/@mojaloop/central-services-logger/-/central-services-logger-11.5.2.tgz", @@ -1460,11 +1423,6 @@ } } }, - "node_modules/@mojaloop/event-sdk/node_modules/tslib": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", - "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" - }, "node_modules/@mojaloop/inter-scheme-proxy-cache-lib": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/@mojaloop/inter-scheme-proxy-cache-lib/-/inter-scheme-proxy-cache-lib-2.3.1.tgz", @@ -13473,9 +13431,9 @@ } }, "node_modules/tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" }, "node_modules/tweetnacl": { "version": "0.14.5", diff --git a/package.json b/package.json index d9ee08a2e..059fb86d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mojaloop/central-ledger", - "version": "18.0.1", + "version": "18.1.0-iso.2", "description": "Central ledger hosted by a scheme to record and settle transfers", "license": "Apache-2.0", "author": "ModusBox", @@ -88,7 +88,7 @@ "@hapi/inert": "7.1.0", "@hapi/vision": "7.0.3", "@mojaloop/central-services-error-handling": "13.0.3", - "@mojaloop/central-services-health": "15.0.0", + "@mojaloop/central-services-health": "15.0.1", "@mojaloop/central-services-logger": "11.5.2", "@mojaloop/central-services-metrics": "12.4.3", "@mojaloop/central-services-shared": "18.15.1", diff --git a/src/api/participants/routes.js b/src/api/participants/routes.js index 60baaddf9..d17c8cde7 100644 --- a/src/api/participants/routes.js +++ b/src/api/participants/routes.js @@ -311,7 +311,7 @@ module.exports = [ description: 'Record Funds In or Out of participant account', validate: { payload: Joi.object({ - transferId: Joi.string().pattern(/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$|^[0-9A-HJKMNP-TV-Z]{26})$/).required(), + transferId: Joi.string().guid().required(), externalReference: Joi.string().required(), action: Joi.string().required().valid('recordFundsIn', 'recordFundsOutPrepareReserve').label('action is missing or not supported'), reason: Joi.string().required(),