import { gql,TypedDocumentNode } from "@apollo/client";
import { 
    CheckoutAddressNode
} from "@/types/checkout/type";
type GetCheckoutAddress = {
  collectionGetCheckoutAddresses: {
    __typename: "GetCheckoutAddressCursorConnection";
    edges: Array<{
      node: CheckoutAddressNode;
      __typename: "GetCheckoutAddressEdge";
    }>
  };
};
export const GET_CHECKOUT_ADDRESSES: TypedDocumentNode<GetCheckoutAddress> = gql`
 query collectionGetCheckoutAddresses {
collectionGetCheckoutAddresses {
      edges {
        node {
          id
          _id
          addressType
          firstName
          lastName
          companyName
          address
          city
          state
          country
          postcode
          email
          phone
          defaultAddress
          useForShipping
        }
      }
    }
  }
`;
