ProductChange records: validates each change exists and is confirmable, marks them confirmed with confirmed_by, then runs the internal apply engine (applyProductChangeActionsWorkflow) to write the staged actions onto the master product. Triggered by POST /admin/product-changes/:id/confirm, and internally by autoConfirmProductChangeWorkflow. Emits product-change.confirmed with one { id } per change.
Usage
Input
Ids of the product changes to confirm. Each must exist and be in a confirmable (
pending) state.Actor id recorded as the confirmer on each change.
Operator-only note stored on each confirmed change.
Vendor-facing note stored on each confirmed change.
Arbitrary data forwarded to the
productChangeConfirmed hook.Result
Returns nothing; the changes are confirmed and their actions applied in place.
Hooks
Runs first with
{ input } — use it to block confirmation of specific changes.Runs after actions are applied with
{ ids, additional_data }.