Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: suppress health check logs #328

Merged
merged 1 commit into from
Jul 4, 2022
Merged

Conversation

kirgene
Copy link
Contributor

@kirgene kirgene commented Jul 4, 2022

make logs less verbose when idling

@kirgene kirgene requested a review from kleyow July 4, 2022 12:17
@kirgene kirgene force-pushed the feat/silent-healthcheck-logs branch from ca83474 to 3cb22b3 Compare July 4, 2022 12:29
@kirgene kirgene merged commit 64fadde into master Jul 4, 2022
@kirgene kirgene deleted the feat/silent-healthcheck-logs branch July 4, 2022 12:52
mdebarros added a commit that referenced this pull request Jul 19, 2022
* MBP-604: Pull changes from mojaloop-connector.

* Fix test cases.

* fix lint errors.

* Update src/InboundServer/index.js

Co-authored-by: Kevin Leyow <kleyow@gmail.com>

* fix audit errors.

* bump packages.

* update constributors list.

* Refactor to use new Redis API.

* fix api call.

* fix audit errors.

* bump version

* fix audit errors.

* update packages.

* fix audit errors.

* revert version change.

* uncomment test feature.

* chore(release): 15.0.1 [skip ci]

* chore!: add dummy pr to major version bump due to unsquashed title (#327)

chore(snapshot): 15.0.2-snapshot.0

* chore(release): 16.0.0 [skip ci]

* feat: suppress health check logs (#328)

Suppress health check logs.

* chore(release): 17.0.0 [skip ci]

* fix: creating inbound server (#329)

* fix creating InboundServer

* update circleci node image.

* Revert "update circleci node image."

This reverts commit 5a38cb0.

* remove SHELL=sh from audit commands.

* Use per commit dep cache.

* chore(release): 17.0.1 [skip ci]

* fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback (#331)

fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback - mojaloop/project#2811
- fixed transfer-state for callback-response by PayeeFSP to use FSPIOP `TransferState` & `BulkTransferState` Enums from central-services-shared
- re-factored & consolidated enums into a common `SDKStateEnum` which is used for all `currentState` assignments and comparisons
- removed duplicate/unnecessary enums
- updated unit tests to use enums
- updated dependencies
- fixed audit issue
- Fixed image-scan issue as docker image used a root user by adding a non-root user 'ml-user'
- re-aligned Dockerfile working directory to /opt/app for consistency across ml-projects
- aligned CI config for consistency across ml-projects

fix(mojaloop/#2816): SDK-Scheme-Adapter is missing/incorrect bulkTransferState on a PUT /bulkTransfer/{id} Callback by the PayeeFSP- mojaloop/project#2816
- fixed bad enum mapping for bulkTransferState for `COMPLETED` (it was `COMMITTED`)
- added missed bulkTransferState enum for `REJECTED`

BREAKING CHANGE: docker image now uses `/opt/app` instead of the root folder which will impact config mounts, and the secrets folder is no longer included in the docker image which aligns with best practices. Both these changes should NOT be a breaking change but I have marked them as such to make this change more obvious.

* fix: updated dependencies

* chore(release): 18.0.0 [skip ci]

* chore: added .npmignore so that the test folder is not included when publishing packages (#332)

* chore: added .npmignore so that the test folder is not included when publishing packages
* chore: fixes for audit-resolve

* chore: uodated deps (#333)

* chore: added .npmignore so that the test folder is not included when publishing packages

* chore: fixes for audit-resolve

* chore: updated dependencies

* chore(release): 18.0.1 [skip ci]

* chore: updates to readme for header badges [skip ci] (#334)

- updated readme to include docker-pulls

* chore: fixes for merge

* chore: updated changelog header

* chore: fixes for ci-cd

* chore: fixes for ci-cd

* chore: fixes for ci-cd

* chore: fixes for ci-cd

Co-authored-by: Yevhen Kyriukha <kirgene@gmail.com>
Co-authored-by: Kevin Leyow <kleyow@gmail.com>
Co-authored-by: mojaloopci <info@mojaloop.io>
kleyow added a commit that referenced this pull request Oct 20, 2022
* MBP-604: Pull changes from mojaloop-connector.

* Fix test cases.

* fix lint errors.

* Update src/InboundServer/index.js

Co-authored-by: Kevin Leyow <kleyow@gmail.com>

* fix audit errors.

* bump packages.

* update constributors list.

* Refactor to use new Redis API.

* fix api call.

* fix audit errors.

* bump version

* fix audit errors.

* update packages.

* fix audit errors.

* revert version change.

* uncomment test feature.

* chore(release): 15.0.1 [skip ci]

* chore!: add dummy pr to major version bump due to unsquashed title (#327)

chore(snapshot): 15.0.2-snapshot.0

* chore(release): 16.0.0 [skip ci]

* feat: suppress health check logs (#328)

Suppress health check logs.

* chore(release): 17.0.0 [skip ci]

* fix: creating inbound server (#329)

* fix creating InboundServer

* update circleci node image.

* Revert "update circleci node image."

This reverts commit 5a38cb0.

* remove SHELL=sh from audit commands.

* Use per commit dep cache.

* chore(release): 17.0.1 [skip ci]

* fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback (#331)

fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback - mojaloop/project#2811
- fixed transfer-state for callback-response by PayeeFSP to use FSPIOP `TransferState` & `BulkTransferState` Enums from central-services-shared
- re-factored & consolidated enums into a common `SDKStateEnum` which is used for all `currentState` assignments and comparisons
- removed duplicate/unnecessary enums
- updated unit tests to use enums
- updated dependencies
- fixed audit issue
- Fixed image-scan issue as docker image used a root user by adding a non-root user 'ml-user'
- re-aligned Dockerfile working directory to /opt/app for consistency across ml-projects
- aligned CI config for consistency across ml-projects

fix(mojaloop/#2816): SDK-Scheme-Adapter is missing/incorrect bulkTransferState on a PUT /bulkTransfer/{id} Callback by the PayeeFSP- mojaloop/project#2816
- fixed bad enum mapping for bulkTransferState for `COMPLETED` (it was `COMMITTED`)
- added missed bulkTransferState enum for `REJECTED`

BREAKING CHANGE: docker image now uses `/opt/app` instead of the root folder which will impact config mounts, and the secrets folder is no longer included in the docker image which aligns with best practices. Both these changes should NOT be a breaking change but I have marked them as such to make this change more obvious.

* fix: updated dependencies

* chore(release): 18.0.0 [skip ci]

* chore: added .npmignore so that the test folder is not included when publishing packages (#332)

* chore: added .npmignore so that the test folder is not included when publishing packages
* chore: fixes for audit-resolve

* chore: uodated deps (#333)

* chore: added .npmignore so that the test folder is not included when publishing packages

* chore: fixes for audit-resolve

* chore: updated dependencies

* chore(release): 18.0.1 [skip ci]

* chore: updates to readme for header badges [skip ci] (#334)

- updated readme to include docker-pulls

* fix: ws-connection-issue (#339)

- downgraded ws lib dependency from v8.x to v7.5.5 due to breaking change that cause intermitant disconnections
- added ncurc.yaml file with ws lib dependency added with an appropriate comment
- added @mojaloop/api-snippets to dep:check ignore list as it requires PR [sdk-scheme-adapter/pull/340](#340) has been merged

* chore(release): 18.0.2 [skip ci]

* feat!: use updated outbound OpenAPI specification from api-snippets (#340)

* feat!: use updated outbound OpenAPI specification from api-snippets

* use audit-ci for audit check.

* move api-snippets to deps.

* chore(release): 19.0.0 [skip ci]

* fix(mojaloop/2886): fix bulk-quotes and bulk-transfers functionality (#344)

fix(mojaloop/2886): fix bulk-quotes and bulk-transfers functionality (#344)

* fix: added bulk-quotes to inbound api definition
* chore: updated TTK version, updated TTK config files  and changed ttk port
* fix: bulk quotes callback redis publish channel
* fix: fixed bulk quotes and bulk transfers response in outbound api
* chore: updated mojaloop sim api in ttk

* chore(release): 19.0.1 [skip ci]

* chore: address merge mistakes

* Update .dockerignore

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* Update .dockerignore

Co-authored-by: Miguel de Barros <miguel@debarros.me>

Co-authored-by: Yevhen Kyriukha <kirgene@gmail.com>
Co-authored-by: mojaloopci <info@mojaloop.io>
Co-authored-by: Miguel de Barros <miguel@debarros.me>
Co-authored-by: vijayg10 <33152110+vijayg10@users.noreply.github.com>
kleyow added a commit that referenced this pull request Oct 21, 2022
…#406)

* MBP-604: Pull changes from mojaloop-connector.

* Fix test cases.

* fix lint errors.

* Update src/InboundServer/index.js

Co-authored-by: Kevin Leyow <kleyow@gmail.com>

* fix audit errors.

* bump packages.

* update constributors list.

* Refactor to use new Redis API.

* fix api call.

* fix audit errors.

* bump version

* fix audit errors.

* update packages.

* fix audit errors.

* revert version change.

* uncomment test feature.

* chore(release): 15.0.1 [skip ci]

* chore!: add dummy pr to major version bump due to unsquashed title (#327)

chore(snapshot): 15.0.2-snapshot.0

* chore(release): 16.0.0 [skip ci]

* feat: suppress health check logs (#328)

Suppress health check logs.

* chore(release): 17.0.0 [skip ci]

* fix: creating inbound server (#329)

* fix creating InboundServer

* update circleci node image.

* Revert "update circleci node image."

This reverts commit 5a38cb0.

* remove SHELL=sh from audit commands.

* Use per commit dep cache.

* chore(release): 17.0.1 [skip ci]

* fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback (#331)

fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback - mojaloop/project#2811
- fixed transfer-state for callback-response by PayeeFSP to use FSPIOP `TransferState` & `BulkTransferState` Enums from central-services-shared
- re-factored & consolidated enums into a common `SDKStateEnum` which is used for all `currentState` assignments and comparisons
- removed duplicate/unnecessary enums
- updated unit tests to use enums
- updated dependencies
- fixed audit issue
- Fixed image-scan issue as docker image used a root user by adding a non-root user 'ml-user'
- re-aligned Dockerfile working directory to /opt/app for consistency across ml-projects
- aligned CI config for consistency across ml-projects

fix(mojaloop/#2816): SDK-Scheme-Adapter is missing/incorrect bulkTransferState on a PUT /bulkTransfer/{id} Callback by the PayeeFSP- mojaloop/project#2816
- fixed bad enum mapping for bulkTransferState for `COMPLETED` (it was `COMMITTED`)
- added missed bulkTransferState enum for `REJECTED`

BREAKING CHANGE: docker image now uses `/opt/app` instead of the root folder which will impact config mounts, and the secrets folder is no longer included in the docker image which aligns with best practices. Both these changes should NOT be a breaking change but I have marked them as such to make this change more obvious.

* fix: updated dependencies

* chore(release): 18.0.0 [skip ci]

* chore: added .npmignore so that the test folder is not included when publishing packages (#332)

* chore: added .npmignore so that the test folder is not included when publishing packages
* chore: fixes for audit-resolve

* chore: uodated deps (#333)

* chore: added .npmignore so that the test folder is not included when publishing packages

* chore: fixes for audit-resolve

* chore: updated dependencies

* chore(release): 18.0.1 [skip ci]

* chore: updates to readme for header badges [skip ci] (#334)

- updated readme to include docker-pulls

* fix: ws-connection-issue (#339)

- downgraded ws lib dependency from v8.x to v7.5.5 due to breaking change that cause intermitant disconnections
- added ncurc.yaml file with ws lib dependency added with an appropriate comment
- added @mojaloop/api-snippets to dep:check ignore list as it requires PR [sdk-scheme-adapter/pull/340](#340) has been merged

* chore(release): 18.0.2 [skip ci]

* feat!: use updated outbound OpenAPI specification from api-snippets (#340)

* feat!: use updated outbound OpenAPI specification from api-snippets

* use audit-ci for audit check.

* move api-snippets to deps.

* chore(release): 19.0.0 [skip ci]

* fix(mojaloop/2886): fix bulk-quotes and bulk-transfers functionality (#344)

fix(mojaloop/2886): fix bulk-quotes and bulk-transfers functionality (#344)

* fix: added bulk-quotes to inbound api definition
* chore: updated TTK version, updated TTK config files  and changed ttk port
* fix: bulk quotes callback redis publish channel
* fix: fixed bulk quotes and bulk transfers response in outbound api
* chore: updated mojaloop sim api in ttk

* chore(release): 19.0.1 [skip ci]

Co-authored-by: Yevhen Kyriukha <kirgene@gmail.com>
Co-authored-by: mojaloopci <info@mojaloop.io>
Co-authored-by: Miguel de Barros <miguel@debarros.me>
Co-authored-by: vijayg10 <33152110+vijayg10@users.noreply.github.com>
kleyow added a commit that referenced this pull request Oct 31, 2022
* Added a design diagram

* Formatted the sequence diagram and added notes

* feat: added autoaccept party/quotes

* feat: added inbound diagram

* feat: added inbound diagram

* chore: re-organized the folder structure of bulk design documents

* chore: added a overview image

* chore: changed image

* fix formatting

* refactored outbound sequence diagram

* chore: fixed quotes in bulk seq diagram

* fix: refactored the parties and quotes with proper states

* fix: defined proper states in outbound transfers seq diagram

* feat: refined inbound bulk sequence diagrams

* feat: added redis message format

* chore: modified redis doc

* fix

* feat!: Initial Commit (#323)

* Initial Commit

* added start script to adapter

* cleanup

* cleanup

* cleanup

* cicd

* cicd

* cicd

* cicd

* cicd

* cicd

* cicd

* chore: fixed api-svc api templates for inbound and outbound paths to correctly resolve dependent yamls

* chore: fixes for monorepo

- removed global eslint config, and added eslint to each module
- renamed start:adapter root package script to start:api-svc and fixed the command
- added missing dependencies to module/api-svc to fix unit tests

* fix: api-snippets

* fix: cicd

* fix: cicd

* fix: cicd

* fix: cicd

* fix: cicd

* fix: cicd

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* Made some changes to redis

* Finalized outbound sequence diagram

* mbp-633-638 Add interface, types, errors and aggregate

* changed the inbound transfer event names

* rename events and topics for outbound

* Added inbound redis message format

* Changed quotes and transfers requests to core connector to sync

* feat: update aggregate, irepo, organize types in public, private and local

* fix: fixed the cicd audit check (#326)

* Initial Commit

* added start script to adapter

* cleanup

* cleanup

* cleanup

* cicd

* cicd

* cicd

* cicd

* cicd

* cicd

* cicd

* chore: fixed api-svc api templates for inbound and outbound paths to correctly resolve dependent yamls

* chore: fixes for monorepo

- removed global eslint config, and added eslint to each module
- renamed start:adapter root package script to start:api-svc and fixed the command
- added missing dependencies to module/api-svc to fix unit tests

* fix: api-snippets

* fix: cicd

* fix: cicd

* fix: cicd

* fix: cicd

* fix: cicd

* fix: cicd

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* chore: merge master into mvp (#337)

* MBP-604: Pull changes from mojaloop-connector.

* Fix test cases.

* fix lint errors.

* Update src/InboundServer/index.js

Co-authored-by: Kevin Leyow <kleyow@gmail.com>

* fix audit errors.

* bump packages.

* update constributors list.

* Refactor to use new Redis API.

* fix api call.

* fix audit errors.

* bump version

* fix audit errors.

* update packages.

* fix audit errors.

* revert version change.

* uncomment test feature.

* chore(release): 15.0.1 [skip ci]

* chore!: add dummy pr to major version bump due to unsquashed title (#327)

chore(snapshot): 15.0.2-snapshot.0

* chore(release): 16.0.0 [skip ci]

* feat: suppress health check logs (#328)

Suppress health check logs.

* chore(release): 17.0.0 [skip ci]

* fix: creating inbound server (#329)

* fix creating InboundServer

* update circleci node image.

* Revert "update circleci node image."

This reverts commit 5a38cb0af7c6b4e47a3cf1060fb45d4d66a18582.

* remove SHELL=sh from audit commands.

* Use per commit dep cache.

* chore(release): 17.0.1 [skip ci]

* fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback (#331)

fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback - https://github.com/mojaloop/project/issues/2811
- fixed transfer-state for callback-response by PayeeFSP to use FSPIOP `TransferState` & `BulkTransferState` Enums from central-services-shared
- re-factored & consolidated enums into a common `SDKStateEnum` which is used for all `currentState` assignments and comparisons
- removed duplicate/unnecessary enums
- updated unit tests to use enums
- updated dependencies
- fixed audit issue
- Fixed image-scan issue as docker image used a root user by adding a non-root user 'ml-user'
- re-aligned Dockerfile working directory to /opt/app for consistency across ml-projects
- aligned CI config for consistency across ml-projects

fix(mojaloop/#2816): SDK-Scheme-Adapter is missing/incorrect bulkTransferState on a PUT /bulkTransfer/{id} Callback by the PayeeFSP- https://github.com/mojaloop/project/issues/2816
- fixed bad enum mapping for bulkTransferState for `COMPLETED` (it was `COMMITTED`)
- added missed bulkTransferState enum for `REJECTED`

BREAKING CHANGE: docker image now uses `/opt/app` instead of the root folder which will impact config mounts, and the secrets folder is no longer included in the docker image which aligns with best practices. Both these changes should NOT be a breaking change but I have marked them as such to make this change more obvious.

* fix: updated dependencies

* chore(release): 18.0.0 [skip ci]

* chore: added .npmignore so that the test folder is not included when publishing packages (#332)

* chore: added .npmignore so that the test folder is not included when publishing packages
* chore: fixes for audit-resolve

* chore: uodated deps (#333)

* chore: added .npmignore so that the test folder is not included when publishing packages

* chore: fixes for audit-resolve

* chore: updated dependencies

* chore(release): 18.0.1 [skip ci]

* chore: updates to readme for header badges [skip ci] (#334)

- updated readme to include docker-pulls

* chore: fixes for merge

* chore: updated changelog header

* chore: fixes for ci-cd

* chore: fixes for ci-cd

* chore: fixes for ci-cd

* chore: fixes for ci-cd

Co-authored-by: Yevhen Kyriukha <kirgene@gmail.com>
Co-authored-by: Kevin Leyow <kleyow@gmail.com>
Co-authored-by: mojaloopci <info@mojaloop.io>

* feat(mojaloop/2799): implement mvp bulk discovery (#335)

* added poc-arch folders and a common-lib module
* chore: fixes for yarn install dependencies
* got first kafka domain event message
* removed some unused code and many improvements
* feat: imported types and json schema from api-snippets
* Added sdkOutboundbulkRequestState
* Added command event message to the handler
* command handler is working
* feat: storing state in redis is working with a sample redis repo implementation
* chore: redis repo is working for bulk transaction entity
* feat: stored individual transfers in redis
* chore: refactored bulk transaction agg
* feat: added test api
* chore: restructured the modules
* chore: restructured the files further
* chore: refactored docker-compose
* chore: added nvm use command to running instructions in readme file
* chore: refactored api server
* chore: changed start command to output the logs

* feat(mojaloop/#2883): add SDKOutboundBulkPartyInfoRequested domain event handler (#349)

* feat(mojaloop/#2883): add SDKOutboundBulkPartyInfoRequested handler

* chore: unit test

* chore: switch enums to use class name

* chore: lint

* chore: audit

* feat(mojaloop/#2874): add implement full CI-CD Pipeline to do automated releases and testing (#347)

feat(mojaloop/#2874): add implement full CI-CD Pipeline to do automated releases and testing - https://github.com/mojaloop/project/issues/2874
- added nx dependency and config to assisth with Monorepo tooling
- added Monorepo readme
- re-factored package.json scripts to support nx cli
- re-aligned CI config to master branch & mojaloop standards (i.e. latest slack, github API client, etc)

chore: maintenance
- fixed lint issues
- fixed dependency issues
- updated CODEOWNERS

NOTES:
- Unit/Integration tests will fail until their issues can be resolved by other feature work
- A single Dockerfile will be used for simplicity which will allow the following execution scenarios:
    - Start all modules within the same Docker container: `yarn run start` <-- This is only recommended for local dev/testing purposes
    - Start a single module: `yarn nx run <module-name>:start` <-- This is prefered for Production, and thus separate container instances should be started up to run each module specifically using this command.

* chore: added missing release/shapshot npm scripts to modules, and also added skip.changelog to module

chore: added missing release/shapshot npm scripts to modules, and also added skip.changelog to module

* chore: updated changelog git url in versionrc file

* feat(mojaloop/#2883): add PartyInfoCallbackReceived domain event handler (#350)

* feat(mojaloop/#2883): add PartyInfoCallbackReceived domain event handler

* chore: tests

* chore: deps

* chore: dep

* feat!: merge with master, fix 2813 bugs (#357)

* merge with master, fix 2813 bugs

* fix names

* fix party result.

* openapi outbound schema changes from master.

* use enum

* update deps

* bump yarn.lock

* fix test cases.

* fix tests

* update packages.

* fix await

* fix test cases.

* fix tests

* fix test

* fix method name case

* refactor command and domain event names

* update handler names

* fix names

* refactor(mojaloop/#2883): move repo code out of command module and into shared lib  (#358)

* chore: add redis config to domain handler

* refactor: move repo code into shared lib

* chore: ts alias

* chore: revert

* chore: fix circular reference

* chore: lockfile

* chore: lint

* chore: address comments

* chore: update deps

* chore: fix unit tests

* chore: dep update

* chore: fix import

* chore: address changes

* fix: redis timeout while running integration tests (#361)

* fix: redis timeout

* update packages

* update packages

* update deps

* fix running integration tests

* cleanup.

* fix path

* update deps

* increase sleep

* run int tests for each module sequentially

* increase delay

* dep update

* increase delay

* feat(mojaloop/2802): add bulk quotes related functionality (#356)

feat(mojaloop/2802): add bulk quotes related functionality (#356)

* fix(mojaloop/#2883): resolve integration tests being broken due to import (#364)

* fix: resolve integration tests being broken due to import

* chore: remove debugging lines

* chore: timeout

* chore: fix

* chore: fix open handle

* chore: address comments

* chore: dep update

* chore: increase timeout

* chore: increase timeout

* feat(mojaloop/#2883): add PartyInfoCallbackProcessed domain handler (#362)

* chore: add redis config to domain handler

* refactor: move repo code into shared lib

* chore: ts alias

* chore: revert

* chore: fix circular reference

* chore: lockfile

* chore: lint

* chore: address comments

* chore: init

* feat: add PartyInfoCallbackProcessed domain handler

* chore: rename

* chore: update deps

* chore: fix unit tests

* chore: dep update

* chore: fix import

* chore: update command integration tests

* chore: fix imports

* chore: fix merge mistakes

* chore: fix more merge mistakes

* chore: fix import

* chore: add integration tests for PartyInfoCallbackProcessed handler

* chore: lint

* chore: int tests

* chore: fix tests

* chore: increase message timeout

* chore: increase message timeout

* chore: increase message timeout

* chore: fix circular reference

* chore: increase message timeout

* chore: fix tests

* chore: merge

* chore: fix imports

* chore: tests

* chore: dep

* chore: increase timeout

* chore: reorder

* Update outbound_event_handler.test.ts

* chore: increase timeout

* chore: bump redis version

* chore: adjust timeout

* chore: address comments

* chore: lock

* docs: openapi bulk doc update (#363)

* docs: update api docs

* update types, add plantuml svg validation

* docs: dfsp inbound schema and docs updates

* add bulk api sequence diagram
* update dfsp inbound schema

* update outbound sequence diagram

* update yarn.lock

* feat!: implement backend and fspiop event services (#365)

* feat!: implement backend and fspiop event services

New API handlers:
* POST /bulkTransactions:
  produces:
    SDKOutboundBulkRequestReceived
* PUT /bulkTransactions/{bulkTransactionId}:
  produces:
    SDKOutboundBulkAcceptPartyInfoReceived
    SDKOutboundBulkAcceptQuoteReceived

New event handlers:
* PartyInfoRequested: (GET /party, PUT /party)
* BulkQuotesRequested: (POST /bulkQuotes, PUT /bulkQuotes)
* SDKOutboundBulkAcceptPartyInfoRequested
* SDKOutboundBulkAcceptQuoteRequested

* fix: config env vars (#367)

config env vars fixes

* fix: api-svc headers (#368)

* fix(mojaloop/2886): fix bulk-quotes and bulk-transfers (#344) (#369)

Merge fix(mojaloop/2886): fix bulk-quotes and bulk-transfers functionality (#344)

* fix(mojaloop/2809): bulk quotes endpoint in inbound api-template file (#371)

fix([mojaloop/2809](https://github.com/mojaloop/project/issues/2809)): missing post bulkQuotes endpoint in inbound api-template file

* fix(mojaloop/2809): api-svc issues (#372)

fix([mojaloop/2809](https://github.com/mojaloop/project/issues/2809)): some api-svc issues

* fix(mojaloop/2809): some more issues (#373)

* fix: some more issues

* chore: updated dependencies

* fix(mojaloop/2809): individual transfer results is empty (#374)

* fix: wrong variable name and format

* chore: update dependencies

* fix: post bulk tx status code (#375)

* fix: post bulk tx status code

fix POST /bulkTransactions http status code

* bump deps

* feat: add test cases for fspiop and backend event servers (#377)

* test: add test cases for fspiop and backend event servers

cover:
* POST /bulkTransactions
* PUT /bulkTransactions/{bulkTransactionId}
* PartyInfoRequested event
* BulkQuotesRequested event
* SDKOutboundBulkAcceptPartyInfoRequested event
* SDKOutboundBulkAcceptQuoteRequested event

* use http status code enums from @mojaloop/central-services-shared

* fix(mojaloop/#2809): fixed outbound party error response format (#381)

fix([mojaloop/2809](https://github.com/mojaloop/project/issues/2809)): fixed outbound party error response format

* feat: handle more events on backend api (#385)

* feat: handle more events on backend api

* SDKOutboundBulkResponsePrepared
* SDKOutboundBulkResponseSent

* fix(mojaloop/2941): handled party lookup timeout error (#386)

fix: handled-party-lookup-timeout-error

* feat(bulk/#2802): merge integration tests for bulk parties and quotes  (#376)

* updated deps

* docker compose for end-end testing

* updated dependencies

* updates to end-end docker compose

* added docker compose for local testing

* added local-testing folder

* test case for bulk quote accept event

* Refactored the func test files and p2p is working

* running tests to check they are working

* chore: added sample ttk env file

* chore: updated sdk-out api in TTK func test framework

* fix

* fix

* added kafka related env vars

* removed duplicate env vars

* fix: func-tests-kafka-consumer-group-config

* fix: ttk-func-config

* TTK test cases for bulk - initial commit

* feat: added put bulktransactions to mojaloop sim api in TTK

* chore: added some sample code

* chore: some ttk rules changes

* removed ttk for bulk

* added redis insights to docker compose

* feat(mojaloop/#2802): rework ProcessBulkQuotesCallback logic and add int tests for bulk quotes (#366)

* feat: add tests for bulk quotes

* chore: more

* chore: format

* chore: lock

* chore: cleanup

* chore: dep test

* chore: file dep test

* chore: dep and bug fix

* chore: address comments

* chore: address more comments

* chore: add assert

* chore: changes

* chore: add assertion

* chore: revert

* chore: shorthand

* chore: remove unnecessary asserts

* chore: update logic

* chore: update tests

* chore: time

* chore: timeout

* chore: update logic

* end-end testing diagram

* folder restructure for tests

* refactor folders for discovery integration tests

* updated bulk ttk test case

* changed mvp bulk testcase

* fixed ttk rule

* renamed files

* added more test assertions

* feat: added parties error response rule

* refactor(mojaloop/#2802): rework party lookup loop and count increment logic (#378)

* refactor: rework party lookup loop

* chore: fix seq doc

* chore: doc

* chore: fix comment

* chore: resolve duplicate callback timing issue

* chore: test fix and bulk quote increment

* chore: dep up

* chore: missing await

* chore: increase wait

* chore: wait

* chore: dep

* chore: update

* chore: give docker more time to boot

* chore: fix

* chore: ci wait

* chore: diff

* wait

* chore: log

* chore: try topics

* chore: config

* fix: fix build issue

* fix: fix some merge issue

* chore: updated dependencies and lint

Co-authored-by: Vijay Kumar <vijaya.guthi@modusbox.com>
Co-authored-by: Kevin Leyow <kleyow@gmail.com>

* feat(mojaloop/#2803): sdk scheme adapter add bulk transfers calls (Steps 62-85) (#370)

feat(mojaloop/#2803): sdk scheme adapter - add bulk transfers calls (Steps 62-85) - https://github.com/mojaloop/project/issues/2803
- Added implementation for the following events:
    - `SDKOutboundBulkAcceptQuoteReceivedDmEvt `
    - `ProcessSDKOutboundBulkAcceptQuoteCmdEvt `
    - `ProcessSDKOutboundBulkTransfersRequestCmdEvt `
    - `BulkTransfersRequestedDmEvt `
    - `BulkTransfersCallbackReceivedDmEvt `
    - `ProcessBulkTransfersCallbackCmdEvt `
    - `BulkTransfersCallbackProcessedDmEvt `
    - `PrepareSDKOutboundBulkResponseCmdEvt`
    - `ProcessSDKOutboundBulkResponseSentCmdEvt`
    - `ProcessSDKOutboundBulkTransfersRequestCompleteCmdEvt`
    - `BulkTransfersProcessedDmEvt`
    - `SDKOutboundBulkAcceptQuoteProcessedDmEvt`
    - `SDKOutboundBulkAutoAcceptQuoteCompletedDmEvt`
    - `SDKOutboundBulkResponseSentProcessedDmEvt`
    - `SDKOutboundBulkTransfersRequestProcessedDmEvt`
- Added Integration Tests for:
    - ProcessSDKOutboundBulkAcceptQuoteCmdEvt
    - ProcessSDKOutboundBulkTransfersRequestCmdEvt
    - ProcessBulkTransfersCallbackCmdEvt
    - PrepareSDKOutboundBulkResponseCmdEvt
    - ProcessSDKOutboundBulkResponseSentCmdEvnt
    - ProcessSDKOutboundBulkTransfersRequestCompleteCmdEvt
    - ProcessSDKOutboundBulkResponseSentCmdEvt
- Added sample `modules/outbound-command-event-handler/test/integration/sample_events/process_sdk_outbound_bulk_transfers_request.test.ts`

chore: maintenance:
- Removed build from git commit hooks
- Added updated api.yaml which was generated from yarn run build (no idea why this was not updated?)
- Updated root docker-compose to correctly work, and moved/renamed insight -> redisinsight and added it to the "debug" profile
- Added child-loggers for Command Handler
- Re-factored bulk_transaction_agg.createBatch() to generateBulk*Batches() for Quotes and Transfers

* fix: package run commands referencing incorrect module names (#395)

* fixes for unit test failures

- fixed run/service scripts in dom/cmd event handler package.json files
- fixed module names for individual start scripts in root package.json file

* chore: maintainence
- added nx to ncurc.yaml to be ignore on dep:checks
- updated dependencies (except for nx)

* downgraded @mojaloop/api-snippets and added to ignore for dep:checks until PR can be merged

* fix: for clean API server destroy on command handler

* same as before

* fix for command handler close

* fixes for unit tests

* chore: peg snippets

Co-authored-by: Kevin <kleyow@gmail.com>

* fix: ci build order (#396)

* added private-shared-lib to api-svc

* fix: ci build order seems to be an issue

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* feat(mojaloop/#2914): import api server with health endpoint (#394)

* feat(mojaloop/#2914): import api server with health endpoint

* chore: update

* chore: lock

* added private-shared-lib to api-svc

* fix: ci build order seems to be an issue

* deps updated

* chore: peg api-snippets

* chore: fix unit

* chore: dep update

* chore: audit

* chore: add no-cache unit test command

* chore: test peg nx for ci issue

* fixes for unit test failures

- fixed run/service scripts in dom/cmd event handler package.json files
- fixed module names for individual start scripts in root package.json file

* chore: maintainence
- added nx to ncurc.yaml to be ignore on dep:checks
- updated dependencies (except for nx)

* downgraded @mojaloop/api-snippets and added to ignore for dep:checks until PR can be merged

* fix: for clean API server destroy on command handler

* same as before

* fix for command handler close

* fixes for unit tests

* chore: updates

* chore: dep update

* chore: revert

* chore: change

* chore: increase timeout

* chore: all

* chore: timeout

* chore: test

* chore: fix kill

* chore: open handle

* chore: hail mary

* chore: timeout

* chore: ci

* chore: event emitter warning

* chore: some fixes

* chore: remove

* chore: nx

* chore: port yevhen changes

* bump to package snapshot

* chore: ports

* bump to package version

* potential work-around for unit tests failing in CI

* try detectOpenHandles

* clean up of main package.json and dependencies updated

* chore: address some comments

* chore: prefix

* added HealthStatusEnum for health check models/services

* just added AppServerPropertyEnum to be more declarative when getting context proeprties from the app server

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* feat(mojaloop/#2809): merge local end to end func tests (#398)

* updated deps

* docker compose for end-end testing

* updated dependencies

* updates to end-end docker compose

* added docker compose for local testing

* added local-testing folder

* test case for bulk quote accept event

* Refactored the func test files and p2p is working

* running tests to check they are working

* chore: added sample ttk env file

* chore: updated sdk-out api in TTK func test framework

* fix

* fix

* added kafka related env vars

* removed duplicate env vars

* fix: func-tests-kafka-consumer-group-config

* chore: maintenance

- removed build from git commit hooks
- added updated api.yaml which was generated from yarn run build (no idea why this was not updated?)

* re-aligned bulkTransaction states to match sequence diagram

* chore: maintenance

- changed redis default config to localhost

* feat(mojaloop/#2803): sdk scheme adapter - add bulk transfers calls (Steps 62-85)

- added the following Events:
   - ProcessSDKOutboundBulkTransfersRequestCmdEvt
   - BulkTransfersRequestedDmEvt
- added processing logic on the Command Handler for
   - processing ProcessSDKOutboundBulkTransfersRequestCmdEvt
   - sending BulkTransfersRequestedDmEvt

* fix: ttk-func-config

* fixes for docker-compose

- moved redisinsight to debug profile
- rename insight to redisinsight
- removed unnecessary mongodb dependency (no idea why that was there)

* TTK test cases for bulk - initial commit

* feat: added put bulktransactions to mojaloop sim api in TTK

* chore: added some sample code

* chore: some ttk rules changes

* removed ttk for bulk

* updated repos to include bulkTransfersCount* methods and keys

* updates for story

- added ProcessSDKOutboundBulkTransfersRequestHandler to handler/index
- added get counts for transfers to bulkAggregate

* refactored aggregate for createBatches  logic

- refactored createBatches to a private _generateBatchMapArray method which separates out the logic to create the BatchMapArray to a re-usable function that supports filters
- added a new method generateBulkQuoteBatches which calls the _generateBatchMapArray and implements the previous logic to adds the individual Quotes

* clean up

* added bulkTransactionAgg.generateBulkTransferBatches method and did some cleanups

* typo fixes

* added redis insights to docker compose

* initial commit for bulk transfers intg tests

* feat(mojaloop/#2802): rework ProcessBulkQuotesCallback logic and add int tests for bulk quotes (#366)

* feat: add tests for bulk quotes

* chore: more

* chore: format

* chore: lock

* chore: cleanup

* chore: dep test

* chore: file dep test

* chore: dep and bug fix

* chore: address comments

* chore: address more comments

* chore: add assert

* chore: changes

* chore: add assertion

* chore: revert

* chore: shorthand

* chore: remove unnecessary asserts

* chore: update logic

* chore: update tests

* chore: time

* chore: timeout

* chore: update logic

* end-end testing diagram

* fixes for generators for bulk Quotes and Transfers

- cleaned up code
- made the generateBatch methods for Quotes/Transfers to be cleaner with some additional debug methods
- added sample event generator for integrationTests for processSDKOutboundBulkTransfersRequestCmdEvt

* added todo comment

* fixes for transfers/quotes counts and added todo

* lint fixes

* updates to code headers

* folder restructure for tests

* refactor folders for discovery integration tests

* updated bulk ttk test case

* changed mvp bulk testcase

* fixed ttk rule

* fix for mvp branch merges

* aligned transferId to bulkTransferRequests to use the individualTransfers.id

* chore: add bulk transfer lib event boiler plate code

* renamed files

* fix for mvp branch merges

- fixed paths to be more generic
- updated jest confit to dynamically pull in the path information to properly resolve imported alias's in test files
- added utilities to command handler tests for Timeout async awaits
- added SETUP / ACT / ASSERT comments to process_bulk_quotes_callback.test.ts

* feat(mojaloop/#2803): sdk scheme adapter added quote accept (Steps 68)

- added ProcessSDKOutboundBulkAcceptQuoteHandler
- added 'AGREEMENT_ACCEPTED' & 'AGREEMENT_REJECTED' to IndividualTransferInternalState
- added ProcessSDKOutboundBulkAcceptPartyInfoCmdEvt
- added SDKOutboundBulkAcceptQuoteProcessedDmEvt

TODO:
- Logic for 'Calculate bulk expiry based on both expirySeconds config and bulkExpiration'

* fixed header

* updates to docs for auto-numbering

* docs: added updated for `AGREEMENT_ACCEPTANCE_COMPLETED` state

* Added new states to bulkTransactionEntity

- AGREEMENT_ACCEPTANCE_COMPLETED
- TRANSFERS_COMPLETED
- TRANSFERS_FAILED
- RESPONSE_PROCESSING
- RESPONSE_SENT

* updated handleProcessSDKOutboundBulkAcceptQuoteCmdEvt to set AGREEMENT_ACCEPTANCE_COMPLETED

* fix typos

* renamed SDKOutboundBulkAutoAcceptQuoteCompleted --> SDKOutboundBulkAutoAcceptQuoteProcessed

This aligns with the auto-accept= false use-case

* feat(mojaloop/#2803): sdk scheme adapter added quote accept (Steps 68)

- added handleSDKOutboundBulkAcceptQuoteProcessed to the Domain Event Handler

* feat(mojaloop/#2803): sdk scheme adapter added quote accept (Steps 68)

- fixes for SDKOutboundBulkAcceptQuoteReceivedDmEvt
- added handleSDKOutboundBulkAcceptQuoteReceived handler to the Domain Handler

* chore: updated process_bulk_quotes_callback int-test option params

* added more test assertions

* renamed test files

* feat: added parties error response rule

* fix for process_bulk_quotes_callback.test

* fix: reworked process_bulk_quotes_callback.test

- updated the initial test to meet the correct test conditions
- updated the initial test asserts to validate the outcome of the test conditions
- added todo comment on original test
- re-factored asserts to use Class.name instead of hard-coded name string values

* refactored happy path test case and added error test case

* typo fixes

* fixed typos in process_bulk_quotes_callback.test

- fixed test description, added missing 'global BulkTransaction state should be AGREEMENT_ACCEPTANCE_PENDING' to test description

* updates to process_bulk_quotes_callback.test

- added SETUP, ACT, ASSERT comments

* updated header

* fixed indentation and moved the //act comment to the correct location

* feat(mojaloop/#2803): add event handlers (#380)

* feat(mojaloop/#2803): add BulkTransfersRequestedDmEvt implementation and handling

* add BulkTransfersCallbackReceived domain handler

* chore: key

* Update modules/outbound-domain-event-handler/src/application/handlers/bulk_transfers_callback_received.ts

Co-authored-by: Miguel de Barros <miguel@debarros.me>

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* added timeout error case

* Add readme

* Added support for ProcessSDKOutboundBulkAcceptQuoteCmdEvt and SDKOutboundBulkAcceptQuoteReceivedDmEvt

- Updates to outbound-command-event-handler
   - added/expanded on some additional logging
   - added ProcessSDKOutboundBulkAcceptQuoteCmdEvt processing support
- Updates to outbound-domain-event-handler
   - added SDKOutboundBulkAcceptQuoteReceivedDmEvt routing support
   -

* Added initial version of process_sdk_outbound_bulk_accept_quote.test

- added first integration test to process_sdk_outbound_bulk_accept_quote.test
- added initial impl of generator util helper (this needs allot of work)
- updated handleProcessSDKOutboundBulkAcceptQuoteCmdEvt to not update stage if the individualTransfer is already in AGREEMENT_FAILED state

* added more error test cases

* added more error test cases for bulk quotes

* feat: add ProcessBulkTransfersCallback handler

* added more error test cases for bulk quotes

* working  process_sdk_outbound_bulk_accept_quotes.test (but process not finished)

* added some additional comments

* fixes for outbound-domain-event-handler

- fixes to missing imports
- fixed formatting issue with application handler

* added fetchBulkBatches to generator to help fetch the right bulkBatches

* updates for outbound-command-event-handler

- added createChild support for loggers to include component name
- added new agg handler for handleProcessBulkTransfersCallbackCmdEvt PLACEHOLDER (i.e. impl is missing) with application routing
- updated process_sdk_outbound_bulk_accept_quote.test and generator to kick-off the ProcessBulkTransfersCallbackCmdEvt event

* added comment to be addressed by Kevin's PR

* added more error test cases for bulk quotes that has timeout

* fixes for merge issues

* added a child Logger for OutboundCommandEventHandlerAPIServer

* updated process_sdk_outbound_bulk_accept_quote.test description

* cleanup to loggers

* updates to outbound-command-event-handler integration tests

- refactored generator helper by removing the bulkTransactionRequest, and rather adding a subset of the config options only
- re-worked process_sdk_outbound_bulk_accept_quote.test
- completed impl the process_bulk_transfers_request.test

* added process_bulk_transfers_request.test

* removed unused variables

* added TODOs to address

* adding correct state for individualTransfer that has a failed Quote

* updated bulk_transaction_agg with types, and fixed issue with batch generator functions to pass unit tests

- added types to getBulk*Count() methods
- added validation checks on the generateBulk*Batches() methods to throw an error if batches were already generated
- fixed unit tests to match the earlier re-factor for the `createBatches` -> `generateBulk*Batches` methods

* updated end-end tests

* build and unit test fixes

* updated rules for bulk quotes

* fixes for integration tests

* fixes for build

* fixes for missing outbound-domain-event-handler to handler to route SDKOutboundBulkAcceptQuoteProcessedDmEvt events

* added bulkQuoteId to bulkTransfersRequest when creating an empty batch by the BulkBatchEntity

* updated test scripts for ID not found scenarios

* made updates to test scripts

* chore: clean up integration tests (#387)

* chore: fix discovery int tests

* chore: agreement tests

* chore: clean up transfers int tests

* chore: increment

* dep:update for api-snippets

- bumped api-snippets
- also changed dep:* package.json root scripts to use "static" output to correctly show info on console

* added missing ilpPacket and condition to bulkBatch IndividualTransfer

* fixes for func-tests

- fixed lint issues with test/fun/README.md
- added ignore for **/*.env to dockerignore file

* same as previous commit

* added missing outbound-domain-event-handler routing

- BulkTransfersCallbackReceivedDmEvt
- SDKOutboundBulkTransfersRequestProcessedDmEvt

* feat(mojaloop/#2803): add more event handlers (#383)

* feat(mojaloop/#2803): add PrepareSDKOutboundBulkResponse and PrepareSDKOutboundBulkResponseSent handler

* chore: fix

* chore: header

* chore: fix some unit tests

* chore: update bulk response

* chore: remove unneeded file

* added missing routes/implementation to the outbound-domain-event-handler

- added routing for SDKOutboundBulkResponseSentDmEvt
- added implementation for
  - handleSDKOutboundBulkTransfersRequestProcessed
  - handleSDKOutboundBulkResponseSent

* added missing routes to outbound-command-event-handler

- added route handling for PrepareSDKOutboundBulkResponseCmdEvt
- added route handling for ProcessSDKOutboundBulkResponseSentCmdEvt

* outbound-command-handler updates to handlePrepareSDKOutboundBulkResponseCmdEvt

- added central-services-shared for transferState enums
- added missing field mappings on SDKOutboundBulkResponsePreparedDmEvt for quoteResponse, fulfil, and extensions
- fixed mapping from bulkTransactionIndividualTransferResult.to to use the partyResponse.party

* Updated handleProcessSDKOutboundBulkResponseSentCmdEvt to produce SDKOutboundBulkResponseSentProcessedDmtEvt

- Added new domain event SDKOutboundBulkResponseSentProcessed
- Added logic to handleProcessSDKOutboundBulkResponseSentCmdEvt to publish event
- Updated documentation to include final SDKOutboundBulkResponseSentProcessed Domain event

* added comments and skipped an integration test

* test: updated mvp-bulk ttk-testcases

- updated happy path to validate final state "COMPLETED"

* made updates to test scripts

* Updated generator help util for integration tests on outbound-command-handler

- Added support for :
  - PrepareSDKOutboundBulkResponseCmdEvt
  - ProcessSDKOutboundBulkResponseSentCmdEvt

* added more tests for transfers

* fix: party lookup flow if party info exists (#388)

send PartyInfoCallbackReceivedDmEvt if party info exists

* fix: party lookup (#389)

party lookup fix

* updated bulk quotes error test cases

* added TC with 50 bulk transfer requests

* fix(mojaloop/#2803): adjust transfer creation logic and int tests (#390)

* chore: fix discovery int tests

* chore: agreement tests

* chore: clean up transfers int tests

* chore: increment

* fix: adjust transfer creation logic and int tests

* chore: cleanup

* Update modules/outbound-command-event-handler/src/domain/bulk_transaction_agg/index.ts

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* chore: dep update

* chore: revert

* chore: update ncurc

* chore: yaml file

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* updated TC with 50 bulk transfer requests

* updated TC with 50 bulk transfer requests

* added negative test case for transfers

* updated negative test case for transfers

* new file for transfer errors

* new file for quotes error cases

* added new error test case for transfers

* restructuring of files

* added an error test case for transfers

* added more test cases for quotes error cases

* updated test cases for quotes

* adding happy path

* updated rule for quotes error

* updated test case numbers

* re-arranged test cases

* updated dependencies

* fix: bugs 2946, 2951 (#391)

* fix: bugs 2946, 2951
* fix #2946
* fix #2951

* handle errors

* bump deps

* fix enums

* fix enums

* update deps

* fix tests

* fix tests

* fix: ci build order (#393)

* new file for transfer errors

* new file for quotes error cases

* added new error test case for transfers

* restructuring of files

* added an error test case for transfers

* added more test cases for quotes error cases

* updated test cases for quotes

* fix: ci build order seems to be an issue

* deps updated

* rebuild yarn.lock

* fix for unit tests

* added private-shared-lib to api-svc

Co-authored-by: Sridevi Miriyala <sridevi.miriyala@modusbox.com>

* fix party resolution.

* update e2e tests

* fix audit issues

* update circleci machine image

* update circleci machine image

* clear event listener in redis mock

* fix tests

Co-authored-by: Miguel de Barros <miguel@debarros.me>
Co-authored-by: Sridevi Miriyala <sridevi.miriyala@modusbox.com>

* fix: unit tests (#397)

close active event emitters

* fix handling quote error response

* updated happy path test case

* fix handling quote error response

* updated test cases

* updated quotes test cases

* fix assigning transactionId

* added test cases markdown

* updated test cases markdown

* updated test cases markdown

* updated test cases markdown

* updated test cases markdown

* chore: fix int tests (#399)

* chore: try fix tests

* chore: regen lock

* chore: dep update

Co-authored-by: Vijay Kumar <vijaya.guthi@modusbox.com>
Co-authored-by: Miguel de Barros <miguel@debarros.me>
Co-authored-by: Kevin Leyow <kleyow@gmail.com>
Co-authored-by: Yevhen Kyriukha <kirgene@gmail.com>

* chore(mojaloop/#2990): pull in changes from master (#405)

* MBP-604: Pull changes from mojaloop-connector.

* Fix test cases.

* fix lint errors.

* Update src/InboundServer/index.js

Co-authored-by: Kevin Leyow <kleyow@gmail.com>

* fix audit errors.

* bump packages.

* update constributors list.

* Refactor to use new Redis API.

* fix api call.

* fix audit errors.

* bump version

* fix audit errors.

* update packages.

* fix audit errors.

* revert version change.

* uncomment test feature.

* chore(release): 15.0.1 [skip ci]

* chore!: add dummy pr to major version bump due to unsquashed title (#327)

chore(snapshot): 15.0.2-snapshot.0

* chore(release): 16.0.0 [skip ci]

* feat: suppress health check logs (#328)

Suppress health check logs.

* chore(release): 17.0.0 [skip ci]

* fix: creating inbound server (#329)

* fix creating InboundServer

* update circleci node image.

* Revert "update circleci node image."

This reverts commit 5a38cb0af7c6b4e47a3cf1060fb45d4d66a18582.

* remove SHELL=sh from audit commands.

* Use per commit dep cache.

* chore(release): 17.0.1 [skip ci]

* fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback (#331)

fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback - https://github.com/mojaloop/project/issues/2811
- fixed transfer-state for callback-response by PayeeFSP to use FSPIOP `TransferState` & `BulkTransferState` Enums from central-services-shared
- re-factored & consolidated enums into a common `SDKStateEnum` which is used for all `currentState` assignments and comparisons
- removed duplicate/unnecessary enums
- updated unit tests to use enums
- updated dependencies
- fixed audit issue
- Fixed image-scan issue as docker image used a root user by adding a non-root user 'ml-user'
- re-aligned Dockerfile working directory to /opt/app for consistency across ml-projects
- aligned CI config for consistency across ml-projects

fix(mojaloop/#2816): SDK-Scheme-Adapter is missing/incorrect bulkTransferState on a PUT /bulkTransfer/{id} Callback by the PayeeFSP- https://github.com/mojaloop/project/issues/2816
- fixed bad enum mapping for bulkTransferState for `COMPLETED` (it was `COMMITTED`)
- added missed bulkTransferState enum for `REJECTED`

BREAKING CHANGE: docker image now uses `/opt/app` instead of the root folder which will impact config mounts, and the secrets folder is no longer included in the docker image which aligns with best practices. Both these changes should NOT be a breaking change but I have marked them as such to make this change more obvious.

* fix: updated dependencies

* chore(release): 18.0.0 [skip ci]

* chore: added .npmignore so that the test folder is not included when publishing packages (#332)

* chore: added .npmignore so that the test folder is not included when publishing packages
* chore: fixes for audit-resolve

* chore: uodated deps (#333)

* chore: added .npmignore so that the test folder is not included when publishing packages

* chore: fixes for audit-resolve

* chore: updated dependencies

* chore(release): 18.0.1 [skip ci]

* chore: updates to readme for header badges [skip ci] (#334)

- updated readme to include docker-pulls

* fix: ws-connection-issue (#339)

- downgraded ws lib dependency from v8.x to v7.5.5 due to breaking change that cause intermitant disconnections
- added ncurc.yaml file with ws lib dependency added with an appropriate comment
- added @mojaloop/api-snippets to dep:check ignore list as it requires PR [sdk-scheme-adapter/pull/340](https://github.com/mojaloop/sdk-scheme-adapter/pull/340) has been merged

* chore(release): 18.0.2 [skip ci]

* feat!: use updated outbound OpenAPI specification from api-snippets (#340)

* feat!: use updated outbound OpenAPI specification from api-snippets

* use audit-ci for audit check.

* move api-snippets to deps.

* chore(release): 19.0.0 [skip ci]

* fix(mojaloop/2886): fix bulk-quotes and bulk-transfers functionality (#344)

fix(mojaloop/2886): fix bulk-quotes and bulk-transfers functionality (#344)

* fix: added bulk-quotes to inbound api definition
* chore: updated TTK version, updated TTK config files  and changed ttk port
* fix: bulk quotes callback redis publish channel
* fix: fixed bulk quotes and bulk transfers response in outbound api
* chore: updated mojaloop sim api in ttk

* chore(release): 19.0.1 [skip ci]

* chore: address merge mistakes

* Update .dockerignore

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* Update .dockerignore

Co-authored-by: Miguel de Barros <miguel@debarros.me>

Co-authored-by: Yevhen Kyriukha <kirgene@gmail.com>
Co-authored-by: mojaloopci <info@mojaloop.io>
Co-authored-by: Miguel de Barros <miguel@debarros.me>
Co-authored-by: vijayg10 <33152110+vijayg10@users.noreply.github.com>

* feat(mojaloop#2965): end-end functional tests (#402)

* updated test cases

* updated test cases

* updated transfer test cases

* updated rules for quotes test cases

* refactor: update inbound server to handle backend bulk errors

* chore: unit tests

* updated transfers test cases

* chore: fixes

* chore: remove

* updated transfers test cases

* updated rules for transfers test cases

* updated rules for quotes test cases

* updated rules for happy path test cases

* updated rules for happy path test cases

* removed duplicate happy path test cases

* updated happy path test cases

* added bulk test for receiver with 50 transfers

* updated transfer batch failure test case

* snapshot release version bump

* updated transfer batch failure test case

* fix: added optional chaining to bulk transfer handler (#403)

* fix: added optional chaining to bulk transfer handler

* chore: dep update

* updated transfer batch failure test case

* chore: add last error

* updated transfer batch failure test case

* refactor: refactor individual quote and transfer error handling (#404)

* refactor: refactor individual quote and transfer error hadnling

* chore: remove debug statements

* chore: updates

* chore: update description

Co-authored-by: Kevin <kleyow@gmail.com>
Co-authored-by: Miguel de Barros <miguel@debarros.me>

* chore(mojaloop/#2990): pull in changes from master again due to merge (#406)

* MBP-604: Pull changes from mojaloop-connector.

* Fix test cases.

* fix lint errors.

* Update src/InboundServer/index.js

Co-authored-by: Kevin Leyow <kleyow@gmail.com>

* fix audit errors.

* bump packages.

* update constributors list.

* Refactor to use new Redis API.

* fix api call.

* fix audit errors.

* bump version

* fix audit errors.

* update packages.

* fix audit errors.

* revert version change.

* uncomment test feature.

* chore(release): 15.0.1 [skip ci]

* chore!: add dummy pr to major version bump due to unsquashed title (#327)

chore(snapshot): 15.0.2-snapshot.0

* chore(release): 16.0.0 [skip ci]

* feat: suppress health check logs (#328)

Suppress health check logs.

* chore(release): 17.0.0 [skip ci]

* fix: creating inbound server (#329)

* fix creating InboundServer

* update circleci node image.

* Revert "update circleci node image."

This reverts commit 5a38cb0af7c6b4e47a3cf1060fb45d4d66a18582.

* remove SHELL=sh from audit commands.

* Use per commit dep cache.

* chore(release): 17.0.1 [skip ci]

* fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback (#331)

fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback - https://github.com/mojaloop/project/issues/2811
- fixed transfer-state for callback-response by PayeeFSP to use FSPIOP `TransferState` & `BulkTransferState` Enums from central-services-shared
- re-factored & consolidated enums into a common `SDKStateEnum` which is used for all `currentState` assignments and comparisons
- removed duplicate/unnecessary enums
- updated unit tests to use enums
- updated dependencies
- fixed audit issue
- Fixed image-scan issue as docker image used a root user by adding a non-root user 'ml-user'
- re-aligned Dockerfile working directory to /opt/app for consistency across ml-projects
- aligned CI config for consistency across ml-projects

fix(mojaloop/#2816): SDK-Scheme-Adapter is missing/incorrect bulkTransferState on a PUT /bulkTransfer/{id} Callback by the PayeeFSP- https://github.com/mojaloop/project/issues/2816
- fixed bad enum mapping for bulkTransferState for `COMPLETED` (it was `COMMITTED`)
- added missed bulkTransferState enum for `REJECTED`

BREAKING CHANGE: docker image now uses `/opt/app` instead of the root folder which will impact config mounts, and the secrets folder is no longer included in the docker image which aligns with best practices. Both these changes should NOT be a breaking change but I have marked them as such to make this change more obvious.

* fix: updated dependencies

* chore(release): 18.0.0 [skip ci]

* chore: added .npmignore so that the test folder is not included when publishing packages (#332)

* chore: added .npmignore so that the test folder is not included when publishing packages
* chore: fixes for audit-resolve

* chore: uodated deps (#333)

* chore: added .npmignore so that the test folder is not included when publishing packages

* chore: fixes for audit-resolve

* chore: updated dependencies

* chore(release): 18.0.1 [skip ci]

* chore: updates to readme for header badges [skip ci] (#334)

- updated readme to include docker-pulls

* fix: ws-connection-issue (#339)

- downgraded ws lib dependency from v8.x to v7.5.5 due to breaking change that cause intermitant disconnections
- added ncurc.yaml file with ws lib dependency added with an appropriate comment
- added @mojaloop/api-snippets to dep:check ignore list as it requires PR [sdk-scheme-adapter/pull/340](https://github.com/mojaloop/sdk-scheme-adapter/pull/340) has been merged

* chore(release): 18.0.2 [skip ci]

* feat!: use updated outbound OpenAPI specification from api-snippets (#340)

* feat!: use updated outbound OpenAPI specification from api-snippets

* use audit-ci for audit check.

* move api-snippets to deps.

* chore(release): 19.0.0 [skip ci]

* fix(mojaloop/2886): fix bulk-quotes and bulk-transfers functionality (#344)

fix(mojaloop/2886): fix bulk-quotes and bulk-transfers functionality (#344)

* fix: added bulk-quotes to inbound api definition
* chore: updated TTK version, updated TTK config files  and changed ttk port
* fix: bulk quotes callback redis publish channel
* fix: fixed bulk quotes and bulk transfers response in outbound api
* chore: updated mojaloop sim api in ttk

* chore(release): 19.0.1 [skip ci]

Co-authored-by: Yevhen Kyriukha <kirgene@gmail.com>
Co-authored-by: mojaloopci <info@mojaloop.io>
Co-authored-by: Miguel de Barros <miguel@debarros.me>
Co-authored-by: vijayg10 <33152110+vijayg10@users.noreply.github.com>

* chore(snapshot): 20.0.0-snapshot.0

* chore: undo snapshot command

* chore(snapshot): 20.0.0-snapshot.0

* snapshot adjust

* snapshot adjust

* fix: CI references of package-lock.json changed to package.json

* fix: ci snapshot/release tags failing

- fixed tags for snapshot/release to tag from the local docker image

* fix(mojaloop/#2993): change external bulk prepare to internal function (#408)

* fix: change external bulk prepare to internal function

* chore: field

* chore: yarn

* fields

* chore(snapshot): 20.0.0-snapshot.23

* chore: koa import

* chore(snapshot): 20.0.0-snapshot.24

* chore: dep update

* chore(snapshot): 20.0.0-snapshot.25

* chore: dep update

Co-authored-by: Vijay Kumar <vijaya.guthi@modusbox.com>
Co-authored-by: Shashikant Hirugade <shashikant.hirugade@modusbox.com>
Co-authored-by: vijayg10 <33152110+vijayg10@users.noreply.github.com>
Co-authored-by: shashi165 <33355509+shashi165@users.noreply.github.com>
Co-authored-by: Miguel de Barros <miguel@debarros.me>
Co-authored-by: Juan Correa <gibaros@users.noreply.github.com>
Co-authored-by: Yevhen Kyriukha <kirgene@gmail.com>
Co-authored-by: mojaloopci <info@mojaloop.io>
Co-authored-by: sri-miriyala <38143240+sri-miriyala@users.noreply.github.com>
sri-miriyala added a commit that referenced this pull request Nov 1, 2022
* Added a design diagram

* Formatted the sequence diagram and added notes

* feat: added autoaccept party/quotes

* feat: added inbound diagram

* feat: added inbound diagram

* chore: re-organized the folder structure of bulk design documents

* chore: added a overview image

* chore: changed image

* fix formatting

* refactored outbound sequence diagram

* chore: fixed quotes in bulk seq diagram

* fix: refactored the parties and quotes with proper states

* fix: defined proper states in outbound transfers seq diagram

* feat: refined inbound bulk sequence diagrams

* feat: added redis message format

* chore: modified redis doc

* fix

* feat!: Initial Commit (#323)

* Initial Commit

* added start script to adapter

* cleanup

* cleanup

* cleanup

* cicd

* cicd

* cicd

* cicd

* cicd

* cicd

* cicd

* chore: fixed api-svc api templates for inbound and outbound paths to correctly resolve dependent yamls

* chore: fixes for monorepo

- removed global eslint config, and added eslint to each module
- renamed start:adapter root package script to start:api-svc and fixed the command
- added missing dependencies to module/api-svc to fix unit tests

* fix: api-snippets

* fix: cicd

* fix: cicd

* fix: cicd

* fix: cicd

* fix: cicd

* fix: cicd

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* Made some changes to redis

* Finalized outbound sequence diagram

* mbp-633-638 Add interface, types, errors and aggregate

* changed the inbound transfer event names

* rename events and topics for outbound

* Added inbound redis message format

* Changed quotes and transfers requests to core connector to sync

* feat: update aggregate, irepo, organize types in public, private and local

* fix: fixed the cicd audit check (#326)

* Initial Commit

* added start script to adapter

* cleanup

* cleanup

* cleanup

* cicd

* cicd

* cicd

* cicd

* cicd

* cicd

* cicd

* chore: fixed api-svc api templates for inbound and outbound paths to correctly resolve dependent yamls

* chore: fixes for monorepo

- removed global eslint config, and added eslint to each module
- renamed start:adapter root package script to start:api-svc and fixed the command
- added missing dependencies to module/api-svc to fix unit tests

* fix: api-snippets

* fix: cicd

* fix: cicd

* fix: cicd

* fix: cicd

* fix: cicd

* fix: cicd

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

* fix: cicd audit check

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* chore: merge master into mvp (#337)

* MBP-604: Pull changes from mojaloop-connector.

* Fix test cases.

* fix lint errors.

* Update src/InboundServer/index.js

Co-authored-by: Kevin Leyow <kleyow@gmail.com>

* fix audit errors.

* bump packages.

* update constributors list.

* Refactor to use new Redis API.

* fix api call.

* fix audit errors.

* bump version

* fix audit errors.

* update packages.

* fix audit errors.

* revert version change.

* uncomment test feature.

* chore(release): 15.0.1 [skip ci]

* chore!: add dummy pr to major version bump due to unsquashed title (#327)

chore(snapshot): 15.0.2-snapshot.0

* chore(release): 16.0.0 [skip ci]

* feat: suppress health check logs (#328)

Suppress health check logs.

* chore(release): 17.0.0 [skip ci]

* fix: creating inbound server (#329)

* fix creating InboundServer

* update circleci node image.

* Revert "update circleci node image."

This reverts commit 5a38cb0af7c6b4e47a3cf1060fb45d4d66a18582.

* remove SHELL=sh from audit commands.

* Use per commit dep cache.

* chore(release): 17.0.1 [skip ci]

* fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback (#331)

fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback - https://github.com/mojaloop/project/issues/2811
- fixed transfer-state for callback-response by PayeeFSP to use FSPIOP `TransferState` & `BulkTransferState` Enums from central-services-shared
- re-factored & consolidated enums into a common `SDKStateEnum` which is used for all `currentState` assignments and comparisons
- removed duplicate/unnecessary enums
- updated unit tests to use enums
- updated dependencies
- fixed audit issue
- Fixed image-scan issue as docker image used a root user by adding a non-root user 'ml-user'
- re-aligned Dockerfile working directory to /opt/app for consistency across ml-projects
- aligned CI config for consistency across ml-projects

fix(mojaloop/#2816): SDK-Scheme-Adapter is missing/incorrect bulkTransferState on a PUT /bulkTransfer/{id} Callback by the PayeeFSP- https://github.com/mojaloop/project/issues/2816
- fixed bad enum mapping for bulkTransferState for `COMPLETED` (it was `COMMITTED`)
- added missed bulkTransferState enum for `REJECTED`

BREAKING CHANGE: docker image now uses `/opt/app` instead of the root folder which will impact config mounts, and the secrets folder is no longer included in the docker image which aligns with best practices. Both these changes should NOT be a breaking change but I have marked them as such to make this change more obvious.

* fix: updated dependencies

* chore(release): 18.0.0 [skip ci]

* chore: added .npmignore so that the test folder is not included when publishing packages (#332)

* chore: added .npmignore so that the test folder is not included when publishing packages
* chore: fixes for audit-resolve

* chore: uodated deps (#333)

* chore: added .npmignore so that the test folder is not included when publishing packages

* chore: fixes for audit-resolve

* chore: updated dependencies

* chore(release): 18.0.1 [skip ci]

* chore: updates to readme for header badges [skip ci] (#334)

- updated readme to include docker-pulls

* chore: fixes for merge

* chore: updated changelog header

* chore: fixes for ci-cd

* chore: fixes for ci-cd

* chore: fixes for ci-cd

* chore: fixes for ci-cd

Co-authored-by: Yevhen Kyriukha <kirgene@gmail.com>
Co-authored-by: Kevin Leyow <kleyow@gmail.com>
Co-authored-by: mojaloopci <info@mojaloop.io>

* feat(mojaloop/2799): implement mvp bulk discovery (#335)

* added poc-arch folders and a common-lib module
* chore: fixes for yarn install dependencies
* got first kafka domain event message
* removed some unused code and many improvements
* feat: imported types and json schema from api-snippets
* Added sdkOutboundbulkRequestState
* Added command event message to the handler
* command handler is working
* feat: storing state in redis is working with a sample redis repo implementation
* chore: redis repo is working for bulk transaction entity
* feat: stored individual transfers in redis
* chore: refactored bulk transaction agg
* feat: added test api
* chore: restructured the modules
* chore: restructured the files further
* chore: refactored docker-compose
* chore: added nvm use command to running instructions in readme file
* chore: refactored api server
* chore: changed start command to output the logs

* feat(mojaloop/#2883): add SDKOutboundBulkPartyInfoRequested domain event handler (#349)

* feat(mojaloop/#2883): add SDKOutboundBulkPartyInfoRequested handler

* chore: unit test

* chore: switch enums to use class name

* chore: lint

* chore: audit

* feat(mojaloop/#2874): add implement full CI-CD Pipeline to do automated releases and testing (#347)

feat(mojaloop/#2874): add implement full CI-CD Pipeline to do automated releases and testing - https://github.com/mojaloop/project/issues/2874
- added nx dependency and config to assisth with Monorepo tooling
- added Monorepo readme
- re-factored package.json scripts to support nx cli
- re-aligned CI config to master branch & mojaloop standards (i.e. latest slack, github API client, etc)

chore: maintenance
- fixed lint issues
- fixed dependency issues
- updated CODEOWNERS

NOTES:
- Unit/Integration tests will fail until their issues can be resolved by other feature work
- A single Dockerfile will be used for simplicity which will allow the following execution scenarios:
    - Start all modules within the same Docker container: `yarn run start` <-- This is only recommended for local dev/testing purposes
    - Start a single module: `yarn nx run <module-name>:start` <-- This is prefered for Production, and thus separate container instances should be started up to run each module specifically using this command.

* chore: added missing release/shapshot npm scripts to modules, and also added skip.changelog to module

chore: added missing release/shapshot npm scripts to modules, and also added skip.changelog to module

* chore: updated changelog git url in versionrc file

* feat(mojaloop/#2883): add PartyInfoCallbackReceived domain event handler (#350)

* feat(mojaloop/#2883): add PartyInfoCallbackReceived domain event handler

* chore: tests

* chore: deps

* chore: dep

* feat!: merge with master, fix 2813 bugs (#357)

* merge with master, fix 2813 bugs

* fix names

* fix party result.

* openapi outbound schema changes from master.

* use enum

* update deps

* bump yarn.lock

* fix test cases.

* fix tests

* update packages.

* fix await

* fix test cases.

* fix tests

* fix test

* fix method name case

* refactor command and domain event names

* update handler names

* fix names

* refactor(mojaloop/#2883): move repo code out of command module and into shared lib  (#358)

* chore: add redis config to domain handler

* refactor: move repo code into shared lib

* chore: ts alias

* chore: revert

* chore: fix circular reference

* chore: lockfile

* chore: lint

* chore: address comments

* chore: update deps

* chore: fix unit tests

* chore: dep update

* chore: fix import

* chore: address changes

* fix: redis timeout while running integration tests (#361)

* fix: redis timeout

* update packages

* update packages

* update deps

* fix running integration tests

* cleanup.

* fix path

* update deps

* increase sleep

* run int tests for each module sequentially

* increase delay

* dep update

* increase delay

* feat(mojaloop/2802): add bulk quotes related functionality (#356)

feat(mojaloop/2802): add bulk quotes related functionality (#356)

* fix(mojaloop/#2883): resolve integration tests being broken due to import (#364)

* fix: resolve integration tests being broken due to import

* chore: remove debugging lines

* chore: timeout

* chore: fix

* chore: fix open handle

* chore: address comments

* chore: dep update

* chore: increase timeout

* chore: increase timeout

* feat(mojaloop/#2883): add PartyInfoCallbackProcessed domain handler (#362)

* chore: add redis config to domain handler

* refactor: move repo code into shared lib

* chore: ts alias

* chore: revert

* chore: fix circular reference

* chore: lockfile

* chore: lint

* chore: address comments

* chore: init

* feat: add PartyInfoCallbackProcessed domain handler

* chore: rename

* chore: update deps

* chore: fix unit tests

* chore: dep update

* chore: fix import

* chore: update command integration tests

* chore: fix imports

* chore: fix merge mistakes

* chore: fix more merge mistakes

* chore: fix import

* chore: add integration tests for PartyInfoCallbackProcessed handler

* chore: lint

* chore: int tests

* chore: fix tests

* chore: increase message timeout

* chore: increase message timeout

* chore: increase message timeout

* chore: fix circular reference

* chore: increase message timeout

* chore: fix tests

* chore: merge

* chore: fix imports

* chore: tests

* chore: dep

* chore: increase timeout

* chore: reorder

* Update outbound_event_handler.test.ts

* chore: increase timeout

* chore: bump redis version

* chore: adjust timeout

* chore: address comments

* chore: lock

* docs: openapi bulk doc update (#363)

* docs: update api docs

* update types, add plantuml svg validation

* docs: dfsp inbound schema and docs updates

* add bulk api sequence diagram
* update dfsp inbound schema

* update outbound sequence diagram

* update yarn.lock

* feat!: implement backend and fspiop event services (#365)

* feat!: implement backend and fspiop event services

New API handlers:
* POST /bulkTransactions:
  produces:
    SDKOutboundBulkRequestReceived
* PUT /bulkTransactions/{bulkTransactionId}:
  produces:
    SDKOutboundBulkAcceptPartyInfoReceived
    SDKOutboundBulkAcceptQuoteReceived

New event handlers:
* PartyInfoRequested: (GET /party, PUT /party)
* BulkQuotesRequested: (POST /bulkQuotes, PUT /bulkQuotes)
* SDKOutboundBulkAcceptPartyInfoRequested
* SDKOutboundBulkAcceptQuoteRequested

* fix: config env vars (#367)

config env vars fixes

* fix: api-svc headers (#368)

* fix(mojaloop/2886): fix bulk-quotes and bulk-transfers (#344) (#369)

Merge fix(mojaloop/2886): fix bulk-quotes and bulk-transfers functionality (#344)

* fix(mojaloop/2809): bulk quotes endpoint in inbound api-template file (#371)

fix([mojaloop/2809](https://github.com/mojaloop/project/issues/2809)): missing post bulkQuotes endpoint in inbound api-template file

* fix(mojaloop/2809): api-svc issues (#372)

fix([mojaloop/2809](https://github.com/mojaloop/project/issues/2809)): some api-svc issues

* fix(mojaloop/2809): some more issues (#373)

* fix: some more issues

* chore: updated dependencies

* fix(mojaloop/2809): individual transfer results is empty (#374)

* fix: wrong variable name and format

* chore: update dependencies

* fix: post bulk tx status code (#375)

* fix: post bulk tx status code

fix POST /bulkTransactions http status code

* bump deps

* feat: add test cases for fspiop and backend event servers (#377)

* test: add test cases for fspiop and backend event servers

cover:
* POST /bulkTransactions
* PUT /bulkTransactions/{bulkTransactionId}
* PartyInfoRequested event
* BulkQuotesRequested event
* SDKOutboundBulkAcceptPartyInfoRequested event
* SDKOutboundBulkAcceptQuoteRequested event

* use http status code enums from @mojaloop/central-services-shared

* fix(mojaloop/#2809): fixed outbound party error response format (#381)

fix([mojaloop/2809](https://github.com/mojaloop/project/issues/2809)): fixed outbound party error response format

* feat: handle more events on backend api (#385)

* feat: handle more events on backend api

* SDKOutboundBulkResponsePrepared
* SDKOutboundBulkResponseSent

* fix(mojaloop/2941): handled party lookup timeout error (#386)

fix: handled-party-lookup-timeout-error

* feat(bulk/#2802): merge integration tests for bulk parties and quotes  (#376)

* updated deps

* docker compose for end-end testing

* updated dependencies

* updates to end-end docker compose

* added docker compose for local testing

* added local-testing folder

* test case for bulk quote accept event

* Refactored the func test files and p2p is working

* running tests to check they are working

* chore: added sample ttk env file

* chore: updated sdk-out api in TTK func test framework

* fix

* fix

* added kafka related env vars

* removed duplicate env vars

* fix: func-tests-kafka-consumer-group-config

* fix: ttk-func-config

* TTK test cases for bulk - initial commit

* feat: added put bulktransactions to mojaloop sim api in TTK

* chore: added some sample code

* chore: some ttk rules changes

* removed ttk for bulk

* added redis insights to docker compose

* feat(mojaloop/#2802): rework ProcessBulkQuotesCallback logic and add int tests for bulk quotes (#366)

* feat: add tests for bulk quotes

* chore: more

* chore: format

* chore: lock

* chore: cleanup

* chore: dep test

* chore: file dep test

* chore: dep and bug fix

* chore: address comments

* chore: address more comments

* chore: add assert

* chore: changes

* chore: add assertion

* chore: revert

* chore: shorthand

* chore: remove unnecessary asserts

* chore: update logic

* chore: update tests

* chore: time

* chore: timeout

* chore: update logic

* end-end testing diagram

* folder restructure for tests

* refactor folders for discovery integration tests

* updated bulk ttk test case

* changed mvp bulk testcase

* fixed ttk rule

* renamed files

* added more test assertions

* feat: added parties error response rule

* refactor(mojaloop/#2802): rework party lookup loop and count increment logic (#378)

* refactor: rework party lookup loop

* chore: fix seq doc

* chore: doc

* chore: fix comment

* chore: resolve duplicate callback timing issue

* chore: test fix and bulk quote increment

* chore: dep up

* chore: missing await

* chore: increase wait

* chore: wait

* chore: dep

* chore: update

* chore: give docker more time to boot

* chore: fix

* chore: ci wait

* chore: diff

* wait

* chore: log

* chore: try topics

* chore: config

* fix: fix build issue

* fix: fix some merge issue

* chore: updated dependencies and lint

Co-authored-by: Vijay Kumar <vijaya.guthi@modusbox.com>
Co-authored-by: Kevin Leyow <kleyow@gmail.com>

* feat(mojaloop/#2803): sdk scheme adapter add bulk transfers calls (Steps 62-85) (#370)

feat(mojaloop/#2803): sdk scheme adapter - add bulk transfers calls (Steps 62-85) - https://github.com/mojaloop/project/issues/2803
- Added implementation for the following events:
    - `SDKOutboundBulkAcceptQuoteReceivedDmEvt `
    - `ProcessSDKOutboundBulkAcceptQuoteCmdEvt `
    - `ProcessSDKOutboundBulkTransfersRequestCmdEvt `
    - `BulkTransfersRequestedDmEvt `
    - `BulkTransfersCallbackReceivedDmEvt `
    - `ProcessBulkTransfersCallbackCmdEvt `
    - `BulkTransfersCallbackProcessedDmEvt `
    - `PrepareSDKOutboundBulkResponseCmdEvt`
    - `ProcessSDKOutboundBulkResponseSentCmdEvt`
    - `ProcessSDKOutboundBulkTransfersRequestCompleteCmdEvt`
    - `BulkTransfersProcessedDmEvt`
    - `SDKOutboundBulkAcceptQuoteProcessedDmEvt`
    - `SDKOutboundBulkAutoAcceptQuoteCompletedDmEvt`
    - `SDKOutboundBulkResponseSentProcessedDmEvt`
    - `SDKOutboundBulkTransfersRequestProcessedDmEvt`
- Added Integration Tests for:
    - ProcessSDKOutboundBulkAcceptQuoteCmdEvt
    - ProcessSDKOutboundBulkTransfersRequestCmdEvt
    - ProcessBulkTransfersCallbackCmdEvt
    - PrepareSDKOutboundBulkResponseCmdEvt
    - ProcessSDKOutboundBulkResponseSentCmdEvnt
    - ProcessSDKOutboundBulkTransfersRequestCompleteCmdEvt
    - ProcessSDKOutboundBulkResponseSentCmdEvt
- Added sample `modules/outbound-command-event-handler/test/integration/sample_events/process_sdk_outbound_bulk_transfers_request.test.ts`

chore: maintenance:
- Removed build from git commit hooks
- Added updated api.yaml which was generated from yarn run build (no idea why this was not updated?)
- Updated root docker-compose to correctly work, and moved/renamed insight -> redisinsight and added it to the "debug" profile
- Added child-loggers for Command Handler
- Re-factored bulk_transaction_agg.createBatch() to generateBulk*Batches() for Quotes and Transfers

* fix: package run commands referencing incorrect module names (#395)

* fixes for unit test failures

- fixed run/service scripts in dom/cmd event handler package.json files
- fixed module names for individual start scripts in root package.json file

* chore: maintainence
- added nx to ncurc.yaml to be ignore on dep:checks
- updated dependencies (except for nx)

* downgraded @mojaloop/api-snippets and added to ignore for dep:checks until PR can be merged

* fix: for clean API server destroy on command handler

* same as before

* fix for command handler close

* fixes for unit tests

* chore: peg snippets

Co-authored-by: Kevin <kleyow@gmail.com>

* fix: ci build order (#396)

* added private-shared-lib to api-svc

* fix: ci build order seems to be an issue

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* feat(mojaloop/#2914): import api server with health endpoint (#394)

* feat(mojaloop/#2914): import api server with health endpoint

* chore: update

* chore: lock

* added private-shared-lib to api-svc

* fix: ci build order seems to be an issue

* deps updated

* chore: peg api-snippets

* chore: fix unit

* chore: dep update

* chore: audit

* chore: add no-cache unit test command

* chore: test peg nx for ci issue

* fixes for unit test failures

- fixed run/service scripts in dom/cmd event handler package.json files
- fixed module names for individual start scripts in root package.json file

* chore: maintainence
- added nx to ncurc.yaml to be ignore on dep:checks
- updated dependencies (except for nx)

* downgraded @mojaloop/api-snippets and added to ignore for dep:checks until PR can be merged

* fix: for clean API server destroy on command handler

* same as before

* fix for command handler close

* fixes for unit tests

* chore: updates

* chore: dep update

* chore: revert

* chore: change

* chore: increase timeout

* chore: all

* chore: timeout

* chore: test

* chore: fix kill

* chore: open handle

* chore: hail mary

* chore: timeout

* chore: ci

* chore: event emitter warning

* chore: some fixes

* chore: remove

* chore: nx

* chore: port yevhen changes

* bump to package snapshot

* chore: ports

* bump to package version

* potential work-around for unit tests failing in CI

* try detectOpenHandles

* clean up of main package.json and dependencies updated

* chore: address some comments

* chore: prefix

* added HealthStatusEnum for health check models/services

* just added AppServerPropertyEnum to be more declarative when getting context proeprties from the app server

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* feat(mojaloop/#2809): merge local end to end func tests (#398)

* updated deps

* docker compose for end-end testing

* updated dependencies

* updates to end-end docker compose

* added docker compose for local testing

* added local-testing folder

* test case for bulk quote accept event

* Refactored the func test files and p2p is working

* running tests to check they are working

* chore: added sample ttk env file

* chore: updated sdk-out api in TTK func test framework

* fix

* fix

* added kafka related env vars

* removed duplicate env vars

* fix: func-tests-kafka-consumer-group-config

* chore: maintenance

- removed build from git commit hooks
- added updated api.yaml which was generated from yarn run build (no idea why this was not updated?)

* re-aligned bulkTransaction states to match sequence diagram

* chore: maintenance

- changed redis default config to localhost

* feat(mojaloop/#2803): sdk scheme adapter - add bulk transfers calls (Steps 62-85)

- added the following Events:
   - ProcessSDKOutboundBulkTransfersRequestCmdEvt
   - BulkTransfersRequestedDmEvt
- added processing logic on the Command Handler for
   - processing ProcessSDKOutboundBulkTransfersRequestCmdEvt
   - sending BulkTransfersRequestedDmEvt

* fix: ttk-func-config

* fixes for docker-compose

- moved redisinsight to debug profile
- rename insight to redisinsight
- removed unnecessary mongodb dependency (no idea why that was there)

* TTK test cases for bulk - initial commit

* feat: added put bulktransactions to mojaloop sim api in TTK

* chore: added some sample code

* chore: some ttk rules changes

* removed ttk for bulk

* updated repos to include bulkTransfersCount* methods and keys

* updates for story

- added ProcessSDKOutboundBulkTransfersRequestHandler to handler/index
- added get counts for transfers to bulkAggregate

* refactored aggregate for createBatches  logic

- refactored createBatches to a private _generateBatchMapArray method which separates out the logic to create the BatchMapArray to a re-usable function that supports filters
- added a new method generateBulkQuoteBatches which calls the _generateBatchMapArray and implements the previous logic to adds the individual Quotes

* clean up

* added bulkTransactionAgg.generateBulkTransferBatches method and did some cleanups

* typo fixes

* added redis insights to docker compose

* initial commit for bulk transfers intg tests

* feat(mojaloop/#2802): rework ProcessBulkQuotesCallback logic and add int tests for bulk quotes (#366)

* feat: add tests for bulk quotes

* chore: more

* chore: format

* chore: lock

* chore: cleanup

* chore: dep test

* chore: file dep test

* chore: dep and bug fix

* chore: address comments

* chore: address more comments

* chore: add assert

* chore: changes

* chore: add assertion

* chore: revert

* chore: shorthand

* chore: remove unnecessary asserts

* chore: update logic

* chore: update tests

* chore: time

* chore: timeout

* chore: update logic

* end-end testing diagram

* fixes for generators for bulk Quotes and Transfers

- cleaned up code
- made the generateBatch methods for Quotes/Transfers to be cleaner with some additional debug methods
- added sample event generator for integrationTests for processSDKOutboundBulkTransfersRequestCmdEvt

* added todo comment

* fixes for transfers/quotes counts and added todo

* lint fixes

* updates to code headers

* folder restructure for tests

* refactor folders for discovery integration tests

* updated bulk ttk test case

* changed mvp bulk testcase

* fixed ttk rule

* fix for mvp branch merges

* aligned transferId to bulkTransferRequests to use the individualTransfers.id

* chore: add bulk transfer lib event boiler plate code

* renamed files

* fix for mvp branch merges

- fixed paths to be more generic
- updated jest confit to dynamically pull in the path information to properly resolve imported alias's in test files
- added utilities to command handler tests for Timeout async awaits
- added SETUP / ACT / ASSERT comments to process_bulk_quotes_callback.test.ts

* feat(mojaloop/#2803): sdk scheme adapter added quote accept (Steps 68)

- added ProcessSDKOutboundBulkAcceptQuoteHandler
- added 'AGREEMENT_ACCEPTED' & 'AGREEMENT_REJECTED' to IndividualTransferInternalState
- added ProcessSDKOutboundBulkAcceptPartyInfoCmdEvt
- added SDKOutboundBulkAcceptQuoteProcessedDmEvt

TODO:
- Logic for 'Calculate bulk expiry based on both expirySeconds config and bulkExpiration'

* fixed header

* updates to docs for auto-numbering

* docs: added updated for `AGREEMENT_ACCEPTANCE_COMPLETED` state

* Added new states to bulkTransactionEntity

- AGREEMENT_ACCEPTANCE_COMPLETED
- TRANSFERS_COMPLETED
- TRANSFERS_FAILED
- RESPONSE_PROCESSING
- RESPONSE_SENT

* updated handleProcessSDKOutboundBulkAcceptQuoteCmdEvt to set AGREEMENT_ACCEPTANCE_COMPLETED

* fix typos

* renamed SDKOutboundBulkAutoAcceptQuoteCompleted --> SDKOutboundBulkAutoAcceptQuoteProcessed

This aligns with the auto-accept= false use-case

* feat(mojaloop/#2803): sdk scheme adapter added quote accept (Steps 68)

- added handleSDKOutboundBulkAcceptQuoteProcessed to the Domain Event Handler

* feat(mojaloop/#2803): sdk scheme adapter added quote accept (Steps 68)

- fixes for SDKOutboundBulkAcceptQuoteReceivedDmEvt
- added handleSDKOutboundBulkAcceptQuoteReceived handler to the Domain Handler

* chore: updated process_bulk_quotes_callback int-test option params

* added more test assertions

* renamed test files

* feat: added parties error response rule

* fix for process_bulk_quotes_callback.test

* fix: reworked process_bulk_quotes_callback.test

- updated the initial test to meet the correct test conditions
- updated the initial test asserts to validate the outcome of the test conditions
- added todo comment on original test
- re-factored asserts to use Class.name instead of hard-coded name string values

* refactored happy path test case and added error test case

* typo fixes

* fixed typos in process_bulk_quotes_callback.test

- fixed test description, added missing 'global BulkTransaction state should be AGREEMENT_ACCEPTANCE_PENDING' to test description

* updates to process_bulk_quotes_callback.test

- added SETUP, ACT, ASSERT comments

* updated header

* fixed indentation and moved the //act comment to the correct location

* feat(mojaloop/#2803): add event handlers (#380)

* feat(mojaloop/#2803): add BulkTransfersRequestedDmEvt implementation and handling

* add BulkTransfersCallbackReceived domain handler

* chore: key

* Update modules/outbound-domain-event-handler/src/application/handlers/bulk_transfers_callback_received.ts

Co-authored-by: Miguel de Barros <miguel@debarros.me>

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* added timeout error case

* Add readme

* Added support for ProcessSDKOutboundBulkAcceptQuoteCmdEvt and SDKOutboundBulkAcceptQuoteReceivedDmEvt

- Updates to outbound-command-event-handler
   - added/expanded on some additional logging
   - added ProcessSDKOutboundBulkAcceptQuoteCmdEvt processing support
- Updates to outbound-domain-event-handler
   - added SDKOutboundBulkAcceptQuoteReceivedDmEvt routing support
   -

* Added initial version of process_sdk_outbound_bulk_accept_quote.test

- added first integration test to process_sdk_outbound_bulk_accept_quote.test
- added initial impl of generator util helper (this needs allot of work)
- updated handleProcessSDKOutboundBulkAcceptQuoteCmdEvt to not update stage if the individualTransfer is already in AGREEMENT_FAILED state

* added more error test cases

* added more error test cases for bulk quotes

* feat: add ProcessBulkTransfersCallback handler

* added more error test cases for bulk quotes

* working  process_sdk_outbound_bulk_accept_quotes.test (but process not finished)

* added some additional comments

* fixes for outbound-domain-event-handler

- fixes to missing imports
- fixed formatting issue with application handler

* added fetchBulkBatches to generator to help fetch the right bulkBatches

* updates for outbound-command-event-handler

- added createChild support for loggers to include component name
- added new agg handler for handleProcessBulkTransfersCallbackCmdEvt PLACEHOLDER (i.e. impl is missing) with application routing
- updated process_sdk_outbound_bulk_accept_quote.test and generator to kick-off the ProcessBulkTransfersCallbackCmdEvt event

* added comment to be addressed by Kevin's PR

* added more error test cases for bulk quotes that has timeout

* fixes for merge issues

* added a child Logger for OutboundCommandEventHandlerAPIServer

* updated process_sdk_outbound_bulk_accept_quote.test description

* cleanup to loggers

* updates to outbound-command-event-handler integration tests

- refactored generator helper by removing the bulkTransactionRequest, and rather adding a subset of the config options only
- re-worked process_sdk_outbound_bulk_accept_quote.test
- completed impl the process_bulk_transfers_request.test

* added process_bulk_transfers_request.test

* removed unused variables

* added TODOs to address

* adding correct state for individualTransfer that has a failed Quote

* updated bulk_transaction_agg with types, and fixed issue with batch generator functions to pass unit tests

- added types to getBulk*Count() methods
- added validation checks on the generateBulk*Batches() methods to throw an error if batches were already generated
- fixed unit tests to match the earlier re-factor for the `createBatches` -> `generateBulk*Batches` methods

* updated end-end tests

* build and unit test fixes

* updated rules for bulk quotes

* fixes for integration tests

* fixes for build

* fixes for missing outbound-domain-event-handler to handler to route SDKOutboundBulkAcceptQuoteProcessedDmEvt events

* added bulkQuoteId to bulkTransfersRequest when creating an empty batch by the BulkBatchEntity

* updated test scripts for ID not found scenarios

* made updates to test scripts

* chore: clean up integration tests (#387)

* chore: fix discovery int tests

* chore: agreement tests

* chore: clean up transfers int tests

* chore: increment

* dep:update for api-snippets

- bumped api-snippets
- also changed dep:* package.json root scripts to use "static" output to correctly show info on console

* added missing ilpPacket and condition to bulkBatch IndividualTransfer

* fixes for func-tests

- fixed lint issues with test/fun/README.md
- added ignore for **/*.env to dockerignore file

* same as previous commit

* added missing outbound-domain-event-handler routing

- BulkTransfersCallbackReceivedDmEvt
- SDKOutboundBulkTransfersRequestProcessedDmEvt

* feat(mojaloop/#2803): add more event handlers (#383)

* feat(mojaloop/#2803): add PrepareSDKOutboundBulkResponse and PrepareSDKOutboundBulkResponseSent handler

* chore: fix

* chore: header

* chore: fix some unit tests

* chore: update bulk response

* chore: remove unneeded file

* added missing routes/implementation to the outbound-domain-event-handler

- added routing for SDKOutboundBulkResponseSentDmEvt
- added implementation for
  - handleSDKOutboundBulkTransfersRequestProcessed
  - handleSDKOutboundBulkResponseSent

* added missing routes to outbound-command-event-handler

- added route handling for PrepareSDKOutboundBulkResponseCmdEvt
- added route handling for ProcessSDKOutboundBulkResponseSentCmdEvt

* outbound-command-handler updates to handlePrepareSDKOutboundBulkResponseCmdEvt

- added central-services-shared for transferState enums
- added missing field mappings on SDKOutboundBulkResponsePreparedDmEvt for quoteResponse, fulfil, and extensions
- fixed mapping from bulkTransactionIndividualTransferResult.to to use the partyResponse.party

* Updated handleProcessSDKOutboundBulkResponseSentCmdEvt to produce SDKOutboundBulkResponseSentProcessedDmtEvt

- Added new domain event SDKOutboundBulkResponseSentProcessed
- Added logic to handleProcessSDKOutboundBulkResponseSentCmdEvt to publish event
- Updated documentation to include final SDKOutboundBulkResponseSentProcessed Domain event

* added comments and skipped an integration test

* test: updated mvp-bulk ttk-testcases

- updated happy path to validate final state "COMPLETED"

* made updates to test scripts

* Updated generator help util for integration tests on outbound-command-handler

- Added support for :
  - PrepareSDKOutboundBulkResponseCmdEvt
  - ProcessSDKOutboundBulkResponseSentCmdEvt

* added more tests for transfers

* fix: party lookup flow if party info exists (#388)

send PartyInfoCallbackReceivedDmEvt if party info exists

* fix: party lookup (#389)

party lookup fix

* updated bulk quotes error test cases

* added TC with 50 bulk transfer requests

* fix(mojaloop/#2803): adjust transfer creation logic and int tests (#390)

* chore: fix discovery int tests

* chore: agreement tests

* chore: clean up transfers int tests

* chore: increment

* fix: adjust transfer creation logic and int tests

* chore: cleanup

* Update modules/outbound-command-event-handler/src/domain/bulk_transaction_agg/index.ts

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* chore: dep update

* chore: revert

* chore: update ncurc

* chore: yaml file

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* updated TC with 50 bulk transfer requests

* updated TC with 50 bulk transfer requests

* added negative test case for transfers

* updated negative test case for transfers

* new file for transfer errors

* new file for quotes error cases

* added new error test case for transfers

* restructuring of files

* added an error test case for transfers

* added more test cases for quotes error cases

* updated test cases for quotes

* adding happy path

* updated rule for quotes error

* updated test case numbers

* re-arranged test cases

* updated dependencies

* fix: bugs 2946, 2951 (#391)

* fix: bugs 2946, 2951
* fix #2946
* fix #2951

* handle errors

* bump deps

* fix enums

* fix enums

* update deps

* fix tests

* fix tests

* fix: ci build order (#393)

* new file for transfer errors

* new file for quotes error cases

* added new error test case for transfers

* restructuring of files

* added an error test case for transfers

* added more test cases for quotes error cases

* updated test cases for quotes

* fix: ci build order seems to be an issue

* deps updated

* rebuild yarn.lock

* fix for unit tests

* added private-shared-lib to api-svc

Co-authored-by: Sridevi Miriyala <sridevi.miriyala@modusbox.com>

* fix party resolution.

* update e2e tests

* fix audit issues

* update circleci machine image

* update circleci machine image

* clear event listener in redis mock

* fix tests

Co-authored-by: Miguel de Barros <miguel@debarros.me>
Co-authored-by: Sridevi Miriyala <sridevi.miriyala@modusbox.com>

* fix: unit tests (#397)

close active event emitters

* fix handling quote error response

* updated happy path test case

* fix handling quote error response

* updated test cases

* updated quotes test cases

* fix assigning transactionId

* added test cases markdown

* updated test cases markdown

* updated test cases markdown

* updated test cases markdown

* updated test cases markdown

* chore: fix int tests (#399)

* chore: try fix tests

* chore: regen lock

* chore: dep update

Co-authored-by: Vijay Kumar <vijaya.guthi@modusbox.com>
Co-authored-by: Miguel de Barros <miguel@debarros.me>
Co-authored-by: Kevin Leyow <kleyow@gmail.com>
Co-authored-by: Yevhen Kyriukha <kirgene@gmail.com>

* chore(mojaloop/#2990): pull in changes from master (#405)

* MBP-604: Pull changes from mojaloop-connector.

* Fix test cases.

* fix lint errors.

* Update src/InboundServer/index.js

Co-authored-by: Kevin Leyow <kleyow@gmail.com>

* fix audit errors.

* bump packages.

* update constributors list.

* Refactor to use new Redis API.

* fix api call.

* fix audit errors.

* bump version

* fix audit errors.

* update packages.

* fix audit errors.

* revert version change.

* uncomment test feature.

* chore(release): 15.0.1 [skip ci]

* chore!: add dummy pr to major version bump due to unsquashed title (#327)

chore(snapshot): 15.0.2-snapshot.0

* chore(release): 16.0.0 [skip ci]

* feat: suppress health check logs (#328)

Suppress health check logs.

* chore(release): 17.0.0 [skip ci]

* fix: creating inbound server (#329)

* fix creating InboundServer

* update circleci node image.

* Revert "update circleci node image."

This reverts commit 5a38cb0af7c6b4e47a3cf1060fb45d4d66a18582.

* remove SHELL=sh from audit commands.

* Use per commit dep cache.

* chore(release): 17.0.1 [skip ci]

* fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback (#331)

fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback - https://github.com/mojaloop/project/issues/2811
- fixed transfer-state for callback-response by PayeeFSP to use FSPIOP `TransferState` & `BulkTransferState` Enums from central-services-shared
- re-factored & consolidated enums into a common `SDKStateEnum` which is used for all `currentState` assignments and comparisons
- removed duplicate/unnecessary enums
- updated unit tests to use enums
- updated dependencies
- fixed audit issue
- Fixed image-scan issue as docker image used a root user by adding a non-root user 'ml-user'
- re-aligned Dockerfile working directory to /opt/app for consistency across ml-projects
- aligned CI config for consistency across ml-projects

fix(mojaloop/#2816): SDK-Scheme-Adapter is missing/incorrect bulkTransferState on a PUT /bulkTransfer/{id} Callback by the PayeeFSP- https://github.com/mojaloop/project/issues/2816
- fixed bad enum mapping for bulkTransferState for `COMPLETED` (it was `COMMITTED`)
- added missed bulkTransferState enum for `REJECTED`

BREAKING CHANGE: docker image now uses `/opt/app` instead of the root folder which will impact config mounts, and the secrets folder is no longer included in the docker image which aligns with best practices. Both these changes should NOT be a breaking change but I have marked them as such to make this change more obvious.

* fix: updated dependencies

* chore(release): 18.0.0 [skip ci]

* chore: added .npmignore so that the test folder is not included when publishing packages (#332)

* chore: added .npmignore so that the test folder is not included when publishing packages
* chore: fixes for audit-resolve

* chore: uodated deps (#333)

* chore: added .npmignore so that the test folder is not included when publishing packages

* chore: fixes for audit-resolve

* chore: updated dependencies

* chore(release): 18.0.1 [skip ci]

* chore: updates to readme for header badges [skip ci] (#334)

- updated readme to include docker-pulls

* fix: ws-connection-issue (#339)

- downgraded ws lib dependency from v8.x to v7.5.5 due to breaking change that cause intermitant disconnections
- added ncurc.yaml file with ws lib dependency added with an appropriate comment
- added @mojaloop/api-snippets to dep:check ignore list as it requires PR [sdk-scheme-adapter/pull/340](https://github.com/mojaloop/sdk-scheme-adapter/pull/340) has been merged

* chore(release): 18.0.2 [skip ci]

* feat!: use updated outbound OpenAPI specification from api-snippets (#340)

* feat!: use updated outbound OpenAPI specification from api-snippets

* use audit-ci for audit check.

* move api-snippets to deps.

* chore(release): 19.0.0 [skip ci]

* fix(mojaloop/2886): fix bulk-quotes and bulk-transfers functionality (#344)

fix(mojaloop/2886): fix bulk-quotes and bulk-transfers functionality (#344)

* fix: added bulk-quotes to inbound api definition
* chore: updated TTK version, updated TTK config files  and changed ttk port
* fix: bulk quotes callback redis publish channel
* fix: fixed bulk quotes and bulk transfers response in outbound api
* chore: updated mojaloop sim api in ttk

* chore(release): 19.0.1 [skip ci]

* chore: address merge mistakes

* Update .dockerignore

Co-authored-by: Miguel de Barros <miguel@debarros.me>

* Update .dockerignore

Co-authored-by: Miguel de Barros <miguel@debarros.me>

Co-authored-by: Yevhen Kyriukha <kirgene@gmail.com>
Co-authored-by: mojaloopci <info@mojaloop.io>
Co-authored-by: Miguel de Barros <miguel@debarros.me>
Co-authored-by: vijayg10 <33152110+vijayg10@users.noreply.github.com>

* feat(mojaloop#2965): end-end functional tests (#402)

* updated test cases

* updated test cases

* updated transfer test cases

* updated rules for quotes test cases

* refactor: update inbound server to handle backend bulk errors

* chore: unit tests

* updated transfers test cases

* chore: fixes

* chore: remove

* updated transfers test cases

* updated rules for transfers test cases

* updated rules for quotes test cases

* updated rules for happy path test cases

* updated rules for happy path test cases

* removed duplicate happy path test cases

* updated happy path test cases

* added bulk test for receiver with 50 transfers

* updated transfer batch failure test case

* snapshot release version bump

* updated transfer batch failure test case

* fix: added optional chaining to bulk transfer handler (#403)

* fix: added optional chaining to bulk transfer handler

* chore: dep update

* updated transfer batch failure test case

* chore: add last error

* updated transfer batch failure test case

* refactor: refactor individual quote and transfer error handling (#404)

* refactor: refactor individual quote and transfer error hadnling

* chore: remove debug statements

* chore: updates

* chore: update description

Co-authored-by: Kevin <kleyow@gmail.com>
Co-authored-by: Miguel de Barros <miguel@debarros.me>

* chore(mojaloop/#2990): pull in changes from master again due to merge (#406)

* MBP-604: Pull changes from mojaloop-connector.

* Fix test cases.

* fix lint errors.

* Update src/InboundServer/index.js

Co-authored-by: Kevin Leyow <kleyow@gmail.com>

* fix audit errors.

* bump packages.

* update constributors list.

* Refactor to use new Redis API.

* fix api call.

* fix audit errors.

* bump version

* fix audit errors.

* update packages.

* fix audit errors.

* revert version change.

* uncomment test feature.

* chore(release): 15.0.1 [skip ci]

* chore!: add dummy pr to major version bump due to unsquashed title (#327)

chore(snapshot): 15.0.2-snapshot.0

* chore(release): 16.0.0 [skip ci]

* feat: suppress health check logs (#328)

Suppress health check logs.

* chore(release): 17.0.0 [skip ci]

* fix: creating inbound server (#329)

* fix creating InboundServer

* update circleci node image.

* Revert "update circleci node image."

This reverts commit 5a38cb0af7c6b4e47a3cf1060fb45d4d66a18582.

* remove SHELL=sh from audit commands.

* Use per commit dep cache.

* chore(release): 17.0.1 [skip ci]

* fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback (#331)

fix(mojaloop/#2811): sdk-scheme-adapter sending incorrect transferState on a PUT transfers Callback - https://github.com/mojaloop/project/issues/2811
- fixed transfer-state for callback-response by PayeeFSP to use FSPIOP `TransferState` & `BulkTransferState` Enums from central-services-shared
- re-factored & consolidated enums into a common `SDKStateEnum` which is used for all `currentState` assignments and comparisons
- removed duplicate/unnecessary enums
- updated unit tests to use enums
- updated dependencies
- fixed audit issue
- Fixed image-scan issue as docker image used a root user by adding a non-root user 'ml-user'
- re-aligned Dockerfile working directory to /opt/app for consistency across ml-projects
- aligned CI config for consistency across ml-projects

fix(mojaloop/#2816): SDK-Scheme-Adapter is missing/incorrect bulkTransferState on a PUT /bulkTransfer/{id} Callback by the PayeeFSP- https://github.com/mojaloop/project/issues/2816
- fixed bad enum mapping for bulkTransferState for `COMPLETED` (it was `COMMITTED`)
- added missed bulkTransferState enum for `REJECTED`

BREAKING CHANGE: docker image now uses `/opt/app` instead of the root folder which will impact config mounts, and the secrets folder is no longer included in the docker image which aligns with best practices. Both these changes should NOT be a breaking change but I have marked them as such to make this change more obvious.

* fix: updated dependencies

* chore(release): 18.0.0 [skip ci]

* chore: added .npmignore so that the test folder is not included when publishing packages (#332)

* chore: added .npmignore so that the test folder is not included when publishing packages
* chore: fixes for audit-resolve

* chore: uodated deps (#333)

* chore: added .npmignore so that the test folder is not included when publishing packages

* chore: fixes for audit-resolve

* chore: updated dependencies

* chore(release): 18.0.1 [skip ci]

* chore: updates to readme for header badges [skip ci] (#334)

- updated readme to include docker-pulls

* fix: ws-connection-issue (#339)

- downgraded ws lib dependency from v8.x to v7.5.5 due to breaking change that cause intermitant disconnections
- added ncurc.yaml file with ws lib dependency added with an appropriate comment
- added @mojaloop/api-snippets to dep:check ignore list as it requires PR [sdk-scheme-adapter/pull/340](https://github.com/mojaloop/sdk-scheme-adapter/pull/340) has been merged

* chore(release): 18.0.2 [skip ci]

* feat!: use updated outbound OpenAPI specification from api-snippets (#340)

* feat!: use updated outbound OpenAPI specification from api-snippets

* use audit-ci for audit check.

* move api-snippets to deps.

* chore(release): 19.0.0 [skip ci]

* fix(mojaloop/2886): fix bulk-quotes and bulk-transfers functionality (#344)

fix(mojaloop/2886): fix bulk-quotes and bulk-transfers functionality (#344)

* fix: added bulk-quotes to inbound api definition
* chore: updated TTK version, updated TTK config files  and changed ttk port
* fix: bulk quotes callback redis publish channel
* fix: fixed bulk quotes and bulk transfers response in outbound api
* chore: updated mojaloop sim api in ttk

* chore(release): 19.0.1 [skip ci]

Co-authored-by: Yevhen Kyriukha <kirgene@gmail.com>
Co-authored-by: mojaloopci <info@mojaloop.io>
Co-authored-by: Miguel de Barros <miguel@debarros.me>
Co-authored-by: vijayg10 <33152110+vijayg10@users.noreply.github.com>

* chore(snapshot): 20.0.0-snapshot.0

* chore: undo snapshot command

* chore(snapshot): 20.0.0-snapshot.0

* snapshot adjust

* snapshot adjust

* fix: CI references of package-lock.json changed to package.json

* fix: ci snapshot/release tags failing

- fixed tags for snapshot/release to tag from the local docker image

* fix(mojaloop/#2993): change external bulk prepare to internal function (#408)

* fix: change external bulk prepare to internal function

* chore: field

* chore: yarn

* fields

* chore(snapshot): 20.0.0-snapshot.23

* chore: koa import

* chore(snapshot): 20.0.0-snapshot.24

* chore: dep update

* chore(snapshot): 20.0.0-snapshot.25

* chore: dep update

* feat: changed dfsp backend and sdk outbound apis to async

* chore: update func ttk version to enable dynamic rules

* feat: changed the happy path test case to align with async version of apis

* chore: updated dependencies

Co-authored-by: Shashikant Hirugade <shashikant.hirugade@modusbox.com>
Co-authored-by: shashi165 <33355509+shashi165@users.noreply.github.com>
Co-authored-by: Miguel de Barros <miguel@debarros.me>
Co-authored-by: Juan Correa <gibaros@users.noreply.github.com>
Co-authored-by: Yevhen Kyriukha <kirgene@gmail.com>
Co-authored-by: Kevin Leyow <kleyow@gmail.com>
Co-authored-by: mojaloopci <info@mojaloop.io>
Co-authored-by: sri-miriyala <38143240+sri-miriyala@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants