fragment-dev 1.1.0 → 1.1.2

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: 795d5a9173f69a77d6041db92a4d1eabcdd7d1140fa6c03401850cc685e4780c
4
- data.tar.gz: '03091e5ce54d5ca7dec4e70e2ca32cebcd9723267e817828ab2d1e43deb67bfd'
3
+ metadata.gz: 631c2b006c5d31b6a8f4e96e349b1de4d569890a05179019f5c0bf05f24835df
4
+ data.tar.gz: b3b31666d90a8239bc77ac6a4f1eec9228f180225960acf2435341322c2e7422
5
5
  SHA512:
6
- metadata.gz: 78f67f66b76fc41652f4789a02a05beacfac021365c213c7dd29b29255487f68d0051e3465ed3aebd16395544520a9871db86ec8826b92d47c6c15ea7b0f4c40
7
- data.tar.gz: 62c6291ed290e86a52eed5da6cad2ce9a3730a7da22bdfd3a5b1e2a0802b9106ec4533b208a7624ceaae8f18a0fcf55f9bb8a97b9fbe60fea81886c6a6caa542
6
+ metadata.gz: 1b7d72629f92cca72fbad1ada9c9758575e885e307e7820e80f480c36bb2dac48e2026e5a3b3e986878109938ce2717085583ce7b57617ad2184d62170533e94
7
+ data.tar.gz: 7c43eb18d247539a2243a2984bee94d8864af1d47fbff3961440b424c4365010ff0c94556ebcbc649c5408fad03616cc9fbfc5ac5274728faf963f8e02ea2d6d
@@ -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\".",
@@ -7780,6 +7857,24 @@
7780
7857
  "isDeprecated": false,
7781
7858
  "deprecationReason": null
7782
7859
  },
7860
+ {
7861
+ "name": "dashboardUrl",
7862
+ "description": "URL to the Fragment Dashboard for this Link.",
7863
+ "args": [
7864
+
7865
+ ],
7866
+ "type": {
7867
+ "kind": "NON_NULL",
7868
+ "name": null,
7869
+ "ofType": {
7870
+ "kind": "SCALAR",
7871
+ "name": "String",
7872
+ "ofType": null
7873
+ }
7874
+ },
7875
+ "isDeprecated": false,
7876
+ "deprecationReason": null
7877
+ },
7783
7878
  {
7784
7879
  "name": "externalAccounts",
7785
7880
  "description": "A list of External Accounts associated with this Link.",
@@ -8563,6 +8658,77 @@
8563
8658
  "enumValues": null,
8564
8659
  "possibleTypes": null
8565
8660
  },
8661
+ {
8662
+ "kind": "OBJECT",
8663
+ "name": "NotFoundError",
8664
+ "description": "Equivalent to an HTTP 404",
8665
+ "fields": [
8666
+ {
8667
+ "name": "code",
8668
+ "description": "The HTTP status code corresponding to the error",
8669
+ "args": [
8670
+
8671
+ ],
8672
+ "type": {
8673
+ "kind": "NON_NULL",
8674
+ "name": null,
8675
+ "ofType": {
8676
+ "kind": "SCALAR",
8677
+ "name": "String",
8678
+ "ofType": null
8679
+ }
8680
+ },
8681
+ "isDeprecated": false,
8682
+ "deprecationReason": null
8683
+ },
8684
+ {
8685
+ "name": "message",
8686
+ "description": "The error message",
8687
+ "args": [
8688
+
8689
+ ],
8690
+ "type": {
8691
+ "kind": "NON_NULL",
8692
+ "name": null,
8693
+ "ofType": {
8694
+ "kind": "SCALAR",
8695
+ "name": "String",
8696
+ "ofType": null
8697
+ }
8698
+ },
8699
+ "isDeprecated": false,
8700
+ "deprecationReason": null
8701
+ },
8702
+ {
8703
+ "name": "retryable",
8704
+ "description": "Whether or not the operation is retryable",
8705
+ "args": [
8706
+
8707
+ ],
8708
+ "type": {
8709
+ "kind": "NON_NULL",
8710
+ "name": null,
8711
+ "ofType": {
8712
+ "kind": "SCALAR",
8713
+ "name": "Boolean",
8714
+ "ofType": null
8715
+ }
8716
+ },
8717
+ "isDeprecated": false,
8718
+ "deprecationReason": null
8719
+ }
8720
+ ],
8721
+ "inputFields": null,
8722
+ "interfaces": [
8723
+ {
8724
+ "kind": "INTERFACE",
8725
+ "name": "Error",
8726
+ "ofType": null
8727
+ }
8728
+ ],
8729
+ "enumValues": null,
8730
+ "possibleTypes": null
8731
+ },
8566
8732
  {
8567
8733
  "kind": "OBJECT",
8568
8734
  "name": "PageInfo",
@@ -9112,6 +9278,24 @@
9112
9278
  },
