fragment-dev 1.1.11 → 1.2.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: f1489f95ce03b5a3dbae5dedb41b84b8e008053214ea04e0186d3058c5b06706
4
+ data.tar.gz: cf3758fd74fb283d57e3ba9a1f05c3bf01e4e8006e8a05846ed29925981fc74f
5
5
  SHA512:
6
- metadata.gz: dd81589cf3a8f31f17fffd03621552f0884f1e70ce0e2b0e2516166b200a2eca9f470a4b82bf86126916582edf2dc28b0dee6bb8d0dacc7b212b99fb986225e0
7
- data.tar.gz: 8e17754d3acbf6118ee0ade8397f9105e51483528647dfbc84dc6537907ca48e89f070117160611e7430491abaee49fa8dbc09580fde99943b6f96b7d31d295e
6
+ metadata.gz: 1a289538e2ddf9650cf81f624c2c1dcb8230c70e856671411e9161c70894f382053d42ab7c504980824830abb76a54b3ff803bdb05e621074f2f71e391012452
7
+ data.tar.gz: d691d235cbdc686ca3fc852ebc727436b66e912f7bf9d6ffb136726be8bad34889360ef1074b89256ef7a77f63b43e1643de8d0928f559e1c724426b93ad31ee
@@ -9569,11 +9569,11 @@
9569
9569
  },
9570
9570
  {
9571
9571
  "name": "reverseLedgerEntry",
9572
- "description": "*EXPERIMENTAL* Reverses a ledger entry",
9572
+ "description": "Reverses a Ledger Entry",
9573
9573
  "args": [
9574
9574
  {
9575
9575
  "name": "id",
9576
- "description": "The ID of the Ledger Entry to reverse",
9576
+ "description": "The Fragment ID of the Ledger Entry to reverse",
9577
9577
  "type": {
9578
9578
  "kind": "NON_NULL",
9579
9579
  "name": null,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FragmentSDK
4
- VERSION = '1.1.11'
4
+ VERSION = '1.2.0'
5
5
  end
data/lib/queries.graphql CHANGED
@@ -19,6 +19,23 @@ mutation StoreSchema($schema: SchemaInput!) {
19
19
  }
20
20
  }
21
21
 
22
+ mutation DeleteSchema(
23
+ $schema: SchemaMatchInput!
24
+ ) {
25
+ deleteSchema(schema: $schema) {
26
+ __typename
27
+ ... on DeleteSchemaResult {
28
+ success
29
+ }
30
+ ... on Error {
31
+ code
32
+ message
33
+ retryable
34
+ }
35
+ }
36
+ }
37
+
38
+
22
39
  mutation CreateLedger(
23
40
  $ik: SafeString!
24
41
  $ledger: CreateLedgerInput!
@@ -46,6 +63,22 @@ mutation CreateLedger(
46
63
  }
47
64
  }
48
65
 
66
+ mutation DeleteLedger(
67
+ $ledger: LedgerMatchInput!
68
+ ) {
69
+ deleteLedger(ledger: $ledger) {
70
+ __typename
71
+ ... on DeleteLedgerResult {
72
+ success
73
+ }
74
+ ... on Error {
75
+ code
76
+ message
77
+ retryable
78
+ }
79
+ }
80
+ }
81
+
49
82
  mutation AddLedgerEntry(
50
83
  $ik: SafeString!
51
84
  $ledgerIk: SafeString!
@@ -92,11 +125,63 @@ mutation AddLedgerEntry(
92
125
  }
93
126
  }
94
127
 
128
+ mutation ReverseLedgerEntry(
129
+ $id: ID!
130
+ ) {
131
+ reverseLedgerEntry(id: $id) {
132
+ ... on ReverseLedgerEntryResult {
133
+ reversingLedgerEntry {
134
+ ik
135
+ id
136
+ created
137
+ posted
138
+ type
139
+ description
140
+ hidden
141
+ lines {
142
+ nodes {
143
+ id
144
+ amount
145
+ account {
146
+ path
147
+ }
148
+ }
149
+ }
150
+ }
151
+ reversedLedgerEntry {
152
+ ik
153
+ id
154
+ created
155
+ posted
156
+ type
157
+ description
158
+ hidden
159
+ lines {
160
+ nodes {
161
+ id
162
+ amount
163
+ account {
164
+ path
165
+ }
166
+ }
167
+ }
168
+ }
169
+ isIkReplay
170
+ }
171
+ ... on Error {
172
+ code
173
+ message
174
+ retryable
175
+ }
176
+ }
177
+ }
178
+
95
179
  mutation AddLedgerEntryRuntime(
96
180
  $ik: SafeString!
97
181
  $type: String!
98
182
  $ledgerIk: SafeString!
99
183
  $posted: DateTime
184
+ $parameters: JSON
100
185
  $lines: [LedgerLineInput!]!
101
186
  $tags: [LedgerEntryTagInput!]
102
187
  $groups: [LedgerEntryGroupInput!]
@@ -110,6 +195,7 @@ mutation AddLedgerEntryRuntime(
110
195
  lines: $lines
111
196
  tags: $tags
112
197
  groups: $groups
198
+ parameters: $parameters
113
199
  }
114
200
  ) {
115
201
  __typename
@@ -185,6 +271,7 @@ mutation ReconcileTxRuntime(
185
271
  $ledgerIk: SafeString!
186
272
  $type: String!
187
273
  $lines: [LedgerLineInput!]!
274
+ $parameters: JSON
188
275
  $tags: [LedgerEntryTagInput!]
189
276
  $groups: [LedgerEntryGroupInput!]
190
277
  ) {
@@ -195,6 +282,7 @@ mutation ReconcileTxRuntime(
195
282
  lines: $lines
196
283
  tags: $tags
197
284
  groups: $groups
285
+ parameters: $parameters
198
286
  }
199
287
  ) {
200
288
  __typename
@@ -348,6 +436,31 @@ mutation SyncCustomTxs($linkId: ID!, $txs: [CustomTxInput!]!) {
348
436
  }
349
437
  }
350
438
 
439
+ mutation DeleteCustomTxs($txs: [ID!]!) {
440
+ deleteCustomTxs(txs: $txs) {
441
+ __typename
442
+ ... on DeleteCustomTxsResult {
443
+ txs {
444
+ tx {
445
+ linkId
446
+ id
447
+ externalId
448
+ externalAccountId
449
+ amount
450
+ description
451
+ posted
452
+ deletedAt
453
+ }
454
+ }
455
+ }
456
+ ... on Error {
457
+ code
458
+ message
459
+ retryable
460
+ }
461
+ }
462
+ }
463
+
351
464
  query GetLedger($ik: SafeString!) {
352
465
  ledger(ledger: { ik: $ik }) {
353
466
  id
metadata CHANGED
@@ -1,13 +1,14 @@
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.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - fragment
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 1980-01-01 00:00:00.000000000 Z
11
+ date: 2025-03-24 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: graphql
@@ -57,6 +58,7 @@ dependencies:
57
58
  - - "~>"
58
59
  - !ruby/object:Gem::Version
59
60
  version: '0.5'
61
+ description:
60
62
  email: snoble@fragment.dev
61
63
  executables: []
62
64
  extensions: []
@@ -71,6 +73,7 @@ homepage: https://fragment.dev
71
73
  licenses:
72
74
  - Apache-2.0
73
75
  metadata: {}
76
+ post_install_message:
74
77
  rdoc_options: []
75
78
  require_paths:
76
79
  - lib
@@ -85,7 +88,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
88
  - !ruby/object:Gem::Version
86
89
  version: '0'
87
90
  requirements: []
88
- rubygems_version: 3.6.2
91
+ rubygems_version: 3.5.9
92
+ signing_key:
89
93
  specification_version: 4
90
94
  summary: the ruby fragment client sdk
91
95
  test_files: []