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 id _id 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 vipPlusAmount vipDiscountAmount baseVipPlusAmount baseVipDiscountAmount rewardPointsUsed rewardPointsAmount baseRewardPointsAmount rewardPointsInvoiced baseRewardPointsInvoiced rewardPointsEarned shippingInsuranceAmount baseShippingInsuranceAmount shippingInsuranceInvoiced baseShippingInsuranceInvoiced giftcardNumber giftcardAmount baseGiftcardAmount 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 } } `;