import type { ActionFunctionArgs } from "@remix-run/node"; import { authenticate } from "../shopify.server"; // TODO (Phase 4): convert the cart's SlotHold into a confirmed Booking, // consume capacity/resources, write the slot back onto the order via // metafield, and release the hold. See IMPLEMENTATION_PLAN.md ยง5.2. export const action = async ({ request }: ActionFunctionArgs) => { const { shop, topic, payload } = await authenticate.webhook(request); console.log(`Received ${topic} webhook for ${shop}`, payload); return new Response(); };