9113
9279
  "isDeprecated": false,
9114
9280
  "deprecationReason": null
9281
+ },
9282
+ {
9283
+ "name": "workspace",
9284
+ "description": "Get the current Workspace",
9285
+ "args": [
9286
+
9287
+ ],
9288
+ "type": {
9289
+ "kind": "NON_NULL",
9290
+ "name": null,
9291
+ "ofType": {
9292
+ "kind": "OBJECT",
9293
+ "name": "Workspace",
9294
+ "ofType": null
9295
+ }
9296
+ },
9297
+ "isDeprecated": false,
9298
+ "deprecationReason": null
9115
9299
  }
9116
9300
  ],
9117
9301
  "inputFields": null,
@@ -10816,9 +11000,27 @@
10816
11000
  "isDeprecated": false,
10817
11001
  "deprecationReason": null
10818
11002
  },
11003
+ {
11004
+ "name": "dashboardUrl",
11005
+ "description": "URL to the Fragment Dashboard for this Link.",
11006
+ "args": [
11007
+
11008
+ ],
11009
+ "type": {
11010
+ "kind": "NON_NULL",
11011
+ "name": null,
11012
+ "ofType": {
11013
+ "kind": "SCALAR",
11014
+ "name": "String",
11015
+ "ofType": null
11016
+ }
11017
+ },
11018
+ "isDeprecated": false,
11019
+ "deprecationReason": null
11020
+ },
10819
11021
  {
10820
11022
  "name": "externalAccounts",
10821
- "description": "ISO-8601 timestamp when the Link was created.",
11023
+ "description": "A list of External Accounts associated with this Link.",
10822
11024
  "args": [
10823
11025
 
10824
11026
  ],
@@ -11655,9 +11857,27 @@
11655
11857
  "isDeprecated": false,
11656
11858
  "deprecationReason": null
11657
11859
  },
11860
+ {
11861
+ "name": "dashboardUrl",
11862
+ "description": "URL to the Fragment Dashboard for this Link.",
11863
+ "args": [
11864
+
11865
+ ],
11866
+ "type": {
11867
+ "kind": "NON_NULL",
11868
+ "name": null,
11869
+ "ofType": {
11870
+ "kind": "SCALAR",
11871
+ "name": "String",
11872
+ "ofType": null
11873
+ }
11874
+ },
11875
+ "isDeprecated": false,
11876
+ "deprecationReason": null
11877
+ },
11658
11878
  {
11659
11879
  "name": "externalAccounts",
11660
- "description": "ISO-8601 timestamp when the Link was created.",
11880
+ "description": "A list of External Accounts associated with this Link.",
11661
11881
  "args": [
11662
11882
 
11663
11883
  ],
@@ -11995,6 +12215,55 @@
11995
12215
  "enumValues": null,
11996
12216
  "possibleTypes": null
11997
12217
  },
12218
+ {
12219
+ "kind": "OBJECT",
12220
+ "name": "Workspace",
12221
+ "description": null,
12222
+ "fields": [
12223
+ {
12224
+ "name": "id",
12225
+ "description": "The ID of the Workspace",
12226
+ "args": [
12227
+
12228
+ ],
12229
+ "type": {
12230
+ "kind": "NON_NULL",
12231
+ "name": null,
12232
+ "ofType": {
12233
+ "kind": "SCALAR",
12234
+ "name": "String",
12235
+ "ofType": null
12236
+ }
12237
+ },
12238
+ "isDeprecated": false,
12239
+ "deprecationReason": null
12240
+ },
12241
+ {
12242
+ "name": "name",
12243
+ "description": "The name of the Workspace",
12244
+ "args": [
12245
+
12246
+ ],
12247
+ "type": {
12248
+ "kind": "NON_NULL",
12249
+ "name": null,
12250
+ "ofType": {
12251
+ "kind": "SCALAR",
12252
+ "name": "String",
12253
+ "ofType": null
12254
+ }
12255
+ },
12256
+ "isDeprecated": false,
12257
+ "deprecationReason": null
12258
+ }
12259
+ ],
12260
+ "inputFields": null,
12261
+ "interfaces": [
12262
+
12263
+ ],
12264
+ "enumValues": null,
12265
+ "possibleTypes": null
12266
+ },
11998
12267
  {
11999
12268
  "kind": "OBJECT",
12000
12269
  "name": "__Directive",
@@ -12869,24 +13138,6 @@
12869
13138
  "isDeprecated": false,
12870
13139
  "deprecationReason": null
12871
13140
  },
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
13141
  {
12891
13142
  "name": "kind",
12892
13143
  "description": null,
@@ -12956,7 +13207,7 @@
12956
13207
  "deprecationReason": null
12957
13208
  },
