F4 Android: keep branch compiling while UI migrates to lock/seal
This commit is contained in:
@@ -331,7 +331,7 @@ class MobileActsRepository(context: Context) {
|
||||
visitId: String,
|
||||
assetId: String,
|
||||
visitCode: String,
|
||||
urgency: String,
|
||||
urgency: String = "NON_URGENT",
|
||||
): MobileActDetail = authorized { session ->
|
||||
api.createAct(
|
||||
"Bearer ${session.accessToken}",
|
||||
@@ -367,6 +367,14 @@ class MobileActsRepository(context: Context) {
|
||||
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(
|
||||
actId: String,
|
||||
png: File,
|
||||
@@ -406,6 +414,9 @@ class MobileActsRepository(context: Context) {
|
||||
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 ->
|
||||
api.closeVisit("Bearer ${session.accessToken}", visitId, MobileCloseVisitRequest())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user