fragment-dev 1.1.11 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d55d9b6473ef1e2ffa37c7325ff21f2b209ba2bad881e45b0b46266a941eb2e
4
- data.tar.gz: 1dc8bdc02af6cfbb2d846ab71c5f406eb568376cf18c941f224ddda6a85b7cc1
3
+ metadata.gz: 9dcc2f032aa067bfa1e9fc9c3e9f5f893fa75edb241d047b30eefb370638f283
4
+ data.tar.gz: f0dc16fe8ca3e9dad651a8c9b4800c8e555431f36f6bf8520190f02bffe0fc0c
5
5
  SHA512:
6
- metadata.gz: dd81589cf3a8f31f17fffd03621552f0884f1e70ce0e2b0e2516166b200a2eca9f470a4b82bf86126916582edf2dc28b0dee6bb8d0dacc7b212b99fb986225e0
7
- data.tar.gz: 8e17754d3acbf6118ee0ade8397f9105e51483528647dfbc84dc6537907ca48e89f070117160611e7430491abaee49fa8dbc09580fde99943b6f96b7d31d295e
6
+ metadata.gz: 47c0b05132e3fd1b6ab8d3b28045289af7bde8b0aa82a1ecae276fe8697384b113a2df86dc2c70cb725f3fdf7def5c91d9cd06bad93b0d0a06977dd41cbc1fd0
7
+ data.tar.gz: d155344317b75125b95eeb1b12ea756319110933e39c59490865735b0797f86377a32ada0cef554f9a8efbcdf4ac1b9d2d695038f8945b9b85fa32651534af5e
@@ -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": "version",
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",
@@ -9569,11 +9622,11 @@
9569
9622
  },