12958
13209
  {
12959
- "name": "specifiedByURL",
13210
+ "name": "specifiedByUrl",
12960
13211
  "description": null,
12961
13212
  "args": [
12962
13213
 
@@ -13109,39 +13360,6 @@
13109
13360
  "defaultValue": "\"No longer supported\""
13110
13361
  }
13111
13362
  ]
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
13363
  }
13146
13364
  ]
13147
13365
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FragmentSDK
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.2'
5
5
  end
@@ -11,9 +11,21 @@ require 'fragment_client/version'
11
11
 
12
12
  module GraphQL
13
13
  module StaticValidation
14
- ALL_RULES = GraphQL::StaticValidation::ALL_RULES - [
15
- GraphQL::StaticValidation::ArgumentLiteralsAreCompatible
16
- ]
14
+ class LiteralValidator
15
+ alias recursive_validate_old recursively_validate
16
+ def recursively_validate(ast_value, type)
17
+ res = catch(:invalid) do
18
+ recursive_validate_old(ast_value, type)
19
+ end
20
+ if !res.valid? && type.kind.scalar? && ast_value.is_a?(GraphQL::Language::Nodes::InputObject)
21
+ maybe_raise_if_invalid(ast_value) do
22
+ ['JSON', 'JSONObject', 'Any'].include?(type.graphql_name) ? @valid_response : @invalid_response
23
+ end
24
+ else
25
+ res
26
+ end
27
+ end
28
+ end
17
29
  end
18
30
 
19
31
  class Client
data/lib/queries.graphql CHANGED
@@ -511,3 +511,42 @@ query GetSchema($key: SafeString!, $version: Int) {
511
511
  }
512
512
  }
513
513
  }
514
+
515
+ query ListLedgerEntries(
516
+ $ledgerIk: SafeString!
517
+ $after: String
518
+ $first: Int
519
+ $before: String
520
+ $filter: LedgerEntriesFilterSet
521
+ ) {
522
+ ledger(ledger: { ik: $ledgerIk }) {
523
+ ledgerEntries(after: $after, first: $first, before: $before, filter: $filter) {
524
+ nodes {
525
+ ik
526
+ type
527
+ posted
528
+ lines {
529
+ nodes {
530
+ amount
531
+ account {
532
+ path
533
+ }
534
+ }
535
+ }
536
+ }
537
+ pageInfo {
538
+ hasNextPage
539
+ endCursor
540
+ hasPreviousPage
541
+ startCursor
542
+ }
543
+ }
544
+ }
545
+ }
546
+
547
+ query GetWorkspace {
548
+ workspace {
549
+ id
550
+ name
551
+ }
552
+ }
metadata CHANGED
@@ -1,19 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fragment-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - fragment
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-09 00:00:00.000000000 Z
11
+ date: 2024-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.13'
17
20
  - - ">="
18
21
  - !ruby/object:Gem::Version
19
22
  version: 1.13.0
@@ -21,6 +24,9 @@ dependencies:
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.13'
24
30
  - - ">="
25
31
  - !ruby/object:Gem::Version
26
32
  version: 1.13.0
@@ -52,7 +58,7 @@ dependencies:
52
58
  - - "~>"
53
59
  - !ruby/object:Gem::Version
54
60
  version: '0.5'
55
- description:
61
+ description:
56
62
  email: snoble@fragment.dev
57
63
  executables: []
58
64
  extensions: []
@@ -67,7 +73,7 @@ homepage: https://fragment.dev
67
73
  licenses:
68
74
  - Apache-2.0
69
75
  metadata: {}
70
- post_install_message:
76
+ post_install_message:
71
77
  rdoc_options: []
72
78
  require_paths:
73
79
  - lib
@@ -82,8 +88,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
88
  - !ruby/object:Gem::Version
83
89
  version: '0'
84
90
  requirements: []
85
- rubygems_version: 3.0.3.1
86
- signing_key:
91
+ rubygems_version: 3.5.9
92
+ signing_key:
87
93
  specification_version: 4
88
94
  summary: the ruby fragment client sdk
89
95
  test_files: []