fragment-python 0.1.1__py3-none-any.whl
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/__init__.py +0 -0
- fragment/client/__init__.py +1 -0
- fragment/client/async_client.py +67 -0
- fragment/codegen/__init__.py +0 -0
- fragment/codegen/helpers.py +51 -0
- fragment/codegen/main.py +64 -0
- fragment/codegen/plugins/__init__.py +0 -0
- fragment/codegen/plugins/generate_client_method.py +62 -0
- fragment/codegen/plugins/get_file_comment.py +18 -0
- fragment/exceptions.py +12 -0
- fragment/logger.py +6 -0
- fragment/sdk/__init__.py +478 -0
- fragment/sdk/add_ledger_entry.py +54 -0
- fragment/sdk/add_ledger_entry_runtime.py +54 -0
- fragment/sdk/async_client.py +69 -0
- fragment/sdk/base_model.py +29 -0
- fragment/sdk/client.py +1071 -0
- fragment/sdk/create_custom_link.py +40 -0
- fragment/sdk/create_ledger.py +49 -0
- fragment/sdk/enums.py +263 -0
- fragment/sdk/get_ledger.py +23 -0
- fragment/sdk/get_ledger_account_balance.py +23 -0
- fragment/sdk/get_ledger_account_lines.py +47 -0
- fragment/sdk/get_ledger_entry.py +41 -0
- fragment/sdk/get_schema.py +28 -0
- fragment/sdk/get_workspace.py +16 -0
- fragment/sdk/input_types.py +482 -0
- fragment/sdk/list_ledger_account_balances.py +53 -0
- fragment/sdk/list_ledger_accounts.py +50 -0
- fragment/sdk/list_ledger_entries.py +58 -0
- fragment/sdk/list_ledger_entry_group_balances.py +57 -0
- fragment/sdk/list_multi_currency_ledger_account_balances.py +130 -0
- fragment/sdk/reconcile_tx.py +55 -0
- fragment/sdk/reconcile_tx_runtime.py +55 -0
- fragment/sdk/store_schema.py +45 -0
- fragment/sdk/sync_custom_accounts.py +53 -0
- fragment/sdk/sync_custom_txs.py +44 -0
- fragment/sdk/update_ledger.py +39 -0
- fragment/sdk/update_ledger_entry.py +77 -0
- fragment/std_queries/queries.graphql +656 -0
- fragment_python-0.1.1.dist-info/LICENSE +201 -0
- fragment_python-0.1.1.dist-info/METADATA +142 -0
- fragment_python-0.1.1.dist-info/RECORD +45 -0
- fragment_python-0.1.1.dist-info/WHEEL +4 -0
- fragment_python-0.1.1.dist-info/entry_points.txt +3 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Generated by fragment (with the help of ariadne-codegen)
|
|
2
|
+
# Source: queries/
|
|
3
|
+
|
|
4
|
+
from typing import Literal, Union
|
|
5
|
+
|
|
6
|
+
from pydantic import Field
|
|
7
|
+
|
|
8
|
+
from .base_model import BaseModel
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CreateCustomLink(BaseModel):
|
|
12
|
+
create_custom_link: Union[
|
|
13
|
+
"CreateCustomLinkCreateCustomLinkBadRequestError",
|
|
14
|
+
"CreateCustomLinkCreateCustomLinkCreateCustomLinkResult",
|
|
15
|
+
"CreateCustomLinkCreateCustomLinkInternalError",
|
|
16
|
+
] = Field(alias="createCustomLink", discriminator="typename__")
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class CreateCustomLinkCreateCustomLinkBadRequestError(BaseModel):
|
|
20
|
+
typename__: Literal["BadRequestError"] = Field(alias="__typename")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CreateCustomLinkCreateCustomLinkCreateCustomLinkResult(BaseModel):
|
|
24
|
+
typename__: Literal["CreateCustomLinkResult"] = Field(alias="__typename")
|
|
25
|
+
link: "CreateCustomLinkCreateCustomLinkCreateCustomLinkResultLink"
|
|
26
|
+
is_ik_replay: bool = Field(alias="isIkReplay")
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class CreateCustomLinkCreateCustomLinkCreateCustomLinkResultLink(BaseModel):
|
|
30
|
+
id: str
|
|
31
|
+
name: str
|
|
32
|
+
created: str
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class CreateCustomLinkCreateCustomLinkInternalError(BaseModel):
|
|
36
|
+
typename__: Literal["InternalError"] = Field(alias="__typename")
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
CreateCustomLink.model_rebuild()
|
|
40
|
+
CreateCustomLinkCreateCustomLinkCreateCustomLinkResult.model_rebuild()
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Generated by fragment (with the help of ariadne-codegen)
|
|
2
|
+
# Source: queries/
|
|
3
|
+
|
|
4
|
+
from typing import Any, Literal, Optional, Union
|
|
5
|
+
|
|
6
|
+
from pydantic import Field
|
|
7
|
+
|
|
8
|
+
from .base_model import BaseModel
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class CreateLedger(BaseModel):
|
|
12
|
+
create_ledger: Union[
|
|
13
|
+
"CreateLedgerCreateLedgerBadRequestError",
|
|
14
|
+
"CreateLedgerCreateLedgerCreateLedgerResult",
|
|
15
|
+
"CreateLedgerCreateLedgerInternalError",
|
|
16
|
+
] = Field(alias="createLedger", discriminator="typename__")
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class CreateLedgerCreateLedgerBadRequestError(BaseModel):
|
|
20
|
+
typename__: Literal["BadRequestError"] = Field(alias="__typename")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CreateLedgerCreateLedgerCreateLedgerResult(BaseModel):
|
|
24
|
+
typename__: Literal["CreateLedgerResult"] = Field(alias="__typename")
|
|
25
|
+
ledger: "CreateLedgerCreateLedgerCreateLedgerResultLedger"
|
|
26
|
+
is_ik_replay: bool = Field(alias="isIkReplay")
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class CreateLedgerCreateLedgerCreateLedgerResultLedger(BaseModel):
|
|
30
|
+
id: str
|
|
31
|
+
ik: Any
|
|
32
|
+
name: str
|
|
33
|
+
created: Any
|
|
34
|
+
schema_: Optional["CreateLedgerCreateLedgerCreateLedgerResultLedgerSchema"] = Field(
|
|
35
|
+
alias="schema"
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class CreateLedgerCreateLedgerCreateLedgerResultLedgerSchema(BaseModel):
|
|
40
|
+
key: Any
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class CreateLedgerCreateLedgerInternalError(BaseModel):
|
|
44
|
+
typename__: Literal["InternalError"] = Field(alias="__typename")
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
CreateLedger.model_rebuild()
|
|
48
|
+
CreateLedgerCreateLedgerCreateLedgerResult.model_rebuild()
|
|
49
|
+
CreateLedgerCreateLedgerCreateLedgerResultLedger.model_rebuild()
|
fragment/sdk/enums.py
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
# Generated by fragment (with the help of ariadne-codegen)
|
|
2
|
+
# Source: schema.graphql
|
|
3
|
+
|
|
4
|
+
from enum import Enum
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class BalanceUpdateConsistencyMode(str, Enum):
|
|
8
|
+
eventual = "eventual"
|
|
9
|
+
strong = "strong"
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CurrencyCode(str, Enum):
|
|
13
|
+
AAVE = "AAVE"
|
|
14
|
+
ADA = "ADA"
|
|
15
|
+
AED = "AED"
|
|
16
|
+
AFN = "AFN"
|
|
17
|
+
ALL = "ALL"
|
|
18
|
+
AMD = "AMD"
|
|
19
|
+
ANG = "ANG"
|
|
20
|
+
AOA = "AOA"
|
|
21
|
+
ARS = "ARS"
|
|
22
|
+
AUD = "AUD"
|
|
23
|
+
AWG = "AWG"
|
|
24
|
+
AZN = "AZN"
|
|
25
|
+
BAM = "BAM"
|
|
26
|
+
BBD = "BBD"
|
|
27
|
+
BCH = "BCH"
|
|
28
|
+
BDT = "BDT"
|
|
29
|
+
BGN = "BGN"
|
|
30
|
+
BHD = "BHD"
|
|
31
|
+
BIF = "BIF"
|
|
32
|
+
BMD = "BMD"
|
|
33
|
+
BND = "BND"
|
|
34
|
+
BOB = "BOB"
|
|
35
|
+
BRL = "BRL"
|
|
36
|
+
BSD = "BSD"
|
|
37
|
+
BTC = "BTC"
|
|
38
|
+
BTN = "BTN"
|
|
39
|
+
BWP = "BWP"
|
|
40
|
+
BYR = "BYR"
|
|
41
|
+
BZD = "BZD"
|
|
42
|
+
CAD = "CAD"
|
|
43
|
+
CDF = "CDF"
|
|
44
|
+
CHF = "CHF"
|
|
45
|
+
CLP = "CLP"
|
|
46
|
+
CNY = "CNY"
|
|
47
|
+
COP = "COP"
|
|
48
|
+
CRC = "CRC"
|
|
49
|
+
CUC = "CUC"
|
|
50
|
+
CUP = "CUP"
|
|
51
|
+
CUSTOM = "CUSTOM"
|
|
52
|
+
CVE = "CVE"
|
|
53
|
+
CZK = "CZK"
|
|
54
|
+
DAI = "DAI"
|
|
55
|
+
DJF = "DJF"
|
|
56
|
+
DKK = "DKK"
|
|
57
|
+
DOP = "DOP"
|
|
58
|
+
DZD = "DZD"
|
|
59
|
+
EGP = "EGP"
|
|
60
|
+
ERN = "ERN"
|
|
61
|
+
ETB = "ETB"
|
|
62
|
+
ETH = "ETH"
|
|
63
|
+
EUR = "EUR"
|
|
64
|
+
FJD = "FJD"
|
|
65
|
+
FKP = "FKP"
|
|
66
|
+
GBP = "GBP"
|
|
67
|
+
GEL = "GEL"
|
|
68
|
+
GGP = "GGP"
|
|
69
|
+
GHS = "GHS"
|
|
70
|
+
GIP = "GIP"
|
|
71
|
+
GMD = "GMD"
|
|
72
|
+
GNF = "GNF"
|
|
73
|
+
GTQ = "GTQ"
|
|
74
|
+
GYD = "GYD"
|
|
75
|
+
HKD = "HKD"
|
|
76
|
+
HNL = "HNL"
|
|
77
|
+
HRK = "HRK"
|
|
78
|
+
HTG = "HTG"
|
|
79
|
+
HUF = "HUF"
|
|
80
|
+
IDR = "IDR"
|
|
81
|
+
ILS = "ILS"
|
|
82
|
+
IMP = "IMP"
|
|
83
|
+
INR = "INR"
|
|
84
|
+
IQD = "IQD"
|
|
85
|
+
IRR = "IRR"
|
|
86
|
+
ISK = "ISK"
|
|
87
|
+
JMD = "JMD"
|
|
88
|
+
JOD = "JOD"
|
|
89
|
+
JPY = "JPY"
|
|
90
|
+
KES = "KES"
|
|
91
|
+
KGS = "KGS"
|
|
92
|
+
KHR = "KHR"
|
|
93
|
+
KMF = "KMF"
|
|
94
|
+
KPW = "KPW"
|
|
95
|
+
KRW = "KRW"
|
|
96
|
+
KWD = "KWD"
|
|
97
|
+
KYD = "KYD"
|
|
98
|
+
KZT = "KZT"
|
|
99
|
+
LAK = "LAK"
|
|
100
|
+
LBP = "LBP"
|
|
101
|
+
LINK = "LINK"
|
|
102
|
+
LKR = "LKR"
|
|
103
|
+
LOGICAL = "LOGICAL"
|
|
104
|
+
LRD = "LRD"
|
|
105
|
+
LSL = "LSL"
|
|
106
|
+
LTC = "LTC"
|
|
107
|
+
LYD = "LYD"
|
|
108
|
+
MAD = "MAD"
|
|
109
|
+
MATIC = "MATIC"
|
|
110
|
+
MDL = "MDL"
|
|
111
|
+
MGA = "MGA"
|
|
112
|
+
MKD = "MKD"
|
|
113
|
+
MMK = "MMK"
|
|
114
|
+
MNT = "MNT"
|
|
115
|
+
MOP = "MOP"
|
|
116
|
+
MUR = "MUR"
|
|
117
|
+
MVR = "MVR"
|
|
118
|
+
MWK = "MWK"
|
|
119
|
+
MXN = "MXN"
|
|
120
|
+
MYR = "MYR"
|
|
121
|
+
MZN = "MZN"
|
|
122
|
+
NAD = "NAD"
|
|
123
|
+
NGN = "NGN"
|
|
124
|
+
NIO = "NIO"
|
|
125
|
+
NOK = "NOK"
|
|
126
|
+
NPR = "NPR"
|
|
127
|
+
NZD = "NZD"
|
|
128
|
+
OMR = "OMR"
|
|
129
|
+
PAB = "PAB"
|
|
130
|
+
PEN = "PEN"
|
|
131
|
+
PGK = "PGK"
|
|
132
|
+
PHP = "PHP"
|
|
133
|
+
PKR = "PKR"
|
|
134
|
+
PLN = "PLN"
|
|
135
|
+
PTS = "PTS"
|
|
136
|
+
PYG = "PYG"
|
|
137
|
+
QAR = "QAR"
|
|
138
|
+
RON = "RON"
|
|
139
|
+
RSD = "RSD"
|
|
140
|
+
RUB = "RUB"
|
|
141
|
+
RWF = "RWF"
|
|
142
|
+
SAR = "SAR"
|
|
143
|
+
SBD = "SBD"
|
|
144
|
+
SCR = "SCR"
|
|
145
|
+
SDG = "SDG"
|
|
146
|
+
SEK = "SEK"
|
|
147
|
+
SGD = "SGD"
|
|
148
|
+
SHP = "SHP"
|
|
149
|
+
SLL = "SLL"
|
|
150
|
+
SOL = "SOL"
|
|
151
|
+
SOS = "SOS"
|
|
152
|
+
SPL = "SPL"
|
|
153
|
+
SRD = "SRD"
|
|
154
|
+
STN = "STN"
|
|
155
|
+
SVC = "SVC"
|
|
156
|
+
SYP = "SYP"
|
|
157
|
+
SZL = "SZL"
|
|
158
|
+
THB = "THB"
|
|
159
|
+
TJS = "TJS"
|
|
160
|
+
TMT = "TMT"
|
|
161
|
+
TND = "TND"
|
|
162
|
+
TOP = "TOP"
|
|
163
|
+
TRY = "TRY"
|
|
164
|
+
TTD = "TTD"
|
|
165
|
+
TVD = "TVD"
|
|
166
|
+
TWD = "TWD"
|
|
167
|
+
TZS = "TZS"
|
|
168
|
+
UAH = "UAH"
|
|
169
|
+
UGX = "UGX"
|
|
170
|
+
UNI = "UNI"
|
|
171
|
+
USD = "USD"
|
|
172
|
+
USDC = "USDC"
|
|
173
|
+
USDT = "USDT"
|
|
174
|
+
UYU = "UYU"
|
|
175
|
+
UZS = "UZS"
|
|
176
|
+
VEF = "VEF"
|
|
177
|
+
VND = "VND"
|
|
178
|
+
VUV = "VUV"
|
|
179
|
+
WST = "WST"
|
|
180
|
+
XAF = "XAF"
|
|
181
|
+
XCD = "XCD"
|
|
182
|
+
XLM = "XLM"
|
|
183
|
+
XOF = "XOF"
|
|
184
|
+
XPF = "XPF"
|
|
185
|
+
YER = "YER"
|
|
186
|
+
ZAR = "ZAR"
|
|
187
|
+
ZMW = "ZMW"
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
class CurrencyMode(str, Enum):
|
|
191
|
+
multi = "multi"
|
|
192
|
+
single = "single"
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
class ExternalTransferType(str, Enum):
|
|
196
|
+
ach = "ach"
|
|
197
|
+
card = "card"
|
|
198
|
+
check = "check"
|
|
199
|
+
internal = "internal"
|
|
200
|
+
wire = "wire"
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
class ExternalTxSource(str, Enum):
|
|
204
|
+
increase = "increase"
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
class IncreaseEnv(str, Enum):
|
|
208
|
+
production = "production"
|
|
209
|
+
sandbox = "sandbox"
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
class LedgerAccountTypes(str, Enum):
|
|
213
|
+
asset = "asset"
|
|
214
|
+
expense = "expense"
|
|
215
|
+
income = "income"
|
|
216
|
+
liability = "liability"
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
class LedgerLinesConsistencyMode(str, Enum):
|
|
220
|
+
eventual = "eventual"
|
|
221
|
+
strong = "strong"
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
class LedgerMigrationStatus(str, Enum):
|
|
225
|
+
completed = "completed"
|
|
226
|
+
failed = "failed"
|
|
227
|
+
queued = "queued"
|
|
228
|
+
skipped = "skipped"
|
|
229
|
+
started = "started"
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
class LedgerTypes(str, Enum):
|
|
233
|
+
double = "double"
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
class ReadBalanceConsistencyMode(str, Enum):
|
|
237
|
+
eventual = "eventual"
|
|
238
|
+
strong = "strong"
|
|
239
|
+
use_account = "use_account"
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
class SceneEventType(str, Enum):
|
|
243
|
+
entry = "entry"
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
class SchemaConsistencyMode(str, Enum):
|
|
247
|
+
eventual = "eventual"
|
|
248
|
+
strong = "strong"
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
class StripeEnv(str, Enum):
|
|
252
|
+
livemode = "livemode"
|
|
253
|
+
testmode = "testmode"
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
class TxType(str, Enum):
|
|
257
|
+
credit = "credit"
|
|
258
|
+
debit = "debit"
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
class UnitEnv(str, Enum):
|
|
262
|
+
production = "production"
|
|
263
|
+
sandbox = "sandbox"
|
|
@@ -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 GetLedger(BaseModel):
|
|
12
|
+
ledger: Optional["GetLedgerLedger"]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class GetLedgerLedger(BaseModel):
|
|
16
|
+
id: str
|
|
17
|
+
ik: Any
|
|
18
|
+
name: str
|
|
19
|
+
created: Any
|
|
20
|
+
balance_utc_offset: Any = Field(alias="balanceUTCOffset")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
GetLedger.model_rebuild()
|
|
@@ -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 GetLedgerAccountBalance(BaseModel):
|
|
12
|
+
ledger_account: Optional["GetLedgerAccountBalanceLedgerAccount"] = Field(
|
|
13
|
+
alias="ledgerAccount"
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class GetLedgerAccountBalanceLedgerAccount(BaseModel):
|
|
18
|
+
id: str
|
|
19
|
+
path: str
|
|
20
|
+
own_balance: Any = Field(alias="ownBalance")
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
GetLedgerAccountBalance.model_rebuild()
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Generated by fragment (with the help of ariadne-codegen)
|
|
2
|
+
# Source: queries/
|
|
3
|
+
|
|
4
|
+
from typing import Any, List, Optional
|
|
5
|
+
|
|
6
|
+
from pydantic import Field
|
|
7
|
+
|
|
8
|
+
from .base_model import BaseModel
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetLedgerAccountLines(BaseModel):
|
|
12
|
+
ledger_account: Optional["GetLedgerAccountLinesLedgerAccount"] = Field(
|
|
13
|
+
alias="ledgerAccount"
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class GetLedgerAccountLinesLedgerAccount(BaseModel):
|
|
18
|
+
id: str
|
|
19
|
+
path: str
|
|
20
|
+
lines: "GetLedgerAccountLinesLedgerAccountLines"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class GetLedgerAccountLinesLedgerAccountLines(BaseModel):
|
|
24
|
+
nodes: List["GetLedgerAccountLinesLedgerAccountLinesNodes"]
|
|
25
|
+
page_info: "GetLedgerAccountLinesLedgerAccountLinesPageInfo" = Field(
|
|
26
|
+
alias="pageInfo"
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class GetLedgerAccountLinesLedgerAccountLinesNodes(BaseModel):
|
|
31
|
+
id: str
|
|
32
|
+
posted: Optional[Any]
|
|
33
|
+
created: Optional[Any]
|
|
34
|
+
amount: Any
|
|
35
|
+
description: Optional[str]
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class GetLedgerAccountLinesLedgerAccountLinesPageInfo(BaseModel):
|
|
39
|
+
has_next_page: bool = Field(alias="hasNextPage")
|
|
40
|
+
end_cursor: Optional[str] = Field(alias="endCursor")
|
|
41
|
+
has_previous_page: bool = Field(alias="hasPreviousPage")
|
|
42
|
+
start_cursor: Optional[str] = Field(alias="startCursor")
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
GetLedgerAccountLines.model_rebuild()
|
|
46
|
+
GetLedgerAccountLinesLedgerAccount.model_rebuild()
|
|
47
|
+
GetLedgerAccountLinesLedgerAccountLines.model_rebuild()
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Generated by fragment (with the help of ariadne-codegen)
|
|
2
|
+
# Source: queries/
|
|
3
|
+
|
|
4
|
+
from typing import Any, List, Optional
|
|
5
|
+
|
|
6
|
+
from pydantic import Field
|
|
7
|
+
|
|
8
|
+
from .base_model import BaseModel
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetLedgerEntry(BaseModel):
|
|
12
|
+
ledger_entry: Optional["GetLedgerEntryLedgerEntry"] = Field(alias="ledgerEntry")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class GetLedgerEntryLedgerEntry(BaseModel):
|
|
16
|
+
id: str
|
|
17
|
+
ik: str
|
|
18
|
+
posted: Any
|
|
19
|
+
created: Any
|
|
20
|
+
description: Optional[str]
|
|
21
|
+
lines: "GetLedgerEntryLedgerEntryLines"
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class GetLedgerEntryLedgerEntryLines(BaseModel):
|
|
25
|
+
nodes: List["GetLedgerEntryLedgerEntryLinesNodes"]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class GetLedgerEntryLedgerEntryLinesNodes(BaseModel):
|
|
29
|
+
id: str
|
|
30
|
+
amount: Any
|
|
31
|
+
account: "GetLedgerEntryLedgerEntryLinesNodesAccount"
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class GetLedgerEntryLedgerEntryLinesNodesAccount(BaseModel):
|
|
35
|
+
path: str
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
GetLedgerEntry.model_rebuild()
|
|
39
|
+
GetLedgerEntryLedgerEntry.model_rebuild()
|
|
40
|
+
GetLedgerEntryLedgerEntryLines.model_rebuild()
|
|
41
|
+
GetLedgerEntryLedgerEntryLinesNodes.model_rebuild()
|
|
@@ -0,0 +1,28 @@
|
|
|
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 GetSchema(BaseModel):
|
|
12
|
+
schema_: Optional["GetSchemaSchema"] = Field(alias="schema")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class GetSchemaSchema(BaseModel):
|
|
16
|
+
key: Any
|
|
17
|
+
name: str
|
|
18
|
+
version: "GetSchemaSchemaVersion"
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class GetSchemaSchemaVersion(BaseModel):
|
|
22
|
+
created: Any
|
|
23
|
+
version: int
|
|
24
|
+
json_: Any = Field(alias="json")
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
GetSchema.model_rebuild()
|
|
28
|
+
GetSchemaSchema.model_rebuild()
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Generated by fragment (with the help of ariadne-codegen)
|
|
2
|
+
# Source: queries/
|
|
3
|
+
|
|
4
|
+
from .base_model import BaseModel
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class GetWorkspace(BaseModel):
|
|
8
|
+
workspace: "GetWorkspaceWorkspace"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetWorkspaceWorkspace(BaseModel):
|
|
12
|
+
id: str
|
|
13
|
+
name: str
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
GetWorkspace.model_rebuild()
|