fragment-dev 1.1.1 → 1.1.3

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: d6ae25bde4c6a410b126467fb316de657cb1c614dae3c9bd8dbfc5aa4fe1908a
4
- data.tar.gz: e61d12c32f90b7de76115269e1299331df792a9b2ac1f9523941ca8d0ebf1750
3
+ metadata.gz: b9dc110e67fd1e478b841bb276478c10f385fed0885862e9c6d124116e274e18
4
+ data.tar.gz: 4e27e688e751e8282395b2e6739c6d91888352e6f8ca64830f6b6fd385e19635
5
5
  SHA512:
6
- metadata.gz: 386bbf0fb7a3e61a023a477d4b58e494b040e94b21ad513dd8a9d99fe4191b903ad597c6db18b4dbef117e475697aa7515d4066288374d4240d6b8b960aae65e
7
- data.tar.gz: 4bb98e2ab615d095f895caba5327e39eefdc705fe2897b488e98f6d0ba2809ba867b59f8a006a5199fda12202f2cfeb59ee4bc666886b7122b4b7ca64ddcaa30
6
+ metadata.gz: 62c90b3d3f0e109768e20b1c43a07bc02869fc670f2139a5eb8ed0b3f653c358058abd315f739e512e96109529d4657875113f386552b01f11ce6dc0fbd61d06
7
+ data.tar.gz: e929bcefe6c06691371920910fa46924d16a44642cb23d76c7aecfa4d0db44a7031661f0fc3ecdb2aaf505d7a1f20811920a88d29c2a7297748fbf4e3a4f31ef
@@ -2458,9 +2458,27 @@
2458
2458
  "isDeprecated": false,
2459
2459
  "deprecationReason": null
2460
2460
  },
2461
+ {
2462
+ "name": "dashboardUrl",
2463
+ "description": "URL to the Fragment Dashboard for this Link.",
2464
+ "args": [
2465
+
2466
+ ],
2467
+ "type": {
2468
+ "kind": "NON_NULL",
2469
+ "name": null,
2470
+ "ofType": {
2471
+ "kind": "SCALAR",
2472
+ "name": "String",
2473
+ "ofType": null
2474
+ }
2475
+ },
2476
+ "isDeprecated": false,
2477
+ "deprecationReason": null
2478
+ },
2461
2479
  {
2462
2480
  "name": "externalAccounts",
2463
- "description": "ISO-8601 timestamp when the Link was created.",
2481
+ "description": "A list of External Accounts associated with this Link.",
2464
2482
  "args": [
2465
2483
 
2466
2484
  ],
@@ -2819,6 +2837,11 @@
2819
2837
  "kind": "OBJECT",
2820
2838
  "name": "InternalError",
2821
2839
  "ofType": null
2840
+ },
2841
+ {
2842
+ "kind": "OBJECT",
2843
+ "name": "NotFoundError",
2844
+ "ofType": null
2822
2845
  }
2823
2846
  ]
2824
2847
  },
@@ -3381,9 +3404,27 @@
3381
3404
  "isDeprecated": false,
3382
3405
  "deprecationReason": null
3383
3406
  },
3407
+ {
3408
+ "name": "dashboardUrl",
3409
+ "description": "URL to the Fragment Dashboard for this Link.",
3410
+ "args": [
3411
+
3412
+ ],
3413
+ "type": {
3414
+ "kind": "NON_NULL",
3415
+ "name": null,
3416
+ "ofType": {
3417
+ "kind": "SCALAR",
3418
+ "name": "String",
3419
+ "ofType": null
3420
+ }
3421
+ },
3422
+ "isDeprecated": false,
3423
+ "deprecationReason": null
3424
+ },
3384
3425
  {
3385
3426
  "name": "externalAccounts",
3386
- "description": "ISO-8601 timestamp when the Link was created.",
3427
+ "description": "A list of External Accounts associated with this Link.",
3387
3428
  "args": [
3388
3429
 
3389
3430
  ],
@@ -3764,6 +3805,24 @@
3764
3805
  "isDeprecated": false,
3765
3806
  "deprecationReason": null
3766
3807
  },
