fragment-dev 2.2.0 → 2.4.0
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.
- checksums.yaml +4 -4
- data/lib/fragment.schema.json +1410 -514
- data/lib/fragment_client/version.rb +1 -1
- data/lib/queries.graphql +98 -9
- metadata +2 -2
data/lib/queries.graphql
CHANGED
|
@@ -94,6 +94,39 @@ mutation DeleteLedger($ledger: LedgerMatchInput!) {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
mutation InstantiateLedgerAccount(
|
|
98
|
+
$ledger: LedgerMatchInput!
|
|
99
|
+
$path: String!
|
|
100
|
+
$parameters: Parameters
|
|
101
|
+
) {
|
|
102
|
+
instantiateLedgerAccount(
|
|
103
|
+
ledger: $ledger
|
|
104
|
+
path: $path
|
|
105
|
+
parameters: $parameters
|
|
106
|
+
) {
|
|
107
|
+
__typename
|
|
108
|
+
... on InstantiateLedgerAccountResult {
|
|
109
|
+
ledgerAccount {
|
|
110
|
+
id
|
|
111
|
+
path
|
|
112
|
+
name
|
|
113
|
+
type
|
|
114
|
+
created
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
... on BadRequestError {
|
|
118
|
+
code
|
|
119
|
+
message
|
|
120
|
+
retryable
|
|
121
|
+
}
|
|
122
|
+
... on InternalError {
|
|
123
|
+
code
|
|
124
|
+
message
|
|
125
|
+
retryable
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
97
130
|
mutation AddLedgerEntries($entries: [AddLedgerEntryInput!]!) {
|
|
98
131
|
addLedgerEntries(entries: $entries) {
|
|
99
132
|
__typename
|
|
@@ -1220,6 +1253,7 @@ mutation CreateCustomCurrency(
|
|
|
1220
1253
|
customCode: $customCode
|
|
1221
1254
|
}
|
|
1222
1255
|
) {
|
|
1256
|
+
__typename
|
|
1223
1257
|
... on CreateCustomCurrencyResult {
|
|
1224
1258
|
customCurrency {
|
|
1225
1259
|
code
|
|
@@ -1246,22 +1280,27 @@ mutation CreatePayment(
|
|
|
1246
1280
|
$ik: SafeString!
|
|
1247
1281
|
$ledgerIk: SafeString!
|
|
1248
1282
|
$type: SafeString!
|
|
1249
|
-
$typeVersion: Int
|
|
1283
|
+
$typeVersion: Int!
|
|
1250
1284
|
$parameters: JSON
|
|
1251
1285
|
) {
|
|
1252
1286
|
createPayment(
|
|
1253
1287
|
ik: $ik
|
|
1254
1288
|
ledger: { ik: $ledgerIk }
|
|
1255
|
-
payment: {
|
|
1256
|
-
type: $type
|
|
1257
|
-
typeVersion: $typeVersion
|
|
1258
|
-
parameters: $parameters
|
|
1259
|
-
}
|
|
1289
|
+
payment: { type: $type, typeVersion: $typeVersion, parameters: $parameters }
|
|
1260
1290
|
) {
|
|
1261
1291
|
__typename
|
|
1262
|
-
... on
|
|
1263
|
-
|
|
1264
|
-
|
|
1292
|
+
... on CreatePaymentResult {
|
|
1293
|
+
payment {
|
|
1294
|
+
id
|
|
1295
|
+
ik
|
|
1296
|
+
clientSecret
|
|
1297
|
+
status
|
|
1298
|
+
amount
|
|
1299
|
+
mode
|
|
1300
|
+
currency {
|
|
1301
|
+
code
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1265
1304
|
}
|
|
1266
1305
|
... on BadRequestError {
|
|
1267
1306
|
code
|
|
@@ -1275,3 +1314,53 @@ mutation CreatePayment(
|
|
|
1275
1314
|
}
|
|
1276
1315
|
}
|
|
1277
1316
|
}
|
|
1317
|
+
|
|
1318
|
+
query GetPayment($ik: SafeString!, $ledgerIk: SafeString!) {
|
|
1319
|
+
payment(payment: { ik: $ik, ledger: { ik: $ledgerIk } }) {
|
|
1320
|
+
id
|
|
1321
|
+
ik
|
|
1322
|
+
amount
|
|
1323
|
+
currency {
|
|
1324
|
+
code
|
|
1325
|
+
name
|
|
1326
|
+
precision
|
|
1327
|
+
}
|
|
1328
|
+
status
|
|
1329
|
+
type
|
|
1330
|
+
typeVersion
|
|
1331
|
+
mode
|
|
1332
|
+
parameters
|
|
1333
|
+
created
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
query ListPayments(
|
|
1338
|
+
$ledgerIk: SafeString!
|
|
1339
|
+
$after: String
|
|
1340
|
+
$first: Int
|
|
1341
|
+
$before: String
|
|
1342
|
+
$filter: PaymentsFilterSet
|
|
1343
|
+
) {
|
|
1344
|
+
ledger(ledger: { ik: $ledgerIk }) {
|
|
1345
|
+
payments(after: $after, first: $first, before: $before, filter: $filter) {
|
|
1346
|
+
nodes {
|
|
1347
|
+
id
|
|
1348
|
+
ik
|
|
1349
|
+
amount
|
|
1350
|
+
currency {
|
|
1351
|
+
code
|
|
1352
|
+
}
|
|
1353
|
+
status
|
|
1354
|
+
type
|
|
1355
|
+
typeVersion
|
|
1356
|
+
created
|
|
1357
|
+
}
|
|
1358
|
+
pageInfo {
|
|
1359
|
+
hasNextPage
|
|
1360
|
+
endCursor
|
|
1361
|
+
hasPreviousPage
|
|
1362
|
+
startCursor
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fragment-dev
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- fragment
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: graphql
|