import {
  gql
} from "../chunk-MOD44I3G.js";
import {
  init_cjs_shims
} from "../chunk-7GH3YGSC.js";

// src/queries/reverseLedgerEntry.query.ts
init_cjs_shims();
var query = gql`
  mutation ReverseLedgerEntry($id: ID!) {
    reverseLedgerEntry(id: $id) {
      __typename
      ... on ReverseLedgerEntryResult {
        reversingLedgerEntry {
          ik
          created
          type
          typeVersion
          description
          hidden
          reverses {
            id
          }
          lines {
            nodes {
              account {
                path
              }
              amount
            }
          }
        }
        reversedLedgerEntry {
          ik
          created
          type
          typeVersion
          description
          hidden
          reversedAt
          reversedBy {
            id
          }
          lines {
            nodes {
              account {
                path
              }
              amount
            }
          }
        }
        isIkReplay
      }
      ... on Error {
        code
        message
        retryable
      }
    }
  }
`;
export {
  query
};
