--- title: "Api Lucca vCurrent" tags: Api Lucca --- ---- Vue d'ensemble ```plantuml @startuml skinparam class { BackgroundColor White BorderColor Black ArrowColor Black } skinparam handwritten true class LeavePeriod { <b>int Id LeavePeriodType Type int OwnerId LeavePeriodStatus Status date StartsOn DayPosition StartPosition date EndsOn DayPosition EndPosition Duration GetDuration() } FrenchSickLeavePeriod -left-|> LeavePeriod class FrenchSickLeavePeriod { bool Subrogation bool IsExtension bool IsEarlyReturn ... } LeavePeriod o-- "1..n" Leave : Leaves class Leave { <b>int Id int OwnerId int AccountId LeaveStatus Status date StartsOn DayPosition StartPosition date EndsOn DayPosition EndPosition Duration GetDuration() } Leave " " -right- "1" LeaveAccount class LeaveAccount { <b>int Id string Name } Leave o-- "1..n" LeaveDay : Days class LeaveDay { date Date DayRange DayRange datetime? startsAt datetime? endsAt DurationUnit Unit* } LeaveApprovalRequest "0..1" --- "1" LeavePeriod class LeaveApprovalRequest { <b>int Id int OwnerId int NextApproverId ApprovalState ApprovalState ... } LeaveCancellationRequest "0..n" --- "1" LeavePeriod class LeaveCancellationRequest { <b>int Id int OwnerId int NextApproverId ApprovalState ApprovalState ... } @enduml ``` Pour la pres. de Margaux: ```plantuml @startuml skinparam class { BackgroundColor White BorderColor Black ArrowColor Black } skinparam handwritten true class LeavePeriod { <b>int Id int EmployeeId date StartsOn DayPosition StartPosition date EndsOn DayPosition EndPosition LeavePeriodStatus Status Duration GetDuration() } LeavePeriod o-- "1..n" Leave : Leaves class Leave { <b>int Id int EmployeeId int AccountId date StartsOn DayPosition StartPosition date EndsOn DayPosition EndPosition LeaveStatus Status Duration GetDuration() } Leave -right- "1..n" Employee class Employee { } Leave " " -right- "1" LeaveAccount class LeaveAccount { <b>int Id string Name } Leave o-- "1..n" LeaveDay : Days class LeaveDay { date Date DayRange DayRange datetime? startsAt datetime? endsAt DurationUnit Unit* } @enduml ``` ---- Détail d'une leavePeriod ```plantuml @startuml skinparam class { BackgroundColor White BorderColor Black ArrowColor Black } skinparam handwritten true class LeavePeriod { <b>int Id LeavePeriodType Type int OwnerId LeavePeriodStatus Status date StartsOn DayPosition StartPosition date EndsOn DayPosition EndPosition Guid[] AttachmentIds Duration GetDuration() } LeavePeriod *-- "0..n" LeavePeriodWarning : Warnings class LeavePeriodWarning { string Code int? LeaveAccountId } LeavePeriod *-- "0..n" LeavePeriodComment : Comments class LeavePeriodComment { DateTime CreatedAt LeavePeriodCommentType Type, string Message } enum LeavePeriodCommentType { User Approving ... } @enduml ``` ---- Les enums ```plantuml @startuml skinparam class { BackgroundColor White BorderColor Black ArrowColor Black } skinparam handwritten true enum DayPosition { FirstHalfOfDay SecondHalfOfDay } enum LeavePeriodStatus { Pending Confirmed Denied PendingCancellation Cancelled } enum LeaveStatus { Pending Confirmed } enum LeavePeriodType { Standard FrenchSickLeave } enum DayRange { Morning Afternoon FullDay } enum DurationUnit { Days Hours } enum ApprovalState { Pending Approved Denied } @enduml ``` ---- Les FSL ```plantuml @startuml skinparam class { BackgroundColor White BorderColor Black ArrowColor Black } skinparam handwritten true class LeavePeriod { <b>int Id LeavePeriodType Type int OwnerId LeavePeriodStatus Status date StartsOn DayPosition StartPosition date EndsOn DayPosition EndPosition Duration GetDuration() } FrenchSickLeavePeriod -left-|> LeavePeriod FrenchSickLeavePeriod "0..1" --- "1" FrenchSickLeavePeriod : OriginalSickLeavePeriod class FrenchSickLeavePeriod { FrenchSickLeaveNature? PartTimeNature bool HasSubrogation DateTime? SubrogationStartsOn DateTime? SubrogationEndsOn bool IsExtension bool IsEarlyReturn DateTime LastWorkingDay int NumberOfWaitingPeriodDays int NumberOfCompensatedDays PartTimeType PartTimeReturnType string Comments DateTime? AccidentDate string AccidentPlace DateTime? FirstObservationDate ChildArrivalType? ChildArrivalType bool IsSingleChild ChildAdoptionDistribution? ChildAdoptionDistribution DateTime? ChildArrivalScheduledDate DateTime? ChildArrivalEffectiveDate PaternityLeavePartType? PaternityLeavePartType decimal? CompensationRate decimal? PartTimeActivityRate bool? LongLastingAffection } @enduml ``` ---- Les enums de FSL ```plantuml @startuml skinparam class { BackgroundColor White BorderColor Black ArrowColor Black } skinparam handwritten true enum FrenchSickLeaveNature { Autre AccidentTravail AccidentTrajet Maladie MaladieProfessionnelle Maternite Paternite TempsPartielTherapeutique } enum PartTimeType { None Therapeutic PersonalReason } enum ChildArrivalType { Naissance Adoption } enum ChildAdoptionDistribution { MonoParental Duo } enum PaternityLeavePartType { PremierePartie PartieFractionnable } @enduml ``` ---- Les BR ```plantuml @startuml skinparam class { BackgroundColor White BorderColor Black ArrowColor Black } skinparam handwritten true class LeavePeriod { <b>int Id LeavePeriodStatus Status } LeavePeriod "1" --- "0..1" LeaveApprovalRequest : ApprovalRequest class LeaveApprovalRequest { <b>int Id } LeavePeriod "1" --- "0..n" LeaveCancellationRequest : CancellationRequests LeaveCancellationRequest ..|> IWorkflowApprovable class LeaveCancellationRequest { <b>int Id } LeaveApprovalRequest ..|> IWorkflowApprovable interface IWorkflowApprovable { WorkflowApprovalState ApprovalState int OwnerId int? NextApproverId int? NextTheoreticalApproverId int? CurrentStepNumber } IWorkflowApprovable "1" o-- "0..n" IWorkflowAction : WorkflowActions interface IWorkflowAction { int StepNumber string Comment WorkflowActionSource Source WorkflowActionType Type } IWorkflowApprovable "1" o-- "0..n" IApproval : Approvals IApproval ..|> IWorkflowAction interface IApproval { int ApproverId ApproverType ApproverType WorkflowApprovalMode Mode } IWorkflowApprovable "1" o-- "0..n" IDenial : Denials IDenial ..|> IWorkflowAction interface IDenial { int ApproverId ApproverType ApproverType WorkflowApprovalMode Mode } enum WorkflowApprovalMode { Manual Auto } enum ApproverType { Manager FiggoApprover Delegatee Transfered ... } enum WorkflowApprovalState { Pending Denied Approved } enum WorkflowActionSource { Desktop API Mobile Mail Migration } enum WorkflowActionType { Approval Denial Transfer Delegation SkippedApproval } @enduml ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up