From 51d640385eea62841eb7095f0e3267daeb7830b7 Mon Sep 17 00:00:00 2001 From: peterhnm Date: Fri, 15 Sep 2023 13:06:59 +0200 Subject: [PATCH] docs: add component diagram --- images/Architecture.puml | 54 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 images/Architecture.puml diff --git a/images/Architecture.puml b/images/Architecture.puml new file mode 100644 index 0000000..5136375 --- /dev/null +++ b/images/Architecture.puml @@ -0,0 +1,54 @@ +@startuml +'https://plantuml.com/component-diagram + +'https://plantuml.com/component-diagram + +skinparam component { + backgroundColor<> LightGreen + backgroundColor<> LightBlue + backgroundColor<> LightYellow +} + +component "MiranumWorkerAdapter" as InMiranumWorkerAdapter <> + +component { + portin LoadUserUseCase + portin LoadTimesUseCase + portin SyncTimesUseCase + + portout AggregatedTimeEntriesPort + portout LoadEmployeesDataPort + portout LoadUsersPort + portout LoadWorkspacesPort + portout SendWorkingTimesPort + + component LoadUsersService <> + component LoadTimesService <> + component SynctimesService <> +} + +component "ClockifyAdapter" as OutClockifyAdapter <> +component "HrWorksAdapter" as OutHrWorksAdapter <> + +InMiranumWorkerAdapter --> LoadUserUseCase +InMiranumWorkerAdapter --> LoadTimesUseCase +InMiranumWorkerAdapter --> SyncTimesUseCase + +LoadUserUseCase <.. LoadUsersService +LoadTimesUseCase <.. LoadTimesService +SyncTimesUseCase <.. SynctimesService + +LoadUsersService --> LoadWorkspacesPort +LoadUsersService --> LoadUsersPort +LoadUsersService --> LoadEmployeesDataPort +LoadTimesService --> AggregatedTimeEntriesPort +SynctimesService --> SendWorkingTimesPort + +LoadWorkspacesPort <.. OutClockifyAdapter +LoadUsersPort <.. OutClockifyAdapter +AggregatedTimeEntriesPort <.. OutClockifyAdapter + +LoadEmployeesDataPort <.. OutHrWorksAdapter +SendWorkingTimesPort <.. OutHrWorksAdapter + +@enduml