├── .github └── workflows │ └── main.yml ├── .gitignore ├── LICENSE ├── README.md ├── assets ├── database-overview.png ├── logo.svg └── projectOverview.jpg └── services ├── AuthenticationService ├── .env.development.example ├── .env.test.example ├── .gitignore ├── jest.config.ts ├── jest.setup.ts ├── package.json ├── serverless-secrets.example.json ├── serverless.yml ├── src │ ├── container │ │ └── index.ts │ ├── controllers │ │ ├── authentication │ │ │ └── SignInUserController.ts │ │ ├── errors │ │ │ └── MissingParamError.ts │ │ ├── ports │ │ │ ├── IController.ts │ │ │ ├── IHttpRequest.ts │ │ │ └── IHttpResponse.ts │ │ └── utils │ │ │ ├── HttpResponses.ts │ │ │ └── IsRequiredParamsMissing.ts │ ├── infra │ │ ├── authentication │ │ │ ├── JwtAuthenticationTokenProvider.ts │ │ │ └── config.ts │ │ ├── database │ │ │ └── prisma │ │ │ │ ├── PrismaClient.ts │ │ │ │ ├── migrations │ │ │ │ ├── 20220406010128_add_users │ │ │ │ │ └── migration.sql │ │ │ │ └── migration_lock.toml │ │ │ │ ├── repositories │ │ │ │ └── PrismaUsersRepository.ts │ │ │ │ └── schema.prisma │ │ ├── encoder │ │ │ └── BcryptEncoder.ts │ │ └── serverless │ │ │ ├── functions │ │ │ ├── EnsureAdmin.ts │ │ │ ├── EnsureAuthenticated.ts │ │ │ └── SignInUser.ts │ │ │ └── utils │ │ │ └── commonMiddleware.ts │ ├── logic │ │ └── Either.ts │ ├── middlewares │ │ ├── ensureAdminMiddleware.ts │ │ ├── ensureAuthenticatedMiddleware.ts │ │ └── ports │ │ │ ├── IHttpRequest.ts │ │ │ └── IMiddleware.ts │ └── useCases │ │ └── authentication │ │ ├── SignInUserUseCase.ts │ │ ├── errors │ │ └── IncorrectCredentialsError.ts │ │ └── ports │ │ ├── IAuthenticationTokenProvider.ts │ │ ├── IEncoder.ts │ │ ├── IUserData.ts │ │ └── IUsersRepository.ts ├── tests │ ├── controllers │ │ └── SignInUserController.spec.ts │ ├── doubles │ │ ├── UsersActions.ts │ │ └── repositories │ │ │ └── UsersRepositoryInMemory.ts │ ├── infra │ │ └── serverless │ │ │ ├── EnsureAdmin.spec.ts │ │ │ ├── EnsureAuthenticated.spec.ts │ │ │ └── SignInUser.spec.ts │ ├── middlewares │ │ ├── EnsureAdminMiddleware.spec.ts │ │ └── EnsureAuthenticatedMiddleware.spec.ts │ └── useCases │ │ └── SignInUserUseCase.spec.ts ├── tsconfig.json └── yarn.lock ├── CartService ├── .env.development.example ├── .env.test.example ├── .gitignore ├── @types │ └── express │ │ └── index.d.ts ├── package.json ├── src │ ├── container │ │ └── index.ts │ ├── controllers │ │ ├── errors │ │ │ └── MissingParamError.ts │ │ ├── ports │ │ │ ├── IController.ts │ │ │ ├── IHttpRequest.ts │ │ │ └── IHttpResponse.ts │ │ └── utils │ │ │ ├── HttpResponses.ts │ │ │ └── IsRequiredParamsMissing.ts │ ├── infra │ │ ├── database │ │ │ └── prisma │ │ │ │ ├── PrismaClient.ts │ │ │ │ └── schema.prisma │ │ └── http │ │ │ ├── app.ts │ │ │ ├── routes │ │ │ └── RouteAdapter.ts │ │ │ └── server.ts │ └── logic │ │ └── Either.ts └── tsconfig.json ├── OrderService ├── .env.development.example ├── .env.test.example ├── .gitignore ├── Dockerfile ├── docker-compose.yml ├── jest.config.ts ├── jest.setup.ts ├── package.json ├── serverless-secrets.example.json ├── serverless.yml ├── src │ ├── container │ │ └── index.ts │ ├── controllers │ │ ├── errors │ │ │ └── MissingParamError.ts │ │ ├── orders │ │ │ ├── ListOrdersByUserController.ts │ │ │ └── PlaceOrderController.ts │ │ ├── ports │ │ │ ├── IController.ts │ │ │ ├── IHttpRequest.ts │ │ │ ├── IHttpResponse.ts │ │ │ └── IServerlessHttpRequest.ts │ │ └── utils │ │ │ ├── HttpResponses.ts │ │ │ └── IsRequiredParamsMissing.ts │ ├── domain │ │ └── entities │ │ │ └── Order │ │ │ ├── errors │ │ │ └── InvalidOrderTotalError.ts │ │ │ └── index.ts │ ├── infra │ │ ├── database │ │ │ └── prisma │ │ │ │ ├── PrismaClient.ts │ │ │ │ ├── migrations │ │ │ │ ├── 20220406140833_create_orders │ │ │ │ │ └── migration.sql │ │ │ │ ├── 20220406210700_add_product_amount │ │ │ │ │ └── migration.sql │ │ │ │ └── migration_lock.toml │ │ │ │ ├── repositories │ │ │ │ └── PrismaOrdersRepository.ts │ │ │ │ └── schema.prisma │ │ ├── messaging │ │ │ ├── SQSClient.ts │ │ │ └── SQSMessagingAdapter.ts │ │ └── serverless │ │ │ ├── functions │ │ │ ├── ListOrdersByUser.ts │ │ │ └── PlaceOrder.ts │ │ │ └── utils │ │ │ └── commonMiddleware.ts │ ├── logic │ │ └── Either.ts │ └── useCases │ │ └── orders │ │ ├── ListOrdersByUserUseCase.ts │ │ ├── PlaceOrderUseCase.ts │ │ └── ports │ │ ├── IMessagingAdapter.ts │ │ ├── IOrderData.ts │ │ └── IOrdersRepository.ts ├── tests │ ├── Entities │ │ └── Order.spec.ts │ ├── controllers │ │ ├── ListOrdersByUserController.spec.ts │ │ └── PlaceOrderController.spec.ts │ ├── doubles │ │ ├── FakeMessagingAdapter.ts │ │ ├── OrdersActions.ts │ │ └── repositories │ │ │ └── OrdersRepositoryInMemory.ts │ ├── infra │ │ └── serverless │ │ │ ├── ListOrdersByUser.spec.ts │ │ │ └── PlaceOrder.spec.ts │ └── useCases │ │ └── orders │ │ ├── ListOrdersByUserUseCase.spec.ts │ │ └── PlaceOrderUseCase.spec.ts ├── tsconfig.json └── yarn.lock ├── ProductService ├── .env.development.example ├── .env.test.example ├── .gitignore ├── Dockerfile ├── docker-compose.yml ├── jest.config.ts ├── jest.setup.ts ├── package.json ├── serverless-secrets.example.json ├── serverless.yml ├── src │ ├── container │ │ └── index.ts │ ├── controllers │ │ ├── categories │ │ │ ├── CreateCategoryController.ts │ │ │ ├── DeleteCategoryController.ts │ │ │ ├── ListAllCategoriesController.ts │ │ │ └── UpdateCategoryController.ts │ │ ├── errors │ │ │ └── MissingParamError.ts │ │ ├── ports │ │ │ ├── IController.ts │ │ │ ├── IHttpRequest.ts │ │ │ ├── IHttpResponse.ts │ │ │ └── IServerlessHttpRequest.ts │ │ ├── products │ │ │ ├── CreateProductController.ts │ │ │ ├── DeleteProductController.ts │ │ │ ├── ListAllProductsController.ts │ │ │ ├── ReduceProductsStockController.ts │ │ │ └── UpdateProductController.ts │ │ └── utils │ │ │ ├── HttpResponses.ts │ │ │ └── IsRequiredParamsMissing.ts │ ├── domain │ │ └── entities │ │ │ ├── Category │ │ │ ├── errors │ │ │ │ └── InvalidCategoryNameError.ts │ │ │ └── index.ts │ │ │ └── Product │ │ │ ├── errors │ │ │ ├── InvalidProductNameError.ts │ │ │ ├── InvalidProductPriceError.ts │ │ │ └── InvalidProductStockError.ts │ │ │ └── index.ts │ ├── infra │ │ ├── database │ │ │ └── prisma │ │ │ │ ├── PrismaClient.ts │ │ │ │ ├── migrations │ │ │ │ ├── 20220404192944_add_products_and_categories │ │ │ │ │ └── migration.sql │ │ │ │ └── migration_lock.toml │ │ │ │ ├── repositories │ │ │ │ ├── PrismaCategoriesRepository.ts │ │ │ │ └── PrismaProductsRepository.ts │ │ │ │ └── schema.prisma │ │ ├── http │ │ │ ├── app.ts │ │ │ ├── routes │ │ │ │ ├── RouteAdapter.ts │ │ │ │ ├── categories.routes.ts │ │ │ │ ├── index.ts │ │ │ │ └── products.routes.ts │ │ │ └── server.ts │ │ └── serverless │ │ │ ├── functions │ │ │ ├── CreateCategory.ts │ │ │ ├── CreateProduct.ts │ │ │ ├── DeleteCategory.ts │ │ │ ├── DeleteProduct.ts │ │ │ ├── ReduceProductStock.ts │ │ │ └── UpdateCategory.ts │ │ │ └── utils │ │ │ └── commonMiddleware.ts │ ├── logic │ │ └── Either.ts │ └── useCases │ │ ├── categories │ │ ├── CreateCategoryUseCase.ts │ │ ├── DeleteCategoryUseCase.ts │ │ ├── ListAllCategoriesUseCase.ts │ │ ├── UpdateCategoryUseCase.ts │ │ ├── errors │ │ │ ├── CategoryAlreadyExistsError.ts │ │ │ └── CategoryNotFoundError.ts │ │ └── ports │ │ │ ├── ICategoriesRepository.ts │ │ │ └── ICategoryData.ts │ │ └── products │ │ ├── CreateProductUseCase.ts │ │ ├── DeleteProductUseCase.ts │ │ ├── ListAllProductsUseCase.ts │ │ ├── ReduceProductsStockUseCase.ts │ │ ├── UpdateProductUseCase.ts │ │ ├── errors │ │ ├── ProductAlreadyExistsError.ts │ │ ├── ProductInsufficientStockError.ts │ │ └── ProductNotFoundError.ts │ │ └── ports │ │ ├── IProductData.ts │ │ └── IProductsRepository.ts ├── tests │ ├── Entities │ │ ├── Category.spec.ts │ │ └── Product.spec.ts │ ├── controllers │ │ ├── categories │ │ │ ├── CreateCategoryController.spec.ts │ │ │ ├── DeleteCategoryController.spec.ts │ │ │ ├── ListAllCategoriesController.spec.ts │ │ │ └── UpdateCategoryController.spec.ts │ │ └── products │ │ │ ├── CreateProductController.spec.ts │ │ │ ├── DeleteProductController.spec.ts │ │ │ ├── ListAllProductsController.spec.ts │ │ │ ├── ReduceProductsStockController.spec.ts │ │ │ └── UpdateProductController.spec.ts │ ├── doubles │ │ ├── CategoriesActions.ts │ │ ├── ProductsActions.ts │ │ └── repositories │ │ │ ├── CategoriesRepositoryInMemory.ts │ │ │ └── ProductsRepositoryInMemory.ts │ ├── infra │ │ ├── http │ │ │ └── routes │ │ │ │ ├── categories │ │ │ │ └── ListAllCategoriesRoute.spec.ts │ │ │ │ └── products │ │ │ │ └── ListAllProductsRoute.spec.ts │ │ └── serverless │ │ │ ├── CreateCategory.spec.ts │ │ │ ├── CreateProduct.spec.ts │ │ │ ├── DeleteCategory.spec.ts │ │ │ ├── DeleteProduct.spec.ts │ │ │ ├── ReduceProductsStock.spec.ts │ │ │ └── UpdateCategory.spec.ts │ └── useCases │ │ ├── categories │ │ ├── CreateCategoryUseCase.spec.ts │ │ ├── DeleteCategoryUseCase.spec.ts │ │ ├── ListAllCategoriesUseCase.spec.ts │ │ └── UpdateCategoryUseCase.spec.ts │ │ └── products │ │ ├── CreateProductUseCase.spec.ts │ │ ├── DeleteProductUseCase.spec.ts │ │ ├── ListAllProductsUseCase.spec.ts │ │ ├── ReduceProductStockUseCase.spec.ts │ │ └── UpdateProductUseCase.spec.ts ├── tsconfig.json └── yarn.lock └── UserService ├── .env.development.example ├── .env.test.example ├── .gitignore ├── @types └── express │ └── index.d.ts ├── Dockerfile ├── docker-compose.yml ├── jest.config.ts ├── jest.setup.ts ├── package.json ├── src ├── container │ └── index.ts ├── controllers │ ├── errors │ │ └── MissingParamError.ts │ ├── ports │ │ ├── IController.ts │ │ ├── IHttpRequest.ts │ │ └── IHttpResponse.ts │ ├── users │ │ ├── AdminUpdateUserController.ts │ │ ├── CreateUserController.ts │ │ ├── DeleteUserController.ts │ │ ├── ListAllUsersController.ts │ │ ├── UpdateUserController.ts │ │ └── UserProfileController.ts │ └── utils │ │ ├── HttpResponses.ts │ │ └── IsRequiredParamsMissing.ts ├── domain │ └── entities │ │ └── User │ │ ├── ValidateEmail.ts │ │ ├── errors │ │ ├── InvalidEmailError.ts │ │ ├── InvalidNameError.ts │ │ └── InvalidPasswordError.ts │ │ └── index.ts ├── infra │ ├── authentication │ │ ├── JwtAuthenticationTokenProvider.ts │ │ └── config.ts │ ├── database │ │ └── prisma │ │ │ ├── PrismaClient.ts │ │ │ ├── migrations │ │ │ ├── 20220331134924_add_users │ │ │ │ └── migration.sql │ │ │ └── migration_lock.toml │ │ │ ├── repositories │ │ │ └── PrismaUsersRepository.ts │ │ │ └── schema.prisma │ ├── encoder │ │ └── BcryptEncoder.ts │ └── http │ │ ├── app.ts │ │ ├── middlewares │ │ ├── MiddlewareAdapter.ts │ │ ├── adaptedEnsureAdmin.ts │ │ └── adaptedEnsureAuthenticated.ts │ │ ├── routes │ │ ├── RouteAdapter.ts │ │ ├── index.ts │ │ └── users.routes.ts │ │ └── server.ts ├── logic │ └── Either.ts ├── middlewares │ ├── ensureAdmin.ts │ ├── ensureAuthenticated.ts │ ├── ports │ │ ├── IHttpRequest.ts │ │ ├── IHttpResponse.ts │ │ └── IMiddleware.ts │ └── utils │ │ └── HttpResponses.ts └── useCases │ └── users │ ├── CreateUserUseCase.ts │ ├── DeleteUserUseCase.ts │ ├── ListAllUsersUseCase.ts │ ├── UpdateUserUseCase.ts │ ├── UserProfileUseCase.ts │ ├── errors │ ├── EmailIsAlreadyTakenError.ts │ ├── IncorrectPasswordError.ts │ ├── UnmatchedPasswordError.ts │ ├── UserAlreadyExistsError.ts │ └── UserNotFoundError.ts │ └── ports │ ├── IAuthenticationTokenProvider.ts │ ├── IEncoder.ts │ ├── IListUsersResponse.ts │ ├── IUpdatedUserData.ts │ ├── IUserData.ts │ └── IUsersRepository.ts ├── tests ├── Entities │ └── User.spec.ts ├── controllers │ └── users │ │ ├── AdminUpdateUserController.spec.ts │ │ ├── CreateUserController.spec.ts │ │ ├── DeleteUserController.spec.ts │ │ ├── ListAllUsersController.spec.ts │ │ ├── UpdateUserController.spec.ts │ │ └── UserProfileController.spec.ts ├── doubles │ ├── FakeEncoder.ts │ ├── UserIdTestMiddleware.ts │ ├── UsersActions.ts │ └── repositories │ │ └── UsersRepositoryInMemory.ts ├── infra │ └── http │ │ └── routes │ │ └── users │ │ ├── AdminUpdateUserRoute.spec.ts │ │ ├── CreateUserRoute.spec.ts │ │ ├── DeleteUserRoute.spec.ts │ │ ├── ListAllUsersRoute.spec.ts │ │ ├── UpdateUserRoute.spec.ts │ │ └── UserProfileRoute.spec.ts └── useCases │ └── users │ ├── CreateUserUseCase.spec.ts │ ├── DeleteUserUseCase.spec.ts │ ├── ListAllUsersCase.spec.ts │ ├── UpdateUserUseCase.spec.ts │ └── UserProfileUseCase.spec.ts ├── tsconfig.json └── yarn.lock /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/README.md -------------------------------------------------------------------------------- /assets/database-overview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/assets/database-overview.png -------------------------------------------------------------------------------- /assets/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/assets/logo.svg -------------------------------------------------------------------------------- /assets/projectOverview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/assets/projectOverview.jpg -------------------------------------------------------------------------------- /services/AuthenticationService/.env.development.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/.env.development.example -------------------------------------------------------------------------------- /services/AuthenticationService/.env.test.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/.env.test.example -------------------------------------------------------------------------------- /services/AuthenticationService/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/.gitignore -------------------------------------------------------------------------------- /services/AuthenticationService/jest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/jest.config.ts -------------------------------------------------------------------------------- /services/AuthenticationService/jest.setup.ts: -------------------------------------------------------------------------------- 1 | import "reflect-metadata"; -------------------------------------------------------------------------------- /services/AuthenticationService/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/package.json -------------------------------------------------------------------------------- /services/AuthenticationService/serverless-secrets.example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/serverless-secrets.example.json -------------------------------------------------------------------------------- /services/AuthenticationService/serverless.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/serverless.yml -------------------------------------------------------------------------------- /services/AuthenticationService/src/container/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/container/index.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/controllers/authentication/SignInUserController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/controllers/authentication/SignInUserController.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/controllers/errors/MissingParamError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/controllers/errors/MissingParamError.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/controllers/ports/IController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/controllers/ports/IController.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/controllers/ports/IHttpRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/controllers/ports/IHttpRequest.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/controllers/ports/IHttpResponse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/controllers/ports/IHttpResponse.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/controllers/utils/HttpResponses.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/controllers/utils/HttpResponses.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/controllers/utils/IsRequiredParamsMissing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/controllers/utils/IsRequiredParamsMissing.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/infra/authentication/JwtAuthenticationTokenProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/infra/authentication/JwtAuthenticationTokenProvider.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/infra/authentication/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/infra/authentication/config.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/infra/database/prisma/PrismaClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/infra/database/prisma/PrismaClient.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/infra/database/prisma/migrations/20220406010128_add_users/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/infra/database/prisma/migrations/20220406010128_add_users/migration.sql -------------------------------------------------------------------------------- /services/AuthenticationService/src/infra/database/prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/infra/database/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /services/AuthenticationService/src/infra/database/prisma/repositories/PrismaUsersRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/infra/database/prisma/repositories/PrismaUsersRepository.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/infra/database/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/infra/database/prisma/schema.prisma -------------------------------------------------------------------------------- /services/AuthenticationService/src/infra/encoder/BcryptEncoder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/infra/encoder/BcryptEncoder.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/infra/serverless/functions/EnsureAdmin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/infra/serverless/functions/EnsureAdmin.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/infra/serverless/functions/EnsureAuthenticated.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/infra/serverless/functions/EnsureAuthenticated.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/infra/serverless/functions/SignInUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/infra/serverless/functions/SignInUser.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/infra/serverless/utils/commonMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/infra/serverless/utils/commonMiddleware.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/logic/Either.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/logic/Either.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/middlewares/ensureAdminMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/middlewares/ensureAdminMiddleware.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/middlewares/ensureAuthenticatedMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/middlewares/ensureAuthenticatedMiddleware.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/middlewares/ports/IHttpRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/middlewares/ports/IHttpRequest.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/middlewares/ports/IMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/middlewares/ports/IMiddleware.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/useCases/authentication/SignInUserUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/useCases/authentication/SignInUserUseCase.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/useCases/authentication/errors/IncorrectCredentialsError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/useCases/authentication/errors/IncorrectCredentialsError.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/useCases/authentication/ports/IAuthenticationTokenProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/useCases/authentication/ports/IAuthenticationTokenProvider.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/useCases/authentication/ports/IEncoder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/useCases/authentication/ports/IEncoder.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/useCases/authentication/ports/IUserData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/useCases/authentication/ports/IUserData.ts -------------------------------------------------------------------------------- /services/AuthenticationService/src/useCases/authentication/ports/IUsersRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/src/useCases/authentication/ports/IUsersRepository.ts -------------------------------------------------------------------------------- /services/AuthenticationService/tests/controllers/SignInUserController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/tests/controllers/SignInUserController.spec.ts -------------------------------------------------------------------------------- /services/AuthenticationService/tests/doubles/UsersActions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/tests/doubles/UsersActions.ts -------------------------------------------------------------------------------- /services/AuthenticationService/tests/doubles/repositories/UsersRepositoryInMemory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/tests/doubles/repositories/UsersRepositoryInMemory.ts -------------------------------------------------------------------------------- /services/AuthenticationService/tests/infra/serverless/EnsureAdmin.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/tests/infra/serverless/EnsureAdmin.spec.ts -------------------------------------------------------------------------------- /services/AuthenticationService/tests/infra/serverless/EnsureAuthenticated.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/tests/infra/serverless/EnsureAuthenticated.spec.ts -------------------------------------------------------------------------------- /services/AuthenticationService/tests/infra/serverless/SignInUser.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/tests/infra/serverless/SignInUser.spec.ts -------------------------------------------------------------------------------- /services/AuthenticationService/tests/middlewares/EnsureAdminMiddleware.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/tests/middlewares/EnsureAdminMiddleware.spec.ts -------------------------------------------------------------------------------- /services/AuthenticationService/tests/middlewares/EnsureAuthenticatedMiddleware.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/tests/middlewares/EnsureAuthenticatedMiddleware.spec.ts -------------------------------------------------------------------------------- /services/AuthenticationService/tests/useCases/SignInUserUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/tests/useCases/SignInUserUseCase.spec.ts -------------------------------------------------------------------------------- /services/AuthenticationService/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/tsconfig.json -------------------------------------------------------------------------------- /services/AuthenticationService/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/AuthenticationService/yarn.lock -------------------------------------------------------------------------------- /services/CartService/.env.development.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/.env.development.example -------------------------------------------------------------------------------- /services/CartService/.env.test.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/.env.test.example -------------------------------------------------------------------------------- /services/CartService/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/.gitignore -------------------------------------------------------------------------------- /services/CartService/@types/express/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/@types/express/index.d.ts -------------------------------------------------------------------------------- /services/CartService/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/package.json -------------------------------------------------------------------------------- /services/CartService/src/container/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /services/CartService/src/controllers/errors/MissingParamError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/src/controllers/errors/MissingParamError.ts -------------------------------------------------------------------------------- /services/CartService/src/controllers/ports/IController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/src/controllers/ports/IController.ts -------------------------------------------------------------------------------- /services/CartService/src/controllers/ports/IHttpRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/src/controllers/ports/IHttpRequest.ts -------------------------------------------------------------------------------- /services/CartService/src/controllers/ports/IHttpResponse.ts: -------------------------------------------------------------------------------- 1 | export interface IHttpResponse { 2 | statusCode: number; 3 | body: any; 4 | }; -------------------------------------------------------------------------------- /services/CartService/src/controllers/utils/HttpResponses.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/src/controllers/utils/HttpResponses.ts -------------------------------------------------------------------------------- /services/CartService/src/controllers/utils/IsRequiredParamsMissing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/src/controllers/utils/IsRequiredParamsMissing.ts -------------------------------------------------------------------------------- /services/CartService/src/infra/database/prisma/PrismaClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/src/infra/database/prisma/PrismaClient.ts -------------------------------------------------------------------------------- /services/CartService/src/infra/database/prisma/schema.prisma: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /services/CartService/src/infra/http/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/src/infra/http/app.ts -------------------------------------------------------------------------------- /services/CartService/src/infra/http/routes/RouteAdapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/src/infra/http/routes/RouteAdapter.ts -------------------------------------------------------------------------------- /services/CartService/src/infra/http/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/src/infra/http/server.ts -------------------------------------------------------------------------------- /services/CartService/src/logic/Either.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/src/logic/Either.ts -------------------------------------------------------------------------------- /services/CartService/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/CartService/tsconfig.json -------------------------------------------------------------------------------- /services/OrderService/.env.development.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/.env.development.example -------------------------------------------------------------------------------- /services/OrderService/.env.test.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/.env.test.example -------------------------------------------------------------------------------- /services/OrderService/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/.gitignore -------------------------------------------------------------------------------- /services/OrderService/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/Dockerfile -------------------------------------------------------------------------------- /services/OrderService/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/docker-compose.yml -------------------------------------------------------------------------------- /services/OrderService/jest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/jest.config.ts -------------------------------------------------------------------------------- /services/OrderService/jest.setup.ts: -------------------------------------------------------------------------------- 1 | import "reflect-metadata"; -------------------------------------------------------------------------------- /services/OrderService/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/package.json -------------------------------------------------------------------------------- /services/OrderService/serverless-secrets.example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/serverless-secrets.example.json -------------------------------------------------------------------------------- /services/OrderService/serverless.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/serverless.yml -------------------------------------------------------------------------------- /services/OrderService/src/container/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/container/index.ts -------------------------------------------------------------------------------- /services/OrderService/src/controllers/errors/MissingParamError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/controllers/errors/MissingParamError.ts -------------------------------------------------------------------------------- /services/OrderService/src/controllers/orders/ListOrdersByUserController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/controllers/orders/ListOrdersByUserController.ts -------------------------------------------------------------------------------- /services/OrderService/src/controllers/orders/PlaceOrderController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/controllers/orders/PlaceOrderController.ts -------------------------------------------------------------------------------- /services/OrderService/src/controllers/ports/IController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/controllers/ports/IController.ts -------------------------------------------------------------------------------- /services/OrderService/src/controllers/ports/IHttpRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/controllers/ports/IHttpRequest.ts -------------------------------------------------------------------------------- /services/OrderService/src/controllers/ports/IHttpResponse.ts: -------------------------------------------------------------------------------- 1 | export interface IHttpResponse { 2 | statusCode: number; 3 | body: any; 4 | }; -------------------------------------------------------------------------------- /services/OrderService/src/controllers/ports/IServerlessHttpRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/controllers/ports/IServerlessHttpRequest.ts -------------------------------------------------------------------------------- /services/OrderService/src/controllers/utils/HttpResponses.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/controllers/utils/HttpResponses.ts -------------------------------------------------------------------------------- /services/OrderService/src/controllers/utils/IsRequiredParamsMissing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/controllers/utils/IsRequiredParamsMissing.ts -------------------------------------------------------------------------------- /services/OrderService/src/domain/entities/Order/errors/InvalidOrderTotalError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/domain/entities/Order/errors/InvalidOrderTotalError.ts -------------------------------------------------------------------------------- /services/OrderService/src/domain/entities/Order/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/domain/entities/Order/index.ts -------------------------------------------------------------------------------- /services/OrderService/src/infra/database/prisma/PrismaClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/infra/database/prisma/PrismaClient.ts -------------------------------------------------------------------------------- /services/OrderService/src/infra/database/prisma/migrations/20220406140833_create_orders/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/infra/database/prisma/migrations/20220406140833_create_orders/migration.sql -------------------------------------------------------------------------------- /services/OrderService/src/infra/database/prisma/migrations/20220406210700_add_product_amount/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/infra/database/prisma/migrations/20220406210700_add_product_amount/migration.sql -------------------------------------------------------------------------------- /services/OrderService/src/infra/database/prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/infra/database/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /services/OrderService/src/infra/database/prisma/repositories/PrismaOrdersRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/infra/database/prisma/repositories/PrismaOrdersRepository.ts -------------------------------------------------------------------------------- /services/OrderService/src/infra/database/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/infra/database/prisma/schema.prisma -------------------------------------------------------------------------------- /services/OrderService/src/infra/messaging/SQSClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/infra/messaging/SQSClient.ts -------------------------------------------------------------------------------- /services/OrderService/src/infra/messaging/SQSMessagingAdapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/infra/messaging/SQSMessagingAdapter.ts -------------------------------------------------------------------------------- /services/OrderService/src/infra/serverless/functions/ListOrdersByUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/infra/serverless/functions/ListOrdersByUser.ts -------------------------------------------------------------------------------- /services/OrderService/src/infra/serverless/functions/PlaceOrder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/infra/serverless/functions/PlaceOrder.ts -------------------------------------------------------------------------------- /services/OrderService/src/infra/serverless/utils/commonMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/infra/serverless/utils/commonMiddleware.ts -------------------------------------------------------------------------------- /services/OrderService/src/logic/Either.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/logic/Either.ts -------------------------------------------------------------------------------- /services/OrderService/src/useCases/orders/ListOrdersByUserUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/useCases/orders/ListOrdersByUserUseCase.ts -------------------------------------------------------------------------------- /services/OrderService/src/useCases/orders/PlaceOrderUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/useCases/orders/PlaceOrderUseCase.ts -------------------------------------------------------------------------------- /services/OrderService/src/useCases/orders/ports/IMessagingAdapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/useCases/orders/ports/IMessagingAdapter.ts -------------------------------------------------------------------------------- /services/OrderService/src/useCases/orders/ports/IOrderData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/useCases/orders/ports/IOrderData.ts -------------------------------------------------------------------------------- /services/OrderService/src/useCases/orders/ports/IOrdersRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/src/useCases/orders/ports/IOrdersRepository.ts -------------------------------------------------------------------------------- /services/OrderService/tests/Entities/Order.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/tests/Entities/Order.spec.ts -------------------------------------------------------------------------------- /services/OrderService/tests/controllers/ListOrdersByUserController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/tests/controllers/ListOrdersByUserController.spec.ts -------------------------------------------------------------------------------- /services/OrderService/tests/controllers/PlaceOrderController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/tests/controllers/PlaceOrderController.spec.ts -------------------------------------------------------------------------------- /services/OrderService/tests/doubles/FakeMessagingAdapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/tests/doubles/FakeMessagingAdapter.ts -------------------------------------------------------------------------------- /services/OrderService/tests/doubles/OrdersActions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/tests/doubles/OrdersActions.ts -------------------------------------------------------------------------------- /services/OrderService/tests/doubles/repositories/OrdersRepositoryInMemory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/tests/doubles/repositories/OrdersRepositoryInMemory.ts -------------------------------------------------------------------------------- /services/OrderService/tests/infra/serverless/ListOrdersByUser.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/tests/infra/serverless/ListOrdersByUser.spec.ts -------------------------------------------------------------------------------- /services/OrderService/tests/infra/serverless/PlaceOrder.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/tests/infra/serverless/PlaceOrder.spec.ts -------------------------------------------------------------------------------- /services/OrderService/tests/useCases/orders/ListOrdersByUserUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/tests/useCases/orders/ListOrdersByUserUseCase.spec.ts -------------------------------------------------------------------------------- /services/OrderService/tests/useCases/orders/PlaceOrderUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/tests/useCases/orders/PlaceOrderUseCase.spec.ts -------------------------------------------------------------------------------- /services/OrderService/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/tsconfig.json -------------------------------------------------------------------------------- /services/OrderService/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/OrderService/yarn.lock -------------------------------------------------------------------------------- /services/ProductService/.env.development.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/.env.development.example -------------------------------------------------------------------------------- /services/ProductService/.env.test.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/.env.test.example -------------------------------------------------------------------------------- /services/ProductService/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/.gitignore -------------------------------------------------------------------------------- /services/ProductService/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/Dockerfile -------------------------------------------------------------------------------- /services/ProductService/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/docker-compose.yml -------------------------------------------------------------------------------- /services/ProductService/jest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/jest.config.ts -------------------------------------------------------------------------------- /services/ProductService/jest.setup.ts: -------------------------------------------------------------------------------- 1 | import "reflect-metadata"; -------------------------------------------------------------------------------- /services/ProductService/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/package.json -------------------------------------------------------------------------------- /services/ProductService/serverless-secrets.example.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/serverless-secrets.example.json -------------------------------------------------------------------------------- /services/ProductService/serverless.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/serverless.yml -------------------------------------------------------------------------------- /services/ProductService/src/container/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/container/index.ts -------------------------------------------------------------------------------- /services/ProductService/src/controllers/categories/CreateCategoryController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/controllers/categories/CreateCategoryController.ts -------------------------------------------------------------------------------- /services/ProductService/src/controllers/categories/DeleteCategoryController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/controllers/categories/DeleteCategoryController.ts -------------------------------------------------------------------------------- /services/ProductService/src/controllers/categories/ListAllCategoriesController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/controllers/categories/ListAllCategoriesController.ts -------------------------------------------------------------------------------- /services/ProductService/src/controllers/categories/UpdateCategoryController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/controllers/categories/UpdateCategoryController.ts -------------------------------------------------------------------------------- /services/ProductService/src/controllers/errors/MissingParamError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/controllers/errors/MissingParamError.ts -------------------------------------------------------------------------------- /services/ProductService/src/controllers/ports/IController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/controllers/ports/IController.ts -------------------------------------------------------------------------------- /services/ProductService/src/controllers/ports/IHttpRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/controllers/ports/IHttpRequest.ts -------------------------------------------------------------------------------- /services/ProductService/src/controllers/ports/IHttpResponse.ts: -------------------------------------------------------------------------------- 1 | export interface IHttpResponse { 2 | statusCode: number; 3 | body: any; 4 | }; -------------------------------------------------------------------------------- /services/ProductService/src/controllers/ports/IServerlessHttpRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/controllers/ports/IServerlessHttpRequest.ts -------------------------------------------------------------------------------- /services/ProductService/src/controllers/products/CreateProductController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/controllers/products/CreateProductController.ts -------------------------------------------------------------------------------- /services/ProductService/src/controllers/products/DeleteProductController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/controllers/products/DeleteProductController.ts -------------------------------------------------------------------------------- /services/ProductService/src/controllers/products/ListAllProductsController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/controllers/products/ListAllProductsController.ts -------------------------------------------------------------------------------- /services/ProductService/src/controllers/products/ReduceProductsStockController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/controllers/products/ReduceProductsStockController.ts -------------------------------------------------------------------------------- /services/ProductService/src/controllers/products/UpdateProductController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/controllers/products/UpdateProductController.ts -------------------------------------------------------------------------------- /services/ProductService/src/controllers/utils/HttpResponses.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/controllers/utils/HttpResponses.ts -------------------------------------------------------------------------------- /services/ProductService/src/controllers/utils/IsRequiredParamsMissing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/controllers/utils/IsRequiredParamsMissing.ts -------------------------------------------------------------------------------- /services/ProductService/src/domain/entities/Category/errors/InvalidCategoryNameError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/domain/entities/Category/errors/InvalidCategoryNameError.ts -------------------------------------------------------------------------------- /services/ProductService/src/domain/entities/Category/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/domain/entities/Category/index.ts -------------------------------------------------------------------------------- /services/ProductService/src/domain/entities/Product/errors/InvalidProductNameError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/domain/entities/Product/errors/InvalidProductNameError.ts -------------------------------------------------------------------------------- /services/ProductService/src/domain/entities/Product/errors/InvalidProductPriceError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/domain/entities/Product/errors/InvalidProductPriceError.ts -------------------------------------------------------------------------------- /services/ProductService/src/domain/entities/Product/errors/InvalidProductStockError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/domain/entities/Product/errors/InvalidProductStockError.ts -------------------------------------------------------------------------------- /services/ProductService/src/domain/entities/Product/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/domain/entities/Product/index.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/database/prisma/PrismaClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/database/prisma/PrismaClient.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/database/prisma/migrations/20220404192944_add_products_and_categories/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/database/prisma/migrations/20220404192944_add_products_and_categories/migration.sql -------------------------------------------------------------------------------- /services/ProductService/src/infra/database/prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/database/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /services/ProductService/src/infra/database/prisma/repositories/PrismaCategoriesRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/database/prisma/repositories/PrismaCategoriesRepository.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/database/prisma/repositories/PrismaProductsRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/database/prisma/repositories/PrismaProductsRepository.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/database/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/database/prisma/schema.prisma -------------------------------------------------------------------------------- /services/ProductService/src/infra/http/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/http/app.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/http/routes/RouteAdapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/http/routes/RouteAdapter.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/http/routes/categories.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/http/routes/categories.routes.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/http/routes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/http/routes/index.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/http/routes/products.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/http/routes/products.routes.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/http/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/http/server.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/serverless/functions/CreateCategory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/serverless/functions/CreateCategory.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/serverless/functions/CreateProduct.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/serverless/functions/CreateProduct.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/serverless/functions/DeleteCategory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/serverless/functions/DeleteCategory.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/serverless/functions/DeleteProduct.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/serverless/functions/DeleteProduct.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/serverless/functions/ReduceProductStock.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/serverless/functions/ReduceProductStock.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/serverless/functions/UpdateCategory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/serverless/functions/UpdateCategory.ts -------------------------------------------------------------------------------- /services/ProductService/src/infra/serverless/utils/commonMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/infra/serverless/utils/commonMiddleware.ts -------------------------------------------------------------------------------- /services/ProductService/src/logic/Either.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/logic/Either.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/categories/CreateCategoryUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/categories/CreateCategoryUseCase.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/categories/DeleteCategoryUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/categories/DeleteCategoryUseCase.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/categories/ListAllCategoriesUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/categories/ListAllCategoriesUseCase.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/categories/UpdateCategoryUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/categories/UpdateCategoryUseCase.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/categories/errors/CategoryAlreadyExistsError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/categories/errors/CategoryAlreadyExistsError.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/categories/errors/CategoryNotFoundError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/categories/errors/CategoryNotFoundError.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/categories/ports/ICategoriesRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/categories/ports/ICategoriesRepository.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/categories/ports/ICategoryData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/categories/ports/ICategoryData.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/products/CreateProductUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/products/CreateProductUseCase.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/products/DeleteProductUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/products/DeleteProductUseCase.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/products/ListAllProductsUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/products/ListAllProductsUseCase.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/products/ReduceProductsStockUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/products/ReduceProductsStockUseCase.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/products/UpdateProductUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/products/UpdateProductUseCase.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/products/errors/ProductAlreadyExistsError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/products/errors/ProductAlreadyExistsError.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/products/errors/ProductInsufficientStockError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/products/errors/ProductInsufficientStockError.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/products/errors/ProductNotFoundError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/products/errors/ProductNotFoundError.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/products/ports/IProductData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/products/ports/IProductData.ts -------------------------------------------------------------------------------- /services/ProductService/src/useCases/products/ports/IProductsRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/src/useCases/products/ports/IProductsRepository.ts -------------------------------------------------------------------------------- /services/ProductService/tests/Entities/Category.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/Entities/Category.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/Entities/Product.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/Entities/Product.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/controllers/categories/CreateCategoryController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/controllers/categories/CreateCategoryController.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/controllers/categories/DeleteCategoryController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/controllers/categories/DeleteCategoryController.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/controllers/categories/ListAllCategoriesController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/controllers/categories/ListAllCategoriesController.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/controllers/categories/UpdateCategoryController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/controllers/categories/UpdateCategoryController.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/controllers/products/CreateProductController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/controllers/products/CreateProductController.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/controllers/products/DeleteProductController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/controllers/products/DeleteProductController.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/controllers/products/ListAllProductsController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/controllers/products/ListAllProductsController.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/controllers/products/ReduceProductsStockController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/controllers/products/ReduceProductsStockController.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/controllers/products/UpdateProductController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/controllers/products/UpdateProductController.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/doubles/CategoriesActions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/doubles/CategoriesActions.ts -------------------------------------------------------------------------------- /services/ProductService/tests/doubles/ProductsActions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/doubles/ProductsActions.ts -------------------------------------------------------------------------------- /services/ProductService/tests/doubles/repositories/CategoriesRepositoryInMemory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/doubles/repositories/CategoriesRepositoryInMemory.ts -------------------------------------------------------------------------------- /services/ProductService/tests/doubles/repositories/ProductsRepositoryInMemory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/doubles/repositories/ProductsRepositoryInMemory.ts -------------------------------------------------------------------------------- /services/ProductService/tests/infra/http/routes/categories/ListAllCategoriesRoute.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/infra/http/routes/categories/ListAllCategoriesRoute.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/infra/http/routes/products/ListAllProductsRoute.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/infra/http/routes/products/ListAllProductsRoute.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/infra/serverless/CreateCategory.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/infra/serverless/CreateCategory.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/infra/serverless/CreateProduct.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/infra/serverless/CreateProduct.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/infra/serverless/DeleteCategory.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/infra/serverless/DeleteCategory.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/infra/serverless/DeleteProduct.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/infra/serverless/DeleteProduct.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/infra/serverless/ReduceProductsStock.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/infra/serverless/ReduceProductsStock.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/infra/serverless/UpdateCategory.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/infra/serverless/UpdateCategory.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/useCases/categories/CreateCategoryUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/useCases/categories/CreateCategoryUseCase.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/useCases/categories/DeleteCategoryUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/useCases/categories/DeleteCategoryUseCase.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/useCases/categories/ListAllCategoriesUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/useCases/categories/ListAllCategoriesUseCase.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/useCases/categories/UpdateCategoryUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/useCases/categories/UpdateCategoryUseCase.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/useCases/products/CreateProductUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/useCases/products/CreateProductUseCase.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/useCases/products/DeleteProductUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/useCases/products/DeleteProductUseCase.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/useCases/products/ListAllProductsUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/useCases/products/ListAllProductsUseCase.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/useCases/products/ReduceProductStockUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/useCases/products/ReduceProductStockUseCase.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tests/useCases/products/UpdateProductUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tests/useCases/products/UpdateProductUseCase.spec.ts -------------------------------------------------------------------------------- /services/ProductService/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/tsconfig.json -------------------------------------------------------------------------------- /services/ProductService/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/ProductService/yarn.lock -------------------------------------------------------------------------------- /services/UserService/.env.development.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/.env.development.example -------------------------------------------------------------------------------- /services/UserService/.env.test.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/.env.test.example -------------------------------------------------------------------------------- /services/UserService/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/.gitignore -------------------------------------------------------------------------------- /services/UserService/@types/express/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/@types/express/index.d.ts -------------------------------------------------------------------------------- /services/UserService/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/Dockerfile -------------------------------------------------------------------------------- /services/UserService/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/docker-compose.yml -------------------------------------------------------------------------------- /services/UserService/jest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/jest.config.ts -------------------------------------------------------------------------------- /services/UserService/jest.setup.ts: -------------------------------------------------------------------------------- 1 | import "reflect-metadata"; -------------------------------------------------------------------------------- /services/UserService/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/package.json -------------------------------------------------------------------------------- /services/UserService/src/container/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/container/index.ts -------------------------------------------------------------------------------- /services/UserService/src/controllers/errors/MissingParamError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/controllers/errors/MissingParamError.ts -------------------------------------------------------------------------------- /services/UserService/src/controllers/ports/IController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/controllers/ports/IController.ts -------------------------------------------------------------------------------- /services/UserService/src/controllers/ports/IHttpRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/controllers/ports/IHttpRequest.ts -------------------------------------------------------------------------------- /services/UserService/src/controllers/ports/IHttpResponse.ts: -------------------------------------------------------------------------------- 1 | export interface IHttpResponse { 2 | statusCode: number; 3 | body: any; 4 | }; -------------------------------------------------------------------------------- /services/UserService/src/controllers/users/AdminUpdateUserController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/controllers/users/AdminUpdateUserController.ts -------------------------------------------------------------------------------- /services/UserService/src/controllers/users/CreateUserController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/controllers/users/CreateUserController.ts -------------------------------------------------------------------------------- /services/UserService/src/controllers/users/DeleteUserController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/controllers/users/DeleteUserController.ts -------------------------------------------------------------------------------- /services/UserService/src/controllers/users/ListAllUsersController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/controllers/users/ListAllUsersController.ts -------------------------------------------------------------------------------- /services/UserService/src/controllers/users/UpdateUserController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/controllers/users/UpdateUserController.ts -------------------------------------------------------------------------------- /services/UserService/src/controllers/users/UserProfileController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/controllers/users/UserProfileController.ts -------------------------------------------------------------------------------- /services/UserService/src/controllers/utils/HttpResponses.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/controllers/utils/HttpResponses.ts -------------------------------------------------------------------------------- /services/UserService/src/controllers/utils/IsRequiredParamsMissing.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/controllers/utils/IsRequiredParamsMissing.ts -------------------------------------------------------------------------------- /services/UserService/src/domain/entities/User/ValidateEmail.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/domain/entities/User/ValidateEmail.ts -------------------------------------------------------------------------------- /services/UserService/src/domain/entities/User/errors/InvalidEmailError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/domain/entities/User/errors/InvalidEmailError.ts -------------------------------------------------------------------------------- /services/UserService/src/domain/entities/User/errors/InvalidNameError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/domain/entities/User/errors/InvalidNameError.ts -------------------------------------------------------------------------------- /services/UserService/src/domain/entities/User/errors/InvalidPasswordError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/domain/entities/User/errors/InvalidPasswordError.ts -------------------------------------------------------------------------------- /services/UserService/src/domain/entities/User/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/domain/entities/User/index.ts -------------------------------------------------------------------------------- /services/UserService/src/infra/authentication/JwtAuthenticationTokenProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/authentication/JwtAuthenticationTokenProvider.ts -------------------------------------------------------------------------------- /services/UserService/src/infra/authentication/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/authentication/config.ts -------------------------------------------------------------------------------- /services/UserService/src/infra/database/prisma/PrismaClient.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/database/prisma/PrismaClient.ts -------------------------------------------------------------------------------- /services/UserService/src/infra/database/prisma/migrations/20220331134924_add_users/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/database/prisma/migrations/20220331134924_add_users/migration.sql -------------------------------------------------------------------------------- /services/UserService/src/infra/database/prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/database/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /services/UserService/src/infra/database/prisma/repositories/PrismaUsersRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/database/prisma/repositories/PrismaUsersRepository.ts -------------------------------------------------------------------------------- /services/UserService/src/infra/database/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/database/prisma/schema.prisma -------------------------------------------------------------------------------- /services/UserService/src/infra/encoder/BcryptEncoder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/encoder/BcryptEncoder.ts -------------------------------------------------------------------------------- /services/UserService/src/infra/http/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/http/app.ts -------------------------------------------------------------------------------- /services/UserService/src/infra/http/middlewares/MiddlewareAdapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/http/middlewares/MiddlewareAdapter.ts -------------------------------------------------------------------------------- /services/UserService/src/infra/http/middlewares/adaptedEnsureAdmin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/http/middlewares/adaptedEnsureAdmin.ts -------------------------------------------------------------------------------- /services/UserService/src/infra/http/middlewares/adaptedEnsureAuthenticated.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/http/middlewares/adaptedEnsureAuthenticated.ts -------------------------------------------------------------------------------- /services/UserService/src/infra/http/routes/RouteAdapter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/http/routes/RouteAdapter.ts -------------------------------------------------------------------------------- /services/UserService/src/infra/http/routes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/http/routes/index.ts -------------------------------------------------------------------------------- /services/UserService/src/infra/http/routes/users.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/http/routes/users.routes.ts -------------------------------------------------------------------------------- /services/UserService/src/infra/http/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/infra/http/server.ts -------------------------------------------------------------------------------- /services/UserService/src/logic/Either.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/logic/Either.ts -------------------------------------------------------------------------------- /services/UserService/src/middlewares/ensureAdmin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/middlewares/ensureAdmin.ts -------------------------------------------------------------------------------- /services/UserService/src/middlewares/ensureAuthenticated.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/middlewares/ensureAuthenticated.ts -------------------------------------------------------------------------------- /services/UserService/src/middlewares/ports/IHttpRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/middlewares/ports/IHttpRequest.ts -------------------------------------------------------------------------------- /services/UserService/src/middlewares/ports/IHttpResponse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/middlewares/ports/IHttpResponse.ts -------------------------------------------------------------------------------- /services/UserService/src/middlewares/ports/IMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/middlewares/ports/IMiddleware.ts -------------------------------------------------------------------------------- /services/UserService/src/middlewares/utils/HttpResponses.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/middlewares/utils/HttpResponses.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/CreateUserUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/CreateUserUseCase.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/DeleteUserUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/DeleteUserUseCase.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/ListAllUsersUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/ListAllUsersUseCase.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/UpdateUserUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/UpdateUserUseCase.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/UserProfileUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/UserProfileUseCase.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/errors/EmailIsAlreadyTakenError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/errors/EmailIsAlreadyTakenError.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/errors/IncorrectPasswordError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/errors/IncorrectPasswordError.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/errors/UnmatchedPasswordError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/errors/UnmatchedPasswordError.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/errors/UserAlreadyExistsError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/errors/UserAlreadyExistsError.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/errors/UserNotFoundError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/errors/UserNotFoundError.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/ports/IAuthenticationTokenProvider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/ports/IAuthenticationTokenProvider.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/ports/IEncoder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/ports/IEncoder.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/ports/IListUsersResponse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/ports/IListUsersResponse.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/ports/IUpdatedUserData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/ports/IUpdatedUserData.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/ports/IUserData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/ports/IUserData.ts -------------------------------------------------------------------------------- /services/UserService/src/useCases/users/ports/IUsersRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/src/useCases/users/ports/IUsersRepository.ts -------------------------------------------------------------------------------- /services/UserService/tests/Entities/User.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/Entities/User.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/controllers/users/AdminUpdateUserController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/controllers/users/AdminUpdateUserController.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/controllers/users/CreateUserController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/controllers/users/CreateUserController.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/controllers/users/DeleteUserController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/controllers/users/DeleteUserController.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/controllers/users/ListAllUsersController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/controllers/users/ListAllUsersController.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/controllers/users/UpdateUserController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/controllers/users/UpdateUserController.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/controllers/users/UserProfileController.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/controllers/users/UserProfileController.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/doubles/FakeEncoder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/doubles/FakeEncoder.ts -------------------------------------------------------------------------------- /services/UserService/tests/doubles/UserIdTestMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/doubles/UserIdTestMiddleware.ts -------------------------------------------------------------------------------- /services/UserService/tests/doubles/UsersActions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/doubles/UsersActions.ts -------------------------------------------------------------------------------- /services/UserService/tests/doubles/repositories/UsersRepositoryInMemory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/doubles/repositories/UsersRepositoryInMemory.ts -------------------------------------------------------------------------------- /services/UserService/tests/infra/http/routes/users/AdminUpdateUserRoute.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/infra/http/routes/users/AdminUpdateUserRoute.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/infra/http/routes/users/CreateUserRoute.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/infra/http/routes/users/CreateUserRoute.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/infra/http/routes/users/DeleteUserRoute.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/infra/http/routes/users/DeleteUserRoute.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/infra/http/routes/users/ListAllUsersRoute.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/infra/http/routes/users/ListAllUsersRoute.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/infra/http/routes/users/UpdateUserRoute.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/infra/http/routes/users/UpdateUserRoute.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/infra/http/routes/users/UserProfileRoute.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/infra/http/routes/users/UserProfileRoute.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/useCases/users/CreateUserUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/useCases/users/CreateUserUseCase.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/useCases/users/DeleteUserUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/useCases/users/DeleteUserUseCase.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/useCases/users/ListAllUsersCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/useCases/users/ListAllUsersCase.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/useCases/users/UpdateUserUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/useCases/users/UpdateUserUseCase.spec.ts -------------------------------------------------------------------------------- /services/UserService/tests/useCases/users/UserProfileUseCase.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tests/useCases/users/UserProfileUseCase.spec.ts -------------------------------------------------------------------------------- /services/UserService/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/tsconfig.json -------------------------------------------------------------------------------- /services/UserService/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/erickivel/GoTech/HEAD/services/UserService/yarn.lock --------------------------------------------------------------------------------