fragment-python 0.1.2__tar.gz → 0.2.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.
Files changed (73) hide show
  1. {fragment_python-0.1.2 → fragment_python-0.2.1}/PKG-INFO +22 -2
  2. {fragment_python-0.1.2 → fragment_python-0.2.1}/README.md +21 -1
  3. fragment_python-0.2.1/fragment/client/sync_client.py +63 -0
  4. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/codegen/helpers.py +10 -5
  5. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/codegen/main.py +8 -1
  6. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/base_model.py +2 -1
  7. fragment_python-0.2.1/fragment/sync_sdk/__init__.py +478 -0
  8. fragment_python-0.2.1/fragment/sync_sdk/add_ledger_entry.py +54 -0
  9. fragment_python-0.2.1/fragment/sync_sdk/add_ledger_entry_runtime.py +54 -0
  10. fragment_python-0.2.1/fragment/sync_sdk/async_client.py +69 -0
  11. fragment_python-0.2.1/fragment/sync_sdk/base_model.py +30 -0
  12. fragment_python-0.2.1/fragment/sync_sdk/client.py +1071 -0
  13. fragment_python-0.2.1/fragment/sync_sdk/create_custom_link.py +40 -0
  14. fragment_python-0.2.1/fragment/sync_sdk/create_ledger.py +49 -0
  15. fragment_python-0.2.1/fragment/sync_sdk/enums.py +263 -0
  16. fragment_python-0.2.1/fragment/sync_sdk/get_ledger.py +23 -0
  17. fragment_python-0.2.1/fragment/sync_sdk/get_ledger_account_balance.py +23 -0
  18. fragment_python-0.2.1/fragment/sync_sdk/get_ledger_account_lines.py +47 -0
  19. fragment_python-0.2.1/fragment/sync_sdk/get_ledger_entry.py +41 -0
  20. fragment_python-0.2.1/fragment/sync_sdk/get_schema.py +28 -0
  21. fragment_python-0.2.1/fragment/sync_sdk/get_workspace.py +16 -0
  22. fragment_python-0.2.1/fragment/sync_sdk/input_types.py +482 -0
  23. fragment_python-0.2.1/fragment/sync_sdk/list_ledger_account_balances.py +53 -0
  24. fragment_python-0.2.1/fragment/sync_sdk/list_ledger_accounts.py +50 -0
  25. fragment_python-0.2.1/fragment/sync_sdk/list_ledger_entries.py +58 -0
  26. fragment_python-0.2.1/fragment/sync_sdk/list_ledger_entry_group_balances.py +57 -0
  27. fragment_python-0.2.1/fragment/sync_sdk/list_multi_currency_ledger_account_balances.py +130 -0
  28. fragment_python-0.2.1/fragment/sync_sdk/reconcile_tx.py +55 -0
  29. fragment_python-0.2.1/fragment/sync_sdk/reconcile_tx_runtime.py +55 -0
  30. fragment_python-0.2.1/fragment/sync_sdk/store_schema.py +45 -0
  31. fragment_python-0.2.1/fragment/sync_sdk/sync_custom_accounts.py +53 -0
  32. fragment_python-0.2.1/fragment/sync_sdk/sync_custom_txs.py +44 -0
  33. fragment_python-0.2.1/fragment/sync_sdk/update_ledger.py +39 -0
  34. fragment_python-0.2.1/fragment/sync_sdk/update_ledger_entry.py +77 -0
  35. {fragment_python-0.1.2 → fragment_python-0.2.1}/pyproject.toml +1 -1
  36. {fragment_python-0.1.2 → fragment_python-0.2.1}/LICENSE +0 -0
  37. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/__init__.py +0 -0
  38. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/client/__init__.py +0 -0
  39. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/client/async_client.py +0 -0
  40. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/codegen/__init__.py +0 -0
  41. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/codegen/plugins/__init__.py +0 -0
  42. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/codegen/plugins/generate_client_method.py +0 -0
  43. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/codegen/plugins/get_file_comment.py +0 -0
  44. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/exceptions.py +0 -0
  45. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/logger.py +0 -0
  46. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/__init__.py +0 -0
  47. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/add_ledger_entry.py +0 -0
  48. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/add_ledger_entry_runtime.py +0 -0
  49. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/async_client.py +0 -0
  50. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/client.py +0 -0
  51. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/create_custom_link.py +0 -0
  52. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/create_ledger.py +0 -0
  53. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/enums.py +0 -0
  54. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/get_ledger.py +0 -0
  55. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/get_ledger_account_balance.py +0 -0
  56. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/get_ledger_account_lines.py +0 -0
  57. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/get_ledger_entry.py +0 -0
  58. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/get_schema.py +0 -0
  59. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/get_workspace.py +0 -0
  60. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/input_types.py +0 -0
  61. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/list_ledger_account_balances.py +0 -0
  62. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/list_ledger_accounts.py +0 -0
  63. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/list_ledger_entries.py +0 -0
  64. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/list_ledger_entry_group_balances.py +0 -0
  65. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/list_multi_currency_ledger_account_balances.py +0 -0
  66. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/reconcile_tx.py +0 -0
  67. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/reconcile_tx_runtime.py +0 -0
  68. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/store_schema.py +0 -0
  69. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/sync_custom_accounts.py +0 -0
  70. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/sync_custom_txs.py +0 -0
  71. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/update_ledger.py +0 -0
  72. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/sdk/update_ledger_entry.py +0 -0
  73. {fragment_python-0.1.2 → fragment_python-0.2.1}/fragment/std_queries/queries.graphql +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fragment-python
