fragment-python 0.4.1__tar.gz → 0.5.1__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.
- {fragment_python-0.4.1 → fragment_python-0.5.1}/PKG-INFO +3 -2
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/__init__.py +58 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/client.py +131 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/enums.py +24 -0
- fragment_python-0.5.1/fragment/sdk/get_ledger_account_balance_with_child_rollup.py +23 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/input_types.py +54 -0
- fragment_python-0.5.1/fragment/sdk/migrate_ledger_entry.py +165 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/std_queries/queries.graphql +100 -1
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/__init__.py +58 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/client.py +131 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/enums.py +24 -0
- fragment_python-0.5.1/fragment/sync_sdk/get_ledger_account_balance_with_child_rollup.py +23 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/input_types.py +54 -0
- fragment_python-0.5.1/fragment/sync_sdk/migrate_ledger_entry.py +165 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/pyproject.toml +1 -1
- {fragment_python-0.4.1 → fragment_python-0.5.1}/LICENSE +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/README.md +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/__init__.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/client/__init__.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/client/async_client.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/client/sync_client.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/codegen/__init__.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/codegen/helpers.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/codegen/main.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/codegen/plugins/__init__.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/codegen/plugins/generate_client_method.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/codegen/plugins/get_file_comment.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/exceptions.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/logger.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/add_ledger_entry.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/add_ledger_entry_runtime.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/async_client.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/base_model.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/create_custom_currency.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/create_custom_link.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/create_ledger.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/delete_custom_txs.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/delete_ledger.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/delete_schema.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/get_ledger.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/get_ledger_account_balance.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/get_ledger_account_lines.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/get_ledger_entry.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/get_schema.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/get_workspace.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/list_ledger_account_balances.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/list_ledger_accounts.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/list_ledger_entries.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/list_ledger_entry_group_balances.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/list_multi_currency_ledger_account_balances.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/reconcile_tx.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/reconcile_tx_runtime.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/reverse_ledger_entry.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/store_schema.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/sync_custom_accounts.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/sync_custom_txs.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/update_ledger.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sdk/update_ledger_entry.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/add_ledger_entry.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/add_ledger_entry_runtime.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/async_client.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/base_model.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/create_custom_currency.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/create_custom_link.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/create_ledger.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/delete_custom_txs.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/delete_ledger.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/delete_schema.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/get_ledger.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/get_ledger_account_balance.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/get_ledger_account_lines.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/get_ledger_entry.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/get_schema.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/get_workspace.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/list_ledger_account_balances.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/list_ledger_accounts.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/list_ledger_entries.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/list_ledger_entry_group_balances.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/list_multi_currency_ledger_account_balances.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/reconcile_tx.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/reconcile_tx_runtime.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/reverse_ledger_entry.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/store_schema.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/sync_client.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/sync_custom_accounts.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/sync_custom_txs.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/update_ledger.py +0 -0
- {fragment_python-0.4.1 → fragment_python-0.5.1}/fragment/sync_sdk/update_ledger_entry.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: fragment-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Python SDK for https://fragment.dev/
|
|
5
5
|
License: Apache 2.0
|
|
6
6
|
Author: Fragment Foundries Inc
|
|
@@ -10,6 +10,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.10
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.11
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
14
|
Requires-Dist: ariadne-codegen (>=0.13.0,<0.14.0)
|
|
14
15
|
Requires-Dist: authlib (>=1.3.1,<2.0.0)
|
|
15
16
|
Requires-Dist: certifi (==2024.07.04)
|
|
@@ -72,12 +72,16 @@ from .enums import (
|
|
|
72
72
|
Granularity,
|
|
73
73
|
IncreaseEnv,
|
|
74
74
|
LedgerAccountTypes,
|
|
75
|
+
LedgerDataMigrationStatus,
|
|
75
76
|
LedgerLinesConsistencyMode,
|
|
76
77
|
LedgerMigrationStatus,
|
|
77
78
|
LedgerTypes,
|
|
79
|
+
LinkType,
|
|
78
80
|
ReadBalanceConsistencyMode,
|
|
79
81
|
SceneEventType,
|
|
80
82
|
SchemaConsistencyMode,
|
|
83
|
+
SchemaLedgerAccountStatus,
|
|
84
|
+
SchemaLedgerEntryStatus,
|
|
81
85
|
StripeEnv,
|
|
82
86
|
TxType,
|
|
83
87
|
UnitEnv,
|
|
@@ -87,6 +91,10 @@ from .get_ledger_account_balance import (
|
|
|
87
91
|
GetLedgerAccountBalance,
|
|
88
92
|
GetLedgerAccountBalanceLedgerAccount,
|
|
89
93
|
)
|
|
94
|
+
from .get_ledger_account_balance_with_child_rollup import (
|
|
95
|
+
GetLedgerAccountBalanceWithChildRollup,
|
|
96
|
+
GetLedgerAccountBalanceWithChildRollupLedgerAccount,
|
|
97
|
+
)
|
|
90
98
|
from .get_ledger_account_lines import (
|
|
91
99
|
GetLedgerAccountLines,
|
|
92
100
|
GetLedgerAccountLinesLedgerAccount,
|
|
@@ -120,11 +128,13 @@ from .input_types import (
|
|
|
120
128
|
ExternalAccountMatchInput,
|
|
121
129
|
GroupBalanceAccountFilter,
|
|
122
130
|
GroupFilter,
|
|
131
|
+
GroupMatchInput,
|
|
123
132
|
GroupNotFilter,
|
|
124
133
|
Int96ConditionInput,
|
|
125
134
|
Int96Filter,
|
|
126
135
|
LedgerAccountConditionInput,
|
|
127
136
|
LedgerAccountConsistencyConfigInput,
|
|
137
|
+
LedgerAccountDataMigrationsFilterSet,
|
|
128
138
|
LedgerAccountFilter,
|
|
129
139
|
LedgerAccountGroupConsistencyConfigInput,
|
|
130
140
|
LedgerAccountMatchInput,
|
|
@@ -132,7 +142,9 @@ from .input_types import (
|
|
|
132
142
|
LedgerAccountTypeFilter,
|
|
133
143
|
LedgerEntriesFilterSet,
|
|
134
144
|
LedgerEntryConditionInput,
|
|
145
|
+
LedgerEntryDataMigrationsFilterSet,
|
|
135
146
|
LedgerEntryFilter,
|
|
147
|
+
LedgerEntryGroupBalanceFilter,
|
|
136
148
|
LedgerEntryGroupBalanceFilterSet,
|
|
137
149
|
LedgerEntryGroupInput,
|
|
138
150
|
LedgerEntryGroupMatchInput,
|
|
@@ -147,6 +159,7 @@ from .input_types import (
|
|
|
147
159
|
LedgersFilterSet,
|
|
148
160
|
LedgerTypeFilter,
|
|
149
161
|
LinkMatchInput,
|
|
162
|
+
MigrateLedgerEntryInput,
|
|
150
163
|
SceneEntryInput,
|
|
151
164
|
SceneEventInput,
|
|
152
165
|
SceneInput,
|
|
@@ -225,6 +238,24 @@ from .list_multi_currency_ledger_account_balances import (
|
|
|
225
238
|
ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesOwnBalancesNodesCurrency,
|
|
226
239
|
ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsPageInfo,
|
|
227
240
|
)
|
|
241
|
+
from .migrate_ledger_entry import (
|
|
242
|
+
MigrateLedgerEntry,
|
|
243
|
+
MigrateLedgerEntryMigrateLedgerEntryBadRequestError,
|
|
244
|
+
MigrateLedgerEntryMigrateLedgerEntryInternalError,
|
|
245
|
+
MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResult,
|
|
246
|
+
MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultNewLedgerEntry,
|
|
247
|
+
MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultNewLedgerEntryLines,
|
|
248
|
+
MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultNewLedgerEntryLinesNodes,
|
|
249
|
+
MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultNewLedgerEntryLinesNodesAccount,
|
|
250
|
+
MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversedLedgerEntry,
|
|
251
|
+
MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversedLedgerEntryLines,
|
|
252
|
+
MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversedLedgerEntryLinesNodes,
|
|
253
|
+
MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversedLedgerEntryLinesNodesAccount,
|
|
254
|
+
MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversingLedgerEntry,
|
|
255
|
+
MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversingLedgerEntryLines,
|
|
256
|
+
MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversingLedgerEntryLinesNodes,
|
|
257
|
+
MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversingLedgerEntryLinesNodesAccount,
|
|
258
|
+
)
|
|
228
259
|
from .reconcile_tx import (
|
|
229
260
|
ReconcileTx,
|
|
230
261
|
ReconcileTxReconcileTxBadRequestError,
|
|
@@ -370,6 +401,8 @@ __all__ = [
|
|
|
370
401
|
"GetLedger",
|
|
371
402
|
"GetLedgerAccountBalance",
|
|
372
403
|
"GetLedgerAccountBalanceLedgerAccount",
|
|
404
|
+
"GetLedgerAccountBalanceWithChildRollup",
|
|
405
|
+
"GetLedgerAccountBalanceWithChildRollupLedgerAccount",
|
|
373
406
|
"GetLedgerAccountLines",
|
|
374
407
|
"GetLedgerAccountLinesLedgerAccount",
|
|
375
408
|
"GetLedgerAccountLinesLedgerAccountLines",
|
|
@@ -389,21 +422,26 @@ __all__ = [
|
|
|
389
422
|
"Granularity",
|
|
390
423
|
"GroupBalanceAccountFilter",
|
|
391
424
|
"GroupFilter",
|
|
425
|
+
"GroupMatchInput",
|
|
392
426
|
"GroupNotFilter",
|
|
393
427
|
"IncreaseEnv",
|
|
394
428
|
"Int96ConditionInput",
|
|
395
429
|
"Int96Filter",
|
|
396
430
|
"LedgerAccountConditionInput",
|
|
397
431
|
"LedgerAccountConsistencyConfigInput",
|
|
432
|
+
"LedgerAccountDataMigrationsFilterSet",
|
|
398
433
|
"LedgerAccountFilter",
|
|
399
434
|
"LedgerAccountGroupConsistencyConfigInput",
|
|
400
435
|
"LedgerAccountMatchInput",
|
|
401
436
|
"LedgerAccountTypeFilter",
|
|
402
437
|
"LedgerAccountTypes",
|
|
403
438
|
"LedgerAccountsFilterSet",
|
|
439
|
+
"LedgerDataMigrationStatus",
|
|
404
440
|
"LedgerEntriesFilterSet",
|
|
405
441
|
"LedgerEntryConditionInput",
|
|
442
|
+
"LedgerEntryDataMigrationsFilterSet",
|
|
406
443
|
"LedgerEntryFilter",
|
|
444
|
+
"LedgerEntryGroupBalanceFilter",
|
|
407
445
|
"LedgerEntryGroupBalanceFilterSet",
|
|
408
446
|
"LedgerEntryGroupInput",
|
|
409
447
|
"LedgerEntryGroupMatchInput",
|
|
@@ -421,6 +459,7 @@ __all__ = [
|
|
|
421
459
|
"LedgerTypes",
|
|
422
460
|
"LedgersFilterSet",
|
|
423
461
|
"LinkMatchInput",
|
|
462
|
+
"LinkType",
|
|
424
463
|
"ListLedgerAccountBalances",
|
|
425
464
|
"ListLedgerAccountBalancesLedger",
|
|
426
465
|
"ListLedgerAccountBalancesLedgerLedgerAccounts",
|
|
@@ -460,6 +499,23 @@ __all__ = [
|
|
|
460
499
|
"ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesOwnBalancesNodes",
|
|
461
500
|
"ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesOwnBalancesNodesCurrency",
|
|
462
501
|
"ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsPageInfo",
|
|
502
|
+
"MigrateLedgerEntry",
|
|
503
|
+
"MigrateLedgerEntryInput",
|
|
504
|
+
"MigrateLedgerEntryMigrateLedgerEntryBadRequestError",
|
|
505
|
+
"MigrateLedgerEntryMigrateLedgerEntryInternalError",
|
|
506
|
+
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResult",
|
|
507
|
+
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultNewLedgerEntry",
|
|
508
|
+
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultNewLedgerEntryLines",
|
|
509
|
+
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultNewLedgerEntryLinesNodes",
|
|
510
|
+
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultNewLedgerEntryLinesNodesAccount",
|
|
511
|
+
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversedLedgerEntry",
|
|
512
|
+
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversedLedgerEntryLines",
|
|
513
|
+
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversedLedgerEntryLinesNodes",
|
|
514
|
+
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversedLedgerEntryLinesNodesAccount",
|
|
515
|
+
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversingLedgerEntry",
|
|
516
|
+
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversingLedgerEntryLines",
|
|
517
|
+
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversingLedgerEntryLinesNodes",
|
|
518
|
+
"MigrateLedgerEntryMigrateLedgerEntryMigrateLedgerEntryResultReversingLedgerEntryLinesNodesAccount",
|
|
463
519
|
"ReadBalanceConsistencyMode",
|
|
464
520
|
"ReconcileTx",
|
|
465
521
|
"ReconcileTxReconcileTxBadRequestError",
|
|
@@ -500,10 +556,12 @@ __all__ = [
|
|
|
500
556
|
"SchemaInt96ConditionInput",
|
|
501
557
|
"SchemaLedgerAccountInput",
|
|
502
558
|
"SchemaLedgerAccountMatchInput",
|
|
559
|
+
"SchemaLedgerAccountStatus",
|
|
503
560
|
"SchemaLedgerEntriesInput",
|
|
504
561
|
"SchemaLedgerEntryConditionInput",
|
|
505
562
|
"SchemaLedgerEntryGroupInput",
|
|
506
563
|
"SchemaLedgerEntryInput",
|
|
564
|
+
"SchemaLedgerEntryStatus",
|
|
507
565
|
"SchemaLedgerEntryTagInput",
|
|
508
566
|
"SchemaLedgerLineInput",
|
|
509
567
|
"SchemaMatchInput",
|
|
@@ -15,6 +15,9 @@ from .delete_schema import DeleteSchema
|
|
|
15
15
|
from .enums import ReadBalanceConsistencyMode
|
|
16
16
|
from .get_ledger import GetLedger
|
|
17
17
|
from .get_ledger_account_balance import GetLedgerAccountBalance
|
|
18
|
+
from .get_ledger_account_balance_with_child_rollup import (
|
|
19
|
+
GetLedgerAccountBalanceWithChildRollup,
|
|
20
|
+
)
|
|
18
21
|
from .get_ledger_account_lines import GetLedgerAccountLines
|
|
19
22
|
from .get_ledger_entry import GetLedgerEntry
|
|
20
23
|
from .get_schema import GetSchema
|
|
@@ -27,6 +30,7 @@ from .input_types import (
|
|
|
27
30
|
LedgerEntriesFilterSet,
|
|
28
31
|
LedgerEntryGroupBalanceFilterSet,
|
|
29
32
|
LedgerEntryGroupInput,
|
|
33
|
+
LedgerEntryInput,
|
|
30
34
|
LedgerEntryTagInput,
|
|
31
35
|
LedgerLineInput,
|
|
32
36
|
LedgerLinesFilterSet,
|
|
@@ -43,6 +47,7 @@ from .list_ledger_entry_group_balances import ListLedgerEntryGroupBalances
|
|
|
43
47
|
from .list_multi_currency_ledger_account_balances import (
|
|
44
48
|
ListMultiCurrencyLedgerAccountBalances,
|
|
45
49
|
)
|
|
50
|
+
from .migrate_ledger_entry import MigrateLedgerEntry
|
|
46
51
|
from .reconcile_tx import ReconcileTx
|
|
47
52
|
from .reconcile_tx_runtime import ReconcileTxRuntime
|
|
48
53
|
from .reverse_ledger_entry import ReverseLedgerEntry
|
|
@@ -340,6 +345,98 @@ class Client(AsyncFragmentClient):
|
|
|
340
345
|
data = self.get_data(response)
|
|
341
346
|
return ReverseLedgerEntry.model_validate(data)
|
|
342
347
|
|
|
348
|
+
async def migrate_ledger_entry(
|
|
349
|
+
self, id: str, new_ledger_entry: LedgerEntryInput, **kwargs: Any
|
|
350
|
+
) -> MigrateLedgerEntry:
|
|
351
|
+
query = gql(
|
|
352
|
+
"""
|
|
353
|
+
mutation migrateLedgerEntry($id: ID!, $newLedgerEntry: LedgerEntryInput!) {
|
|
354
|
+
migrateLedgerEntry(input: {id: $id, newLedgerEntry: $newLedgerEntry}) {
|
|
355
|
+
__typename
|
|
356
|
+
... on MigrateLedgerEntryResult {
|
|
357
|
+
reversingLedgerEntry {
|
|
358
|
+
ik
|
|
359
|
+
id
|
|
360
|
+
created
|
|
361
|
+
posted
|
|
362
|
+
type
|
|
363
|
+
description
|
|
364
|
+
reversedAt
|
|
365
|
+
hidden
|
|
366
|
+
lines {
|
|
367
|
+
nodes {
|
|
368
|
+
id
|
|
369
|
+
amount
|
|
370
|
+
account {
|
|
371
|
+
path
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
reversedLedgerEntry {
|
|
377
|
+
ik
|
|
378
|
+
id
|
|
379
|
+
created
|
|
380
|
+
posted
|
|
381
|
+
type
|
|
382
|
+
description
|
|
383
|
+
reversedAt
|
|
384
|
+
hidden
|
|
385
|
+
lines {
|
|
386
|
+
nodes {
|
|
387
|
+
id
|
|
388
|
+
amount
|
|
389
|
+
account {
|
|
390
|
+
path
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
newLedgerEntry {
|
|
396
|
+
ik
|
|
397
|
+
id
|
|
398
|
+
created
|
|
399
|
+
posted
|
|
400
|
+
type
|
|
401
|
+
description
|
|
402
|
+
reversedAt
|
|
403
|
+
hidden
|
|
404
|
+
lines {
|
|
405
|
+
nodes {
|
|
406
|
+
id
|
|
407
|
+
amount
|
|
408
|
+
account {
|
|
409
|
+
path
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
isIkReplay
|
|
415
|
+
}
|
|
416
|
+
... on BadRequestError {
|
|
417
|
+
code
|
|
418
|
+
message
|
|
419
|
+
retryable
|
|
420
|
+
}
|
|
421
|
+
... on InternalError {
|
|
422
|
+
code
|
|
423
|
+
message
|
|
424
|
+
retryable
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
"""
|
|
429
|
+
)
|
|
430
|
+
variables: Dict[str, object] = {"id": id, "newLedgerEntry": new_ledger_entry}
|
|
431
|
+
response = await self.execute(
|
|
432
|
+
query=query,
|
|
433
|
+
operation_name="migrateLedgerEntry",
|
|
434
|
+
variables=variables,
|
|
435
|
+
**kwargs
|
|
436
|
+
)
|
|
437
|
+
data = self.get_data(response)
|
|
438
|
+
return MigrateLedgerEntry.model_validate(data)
|
|
439
|
+
|
|
343
440
|
async def add_ledger_entry_runtime(
|
|
344
441
|
self,
|
|
345
442
|
ik: Any,
|
|
@@ -1148,6 +1245,40 @@ class Client(AsyncFragmentClient):
|
|
|
1148
1245
|
data = self.get_data(response)
|
|
1149
1246
|
return GetLedgerAccountBalance.model_validate(data)
|
|
1150
1247
|
|
|
1248
|
+
async def get_ledger_account_balance_with_child_rollup(
|
|
1249
|
+
self,
|
|
1250
|
+
path: str,
|
|
1251
|
+
ledger_ik: Any,
|
|
1252
|
+
balance_currency: Optional[CurrencyMatchInput] = None,
|
|
1253
|
+
balance_at: Optional[Any] = None,
|
|
1254
|
+
**kwargs: Any
|
|
1255
|
+
) -> GetLedgerAccountBalanceWithChildRollup:
|
|
1256
|
+
query = gql(
|
|
1257
|
+
"""
|
|
1258
|
+
query GetLedgerAccountBalanceWithChildRollup($path: String!, $ledgerIk: SafeString!, $balanceCurrency: CurrencyMatchInput, $balanceAt: LastMoment) {
|
|
1259
|
+
ledgerAccount(ledgerAccount: {ledger: {ik: $ledgerIk}, path: $path}) {
|
|
1260
|
+
id
|
|
1261
|
+
path
|
|
1262
|
+
balance(currency: $balanceCurrency, at: $balanceAt)
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
"""
|
|
1266
|
+
)
|
|
1267
|
+
variables: Dict[str, object] = {
|
|
1268
|
+
"path": path,
|
|
1269
|
+
"ledgerIk": ledger_ik,
|
|
1270
|
+
"balanceCurrency": balance_currency,
|
|
1271
|
+
"balanceAt": balance_at,
|
|
1272
|
+
}
|
|
1273
|
+
response = await self.execute(
|
|
1274
|
+
query=query,
|
|
1275
|
+
operation_name="GetLedgerAccountBalanceWithChildRollup",
|
|
1276
|
+
variables=variables,
|
|
1277
|
+
**kwargs
|
|
1278
|
+
)
|
|
1279
|
+
data = self.get_data(response)
|
|
1280
|
+
return GetLedgerAccountBalanceWithChildRollup.model_validate(data)
|
|
1281
|
+
|
|
1151
1282
|
async def get_schema(
|
|
1152
1283
|
self, key: Any, version: Optional[int] = None, **kwargs: Any
|
|
1153
1284
|
) -> GetSchema:
|
|
@@ -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"
|
|
@@ -239,6 +244,13 @@ class LedgerTypes(str, Enum):
|
|
|
239
244
|
double = "double"
|
|
240
245
|
|
|
241
246
|
|
|
247
|
+
class LinkType(str, Enum):
|
|
248
|
+
CustomLink = "CustomLink"
|
|
249
|
+
IncreaseLink = "IncreaseLink"
|
|
250
|
+
StripeLink = "StripeLink"
|
|
251
|
+
UnitLink = "UnitLink"
|
|
252
|
+
|
|
253
|
+
|
|
242
254
|
class ReadBalanceConsistencyMode(str, Enum):
|
|
243
255
|
eventual = "eventual"
|
|
244
256
|
strong = "strong"
|
|
@@ -254,6 +266,18 @@ class SchemaConsistencyMode(str, Enum):
|
|
|
254
266
|
strong = "strong"
|
|
255
267
|
|
|
256
268
|
|
|
269
|
+
class SchemaLedgerAccountStatus(str, Enum):
|
|
270
|
+
active = "active"
|
|
271
|
+
archived = "archived"
|
|
272
|
+
disabled = "disabled"
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
class SchemaLedgerEntryStatus(str, Enum):
|
|
276
|
+
active = "active"
|
|
277
|
+
archived = "archived"
|
|
278
|
+
disabled = "disabled"
|
|
279
|
+
|
|
280
|
+
|
|
257
281
|
class StripeEnv(str, Enum):
|
|
258
282
|
livemode = "livemode"
|
|
259
283
|
testmode = "testmode"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Generated by fragment (with the help of ariadne-codegen)
|
|
2
|
+
# Source: queries/
|
|
3
|
+
|
|
4
|
+
from typing import Any, Optional
|
|
5
|
+
|
|
6
|
+
from pydantic import Field
|
|
7
|
+
|
|
8
|
+
from .base_model import BaseModel
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetLedgerAccountBalanceWithChildRollup(BaseModel):
|
|
12
|
+
ledger_account: Optional["GetLedgerAccountBalanceWithChildRollupLedgerAccount"] = (
|
|
13
|
+
Field(alias="ledgerAccount")
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class GetLedgerAccountBalanceWithChildRollupLedgerAccount(BaseModel):
|
|
18
|
+
id: str
|
|
19
|
+
path: str
|
|
20
|
+
balance: Any
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
GetLedgerAccountBalanceWithChildRollup.model_rebuild()
|
|
@@ -11,10 +11,14 @@ from .enums import (
|
|
|
11
11
|
CurrencyCode,
|
|
12
12
|
CurrencyMode,
|
|
13
13
|
LedgerAccountTypes,
|
|
14
|
+
LedgerDataMigrationStatus,
|
|
14
15
|
LedgerLinesConsistencyMode,
|
|
15
16
|
LedgerTypes,
|
|
17
|
+
LinkType,
|
|
16
18
|
SceneEventType,
|
|
17
19
|
SchemaConsistencyMode,
|
|
20
|
+
SchemaLedgerAccountStatus,
|
|
21
|
+
SchemaLedgerEntryStatus,
|
|
18
22
|
TxType,
|
|
19
23
|
)
|
|
20
24
|
|
|
@@ -137,8 +141,20 @@ class GroupBalanceAccountFilter(BaseModel):
|
|
|
137
141
|
|
|
138
142
|
|
|
139
143
|
class GroupFilter(BaseModel):
|
|
144
|
+
equal_to: Optional["GroupMatchInput"] = Field(alias="equalTo", default=None)
|
|
145
|
+
in_: Optional[List["GroupMatchInput"]] = Field(alias="in", default=None)
|
|
146
|
+
key_equal_to: Optional[Any] = Field(alias="keyEqualTo", default=None)
|
|
140
147
|
key_in: Optional[List[Any]] = Field(alias="keyIn", default=None)
|
|
141
148
|
not_: Optional["GroupNotFilter"] = Field(alias="not", default=None)
|
|
149
|
+
not_equal_to: Optional["GroupMatchInput"] = Field(alias="notEqualTo", default=None)
|
|
150
|
+
not_in: Optional[List["GroupMatchInput"]] = Field(alias="notIn", default=None)
|
|
151
|
+
not_key_equal_to: Optional[Any] = Field(alias="notKeyEqualTo", default=None)
|
|
152
|
+
not_key_in: Optional[List[Any]] = Field(alias="notKeyIn", default=None)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
class GroupMatchInput(BaseModel):
|
|
156
|
+
key: Any
|
|
157
|
+
value: Any
|
|
142
158
|
|
|
143
159
|
|
|
144
160
|
class GroupNotFilter(BaseModel):
|
|
@@ -170,6 +186,11 @@ class LedgerAccountConsistencyConfigInput(BaseModel):
|
|
|
170
186
|
)
|
|
171
187
|
|
|
172
188
|
|
|
189
|
+
class LedgerAccountDataMigrationsFilterSet(BaseModel):
|
|
190
|
+
account_path: Optional[Any] = Field(alias="accountPath", default=None)
|
|
191
|
+
status: Optional[LedgerDataMigrationStatus] = None
|
|
192
|
+
|
|
193
|
+
|
|
173
194
|
class LedgerAccountFilter(BaseModel):
|
|
174
195
|
equal_to: Optional["LedgerAccountMatchInput"] = Field(alias="equalTo", default=None)
|
|
175
196
|
in_: Optional[List["LedgerAccountMatchInput"]] = Field(alias="in", default=None)
|
|
@@ -221,6 +242,7 @@ class LedgerEntriesFilterSet(BaseModel):
|
|
|
221
242
|
show_hidden: Optional[bool] = Field(alias="showHidden", default=None)
|
|
222
243
|
tag: Optional["TagFilter"] = None
|
|
223
244
|
type: Optional["StringFilter"] = None
|
|
245
|
+
type_version: Optional["StringFilter"] = Field(alias="typeVersion", default=None)
|
|
224
246
|
|
|
225
247
|
|
|
226
248
|
class LedgerEntryConditionInput(BaseModel):
|
|
@@ -230,11 +252,23 @@ class LedgerEntryConditionInput(BaseModel):
|
|
|
230
252
|
precondition: Optional["LedgerAccountConditionInput"] = None
|
|
231
253
|
|
|
232
254
|
|
|
255
|
+
class LedgerEntryDataMigrationsFilterSet(BaseModel):
|
|
256
|
+
entry_type: Optional[Any] = Field(alias="entryType", default=None)
|
|
257
|
+
status: Optional[LedgerDataMigrationStatus] = None
|
|
258
|
+
type_version: Optional[int] = Field(alias="typeVersion", default=None)
|
|
259
|
+
|
|
260
|
+
|
|
233
261
|
class LedgerEntryFilter(BaseModel):
|
|
234
262
|
equal_to: Optional["LedgerEntryMatchInput"] = Field(alias="equalTo", default=None)
|
|
235
263
|
in_: Optional[List["LedgerEntryMatchInput"]] = Field(alias="in", default=None)
|
|
236
264
|
|
|
237
265
|
|
|
266
|
+
class LedgerEntryGroupBalanceFilter(BaseModel):
|
|
267
|
+
account: "GroupBalanceAccountFilter"
|
|
268
|
+
currency: Optional["CurrencyFilter"] = None
|
|
269
|
+
own_balance: Optional["Int96Filter"] = Field(alias="ownBalance", default=None)
|
|
270
|
+
|
|
271
|
+
|
|
238
272
|
class LedgerEntryGroupBalanceFilterSet(BaseModel):
|
|
239
273
|
account: Optional["GroupBalanceAccountFilter"] = None
|
|
240
274
|
currency: Optional["CurrencyFilter"] = None
|
|
@@ -253,6 +287,7 @@ class LedgerEntryGroupMatchInput(BaseModel):
|
|
|
253
287
|
|
|
254
288
|
|
|
255
289
|
class LedgerEntryGroupsFilterSet(BaseModel):
|
|
290
|
+
balance: Optional["LedgerEntryGroupBalanceFilter"] = None
|
|
256
291
|
created: Optional["DateTimeFilter"] = None
|
|
257
292
|
key: Optional["StringFilter"] = None
|
|
258
293
|
value: Optional["StringFilter"] = None
|
|
@@ -297,6 +332,7 @@ class LedgerLineMatchInput(BaseModel):
|
|
|
297
332
|
|
|
298
333
|
class LedgerLinesFilterSet(BaseModel):
|
|
299
334
|
created: Optional["DateTimeFilter"] = None
|
|
335
|
+
currency: Optional["CurrencyFilter"] = None
|
|
300
336
|
date: Optional["DateFilter"] = None
|
|
301
337
|
is_reversal: Optional[bool] = Field(alias="isReversal", default=None)
|
|
302
338
|
is_reversed: Optional[bool] = Field(alias="isReversed", default=None)
|
|
@@ -325,9 +361,15 @@ class LinkMatchInput(BaseModel):
|
|
|
325
361
|
id: str
|
|
326
362
|
|
|
327
363
|
|
|
364
|
+
class MigrateLedgerEntryInput(BaseModel):
|
|
365
|
+
id: str
|
|
366
|
+
new_ledger_entry: "LedgerEntryInput" = Field(alias="newLedgerEntry")
|
|
367
|
+
|
|
368
|
+
|
|
328
369
|
class SceneEntryInput(BaseModel):
|
|
329
370
|
parameters: Optional[Any] = None
|
|
330
371
|
type: Any
|
|
372
|
+
type_version: Optional[int] = Field(alias="typeVersion", default=None)
|
|
331
373
|
|
|
332
374
|
|
|
333
375
|
class SceneEventInput(BaseModel):
|
|
@@ -359,6 +401,7 @@ class SchemaExternalAccountMatchInput(BaseModel):
|
|
|
359
401
|
external_id: Optional[Any] = Field(alias="externalId", default=None)
|
|
360
402
|
id: Optional[Any] = None
|
|
361
403
|
link_id: Optional[Any] = Field(alias="linkId", default=None)
|
|
404
|
+
link_type: Optional[LinkType] = Field(alias="linkType", default=None)
|
|
362
405
|
|
|
363
406
|
|
|
364
407
|
class SchemaInput(BaseModel):
|
|
@@ -392,6 +435,7 @@ class SchemaLedgerAccountInput(BaseModel):
|
|
|
392
435
|
alias="linkedAccount", default=None
|
|
393
436
|
)
|
|
394
437
|
name: Optional[Any] = None
|
|
438
|
+
status: Optional[SchemaLedgerAccountStatus] = None
|
|
395
439
|
template: Optional[bool] = None
|
|
396
440
|
type: Optional[LedgerAccountTypes] = None
|
|
397
441
|
|
|
@@ -422,6 +466,7 @@ class SchemaLedgerEntryInput(BaseModel):
|
|
|
422
466
|
groups: Optional[List["SchemaLedgerEntryGroupInput"]] = None
|
|
423
467
|
lines: Optional[List["SchemaLedgerLineInput"]] = None
|
|
424
468
|
parameters: Optional[Any] = None
|
|
469
|
+
status: Optional[SchemaLedgerEntryStatus] = None
|
|
425
470
|
tags: Optional[List["SchemaLedgerEntryTagInput"]] = None
|
|
426
471
|
type: Any
|
|
427
472
|
type_version: Optional[int] = Field(alias="typeVersion", default=None)
|
|
@@ -469,6 +514,12 @@ class TagFilter(BaseModel):
|
|
|
469
514
|
contains: Optional["TagMatchInput"] = None
|
|
470
515
|
equal_to: Optional["TagMatchInput"] = Field(alias="equalTo", default=None)
|
|
471
516
|
in_: Optional[List["TagMatchInput"]] = Field(alias="in", default=None)
|
|
517
|
+
key_equal_to: Optional[Any] = Field(alias="keyEqualTo", default=None)
|
|
518
|
+
key_in: Optional[List[Any]] = Field(alias="keyIn", default=None)
|
|
519
|
+
not_equal_to: Optional["TagMatchInput"] = Field(alias="notEqualTo", default=None)
|
|
520
|
+
not_in: Optional[List["TagMatchInput"]] = Field(alias="notIn", default=None)
|
|
521
|
+
not_key_equal_to: Optional[Any] = Field(alias="notKeyEqualTo", default=None)
|
|
522
|
+
not_key_in: Optional[List[Any]] = Field(alias="notKeyIn", default=None)
|
|
472
523
|
|
|
473
524
|
|
|
474
525
|
class TagMatchInput(BaseModel):
|
|
@@ -499,6 +550,9 @@ class UpdateLedgerAccountInput(BaseModel):
|
|
|
499
550
|
class UpdateLedgerEntryInput(BaseModel):
|
|
500
551
|
groups: Optional[List["LedgerEntryGroupInput"]] = None
|
|
501
552
|
tags: Optional[List["LedgerEntryTagInput"]] = None
|
|
553
|
+
tags_to_remove: Optional[List["LedgerEntryTagInput"]] = Field(
|
|
554
|
+
alias="tagsToRemove", default=None
|
|
555
|
+
)
|
|
502
556
|
|
|
503
557
|
|
|
504
558
|
class UpdateLedgerInput(BaseModel):
|