fragment-python 0.5.0__tar.gz → 0.5.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. {fragment_python-0.5.0 → fragment_python-0.5.2}/PKG-INFO +1 -1
  2. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/__init__.py +110 -0
  3. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/client.py +350 -0
  4. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/enums.py +11 -0
  5. fragment_python-0.5.2/fragment/sdk/get_account_data_migrations.py +114 -0
  6. fragment_python-0.5.2/fragment/sdk/get_entries_to_migrate_for_ledger_account_data_migration.py +100 -0
  7. fragment_python-0.5.2/fragment/sdk/get_entries_to_migrate_for_ledger_entry_data_migration.py +100 -0
  8. fragment_python-0.5.2/fragment/sdk/get_entry_data_migrations.py +113 -0
  9. fragment_python-0.5.2/fragment/sdk/get_ledger_account_balance_with_child_rollup.py +23 -0
  10. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/input_types.py +15 -0
  11. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/std_queries/queries.graphql +252 -0
  12. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/__init__.py +110 -0
  13. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/client.py +350 -0
  14. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/enums.py +11 -0
  15. fragment_python-0.5.2/fragment/sync_sdk/get_account_data_migrations.py +114 -0
  16. fragment_python-0.5.2/fragment/sync_sdk/get_entries_to_migrate_for_ledger_account_data_migration.py +100 -0
  17. fragment_python-0.5.2/fragment/sync_sdk/get_entries_to_migrate_for_ledger_entry_data_migration.py +100 -0
  18. fragment_python-0.5.2/fragment/sync_sdk/get_entry_data_migrations.py +113 -0
  19. fragment_python-0.5.2/fragment/sync_sdk/get_ledger_account_balance_with_child_rollup.py +23 -0
  20. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/input_types.py +15 -0
  21. {fragment_python-0.5.0 → fragment_python-0.5.2}/pyproject.toml +1 -1
  22. {fragment_python-0.5.0 → fragment_python-0.5.2}/LICENSE +0 -0
  23. {fragment_python-0.5.0 → fragment_python-0.5.2}/README.md +0 -0
  24. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/__init__.py +0 -0
  25. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/client/__init__.py +0 -0
  26. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/client/async_client.py +0 -0
  27. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/client/sync_client.py +0 -0
  28. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/codegen/__init__.py +0 -0
  29. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/codegen/helpers.py +0 -0
  30. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/codegen/main.py +0 -0
  31. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/codegen/plugins/__init__.py +0 -0
  32. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/codegen/plugins/generate_client_method.py +0 -0
  33. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/codegen/plugins/get_file_comment.py +0 -0
  34. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/exceptions.py +0 -0
  35. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/logger.py +0 -0
  36. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/add_ledger_entry.py +0 -0
  37. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/add_ledger_entry_runtime.py +0 -0
  38. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/async_client.py +0 -0
  39. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/base_model.py +0 -0
  40. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/create_custom_currency.py +0 -0
  41. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/create_custom_link.py +0 -0
  42. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/create_ledger.py +0 -0
  43. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/delete_custom_txs.py +0 -0
  44. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/delete_ledger.py +0 -0
  45. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/delete_schema.py +0 -0
  46. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/get_ledger.py +0 -0
  47. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/get_ledger_account_balance.py +0 -0
  48. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/get_ledger_account_lines.py +0 -0
  49. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/get_ledger_entry.py +0 -0
  50. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/get_schema.py +0 -0
  51. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/get_workspace.py +0 -0
  52. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/list_ledger_account_balances.py +0 -0
  53. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/list_ledger_accounts.py +0 -0
  54. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/list_ledger_entries.py +0 -0
  55. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/list_ledger_entry_group_balances.py +0 -0
  56. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/list_multi_currency_ledger_account_balances.py +0 -0
  57. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/migrate_ledger_entry.py +0 -0
  58. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/reconcile_tx.py +0 -0
  59. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/reconcile_tx_runtime.py +0 -0
  60. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/reverse_ledger_entry.py +0 -0
  61. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/store_schema.py +0 -0
  62. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/sync_custom_accounts.py +0 -0
  63. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/sync_custom_txs.py +0 -0
  64. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/update_ledger.py +0 -0
  65. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sdk/update_ledger_entry.py +0 -0
  66. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/add_ledger_entry.py +0 -0
  67. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/add_ledger_entry_runtime.py +0 -0
  68. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/async_client.py +0 -0
  69. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/base_model.py +0 -0
  70. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/create_custom_currency.py +0 -0
  71. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/create_custom_link.py +0 -0
  72. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/create_ledger.py +0 -0
  73. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/delete_custom_txs.py +0 -0
  74. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/delete_ledger.py +0 -0
  75. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/delete_schema.py +0 -0
  76. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/get_ledger.py +0 -0
  77. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/get_ledger_account_balance.py +0 -0
  78. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/get_ledger_account_lines.py +0 -0
  79. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/get_ledger_entry.py +0 -0
  80. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/get_schema.py +0 -0
  81. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/get_workspace.py +0 -0
  82. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/list_ledger_account_balances.py +0 -0
  83. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/list_ledger_accounts.py +0 -0
  84. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/list_ledger_entries.py +0 -0
  85. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/list_ledger_entry_group_balances.py +0 -0
  86. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/list_multi_currency_ledger_account_balances.py +0 -0
  87. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/migrate_ledger_entry.py +0 -0
  88. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/reconcile_tx.py +0 -0
  89. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/reconcile_tx_runtime.py +0 -0
  90. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/reverse_ledger_entry.py +0 -0
  91. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/store_schema.py +0 -0
  92. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/sync_client.py +0 -0
  93. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/sync_custom_accounts.py +0 -0
  94. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/sync_custom_txs.py +0 -0
  95. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/update_ledger.py +0 -0
  96. {fragment_python-0.5.0 → fragment_python-0.5.2}/fragment/sync_sdk/update_ledger_entry.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: fragment-python
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Summary: Python SDK for https://fragment.dev/
5
5
  License: Apache 2.0
