├── .eslintrc.json ├── .github └── workflows │ └── main.yml ├── .gitignore ├── .prettierrc ├── docker-compose.yml ├── http ├── test-image.png └── users.http ├── jest.config.js ├── package.json ├── pnpm-lock.yaml ├── setup-postgresql.sql ├── src ├── application │ └── usecases │ │ ├── PostCreator │ │ └── PostCreator.ts │ │ ├── UploadUserImage │ │ └── index.ts │ │ ├── UserCreator │ │ └── index.ts │ │ ├── UserDeleter │ │ └── index.ts │ │ ├── UserGetter │ │ └── index.ts │ │ └── UserUpdater │ │ └── index.ts ├── domain │ ├── Nullable.ts │ ├── entities │ │ ├── EntityRoot.ts │ │ ├── post │ │ │ ├── ContentText.ts │ │ │ ├── Post.ts │ │ │ ├── PostContent.ts │ │ │ ├── PostCreatedAt.ts │ │ │ └── PostId.ts │ │ ├── user-image │ │ │ ├── UserId.ts │ │ │ ├── UserImage.ts │ │ │ ├── UserImageFileExtension.ts │ │ │ ├── UserImageFileMimeType.ts │ │ │ ├── UserImageFileName.ts │ │ │ ├── UserImageIsProfile.ts │ │ │ └── UserImageUrl.ts │ │ └── user │ │ │ ├── User.ts │ │ │ ├── exceptions.ts │ │ │ └── valueObjects.ts │ ├── exceptions │ │ ├── Exception.ts │ │ ├── UserAlreadyExistsException.ts │ │ ├── UserIsNotAnAdultException.ts │ │ ├── UserNotFoundException.ts │ │ ├── UuidNotValidException.ts │ │ └── index.ts │ ├── repositories │ │ ├── PostRepository.ts │ │ ├── UploadUserImageRepository.ts │ │ ├── UserImageRepository.ts │ │ └── UserRepository.ts │ ├── services │ │ ├── ExistUserByUserName │ │ │ └── index.ts │ │ └── UserGetterById │ │ │ └── index.ts │ ├── utils │ │ └── uuidGenerator.ts │ └── valueObjects │ │ └── Uuid.ts ├── infrastructure │ ├── UuidV4Generator.ts │ ├── driven-adapters │ │ └── AWS │ │ │ ├── aws.ts │ │ │ └── dynamo-db │ │ │ └── index.ts │ ├── driving-adapters │ │ ├── api-rest │ │ │ ├── Multer.ts │ │ │ ├── Server.ts │ │ │ ├── TuttoDataFakerBackendApp.ts │ │ │ ├── controllers │ │ │ │ ├── index.ts │ │ │ │ ├── user-image │ │ │ │ │ └── upload.controller.ts │ │ │ │ └── user │ │ │ │ │ ├── createUser.controller.ts │ │ │ │ │ ├── deleteUser.controller.ts │ │ │ │ │ ├── getAllUsers.controller.ts │ │ │ │ │ └── updateUser.controller.ts │ │ │ ├── routes │ │ │ │ ├── index.ts │ │ │ │ ├── user-image.routes.ts │ │ │ │ └── user.routes.ts │ │ │ └── start.ts │ │ ├── console │ │ │ └── console.ts │ │ ├── graphql │ │ │ ├── GraphQL.ts │ │ │ ├── TuttoDataFakerGraphQL.ts │ │ │ ├── resolvers │ │ │ │ ├── index.ts │ │ │ │ └── user │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── mutations.ts │ │ │ │ │ └── queries.ts │ │ │ ├── schema.ts │ │ │ ├── typedefs │ │ │ │ ├── index.graphql │ │ │ │ └── user.graphql │ │ │ └── utils │ │ │ │ └── HandlerError.ts │ │ └── start.ts │ └── implementations │ │ ├── Aws │ │ └── dynamo-db │ │ │ └── DynamoDBUserRepository.ts │ │ ├── InMemory │ │ └── InMemoryUserRepository.ts │ │ ├── PostgreUserImageRepository.ts │ │ └── S3UploadUserImageRepository.ts ├── shared │ ├── domain │ │ └── value-object │ │ │ ├── BooleanValueObject.ts │ │ │ ├── DateValueObject.ts │ │ │ ├── EnumValueObject.ts │ │ │ ├── IntValueObject.ts │ │ │ ├── InvalidArgumentError.ts │ │ │ ├── StringValueObject.ts │ │ │ ├── Uuid.ts │ │ │ └── ValueObject.ts │ └── infrastructure │ │ └── persistence │ │ ├── aws │ │ └── S3Repository.ts │ │ └── postgres │ │ ├── PostgresClientFactory.ts │ │ ├── PostgresConfig.ts │ │ └── PostgresRepository.ts └── test │ ├── application │ └── usecases │ │ └── PostCreator.test.ts │ ├── domain │ └── services │ │ ├── ExistUserByUserName.test.ts │ │ └── UserGetterById.test.ts │ └── mocks │ ├── PostRepositoryMock.ts │ ├── UserRepositoryMock.ts │ └── object-mother │ ├── NumberMother.ts │ ├── PostMother │ └── PostMother.ts │ ├── StringMother.ts │ ├── UserMother │ ├── UserAgeMother.ts │ ├── UserIdMother.ts │ ├── UserMother.ts │ ├── UserNameMother.ts │ └── UserUserNameMother.ts │ └── UuidMother.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | dist/ 3 | .env -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/.prettierrc -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /http/test-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/http/test-image.png -------------------------------------------------------------------------------- /http/users.http: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/http/users.http -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /setup-postgresql.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/setup-postgresql.sql -------------------------------------------------------------------------------- /src/application/usecases/PostCreator/PostCreator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/application/usecases/PostCreator/PostCreator.ts -------------------------------------------------------------------------------- /src/application/usecases/UploadUserImage/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/application/usecases/UploadUserImage/index.ts -------------------------------------------------------------------------------- /src/application/usecases/UserCreator/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/application/usecases/UserCreator/index.ts -------------------------------------------------------------------------------- /src/application/usecases/UserDeleter/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/application/usecases/UserDeleter/index.ts -------------------------------------------------------------------------------- /src/application/usecases/UserGetter/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/application/usecases/UserGetter/index.ts -------------------------------------------------------------------------------- /src/application/usecases/UserUpdater/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/application/usecases/UserUpdater/index.ts -------------------------------------------------------------------------------- /src/domain/Nullable.ts: -------------------------------------------------------------------------------- 1 | export type Nullable = T | null 2 | -------------------------------------------------------------------------------- /src/domain/entities/EntityRoot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/EntityRoot.ts -------------------------------------------------------------------------------- /src/domain/entities/post/ContentText.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/post/ContentText.ts -------------------------------------------------------------------------------- /src/domain/entities/post/Post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/post/Post.ts -------------------------------------------------------------------------------- /src/domain/entities/post/PostContent.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/post/PostContent.ts -------------------------------------------------------------------------------- /src/domain/entities/post/PostCreatedAt.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/post/PostCreatedAt.ts -------------------------------------------------------------------------------- /src/domain/entities/post/PostId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/post/PostId.ts -------------------------------------------------------------------------------- /src/domain/entities/user-image/UserId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/user-image/UserId.ts -------------------------------------------------------------------------------- /src/domain/entities/user-image/UserImage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/user-image/UserImage.ts -------------------------------------------------------------------------------- /src/domain/entities/user-image/UserImageFileExtension.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/user-image/UserImageFileExtension.ts -------------------------------------------------------------------------------- /src/domain/entities/user-image/UserImageFileMimeType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/user-image/UserImageFileMimeType.ts -------------------------------------------------------------------------------- /src/domain/entities/user-image/UserImageFileName.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/user-image/UserImageFileName.ts -------------------------------------------------------------------------------- /src/domain/entities/user-image/UserImageIsProfile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/user-image/UserImageIsProfile.ts -------------------------------------------------------------------------------- /src/domain/entities/user-image/UserImageUrl.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/user-image/UserImageUrl.ts -------------------------------------------------------------------------------- /src/domain/entities/user/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/user/User.ts -------------------------------------------------------------------------------- /src/domain/entities/user/exceptions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/user/exceptions.ts -------------------------------------------------------------------------------- /src/domain/entities/user/valueObjects.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/entities/user/valueObjects.ts -------------------------------------------------------------------------------- /src/domain/exceptions/Exception.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/exceptions/Exception.ts -------------------------------------------------------------------------------- /src/domain/exceptions/UserAlreadyExistsException.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/exceptions/UserAlreadyExistsException.ts -------------------------------------------------------------------------------- /src/domain/exceptions/UserIsNotAnAdultException.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/exceptions/UserIsNotAnAdultException.ts -------------------------------------------------------------------------------- /src/domain/exceptions/UserNotFoundException.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/exceptions/UserNotFoundException.ts -------------------------------------------------------------------------------- /src/domain/exceptions/UuidNotValidException.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/exceptions/UuidNotValidException.ts -------------------------------------------------------------------------------- /src/domain/exceptions/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/exceptions/index.ts -------------------------------------------------------------------------------- /src/domain/repositories/PostRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/repositories/PostRepository.ts -------------------------------------------------------------------------------- /src/domain/repositories/UploadUserImageRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/repositories/UploadUserImageRepository.ts -------------------------------------------------------------------------------- /src/domain/repositories/UserImageRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/repositories/UserImageRepository.ts -------------------------------------------------------------------------------- /src/domain/repositories/UserRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/repositories/UserRepository.ts -------------------------------------------------------------------------------- /src/domain/services/ExistUserByUserName/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/services/ExistUserByUserName/index.ts -------------------------------------------------------------------------------- /src/domain/services/UserGetterById/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/services/UserGetterById/index.ts -------------------------------------------------------------------------------- /src/domain/utils/uuidGenerator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/utils/uuidGenerator.ts -------------------------------------------------------------------------------- /src/domain/valueObjects/Uuid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/domain/valueObjects/Uuid.ts -------------------------------------------------------------------------------- /src/infrastructure/UuidV4Generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/UuidV4Generator.ts -------------------------------------------------------------------------------- /src/infrastructure/driven-adapters/AWS/aws.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driven-adapters/AWS/aws.ts -------------------------------------------------------------------------------- /src/infrastructure/driven-adapters/AWS/dynamo-db/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driven-adapters/AWS/dynamo-db/index.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/api-rest/Multer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/api-rest/Multer.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/api-rest/Server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/api-rest/Server.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/api-rest/TuttoDataFakerBackendApp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/api-rest/TuttoDataFakerBackendApp.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/api-rest/controllers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/api-rest/controllers/index.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/api-rest/controllers/user-image/upload.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/api-rest/controllers/user-image/upload.controller.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/api-rest/controllers/user/createUser.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/api-rest/controllers/user/createUser.controller.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/api-rest/controllers/user/deleteUser.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/api-rest/controllers/user/deleteUser.controller.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/api-rest/controllers/user/getAllUsers.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/api-rest/controllers/user/getAllUsers.controller.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/api-rest/controllers/user/updateUser.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/api-rest/controllers/user/updateUser.controller.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/api-rest/routes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/api-rest/routes/index.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/api-rest/routes/user-image.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/api-rest/routes/user-image.routes.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/api-rest/routes/user.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/api-rest/routes/user.routes.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/api-rest/start.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/api-rest/start.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/console/console.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/console/console.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/graphql/GraphQL.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/graphql/GraphQL.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/graphql/TuttoDataFakerGraphQL.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/graphql/TuttoDataFakerGraphQL.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/graphql/resolvers/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/graphql/resolvers/index.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/graphql/resolvers/user/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/graphql/resolvers/user/index.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/graphql/resolvers/user/mutations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/graphql/resolvers/user/mutations.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/graphql/resolvers/user/queries.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/graphql/resolvers/user/queries.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/graphql/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/graphql/schema.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/graphql/typedefs/index.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/graphql/typedefs/index.graphql -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/graphql/typedefs/user.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/graphql/typedefs/user.graphql -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/graphql/utils/HandlerError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/graphql/utils/HandlerError.ts -------------------------------------------------------------------------------- /src/infrastructure/driving-adapters/start.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/driving-adapters/start.ts -------------------------------------------------------------------------------- /src/infrastructure/implementations/Aws/dynamo-db/DynamoDBUserRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/implementations/Aws/dynamo-db/DynamoDBUserRepository.ts -------------------------------------------------------------------------------- /src/infrastructure/implementations/InMemory/InMemoryUserRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/implementations/InMemory/InMemoryUserRepository.ts -------------------------------------------------------------------------------- /src/infrastructure/implementations/PostgreUserImageRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/implementations/PostgreUserImageRepository.ts -------------------------------------------------------------------------------- /src/infrastructure/implementations/S3UploadUserImageRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/infrastructure/implementations/S3UploadUserImageRepository.ts -------------------------------------------------------------------------------- /src/shared/domain/value-object/BooleanValueObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/shared/domain/value-object/BooleanValueObject.ts -------------------------------------------------------------------------------- /src/shared/domain/value-object/DateValueObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/shared/domain/value-object/DateValueObject.ts -------------------------------------------------------------------------------- /src/shared/domain/value-object/EnumValueObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/shared/domain/value-object/EnumValueObject.ts -------------------------------------------------------------------------------- /src/shared/domain/value-object/IntValueObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/shared/domain/value-object/IntValueObject.ts -------------------------------------------------------------------------------- /src/shared/domain/value-object/InvalidArgumentError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/shared/domain/value-object/InvalidArgumentError.ts -------------------------------------------------------------------------------- /src/shared/domain/value-object/StringValueObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/shared/domain/value-object/StringValueObject.ts -------------------------------------------------------------------------------- /src/shared/domain/value-object/Uuid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/shared/domain/value-object/Uuid.ts -------------------------------------------------------------------------------- /src/shared/domain/value-object/ValueObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/shared/domain/value-object/ValueObject.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/persistence/aws/S3Repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/shared/infrastructure/persistence/aws/S3Repository.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/persistence/postgres/PostgresClientFactory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/shared/infrastructure/persistence/postgres/PostgresClientFactory.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/persistence/postgres/PostgresConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/shared/infrastructure/persistence/postgres/PostgresConfig.ts -------------------------------------------------------------------------------- /src/shared/infrastructure/persistence/postgres/PostgresRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/shared/infrastructure/persistence/postgres/PostgresRepository.ts -------------------------------------------------------------------------------- /src/test/application/usecases/PostCreator.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/test/application/usecases/PostCreator.test.ts -------------------------------------------------------------------------------- /src/test/domain/services/ExistUserByUserName.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/test/domain/services/ExistUserByUserName.test.ts -------------------------------------------------------------------------------- /src/test/domain/services/UserGetterById.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/test/domain/services/UserGetterById.test.ts -------------------------------------------------------------------------------- /src/test/mocks/PostRepositoryMock.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/test/mocks/PostRepositoryMock.ts -------------------------------------------------------------------------------- /src/test/mocks/UserRepositoryMock.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/test/mocks/UserRepositoryMock.ts -------------------------------------------------------------------------------- /src/test/mocks/object-mother/NumberMother.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/test/mocks/object-mother/NumberMother.ts -------------------------------------------------------------------------------- /src/test/mocks/object-mother/PostMother/PostMother.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/test/mocks/object-mother/PostMother/PostMother.ts -------------------------------------------------------------------------------- /src/test/mocks/object-mother/StringMother.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/test/mocks/object-mother/StringMother.ts -------------------------------------------------------------------------------- /src/test/mocks/object-mother/UserMother/UserAgeMother.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/test/mocks/object-mother/UserMother/UserAgeMother.ts -------------------------------------------------------------------------------- /src/test/mocks/object-mother/UserMother/UserIdMother.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/test/mocks/object-mother/UserMother/UserIdMother.ts -------------------------------------------------------------------------------- /src/test/mocks/object-mother/UserMother/UserMother.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/test/mocks/object-mother/UserMother/UserMother.ts -------------------------------------------------------------------------------- /src/test/mocks/object-mother/UserMother/UserNameMother.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/test/mocks/object-mother/UserMother/UserNameMother.ts -------------------------------------------------------------------------------- /src/test/mocks/object-mother/UserMother/UserUserNameMother.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/test/mocks/object-mother/UserMother/UserUserNameMother.ts -------------------------------------------------------------------------------- /src/test/mocks/object-mother/UuidMother.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/src/test/mocks/object-mother/UuidMother.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuttodev/tutto-data-faker/HEAD/tsconfig.json --------------------------------------------------------------------------------