Contextual information about the hook.
The item to be inserted instead of the original item specified by the caller. Returning a rejected promise will block the operation and will return a rejected promise to the caller as well as trigger the onFailure()
hook.
The original item to be inserted.