Skip to content

Commit

Permalink
[Mission] Renvoi le statut de complétion des actions dans l'api publi…
Browse files Browse the repository at this point in the history
…que des missions (#1340)
  • Loading branch information
claire2212 authored Apr 29, 2024
2 parents eee8027 + 1edee6f commit 0403479
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package fr.gouv.cacem.monitorenv.infrastructure.api.adapters.publicapi.outputs

import fr.gouv.cacem.monitorenv.domain.entities.VehicleTypeEnum
import fr.gouv.cacem.monitorenv.domain.entities.mission.ActionCompletionEnum
import fr.gouv.cacem.monitorenv.domain.entities.mission.envAction.ActionTypeEnum
import fr.gouv.cacem.monitorenv.domain.entities.mission.envAction.envActionControl.ActionTargetTypeEnum
import fr.gouv.cacem.monitorenv.domain.entities.mission.envAction.envActionControl.EnvActionControlEntity
Expand All @@ -17,6 +18,7 @@ data class MissionEnvActionControlDataOutput(
val actionTargetType: ActionTargetTypeEnum? = null,
override val actionType: ActionTypeEnum = ActionTypeEnum.CONTROL,
val completedBy: String? = null,
val completion: ActionCompletionEnum? = null,
val controlPlans: List<MissionEnvActionControlPlanDataOutput>? = listOf(),
val department: String? = null,
val facade: String? = null,
Expand Down Expand Up @@ -46,6 +48,7 @@ data class MissionEnvActionControlDataOutput(
actionEndDateTimeUtc = envActionControlEntity.actionEndDateTimeUtc,
actionTargetType = envActionControlEntity.actionTargetType,
completedBy = envActionControlEntity.completedBy,
completion = envActionControlEntity.completion,
controlPlans =
envActionControlEntity.controlPlans?.map {
MissionEnvActionControlPlanDataOutput
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package fr.gouv.cacem.monitorenv.infrastructure.api.adapters.publicapi.outputs

import fr.gouv.cacem.monitorenv.domain.entities.mission.ActionCompletionEnum
import fr.gouv.cacem.monitorenv.domain.entities.mission.envAction.ActionTypeEnum
import fr.gouv.cacem.monitorenv.domain.entities.mission.envAction.EnvActionSurveillanceEntity
import org.locationtech.jts.geom.Geometry
Expand All @@ -12,6 +13,7 @@ data class MissionEnvActionSurveillanceDataOutput(
override val actionStartDateTimeUtc: ZonedDateTime? = null,
override val actionType: ActionTypeEnum = ActionTypeEnum.SURVEILLANCE,
val completedBy: String? = null,
val completion: ActionCompletionEnum? = null,
val controlPlans: List<MissionEnvActionControlPlanDataOutput>? = null,
val department: String? = null,
val facade: String? = null,
Expand All @@ -33,6 +35,7 @@ data class MissionEnvActionSurveillanceDataOutput(
actionEndDateTimeUtc = envActionSurveillanceEntity.actionEndDateTimeUtc,
actionStartDateTimeUtc = envActionSurveillanceEntity.actionStartDateTimeUtc,
completedBy = envActionSurveillanceEntity.completedBy,
completion = envActionSurveillanceEntity.completion,
controlPlans =
envActionSurveillanceEntity.controlPlans?.map {
MissionEnvActionControlPlanDataOutput
Expand Down

0 comments on commit 0403479

Please sign in to comment.