import { OrderItem } from '@components/frontStore/customer/CustomerContext.js'; import React from 'react'; interface ShipmentItem { uuid: string; qty: number; productSku: string | null; productName: string | null; } interface Shipment { uuid: string; shipmentId: number; carrier: string | null; carrierName: string | null; trackingNumber: string | null; trackingUrl: string | null; status: { code: string; name: string; badge: string; phase: string; }; phase: string; shippedAt: { text: string; } | null; deliveredAt: { text: string; } | null; canceledAt: { text: string; } | null; createdAt: { text: string; } | null; items: ShipmentItem[]; } interface Order { orderId: number; uuid: string; orderNumber: string; createdAt: { text: string; }; grandTotal: { text: string; }; shipmentStatus: { name: string; code: string; badge: string; } | null; status: { name: string; code: string; badge: string; } | null; shippingMethodName: string | null; shippingMethodData: { snapshot?: { name?: string; cost?: number; }; } | null; subTotal: { text: string; }; subTotalInclTax: { text: string; }; shippingFeeInclTax: { text: string; }; shippingFeeExclTax: { text: string; }; totalTaxAmount: { text: string; }; discountAmount: { text: string; }; coupon: string | null; items: OrderItem[]; shipments: Shipment[]; } interface OrderViewProps { order: Order | null; } /** * Customer-facing order detail page. Shows what the customer paid for at the * top (the service-level quote), then a per-shipment block for each fulfillment * row with the actual carrier, tracking link, items, and dates. * * Design intent: the customer should never see the carrier name at checkout * (it's a fulfillment metadata field). This page is the FIRST surface where * a carrier name appears, because by definition the shipment has actually * been handed off. */ export default function OrderView({ order }: OrderViewProps): React.JSX.Element; export declare const layout: { areaId: string; sortOrder: number; }; export declare const query = "\n query Query {\n order(uuid: getContextValue(\"orderUuid\")) {\n orderId\n uuid\n orderNumber\n createdAt {\n text\n }\n grandTotal {\n text\n }\n shipmentStatus {\n name\n code\n badge\n }\n status {\n name\n code\n badge\n }\n shippingMethodName\n shippingMethodData {\n snapshot {\n name\n cost\n }\n }\n subTotal {\n text\n }\n subTotalInclTax {\n text\n }\n shippingFeeInclTax {\n text\n }\n shippingFeeExclTax {\n text\n }\n totalTaxAmount {\n text\n }\n discountAmount {\n text\n }\n coupon\n items {\n uuid\n productName\n thumbnail\n productSku\n qty\n productUrl\n productPrice {\n text\n }\n productPriceInclTax {\n text\n }\n variantOptions {\n attributeCode\n attributeName\n attributeId\n optionId\n optionText\n }\n lineTotalInclTax {\n text\n }\n lineTotal {\n text\n }\n }\n shipments {\n uuid\n shipmentId\n carrier\n carrierName\n trackingNumber\n trackingUrl\n status {\n code\n name\n badge\n phase\n }\n phase\n shippedAt {\n text\n }\n deliveredAt {\n text\n }\n canceledAt {\n text\n }\n createdAt {\n text\n }\n items {\n uuid\n qty\n productSku\n productName\n }\n }\n }\n }\n"; export {};