import { EventBusTypes } from "@medusajs/framework/types" export function buildExpectedEventMessageShape(options: { eventName: string action: string object: string eventGroupId?: string data: any options?: Record }): EventBusTypes.Message { return { name: options.eventName, metadata: { action: options.action, eventGroupId: options.eventGroupId, source: "fulfillment", object: options.object, }, data: options.data, options: options.options, } }