3
- Version: 0.1.2
3
+ Version: 0.2.1
4
4
  Summary: Python SDK for https://fragment.dev/
5
5
  License: Apache 2.0
6
6
  Author: Fragment Foundries Inc
@@ -63,6 +63,26 @@ loop.run_until_complete(print_schema())
63
63
 
64
64
  Read the [Using custom queries](#using-custom-queries) section to learn how to use your own GraphQL queries with the SDK.
65
65
 
66
+ ### Using a synchronous client
67
+
68
+ If you prefer using a synchronous client instead of an async one, then:
69
+
70
+ ```python
71
+ from fragment.sync_sdk.client import Client
72
+
73
+ graphql_client = Client(
74
+ client_id="<client id from the dashboard>",
75
+ client_secret="<client secret from the dashboard>",
76
+ api_url="<api url from the dashboard>",
77
+ auth_url="<auth url from the dashboard>",
78
+ auth_scope="<auth scope from the dashboard>",
79
+ )
80
+
81
+ get_schema_result = graphql_client.get_schema("<Your schema key here>")
82
+ print(get_schema_result.schema_.json())
83
+
84
+ ```
85
+
66
86
  ## Examples
67
87
 
68
88
  ### Post a Ledger Entry
@@ -110,7 +130,7 @@ query getSchemaName($key: SafeString!) {
110
130
  }
111
131
  }
112
132
  ```
113
- 2. Run `fragment-python-client-codegen` to generate the GraphQL SDK client. GraphQL named queries are converted to snake_case to conform to Python's code conventions.
133
+ 2. Run `fragment-python-client-codegen` to generate the GraphQL SDK client. GraphQL named queries are converted to snake_case to conform to Python's code conventions. Optionally, pass the `--sync` flag to generate a synchronous client instead of the default async GraphQL client.
114
134
  ```bash
115
135
  fragment-python-client-codegen \
116
136
  --input-dir queries/ \
@@ -42,6 +42,26 @@ loop.run_until_complete(print_schema())
42
42
 
43
43
  Read the [Using custom queries](#using-custom-queries) section to learn how to use your own GraphQL queries with the SDK.
44
44
 
45
+ ### Using a synchronous client
46
+
47
+ If you prefer using a synchronous client instead of an async one, then:
48
+
49
+ ```python
50
+ from fragment.sync_sdk.client import Client
51
+
52
+ graphql_client = Client(
53
+ client_id="<client id from the dashboard>",
54
+ client_secret="<client secret from the dashboard>",
55
+ api_url="<api url from the dashboard>",
56
+ auth_url="<auth url from the dashboard>",
57
+ auth_scope="<auth scope from the dashboard>",
58
+ )
59
+
60
+ get_schema_result = graphql_client.get_schema("<Your schema key here>")
61
+ print(get_schema_result.schema_.json())
62
+
63
+ ```
64
+
45
65
  ## Examples
46
66
 
47
67
  ### Post a Ledger Entry
@@ -89,7 +109,7 @@ query getSchemaName($key: SafeString!) {
89
109
  }
90
110
  }
91
111
  ```
92
- 2. Run `fragment-python-client-codegen` to generate the GraphQL SDK client. GraphQL named queries are converted to snake_case to conform to Python's code conventions.
112
+ 2. Run `fragment-python-client-codegen` to generate the GraphQL SDK client. GraphQL named queries are converted to snake_case to conform to Python's code conventions. Optionally, pass the `--sync` flag to generate a synchronous client instead of the default async GraphQL client.
93
113
  ```bash
94
114
  fragment-python-client-codegen \
95
115
  --input-dir queries/ \
