release_parcel_with_signature
Records a parcel as picked up by capturing the recipient's name and digital signature, updating the parcel state, and saving the signature for audit.
Instructions
Updates parcel state to Picked Up, records the pickup timestamp and recipient name, securely saves the digital signature PNG layout to Firebase Storage, and emits a PARCEL_RELEASED telemetry event.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parcelId | Yes | Firestore parcel document ID under businesses/{businessId}/parcels/{parcelId}. | |
| businessId | Yes | Tenant business identifier owning the parcel (1-128 alphanumeric/dash/underscore chars). | |
| pickedUpBy | Yes | Full name of the resident or authorized person who signed for and collected the parcel (1-120 characters). | |
| datePickedUp | No | Optional pickup date in YYYY-MM-DD format (defaults to current UTC date). | |
| releaseNotes | No | Optional audit note recorded in PARCEL_RELEASED telemetry (maximum 500 characters). | |
| signatureUrl | No | Trusted HTTPS Firebase Cloud Storage URL of the captured recipient signature PNG. | |
| timePickedUp | No | Optional pickup time string (defaults to current UTC time). | |
| signatureBase64 | No | Base64-encoded PNG signature image (up to 2MB decoded). |