import {type BackendShipmentEndpoint, type ShipmentIds} from '../../types'; import {type QueryHandler} from './types'; import {createHandlerWithParameters} from './createHandlerWithParameters'; export const createShipmentsMutationHandler = ( endpoint: E, allowBulk = false, ): QueryHandler => { return (context) => { return createHandlerWithParameters(context.parameters?.shipmentIds as ShipmentIds, endpoint, context, allowBulk); }; };