@@ -0,0 +1,63 @@
1
+ # Ignore untyped authlib
2
+ # mypy: disable-error-code="import-untyped"
3
+ import time
4
+ from typing import Any, Dict, Optional
5
+
6
+ import httpx
7
+ from ariadne_codegen.client_generators.dependencies.base_client import BaseClient
8
+ from authlib.integrations.httpx_client import OAuth2Client
9
+
10
+ from fragment.exceptions import MissingArgumentException, MissingTokenException
11
+
12
+
13
+ class SyncFragmentClient(BaseClient):
14
+ def __init__(
15
+ self,
16
+ api_url: str = "",
17
+ auth_url: str = "",
18
+ auth_scope: str = "",
19
+ client_id: str = "",
20
+ client_secret: str = "",
21
+ http_client: Optional[httpx.Client] = None,
22
+ ):
23
+ if api_url == "":
24
+ raise MissingArgumentException("api_url")
25
+ if auth_url == "":
26
+ raise MissingArgumentException("auth_url")
27
+ if auth_scope == "":
28
+ raise MissingArgumentException("auth_scope")
29
+ if client_id == "":
30
+ raise MissingArgumentException("client_id")
31
+ if client_secret == "":
32
+ raise MissingArgumentException("client_secret")
33
+ super().__init__(url=api_url, http_client=http_client)
34
+
35
+ self.auth_url = auth_url
36
+ self.expiration_time = None
37
+ self.token = None
38
+ self.oauth2_client = OAuth2Client(client_id, client_secret, scope=auth_scope)
39
+
40
+ def refresh_token(self):
41
+ now = time.time()
42
+ if self.expiration_time is None or self.expiration_time <= now:
43
+ self.token = self.oauth2_client.fetch_token(self.auth_url)
44
+ self.expiration_time = now + self.token["expires_in"]
45
+
46
+ def execute(
47
+ self,
48
+ query: str,
49
+ operation_name: Optional[str] = None,
50
+ variables: Optional[Dict[str, Any]] = None,
51
+ **kwargs: Any,
52
+ ) -> httpx.Response:
53
+ self.refresh_token()
54
+ if self.token is None:
55
+ raise MissingTokenException()
56
+ headers = kwargs.get("headers", {})
57
+ kwargs.update(
58
+ headers={
59
+ "Authorization": f'Bearer {self.token["access_token"]}',
60
+ **headers,
61
+ }
62
+ )
63
+ return super().execute(query, operation_name, variables, **kwargs)
@@ -18,9 +18,15 @@ def get_codegen_config(
18
18
  schema_path: str,
19
19
  queries_path: str,
20
20
  target_package_name: str,
21
- target_package_path: Optional[str] = None
21
+ target_package_path: Optional[str] = None,
22
+ use_sync_client: bool = False,
22
23
  ) -> Dict:
23
24
  """Get the configuration for the codegen tool."""
