fragment-dev 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9dc110e67fd1e478b841bb276478c10f385fed0885862e9c6d124116e274e18
4
- data.tar.gz: 4e27e688e751e8282395b2e6739c6d91888352e6f8ca64830f6b6fd385e19635
3
+ metadata.gz: ca9648402c5c64f1f05ad890a4bb80df6f5b320197707d43ed372d7da569c406
4
+ data.tar.gz: ab4e1040e6fb8c9696fa8832c531d8e1546097b44125d15cb3bc15decfdd18aa
5
5
  SHA512:
6
- metadata.gz: 62c90b3d3f0e109768e20b1c43a07bc02869fc670f2139a5eb8ed0b3f653c358058abd315f739e512e96109529d4657875113f386552b01f11ce6dc0fbd61d06
7
- data.tar.gz: e929bcefe6c06691371920910fa46924d16a44642cb23d76c7aecfa4d0db44a7031661f0fc3ecdb2aaf505d7a1f20811920a88d29c2a7297748fbf4e3a4f31ef
6
+ metadata.gz: d15487fd0b5b31e7cd25120f1eb247790fc8160c7ba13a5bc9f44c7e4aa69c9156e6ae5bdfc41c59912eae87120efe34546cc62939e2a279336809d06e6d7bf2
7
+ data.tar.gz: 415d1304fb197e2172a0a10349edfdf0f3dcfdb45219a633cb2f0d7eb5da2316f9dce5ac6aecf5ff1fd6f9158386b30c0c1ee6523185c8a2a0f74afa8ccba9e3
@@ -1120,15 +1120,19 @@
1120
1120
 
1121
1121
  ],
1122
1122
  "type": {
1123
- "kind": "LIST",
1123
+ "kind": "NON_NULL",
1124
1124
  "name": null,
1125
1125
  "ofType": {
1126
- "kind": "NON_NULL",
1126
+ "kind": "LIST",
1127
1127
  "name": null,
1128
1128
  "ofType": {
1129
- "kind": "OBJECT",
1130
- "name": "CurrencyAmount",
1131
- "ofType": null
1129
+ "kind": "NON_NULL",
1130
+ "name": null,
1131
+ "ofType": {
1132
+ "kind": "OBJECT",
1133
+ "name": "CurrencyAmount",
1134
+ "ofType": null
1135
+ }
1132
1136
  }
1133
1137
  }
1134
1138
  },
@@ -2964,9 +2968,13 @@
2964
2968
  }
2965
2969
  ],
2966
2970
  "type": {
2967
- "kind": "OBJECT",
2968
- "name": "LedgerAccountsConnection",
2969
- "ofType": null
2971
+ "kind": "NON_NULL",
2972
+ "name": null,
2973
+ "ofType": {
2974
+ "kind": "OBJECT",
2975
+ "name": "LedgerAccountsConnection",
2976
+ "ofType": null
2977
+ }
2970
2978
  },
2971
2979
  "isDeprecated": false,
2972
2980
  "deprecationReason": null
@@ -3915,9 +3923,13 @@
3915
3923
  }
3916
3924
  ],
3917
3925
  "type": {
3918
- "kind": "OBJECT",
3919
- "name": "LedgerAccountsConnection",
3920
- "ofType": null
3926
+ "kind": "NON_NULL",
3927
+ "name": null,
3928
+ "ofType": {
3929
+ "kind": "OBJECT",
3930
+ "name": "LedgerAccountsConnection",
3931
+ "ofType": null
3932
+ }
3921
3933
  },
3922
3934
  "isDeprecated": false,
3923
3935
  "deprecationReason": null
@@ -3978,9 +3990,13 @@
3978
3990
  }
3979
3991
  ],
3980
3992
  "type": {
3981
- "kind": "OBJECT",
3982
- "name": "LedgerEntriesConnection",
3983
- "ofType": null
3993
+ "kind": "NON_NULL",
3994
+ "name": null,
3995
+ "ofType": {
3996
+ "kind": "OBJECT",
3997
+ "name": "LedgerEntriesConnection",
3998
+ "ofType": null
3999
+ }
3984
4000
  },
3985
4001
  "isDeprecated": false,
3986
4002
  "deprecationReason": null
@@ -4072,9 +4088,13 @@
4072
4088
  }
4073
4089
  ],
