Confirm a change
confirmProductChangeWorkflow marks the changes confirmed, applies their
pending actions to the product, and emits product-change.confirmed.
src/api/custom/confirm/route.ts
Confirmation only applies actions that aren’t already
applied, so re-running
it never writes the same edit twice.Decline a change
rejectProductChangeWorkflow moves a pending change to declined without
touching the product, and emits product-change.declined.
Cancel a change
When the change should be withdrawn rather than judged (for example the vendor retracting their own submission), usecancelProductChangeWorkflow: