Jul 26 - Update scheduled inspection settings

This commit is contained in:
2026-07-26 14:56:39 -04:00
parent 1921f95faf
commit 5999871f77
6 changed files with 37 additions and 4 deletions
+11
View File
@@ -51,6 +51,16 @@ final class LocalInspection {
/// followUpRequired badge without relying on parentServerId being non-nil.
var parentLocalId: String?
// Scheduled inspection link
/// Server ID of the ScheduledInspection this inspection was started from,
/// set when the inspector taps Start on a scheduled row. Sent as
/// `scheduled_inspection_id` on submit so the server can fulfil the
/// schedule (deactivate a one-time / roll a recurring one forward) and
/// flag the inspection as "Scheduled" in the web list. Nil for ad-hoc work.
///
/// Declared with an inline default so existing stores migrate lightweight.
var scheduledInspectionServerId: Int? = nil
// GPS (captured at submit time via CoreLocation)
/// Device latitude at the moment the inspector tapped Submit. Nil if
/// location permission was denied or a fix could not be obtained in time.
@@ -89,6 +99,7 @@ final class LocalInspection {
self.followUpNote = nil
self.parentServerId = nil
self.parentLocalId = nil
self.scheduledInspectionServerId = nil
self.submitLatitude = nil
self.submitLongitude = nil
self.pendingPhotos = []