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

// src/queries/addLedgerEntry.query.ts
init_cjs_shims();
var query = gql`
  mutation AddLedgerEntry($ik: SafeString!, $entry: LedgerEntryInput!) {
    addLedgerEntry(ik: $ik, entry: $entry) {
      __typename
      ... on AddLedgerEntryResult {
        isIkReplay
        entry {
          type
          typeVersion
          id
          date
          description
          ledgerId
          posted
        }
        lines {
          id
          key
          type
          date
          amount
          accountId
        }
      }
      ... on BadRequestError {
        code
        message
        retryable
      }
      ... on InternalError {
        code
        message
        retryable
      }
    }
  }
`;
export {
  query
};