9570
9623
  {
9571
9624
  "name": "reverseLedgerEntry",
9572
- "description": "*EXPERIMENTAL* Reverses a ledger entry",
9625
+ "description": "Reverses a Ledger Entry",
9573
9626
  "args": [
9574
9627
  {
9575
9628
  "name": "id",
9576
- "description": "The ID of the Ledger Entry to reverse",
9629
+ "description": "The Fragment ID of the Ledger Entry to reverse",
9577
9630
  "type": {
9578
9631
  "kind": "NON_NULL",
9579
9632
  "name": null,
@@ -11720,7 +11773,7 @@
11720
11773
  "defaultValue": null
11721
11774
  },
11722
11775
  {
11723
- "name": "version",
11776
+ "name": "typeVersion",
11724
11777
  "description": "Experimental: This field is not yet supported.",
11725
11778
  "type": {
11726
11779
  "kind": "SCALAR",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FragmentSDK
4
- VERSION = '1.1.11'
4
+ VERSION = '1.3.0'
5
5
  end
data/lib/queries.graphql CHANGED
@@ -11,7 +11,33 @@ mutation StoreSchema($schema: SchemaInput!) {
11
11
  }
12
12
  }
13
13
  }
14
- ... on Error {
14
+ ... on BadRequestError {
15
+ code
16
+ message
17
+ retryable
18
+ }
19
+ ... on InternalError {
20
+ code
21
+ message
22
+ retryable
23
+ }
24
+ }
25
+ }
26
+
27
+ mutation DeleteSchema(
28
+ $schema: SchemaMatchInput!
29
+ ) {
30
+ deleteSchema(schema: $schema) {
31
+ __typename
32
+ ... on DeleteSchemaResult {
33
+ success
34
+ }
35
+ ... on BadRequestError {
36
+ code
37
+ message
38
+ retryable
39
+ }
40
+ ... on InternalError {
15
41
  code
16
42
  message
17
43
  retryable
@@ -38,7 +64,33 @@ mutation CreateLedger(
38
64
  }
39
65
  isIkReplay
40
66
  }
41
- ... on Error {
67
+ ... on BadRequestError {
68
+ code
69
+ message
70
+ retryable
71
+ }
72
+ ... on InternalError {
73
+ code
74
+ message
75
+ retryable
76
+ }
77
+ }
78
+ }
79
+
80
+ mutation DeleteLedger(
81
+ $ledger: LedgerMatchInput!
82
+ ) {
83
+ deleteLedger(ledger: $ledger) {
84
+ __typename
85
+ ... on DeleteLedgerResult {
86
+ success
87
+ }
88
+ ... on BadRequestError {
89
+ code
90
+ message
91
+ retryable
92
+ }
93
+ ... on InternalError {
42
94
  code
43
95
  message
44
96
  retryable
@@ -50,6 +102,7 @@ mutation AddLedgerEntry(
50
102
  $ik: SafeString!
51
103
  $ledgerIk: SafeString!
52
104
  $type: String!
105
+ $typeVersion: Int
53
106
  $posted: DateTime
54
107
  $parameters: JSON!
55
108
  $tags: [LedgerEntryTagInput!]
@@ -60,6 +113,7 @@ mutation AddLedgerEntry(
60
113
  entry: {
61
114
  ledger: { ik: $ledgerIk }
62
115
  type: $type
116
+ typeVersion: $typeVersion
63
117
  posted: $posted
64
118
  parameters: $parameters
65
119
  tags: $tags
@@ -84,7 +138,69 @@ mutation AddLedgerEntry(
84
138
  }
85
139
  }
86
140
  }
87
- ... on Error {
141
+ ... on BadRequestError {
142
+ code
143
+ message
144
+ retryable
145
+ }
146
+ ... on InternalError {
147
+ code
148
+ message
149
+ retryable
150
+ }
151
+ }
152
+ }
153
+
154
+
155
+ mutation ReverseLedgerEntry(
156
+ $id: ID!
157
+ ) {
158
+ reverseLedgerEntry(id: $id) {
159
+ ... on ReverseLedgerEntryResult {
160
+ reversingLedgerEntry {
161
+ ik
162
+ id
163
+ created
164
+ posted
165
+ type
166
+ description
167
+ hidden
168
+ lines {
169
+ nodes {
170
+ id
171
+ amount
172
+ account {
173
+ path
174
+ }
175
+ }
176
+ }
177
+ }
178
+ reversedLedgerEntry {
179
+ ik
180
+ id
181
+ created
182
+ posted
183
+ type
184
+ description
185
+ hidden
186
+ lines {
187
+ nodes {
188
+ id
189
+ amount
190
+ account {
191
+ path
192
+ }
193
+ }
194
+ }
195
+ }
196
+ isIkReplay
197
+ }
198
+ ... on BadRequestError {
199
+ code
200
+ message
201
+ retryable
202
+ }
203
+ ... on InternalError {
88
204
  code
89
205
  message
90
206
  retryable
@@ -95,6 +211,7 @@ mutation AddLedgerEntry(
95
211
  mutation AddLedgerEntryRuntime(
96
212
  $ik: SafeString!
97
213
  $type: String!
214
+ $typeVersion: Int
98
215
  $ledgerIk: SafeString!
99
216
  $posted: DateTime
100
217
  $lines: [LedgerLineInput!]!
@@ -105,6 +222,7 @@ mutation AddLedgerEntryRuntime(
105
222
  ik: $ik
106
223
  entry: {
107
224
  type: $type
225
+ typeVersion: $typeVersion
108
226
  ledger: { ik: $ledgerIk }
109
227
  posted: $posted
110
228
  lines: $lines
@@ -130,7 +248,12 @@ mutation AddLedgerEntryRuntime(
130
248
  }
131
249
  }
132
250
  }
133
- ... on Error {
251
+ ... on BadRequestError {
252
+ code
253
+ message
254
+ retryable
255
+ }
256
+ ... on InternalError {
134
257
  code
135
258
  message
136
259
  retryable
@@ -141,6 +264,7 @@ mutation AddLedgerEntryRuntime(
141
264
  mutation ReconcileTx(
142
265
  $ledgerIk: SafeString!
143
266
  $type: String!
267
+ $typeVersion: Int
144
268
  $parameters: JSON!
145
269
  $tags: [LedgerEntryTagInput!]
146
270
  $groups: [LedgerEntryGroupInput!]
@@ -149,6 +273,7 @@ mutation ReconcileTx(
149
273
  entry: {
150
274
  ledger: { ik: $ledgerIk }
151
275
  type: $type
276
+ typeVersion: $typeVersion
152
277
  parameters: $parameters
153
278
  tags: $tags
154
279
  groups: $groups
@@ -173,7 +298,12 @@ mutation ReconcileTx(
173
298
  externalTxId
174
299
  }
175
300
  }
176
- ... on Error {
301
+ ... on BadRequestError {
302
+ code
303
+ message
304
+ retryable
305
+ }
306
+ ... on InternalError {
177
307
  code
178
308
  message
179
309
  retryable
@@ -184,6 +314,7 @@ mutation ReconcileTx(
184
314
  mutation ReconcileTxRuntime(
185
315
  $ledgerIk: SafeString!
186
316
  $type: String!
317
+ $typeVersion: Int
187
318
  $lines: [LedgerLineInput!]!
188
319
  $tags: [LedgerEntryTagInput!]
189
320
  $groups: [LedgerEntryGroupInput!]
@@ -192,6 +323,7 @@ mutation ReconcileTxRuntime(
192
323
  entry: {
193
324
  ledger: { ik: $ledgerIk }
194
325
  type: $type
326
+ typeVersion: $typeVersion
195
327
  lines: $lines
196
328
  tags: $tags
197
329
  groups: $groups
@@ -216,7 +348,12 @@ mutation ReconcileTxRuntime(
216
348
  externalTxId
217
349
  }
218
350
  }
219
- ... on Error {
351
+ ... on BadRequestError {
352
+ code
353
+ message
354
+ retryable
355
+ }
356
+ ... on InternalError {
220
357
  code
221
358
  message
222
359
  retryable
@@ -260,9 +397,15 @@ mutation UpdateLedgerEntry(
260
397
  }
261
398
  }
262
399
  }
263
- ... on Error {
400
+ ... on BadRequestError {
401
+ code
402
+ message
403
+ retryable
404
+ }
405
+ ... on InternalError {
264
406
  code
265
407
  message
408
+ retryable
266
409
  }
267
410
  }
268
411
  }
@@ -277,7 +420,12 @@ mutation UpdateLedger($ledgerIk: SafeString!, $update: UpdateLedgerInput!) {
277
420
  name
278
421
  }
279
422
  }
280
- ... on Error {
423
+ ... on BadRequestError {
424
+ code
425
+ message
426
+ retryable
427
+ }
428
+ ... on InternalError {
281
429
  code
282
430
  message
283
431
  retryable
@@ -295,7 +443,12 @@ mutation CreateCustomLink($name: String!, $ik: SafeString!) {
295
443
  }
296
444
  isIkReplay
297
445
  }
298
- ... on Error {
446
+ ... on BadRequestError {
447
+ code
448
+ message
449
+ retryable
450
+ }
451
+ ... on InternalError {
299
452
  code
300
453
  message
301
454
  retryable
@@ -317,7 +470,12 @@ mutation SyncCustomAccounts($linkId: ID!, $accounts: [CustomAccountInput!]!) {
317
470
  }
318
471
  }
319
472
  }
320
- ... on Error {
473
+ ... on BadRequestError {
474
+ code
475
+ message
476
+ retryable
477
+ }
478
+ ... on InternalError {
321
479
  code
322
480
  message
323
481
  retryable
@@ -340,7 +498,42 @@ mutation SyncCustomTxs($linkId: ID!, $txs: [CustomTxInput!]!) {
340
498
  posted
341
499
  }
342
500
  }
343
- ... on Error {
501
+ ... on BadRequestError {
502
+ code
503
+ message
504
+ retryable
505
+ }
506
+ ... on InternalError {
507
+ code
508
+ message
509
+ retryable
510
+ }
511
+ }
512
+ }
513
+
514
+ mutation DeleteCustomTxs($txs: [ID!]!) {
515
+ deleteCustomTxs(txs: $txs) {
516
+ __typename
517
+ ... on DeleteCustomTxsResult {
518
+ txs {
519
+ tx {
520
+ linkId
521
+ id
522
+ externalId
523
+ externalAccountId
524
+ amount
525
+ description
526
+ posted
527
+ deletedAt
528
+ }
529
+ }
530
+ }
531
+ ... on BadRequestError {
532
+ code
533
+ message
534
+ retryable
535
+ }
536
+ ... on InternalError {
344
537
  code
345
538
  message
346
539
  retryable
@@ -654,3 +847,39 @@ query ListLedgerEntryGroupBalances(
654
847
  }
655
848
  }
656
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,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fragment-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.11
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - fragment
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 1980-01-01 00:00:00.000000000 Z
10
+ date: 2025-04-07 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: graphql
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
- rubygems_version: 3.6.2
88
+ rubygems_version: 3.6.3
89
89
  specification_version: 4
90
90
  summary: the ruby fragment client sdk
91
91
  test_files: []