25
+ client_name, file_path = (
26
+ ("AsyncFragmentClient", "../../client/async_client.py")
27
+ if not use_sync_client
28
+ else ("SyncFragmentClient", "../../client/sync_client.py")
29
+ )
24
30
  return dict(
25
31
  tool={
26
32
  "ariadne-codegen": dict(
@@ -30,10 +36,9 @@ def get_codegen_config(
30
36
  target_package_path=(
31
37
  target_package_path if target_package_path else Path.cwd()
32
38
  ),
33
- base_client_name="AsyncFragmentClient",
34
- base_client_file_path=get_project_path_relative_to_file(
35
- "../../client/async_client.py"
36
- ),
39
+ base_client_name=client_name,
40
+ base_client_file_path=get_project_path_relative_to_file(file_path),
41
+ async_client=False if use_sync_client else True,
37
42
  plugins=[
38
43
  "fragment.codegen.plugins.get_file_comment.GenerateFileComment",
39
44
  "fragment.codegen.plugins.generate_client_method.RewriteUnsetTypeMethodArguments",
@@ -37,7 +37,13 @@ GRAPHQL_SCHEMA_API_URL = "https://api.us-west-2.fragment.dev/schema.graphql"
37
37
  help="The output directory for the generated SDK. Defaults to CWD.",
38
38
  required=False,
39
39
  )
40
- def run(input_dir, target_package_name, output_dir=None):
40
+ @click.option(
41
+ "--sync",
42
+ help="Generate a synchronous client. Defaults to async.",
43
+ required=False,
44
+ is_flag=True,
45
+ )
46
+ def run(input_dir, target_package_name, sync, output_dir=None):
41
47
  console_log.info(f"Downloading the GraphQL schema from {GRAPHQL_SCHEMA_API_URL}")
42
48
  try:
43
49
  r = httpx.get(GRAPHQL_SCHEMA_API_URL)
@@ -53,6 +59,7 @@ def run(input_dir, target_package_name, output_dir=None):
53
59
  standard_query_file.write(get_standard_queries())
54
60
  standard_query_file.flush()
55
61
  config_dict = get_codegen_config(
62
+ use_sync_client=sync,
56
63
  schema_path=schema_file.name,
57
64
  queries_path=input_dir,
58
65
  target_package_name=target_package_name,
@@ -2,7 +2,8 @@
2
2
 
3
3
  from io import IOBase
4
4
 
5
- from pydantic import BaseModel as PydanticBaseModel, ConfigDict
5
+ from pydantic import BaseModel as PydanticBaseModel
6
+ from pydantic import ConfigDict
6
7
 
7
8
 
8
9
  class UnsetType:
@@ -0,0 +1,478 @@
1
+ # Generated by fragment (with the help of ariadne-codegen)
2
+
3
+ from .add_ledger_entry import (
4
+ AddLedgerEntry,
5
+ AddLedgerEntryAddLedgerEntryAddLedgerEntryResult,
6
+ AddLedgerEntryAddLedgerEntryAddLedgerEntryResultEntry,
7
+ AddLedgerEntryAddLedgerEntryAddLedgerEntryResultLines,
8
+ AddLedgerEntryAddLedgerEntryAddLedgerEntryResultLinesAccount,
9
+ AddLedgerEntryAddLedgerEntryBadRequestError,
10
+ AddLedgerEntryAddLedgerEntryInternalError,
11
+ )
12
+ from .add_ledger_entry_runtime import (
13
+ AddLedgerEntryRuntime,
14
+ AddLedgerEntryRuntimeAddLedgerEntryAddLedgerEntryResult,
15
+ AddLedgerEntryRuntimeAddLedgerEntryAddLedgerEntryResultEntry,
16
+ AddLedgerEntryRuntimeAddLedgerEntryAddLedgerEntryResultLines,
17
+ AddLedgerEntryRuntimeAddLedgerEntryAddLedgerEntryResultLinesAccount,
18
+ AddLedgerEntryRuntimeAddLedgerEntryBadRequestError,
19
+ AddLedgerEntryRuntimeAddLedgerEntryInternalError,
20
+ )
21
+ from .async_client import AsyncFragmentClient
22
+ from .base_model import BaseModel, Upload
23
+ from .client import Client
24
+ from .create_custom_link import (
25
+ CreateCustomLink,
26
+ CreateCustomLinkCreateCustomLinkBadRequestError,
27
+ CreateCustomLinkCreateCustomLinkCreateCustomLinkResult,
28
+ CreateCustomLinkCreateCustomLinkCreateCustomLinkResultLink,
29
+ CreateCustomLinkCreateCustomLinkInternalError,
30
+ )
31
+ from .create_ledger import (
32
+ CreateLedger,
33
+ CreateLedgerCreateLedgerBadRequestError,
34
+ CreateLedgerCreateLedgerCreateLedgerResult,
35
+ CreateLedgerCreateLedgerCreateLedgerResultLedger,
36
+ CreateLedgerCreateLedgerCreateLedgerResultLedgerSchema,
37
+ CreateLedgerCreateLedgerInternalError,
38
+ )
39
+ from .enums import (
40
+ BalanceUpdateConsistencyMode,
41
+ CurrencyCode,
42
+ CurrencyMode,
43
+ ExternalTransferType,
44
+ ExternalTxSource,
45
+ IncreaseEnv,
46
+ LedgerAccountTypes,
47
+ LedgerLinesConsistencyMode,
48
+ LedgerMigrationStatus,
49
+ LedgerTypes,
50
+ ReadBalanceConsistencyMode,
51
+ SceneEventType,
52
+ SchemaConsistencyMode,
53
+ StripeEnv,
54
+ TxType,
55
+ UnitEnv,
56
+ )
57
+ from .get_ledger import GetLedger, GetLedgerLedger
58
+ from .get_ledger_account_balance import (
59
+ GetLedgerAccountBalance,
60
+ GetLedgerAccountBalanceLedgerAccount,
61
+ )
62
+ from .get_ledger_account_lines import (
63
+ GetLedgerAccountLines,
64
+ GetLedgerAccountLinesLedgerAccount,
65
+ GetLedgerAccountLinesLedgerAccountLines,
66
+ GetLedgerAccountLinesLedgerAccountLinesNodes,
67
+ GetLedgerAccountLinesLedgerAccountLinesPageInfo,
68
+ )
69
+ from .get_ledger_entry import (
70
+ GetLedgerEntry,
71
+ GetLedgerEntryLedgerEntry,
72
+ GetLedgerEntryLedgerEntryLines,
73
+ GetLedgerEntryLedgerEntryLinesNodes,
74
+ GetLedgerEntryLedgerEntryLinesNodesAccount,
75
+ )
76
+ from .get_schema import GetSchema, GetSchemaSchema, GetSchemaSchemaVersion
77
+ from .get_workspace import GetWorkspace, GetWorkspaceWorkspace
78
+ from .input_types import (
79
+ ChartOfAccountsInput,
80
+ CreateCustomCurrencyInput,
81
+ CreateLedgerAccountInput,
82
+ CreateLedgerAccountsInput,
83
+ CreateLedgerInput,
84
+ CurrencyFilter,
85
+ CurrencyMatchInput,
86
+ CustomAccountInput,
87
+ CustomTxInput,
88
+ DateFilter,
89
+ DateTimeFilter,
90
+ EntryGroupMatchInput,
91
+ ExternalAccountFilter,
92
+ ExternalAccountMatchInput,
93
+ GroupBalanceAccountFilter,
94
+ Int96ConditionInput,
95
+ Int96Filter,
96
+ LedgerAccountConditionInput,
97
+ LedgerAccountConsistencyConfigInput,
98
+ LedgerAccountFilter,
99
+ LedgerAccountGroupConsistencyConfigInput,
100
+ LedgerAccountMatchInput,
101
+ LedgerAccountsFilterSet,
102
+ LedgerAccountTypeFilter,
103
+ LedgerEntriesFilterSet,
104
+ LedgerEntryConditionInput,
105
+ LedgerEntryFilter,
106
+ LedgerEntryGroupBalanceFilterSet,
107
+ LedgerEntryGroupInput,
108
+ LedgerEntryGroupMatchInput,
109
+ LedgerEntryGroupsFilterSet,
110
+ LedgerEntryInput,
111
+ LedgerEntryMatchInput,
112
+ LedgerEntryTagInput,
113
+ LedgerLineInput,
114
+ LedgerLineMatchInput,
115
+ LedgerLinesFilterSet,
116
+ LedgerMatchInput,
117
+ LedgersFilterSet,
118
+ LedgerTypeFilter,
119
+ LinkMatchInput,
120
+ SceneEntryInput,
121
+ SceneEventInput,
122
+ SceneInput,
123
+ SchemaConditionInput,
124
+ SchemaConsistencyConfigInput,
125
+ SchemaCurrencyMatchInput,
126
+ SchemaExternalAccountMatchInput,
127
+ SchemaInput,
128
+ SchemaInt96ConditionInput,
129
+ SchemaLedgerAccountInput,
130
+ SchemaLedgerAccountMatchInput,
131
+ SchemaLedgerEntriesInput,
132
+ SchemaLedgerEntryConditionInput,
133
+ SchemaLedgerEntryGroupInput,
134
+ SchemaLedgerEntryInput,
135
+ SchemaLedgerEntryTagInput,
136
+ SchemaLedgerLineInput,
137
+ SchemaMatchInput,
138
+ SchemaTxMatchInput,
139
+ StringFilter,
140
+ StringMatchFilter,
141
+ TagFilter,
142
+ TagMatchInput,
143
+ TxMatchInput,
144
+ TxTypeFilter,
145
+ UpdateLedgerAccountInput,
146
+ UpdateLedgerEntryInput,
147
+ UpdateLedgerInput,
148
+ )
149
+ from .list_ledger_account_balances import (
150
+ ListLedgerAccountBalances,
151
+ ListLedgerAccountBalancesLedger,
152
+ ListLedgerAccountBalancesLedgerLedgerAccounts,
153
+ ListLedgerAccountBalancesLedgerLedgerAccountsNodes,
154
+ ListLedgerAccountBalancesLedgerLedgerAccountsPageInfo,
155
+ )
156
+ from .list_ledger_accounts import (
157
+ ListLedgerAccounts,
158
+ ListLedgerAccountsLedger,
159
+ ListLedgerAccountsLedgerLedgerAccounts,
160
+ ListLedgerAccountsLedgerLedgerAccountsNodes,
161
+ ListLedgerAccountsLedgerLedgerAccountsPageInfo,
162
+ )
163
+ from .list_ledger_entries import (
164
+ ListLedgerEntries,
165
+ ListLedgerEntriesLedger,
166
+ ListLedgerEntriesLedgerLedgerEntries,
167
+ ListLedgerEntriesLedgerLedgerEntriesNodes,
168
+ ListLedgerEntriesLedgerLedgerEntriesNodesLines,
169
+ ListLedgerEntriesLedgerLedgerEntriesNodesLinesNodes,
170
+ ListLedgerEntriesLedgerLedgerEntriesNodesLinesNodesAccount,
171
+ ListLedgerEntriesLedgerLedgerEntriesPageInfo,
172
+ )
173
+ from .list_ledger_entry_group_balances import (
174
+ ListLedgerEntryGroupBalances,
175
+ ListLedgerEntryGroupBalancesLedgerEntryGroup,
176
+ ListLedgerEntryGroupBalancesLedgerEntryGroupBalances,
177
+ ListLedgerEntryGroupBalancesLedgerEntryGroupBalancesNodes,
178
+ ListLedgerEntryGroupBalancesLedgerEntryGroupBalancesNodesAccount,
179
+ ListLedgerEntryGroupBalancesLedgerEntryGroupBalancesNodesCurrency,
180
+ ListLedgerEntryGroupBalancesLedgerEntryGroupBalancesPageInfo,
181
+ )
182
+ from .list_multi_currency_ledger_account_balances import (
183
+ ListMultiCurrencyLedgerAccountBalances,
184
+ ListMultiCurrencyLedgerAccountBalancesLedger,
185
+ ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccounts,
186
+ ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodes,
187
+ ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesBalances,
188
+ ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesBalancesNodes,
189
+ ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesBalancesNodesCurrency,
190
+ ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesChildBalances,
191
+ ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesChildBalancesNodes,
192
+ ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesChildBalancesNodesCurrency,
193
+ ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesOwnBalances,
194
+ ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesOwnBalancesNodes,
195
+ ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesOwnBalancesNodesCurrency,
196
+ ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsPageInfo,
197
+ )
198
+ from .reconcile_tx import (
199
+ ReconcileTx,
200
+ ReconcileTxReconcileTxBadRequestError,
201
+ ReconcileTxReconcileTxInternalError,
202
+ ReconcileTxReconcileTxReconcileTxResult,
203
+ ReconcileTxReconcileTxReconcileTxResultEntry,
204
+ ReconcileTxReconcileTxReconcileTxResultLines,
205
+ ReconcileTxReconcileTxReconcileTxResultLinesAccount,
206
+ )
207
+ from .reconcile_tx_runtime import (
208
+ ReconcileTxRuntime,
209
+ ReconcileTxRuntimeReconcileTxBadRequestError,
210
+ ReconcileTxRuntimeReconcileTxInternalError,
211
+ ReconcileTxRuntimeReconcileTxReconcileTxResult,
212
+ ReconcileTxRuntimeReconcileTxReconcileTxResultEntry,
213
+ ReconcileTxRuntimeReconcileTxReconcileTxResultLines,
214
+ ReconcileTxRuntimeReconcileTxReconcileTxResultLinesAccount,
215
+ )
216
+ from .store_schema import (
217
+ StoreSchema,
218
+ StoreSchemaStoreSchemaBadRequestError,
219
+ StoreSchemaStoreSchemaInternalError,
220
+ StoreSchemaStoreSchemaStoreSchemaResult,
221
+ StoreSchemaStoreSchemaStoreSchemaResultSchema,
222
+ StoreSchemaStoreSchemaStoreSchemaResultSchemaVersion,
223
+ )
224
+ from .sync_custom_accounts import (
225
+ SyncCustomAccounts,
226
+ SyncCustomAccountsSyncCustomAccountsBadRequestError,
227
+ SyncCustomAccountsSyncCustomAccountsInternalError,
228
+ SyncCustomAccountsSyncCustomAccountsSyncCustomAccountsResult,
229
+ SyncCustomAccountsSyncCustomAccountsSyncCustomAccountsResultAccounts,
230
+ SyncCustomAccountsSyncCustomAccountsSyncCustomAccountsResultAccountsCurrency,
231
+ )
232
+ from .sync_custom_txs import (
233
+ SyncCustomTxs,
234
+ SyncCustomTxsSyncCustomTxsBadRequestError,
235
+ SyncCustomTxsSyncCustomTxsInternalError,
236
+ SyncCustomTxsSyncCustomTxsSyncCustomTxsResult,
237
+ SyncCustomTxsSyncCustomTxsSyncCustomTxsResultTxs,
238
+ )
239
+ from .update_ledger import (
240
+ UpdateLedger,
241
+ UpdateLedgerUpdateLedgerBadRequestError,
242
+ UpdateLedgerUpdateLedgerInternalError,
243
+ UpdateLedgerUpdateLedgerUpdateLedgerResult,
244
+ UpdateLedgerUpdateLedgerUpdateLedgerResultLedger,
245
+ )
246
+ from .update_ledger_entry import (
247
+ UpdateLedgerEntry,
248
+ UpdateLedgerEntryUpdateLedgerEntryBadRequestError,
249
+ UpdateLedgerEntryUpdateLedgerEntryInternalError,
250
+ UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResult,
251
+ UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntry,
252
+ UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntryGroups,
253
+ UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntryLines,
254
+ UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntryLinesNodes,
255
+ UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntryLinesNodesAccount,
256
+ UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntryTags,
257
+ )
258
+
259
+ __all__ = [
260
+ "AddLedgerEntry",
261
+ "AddLedgerEntryAddLedgerEntryAddLedgerEntryResult",
262
+ "AddLedgerEntryAddLedgerEntryAddLedgerEntryResultEntry",
263
+ "AddLedgerEntryAddLedgerEntryAddLedgerEntryResultLines",
264
+ "AddLedgerEntryAddLedgerEntryAddLedgerEntryResultLinesAccount",
265
+ "AddLedgerEntryAddLedgerEntryBadRequestError",
266
+ "AddLedgerEntryAddLedgerEntryInternalError",
267
+ "AddLedgerEntryRuntime",
268
+ "AddLedgerEntryRuntimeAddLedgerEntryAddLedgerEntryResult",
269
+ "AddLedgerEntryRuntimeAddLedgerEntryAddLedgerEntryResultEntry",
270
+ "AddLedgerEntryRuntimeAddLedgerEntryAddLedgerEntryResultLines",
271
+ "AddLedgerEntryRuntimeAddLedgerEntryAddLedgerEntryResultLinesAccount",
272
+ "AddLedgerEntryRuntimeAddLedgerEntryBadRequestError",
273
+ "AddLedgerEntryRuntimeAddLedgerEntryInternalError",
274
+ "AsyncFragmentClient",
275
+ "BalanceUpdateConsistencyMode",
276
+ "BaseModel",
277
+ "ChartOfAccountsInput",
278
+ "Client",
279
+ "CreateCustomCurrencyInput",
280
+ "CreateCustomLink",
281
+ "CreateCustomLinkCreateCustomLinkBadRequestError",
282
+ "CreateCustomLinkCreateCustomLinkCreateCustomLinkResult",
283
+ "CreateCustomLinkCreateCustomLinkCreateCustomLinkResultLink",
284
+ "CreateCustomLinkCreateCustomLinkInternalError",
285
+ "CreateLedger",
286
+ "CreateLedgerAccountInput",
287
+ "CreateLedgerAccountsInput",
288
+ "CreateLedgerCreateLedgerBadRequestError",
289
+ "CreateLedgerCreateLedgerCreateLedgerResult",
290
+ "CreateLedgerCreateLedgerCreateLedgerResultLedger",
291
+ "CreateLedgerCreateLedgerCreateLedgerResultLedgerSchema",
292
+ "CreateLedgerCreateLedgerInternalError",
293
+ "CreateLedgerInput",
294
+ "CurrencyCode",
295
+ "CurrencyFilter",
296
+ "CurrencyMatchInput",
297
+ "CurrencyMode",
298
+ "CustomAccountInput",
299
+ "CustomTxInput",
300
+ "DateFilter",
301
+ "DateTimeFilter",
302
+ "EntryGroupMatchInput",
303
+ "ExternalAccountFilter",
304
+ "ExternalAccountMatchInput",
305
+ "ExternalTransferType",
306
+ "ExternalTxSource",
307
+ "GetLedger",
308
+ "GetLedgerAccountBalance",
309
+ "GetLedgerAccountBalanceLedgerAccount",
310
+ "GetLedgerAccountLines",
311
+ "GetLedgerAccountLinesLedgerAccount",
312
+ "GetLedgerAccountLinesLedgerAccountLines",
313
+ "GetLedgerAccountLinesLedgerAccountLinesNodes",
314
+ "GetLedgerAccountLinesLedgerAccountLinesPageInfo",
315
+ "GetLedgerEntry",
316
+ "GetLedgerEntryLedgerEntry",
317
+ "GetLedgerEntryLedgerEntryLines",
318
+ "GetLedgerEntryLedgerEntryLinesNodes",
319
+ "GetLedgerEntryLedgerEntryLinesNodesAccount",
320
+ "GetLedgerLedger",
321
+ "GetSchema",
322
+ "GetSchemaSchema",
323
+ "GetSchemaSchemaVersion",
324
+ "GetWorkspace",
325
+ "GetWorkspaceWorkspace",
326
+ "GroupBalanceAccountFilter",
327
+ "IncreaseEnv",
328
+ "Int96ConditionInput",
329
+ "Int96Filter",
330
+ "LedgerAccountConditionInput",
331
+ "LedgerAccountConsistencyConfigInput",
332
+ "LedgerAccountFilter",
333
+ "LedgerAccountGroupConsistencyConfigInput",
334
+ "LedgerAccountMatchInput",
335
+ "LedgerAccountTypeFilter",
336
+ "LedgerAccountTypes",
337
+ "LedgerAccountsFilterSet",
338
+ "LedgerEntriesFilterSet",
339
+ "LedgerEntryConditionInput",
340
+ "LedgerEntryFilter",
341
+ "LedgerEntryGroupBalanceFilterSet",
342
+ "LedgerEntryGroupInput",
343
+ "LedgerEntryGroupMatchInput",
344
+ "LedgerEntryGroupsFilterSet",
345
+ "LedgerEntryInput",
346
+ "LedgerEntryMatchInput",
347
+ "LedgerEntryTagInput",
348
+ "LedgerLineInput",
349
+ "LedgerLineMatchInput",
350
+ "LedgerLinesConsistencyMode",
351
+ "LedgerLinesFilterSet",
352
+ "LedgerMatchInput",
353
+ "LedgerMigrationStatus",
354
+ "LedgerTypeFilter",
355
+ "LedgerTypes",
356
+ "LedgersFilterSet",
357
+ "LinkMatchInput",
358
+ "ListLedgerAccountBalances",
359
+ "ListLedgerAccountBalancesLedger",
360
+ "ListLedgerAccountBalancesLedgerLedgerAccounts",
361
+ "ListLedgerAccountBalancesLedgerLedgerAccountsNodes",
362
+ "ListLedgerAccountBalancesLedgerLedgerAccountsPageInfo",
363
+ "ListLedgerAccounts",
364
+ "ListLedgerAccountsLedger",
365
+ "ListLedgerAccountsLedgerLedgerAccounts",
366
+ "ListLedgerAccountsLedgerLedgerAccountsNodes",
367
+ "ListLedgerAccountsLedgerLedgerAccountsPageInfo",
368
+ "ListLedgerEntries",
369
+ "ListLedgerEntriesLedger",
370
+ "ListLedgerEntriesLedgerLedgerEntries",
371
+ "ListLedgerEntriesLedgerLedgerEntriesNodes",
372
+ "ListLedgerEntriesLedgerLedgerEntriesNodesLines",
373
+ "ListLedgerEntriesLedgerLedgerEntriesNodesLinesNodes",
374
+ "ListLedgerEntriesLedgerLedgerEntriesNodesLinesNodesAccount",
375
+ "ListLedgerEntriesLedgerLedgerEntriesPageInfo",
376
+ "ListLedgerEntryGroupBalances",
377
+ "ListLedgerEntryGroupBalancesLedgerEntryGroup",
378
+ "ListLedgerEntryGroupBalancesLedgerEntryGroupBalances",
379
+ "ListLedgerEntryGroupBalancesLedgerEntryGroupBalancesNodes",
380
+ "ListLedgerEntryGroupBalancesLedgerEntryGroupBalancesNodesAccount",
381
+ "ListLedgerEntryGroupBalancesLedgerEntryGroupBalancesNodesCurrency",
382
+ "ListLedgerEntryGroupBalancesLedgerEntryGroupBalancesPageInfo",
383
+ "ListMultiCurrencyLedgerAccountBalances",
384
+ "ListMultiCurrencyLedgerAccountBalancesLedger",
385
+ "ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccounts",
386
+ "ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodes",
387
+ "ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesBalances",
388
+ "ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesBalancesNodes",
389
+ "ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesBalancesNodesCurrency",
390
+ "ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesChildBalances",
391
+ "ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesChildBalancesNodes",
392
+ "ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesChildBalancesNodesCurrency",
393
+ "ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesOwnBalances",
394
+ "ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesOwnBalancesNodes",
395
+ "ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsNodesOwnBalancesNodesCurrency",
396
+ "ListMultiCurrencyLedgerAccountBalancesLedgerLedgerAccountsPageInfo",
397
+ "ReadBalanceConsistencyMode",
398
+ "ReconcileTx",
399
+ "ReconcileTxReconcileTxBadRequestError",
400
+ "ReconcileTxReconcileTxInternalError",
401
+ "ReconcileTxReconcileTxReconcileTxResult",
402
+ "ReconcileTxReconcileTxReconcileTxResultEntry",
403
+ "ReconcileTxReconcileTxReconcileTxResultLines",
404
+ "ReconcileTxReconcileTxReconcileTxResultLinesAccount",
405
+ "ReconcileTxRuntime",
406
+ "ReconcileTxRuntimeReconcileTxBadRequestError",
407
+ "ReconcileTxRuntimeReconcileTxInternalError",
408
+ "ReconcileTxRuntimeReconcileTxReconcileTxResult",
409
+ "ReconcileTxRuntimeReconcileTxReconcileTxResultEntry",
410
+ "ReconcileTxRuntimeReconcileTxReconcileTxResultLines",
411
+ "ReconcileTxRuntimeReconcileTxReconcileTxResultLinesAccount",
412
+ "SceneEntryInput",
413
+ "SceneEventInput",
414
+ "SceneEventType",
415
+ "SceneInput",
416
+ "SchemaConditionInput",
417
+ "SchemaConsistencyConfigInput",
418
+ "SchemaConsistencyMode",
419
+ "SchemaCurrencyMatchInput",
420
+ "SchemaExternalAccountMatchInput",
421
+ "SchemaInput",
422
+ "SchemaInt96ConditionInput",
423
+ "SchemaLedgerAccountInput",
424
+ "SchemaLedgerAccountMatchInput",
425
+ "SchemaLedgerEntriesInput",
426
+ "SchemaLedgerEntryConditionInput",
427
+ "SchemaLedgerEntryGroupInput",
428
+ "SchemaLedgerEntryInput",
429
+ "SchemaLedgerEntryTagInput",
430
+ "SchemaLedgerLineInput",
431
+ "SchemaMatchInput",
432
+ "SchemaTxMatchInput",
433
+ "StoreSchema",
434
+ "StoreSchemaStoreSchemaBadRequestError",
435
+ "StoreSchemaStoreSchemaInternalError",
436
+ "StoreSchemaStoreSchemaStoreSchemaResult",
437
+ "StoreSchemaStoreSchemaStoreSchemaResultSchema",
438
+ "StoreSchemaStoreSchemaStoreSchemaResultSchemaVersion",
439
+ "StringFilter",
440
+ "StringMatchFilter",
441
+ "StripeEnv",
442
+ "SyncCustomAccounts",
443
+ "SyncCustomAccountsSyncCustomAccountsBadRequestError",
444
+ "SyncCustomAccountsSyncCustomAccountsInternalError",
445
+ "SyncCustomAccountsSyncCustomAccountsSyncCustomAccountsResult",
446
+ "SyncCustomAccountsSyncCustomAccountsSyncCustomAccountsResultAccounts",
447
+ "SyncCustomAccountsSyncCustomAccountsSyncCustomAccountsResultAccountsCurrency",
448
+ "SyncCustomTxs",
449
+ "SyncCustomTxsSyncCustomTxsBadRequestError",
450
+ "SyncCustomTxsSyncCustomTxsInternalError",
451
+ "SyncCustomTxsSyncCustomTxsSyncCustomTxsResult",
452
+ "SyncCustomTxsSyncCustomTxsSyncCustomTxsResultTxs",
453
+ "TagFilter",
454
+ "TagMatchInput",
455
+ "TxMatchInput",
456
+ "TxType",
457
+ "TxTypeFilter",
458
+ "UnitEnv",
459
+ "UpdateLedger",
460
+ "UpdateLedgerAccountInput",
461
+ "UpdateLedgerEntry",
462
+ "UpdateLedgerEntryInput",
463
+ "UpdateLedgerEntryUpdateLedgerEntryBadRequestError",
464
+ "UpdateLedgerEntryUpdateLedgerEntryInternalError",
465
+ "UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResult",
466
+ "UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntry",
467
+ "UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntryGroups",
468
+ "UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntryLines",
469
+ "UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntryLinesNodes",
470
+ "UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntryLinesNodesAccount",
471
+ "UpdateLedgerEntryUpdateLedgerEntryUpdateLedgerEntryResultEntryTags",
472
+ "UpdateLedgerInput",
473
+ "UpdateLedgerUpdateLedgerBadRequestError",
474
+ "UpdateLedgerUpdateLedgerInternalError",
475
+ "UpdateLedgerUpdateLedgerUpdateLedgerResult",
476
+ "UpdateLedgerUpdateLedgerUpdateLedgerResultLedger",
477
+ "Upload",
478
+ ]