Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions lib/fragment.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4475,7 +4475,7 @@
},
{
"name": "ledgerAccountDataMigrations",
"description": "**EXPERIMENTAL**: Ledger Account data migrations affecting this Ledger.",
"description": "Ledger Account data migrations affecting this Ledger.",
"args": [
{
"name": "after",
Expand Down Expand Up @@ -4676,7 +4676,7 @@
},
{
"name": "ledgerEntryDataMigrations",
"description": "**EXPERIMENTAL**: Ledger Entry data migrations affecting this Ledger.",
"description": "Ledger Entry data migrations affecting this Ledger.",
"args": [
{
"name": "after",
Expand Down Expand Up @@ -6620,8 +6620,8 @@
"name": "accountPath",
"description": "Filter by Ledger Account path.",
"type": {
"kind": "SCALAR",
"name": "SafeString",
"kind": "INPUT_OBJECT",
"name": "StringFilter",
"ofType": null
},
"defaultValue": null
Expand Down Expand Up @@ -8190,8 +8190,8 @@
"name": "entryType",
"description": "Filter by Ledger Entry type.",
"type": {
"kind": "SCALAR",
"name": "SafeString",
"kind": "INPUT_OBJECT",
"name": "StringFilter",
"ofType": null
},
"defaultValue": null
Expand All @@ -8210,8 +8210,8 @@
"name": "typeVersion",
"description": "Filter by Ledger Entry type version.",
"type": {
"kind": "SCALAR",
"name": "Int",
"kind": "INPUT_OBJECT",
"name": "StringFilter",
"ofType": null
},
"defaultValue": null
Expand Down
233 changes: 233 additions & 0 deletions lib/queries.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,239 @@ query ListLedgerEntryGroupBalances(
}
}

query GetEntryDataMigrations(
$ledgerIk: SafeString!
$filter: LedgerEntryDataMigrationsFilterSet
$after: String
$before: String
$first: Int
$last: Int
) {
ledger(ledger: { ik: $ledgerIk }) {
ledgerEntryDataMigrations(
first: $first
after: $after
before: $before
last: $last
filter: $filter
) {
nodes {
entryType
typeVersion
status
currentMigration {
schemaVersion
status
}
ledgerEntries {
nodes {
id
type
posted
parameters
}
pageInfo {
hasNextPage
endCursor
hasPreviousPage
startCursor
}
}
history {
nodes {
schemaVersion
status
}
pageInfo {
hasNextPage
endCursor
hasPreviousPage
startCursor
}
}
}
pageInfo {
hasNextPage
endCursor
hasPreviousPage
startCursor
}
}
}
}

query GetEntriesToMigrateForLedgerEntryDataMigration(
$ledgerIk: SafeString!
$entryType: String!
$typeVersion: String!
$after: String
$before: String
$first: Int
$last: Int
) {
ledger(ledger: { ik: $ledgerIk }) {
ledgerEntryDataMigrations(
filter: {
entryType: {
equalTo: $entryType
}
typeVersion: {
equalTo: $typeVersion
}
}
) {
nodes {
ledgerEntries(
first: $first
after: $after
last: $last
before: $before
) {
nodes {
id
ik
type
typeVersion
description
posted
created
parameters
lines {
nodes {
id
amount
account {
path
}
}
}
}
pageInfo {
hasNextPage
endCursor
hasPreviousPage
startCursor
}
}
}
}
}
}

query GetAccountDataMigrations(
$ledgerIk: SafeString!
$filter: LedgerAccountDataMigrationsFilterSet
$after: String
$before: String
$first: Int
$last: Int
) {
ledger(ledger: { ik: $ledgerIk }) {
ledgerAccountDataMigrations(
first: $first
after: $after
before: $before
last: $last
filter: $filter
) {
nodes {
accountPath
status
currentMigration {
schemaVersion
status
}
ledgerEntries {
nodes {
id
type
posted
parameters
}
pageInfo {
hasNextPage
endCursor
hasPreviousPage
startCursor
}
}
history {
nodes {
schemaVersion
status
}
pageInfo {
hasNextPage
endCursor
hasPreviousPage
startCursor
}
}
}
pageInfo {
hasNextPage
endCursor
hasPreviousPage
startCursor
}
}
}
}

query GetEntriesToMigrateForLedgerAccountDataMigration(
$ledgerIk: SafeString!
$accountPath: String!
$after: String
$before: String
$first: Int
$last: Int
) {
ledger(ledger: { ik: $ledgerIk }) {
ledgerAccountDataMigrations(
filter: {
accountPath: {
equalTo: $accountPath
}
}
) {
nodes {
ledgerEntries(
first: $first
after: $after
last: $last
before: $before
) {
nodes {
id
ik
type
typeVersion
description
posted
created
parameters
lines {
nodes {
id
amount
account {
path
}
}
}
}
pageInfo {
hasNextPage
endCursor
hasPreviousPage
startCursor
}
}
}
}
}
}

mutation CreateCustomCurrency(
$id: SafeString!,
$name: String!,
Expand Down