├── .github └── FUNDING.yml ├── .gitignore ├── LICENSE.md ├── README.md ├── code ├── Analytics │ └── Analytics │ │ ├── .dependency-cruiser.js │ │ ├── .eslintrc │ │ ├── .prettierrc │ │ ├── README.md │ │ ├── __tests__ │ │ ├── entities │ │ │ └── Record.test.ts │ │ ├── infrastructure │ │ │ └── setupDependencies.test.ts │ │ ├── repositories │ │ │ └── DynamoDbRepository.test.ts │ │ └── usecases │ │ │ └── AddRecord.test.ts │ │ ├── package.json │ │ ├── serverless.yml │ │ ├── src │ │ ├── application │ │ │ └── usecases │ │ │ │ └── AddRecordUseCase.ts │ │ ├── config │ │ │ └── metadata.ts │ │ ├── domain │ │ │ └── entities │ │ │ │ └── Record.ts │ │ ├── errors │ │ │ ├── FailureToAddError.ts │ │ │ ├── MissingDataFieldsError.ts │ │ │ ├── MissingDependenciesError.ts │ │ │ ├── MissingEnvVarsError.ts │ │ │ ├── RecordValidationError.ts │ │ │ └── UnsupportedVersionError.ts │ │ ├── infrastructure │ │ │ ├── adapters │ │ │ │ └── web │ │ │ │ │ └── AddRecord.ts │ │ │ ├── repositories │ │ │ │ ├── DynamoDbRepository.ts │ │ │ │ └── LocalRepository.ts │ │ │ └── utils │ │ │ │ ├── getDTO.ts │ │ │ │ ├── getVersion.ts │ │ │ │ └── setupDependencies.ts │ │ └── interfaces │ │ │ ├── AnalyticalRecord.ts │ │ │ ├── Dependencies.ts │ │ │ └── Repository.ts │ │ └── tsconfig.json ├── Reservation │ ├── Display │ │ ├── .dependency-cruiser.js │ │ ├── .eslintrc │ │ ├── .prettierrc │ │ ├── README.md │ │ ├── __tests__ │ │ │ ├── infrastructure │ │ │ │ ├── getCleanedItems.test.ts │ │ │ │ └── setupDependencies.test.ts │ │ │ ├── repositories │ │ │ │ └── DynamoDbRepository.test.ts │ │ │ └── usecases │ │ │ │ ├── GetSlotsUseCase.test.ts │ │ │ │ └── UpdateSlotUseCase.test.ts │ │ ├── package.json │ │ ├── serverless.yml │ │ ├── src │ │ │ ├── application │ │ │ │ └── usecases │ │ │ │ │ ├── GetSlotsUseCase.ts │ │ │ │ │ └── UpdateSlotUseCase.ts │ │ │ ├── config │ │ │ │ └── metadata.ts │ │ │ ├── errors │ │ │ │ ├── MissingDataFieldsError.ts │ │ │ │ ├── MissingDependenciesError.ts │ │ │ │ ├── MissingEnvVarsError.ts │ │ │ │ └── UnsupportedVersionError.ts │ │ │ ├── infrastructure │ │ │ │ ├── adapters │ │ │ │ │ └── web │ │ │ │ │ │ ├── GetSlots.ts │ │ │ │ │ │ └── UpdateSlot.ts │ │ │ │ ├── repositories │ │ │ │ │ ├── DynamoDbRepository.ts │ │ │ │ │ └── LocalRepository.ts │ │ │ │ └── utils │ │ │ │ │ ├── getCleanedItems.ts │ │ │ │ │ ├── getDTO.ts │ │ │ │ │ ├── getVersion.ts │ │ │ │ │ └── setupDependencies.ts │ │ │ └── interfaces │ │ │ │ ├── Dependencies.ts │ │ │ │ ├── DynamoDb.ts │ │ │ │ ├── Repository.ts │ │ │ │ └── Slot.ts │ │ ├── testdata │ │ │ ├── testTimesDb.json │ │ │ └── testTimesOutput.json │ │ └── tsconfig.json │ └── Reservation │ │ ├── .dependency-cruiser.js │ │ ├── .eslintrc │ │ ├── .prettierrc │ │ ├── README.md │ │ ├── __tests__ │ │ ├── integration │ │ │ ├── assertions.json │ │ │ └── index.ts │ │ └── unit │ │ │ ├── events │ │ │ └── Event.test.ts │ │ │ ├── infrastructure │ │ │ ├── EventBridgeEmitter.test.ts │ │ │ ├── LocalEmitter.test.ts │ │ │ ├── getCleanedItems.test.ts │ │ │ ├── setupDependencies.test.ts │ │ │ └── userMetadata.test.ts │ │ │ ├── mocks │ │ │ ├── handlers.ts │ │ │ └── index.ts │ │ │ ├── repositories │ │ │ └── DynamoDbRepository.test.ts │ │ │ ├── services │ │ │ ├── Reservation.test.ts │ │ │ ├── SlotLoaderService.test.ts │ │ │ ├── VerificationCodeService.test.ts │ │ │ └── sanitizeInputData.test.ts │ │ │ ├── usecases │ │ │ ├── CancelSlot.test.ts │ │ │ ├── CheckIn.test.ts │ │ │ ├── CheckOut.test.ts │ │ │ ├── CloseSlots.test.ts │ │ │ ├── CreateSlots.test.ts │ │ │ ├── OpenSlot.test.ts │ │ │ ├── ReserveSlot.test.ts │ │ │ └── UnattendSlots.test.ts │ │ │ └── valueObjects │ │ │ └── TimeSlot.test.ts │ │ ├── package.json │ │ ├── schema │ │ ├── Id.validator.json │ │ └── ReserveSlot.validator.json │ │ ├── serverless.yml │ │ ├── src │ │ ├── application │ │ │ ├── services │ │ │ │ ├── DomainEventPublisherService.ts │ │ │ │ ├── SlotLoaderService.ts │ │ │ │ ├── VerificationCodeService.ts │ │ │ │ └── sanitizeInputData.ts │ │ │ └── usecases │ │ │ │ ├── CancelSlotUseCase.ts │ │ │ │ ├── CheckInUseCase.ts │ │ │ │ ├── CheckOutUseCase.ts │ │ │ │ ├── CloseSlotsUseCase.ts │ │ │ │ ├── CreateSlotsUseCase.ts │ │ │ │ ├── OpenSlotUseCase.ts │ │ │ │ ├── ReserveSlotUseCase.ts │ │ │ │ └── UnattendSlotsUseCase.ts │ │ ├── config │ │ │ └── metadata.ts │ │ ├── domain │ │ │ ├── entities │ │ │ │ └── Slot.ts │ │ │ ├── events │ │ │ │ └── Event.ts │ │ │ ├── services │ │ │ │ └── ReservationService.ts │ │ │ └── valueObjects │ │ │ │ └── TimeSlot.ts │ │ ├── errors │ │ │ ├── AuthorizationHeaderError.ts │ │ │ ├── CancellationConditionsNotMetError.ts │ │ │ ├── CheckInConditionsNotMetError.ts │ │ │ ├── CheckOutConditionsNotMetError.ts │ │ │ ├── FailedGettingVerificationCodeError.ts │ │ │ ├── InvalidHourCountError.ts │ │ │ ├── InvalidVerificationCodeError.ts │ │ │ ├── MissingDependenciesError.ts │ │ │ ├── MissingEnvVarsError.ts │ │ │ ├── MissingInputDataFieldError.ts │ │ │ ├── MissingInputDataTimeError.ts │ │ │ ├── MissingMetadataFieldsError.ts │ │ │ ├── MissingRequestBodyError.ts │ │ │ ├── MissingSecurityApiEndpoint.ts │ │ │ ├── MissingSlotError.ts │ │ │ ├── MissingSlotId.ts │ │ │ ├── NoMatchInEventCatalogError.ts │ │ │ ├── ReservationConditionsNotMetError.ts │ │ │ └── UnsupportedVersionError.ts │ │ ├── infrastructure │ │ │ ├── adapters │ │ │ │ └── web │ │ │ │ │ ├── CancelSlot.ts │ │ │ │ │ ├── CheckIn.ts │ │ │ │ │ ├── CheckOut.ts │ │ │ │ │ ├── CloseSlots.ts │ │ │ │ │ ├── CreateSlots.ts │ │ │ │ │ ├── OpenSlot.ts │ │ │ │ │ ├── ReserveSlot.ts │ │ │ │ │ └── UnattendSlots.ts │ │ │ ├── authorizers │ │ │ │ └── Authorizer.ts │ │ │ ├── emitters │ │ │ │ ├── EventBridgeEmitter.ts │ │ │ │ └── LocalEmitter.ts │ │ │ ├── repositories │ │ │ │ ├── DynamoDbRepository.ts │ │ │ │ └── LocalRepository.ts │ │ │ └── utils │ │ │ │ ├── getCleanedItems.ts │ │ │ │ ├── getSlotId.ts │ │ │ │ ├── getVersion.ts │ │ │ │ ├── setupDependencies.ts │ │ │ │ └── userMetadata.ts │ │ └── interfaces │ │ │ ├── Data.ts │ │ │ ├── Dependencies.ts │ │ │ ├── DomainEventPublisherService.ts │ │ │ ├── DynamoDb.ts │ │ │ ├── Event.ts │ │ │ ├── EventEmitter.ts │ │ │ ├── Metadata.ts │ │ │ ├── Repository.ts │ │ │ ├── ReserveOutput.ts │ │ │ ├── Slot.ts │ │ │ ├── TimeSlot.ts │ │ │ └── VerificationCodeService.ts │ │ ├── testUtils.ts │ │ ├── testdata │ │ ├── TestDatabase.ts │ │ ├── dynamodb │ │ │ └── testData.json │ │ ├── eventBridge.json │ │ ├── events │ │ │ ├── CancelledEvent.json │ │ │ ├── CheckedInEvent.json │ │ │ ├── CheckedOutEvent.json │ │ │ ├── ClosedEvent.json │ │ │ ├── CreatedEvent.json │ │ │ ├── OpenedEvent.json │ │ │ ├── ReservedEvent.json │ │ │ ├── UnattendedEvent.json │ │ │ └── UnattendedEventAnalytics.json │ │ ├── metadataConfig.json │ │ └── testDataOutput.json │ │ └── tsconfig.json └── Security │ └── VerificationCode │ ├── .dependency-cruiser.js │ ├── .eslintrc │ ├── .prettierrc │ ├── README.md │ ├── __tests__ │ ├── infrastructure │ │ └── setupDependencies.test.ts │ ├── repositories │ │ └── DynamoDbRepository.test.ts │ └── usecases │ │ ├── GenerateCode.test.ts │ │ ├── RemoveCode.test.ts │ │ └── VerifyCode.test.ts │ ├── package.json │ ├── schema │ └── asyncapi.json │ ├── serverless.yml │ ├── src │ ├── application │ │ └── usecases │ │ │ ├── GenerateCodeUseCase.ts │ │ │ ├── RemoveCodeUseCase.ts │ │ │ └── VerifyCodeUseCase.ts │ ├── config │ │ └── metadata.ts │ ├── domain │ │ ├── services │ │ │ └── RoomVerificationService.ts │ │ └── valueObjects │ │ │ └── VerificationCode.ts │ ├── errors │ │ ├── FailedToConstructCleanedItemError.ts │ │ ├── MissingEnvVarsError.ts │ │ ├── MissingRequiredFieldsError.ts │ │ └── UnsupportedVersionError.ts │ ├── infrastructure │ │ ├── adapters │ │ │ └── web │ │ │ │ ├── GenerateCode.ts │ │ │ │ ├── RemoveCode.ts │ │ │ │ └── VerifyCode.ts │ │ ├── repositories │ │ │ ├── DynamoDbRepository.ts │ │ │ └── LocalRepository.ts │ │ └── utils │ │ │ ├── getDTO.ts │ │ │ ├── getVersion.ts │ │ │ └── setupDependencies.ts │ └── interfaces │ │ ├── Dependencies.ts │ │ ├── GenerateCodeInput.ts │ │ ├── GeneratedVerificationCode.ts │ │ ├── InputDto.ts │ │ ├── RemoveCodeInput.ts │ │ ├── Repository.ts │ │ ├── Slot.ts │ │ ├── SlotId.ts │ │ └── VerifyCodeInput.ts │ └── tsconfig.json ├── data-modeling └── final │ ├── commands │ ├── RoomCode │ │ ├── GenerateCode.json │ │ ├── RemoveCode.json │ │ └── VerifyCode.json │ ├── RoomDisplay │ │ └── UpdateSlot.json │ └── RoomReservation │ │ ├── CancelSlot.json │ │ ├── CheckIn.json │ │ ├── CheckOut.json │ │ └── ReserveSlot.json │ ├── domain-events │ ├── AnalyticsExample.json │ ├── Cancelled.json │ ├── CheckedIn.json │ ├── CheckedOut.json │ ├── Closed.json │ ├── Created.json │ ├── Opened.json │ ├── Reserved.json │ └── Unattended.json │ ├── integration-events │ └── SomethingHere.json │ ├── queries │ └── GetSlots.txt │ ├── rules │ └── UpdateBookingDisplay.yml │ └── writes │ ├── AddRecord.json │ └── UpdateBookingDisplay.json ├── deploy.sh ├── diagrams ├── .$Get-A-Room Context Map 2.drawio.bkp ├── .$Get-A-Room Context Map.drawio.bkp ├── Get-A-Room Context Map 1.drawio ├── Get-A-Room Context Map 2.drawio ├── Get-A-Room Context Map.drawio ├── Get-A-Room Eventstorming.drawio ├── Get-A-Room Flows.drawio ├── Get-A-Room Solution.drawio └── Get-A-Room Ubiquitous Language.drawio ├── eslintrc ├── package.json ├── prettierrc └── readme └── solution-diagram.png /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: mikaelvesavuori -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/README.md -------------------------------------------------------------------------------- /code/Analytics/Analytics/.dependency-cruiser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/.dependency-cruiser.js -------------------------------------------------------------------------------- /code/Analytics/Analytics/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/.eslintrc -------------------------------------------------------------------------------- /code/Analytics/Analytics/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/.prettierrc -------------------------------------------------------------------------------- /code/Analytics/Analytics/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/README.md -------------------------------------------------------------------------------- /code/Analytics/Analytics/__tests__/entities/Record.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/__tests__/entities/Record.test.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/__tests__/infrastructure/setupDependencies.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/__tests__/infrastructure/setupDependencies.test.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/__tests__/repositories/DynamoDbRepository.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/__tests__/repositories/DynamoDbRepository.test.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/__tests__/usecases/AddRecord.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/__tests__/usecases/AddRecord.test.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/package.json -------------------------------------------------------------------------------- /code/Analytics/Analytics/serverless.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/serverless.yml -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/application/usecases/AddRecordUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/application/usecases/AddRecordUseCase.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/config/metadata.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/config/metadata.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/domain/entities/Record.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/domain/entities/Record.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/errors/FailureToAddError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/errors/FailureToAddError.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/errors/MissingDataFieldsError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/errors/MissingDataFieldsError.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/errors/MissingDependenciesError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/errors/MissingDependenciesError.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/errors/MissingEnvVarsError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/errors/MissingEnvVarsError.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/errors/RecordValidationError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/errors/RecordValidationError.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/errors/UnsupportedVersionError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/errors/UnsupportedVersionError.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/infrastructure/adapters/web/AddRecord.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/infrastructure/adapters/web/AddRecord.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/infrastructure/repositories/DynamoDbRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/infrastructure/repositories/DynamoDbRepository.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/infrastructure/repositories/LocalRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/infrastructure/repositories/LocalRepository.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/infrastructure/utils/getDTO.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/infrastructure/utils/getDTO.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/infrastructure/utils/getVersion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/infrastructure/utils/getVersion.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/infrastructure/utils/setupDependencies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/infrastructure/utils/setupDependencies.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/interfaces/AnalyticalRecord.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/interfaces/AnalyticalRecord.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/interfaces/Dependencies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/interfaces/Dependencies.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/src/interfaces/Repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/src/interfaces/Repository.ts -------------------------------------------------------------------------------- /code/Analytics/Analytics/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Analytics/Analytics/tsconfig.json -------------------------------------------------------------------------------- /code/Reservation/Display/.dependency-cruiser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/.dependency-cruiser.js -------------------------------------------------------------------------------- /code/Reservation/Display/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/.eslintrc -------------------------------------------------------------------------------- /code/Reservation/Display/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/.prettierrc -------------------------------------------------------------------------------- /code/Reservation/Display/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/README.md -------------------------------------------------------------------------------- /code/Reservation/Display/__tests__/infrastructure/getCleanedItems.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/__tests__/infrastructure/getCleanedItems.test.ts -------------------------------------------------------------------------------- /code/Reservation/Display/__tests__/infrastructure/setupDependencies.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/__tests__/infrastructure/setupDependencies.test.ts -------------------------------------------------------------------------------- /code/Reservation/Display/__tests__/repositories/DynamoDbRepository.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/__tests__/repositories/DynamoDbRepository.test.ts -------------------------------------------------------------------------------- /code/Reservation/Display/__tests__/usecases/GetSlotsUseCase.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/__tests__/usecases/GetSlotsUseCase.test.ts -------------------------------------------------------------------------------- /code/Reservation/Display/__tests__/usecases/UpdateSlotUseCase.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/__tests__/usecases/UpdateSlotUseCase.test.ts -------------------------------------------------------------------------------- /code/Reservation/Display/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/package.json -------------------------------------------------------------------------------- /code/Reservation/Display/serverless.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/serverless.yml -------------------------------------------------------------------------------- /code/Reservation/Display/src/application/usecases/GetSlotsUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/application/usecases/GetSlotsUseCase.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/application/usecases/UpdateSlotUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/application/usecases/UpdateSlotUseCase.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/config/metadata.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/config/metadata.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/errors/MissingDataFieldsError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/errors/MissingDataFieldsError.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/errors/MissingDependenciesError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/errors/MissingDependenciesError.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/errors/MissingEnvVarsError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/errors/MissingEnvVarsError.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/errors/UnsupportedVersionError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/errors/UnsupportedVersionError.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/infrastructure/adapters/web/GetSlots.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/infrastructure/adapters/web/GetSlots.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/infrastructure/adapters/web/UpdateSlot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/infrastructure/adapters/web/UpdateSlot.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/infrastructure/repositories/DynamoDbRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/infrastructure/repositories/DynamoDbRepository.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/infrastructure/repositories/LocalRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/infrastructure/repositories/LocalRepository.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/infrastructure/utils/getCleanedItems.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/infrastructure/utils/getCleanedItems.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/infrastructure/utils/getDTO.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/infrastructure/utils/getDTO.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/infrastructure/utils/getVersion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/infrastructure/utils/getVersion.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/infrastructure/utils/setupDependencies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/infrastructure/utils/setupDependencies.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/interfaces/Dependencies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/interfaces/Dependencies.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/interfaces/DynamoDb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/interfaces/DynamoDb.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/interfaces/Repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/interfaces/Repository.ts -------------------------------------------------------------------------------- /code/Reservation/Display/src/interfaces/Slot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/src/interfaces/Slot.ts -------------------------------------------------------------------------------- /code/Reservation/Display/testdata/testTimesDb.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/testdata/testTimesDb.json -------------------------------------------------------------------------------- /code/Reservation/Display/testdata/testTimesOutput.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/testdata/testTimesOutput.json -------------------------------------------------------------------------------- /code/Reservation/Display/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Display/tsconfig.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/.dependency-cruiser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/.dependency-cruiser.js -------------------------------------------------------------------------------- /code/Reservation/Reservation/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/.eslintrc -------------------------------------------------------------------------------- /code/Reservation/Reservation/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/.prettierrc -------------------------------------------------------------------------------- /code/Reservation/Reservation/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/README.md -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/integration/assertions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/integration/assertions.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/integration/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/integration/index.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/events/Event.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/events/Event.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/infrastructure/EventBridgeEmitter.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/infrastructure/EventBridgeEmitter.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/infrastructure/LocalEmitter.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/infrastructure/LocalEmitter.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/infrastructure/getCleanedItems.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/infrastructure/getCleanedItems.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/infrastructure/setupDependencies.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/infrastructure/setupDependencies.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/infrastructure/userMetadata.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/infrastructure/userMetadata.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/mocks/handlers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/mocks/handlers.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/mocks/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/mocks/index.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/repositories/DynamoDbRepository.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/repositories/DynamoDbRepository.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/services/Reservation.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/services/Reservation.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/services/SlotLoaderService.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/services/SlotLoaderService.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/services/VerificationCodeService.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/services/VerificationCodeService.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/services/sanitizeInputData.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/services/sanitizeInputData.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/usecases/CancelSlot.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/usecases/CancelSlot.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/usecases/CheckIn.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/usecases/CheckIn.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/usecases/CheckOut.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/usecases/CheckOut.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/usecases/CloseSlots.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/usecases/CloseSlots.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/usecases/CreateSlots.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/usecases/CreateSlots.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/usecases/OpenSlot.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/usecases/OpenSlot.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/usecases/ReserveSlot.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/usecases/ReserveSlot.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/usecases/UnattendSlots.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/usecases/UnattendSlots.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/__tests__/unit/valueObjects/TimeSlot.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/__tests__/unit/valueObjects/TimeSlot.test.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/package.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/schema/Id.validator.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/schema/Id.validator.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/schema/ReserveSlot.validator.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/schema/ReserveSlot.validator.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/serverless.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/serverless.yml -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/application/services/DomainEventPublisherService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/application/services/DomainEventPublisherService.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/application/services/SlotLoaderService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/application/services/SlotLoaderService.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/application/services/VerificationCodeService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/application/services/VerificationCodeService.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/application/services/sanitizeInputData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/application/services/sanitizeInputData.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/application/usecases/CancelSlotUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/application/usecases/CancelSlotUseCase.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/application/usecases/CheckInUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/application/usecases/CheckInUseCase.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/application/usecases/CheckOutUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/application/usecases/CheckOutUseCase.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/application/usecases/CloseSlotsUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/application/usecases/CloseSlotsUseCase.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/application/usecases/CreateSlotsUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/application/usecases/CreateSlotsUseCase.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/application/usecases/OpenSlotUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/application/usecases/OpenSlotUseCase.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/application/usecases/ReserveSlotUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/application/usecases/ReserveSlotUseCase.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/application/usecases/UnattendSlotsUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/application/usecases/UnattendSlotsUseCase.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/config/metadata.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/config/metadata.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/domain/entities/Slot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/domain/entities/Slot.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/domain/events/Event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/domain/events/Event.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/domain/services/ReservationService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/domain/services/ReservationService.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/domain/valueObjects/TimeSlot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/domain/valueObjects/TimeSlot.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/AuthorizationHeaderError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/AuthorizationHeaderError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/CancellationConditionsNotMetError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/CancellationConditionsNotMetError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/CheckInConditionsNotMetError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/CheckInConditionsNotMetError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/CheckOutConditionsNotMetError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/CheckOutConditionsNotMetError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/FailedGettingVerificationCodeError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/FailedGettingVerificationCodeError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/InvalidHourCountError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/InvalidHourCountError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/InvalidVerificationCodeError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/InvalidVerificationCodeError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/MissingDependenciesError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/MissingDependenciesError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/MissingEnvVarsError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/MissingEnvVarsError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/MissingInputDataFieldError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/MissingInputDataFieldError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/MissingInputDataTimeError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/MissingInputDataTimeError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/MissingMetadataFieldsError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/MissingMetadataFieldsError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/MissingRequestBodyError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/MissingRequestBodyError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/MissingSecurityApiEndpoint.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/MissingSecurityApiEndpoint.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/MissingSlotError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/MissingSlotError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/MissingSlotId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/MissingSlotId.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/NoMatchInEventCatalogError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/NoMatchInEventCatalogError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/ReservationConditionsNotMetError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/ReservationConditionsNotMetError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/errors/UnsupportedVersionError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/errors/UnsupportedVersionError.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/adapters/web/CancelSlot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/adapters/web/CancelSlot.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/adapters/web/CheckIn.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/adapters/web/CheckIn.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/adapters/web/CheckOut.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/adapters/web/CheckOut.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/adapters/web/CloseSlots.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/adapters/web/CloseSlots.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/adapters/web/CreateSlots.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/adapters/web/CreateSlots.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/adapters/web/OpenSlot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/adapters/web/OpenSlot.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/adapters/web/ReserveSlot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/adapters/web/ReserveSlot.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/adapters/web/UnattendSlots.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/adapters/web/UnattendSlots.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/authorizers/Authorizer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/authorizers/Authorizer.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/emitters/EventBridgeEmitter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/emitters/EventBridgeEmitter.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/emitters/LocalEmitter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/emitters/LocalEmitter.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/repositories/DynamoDbRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/repositories/DynamoDbRepository.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/repositories/LocalRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/repositories/LocalRepository.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/utils/getCleanedItems.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/utils/getCleanedItems.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/utils/getSlotId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/utils/getSlotId.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/utils/getVersion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/utils/getVersion.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/utils/setupDependencies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/utils/setupDependencies.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/infrastructure/utils/userMetadata.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/infrastructure/utils/userMetadata.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/interfaces/Data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/interfaces/Data.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/interfaces/Dependencies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/interfaces/Dependencies.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/interfaces/DomainEventPublisherService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/interfaces/DomainEventPublisherService.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/interfaces/DynamoDb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/interfaces/DynamoDb.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/interfaces/Event.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/interfaces/Event.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/interfaces/EventEmitter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/interfaces/EventEmitter.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/interfaces/Metadata.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/interfaces/Metadata.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/interfaces/Repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/interfaces/Repository.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/interfaces/ReserveOutput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/interfaces/ReserveOutput.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/interfaces/Slot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/interfaces/Slot.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/interfaces/TimeSlot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/interfaces/TimeSlot.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/src/interfaces/VerificationCodeService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/src/interfaces/VerificationCodeService.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/testUtils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/testUtils.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/testdata/TestDatabase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/testdata/TestDatabase.ts -------------------------------------------------------------------------------- /code/Reservation/Reservation/testdata/dynamodb/testData.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/testdata/dynamodb/testData.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/testdata/eventBridge.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/testdata/eventBridge.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/testdata/events/CancelledEvent.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/testdata/events/CancelledEvent.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/testdata/events/CheckedInEvent.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/testdata/events/CheckedInEvent.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/testdata/events/CheckedOutEvent.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/testdata/events/CheckedOutEvent.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/testdata/events/ClosedEvent.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/testdata/events/ClosedEvent.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/testdata/events/CreatedEvent.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/testdata/events/CreatedEvent.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/testdata/events/OpenedEvent.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/testdata/events/OpenedEvent.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/testdata/events/ReservedEvent.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/testdata/events/ReservedEvent.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/testdata/events/UnattendedEvent.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/testdata/events/UnattendedEvent.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/testdata/events/UnattendedEventAnalytics.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/testdata/events/UnattendedEventAnalytics.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/testdata/metadataConfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/testdata/metadataConfig.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/testdata/testDataOutput.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/testdata/testDataOutput.json -------------------------------------------------------------------------------- /code/Reservation/Reservation/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Reservation/Reservation/tsconfig.json -------------------------------------------------------------------------------- /code/Security/VerificationCode/.dependency-cruiser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/.dependency-cruiser.js -------------------------------------------------------------------------------- /code/Security/VerificationCode/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/.eslintrc -------------------------------------------------------------------------------- /code/Security/VerificationCode/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/.prettierrc -------------------------------------------------------------------------------- /code/Security/VerificationCode/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/README.md -------------------------------------------------------------------------------- /code/Security/VerificationCode/__tests__/infrastructure/setupDependencies.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/__tests__/infrastructure/setupDependencies.test.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/__tests__/repositories/DynamoDbRepository.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/__tests__/repositories/DynamoDbRepository.test.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/__tests__/usecases/GenerateCode.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/__tests__/usecases/GenerateCode.test.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/__tests__/usecases/RemoveCode.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/__tests__/usecases/RemoveCode.test.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/__tests__/usecases/VerifyCode.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/__tests__/usecases/VerifyCode.test.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/package.json -------------------------------------------------------------------------------- /code/Security/VerificationCode/schema/asyncapi.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/schema/asyncapi.json -------------------------------------------------------------------------------- /code/Security/VerificationCode/serverless.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/serverless.yml -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/application/usecases/GenerateCodeUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/application/usecases/GenerateCodeUseCase.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/application/usecases/RemoveCodeUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/application/usecases/RemoveCodeUseCase.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/application/usecases/VerifyCodeUseCase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/application/usecases/VerifyCodeUseCase.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/config/metadata.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/config/metadata.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/domain/services/RoomVerificationService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/domain/services/RoomVerificationService.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/domain/valueObjects/VerificationCode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/domain/valueObjects/VerificationCode.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/errors/FailedToConstructCleanedItemError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/errors/FailedToConstructCleanedItemError.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/errors/MissingEnvVarsError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/errors/MissingEnvVarsError.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/errors/MissingRequiredFieldsError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/errors/MissingRequiredFieldsError.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/errors/UnsupportedVersionError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/errors/UnsupportedVersionError.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/infrastructure/adapters/web/GenerateCode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/infrastructure/adapters/web/GenerateCode.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/infrastructure/adapters/web/RemoveCode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/infrastructure/adapters/web/RemoveCode.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/infrastructure/adapters/web/VerifyCode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/infrastructure/adapters/web/VerifyCode.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/infrastructure/repositories/DynamoDbRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/infrastructure/repositories/DynamoDbRepository.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/infrastructure/repositories/LocalRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/infrastructure/repositories/LocalRepository.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/infrastructure/utils/getDTO.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/infrastructure/utils/getDTO.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/infrastructure/utils/getVersion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/infrastructure/utils/getVersion.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/infrastructure/utils/setupDependencies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/infrastructure/utils/setupDependencies.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/interfaces/Dependencies.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/interfaces/Dependencies.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/interfaces/GenerateCodeInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/interfaces/GenerateCodeInput.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/interfaces/GeneratedVerificationCode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/interfaces/GeneratedVerificationCode.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/interfaces/InputDto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/interfaces/InputDto.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/interfaces/RemoveCodeInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/interfaces/RemoveCodeInput.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/interfaces/Repository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/interfaces/Repository.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/interfaces/Slot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/interfaces/Slot.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/interfaces/SlotId.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * @description The ID of a time slot. 3 | */ 4 | export type SlotId = string; -------------------------------------------------------------------------------- /code/Security/VerificationCode/src/interfaces/VerifyCodeInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/src/interfaces/VerifyCodeInput.ts -------------------------------------------------------------------------------- /code/Security/VerificationCode/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/code/Security/VerificationCode/tsconfig.json -------------------------------------------------------------------------------- /data-modeling/final/commands/RoomCode/GenerateCode.json: -------------------------------------------------------------------------------- 1 | { 2 | "slotId": "53ebfc40-a0c0-4240-9949-6f66d699202b" 3 | } 4 | -------------------------------------------------------------------------------- /data-modeling/final/commands/RoomCode/RemoveCode.json: -------------------------------------------------------------------------------- 1 | { 2 | "slotId": "53ebfc40-a0c0-4240-9949-6f66d699202b" 3 | } 4 | -------------------------------------------------------------------------------- /data-modeling/final/commands/RoomCode/VerifyCode.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/commands/RoomCode/VerifyCode.json -------------------------------------------------------------------------------- /data-modeling/final/commands/RoomDisplay/UpdateSlot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/commands/RoomDisplay/UpdateSlot.json -------------------------------------------------------------------------------- /data-modeling/final/commands/RoomReservation/CancelSlot.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "7c6e0b29-1e13-4233-82d1-efe466171027" 3 | } 4 | -------------------------------------------------------------------------------- /data-modeling/final/commands/RoomReservation/CheckIn.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "7c6e0b29-1e13-4233-82d1-efe466171027" 3 | } 4 | -------------------------------------------------------------------------------- /data-modeling/final/commands/RoomReservation/CheckOut.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "7c6e0b29-1e13-4233-82d1-efe466171027" 3 | } 4 | -------------------------------------------------------------------------------- /data-modeling/final/commands/RoomReservation/ReserveSlot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/commands/RoomReservation/ReserveSlot.json -------------------------------------------------------------------------------- /data-modeling/final/domain-events/AnalyticsExample.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/domain-events/AnalyticsExample.json -------------------------------------------------------------------------------- /data-modeling/final/domain-events/Cancelled.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/domain-events/Cancelled.json -------------------------------------------------------------------------------- /data-modeling/final/domain-events/CheckedIn.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/domain-events/CheckedIn.json -------------------------------------------------------------------------------- /data-modeling/final/domain-events/CheckedOut.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/domain-events/CheckedOut.json -------------------------------------------------------------------------------- /data-modeling/final/domain-events/Closed.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/domain-events/Closed.json -------------------------------------------------------------------------------- /data-modeling/final/domain-events/Created.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/domain-events/Created.json -------------------------------------------------------------------------------- /data-modeling/final/domain-events/Opened.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/domain-events/Opened.json -------------------------------------------------------------------------------- /data-modeling/final/domain-events/Reserved.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/domain-events/Reserved.json -------------------------------------------------------------------------------- /data-modeling/final/domain-events/Unattended.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/domain-events/Unattended.json -------------------------------------------------------------------------------- /data-modeling/final/integration-events/SomethingHere.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/integration-events/SomethingHere.json -------------------------------------------------------------------------------- /data-modeling/final/queries/GetSlots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/queries/GetSlots.txt -------------------------------------------------------------------------------- /data-modeling/final/rules/UpdateBookingDisplay.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/rules/UpdateBookingDisplay.yml -------------------------------------------------------------------------------- /data-modeling/final/writes/AddRecord.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/writes/AddRecord.json -------------------------------------------------------------------------------- /data-modeling/final/writes/UpdateBookingDisplay.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/data-modeling/final/writes/UpdateBookingDisplay.json -------------------------------------------------------------------------------- /deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/deploy.sh -------------------------------------------------------------------------------- /diagrams/.$Get-A-Room Context Map 2.drawio.bkp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/diagrams/.$Get-A-Room Context Map 2.drawio.bkp -------------------------------------------------------------------------------- /diagrams/.$Get-A-Room Context Map.drawio.bkp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/diagrams/.$Get-A-Room Context Map.drawio.bkp -------------------------------------------------------------------------------- /diagrams/Get-A-Room Context Map 1.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/diagrams/Get-A-Room Context Map 1.drawio -------------------------------------------------------------------------------- /diagrams/Get-A-Room Context Map 2.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/diagrams/Get-A-Room Context Map 2.drawio -------------------------------------------------------------------------------- /diagrams/Get-A-Room Context Map.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/diagrams/Get-A-Room Context Map.drawio -------------------------------------------------------------------------------- /diagrams/Get-A-Room Eventstorming.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/diagrams/Get-A-Room Eventstorming.drawio -------------------------------------------------------------------------------- /diagrams/Get-A-Room Flows.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/diagrams/Get-A-Room Flows.drawio -------------------------------------------------------------------------------- /diagrams/Get-A-Room Solution.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/diagrams/Get-A-Room Solution.drawio -------------------------------------------------------------------------------- /diagrams/Get-A-Room Ubiquitous Language.drawio: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/diagrams/Get-A-Room Ubiquitous Language.drawio -------------------------------------------------------------------------------- /eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/eslintrc -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/package.json -------------------------------------------------------------------------------- /prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/prettierrc -------------------------------------------------------------------------------- /readme/solution-diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mikaelvesavuori/get-a-room-ddd-example/HEAD/readme/solution-diagram.png --------------------------------------------------------------------------------