4074
4090
  "type": {
4075
- "kind": "OBJECT",
4076
- "name": "LedgerEntryGroupsConnection",
4077
- "ofType": null
4091
+ "kind": "NON_NULL",
4092
+ "name": null,
4093
+ "ofType": {
4094
+ "kind": "OBJECT",
4095
+ "name": "LedgerEntryGroupsConnection",
4096
+ "ofType": null
4097
+ }
4078
4098
  },
4079
4099
  "isDeprecated": false,
4080
4100
  "deprecationReason": null
@@ -4086,9 +4106,13 @@
4086
4106
 
4087
4107
  ],
4088
4108
  "type": {
4089
- "kind": "OBJECT",
4090
- "name": "LedgerMigrationConnection",
4091
- "ofType": null
4109
+ "kind": "NON_NULL",
4110
+ "name": null,
4111
+ "ofType": {
4112
+ "kind": "OBJECT",
4113
+ "name": "LedgerMigrationConnection",
4114
+ "ofType": null
4115
+ }
4092
4116
  },
4093
4117
  "isDeprecated": false,
4094
4118
  "deprecationReason": null
@@ -5036,9 +5060,13 @@
5036
5060
  }
5037
5061
  ],
5038
5062
  "type": {
5039
- "kind": "OBJECT",
5040
- "name": "TxsConnection",
5041
- "ofType": null
5063
+ "kind": "NON_NULL",
5064
+ "name": null,
5065
+ "ofType": {
5066
+ "kind": "OBJECT",
5067
+ "name": "TxsConnection",
5068
+ "ofType": null
5069
+ }
5042
5070
  },
5043
5071
  "isDeprecated": false,
5044
5072
  "deprecationReason": null
@@ -5176,9 +5204,27 @@
5176
5204
  "description": "The payload configuring the consistency for this Ledger Account.\nSee [Configure consistency](https://fragment.dev/docs#configure-consistency).",
5177
5205
  "fields": null,
