ProductChange records — the staging entity for vendor edits on shared master products. Validates that none of the referenced products already has a pending change before inserting. Emits product-change.created with one { id } entry per change. Actions are attached separately (see stageProductChangeWorkflow for the combined flow).
Usage
Input
Changes to create.
Arbitrary data forwarded to the
productChangeCreated hook.Result
The created change records with ids, statuses, and timestamps.
Hooks
Runs first with
{ input } — use it to reject invalid payloads before creation.Runs after creation with
{ changes, additional_data }.