Complete SOS emergency backend workflow#416
Open
LoopyB wants to merge 1 commit into
Open
Conversation
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rebuilds the remaining SOS/emergency functionality from PR #409 against current
main.This preserves the existing emergency API while adding the Guard App-compatible
/soscontract through shared service and route logic, rather than duplicating business rules.Changes
/api/v1/emergencyendpoints/api/v1/sosendpointsEndpoints
Existing emergency routes
POST /api/v1/emergency/sosGET /api/v1/emergency/sosPUT /api/v1/emergency/sos/:idGET /api/v1/emergency/sos/activeGET /api/v1/emergency/sos/:idPOST /api/v1/emergency/sos/:id/locationPOST /api/v1/emergency/sos/:id/notePOST /api/v1/emergency/sos/:id/cancelGuard App-compatible routes
POST /api/v1/sos/triggerGET /api/v1/sos/activeGET /api/v1/sos/:idPOST /api/v1/sos/:id/locationPOST /api/v1/sos/:id/notePOST /api/v1/sos/:id/cancelSecurity and workflow
/:idACTIVE -> ESCALATED | RESOLVED | CANCELLEDESCALATED -> RESOLVED | CANCELLEDValidation
git diff --checkpassed401during runtime smoke testing, confirming they are mounted and authenticatedImportant limitations
USE_MOCK_SOS = true; this PR does not enable live Guard App SOS behaviourshiftIdScope
This is a focused backend recovery and contract-alignment PR.
Supersedes PR #409.