5178
5206
  "inputFields": [
5207
+ {
5208
+ "name": "groups",
5209
+ "description": "The consistency configuration for Ledger Entry Groups affecting this account.\n\nSee [Configure consistency](https://fragment.dev/docs#configure-consistency).",
5210
+ "type": {
5211
+ "kind": "LIST",
5212
+ "name": null,
5213
+ "ofType": {
5214
+ "kind": "NON_NULL",
5215
+ "name": null,
5216
+ "ofType": {
5217
+ "kind": "INPUT_OBJECT",
5218
+ "name": "LedgerAccountGroupConsistencyConfigInput",
5219
+ "ofType": null
5220
+ }
5221
+ }
5222
+ },
5223
+ "defaultValue": null
5224
+ },
5179
5225
  {
5180
5226
  "name": "lines",
5181
- "description": "If set to `strong`, then a Ledger Account's `lines` updates will be strongly consistent with\nthe API response. This Ledger Account's balance will be updated and\navailable for strongly consistent reads before you receive an API response.\n\nOtherwise if unset or set to `eventual`, `lines` updates are applied\nasynchronously and may not be immediately reflected queries.\n\nSee [Configure consistency](https://fragment.dev/docs#configure-consistency).",
5227
+ "description": "If set to `strong`, then a Ledger Account's `lines` updates will be strongly consistent with the API response.\nThis Ledger Account's balance will be updated and available for strongly consistent reads before you receive an API response.\n\nOtherwise if unset or set to `eventual`, `lines` updates are applied asynchronously and may not be immediately reflected in queries.\n\nSee [Configure consistency](https://fragment.dev/docs#configure-consistency).",
5182
5228
  "type": {
5183
5229
  "kind": "ENUM",
5184
5230
  "name": "LedgerLinesConsistencyMode",
@@ -5188,7 +5234,7 @@
5188
5234
  },
5189
5235
  {
5190
5236
  "name": "ownBalanceUpdates",
5191
- "description": "If set to `strong`, then a Ledger Account's `ownBalance` updates will be strongly consistent with\nthe API response. This Ledger Account's balance will be updated and\navailable for strongly consistent reads before you receive an API response.\n\nOtherwise if unset or set to `eventual`, `ownBalance` updates are applied\nasynchronously and may not be immediately reflected queries.\n\nSee [Configure consistency](https://fragment.dev/docs#configure-consistency).",
5237
+ "description": "If set to `strong`, then a Ledger Account's `ownBalance` updates will be strongly consistent with the API response.\nThis Ledger Account's balance will be updated and available for strongly consistent reads before you receive an API response.\n\nOtherwise if unset or set to `eventual`, `ownBalance` updates are applied asynchronously and may not be immediately reflected in queries.\n\nSee [Configure consistency](https://fragment.dev/docs#configure-consistency).",
5192
5238
  "type": {
5193
5239
  "kind": "ENUM",
5194
5240
  "name": "BalanceUpdateConsistencyMode",
@@ -5240,6 +5286,45 @@
5240
5286
  "enumValues": null,
5241
5287
  "possibleTypes": null
5242
5288
  },
5289
+ {
5290
+ "kind": "INPUT_OBJECT",
5291
+ "name": "LedgerAccountGroupConsistencyConfigInput",
5292
+ "description": "The consistency configuration for a specific Ledger Entry Group in this account.",
5293
+ "fields": null,
5294
+ "inputFields": [
5295
+ {
5296
+ "name": "key",
5297
+ "description": "The group key for this configuration.",
5298
+ "type": {
5299
+ "kind": "NON_NULL",
5300
+ "name": null,
5301
+ "ofType": {
5302
+ "kind": "SCALAR",
5303
+ "name": "String",
5304
+ "ofType": null
5305
+ }
5306
+ },
5307
+ "defaultValue": null
5308
+ },
5309
+ {
5310
+ "name": "ownBalanceUpdates",
5311
+ "description": "If set to `strong`, then Ledger Entry Group `ownBalance`s updates for this account will be strongly consistent with the API response.\nThis Ledger Account's Ledger Entry Group balances will be updated and available for strongly consistent reads before you receive an API response.\n\nOtherwise if unset or set to `eventual`, Ledger Entry Group `ownBalance` updates are applied asynchronously and may not be immediately reflected in queries.\n\nSee [Configure consistency](https://fragment.dev/docs#configure-consistency).",
5312
+ "type": {
5313
+ "kind": "NON_NULL",
5314
+ "name": null,
5315
+ "ofType": {
5316
+ "kind": "ENUM",
5317
+ "name": "BalanceUpdateConsistencyMode",
5318
+ "ofType": null
5319
+ }
5320
+ },
5321
+ "defaultValue": null
5322
+ }
5323
+ ],
5324
+ "interfaces": null,
5325
+ "enumValues": null,
5326
+ "possibleTypes": null
5327
+ },
5243
5328
  {
5244
5329
  "kind": "INPUT_OBJECT",
5245
5330
  "name": "LedgerAccountMatchInput",
@@ -5367,15 +5452,19 @@
5367
5452
 
5368
5453
  ],
5369
5454
  "type": {
5370
- "kind": "LIST",
5455
+ "kind": "NON_NULL",
5371
5456
  "name": null,
5372
5457
  "ofType": {
5373
- "kind": "NON_NULL",
5458
+ "kind": "LIST",
5374
5459
  "name": null,
5375
5460
  "ofType": {
5376
- "kind": "OBJECT",
5377
- "name": "LedgerAccount",
5378
- "ofType": null
5461
+ "kind": "NON_NULL",
5462
+ "name": null,
5463
+ "ofType": {
5464
+ "kind": "OBJECT",
5465
+ "name": "LedgerAccount",
5466
+ "ofType": null
5467
+ }
5379
5468
  }
5380
5469
  }
5381
5470
  },
@@ -5501,15 +5590,19 @@
5501
5590
 
5502
5591
  ],
5503
5592
  "type": {
5504
- "kind": "LIST",
5593
+ "kind": "NON_NULL",
5505
5594
  "name": null,
5506
5595
  "ofType": {
5507
- "kind": "NON_NULL",
5596
+ "kind": "LIST",
5508
5597
  "name": null,
5509
5598
  "ofType": {
5510
- "kind": "OBJECT",
5511
- "name": "LedgerEntry",
5512
- "ofType": null
5599
+ "kind": "NON_NULL",
5600
+ "name": null,
5601
+ "ofType": {
5602
+ "kind": "OBJECT",
5603
+ "name": "LedgerEntry",
5604
+ "ofType": null
5605
+ }
5513
5606
  }
5514
5607
  }
5515
5608
  },
@@ -6315,7 +6408,16 @@
6315
6408
  "name": "ownBalance",
6316
6409
  "description": "The total balance change for this Ledger Account and currency.",
6317
6410
  "args": [
6318
-
6411
+ {
6412
+ "name": "consistencyMode",
6413
+ "description": "The consistency mode to use when fetching the balance. Use 'use_account' to match the configured consistency mode of the account.",
6414
+ "type": {
6415
+ "kind": "ENUM",
6416
+ "name": "ReadBalanceConsistencyMode",
6417
+ "ofType": null
6418
+ },
6419
+ "defaultValue": null
6420
+ }
6319
6421
  ],
6320
6422
  "type": {
6321
6423
  "kind": "NON_NULL",
@@ -7393,15 +7495,19 @@
7393
7495
 
7394
7496
  ],
7395
7497
  "type": {
7396
- "kind": "LIST",
7498
+ "kind": "NON_NULL",
7397
7499
  "name": null,
7398
7500
  "ofType": {
7399
- "kind": "NON_NULL",
7501
+ "kind": "LIST",
7400
7502
  "name": null,
7401
7503
  "ofType": {
7402
- "kind": "OBJECT",
7403
- "name": "LedgerLine",
7404
- "ofType": null
7504
+ "kind": "NON_NULL",
7505
+ "name": null,
7506
+ "ofType": {
7507
+ "kind": "OBJECT",
7508
+ "name": "LedgerLine",
7509
+ "ofType": null
7510
+ }
7405
7511
  }
7406
7512
  }
7407
7513
  },
@@ -7772,15 +7878,19 @@
7772
7878
 
7773
7879
  ],
7774
7880
  "type": {
7775
- "kind": "LIST",
7881
+ "kind": "NON_NULL",
7776
7882
  "name": null,
7777
7883
  "ofType": {
7778
- "kind": "NON_NULL",
7884
+ "kind": "LIST",
7779
7885
  "name": null,
7780
7886
  "ofType": {
7781
- "kind": "OBJECT",
7782
- "name": "Ledger",
7783
- "ofType": null
7887
+ "kind": "NON_NULL",
7888
+ "name": null,
7889
+ "ofType": {
7890
+ "kind": "OBJECT",
7891
+ "name": "Ledger",
7892
+ "ofType": null
7893
+ }
7784
7894
  }
7785
7895
  }
7786
7896
  },
@@ -9130,9 +9240,13 @@
9130
9240
  }
