fix(api): close v2 mobile contract gaps
This commit is contained in:
@@ -153,6 +153,7 @@ Example `GET /staff/clock-in/shifts/today` item:
|
||||
- `POST /staff/shifts/:shiftId/accept`
|
||||
- `POST /staff/shifts/:shiftId/decline`
|
||||
- `POST /staff/shifts/:shiftId/request-swap`
|
||||
- `POST /staff/shifts/:shiftId/submit-for-approval`
|
||||
- `PUT /staff/profile/personal-info`
|
||||
- `PUT /staff/profile/experience`
|
||||
- `PUT /staff/profile/locations`
|
||||
@@ -174,6 +175,7 @@ These are exposed as direct unified aliases even though they are backed by `core
|
||||
- `POST /invoke-llm`
|
||||
- `POST /rapid-orders/transcribe`
|
||||
- `POST /rapid-orders/parse`
|
||||
- `POST /rapid-orders/process`
|
||||
- `POST /verifications`
|
||||
- `GET /verifications/:verificationId`
|
||||
- `POST /verifications/:verificationId/review`
|
||||
@@ -183,7 +185,9 @@ These are exposed as direct unified aliases even though they are backed by `core
|
||||
|
||||
- `POST /staff/profile/photo`
|
||||
- `POST /staff/profile/documents/:documentId/upload`
|
||||
- `PUT /staff/profile/documents/:documentId/upload`
|
||||
- `POST /staff/profile/attire/:documentId/upload`
|
||||
- `PUT /staff/profile/attire/:documentId/upload`
|
||||
- `POST /staff/profile/certificates`
|
||||
- `DELETE /staff/profile/certificates/:certificateId`
|
||||
|
||||
@@ -191,7 +195,21 @@ These are exposed as direct unified aliases even though they are backed by `core
|
||||
|
||||
- `roleId` on `POST /staff/shifts/:shiftId/apply` is the concrete `shift_roles.id` for that shift, not the catalog role definition id.
|
||||
- `accountType` on `POST /staff/profile/bank-accounts` accepts either lowercase or uppercase and is normalized by the backend.
|
||||
- Document routes now return only document rows. They do not mix in attire items anymore.
|
||||
- Tax-form data should come from `GET /staff/profile/tax-forms`, not `GET /staff/profile/documents`.
|
||||
- File upload routes return a storage path plus a signed URL. Frontend uploads the file directly to storage using that URL.
|
||||
- The frontend upload contract for documents, attire, and certificates is:
|
||||
1. `POST /upload-file`
|
||||
2. `POST /create-signed-url`
|
||||
3. `POST /verifications`
|
||||
4. finalize with:
|
||||
- `PUT /staff/profile/documents/:documentId/upload`
|
||||
- `PUT /staff/profile/attire/:documentId/upload`
|
||||
- `POST /staff/profile/certificates`
|
||||
- Finalization requires `verificationId`. Frontend may still send `fileUri` or `photoUrl`, but the backend treats the verification-linked file as the source of truth.
|
||||
- `POST /rapid-orders/process` is the single-call route for "transcribe + parse".
|
||||
- `POST /client/orders/:orderId/edit` builds a replacement order from future shifts only.
|
||||
- `POST /client/orders/:orderId/cancel` cancels future shifts only on the mobile surface and leaves historical shifts intact.
|
||||
- Verification upload and review routes are live and were validated through document, attire, and certificate flows. Do not rely on long-lived verification history durability until the dedicated persistence slice is landed in `core-api-v2`.
|
||||
- Attendance policy is explicit. Reads now expose `clockInMode` and `allowClockInOverride`.
|
||||
- `clockInMode` values are:
|
||||
|
||||
Reference in New Issue
Block a user