import { gql,TypedDocumentNode } from "@apollo/client"; import { OrderDetailsData } from "@/types/customer/type"; export const GET_ORDER_DETAILS: TypedDocumentNode = gql` query GetCustomerOrder($id: ID!) { customerOrder(id: $id) { incrementId status channelName customerEmail customerFirstName customerLastName payment { method methodTitle } shippingMethod shippingTitle couponCode totalItemCount totalQtyOrdered grandTotal baseGrandTotal grandTotalInvoiced grandTotalRefunded subTotal baseSubTotal taxAmount baseTaxAmount discountAmount baseDiscountAmount shippingAmount baseShippingAmount baseCurrencyCode channelCurrencyCode orderCurrencyCode items { edges { node { id sku type name additional qtyOrdered qtyShipped qtyInvoiced qtyCanceled qtyRefunded price basePrice total baseTotal discountPercent discountAmount baseDiscountAmount } } } addresses { edges { node { id _id addressType orderId name firstName lastName companyName address city state country postcode useForShipping email phone defaultAddress createdAt updatedAt } } } createdAt updatedAt } } `;