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