9131
9241
  ],
9132
9242
  "type": {
9133
- "kind": "OBJECT",
9134
- "name": "LedgersConnection",
9135
- "ofType": null
9243
+ "kind": "NON_NULL",
9244
+ "name": null,
9245
+ "ofType": {
9246
+ "kind": "OBJECT",
9247
+ "name": "LedgersConnection",
9248
+ "ofType": null
9249
+ }
9136
9250
  },
9137
9251
  "isDeprecated": false,
9138
9252
  "deprecationReason": null
@@ -9255,9 +9369,13 @@
9255
9369
  }
9256
9370
  ],
9257
9371
  "type": {
9258
- "kind": "OBJECT",
9259
- "name": "SchemaConnection",
9260
- "ofType": null
9372
+ "kind": "NON_NULL",
9373
+ "name": null,
9374
+ "ofType": {
9375
+ "kind": "OBJECT",
9376
+ "name": "SchemaConnection",
9377
+ "ofType": null
9378
+ }
9261
9379
  },
9262
9380
  "isDeprecated": false,
9263
9381
  "deprecationReason": null
@@ -9662,9 +9780,13 @@
9662
9780
  }
9663
9781
  ],
9664
9782
  "type": {
9665
- "kind": "OBJECT",
9666
- "name": "LedgersConnection",
9667
- "ofType": null
9783
+ "kind": "NON_NULL",
9784
+ "name": null,
9785
+ "ofType": {
9786
+ "kind": "OBJECT",
9787
+ "name": "LedgersConnection",
9788
+ "ofType": null
9789
+ }
9668
9790
  },
9669
9791
  "isDeprecated": false,
9670
9792
  "deprecationReason": null
@@ -10719,9 +10841,13 @@
10719
10841
 
10720
10842
  ],