3808
+ {
3809
+ "name": "dashboardUrl",
3810
+ "description": "URL to the Fragment Dashboard for this Ledger.",
3811
+ "args": [
3812
+
3813
+ ],
3814
+ "type": {
3815
+ "kind": "NON_NULL",
3816
+ "name": null,
3817
+ "ofType": {
3818
+ "kind": "SCALAR",
3819
+ "name": "String",
3820
+ "ofType": null
3821
+ }
3822
+ },
3823
+ "isDeprecated": false,
3824
+ "deprecationReason": null
3825
+ },
3767
3826
  {
3768
3827
  "name": "id",
3769
3828
  "description": null,
@@ -3784,7 +3843,7 @@
3784
3843
  },
3785
3844
  {
3786
3845
  "name": "ik",
3787
- "description": "The IK passed into the [createLedger](/api-reference#mutations-createledger) mutation. This is treated as a unique identifier for this ledger.",
3846
+ "description": "The IK passed into the [createLedger](/api-reference#mutations-createledger) mutation. This is treated as a unique identifier for this Ledger.",
3788
3847
  "args": [
3789
3848
 
3790
3849
  ],
@@ -4022,7 +4081,7 @@
4022
4081
  },
4023
4082
  {
4024
4083
  "name": "migrations",
4025
- "description": "Schema migrations affecting this ledger.",
4084
+ "description": "Schema migrations affecting this Ledger.",
4026
4085
  "args": [
4027
4086
 
4028
4087
  ],
@@ -4036,7 +4095,7 @@
4036
4095
  },
4037
4096
  {
4038
4097
  "name": "name",
4039
- "description": "The name of the ledger. Can be updated with the [updateLedger](/api-reference#mutations-updateledger) mutation.",
4098
+ "description": "The name of the Ledger. Can be updated with the [updateLedger](/api-reference#mutations-updateledger) mutation.",
4040
4099
  "args": [
4041
4100
 
4042
4101
  ],
@@ -4054,7 +4113,7 @@
4054
4113
  },
4055
4114
  {
4056
4115
  "name": "schema",
4057
- "description": "Schema key associated with this ledger.",
4116
+ "description": "Schema key associated with this Ledger.",
4058
4117
  "args": [
4059
4118
 
4060
4119
  ],
@@ -5593,6 +5652,24 @@
5593
5652
  "isDeprecated": false,
5594
5653
  "deprecationReason": null
5595
5654
  },
