fragment-dev 1.2.0 → 1.3.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 +56 -3
- data/lib/fragment_client/version.rb +1 -1
- data/lib/queries.graphql +136 -20
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dcc2f032aa067bfa1e9fc9c3e9f5f893fa75edb241d047b30eefb370638f283
|
4
|
+
data.tar.gz: f0dc16fe8ca3e9dad651a8c9b4800c8e555431f36f6bf8520190f02bffe0fc0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47c0b05132e3fd1b6ab8d3b28045289af7bde8b0aa82a1ecae276fe8697384b113a2df86dc2c70cb725f3fdf7def5c91d9cd06bad93b0d0a06977dd41cbc1fd0
|
7
|
+
data.tar.gz: d155344317b75125b95eeb1b12ea756319110933e39c59490865735b0797f86377a32ada0cef554f9a8efbcdf4ac1b9d2d695038f8945b9b85fa32651534af5e
|
data/lib/fragment.schema.json
CHANGED
@@ -4528,7 +4528,48 @@
|
|
4528
4528
|
{
|
4529
4529
|
"name": "migrations",
|
4530
4530
|
"description": "Schema migrations affecting this Ledger.",
|
4531
|
-
"args": [
|
4531
|
+
"args": [
|
4532
|
+
{
|
4533
|
+
"name": "after",
|
4534
|
+
"description": "Where to start paginating from, when paginating forwards. Send endCursor from a response to get its next page. Learn more about [pagination](https://fragment.dev/docs/query-data#basics-pagination).",
|
4535
|
+
"type": {
|
4536
|
+
"kind": "SCALAR",
|
4537
|
+
"name": "String",
|
4538
|
+
"ofType": null
|
4539
|
+
},
|
4540
|
+
"defaultValue": null
|
4541
|
+
},
|
4542
|
+
{
|
4543
|
+
"name": "before",
|
4544
|
+
"description": "Where to start paginating from, when paginating backwards. Send startCursor from a response to get the previous page. Learn more about [pagination](https://fragment.dev/docs/query-data#basics-pagination).",
|
4545
|
+
"type": {
|
4546
|
+
"kind": "SCALAR",
|
4547
|
+
"name": "String",
|
4548
|
+
"ofType": null
|
4549
|
+
},
|
4550
|
+
"defaultValue": null
|
4551
|
+
},
|
4552
|
+
{
|
4553
|
+
"name": "first",
|
4554
|
+
"description": "The number of Ledger Migrations to return per page, when paginating forwards. Defaults to 20, maximum is 200.",
|
4555
|
+
"type": {
|
4556
|
+
"kind": "SCALAR",
|
4557
|
+
"name": "Int",
|
4558
|
+
"ofType": null
|
4559
|
+
},
|
4560
|
+
"defaultValue": null
|
4561
|
+
},
|
4562
|
+
{
|
4563
|
+
"name": "last",
|
4564
|
+
"description": "The number of Ledger Migrations to return per page, when paginating backwards. Defaults to 20, maximum is 200.",
|
4565
|
+
"type": {
|
4566
|
+
"kind": "SCALAR",
|
4567
|
+
"name": "Int",
|
4568
|
+
"ofType": null
|
4569
|
+
},
|
4570
|
+
"defaultValue": null
|
4571
|
+
}
|
4572
|
+
],
|
4532
4573
|
"type": {
|
4533
4574
|
"kind": "NON_NULL",
|
4534
4575
|
"name": null,
|
@@ -6879,6 +6920,18 @@
|
|
6879
6920
|
"isDeprecated": false,
|
6880
6921
|
"deprecationReason": null
|
6881
6922
|
},
|
6923
|
+
{
|
6924
|
+
"name": "typeVersion",
|
6925
|
+
"description": "Experimental: The version of the Ledger Entry type used when it was posted.",
|
6926
|
+
"args": [],
|
6927
|
+
"type": {
|
6928
|
+
"kind": "SCALAR",
|
6929
|
+
"name": "Int",
|
6930
|
+
"ofType": null
|
6931
|
+
},
|
6932
|
+
"isDeprecated": false,
|
6933
|
+
"deprecationReason": null
|
6934
|
+
},
|
6882
6935
|
{
|
6883
6936
|
"name": "workspaceId",
|
6884
6937
|
"description": null,
|
@@ -7774,7 +7827,7 @@
|
|
7774
7827
|
"defaultValue": null
|
7775
7828
|
},
|
7776
7829
|
{
|
7777
|
-
"name": "
|
7830
|
+
"name": "typeVersion",
|
7778
7831
|
"description": "Experimental: This field is reserved for an upcoming feature and is not yet supported.",
|
7779
7832
|
"type": {
|
7780
7833
|
"kind": "SCALAR",
|
@@ -11720,7 +11773,7 @@
|
|
11720
11773
|
"defaultValue": null
|
11721
11774
|
},
|
11722
11775
|
{
|
11723
|
-
"name": "
|
11776
|
+
"name": "typeVersion",
|
11724
11777
|
"description": "Experimental: This field is not yet supported.",
|
11725
11778
|
"type": {
|
11726
11779
|
"kind": "SCALAR",
|
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
|
@@ -125,6 +151,7 @@ mutation AddLedgerEntry(
|
|
125
151
|
}
|
126
152
|
}
|
127
153
|
|
154
|
+
|
128
155
|
mutation ReverseLedgerEntry(
|
129
156
|
$id: ID!
|
130
157
|
) {
|
@@ -168,7 +195,12 @@ mutation ReverseLedgerEntry(
|
|
168
195
|
}
|
169
196
|
isIkReplay
|
170
197
|
}
|
171
|
-
... on
|
198
|
+
... on BadRequestError {
|
199
|
+
code
|
200
|
+
message
|
201
|
+
retryable
|
202
|
+
}
|
203
|
+
... on InternalError {
|
172
204
|
code
|
173
205
|
message
|
174
206
|
retryable
|
@@ -179,9 +211,9 @@ mutation ReverseLedgerEntry(
|
|
179
211
|
mutation AddLedgerEntryRuntime(
|
180
212
|
$ik: SafeString!
|
181
213
|
$type: String!
|
214
|
+
$typeVersion: Int
|
182
215
|
$ledgerIk: SafeString!
|
183
216
|
$posted: DateTime
|
184
|
-
$parameters: JSON
|
185
217
|
$lines: [LedgerLineInput!]!
|
186
218
|
$tags: [LedgerEntryTagInput!]
|
187
219
|
$groups: [LedgerEntryGroupInput!]
|
@@ -190,12 +222,12 @@ mutation AddLedgerEntryRuntime(
|
|
190
222
|
ik: $ik
|
191
223
|
entry: {
|
192
224
|
type: $type
|
225
|
+
typeVersion: $typeVersion
|
193
226
|
ledger: { ik: $ledgerIk }
|
194
227
|
posted: $posted
|
195
228
|
lines: $lines
|
196
229
|
tags: $tags
|
197
230
|
groups: $groups
|
198
|
-
parameters: $parameters
|
199
231
|
}
|
200
232
|
) {
|
201
233
|
__typename
|
@@ -216,7 +248,12 @@ mutation AddLedgerEntryRuntime(
|
|
216
248
|
}
|
217
249
|
}
|
218
250
|
}
|
219
|
-
... on
|
251
|
+
... on BadRequestError {
|
252
|
+
code
|
253
|
+
message
|
254
|
+
retryable
|
255
|
+
}
|
256
|
+
... on InternalError {
|
220
257
|
code
|
221
258
|
message
|
222
259
|
retryable
|
@@ -227,6 +264,7 @@ mutation AddLedgerEntryRuntime(
|
|
227
264
|
mutation ReconcileTx(
|
228
265
|
$ledgerIk: SafeString!
|
229
266
|
$type: String!
|
267
|
+
$typeVersion: Int
|
230
268
|
$parameters: JSON!
|
231
269
|
$tags: [LedgerEntryTagInput!]
|
232
270
|
$groups: [LedgerEntryGroupInput!]
|
@@ -235,6 +273,7 @@ mutation ReconcileTx(
|
|
235
273
|
entry: {
|
236
274
|
ledger: { ik: $ledgerIk }
|
237
275
|
type: $type
|
276
|
+
typeVersion: $typeVersion
|
238
277
|
parameters: $parameters
|
239
278
|
tags: $tags
|
240
279
|
groups: $groups
|
@@ -259,7 +298,12 @@ mutation ReconcileTx(
|
|
259
298
|
externalTxId
|
260
299
|
}
|
261
300
|
}
|
262
|
-
... on
|
301
|
+
... on BadRequestError {
|
302
|
+
code
|
303
|
+
message
|
304
|
+
retryable
|
305
|
+
}
|
306
|
+
... on InternalError {
|
263
307
|
code
|
264
308
|
message
|
265
309
|
retryable
|
@@ -270,8 +314,8 @@ mutation ReconcileTx(
|
|
270
314
|
mutation ReconcileTxRuntime(
|
271
315
|
$ledgerIk: SafeString!
|
272
316
|
$type: String!
|
317
|
+
$typeVersion: Int
|
273
318
|
$lines: [LedgerLineInput!]!
|
274
|
-
$parameters: JSON
|
275
319
|
$tags: [LedgerEntryTagInput!]
|
276
320
|
$groups: [LedgerEntryGroupInput!]
|
277
321
|
) {
|
@@ -279,10 +323,10 @@ mutation ReconcileTxRuntime(
|
|
279
323
|
entry: {
|
280
324
|
ledger: { ik: $ledgerIk }
|
281
325
|
type: $type
|
326
|
+
typeVersion: $typeVersion
|
282
327
|
lines: $lines
|
283
328
|
tags: $tags
|
284
329
|
groups: $groups
|
285
|
-
parameters: $parameters
|
286
330
|
}
|
287
331
|
) {
|
288
332
|
__typename
|
@@ -304,7 +348,12 @@ mutation ReconcileTxRuntime(
|
|
304
348
|
externalTxId
|
305
349
|
}
|
306
350
|
}
|
307
|
-
... on
|
351
|
+
... on BadRequestError {
|
352
|
+
code
|
353
|
+
message
|
354
|
+
retryable
|
355
|
+
}
|
356
|
+
... on InternalError {
|
308
357
|
code
|
309
358
|
message
|
310
359
|
retryable
|
@@ -348,9 +397,15 @@ mutation UpdateLedgerEntry(
|
|
348
397
|
}
|
349
398
|
}
|
350
399
|
}
|
351
|
-
... on
|
400
|
+
... on BadRequestError {
|
401
|
+
code
|
402
|
+
message
|
403
|
+
retryable
|
404
|
+
}
|
405
|
+
... on InternalError {
|
352
406
|
code
|
353
407
|
message
|
408
|
+
retryable
|
354
409
|
}
|
355
410
|
}
|
356
411
|
}
|
@@ -365,7 +420,12 @@ mutation UpdateLedger($ledgerIk: SafeString!, $update: UpdateLedgerInput!) {
|
|
365
420
|
name
|
366
421
|
}
|
367
422
|
}
|
368
|
-
... on
|
423
|
+
... on BadRequestError {
|
424
|
+
code
|
425
|
+
message
|
426
|
+
retryable
|
427
|
+
}
|
428
|
+
... on InternalError {
|
369
429
|
code
|
370
430
|
message
|
371
431
|
retryable
|
@@ -383,7 +443,12 @@ mutation CreateCustomLink($name: String!, $ik: SafeString!) {
|
|
383
443
|
}
|
384
444
|
isIkReplay
|
385
445
|
}
|
386
|
-
... on
|
446
|
+
... on BadRequestError {
|
447
|
+
code
|
448
|
+
message
|
449
|
+
retryable
|
450
|
+
}
|
451
|
+
... on InternalError {
|
387
452
|
code
|
388
453
|
message
|
389
454
|
retryable
|
@@ -405,7 +470,12 @@ mutation SyncCustomAccounts($linkId: ID!, $accounts: [CustomAccountInput!]!) {
|
|
405
470
|
}
|
406
471
|
}
|
407
472
|
}
|
408
|
-
... on
|
473
|
+
... on BadRequestError {
|
474
|
+
code
|
475
|
+
message
|
476
|
+
retryable
|
477
|
+
}
|
478
|
+
... on InternalError {
|
409
479
|
code
|
410
480
|
message
|
411
481
|
retryable
|
@@ -428,7 +498,12 @@ mutation SyncCustomTxs($linkId: ID!, $txs: [CustomTxInput!]!) {
|
|
428
498
|
posted
|
429
499
|
}
|
430
500
|
}
|
431
|
-
... on
|
501
|
+
... on BadRequestError {
|
502
|
+
code
|
503
|
+
message
|
504
|
+
retryable
|
505
|
+
}
|
506
|
+
... on InternalError {
|
432
507
|
code
|
433
508
|
message
|
434
509
|
retryable
|
@@ -453,7 +528,12 @@ mutation DeleteCustomTxs($txs: [ID!]!) {
|
|
453
528
|
}
|
454
529
|
}
|
455
530
|
}
|
456
|
-
... on
|
531
|
+
... on BadRequestError {
|
532
|
+
code
|
533
|
+
message
|
534
|
+
retryable
|
535
|
+
}
|
536
|
+
... on InternalError {
|
457
537
|
code
|
458
538
|
message
|
459
539
|
retryable
|
@@ -767,3 +847,39 @@ query ListLedgerEntryGroupBalances(
|
|
767
847
|
}
|
768
848
|
}
|
769
849
|
}
|
850
|
+
|
851
|
+
mutation CreateCustomCurrency(
|
852
|
+
$id: SafeString!,
|
853
|
+
$name: String!,
|
854
|
+
$precision: Int!,
|
855
|
+
$customCode: String!,
|
856
|
+
) {
|
857
|
+
createCustomCurrency(
|
858
|
+
customCurrency: {
|
859
|
+
customCurrencyId: $id,
|
860
|
+
name: $name,
|
861
|
+
precision: $precision,
|
862
|
+
customCode: $customCode,
|
863
|
+
}
|
864
|
+
) {
|
865
|
+
... on CreateCustomCurrencyResult {
|
866
|
+
customCurrency {
|
867
|
+
code
|
868
|
+
customCurrencyId
|
869
|
+
precision
|
870
|
+
name
|
871
|
+
customCode
|
872
|
+
}
|
873
|
+
}
|
874
|
+
... on BadRequestError {
|
875
|
+
code
|
876
|
+
message
|
877
|
+
retryable
|
878
|
+
}
|
879
|
+
... on InternalError {
|
880
|
+
code
|
881
|
+
message
|
882
|
+
retryable
|
883
|
+
}
|
884
|
+
}
|
885
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fragment-dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fragment
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date: 2025-
|
10
|
+
date: 2025-04-07 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: graphql
|
@@ -58,7 +57,6 @@ dependencies:
|
|
58
57
|
- - "~>"
|
59
58
|
- !ruby/object:Gem::Version
|
60
59
|
version: '0.5'
|
61
|
-
description:
|
62
60
|
email: snoble@fragment.dev
|
63
61
|
executables: []
|
64
62
|
extensions: []
|
@@ -73,7 +71,6 @@ homepage: https://fragment.dev
|
|
73
71
|
licenses:
|
74
72
|
- Apache-2.0
|
75
73
|
metadata: {}
|
76
|
-
post_install_message:
|
77
74
|
rdoc_options: []
|
78
75
|
require_paths:
|
79
76
|
- lib
|
@@ -88,8 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
85
|
- !ruby/object:Gem::Version
|
89
86
|
version: '0'
|
90
87
|
requirements: []
|
91
|
-
rubygems_version: 3.
|
92
|
-
signing_key:
|
88
|
+
rubygems_version: 3.6.3
|
93
89
|
specification_version: 4
|
94
90
|
summary: the ruby fragment client sdk
|
95
91
|
test_files: []
|