10721
10843
  "type": {
10722
- "kind": "OBJECT",
10723
- "name": "LedgerMigrationConnection",
10724
- "ofType": null
10844
+ "kind": "NON_NULL",
10845
+ "name": null,
10846
+ "ofType": {
10847
+ "kind": "OBJECT",
10848
+ "name": "LedgerMigrationConnection",
10849
+ "ofType": null
10850
+ }
10725
10851
  },
10726
10852
  "isDeprecated": false,
10727
10853
  "deprecationReason": null
@@ -11490,9 +11616,13 @@
11490
11616
 
11491
11617
  ],
11492
11618
  "type": {
11493
- "kind": "OBJECT",
11494
- "name": "LedgerEntriesConnection",
11495
- "ofType": null
11619
+ "kind": "NON_NULL",
11620
+ "name": null,
11621
+ "ofType": {
11622
+ "kind": "OBJECT",
11623
+ "name": "LedgerEntriesConnection",
11624
+ "ofType": null
11625
+ }
11496
11626
  },
11497
11627
  "isDeprecated": false,
11498
11628
  "deprecationReason": null
@@ -11548,9 +11678,13 @@
11548
11678
 
11549
11679
  ],
11550
11680
  "type": {
11551
- "kind": "OBJECT",
11552
- "name": "LedgerLinesConnection",
11553
- "ofType": null
11681
+ "kind": "NON_NULL",
11682
+ "name": null,
11683
+ "ofType": {
11684
+ "kind": "OBJECT",
11685
+ "name": "LedgerLinesConnection",
11686
+ "ofType": null
11687
+ }
11554
11688
  },
11555
11689
  "isDeprecated": false,
11556
11690
  "deprecationReason": null
@@ -11770,15 +11904,19 @@
11770
11904
 
11771
11905
  ],
11772
11906
  "type": {
11773
- "kind": "LIST",
11907
+ "kind": "NON_NULL",
11774
11908
  "name": null,
11775
11909
  "ofType": {
11776
- "kind": "NON_NULL",
11910
+ "kind": "LIST",
11777
11911
  "name": null,
11778
11912
  "ofType": {
11779
- "kind": "OBJECT",
11780
- "name": "Tx",
11781
- "ofType": null
11913
+ "kind": "NON_NULL",
11914
+ "name": null,
11915
+ "ofType": {
11916
+ "kind": "OBJECT",
11917
+ "name": "Tx",
11918
+ "ofType": null
11919
+ }
11782
11920
  }
11783
11921
  }
11784
11922
  },
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FragmentSDK
4
- VERSION = '1.1.3'
4
+ VERSION = '1.1.4'
5
5
  end
data/lib/queries.graphql CHANGED
@@ -543,6 +543,52 @@ query GetLedgerAccountBalance(
543
543
  }
544
544
  }
545
545
 
546
+ query ListLedgerEntryGroupBalances(
547
+ $ledgerIk: SafeString!
548
+ $groupKey: SafeString!
549
+ $groupValue: SafeString!
550
+ $consistencyMode: ReadBalanceConsistencyMode = use_account
551
+ $after: String
552
+ $before: String
553
+ $first: Int
554
+ $last: Int
555
+ $filter: LedgerEntryGroupBalanceFilterSet
556
+ ) {
557
+ ledgerEntryGroup(ledgerEntryGroup: {
558
+ ledger: { ik: $ledgerIk },
559
+ key: $groupKey,
560
+ value: $groupValue,
561
+ }) {
562
+ key
563
+ value
564
+ created
565
+ balances(
566
+ after: $after,
567
+ before: $before,
568
+ first: $first,
569
+ last: $last,
570
+ filter: $filter,
571
+ ){
572
+ nodes {
573
+ account {
574
+ path
575
+ }
576
+ currency {
577
+ code
578
+ customCurrencyId
579
+ }
580
+ ownBalance(consistencyMode: $consistencyMode)
581
+ }
582
+ pageInfo {
583
+ hasNextPage
584
+ endCursor
585
+ hasPreviousPage
586
+ startCursor
587
+ }
588
+ }
589
+ }
590
+ }
591
+
546
592
  query GetSchema($key: SafeString!, $version: Int) {
547
593
  schema(schema: { key: $key, version: $version }) {
548
594
  key
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.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - fragment
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-24 00:00:00.000000000 Z
11
+ date: 2024-07-09 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.9
91
+ rubygems_version: 3.5.11
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: the ruby fragment client sdk