5655
+ {
5656
+ "name": "dashboardUrl",
5657
+ "description": "URL to the Fragment Dashboard for this Ledger Entry.",
5658
+ "args": [
5659
+
5660
+ ],
5661
+ "type": {
5662
+ "kind": "NON_NULL",
5663
+ "name": null,
5664
+ "ofType": {
5665
+ "kind": "SCALAR",
5666
+ "name": "String",
5667
+ "ofType": null
5668
+ }
5669
+ },
5670
+ "isDeprecated": false,
5671
+ "deprecationReason": null
5672
+ },
5596
5673
  {
5597
5674
  "name": "date",
5598
5675
  "description": "Date this LedgerEntry posted to its Ledger e.g. \"2021-01-01\".",
@@ -7742,6 +7819,16 @@
7742
7819
  "description": null,
7743
7820
  "fields": null,
7744
7821
  "inputFields": [
7822
+ {
7823
+ "name": "hasSchema",
7824
+ "description": null,
7825
+ "type": {
7826
+ "kind": "SCALAR",
7827
+ "name": "Boolean",
7828
+ "ofType": null
7829
+ },
7830
+ "defaultValue": null
7831
+ },
7745
7832
  {
7746
7833
  "name": "type",
7747
7834
  "description": null,
@@ -7780,6 +7867,24 @@
7780
7867
  "isDeprecated": false,
7781
7868
  "deprecationReason": null
7782
7869
  },
7870
+ {
7871
+ "name": "dashboardUrl",
7872
+ "description": "URL to the Fragment Dashboard for this Link.",
7873
+ "args": [
7874
+
7875
+ ],
7876
+ "type": {
7877
+ "kind": "NON_NULL",
7878
+ "name": null,
7879
+ "ofType": {
7880
+ "kind": "SCALAR",
7881
+ "name": "String",
7882
+ "ofType": null
7883
+ }
7884
+ },
7885
+ "isDeprecated": false,
7886
+ "deprecationReason": null
7887
+ },
7783
7888
  {
7784
7889
  "name": "externalAccounts",
7785
7890
  "description": "A list of External Accounts associated with this Link.",
@@ -7984,7 +8089,7 @@
7984
8089
  },
7985
8090
  {
7986
8091
  "name": "ik",
7987
- "description": "The [Idempotency Key](https://fragment.dev/docs#integrate-the-api-use-idempotency)",
8092
+ "description": "The [Idempotency Key](https://fragment.dev/api-reference#api-overview-idempotency)",
7988
8093
  "type": {
7989
8094
  "kind": "NON_NULL",
7990
8095
  "name": null,
@@ -8046,7 +8151,7 @@
8046
8151
  "args": [
8047
8152
  {
8048
8153
  "name": "ik",
8049
- "description": "The [Idempotency Key](https://fragment.dev/docs#integrate-the-api-use-idempotency)",
8154
+ "description": "The [Idempotency Key](https://fragment.dev/api-reference#api-overview-idempotency)",
8050
8155
  "type": {
8051
8156
  "kind": "NON_NULL",
8052
8157
  "name": null,
@@ -8091,7 +8196,7 @@
8091
8196
  "args": [
8092
8197
  {
8093
8198
  "name": "ik",
8094
- "description": "The [Idempotency Key](https://fragment.dev/docs#integrate-the-api-use-idempotency)",
8199
+ "description": "The [Idempotency Key](https://fragment.dev/api-reference#api-overview-idempotency)",
8095
8200
  "type": {
8096
8201
  "kind": "NON_NULL",
8097
8202
  "name": null,
@@ -8146,7 +8251,7 @@
8146
8251
  "args": [
8147
8252
  {
8148
8253
  "name": "ik",
8149
- "description": "The [Idempotency Key](https://fragment.dev/docs#integrate-the-api-use-idempotency)",
8254
+ "description": "The [Idempotency Key](https://fragment.dev/api-reference#api-overview-idempotency)",
8150
8255
  "type": {
8151
8256
  "kind": "NON_NULL",
8152
8257
  "name": null,
@@ -8563,6 +8668,77 @@
8563
8668
  "enumValues": null,
8564
8669
  "possibleTypes": null
8565
8670
  },
8671
+ {
8672
+ "kind": "OBJECT",
8673
+ "name": "NotFoundError",
8674
+ "description": "Equivalent to an HTTP 404",
8675
+ "fields": [
8676
+ {
8677
+ "name": "code",
8678
+ "description": "The HTTP status code corresponding to the error",
8679
+ "args": [
8680
+
8681
+ ],
8682
+ "type": {
8683
+ "kind": "NON_NULL",
8684
+ "name": null,
8685
+ "ofType": {
8686
+ "kind": "SCALAR",
8687
+ "name": "String",
8688
+ "ofType": null
8689
+ }
8690
+ },
8691
+ "isDeprecated": false,
8692
+ "deprecationReason": null
8693
+ },
8694
+ {
8695
+ "name": "message",
8696
+ "description": "The error message",
8697
+ "args": [
8698
+
8699
+ ],
8700
+ "type": {
8701
+ "kind": "NON_NULL",
8702
+ "name": null,
8703
+ "ofType": {
8704
+ "kind": "SCALAR",
8705
+ "name": "String",
8706
+ "ofType": null
8707
+ }
8708
+ },
8709
+ "isDeprecated": false,
8710
+ "deprecationReason": null
8711
+ },
8712
+ {
8713
+ "name": "retryable",
8714
+ "description": "Whether or not the operation is retryable",
8715
+ "args": [
8716
+
8717
+ ],
8718
+ "type": {
8719
+ "kind": "NON_NULL",
8720
+ "name": null,
8721
+ "ofType": {
8722
+ "kind": "SCALAR",
8723
+ "name": "Boolean",
8724
+ "ofType": null
8725
+ }
8726
+ },
8727
+ "isDeprecated": false,
8728
+ "deprecationReason": null
8729
+ }
8730
+ ],
8731
+ "inputFields": null,
8732
+ "interfaces": [
8733
+ {
8734
+ "kind": "INTERFACE",
8735
+ "name": "Error",
8736
+ "ofType": null
8737
+ }
8738
+ ],
8739
+ "enumValues": null,
8740
+ "possibleTypes": null
8741
+ },
8566
8742
  {
8567
8743
  "kind": "OBJECT",
8568
8744
  "name": "PageInfo",
@@ -9112,6 +9288,24 @@
9112
9288
  },
9113
9289
  "isDeprecated": false,
9114
9290
  "deprecationReason": null
9291
+ },
9292
+ {
9293
+ "name": "workspace",
9294
+ "description": "Get the current Workspace",
9295
+ "args": [
9296
+
9297
+ ],
9298
+ "type": {
9299
+ "kind": "NON_NULL",
9300
+ "name": null,
9301
+ "ofType": {
9302
+ "kind": "OBJECT",
9303
+ "name": "Workspace",
9304
+ "ofType": null
9305
+ }
9306
+ },
9307
+ "isDeprecated": false,
9308
+ "deprecationReason": null
9115
9309
  }
9116
9310
  ],
9117
9311
  "inputFields": null,
@@ -10816,9 +11010,27 @@
10816
11010
  "isDeprecated": false,
10817
11011
  "deprecationReason": null
10818
11012
  },
11013
+ {
11014
+ "name": "dashboardUrl",
11015
+ "description": "URL to the Fragment Dashboard for this Link.",
11016
+ "args": [
11017
+
11018
+ ],
11019
+ "type": {
11020
+ "kind": "NON_NULL",
11021
+ "name": null,
11022
+ "ofType": {
11023
+ "kind": "SCALAR",
11024
+ "name": "String",
11025
+ "ofType": null
11026
+ }
11027
+ },
11028
+ "isDeprecated": false,
11029
+ "deprecationReason": null
11030
+ },
10819
11031
  {
10820
11032
  "name": "externalAccounts",
10821
- "description": "ISO-8601 timestamp when the Link was created.",
11033
+ "description": "A list of External Accounts associated with this Link.",
10822
11034
  "args": [
10823
11035
 
10824
11036
  ],
@@ -11655,9 +11867,27 @@
11655
11867
  "isDeprecated": false,
11656
11868
  "deprecationReason": null
11657
11869
  },
11870
+ {
11871
+ "name": "dashboardUrl",
11872
+ "description": "URL to the Fragment Dashboard for this Link.",
11873
+ "args": [
11874
+
11875
+ ],
11876
+ "type": {
11877
+ "kind": "NON_NULL",
11878
+ "name": null,
11879
+ "ofType": {
11880
+ "kind": "SCALAR",
11881
+ "name": "String",
11882
+ "ofType": null
11883
+ }
11884
+ },
11885
+ "isDeprecated": false,
11886
+ "deprecationReason": null
11887
+ },
11658
11888
  {
11659
11889
  "name": "externalAccounts",
11660
- "description": "ISO-8601 timestamp when the Link was created.",
11890
+ "description": "A list of External Accounts associated with this Link.",
11661
11891
  "args": [
11662
11892
 
11663
11893
  ],
@@ -11833,23 +12063,37 @@
11833
12063
  "description": null,
11834
12064
  "fields": null,
11835
12065
  "inputFields": [
12066
+ {
12067
+ "name": "groups",
12068
+ "description": "The list of Groups to add to this Ledger Entry.",
12069
+ "type": {
12070
+ "kind": "LIST",
12071
+ "name": null,
12072
+ "ofType": {
12073
+ "kind": "NON_NULL",
12074
+ "name": null,
12075
+ "ofType": {
12076
+ "kind": "INPUT_OBJECT",
12077
+ "name": "LedgerEntryGroupInput",
12078
+ "ofType": null
12079
+ }
12080
+ }
12081
+ },
12082
+ "defaultValue": null
12083
+ },
11836
12084
  {
11837
12085
  "name": "tags",
11838
12086
  "description": "The list of Tags to add and/or update on this Ledger Entry.",
11839
12087
  "type": {
11840
- "kind": "NON_NULL",
12088
+ "kind": "LIST",
11841
12089
  "name": null,
11842
12090
  "ofType": {
11843
- "kind": "LIST",
12091
+ "kind": "NON_NULL",
11844
12092
  "name": null,
11845
12093
  "ofType": {
11846
- "kind": "NON_NULL",
11847
- "name": null,
11848
- "ofType": {
11849
- "kind": "INPUT_OBJECT",
11850
- "name": "LedgerEntryTagInput",
11851
- "ofType": null
11852
- }
12094
+ "kind": "INPUT_OBJECT",
12095
+ "name": "LedgerEntryTagInput",
12096
+ "ofType": null
11853
12097
  }
11854
12098
  }
11855
12099
  },
@@ -11995,6 +12239,55 @@
11995
12239
  "enumValues": null,
11996
12240
  "possibleTypes": null
11997
12241
  },
12242
+ {
12243
+ "kind": "OBJECT",
12244
+ "name": "Workspace",
12245
+ "description": null,
12246
+ "fields": [
12247
+ {
12248
+ "name": "id",
12249
+ "description": "The ID of the Workspace",
12250
+ "args": [
12251
+
12252
+ ],
12253
+ "type": {
12254
+ "kind": "NON_NULL",
12255
+ "name": null,
12256
+ "ofType": {
12257
+ "kind": "SCALAR",
12258
+ "name": "String",
12259
+ "ofType": null
12260
+ }
12261
+ },
12262
+ "isDeprecated": false,
12263
+ "deprecationReason": null
12264
+ },
12265
+ {
12266
+ "name": "name",
12267
+ "description": "The name of the Workspace",
12268
+ "args": [
12269
+
12270
+ ],
12271
+ "type": {
12272
+ "kind": "NON_NULL",
12273
+ "name": null,
12274
+ "ofType": {
12275
+ "kind": "SCALAR",
12276
+ "name": "String",
12277
+ "ofType": null
12278
+ }
12279
+ },
12280
+ "isDeprecated": false,
12281
+ "deprecationReason": null
12282
+ }
12283
+ ],
12284
+ "inputFields": null,
12285
+ "interfaces": [
12286
+
12287
+ ],
12288
+ "enumValues": null,
12289
+ "possibleTypes": null
12290
+ },
11998
12291
  {
11999
12292
  "kind": "OBJECT",
12000
12293
  "name": "__Directive",
@@ -12869,24 +13162,6 @@
12869
13162
  "isDeprecated": false,
12870
13163
  "deprecationReason": null
12871
13164
  },
12872
- {
12873
- "name": "isOneOf",
12874
- "description": null,
12875
- "args": [
12876
-
12877
- ],
12878
- "type": {
12879
- "kind": "NON_NULL",
12880
- "name": null,
12881
- "ofType": {
12882
- "kind": "SCALAR",
12883
- "name": "Boolean",
12884
- "ofType": null
12885
- }
12886
- },
12887
- "isDeprecated": false,
12888
- "deprecationReason": null
12889
- },
12890
13165
  {
12891
13166
  "name": "kind",
12892
13167
  "description": null,
@@ -12956,7 +13231,7 @@
12956
13231
  "deprecationReason": null
12957
13232
  },
12958
13233
  {
12959
- "name": "specifiedByURL",
13234
+ "name": "specifiedByUrl",
12960
13235
  "description": null,
12961
13236
  "args": [
12962
13237
 
@@ -13109,39 +13384,6 @@
13109
13384
  "defaultValue": "\"No longer supported\""
13110
13385
  }
13111
13386
  ]
13112
- },
13113
- {
13114
- "name": "oneOf",
13115
- "description": "Requires that exactly one field must be supplied and that field must not be `null`.",
13116
- "locations": [
13117
- "INPUT_OBJECT"
13118
- ],
13119
- "args": [
13120
-
13121
- ]
13122
- },
13123
- {
13124
- "name": "specifiedBy",
13125
- "description": "Exposes a URL that specifies the behavior of this scalar.",
13126
- "locations": [
13127
- "SCALAR"
13128
- ],
13129
- "args": [
13130
- {
13131
- "name": "url",
13132
- "description": "The URL that specifies the behavior of this scalar.",
13133
- "type": {
13134
- "kind": "NON_NULL",
13135
- "name": null,
13136
- "ofType": {
13137
- "kind": "SCALAR",
13138
- "name": "String",
13139
- "ofType": null
13140
- }
13141
- },
13142
- "defaultValue": null
13143
- }
13144
- ]
13145
13387
  }
13146
13388
  ]
13147
13389
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FragmentSDK
4
- VERSION = '1.1.1'
4
+ VERSION = '1.1.3'
5
5
  end
data/lib/queries.graphql CHANGED
@@ -218,6 +218,49 @@ mutation ReconcileTxRuntime(
218
218
  }
219
219
  }
220
220
 
221
+ mutation UpdateLedgerEntry(
222
+ $entryIk: SafeString!
223
+ $ledgerIk: SafeString!
224
+ $update: UpdateLedgerEntryInput!
225
+ ) {
226
+ updateLedgerEntry(
227
+ ledgerEntry: { ik: $entryIk, ledger: { ik: $ledgerIk } }
228
+ update: $update
229
+ ) {
230
+ __typename
231
+ ... on UpdateLedgerEntryResult {
232
+ entry {
233
+ id
234
+ ik
235
+ posted
236
+ created
237
+ description
238
+ lines {
239
+ nodes {
240
+ id
241
+ amount
242
+ account {
243
+ path
244
+ }
245
+ }
246
+ }
247
+ groups {
248
+ key
249
+ value
250
+ }
251
+ tags {
252
+ key
253
+ value
254
+ }
255
+ }
256
+ }
257
+ ... on Error {
258
+ code
259
+ message
260
+ }
261
+ }
262
+ }
263
+
221
264
  mutation UpdateLedger($ledgerIk: SafeString!, $update: UpdateLedgerInput!) {
222
265
  updateLedger(ledger: { ik: $ledgerIk }, update: $update) {
223
266
  __typename
@@ -520,7 +563,12 @@ query ListLedgerEntries(
520
563
  $filter: LedgerEntriesFilterSet
521
564
  ) {
522
565
  ledger(ledger: { ik: $ledgerIk }) {
523
- ledgerEntries(after: $after, first: $first, before: $before, filter: $filter) {
566
+ ledgerEntries(
567
+ after: $after
568
+ first: $first
569
+ before: $before
570
+ filter: $filter
571
+ ) {
524
572
  nodes {
525
573
  ik
526
574
  type
@@ -543,3 +591,10 @@ query ListLedgerEntries(
543
591
  }
544
592
  }
545
593
  }
594
+
595
+ query GetWorkspace {
596
+ workspace {
597
+ id
598
+ name
599
+ }
600
+ }
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.1.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - fragment
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 1980-01-01 00:00:00.000000000 Z
11
+ date: 2024-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql