Skip to content

Commit

Permalink
docs: add component diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhnm committed Sep 15, 2023
1 parent 3f46802 commit 51d6403
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions images/Architecture.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
@startuml
'https://plantuml.com/component-diagram

'https://plantuml.com/component-diagram

skinparam component {
backgroundColor<<InAdapter>> LightGreen
backgroundColor<<Service>> LightBlue
backgroundColor<<OutAdapter>> LightYellow
}

component "MiranumWorkerAdapter" as InMiranumWorkerAdapter <<InAdapter>>

component {
portin LoadUserUseCase
portin LoadTimesUseCase
portin SyncTimesUseCase

portout AggregatedTimeEntriesPort
portout LoadEmployeesDataPort
portout LoadUsersPort
portout LoadWorkspacesPort
portout SendWorkingTimesPort

component LoadUsersService <<Service>>
component LoadTimesService <<Service>>
component SynctimesService <<Service>>
}

component "ClockifyAdapter" as OutClockifyAdapter <<OutAdapter>>
component "HrWorksAdapter" as OutHrWorksAdapter <<OutAdapter>>

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

0 comments on commit 51d6403

Please sign in to comment.