├── .editorconfig ├── .env ├── .eslintrc.js ├── .github └── static │ └── flowchart.png ├── .gitignore ├── .nvmrc ├── .prettierignore ├── .prettierrc ├── README.md ├── docker-compose.yml ├── gateway ├── .env ├── README.md ├── nest-cli.json ├── package.json ├── src │ ├── account │ │ ├── account.module.ts │ │ ├── command │ │ │ ├── command.controller.ts │ │ │ └── command.module.ts │ │ └── query │ │ │ ├── query.controller.ts │ │ │ └── query.module.ts │ ├── app.module.ts │ ├── common │ │ ├── enums │ │ │ ├── index.ts │ │ │ └── version.enum.ts │ │ └── index.ts │ ├── funds │ │ ├── command │ │ │ ├── command.controller.ts │ │ │ └── command.module.ts │ │ ├── funds.module.ts │ │ └── query │ │ │ ├── query.controller.ts │ │ │ └── query.module.ts │ └── main.ts ├── test │ ├── app.e2e-spec.ts │ └── jest-e2e.json ├── tsconfig.build.json └── tsconfig.json ├── package.json ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── services ├── account │ ├── command │ │ ├── .env │ │ ├── README.md │ │ ├── nest-cli.json │ │ ├── package.json │ │ ├── src │ │ │ ├── app.module.ts │ │ │ ├── close-account │ │ │ │ ├── aggregates │ │ │ │ │ └── close-account.aggregate.ts │ │ │ │ ├── close-account.module.ts │ │ │ │ ├── commands │ │ │ │ │ └── close-account.handler.ts │ │ │ │ ├── controllers │ │ │ │ │ └── close-account.controller.ts │ │ │ │ └── events │ │ │ │ │ └── account-closed.handler.ts │ │ │ ├── common │ │ │ │ ├── aggregates │ │ │ │ │ └── account.aggregate.ts │ │ │ │ └── producer │ │ │ │ │ └── account-event.producer.ts │ │ │ ├── main.ts │ │ │ └── open-account │ │ │ │ ├── aggregates │ │ │ │ └── open-account.aggregate.ts │ │ │ │ ├── commands │ │ │ │ └── open-account.handler.ts │ │ │ │ ├── controllers │ │ │ │ └── open-account.controller.ts │ │ │ │ ├── events │ │ │ │ └── account-opened.handler.ts │ │ │ │ ├── open-account.module.ts │ │ │ │ └── sagas │ │ │ │ └── open-account.saga.ts │ │ ├── test │ │ │ ├── app.e2e-spec.ts │ │ │ └── jest-e2e.json │ │ ├── tsconfig.build.json │ │ └── tsconfig.json │ └── query │ │ ├── .env │ │ ├── README.md │ │ ├── nest-cli.json │ │ ├── package.json │ │ ├── src │ │ ├── app.module.ts │ │ ├── common │ │ │ ├── entity │ │ │ │ └── account.entity.ts │ │ │ └── services │ │ │ │ └── typeorm.service.ts │ │ ├── consumer │ │ │ ├── account-closed │ │ │ │ ├── account-closed.module.ts │ │ │ │ ├── consumer │ │ │ │ │ └── account-closed.consumer.ts │ │ │ │ └── event │ │ │ │ │ └── account-closed.handler.ts │ │ │ ├── account-opened │ │ │ │ ├── account-opened.module.ts │ │ │ │ ├── consumer │ │ │ │ │ └── account-opened.consumer.ts │ │ │ │ └── event │ │ │ │ │ └── account-opened.handler.ts │ │ │ └── consumer.module.ts │ │ ├── lookup │ │ │ ├── find-account │ │ │ │ ├── controller │ │ │ │ │ ├── find-account.controller.ts │ │ │ │ │ └── find-account.dto.ts │ │ │ │ ├── find-account.module.ts │ │ │ │ └── query │ │ │ │ │ ├── find-account.handler.ts │ │ │ │ │ └── find-account.query.ts │ │ │ ├── find-all-accounts │ │ │ │ ├── controller │ │ │ │ │ ├── find-all-accounts.controller.ts │ │ │ │ │ └── find-all-accounts.dto.ts │ │ │ │ ├── find-all-accounts.module.ts │ │ │ │ └── query │ │ │ │ │ ├── find-all-accounts.handler.ts │ │ │ │ │ └── find-all-accounts.query.ts │ │ │ └── lookup.module.ts │ │ └── main.ts │ │ ├── test │ │ ├── app.e2e-spec.ts │ │ └── jest-e2e.json │ │ ├── tsconfig.build.json │ │ └── tsconfig.json └── funds │ ├── command │ ├── .env │ ├── README.md │ ├── nest-cli.json │ ├── package.json │ ├── src │ │ ├── app.module.ts │ │ ├── common │ │ │ ├── aggregates │ │ │ │ └── funds.aggregate.ts │ │ │ ├── options │ │ │ │ └── grpc-client.option.ts │ │ │ └── producer │ │ │ │ └── funds-event.producer.ts │ │ ├── deposit-funds │ │ │ ├── commands │ │ │ │ └── deposit-funds.handler.ts │ │ │ ├── controllers │ │ │ │ └── deposit-funds.controller.ts │ │ │ ├── deposit-funds.module.ts │ │ │ └── events │ │ │ │ └── funds-deposited.handler.ts │ │ ├── main.ts │ │ ├── receive-funds │ │ │ ├── commands │ │ │ │ └── receive-funds.handler.ts │ │ │ ├── events │ │ │ │ └── funds-received.handler.ts │ │ │ └── receive-funds.module.ts │ │ ├── transfer-funds │ │ │ ├── commands │ │ │ │ └── transfer-funds.handler.ts │ │ │ ├── controllers │ │ │ │ └── transfer-funds.controller.ts │ │ │ ├── events │ │ │ │ └── funds-transferred.handler.ts │ │ │ ├── sagas │ │ │ │ └── transfer-funds.saga.ts │ │ │ └── transfer-funds.module.ts │ │ └── withdraw-funds │ │ │ ├── commands │ │ │ └── withdraw-funds.handler.ts │ │ │ ├── controllers │ │ │ └── withdraw-funds.controller.ts │ │ │ ├── events │ │ │ └── funds-withdrawn.handler.ts │ │ │ └── withdraw-funds.module.ts │ ├── test │ │ ├── app.e2e-spec.ts │ │ └── jest-e2e.json │ ├── tsconfig.build.json │ └── tsconfig.json │ └── query │ ├── .env │ ├── README.md │ ├── nest-cli.json │ ├── package.json │ ├── src │ ├── app.module.ts │ ├── common │ │ ├── entity │ │ │ └── funds.entity.ts │ │ └── services │ │ │ ├── kafka.service.ts │ │ │ └── typeorm.service.ts │ ├── consumer │ │ ├── consumer.module.ts │ │ ├── funds-deposited │ │ │ ├── consumer │ │ │ │ └── funds-deposited.consumer.ts │ │ │ ├── event │ │ │ │ └── funds-deposited.handler.ts │ │ │ └── funds-deposited.module.ts │ │ ├── funds-received │ │ │ ├── consumer │ │ │ │ └── funds-received.consumer.ts │ │ │ ├── event │ │ │ │ └── funds-received.handler.ts │ │ │ └── funds-received.module.ts │ │ ├── funds-transfered │ │ │ ├── consumer │ │ │ │ └── funds-transferred.consumer.ts │ │ │ ├── event │ │ │ │ └── funds-transferred.handler.ts │ │ │ └── funds-transferred.module.ts │ │ └── funds-withdrawn │ │ │ ├── consumer │ │ │ └── funds-withdrawn.consumer.ts │ │ │ ├── event │ │ │ └── funds-withdrawn.handler.ts │ │ │ └── funds-withdrawn.module.ts │ ├── lookup │ │ ├── get-balance │ │ │ ├── controller │ │ │ │ ├── get-balance.controller.ts │ │ │ │ └── get-balance.dto.ts │ │ │ ├── get-balance.module.ts │ │ │ └── query │ │ │ │ ├── get-balance.handler.ts │ │ │ │ └── get-balancet.query.ts │ │ └── lookup.module.ts │ └── main.ts │ ├── test │ ├── app.e2e-spec.ts │ └── jest-e2e.json │ ├── tsconfig.build.json │ └── tsconfig.json ├── shared └── sdk │ ├── README.md │ ├── package.json │ ├── src │ ├── constants │ │ ├── index.ts │ │ └── kafka.constants.ts │ ├── filters │ │ ├── http-exception.filter.ts │ │ └── index.ts │ ├── index.ts │ ├── pb │ │ ├── account-command.pb.ts │ │ ├── account-query.pb.ts │ │ ├── funds-command.pb.ts │ │ └── funds-query.pb.ts │ ├── proto │ │ ├── account-command.proto │ │ ├── account-query.proto │ │ ├── funds-command.proto │ │ └── funds-query.proto │ └── services │ │ ├── account │ │ ├── close-account │ │ │ ├── account-closed.event.ts │ │ │ ├── close-account.command.ts │ │ │ ├── close-account.dto.ts │ │ │ └── index.ts │ │ ├── common │ │ │ ├── entity │ │ │ │ ├── account.entity.ts │ │ │ │ └── index.ts │ │ │ ├── enums │ │ │ │ ├── account-type.enum.ts │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ └── open-account │ │ │ ├── account-opened.event.ts │ │ │ ├── index.ts │ │ │ ├── open-account.command.ts │ │ │ └── open-account.dto.ts │ │ ├── funds │ │ ├── common │ │ │ ├── entity │ │ │ │ ├── funds.entity.ts │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── deposit │ │ │ ├── deposit-funds.command.ts │ │ │ ├── deposit-funds.dto.ts │ │ │ ├── funds-deposited.event.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ ├── receive │ │ │ ├── funds-received.event.ts │ │ │ ├── index.ts │ │ │ └── receive-funds.command.ts │ │ ├── transfer │ │ │ ├── funds-transferred.event.ts │ │ │ ├── index.ts │ │ │ ├── transfer-funds.command.ts │ │ │ └── transfer-funds.dto.ts │ │ └── withdraw │ │ │ ├── funds-withdrawn.event.ts │ │ │ ├── index.ts │ │ │ ├── withdraw-funds.command.ts │ │ │ └── withdraw-funds.dto.ts │ │ └── index.ts │ ├── tools │ └── proto-gen.ts │ └── tsconfig.json ├── tools ├── nest-mono-new │ ├── README.md │ ├── helper.ts │ └── index.ts ├── postgres │ └── init.sql └── tsconfig.json └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/.env -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/static/flowchart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/.github/static/flowchart.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v18.16.0 -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /gateway/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/.env -------------------------------------------------------------------------------- /gateway/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/README.md -------------------------------------------------------------------------------- /gateway/nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/nest-cli.json -------------------------------------------------------------------------------- /gateway/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/package.json -------------------------------------------------------------------------------- /gateway/src/account/account.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/src/account/account.module.ts -------------------------------------------------------------------------------- /gateway/src/account/command/command.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/src/account/command/command.controller.ts -------------------------------------------------------------------------------- /gateway/src/account/command/command.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/src/account/command/command.module.ts -------------------------------------------------------------------------------- /gateway/src/account/query/query.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/src/account/query/query.controller.ts -------------------------------------------------------------------------------- /gateway/src/account/query/query.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/src/account/query/query.module.ts -------------------------------------------------------------------------------- /gateway/src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/src/app.module.ts -------------------------------------------------------------------------------- /gateway/src/common/enums/index.ts: -------------------------------------------------------------------------------- 1 | export * from './version.enum'; 2 | -------------------------------------------------------------------------------- /gateway/src/common/enums/version.enum.ts: -------------------------------------------------------------------------------- 1 | export enum Version { 2 | One = '1', 3 | } 4 | -------------------------------------------------------------------------------- /gateway/src/common/index.ts: -------------------------------------------------------------------------------- 1 | export * from './enums'; 2 | -------------------------------------------------------------------------------- /gateway/src/funds/command/command.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/src/funds/command/command.controller.ts -------------------------------------------------------------------------------- /gateway/src/funds/command/command.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/src/funds/command/command.module.ts -------------------------------------------------------------------------------- /gateway/src/funds/funds.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/src/funds/funds.module.ts -------------------------------------------------------------------------------- /gateway/src/funds/query/query.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/src/funds/query/query.controller.ts -------------------------------------------------------------------------------- /gateway/src/funds/query/query.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/src/funds/query/query.module.ts -------------------------------------------------------------------------------- /gateway/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/src/main.ts -------------------------------------------------------------------------------- /gateway/test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /gateway/test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/test/jest-e2e.json -------------------------------------------------------------------------------- /gateway/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/tsconfig.build.json -------------------------------------------------------------------------------- /gateway/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/gateway/tsconfig.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/pnpm-workspace.yaml -------------------------------------------------------------------------------- /services/account/command/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/.env -------------------------------------------------------------------------------- /services/account/command/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/README.md -------------------------------------------------------------------------------- /services/account/command/nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/nest-cli.json -------------------------------------------------------------------------------- /services/account/command/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/package.json -------------------------------------------------------------------------------- /services/account/command/src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/src/app.module.ts -------------------------------------------------------------------------------- /services/account/command/src/close-account/aggregates/close-account.aggregate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/src/close-account/aggregates/close-account.aggregate.ts -------------------------------------------------------------------------------- /services/account/command/src/close-account/close-account.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/src/close-account/close-account.module.ts -------------------------------------------------------------------------------- /services/account/command/src/close-account/commands/close-account.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/src/close-account/commands/close-account.handler.ts -------------------------------------------------------------------------------- /services/account/command/src/close-account/controllers/close-account.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/src/close-account/controllers/close-account.controller.ts -------------------------------------------------------------------------------- /services/account/command/src/close-account/events/account-closed.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/src/close-account/events/account-closed.handler.ts -------------------------------------------------------------------------------- /services/account/command/src/common/aggregates/account.aggregate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/src/common/aggregates/account.aggregate.ts -------------------------------------------------------------------------------- /services/account/command/src/common/producer/account-event.producer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/src/common/producer/account-event.producer.ts -------------------------------------------------------------------------------- /services/account/command/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/src/main.ts -------------------------------------------------------------------------------- /services/account/command/src/open-account/aggregates/open-account.aggregate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/src/open-account/aggregates/open-account.aggregate.ts -------------------------------------------------------------------------------- /services/account/command/src/open-account/commands/open-account.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/src/open-account/commands/open-account.handler.ts -------------------------------------------------------------------------------- /services/account/command/src/open-account/controllers/open-account.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/src/open-account/controllers/open-account.controller.ts -------------------------------------------------------------------------------- /services/account/command/src/open-account/events/account-opened.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/src/open-account/events/account-opened.handler.ts -------------------------------------------------------------------------------- /services/account/command/src/open-account/open-account.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/src/open-account/open-account.module.ts -------------------------------------------------------------------------------- /services/account/command/src/open-account/sagas/open-account.saga.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/src/open-account/sagas/open-account.saga.ts -------------------------------------------------------------------------------- /services/account/command/test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /services/account/command/test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/test/jest-e2e.json -------------------------------------------------------------------------------- /services/account/command/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/tsconfig.build.json -------------------------------------------------------------------------------- /services/account/command/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/command/tsconfig.json -------------------------------------------------------------------------------- /services/account/query/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/.env -------------------------------------------------------------------------------- /services/account/query/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/README.md -------------------------------------------------------------------------------- /services/account/query/nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/nest-cli.json -------------------------------------------------------------------------------- /services/account/query/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/package.json -------------------------------------------------------------------------------- /services/account/query/src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/app.module.ts -------------------------------------------------------------------------------- /services/account/query/src/common/entity/account.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/common/entity/account.entity.ts -------------------------------------------------------------------------------- /services/account/query/src/common/services/typeorm.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/common/services/typeorm.service.ts -------------------------------------------------------------------------------- /services/account/query/src/consumer/account-closed/account-closed.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/consumer/account-closed/account-closed.module.ts -------------------------------------------------------------------------------- /services/account/query/src/consumer/account-closed/consumer/account-closed.consumer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/consumer/account-closed/consumer/account-closed.consumer.ts -------------------------------------------------------------------------------- /services/account/query/src/consumer/account-closed/event/account-closed.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/consumer/account-closed/event/account-closed.handler.ts -------------------------------------------------------------------------------- /services/account/query/src/consumer/account-opened/account-opened.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/consumer/account-opened/account-opened.module.ts -------------------------------------------------------------------------------- /services/account/query/src/consumer/account-opened/consumer/account-opened.consumer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/consumer/account-opened/consumer/account-opened.consumer.ts -------------------------------------------------------------------------------- /services/account/query/src/consumer/account-opened/event/account-opened.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/consumer/account-opened/event/account-opened.handler.ts -------------------------------------------------------------------------------- /services/account/query/src/consumer/consumer.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/consumer/consumer.module.ts -------------------------------------------------------------------------------- /services/account/query/src/lookup/find-account/controller/find-account.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/lookup/find-account/controller/find-account.controller.ts -------------------------------------------------------------------------------- /services/account/query/src/lookup/find-account/controller/find-account.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/lookup/find-account/controller/find-account.dto.ts -------------------------------------------------------------------------------- /services/account/query/src/lookup/find-account/find-account.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/lookup/find-account/find-account.module.ts -------------------------------------------------------------------------------- /services/account/query/src/lookup/find-account/query/find-account.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/lookup/find-account/query/find-account.handler.ts -------------------------------------------------------------------------------- /services/account/query/src/lookup/find-account/query/find-account.query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/lookup/find-account/query/find-account.query.ts -------------------------------------------------------------------------------- /services/account/query/src/lookup/find-all-accounts/controller/find-all-accounts.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/lookup/find-all-accounts/controller/find-all-accounts.controller.ts -------------------------------------------------------------------------------- /services/account/query/src/lookup/find-all-accounts/controller/find-all-accounts.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/lookup/find-all-accounts/controller/find-all-accounts.dto.ts -------------------------------------------------------------------------------- /services/account/query/src/lookup/find-all-accounts/find-all-accounts.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/lookup/find-all-accounts/find-all-accounts.module.ts -------------------------------------------------------------------------------- /services/account/query/src/lookup/find-all-accounts/query/find-all-accounts.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/lookup/find-all-accounts/query/find-all-accounts.handler.ts -------------------------------------------------------------------------------- /services/account/query/src/lookup/find-all-accounts/query/find-all-accounts.query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/lookup/find-all-accounts/query/find-all-accounts.query.ts -------------------------------------------------------------------------------- /services/account/query/src/lookup/lookup.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/lookup/lookup.module.ts -------------------------------------------------------------------------------- /services/account/query/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/src/main.ts -------------------------------------------------------------------------------- /services/account/query/test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /services/account/query/test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/test/jest-e2e.json -------------------------------------------------------------------------------- /services/account/query/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/tsconfig.build.json -------------------------------------------------------------------------------- /services/account/query/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/account/query/tsconfig.json -------------------------------------------------------------------------------- /services/funds/command/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/.env -------------------------------------------------------------------------------- /services/funds/command/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/README.md -------------------------------------------------------------------------------- /services/funds/command/nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/nest-cli.json -------------------------------------------------------------------------------- /services/funds/command/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/package.json -------------------------------------------------------------------------------- /services/funds/command/src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/app.module.ts -------------------------------------------------------------------------------- /services/funds/command/src/common/aggregates/funds.aggregate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/common/aggregates/funds.aggregate.ts -------------------------------------------------------------------------------- /services/funds/command/src/common/options/grpc-client.option.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/common/options/grpc-client.option.ts -------------------------------------------------------------------------------- /services/funds/command/src/common/producer/funds-event.producer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/common/producer/funds-event.producer.ts -------------------------------------------------------------------------------- /services/funds/command/src/deposit-funds/commands/deposit-funds.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/deposit-funds/commands/deposit-funds.handler.ts -------------------------------------------------------------------------------- /services/funds/command/src/deposit-funds/controllers/deposit-funds.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/deposit-funds/controllers/deposit-funds.controller.ts -------------------------------------------------------------------------------- /services/funds/command/src/deposit-funds/deposit-funds.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/deposit-funds/deposit-funds.module.ts -------------------------------------------------------------------------------- /services/funds/command/src/deposit-funds/events/funds-deposited.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/deposit-funds/events/funds-deposited.handler.ts -------------------------------------------------------------------------------- /services/funds/command/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/main.ts -------------------------------------------------------------------------------- /services/funds/command/src/receive-funds/commands/receive-funds.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/receive-funds/commands/receive-funds.handler.ts -------------------------------------------------------------------------------- /services/funds/command/src/receive-funds/events/funds-received.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/receive-funds/events/funds-received.handler.ts -------------------------------------------------------------------------------- /services/funds/command/src/receive-funds/receive-funds.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/receive-funds/receive-funds.module.ts -------------------------------------------------------------------------------- /services/funds/command/src/transfer-funds/commands/transfer-funds.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/transfer-funds/commands/transfer-funds.handler.ts -------------------------------------------------------------------------------- /services/funds/command/src/transfer-funds/controllers/transfer-funds.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/transfer-funds/controllers/transfer-funds.controller.ts -------------------------------------------------------------------------------- /services/funds/command/src/transfer-funds/events/funds-transferred.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/transfer-funds/events/funds-transferred.handler.ts -------------------------------------------------------------------------------- /services/funds/command/src/transfer-funds/sagas/transfer-funds.saga.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/transfer-funds/sagas/transfer-funds.saga.ts -------------------------------------------------------------------------------- /services/funds/command/src/transfer-funds/transfer-funds.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/transfer-funds/transfer-funds.module.ts -------------------------------------------------------------------------------- /services/funds/command/src/withdraw-funds/commands/withdraw-funds.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/withdraw-funds/commands/withdraw-funds.handler.ts -------------------------------------------------------------------------------- /services/funds/command/src/withdraw-funds/controllers/withdraw-funds.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/withdraw-funds/controllers/withdraw-funds.controller.ts -------------------------------------------------------------------------------- /services/funds/command/src/withdraw-funds/events/funds-withdrawn.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/withdraw-funds/events/funds-withdrawn.handler.ts -------------------------------------------------------------------------------- /services/funds/command/src/withdraw-funds/withdraw-funds.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/src/withdraw-funds/withdraw-funds.module.ts -------------------------------------------------------------------------------- /services/funds/command/test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /services/funds/command/test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/test/jest-e2e.json -------------------------------------------------------------------------------- /services/funds/command/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/tsconfig.build.json -------------------------------------------------------------------------------- /services/funds/command/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/command/tsconfig.json -------------------------------------------------------------------------------- /services/funds/query/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/.env -------------------------------------------------------------------------------- /services/funds/query/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/README.md -------------------------------------------------------------------------------- /services/funds/query/nest-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/nest-cli.json -------------------------------------------------------------------------------- /services/funds/query/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/package.json -------------------------------------------------------------------------------- /services/funds/query/src/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/app.module.ts -------------------------------------------------------------------------------- /services/funds/query/src/common/entity/funds.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/common/entity/funds.entity.ts -------------------------------------------------------------------------------- /services/funds/query/src/common/services/kafka.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/common/services/kafka.service.ts -------------------------------------------------------------------------------- /services/funds/query/src/common/services/typeorm.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/common/services/typeorm.service.ts -------------------------------------------------------------------------------- /services/funds/query/src/consumer/consumer.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/consumer/consumer.module.ts -------------------------------------------------------------------------------- /services/funds/query/src/consumer/funds-deposited/consumer/funds-deposited.consumer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/consumer/funds-deposited/consumer/funds-deposited.consumer.ts -------------------------------------------------------------------------------- /services/funds/query/src/consumer/funds-deposited/event/funds-deposited.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/consumer/funds-deposited/event/funds-deposited.handler.ts -------------------------------------------------------------------------------- /services/funds/query/src/consumer/funds-deposited/funds-deposited.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/consumer/funds-deposited/funds-deposited.module.ts -------------------------------------------------------------------------------- /services/funds/query/src/consumer/funds-received/consumer/funds-received.consumer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/consumer/funds-received/consumer/funds-received.consumer.ts -------------------------------------------------------------------------------- /services/funds/query/src/consumer/funds-received/event/funds-received.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/consumer/funds-received/event/funds-received.handler.ts -------------------------------------------------------------------------------- /services/funds/query/src/consumer/funds-received/funds-received.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/consumer/funds-received/funds-received.module.ts -------------------------------------------------------------------------------- /services/funds/query/src/consumer/funds-transfered/consumer/funds-transferred.consumer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/consumer/funds-transfered/consumer/funds-transferred.consumer.ts -------------------------------------------------------------------------------- /services/funds/query/src/consumer/funds-transfered/event/funds-transferred.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/consumer/funds-transfered/event/funds-transferred.handler.ts -------------------------------------------------------------------------------- /services/funds/query/src/consumer/funds-transfered/funds-transferred.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/consumer/funds-transfered/funds-transferred.module.ts -------------------------------------------------------------------------------- /services/funds/query/src/consumer/funds-withdrawn/consumer/funds-withdrawn.consumer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/consumer/funds-withdrawn/consumer/funds-withdrawn.consumer.ts -------------------------------------------------------------------------------- /services/funds/query/src/consumer/funds-withdrawn/event/funds-withdrawn.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/consumer/funds-withdrawn/event/funds-withdrawn.handler.ts -------------------------------------------------------------------------------- /services/funds/query/src/consumer/funds-withdrawn/funds-withdrawn.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/consumer/funds-withdrawn/funds-withdrawn.module.ts -------------------------------------------------------------------------------- /services/funds/query/src/lookup/get-balance/controller/get-balance.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/lookup/get-balance/controller/get-balance.controller.ts -------------------------------------------------------------------------------- /services/funds/query/src/lookup/get-balance/controller/get-balance.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/lookup/get-balance/controller/get-balance.dto.ts -------------------------------------------------------------------------------- /services/funds/query/src/lookup/get-balance/get-balance.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/lookup/get-balance/get-balance.module.ts -------------------------------------------------------------------------------- /services/funds/query/src/lookup/get-balance/query/get-balance.handler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/lookup/get-balance/query/get-balance.handler.ts -------------------------------------------------------------------------------- /services/funds/query/src/lookup/get-balance/query/get-balancet.query.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/lookup/get-balance/query/get-balancet.query.ts -------------------------------------------------------------------------------- /services/funds/query/src/lookup/lookup.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/lookup/lookup.module.ts -------------------------------------------------------------------------------- /services/funds/query/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/src/main.ts -------------------------------------------------------------------------------- /services/funds/query/test/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/test/app.e2e-spec.ts -------------------------------------------------------------------------------- /services/funds/query/test/jest-e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/test/jest-e2e.json -------------------------------------------------------------------------------- /services/funds/query/tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/tsconfig.build.json -------------------------------------------------------------------------------- /services/funds/query/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/services/funds/query/tsconfig.json -------------------------------------------------------------------------------- /shared/sdk/README.md: -------------------------------------------------------------------------------- 1 | ```sh 2 | $ ts-node tools/proto-gen.ts 3 | ``` 4 | -------------------------------------------------------------------------------- /shared/sdk/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/package.json -------------------------------------------------------------------------------- /shared/sdk/src/constants/index.ts: -------------------------------------------------------------------------------- 1 | export * from './kafka.constants'; 2 | -------------------------------------------------------------------------------- /shared/sdk/src/constants/kafka.constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/constants/kafka.constants.ts -------------------------------------------------------------------------------- /shared/sdk/src/filters/http-exception.filter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/filters/http-exception.filter.ts -------------------------------------------------------------------------------- /shared/sdk/src/filters/index.ts: -------------------------------------------------------------------------------- 1 | export * from './http-exception.filter'; 2 | -------------------------------------------------------------------------------- /shared/sdk/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/index.ts -------------------------------------------------------------------------------- /shared/sdk/src/pb/account-command.pb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/pb/account-command.pb.ts -------------------------------------------------------------------------------- /shared/sdk/src/pb/account-query.pb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/pb/account-query.pb.ts -------------------------------------------------------------------------------- /shared/sdk/src/pb/funds-command.pb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/pb/funds-command.pb.ts -------------------------------------------------------------------------------- /shared/sdk/src/pb/funds-query.pb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/pb/funds-query.pb.ts -------------------------------------------------------------------------------- /shared/sdk/src/proto/account-command.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/proto/account-command.proto -------------------------------------------------------------------------------- /shared/sdk/src/proto/account-query.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/proto/account-query.proto -------------------------------------------------------------------------------- /shared/sdk/src/proto/funds-command.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/proto/funds-command.proto -------------------------------------------------------------------------------- /shared/sdk/src/proto/funds-query.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/proto/funds-query.proto -------------------------------------------------------------------------------- /shared/sdk/src/services/account/close-account/account-closed.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/account/close-account/account-closed.event.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/account/close-account/close-account.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/account/close-account/close-account.command.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/account/close-account/close-account.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/account/close-account/close-account.dto.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/account/close-account/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/account/close-account/index.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/account/common/entity/account.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/account/common/entity/account.entity.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/account/common/entity/index.ts: -------------------------------------------------------------------------------- 1 | export * from './account.entity'; 2 | -------------------------------------------------------------------------------- /shared/sdk/src/services/account/common/enums/account-type.enum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/account/common/enums/account-type.enum.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/account/common/enums/index.ts: -------------------------------------------------------------------------------- 1 | export * from './account-type.enum'; 2 | -------------------------------------------------------------------------------- /shared/sdk/src/services/account/common/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/account/common/index.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/account/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/account/index.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/account/open-account/account-opened.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/account/open-account/account-opened.event.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/account/open-account/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/account/open-account/index.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/account/open-account/open-account.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/account/open-account/open-account.command.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/account/open-account/open-account.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/account/open-account/open-account.dto.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/common/entity/funds.entity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/common/entity/funds.entity.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/common/entity/index.ts: -------------------------------------------------------------------------------- 1 | export * from './funds.entity'; 2 | -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/common/index.ts: -------------------------------------------------------------------------------- 1 | export * from './entity'; 2 | -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/deposit/deposit-funds.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/deposit/deposit-funds.command.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/deposit/deposit-funds.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/deposit/deposit-funds.dto.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/deposit/funds-deposited.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/deposit/funds-deposited.event.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/deposit/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/deposit/index.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/index.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/receive/funds-received.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/receive/funds-received.event.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/receive/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/receive/index.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/receive/receive-funds.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/receive/receive-funds.command.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/transfer/funds-transferred.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/transfer/funds-transferred.event.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/transfer/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/transfer/index.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/transfer/transfer-funds.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/transfer/transfer-funds.command.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/transfer/transfer-funds.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/transfer/transfer-funds.dto.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/withdraw/funds-withdrawn.event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/withdraw/funds-withdrawn.event.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/withdraw/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/withdraw/index.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/withdraw/withdraw-funds.command.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/withdraw/withdraw-funds.command.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/funds/withdraw/withdraw-funds.dto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/funds/withdraw/withdraw-funds.dto.ts -------------------------------------------------------------------------------- /shared/sdk/src/services/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/src/services/index.ts -------------------------------------------------------------------------------- /shared/sdk/tools/proto-gen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/tools/proto-gen.ts -------------------------------------------------------------------------------- /shared/sdk/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/shared/sdk/tsconfig.json -------------------------------------------------------------------------------- /tools/nest-mono-new/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/tools/nest-mono-new/README.md -------------------------------------------------------------------------------- /tools/nest-mono-new/helper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/tools/nest-mono-new/helper.ts -------------------------------------------------------------------------------- /tools/nest-mono-new/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/tools/nest-mono-new/index.ts -------------------------------------------------------------------------------- /tools/postgres/init.sql: -------------------------------------------------------------------------------- 1 | CREATE DATABASE funds; -------------------------------------------------------------------------------- /tools/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/tools/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hellokvn/bank-api/HEAD/tsconfig.json --------------------------------------------------------------------------------