refactor(f4): remove legacy mobile act lifecycle aliases
This commit is contained in:
@@ -367,14 +367,6 @@ class MobileActsRepository(context: Context) {
|
|||||||
api.lock("Bearer ${session.accessToken}", actId)
|
api.lock("Bearer ${session.accessToken}", actId)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Transitional alias used only while the F4 screen migration is in this branch. */
|
|
||||||
suspend fun prepare(actId: String): MobileActClosure = lock(actId)
|
|
||||||
|
|
||||||
/** F4 does not allow reopening an Act once it has been locked. */
|
|
||||||
suspend fun reopen(@Suppress("UNUSED_PARAMETER") actId: String): MobileActClosure {
|
|
||||||
throw IllegalStateException("Un Acta finalizada es inmutable y no puede volver a borrador")
|
|
||||||
}
|
|
||||||
|
|
||||||
suspend fun signInspector(
|
suspend fun signInspector(
|
||||||
actId: String,
|
actId: String,
|
||||||
png: File,
|
png: File,
|
||||||
@@ -414,9 +406,6 @@ class MobileActsRepository(context: Context) {
|
|||||||
api.sealAct("Bearer ${session.accessToken}", actId, MobileSealActRequest())
|
api.sealAct("Bearer ${session.accessToken}", actId, MobileSealActRequest())
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Transitional alias used only while the F4 screen migration is in this branch. */
|
|
||||||
suspend fun closeAct(actId: String): MobileActClosure = seal(actId)
|
|
||||||
|
|
||||||
suspend fun closeVisit(visitId: String): VisitDetail = authorized { session ->
|
suspend fun closeVisit(visitId: String): VisitDetail = authorized { session ->
|
||||||
api.closeVisit("Bearer ${session.accessToken}", visitId, MobileCloseVisitRequest())
|
api.closeVisit("Bearer ${session.accessToken}", visitId, MobileCloseVisitRequest())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user