6
6
  Author: Fragment Foundries Inc
@@ -72,6 +72,7 @@ from .enums import (
72
72
  Granularity,
73
73
  IncreaseEnv,
74
74
  LedgerAccountTypes,
75
+ LedgerDataMigrationStatus,
75
76
  LedgerLinesConsistencyMode,
76
77
  LedgerMigrationStatus,
77
78
  LedgerTypes,
@@ -79,16 +80,73 @@ from .enums import (
79
80
  ReadBalanceConsistencyMode,
80
81
  SceneEventType,
81
82
  SchemaConsistencyMode,
83
+ SchemaLedgerAccountStatus,
82
84
  SchemaLedgerEntryStatus,
83
85
  StripeEnv,
84
86
  TxType,
85
87
  UnitEnv,
86
88
  )
89
+ from .get_account_data_migrations import (
90
+ GetAccountDataMigrations,
91
+ GetAccountDataMigrationsLedger,
92
+ GetAccountDataMigrationsLedgerLedgerAccountDataMigrations,
93
+ GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodes,
94
+ GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodesCurrentMigration,
95
+ GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodesHistory,
96
+ GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodesHistoryNodes,
97
+ GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodesHistoryPageInfo,
98
+ GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodesLedgerEntries,
99
+ GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodesLedgerEntriesNodes,
100
+ GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodesLedgerEntriesPageInfo,
101
+ GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsPageInfo,
102
+ )
103
+ from .get_entries_to_migrate_for_ledger_account_data_migration import (
104
+ GetEntriesToMigrateForLedgerAccountDataMigration,
105
+ GetEntriesToMigrateForLedgerAccountDataMigrationLedger,
106
+ GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrations,
107
+ GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrationsNodes,
108
+ GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrationsNodesLedgerEntries,
109
+ GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrationsNodesLedgerEntriesNodes,
110
+ GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrationsNodesLedgerEntriesNodesLines,
111
+ GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrationsNodesLedgerEntriesNodesLinesNodes,
112
+ GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrationsNodesLedgerEntriesNodesLinesNodesAccount,
113
+ GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrationsNodesLedgerEntriesPageInfo,
114
+ )
115
+ from .get_entries_to_migrate_for_ledger_entry_data_migration import (
116
+ GetEntriesToMigrateForLedgerEntryDataMigration,
117
+ GetEntriesToMigrateForLedgerEntryDataMigrationLedger,
118
+ GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrations,
119
+ GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrationsNodes,
120
+ GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrationsNodesLedgerEntries,
121
+ GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrationsNodesLedgerEntriesNodes,
122
+ GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrationsNodesLedgerEntriesNodesLines,
123
+ GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrationsNodesLedgerEntriesNodesLinesNodes,
124
+ GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrationsNodesLedgerEntriesNodesLinesNodesAccount,
125
+ GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrationsNodesLedgerEntriesPageInfo,
126
+ )
127
+ from .get_entry_data_migrations import (
128
+ GetEntryDataMigrations,
129
+ GetEntryDataMigrationsLedger,
130
+ GetEntryDataMigrationsLedgerLedgerEntryDataMigrations,
131
+ GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodes,
132
+ GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodesCurrentMigration,
133
+ GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodesHistory,
134
+ GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodesHistoryNodes,
135
+ GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodesHistoryPageInfo,
136
+ GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodesLedgerEntries,
137
+ GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodesLedgerEntriesNodes,
138
+ GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodesLedgerEntriesPageInfo,
139
+ GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsPageInfo,
140
+ )
87
141
  from .get_ledger import GetLedger, GetLedgerLedger
88
142
  from .get_ledger_account_balance import (
89
143
  GetLedgerAccountBalance,
90
144
  GetLedgerAccountBalanceLedgerAccount,
91
145
  )
146
+ from .get_ledger_account_balance_with_child_rollup import (
147
+ GetLedgerAccountBalanceWithChildRollup,
148
+ GetLedgerAccountBalanceWithChildRollupLedgerAccount,
149
+ )
92
150
  from .get_ledger_account_lines import (
93
151
  GetLedgerAccountLines,
94
152
  GetLedgerAccountLinesLedgerAccount,
@@ -128,6 +186,7 @@ from .input_types import (
128
186
  Int96Filter,
129
187
  LedgerAccountConditionInput,
130
188
  LedgerAccountConsistencyConfigInput,
189
+ LedgerAccountDataMigrationsFilterSet,
131
190
  LedgerAccountFilter,
132
191
  LedgerAccountGroupConsistencyConfigInput,
133
192
  LedgerAccountMatchInput,
@@ -135,6 +194,7 @@ from .input_types import (
135
194
  LedgerAccountTypeFilter,
136
195
  LedgerEntriesFilterSet,
137
196
  LedgerEntryConditionInput,
197
+ LedgerEntryDataMigrationsFilterSet,
138
198
  LedgerEntryFilter,
139
199
  LedgerEntryGroupBalanceFilter,
140
200
  LedgerEntryGroupBalanceFilterSet,
@@ -390,9 +450,55 @@ __all__ = [
390
450
  "ExternalAccountMatchInput",
391
451
  "ExternalTransferType",
392
452
  "ExternalTxSource",
453
+ "GetAccountDataMigrations",
454
+ "GetAccountDataMigrationsLedger",
455
+ "GetAccountDataMigrationsLedgerLedgerAccountDataMigrations",
456
+ "GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodes",
457
+ "GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodesCurrentMigration",
458
+ "GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodesHistory",
459
+ "GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodesHistoryNodes",
460
+ "GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodesHistoryPageInfo",
461
+ "GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodesLedgerEntries",
462
+ "GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodesLedgerEntriesNodes",
463
+ "GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsNodesLedgerEntriesPageInfo",
464
+ "GetAccountDataMigrationsLedgerLedgerAccountDataMigrationsPageInfo",
465
+ "GetEntriesToMigrateForLedgerAccountDataMigration",
466
+ "GetEntriesToMigrateForLedgerAccountDataMigrationLedger",
467
+ "GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrations",
468
+ "GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrationsNodes",
469
+ "GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrationsNodesLedgerEntries",
470
+ "GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrationsNodesLedgerEntriesNodes",
471
+ "GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrationsNodesLedgerEntriesNodesLines",
472
+ "GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrationsNodesLedgerEntriesNodesLinesNodes",
473
+ "GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrationsNodesLedgerEntriesNodesLinesNodesAccount",
474
+ "GetEntriesToMigrateForLedgerAccountDataMigrationLedgerLedgerAccountDataMigrationsNodesLedgerEntriesPageInfo",
475
+ "GetEntriesToMigrateForLedgerEntryDataMigration",
476
+ "GetEntriesToMigrateForLedgerEntryDataMigrationLedger",
477
+ "GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrations",
478
+ "GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrationsNodes",
479
+ "GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrationsNodesLedgerEntries",
480
+ "GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrationsNodesLedgerEntriesNodes",
481
+ "GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrationsNodesLedgerEntriesNodesLines",
482
+ "GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrationsNodesLedgerEntriesNodesLinesNodes",
483
+ "GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrationsNodesLedgerEntriesNodesLinesNodesAccount",
484
+ "GetEntriesToMigrateForLedgerEntryDataMigrationLedgerLedgerEntryDataMigrationsNodesLedgerEntriesPageInfo",
485
+ "GetEntryDataMigrations",
486
+ "GetEntryDataMigrationsLedger",
487
+ "GetEntryDataMigrationsLedgerLedgerEntryDataMigrations",
488
+ "GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodes",
489
+ "GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodesCurrentMigration",
490
+ "GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodesHistory",
491
+ "GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodesHistoryNodes",
492
+ "GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodesHistoryPageInfo",
493
+ "GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodesLedgerEntries",
494
+ "GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodesLedgerEntriesNodes",
495
+ "GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsNodesLedgerEntriesPageInfo",
496
+ "GetEntryDataMigrationsLedgerLedgerEntryDataMigrationsPageInfo",
393
497
  "GetLedger",
394
498
  "GetLedgerAccountBalance",
395
499
  "GetLedgerAccountBalanceLedgerAccount",
500
+ "GetLedgerAccountBalanceWithChildRollup",
501
+ "GetLedgerAccountBalanceWithChildRollupLedgerAccount",
396
502
  "GetLedgerAccountLines",
397
503
  "GetLedgerAccountLinesLedgerAccount",
398
504
  "GetLedgerAccountLinesLedgerAccountLines",
@@ -419,14 +525,17 @@ __all__ = [
419
525
  "Int96Filter",
420
526
  "LedgerAccountConditionInput",
421
527
  "LedgerAccountConsistencyConfigInput",
528
+ "LedgerAccountDataMigrationsFilterSet",
422
529
  "LedgerAccountFilter",
423
530
  "LedgerAccountGroupConsistencyConfigInput",
424
531
  "LedgerAccountMatchInput",
425
532
  "LedgerAccountTypeFilter",
426
533
  "LedgerAccountTypes",
427
534
  "LedgerAccountsFilterSet",
535
+ "LedgerDataMigrationStatus",
428
536
  "LedgerEntriesFilterSet",
429
537
  "LedgerEntryConditionInput",
538
+ "LedgerEntryDataMigrationsFilterSet",
430
539
  "LedgerEntryFilter",
431
540
  "LedgerEntryGroupBalanceFilter",
432
541
  "LedgerEntryGroupBalanceFilterSet",
@@ -543,6 +652,7 @@ __all__ = [
543
652
  "SchemaInt96ConditionInput",
544
653
  "SchemaLedgerAccountInput",
545
654
  "SchemaLedgerAccountMatchInput",
655
+ "SchemaLedgerAccountStatus",
546
656
  "SchemaLedgerEntriesInput",
547
657
  "SchemaLedgerEntryConditionInput",
548
658
  "SchemaLedgerEntryGroupInput",
@@ -13,8 +13,19 @@ from .delete_custom_txs import DeleteCustomTxs
13
13
  from .delete_ledger import DeleteLedger
14
14
  from .delete_schema import DeleteSchema
15
15
  from .enums import ReadBalanceConsistencyMode
16
+ from .get_account_data_migrations import GetAccountDataMigrations
17
+ from .get_entries_to_migrate_for_ledger_account_data_migration import (
18
+ GetEntriesToMigrateForLedgerAccountDataMigration,
19
+ )
20
+ from .get_entries_to_migrate_for_ledger_entry_data_migration import (
21
+ GetEntriesToMigrateForLedgerEntryDataMigration,
22
+ )
23
+ from .get_entry_data_migrations import GetEntryDataMigrations
16
24
  from .get_ledger import GetLedger
17
25
  from .get_ledger_account_balance import GetLedgerAccountBalance
26
+ from .get_ledger_account_balance_with_child_rollup import (
27
+ GetLedgerAccountBalanceWithChildRollup,
28
+ )
18
29
  from .get_ledger_account_lines import GetLedgerAccountLines
19
30
  from .get_ledger_entry import GetLedgerEntry
20
31
  from .get_schema import GetSchema
@@ -24,7 +35,9 @@ from .input_types import (
24
35
  CurrencyMatchInput,
25
36
  CustomAccountInput,
26
37
  CustomTxInput,
38
+ LedgerAccountDataMigrationsFilterSet,
27
39
  LedgerEntriesFilterSet,
40
+ LedgerEntryDataMigrationsFilterSet,
28
41
  LedgerEntryGroupBalanceFilterSet,
29
42
  LedgerEntryGroupInput,
30
43
  LedgerEntryInput,
@@ -1242,6 +1255,40 @@ class Client(AsyncFragmentClient):
1242
1255
  data = self.get_data(response)
1243
1256
  return GetLedgerAccountBalance.model_validate(data)
1244
1257
 
1258
+ async def get_ledger_account_balance_with_child_rollup(
1259
+ self,
1260
+ path: str,
1261
+ ledger_ik: Any,
1262
+ balance_currency: Optional[CurrencyMatchInput] = None,
1263
+ balance_at: Optional[Any] = None,
1264
+ **kwargs: Any
1265
+ ) -> GetLedgerAccountBalanceWithChildRollup:
1266
+ query = gql(
1267
+ """
1268
+ query GetLedgerAccountBalanceWithChildRollup($path: String!, $ledgerIk: SafeString!, $balanceCurrency: CurrencyMatchInput, $balanceAt: LastMoment) {
1269
+ ledgerAccount(ledgerAccount: {ledger: {ik: $ledgerIk}, path: $path}) {
1270
+ id
1271
+ path
1272
+ balance(currency: $balanceCurrency, at: $balanceAt)
1273
+ }
1274
+ }
1275
+ """
1276
+ )
1277
+ variables: Dict[str, object] = {
1278
+ "path": path,
1279
+ "ledgerIk": ledger_ik,
1280
+ "balanceCurrency": balance_currency,
1281
+ "balanceAt": balance_at,
1282
+ }
1283
+ response = await self.execute(
1284
+ query=query,
1285
+ operation_name="GetLedgerAccountBalanceWithChildRollup",
1286
+ variables=variables,
1287
+ **kwargs
1288
+ )
1289
+ data = self.get_data(response)
1290
+ return GetLedgerAccountBalanceWithChildRollup.model_validate(data)
1291
+
1245
1292
  async def get_schema(
1246
1293
  self, key: Any, version: Optional[int] = None, **kwargs: Any
1247
1294
  ) -> GetSchema:
@@ -1409,6 +1456,309 @@ class Client(AsyncFragmentClient):
1409
1456
  data = self.get_data(response)
1410
1457
  return ListLedgerEntryGroupBalances.model_validate(data)
1411
1458
 
1459
+ async def get_entry_data_migrations(
1460
+ self,
1461
+ ledger_ik: Any,
1462
+ filter: Optional[LedgerEntryDataMigrationsFilterSet] = None,
1463
+ after: Optional[str] = None,
1464
+ before: Optional[str] = None,
1465
+ first: Optional[int] = None,
1466
+ last: Optional[int] = None,
1467
+ **kwargs: Any
1468
+ ) -> GetEntryDataMigrations:
1469
+ query = gql(
1470
+ """
1471
+ query getEntryDataMigrations($ledgerIk: SafeString!, $filter: LedgerEntryDataMigrationsFilterSet, $after: String, $before: String, $first: Int, $last: Int) {
1472
+ ledger(ledger: {ik: $ledgerIk}) {
1473
+ ledgerEntryDataMigrations(
1474
+ first: $first
1475
+ after: $after
1476
+ before: $before
1477
+ last: $last
1478
+ filter: $filter
1479
+ ) {
1480
+ nodes {
1481
+ entryType
1482
+ typeVersion
1483
+ status
1484
+ currentMigration {
1485
+ schemaVersion
1486
+ status
1487
+ }
1488
+ ledgerEntries {
1489
+ nodes {
1490
+ id
1491
+ type
1492
+ posted
1493
+ parameters
1494
+ }
1495
+ pageInfo {
1496
+ hasNextPage
1497
+ endCursor
1498
+ hasPreviousPage
1499
+ startCursor
1500
+ }
1501
+ }
1502
+ history {
1503
+ nodes {
1504
+ schemaVersion
1505
+ status
1506
+ }
1507
+ pageInfo {
1508
+ hasNextPage
1509
+ endCursor
1510
+ hasPreviousPage
1511
+ startCursor
1512
+ }
1513
+ }
1514
+ }
1515
+ pageInfo {
1516
+ hasNextPage
1517
+ endCursor
1518
+ hasPreviousPage
1519
+ startCursor
1520
+ }
1521
+ }
1522
+ }
1523
+ }
1524
+ """
1525
+ )
1526
+ variables: Dict[str, object] = {
1527
+ "ledgerIk": ledger_ik,
1528
+ "filter": filter,
1529
+ "after": after,
1530
+ "before": before,
1531
+ "first": first,
1532
+ "last": last,
1533
+ }
1534
+ response = await self.execute(
1535
+ query=query,
1536
+ operation_name="getEntryDataMigrations",
1537
+ variables=variables,
1538
+ **kwargs
1539
+ )
1540
+ data = self.get_data(response)
1541
+ return GetEntryDataMigrations.model_validate(data)
1542
+
1543
+ async def get_entries_to_migrate_for_ledger_entry_data_migration(
1544
+ self,
1545
+ ledger_ik: Any,
1546
+ entry_type: str,
1547
+ type_version: str,
1548
+ after: Optional[str] = None,
1549
+ before: Optional[str] = None,
1550
+ first: Optional[int] = None,
1551
+ last: Optional[int] = None,
1552
+ **kwargs: Any
1553
+ ) -> GetEntriesToMigrateForLedgerEntryDataMigration:
1554
+ query = gql(
1555
+ """
1556
+ query getEntriesToMigrateForLedgerEntryDataMigration($ledgerIk: SafeString!, $entryType: String!, $typeVersion: String!, $after: String, $before: String, $first: Int, $last: Int) {
1557
+ ledger(ledger: {ik: $ledgerIk}) {
1558
+ ledgerEntryDataMigrations(
1559
+ filter: {entryType: {equalTo: $entryType}, typeVersion: {equalTo: $typeVersion}}
1560
+ ) {
1561
+ nodes {
1562
+ ledgerEntries(first: $first, after: $after, last: $last, before: $before) {
1563
+ nodes {
1564
+ id
1565
+ ik
1566
+ type
1567
+ typeVersion
1568
+ description
1569
+ posted
1570
+ created
1571
+ parameters
1572
+ lines {
1573
+ nodes {
1574
+ id
1575
+ amount
1576
+ account {
1577
+ path
1578
+ }
1579
+ }
1580
+ }
1581
+ }
1582
+ pageInfo {
1583
+ hasNextPage
1584
+ endCursor
1585
+ hasPreviousPage
1586
+ startCursor
1587
+ }
1588
+ }
1589
+ }
1590
+ }
1591
+ }
1592
+ }
1593
+ """
1594
+ )
1595
+ variables: Dict[str, object] = {
1596
+ "ledgerIk": ledger_ik,
1597
+ "entryType": entry_type,
1598
+ "typeVersion": type_version,
1599
+ "after": after,
1600
+ "before": before,
1601
+ "first": first,
1602
+ "last": last,
1603
+ }
1604
+ response = await self.execute(
1605
+ query=query,
1606
+ operation_name="getEntriesToMigrateForLedgerEntryDataMigration",
1607
+ variables=variables,
1608
+ **kwargs
1609
+ )
1610
+ data = self.get_data(response)
1611
+ return GetEntriesToMigrateForLedgerEntryDataMigration.model_validate(data)
1612
+
1613
+ async def get_account_data_migrations(
1614
+ self,
1615
+ ledger_ik: Any,
1616
+ filter: Optional[LedgerAccountDataMigrationsFilterSet] = None,
1617
+ after: Optional[str] = None,
1618
+ before: Optional[str] = None,
1619
+ first: Optional[int] = None,
1620
+ last: Optional[int] = None,
1621
+ **kwargs: Any
1622
+ ) -> GetAccountDataMigrations:
1623
+ query = gql(
1624
+ """
1625
+ query getAccountDataMigrations($ledgerIk: SafeString!, $filter: LedgerAccountDataMigrationsFilterSet, $after: String, $before: String, $first: Int, $last: Int) {
1626
+ ledger(ledger: {ik: $ledgerIk}) {
1627
+ ledgerAccountDataMigrations(
1628
+ first: $first
1629
+ after: $after
1630
+ before: $before
1631
+ last: $last
1632
+ filter: $filter
1633
+ ) {
1634
+ nodes {
1635
+ accountPath
1636
+ status
1637
+ currentMigration {
1638
+ schemaVersion
1639
+ status
1640
+ }
1641
+ ledgerEntries {
1642
+ nodes {
1643
+ id
1644
+ type
1645
+ posted
1646
+ parameters
1647
+ }
1648
+ pageInfo {
1649
+ hasNextPage
1650
+ endCursor
1651
+ hasPreviousPage
1652
+ startCursor
1653
+ }
1654
+ }
1655
+ history {
1656
+ nodes {
1657
+ schemaVersion
1658
+ status
1659
+ }
1660
+ pageInfo {
1661
+ hasNextPage
1662
+ endCursor
1663
+ hasPreviousPage
1664
+ startCursor
1665
+ }
1666
+ }
1667
+ }
1668
+ pageInfo {
1669
+ hasNextPage
1670
+ endCursor
1671
+ hasPreviousPage
1672
+ startCursor
1673
+ }
1674
+ }
1675
+ }
1676
+ }
1677
+ """
1678
+ )
1679
+ variables: Dict[str, object] = {
1680
+ "ledgerIk": ledger_ik,
1681
+ "filter": filter,
1682
+ "after": after,
1683
+ "before": before,
1684
+ "first": first,
1685
+ "last": last,
1686
+ }
1687
+ response = await self.execute(
1688
+ query=query,
1689
+ operation_name="getAccountDataMigrations",
1690
+ variables=variables,
1691
+ **kwargs
1692
+ )
1693
+ data = self.get_data(response)
1694
+ return GetAccountDataMigrations.model_validate(data)
1695
+
1696
+ async def get_entries_to_migrate_for_ledger_account_data_migration(
1697
+ self,
1698
+ ledger_ik: Any,
1699
+ account_path: str,
1700
+ after: Optional[str] = None,
1701
+ before: Optional[str] = None,
1702
+ first: Optional[int] = None,
1703
+ last: Optional[int] = None,
1704
+ **kwargs: Any
1705
+ ) -> GetEntriesToMigrateForLedgerAccountDataMigration:
1706
+ query = gql(
1707
+ """
1708
+ query getEntriesToMigrateForLedgerAccountDataMigration($ledgerIk: SafeString!, $accountPath: String!, $after: String, $before: String, $first: Int, $last: Int) {
1709
+ ledger(ledger: {ik: $ledgerIk}) {
1710
+ ledgerAccountDataMigrations(filter: {accountPath: {equalTo: $accountPath}}) {
1711
+ nodes {
1712
+ ledgerEntries(first: $first, after: $after, last: $last, before: $before) {
1713
+ nodes {
1714
+ id
1715
+ ik
1716
+ type
1717
+ typeVersion
1718
+ description
1719
+ posted
1720
+ created
1721
+ parameters
1722
+ lines {
1723
+ nodes {
1724
+ id
1725
+ amount
1726
+ account {
1727
+ path
1728
+ }
1729
+ }
1730
+ }
1731
+ }
1732
+ pageInfo {
1733
+ hasNextPage
1734
+ endCursor
1735
+ hasPreviousPage
1736
+ startCursor
1737
+ }
1738
+ }
1739
+ }
1740
+ }
1741
+ }
1742
+ }
1743
+ """
1744
+ )
1745
+ variables: Dict[str, object] = {
1746
+ "ledgerIk": ledger_ik,
1747
+ "accountPath": account_path,
1748
+ "after": after,
1749
+ "before": before,
1750
+ "first": first,
1751
+ "last": last,
1752
+ }
1753
+ response = await self.execute(
1754
+ query=query,
1755
+ operation_name="getEntriesToMigrateForLedgerAccountDataMigration",
1756
+ variables=variables,
1757
+ **kwargs
1758
+ )
1759
+ data = self.get_data(response)
1760
+ return GetEntriesToMigrateForLedgerAccountDataMigration.model_validate(data)
1761
+
1412
1762
  async def create_custom_currency(
1413
1763
  self, id: Any, name: str, precision: int, custom_code: str, **kwargs: Any
1414
1764
  ) -> CreateCustomCurrency:
@@ -222,6 +222,11 @@ class LedgerAccountTypes(str, Enum):
222
222
  liability = "liability"
223
223
 
224
224
 
225
+ class LedgerDataMigrationStatus(str, Enum):
226
+ active = "active"
227
+ inactive = "inactive"
228
+
229
+
225
230
  class LedgerLinesConsistencyMode(str, Enum):
226
231
  eventual = "eventual"
227
232
  strong = "strong"
@@ -261,6 +266,12 @@ class SchemaConsistencyMode(str, Enum):
261
266
  strong = "strong"
262
267
 
263
268
 
269
+ class SchemaLedgerAccountStatus(str, Enum):
270
+ active = "active"
271
+ archived = "archived"
272
+ disabled = "disabled"
273
+
274
+
264
275
  class SchemaLedgerEntryStatus(str, Enum):
265
276
  active = "active"
266
277
  archived = "archived"