fragment-dev 1.2.0 → 1.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 +921 -82
- data/lib/fragment_client/version.rb +1 -1
- data/lib/queries.graphql +216 -20
- metadata +3 -3
data/lib/queries.graphql
CHANGED
@@ -11,7 +11,12 @@ mutation StoreSchema($schema: SchemaInput!) {
|
|
11
11
|
}
|
12
12
|
}
|
13
13
|
}
|
14
|
-
... on
|
14
|
+
... on BadRequestError {
|
15
|
+
code
|
16
|
+
message
|
17
|
+
retryable
|
18
|
+
}
|
19
|
+
... on InternalError {
|
15
20
|
code
|
16
21
|
message
|
17
22
|
retryable
|
@@ -27,7 +32,12 @@ mutation DeleteSchema(
|
|
27
32
|
... on DeleteSchemaResult {
|
28
33
|
success
|
29
34
|
}
|
30
|
-
... on
|
35
|
+
... on BadRequestError {
|
36
|
+
code
|
37
|
+
message
|
38
|
+
retryable
|
39
|
+
}
|
40
|
+
... on InternalError {
|
31
41
|
code
|
32
42
|
message
|
33
43
|
retryable
|
@@ -35,7 +45,6 @@ mutation DeleteSchema(
|
|
35
45
|
}
|
36
46
|
}
|
37
47
|
|
38
|
-
|
39
48
|
mutation CreateLedger(
|
40
49
|
$ik: SafeString!
|
41
50
|
$ledger: CreateLedgerInput!
|
@@ -55,7 +64,12 @@ mutation CreateLedger(
|
|
55
64
|
}
|
56
65
|
isIkReplay
|
57
66
|
}
|
58
|
-
... on
|
67
|
+
... on BadRequestError {
|
68
|
+
code
|
69
|
+
message
|
70
|
+
retryable
|
71
|
+
}
|
72
|
+
... on InternalError {
|
59
73
|
code
|
60
74
|
message
|
61
75
|
retryable
|
@@ -71,7 +85,12 @@ mutation DeleteLedger(
|
|
71
85
|
... on DeleteLedgerResult {
|
72
86
|
success
|
73
87
|
}
|
74
|
-
... on
|
88
|
+
... on BadRequestError {
|
89
|
+
code
|
90
|
+
message
|
91
|
+
retryable
|
92
|
+
}
|
93
|
+
... on InternalError {
|
75
94
|
code
|
76
95
|
message
|
77
96
|
retryable
|
@@ -83,6 +102,7 @@ mutation AddLedgerEntry(
|
|
83
102
|
$ik: SafeString!
|
84
103
|
$ledgerIk: SafeString!
|
85
104
|
$type: String!
|
105
|
+
$typeVersion: Int
|
86
106
|
$posted: DateTime
|
87
107
|
$parameters: JSON!
|
88
108
|
$tags: [LedgerEntryTagInput!]
|
@@ -93,6 +113,7 @@ mutation AddLedgerEntry(
|
|
93
113
|
entry: {
|
94
114
|
ledger: { ik: $ledgerIk }
|
95
115
|
type: $type
|
116
|
+
typeVersion: $typeVersion
|
96
117
|
posted: $posted
|
97
118
|
parameters: $parameters
|
98
119
|
tags: $tags
|
@@ -117,7 +138,12 @@ mutation AddLedgerEntry(
|
|
117
138
|
}
|
118
139
|
}
|
119
140
|
}
|
120
|
-
... on
|
141
|
+
... on BadRequestError {
|
142
|
+
code
|
143
|
+
message
|
144
|
+
retryable
|
145
|
+
}
|
146
|
+
... on InternalError {
|
121
147
|
code
|
122
148
|
message
|
123
149
|
retryable
|
@@ -168,7 +194,93 @@ mutation ReverseLedgerEntry(
|
|
168
194
|
}
|
169
195
|
isIkReplay
|
170
196
|
}
|
171
|
-
... on
|
197
|
+
... on BadRequestError {
|
198
|
+
code
|
199
|
+
message
|
200
|
+
retryable
|
201
|
+
}
|
202
|
+
... on InternalError {
|
203
|
+
code
|
204
|
+
message
|
205
|
+
retryable
|
206
|
+
}
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
mutation MigrateLedgerEntry(
|
211
|
+
$id: ID!
|
212
|
+
$newLedgerEntry: LedgerEntryInput!
|
213
|
+
) {
|
214
|
+
migrateLedgerEntry(input: {
|
215
|
+
id: $id
|
216
|
+
newLedgerEntry: $newLedgerEntry
|
217
|
+
}) {
|
218
|
+
... on MigrateLedgerEntryResult {
|
219
|
+
reversingLedgerEntry {
|
220
|
+
ik
|
221
|
+
id
|
222
|
+
created
|
223
|
+
posted
|
224
|
+
type
|
225
|
+
description
|
226
|
+
reversedAt
|
227
|
+
hidden
|
228
|
+
lines {
|
229
|
+
nodes {
|
230
|
+
id
|
231
|
+
amount
|
232
|
+
account {
|
233
|
+
path
|
234
|
+
}
|
235
|
+
}
|
236
|
+
}
|
237
|
+
}
|
238
|
+
reversedLedgerEntry {
|
239
|
+
ik
|
240
|
+
id
|
241
|
+
created
|
242
|
+
posted
|
243
|
+
type
|
244
|
+
description
|
245
|
+
reversedAt
|
246
|
+
hidden
|
247
|
+
lines {
|
248
|
+
nodes {
|
249
|
+
id
|
250
|
+
amount
|
251
|
+
account {
|
252
|
+
path
|
253
|
+
}
|
254
|
+
}
|
255
|
+
}
|
256
|
+
}
|
257
|
+
newLedgerEntry {
|
258
|
+
ik
|
259
|
+
id
|
260
|
+
created
|
261
|
+
posted
|
262
|
+
type
|
263
|
+
description
|
264
|
+
reversedAt
|
265
|
+
hidden
|
266
|
+
lines {
|
267
|
+
nodes {
|
268
|
+
id
|
269
|
+
amount
|
270
|
+
account {
|
271
|
+
path
|
272
|
+
}
|
273
|
+
}
|
274
|
+
}
|
275
|
+
}
|
276
|
+
isIkReplay
|
277
|
+
}
|
278
|
+
... on BadRequestError {
|
279
|
+
code
|
280
|
+
message
|
281
|
+
retryable
|
282
|
+
}
|
283
|
+
... on InternalError {
|
172
284
|
code
|
173
285
|
message
|
174
286
|
retryable
|
@@ -179,9 +291,9 @@ mutation ReverseLedgerEntry(
|
|
179
291
|
mutation AddLedgerEntryRuntime(
|
180
292
|
$ik: SafeString!
|
181
293
|
$type: String!
|
294
|
+
$typeVersion: Int
|
182
295
|
$ledgerIk: SafeString!
|
183
296
|
$posted: DateTime
|
184
|
-
$parameters: JSON
|
185
297
|
$lines: [LedgerLineInput!]!
|
186
298
|
$tags: [LedgerEntryTagInput!]
|
187
299
|
$groups: [LedgerEntryGroupInput!]
|
@@ -190,12 +302,12 @@ mutation AddLedgerEntryRuntime(
|
|
190
302
|
ik: $ik
|
191
303
|
entry: {
|
192
304
|
type: $type
|
305
|
+
typeVersion: $typeVersion
|
193
306
|
ledger: { ik: $ledgerIk }
|
194
307
|
posted: $posted
|
195
308
|
lines: $lines
|
196
309
|
tags: $tags
|
197
310
|
groups: $groups
|
198
|
-
parameters: $parameters
|
199
311
|
}
|
200
312
|
) {
|
201
313
|
__typename
|
@@ -216,7 +328,12 @@ mutation AddLedgerEntryRuntime(
|
|
216
328
|
}
|
217
329
|
}
|
218
330
|
}
|
219
|
-
... on
|
331
|
+
... on BadRequestError {
|
332
|
+
code
|
333
|
+
message
|
334
|
+
retryable
|
335
|
+
}
|
336
|
+
... on InternalError {
|
220
337
|
code
|
221
338
|
message
|
222
339
|
retryable
|
@@ -227,6 +344,7 @@ mutation AddLedgerEntryRuntime(
|
|
227
344
|
mutation ReconcileTx(
|
228
345
|
$ledgerIk: SafeString!
|
229
346
|
$type: String!
|
347
|
+
$typeVersion: Int
|
230
348
|
$parameters: JSON!
|
231
349
|
$tags: [LedgerEntryTagInput!]
|
232
350
|
$groups: [LedgerEntryGroupInput!]
|
@@ -235,6 +353,7 @@ mutation ReconcileTx(
|
|
235
353
|
entry: {
|
236
354
|
ledger: { ik: $ledgerIk }
|
237
355
|
type: $type
|
356
|
+
typeVersion: $typeVersion
|
238
357
|
parameters: $parameters
|
239
358
|
tags: $tags
|
240
359
|
groups: $groups
|
@@ -259,7 +378,12 @@ mutation ReconcileTx(
|
|
259
378
|
externalTxId
|
260
379
|
}
|
261
380
|
}
|
262
|
-
... on
|
381
|
+
... on BadRequestError {
|
382
|
+
code
|
383
|
+
message
|
384
|
+
retryable
|
385
|
+
}
|
386
|
+
... on InternalError {
|
263
387
|
code
|
264
388
|
message
|
265
389
|
retryable
|
@@ -270,8 +394,8 @@ mutation ReconcileTx(
|
|
270
394
|
mutation ReconcileTxRuntime(
|
271
395
|
$ledgerIk: SafeString!
|
272
396
|
$type: String!
|
397
|
+
$typeVersion: Int
|
273
398
|
$lines: [LedgerLineInput!]!
|
274
|
-
$parameters: JSON
|
275
399
|
$tags: [LedgerEntryTagInput!]
|
276
400
|
$groups: [LedgerEntryGroupInput!]
|
277
401
|
) {
|
@@ -279,10 +403,10 @@ mutation ReconcileTxRuntime(
|
|
279
403
|
entry: {
|
280
404
|
ledger: { ik: $ledgerIk }
|
281
405
|
type: $type
|
406
|
+
typeVersion: $typeVersion
|
282
407
|
lines: $lines
|
283
408
|
tags: $tags
|
284
409
|
groups: $groups
|
285
|
-
parameters: $parameters
|
286
410
|
}
|
287
411
|
) {
|
288
412
|
__typename
|
@@ -304,7 +428,12 @@ mutation ReconcileTxRuntime(
|
|
304
428
|
externalTxId
|
305
429
|
}
|
306
430
|
}
|
307
|
-
... on
|
431
|
+
... on BadRequestError {
|
432
|
+
code
|
433
|
+
message
|
434
|
+
retryable
|
435
|
+
}
|
436
|
+
... on InternalError {
|
308
437
|
code
|
309
438
|
message
|
310
439
|
retryable
|
@@ -348,9 +477,15 @@ mutation UpdateLedgerEntry(
|
|
348
477
|
}
|
349
478
|
}
|
350
479
|
}
|
351
|
-
... on
|
480
|
+
... on BadRequestError {
|
352
481
|
code
|
353
482
|
message
|
483
|
+
retryable
|
484
|
+
}
|
485
|
+
... on InternalError {
|
486
|
+
code
|
487
|
+
message
|
488
|
+
retryable
|
354
489
|
}
|
355
490
|
}
|
356
491
|
}
|
@@ -365,7 +500,12 @@ mutation UpdateLedger($ledgerIk: SafeString!, $update: UpdateLedgerInput!) {
|
|
365
500
|
name
|
366
501
|
}
|
367
502
|
}
|
368
|
-
... on
|
503
|
+
... on BadRequestError {
|
504
|
+
code
|
505
|
+
message
|
506
|
+
retryable
|
507
|
+
}
|
508
|
+
... on InternalError {
|
369
509
|
code
|
370
510
|
message
|
371
511
|
retryable
|
@@ -383,7 +523,12 @@ mutation CreateCustomLink($name: String!, $ik: SafeString!) {
|
|
383
523
|
}
|
384
524
|
isIkReplay
|
385
525
|
}
|
386
|
-
... on
|
526
|
+
... on BadRequestError {
|
527
|
+
code
|
528
|
+
message
|
529
|
+
retryable
|
530
|
+
}
|
531
|
+
... on InternalError {
|
387
532
|
code
|
388
533
|
message
|
389
534
|
retryable
|
@@ -405,7 +550,12 @@ mutation SyncCustomAccounts($linkId: ID!, $accounts: [CustomAccountInput!]!) {
|
|
405
550
|
}
|
406
551
|
}
|
407
552
|
}
|
408
|
-
... on
|
553
|
+
... on BadRequestError {
|
554
|
+
code
|
555
|
+
message
|
556
|
+
retryable
|
557
|
+
}
|
558
|
+
... on InternalError {
|
409
559
|
code
|
410
560
|
message
|
411
561
|
retryable
|
@@ -428,7 +578,12 @@ mutation SyncCustomTxs($linkId: ID!, $txs: [CustomTxInput!]!) {
|
|
428
578
|
posted
|
429
579
|
}
|
430
580
|
}
|
431
|
-
... on
|
581
|
+
... on BadRequestError {
|
582
|
+
code
|
583
|
+
message
|
584
|
+
retryable
|
585
|
+
}
|
586
|
+
... on InternalError {
|
432
587
|
code
|
433
588
|
message
|
434
589
|
retryable
|
@@ -453,7 +608,12 @@ mutation DeleteCustomTxs($txs: [ID!]!) {
|
|
453
608
|
}
|
454
609
|
}
|
455
610
|
}
|
456
|
-
... on
|
611
|
+
... on BadRequestError {
|
612
|
+
code
|
613
|
+
message
|
614
|
+
retryable
|
615
|
+
}
|
616
|
+
... on InternalError {
|
457
617
|
code
|
458
618
|
message
|
459
619
|
retryable
|
@@ -767,3 +927,39 @@ query ListLedgerEntryGroupBalances(
|
|
767
927
|
}
|
768
928
|
}
|
769
929
|
}
|
930
|
+
|
931
|
+
mutation CreateCustomCurrency(
|
932
|
+
$id: SafeString!,
|
933
|
+
$name: String!,
|
934
|
+
$precision: Int!,
|
935
|
+
$customCode: String!,
|
936
|
+
) {
|
937
|
+
createCustomCurrency(
|
938
|
+
customCurrency: {
|
939
|
+
customCurrencyId: $id,
|
940
|
+
name: $name,
|
941
|
+
precision: $precision,
|
942
|
+
customCode: $customCode,
|
943
|
+
}
|
944
|
+
) {
|
945
|
+
... on CreateCustomCurrencyResult {
|
946
|
+
customCurrency {
|
947
|
+
code
|
948
|
+
customCurrencyId
|
949
|
+
precision
|
950
|
+
name
|
951
|
+
customCode
|
952
|
+
}
|
953
|
+
}
|
954
|
+
... on BadRequestError {
|
955
|
+
code
|
956
|
+
message
|
957
|
+
retryable
|
958
|
+
}
|
959
|
+
... on InternalError {
|
960
|
+
code
|
961
|
+
message
|
962
|
+
retryable
|
963
|
+
}
|
964
|
+
}
|
965
|
+
}
|
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: 1.
|
4
|
+
version: 1.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: 2025-
|
11
|
+
date: 2025-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
|
-
rubygems_version: 3.5.
|
91
|
+
rubygems_version: 3.5.22
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: the ruby fragment client sdk
|