@fragment-dev/cli
Version:
97 lines (94 loc) • 1.72 kB
JavaScript
import {
gql
} from "../chunk-MOD44I3G.js";
import {
init_cjs_shims
} from "../chunk-7GH3YGSC.js";
// src/queries/migrateLedgerEntry.query.ts
init_cjs_shims();
var query = gql`
mutation MigrateLedgerEntry($input: MigrateLedgerEntryInput!) {
migrateLedgerEntry(input: $input) {
__typename
... on MigrateLedgerEntryResult {
isIkReplay
reversedLedgerEntry {
type
typeVersion
id
date
description
ledgerId
posted
lines {
nodes {
id
key
type
date
amount
account {
path
}
}
}
}
reversingLedgerEntry {
type
typeVersion
id
date
description
ledgerId
posted
lines {
nodes {
id
key
type
date
amount
account {
path
}
}
}
}
newLedgerEntry {
type
typeVersion
id
date
description
ledgerId
posted
lines {
nodes {
id
key
type
date
amount
account {
path
}
}
}
}
}
... on BadRequestError {
code
message
retryable
}
... on InternalError {
code
message
retryable
}
}
}
`;
export {
query
};