oriole 0.1.0.alpha.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 +7 -0
- data/.gitignore +56 -0
- data/.rubocop.yml +32 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +1 -0
- data/Gemfile +20 -0
- data/Gemfile.lock +121 -0
- data/LICENSE +21 -0
- data/README.md +84 -0
- data/Rakefile +12 -0
- data/bench/bench.rb +35 -0
- data/bench/execute.rb +66 -0
- data/bench/schemas/bluejay.rb +149 -0
- data/bench/schemas/models.rb +216 -0
- data/bench/schemas/oriole.rb +144 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/bin/style +2 -0
- data/bin/tapioca +27 -0
- data/bin/typecheck +2 -0
- data/lib/oriole/builtin_scalar_definition.rb +53 -0
- data/lib/oriole/definition/abstract/definition.rb +21 -0
- data/lib/oriole/definition/abstract/field_definition.rb +22 -0
- data/lib/oriole/definition/abstract/object_type_definition.rb +21 -0
- data/lib/oriole/definition/abstract/schema_definition.rb +18 -0
- data/lib/oriole/definition/abstract/visibility.rb +18 -0
- data/lib/oriole/definition/base_output_type.rb +13 -0
- data/lib/oriole/definition/field_definition.rb +27 -0
- data/lib/oriole/definition/object_type.rb +40 -0
- data/lib/oriole/definition/output_type.rb +79 -0
- data/lib/oriole/definition/schema.rb +45 -0
- data/lib/oriole/definition/visibility_scoped/object_type_definition.rb +62 -0
- data/lib/oriole/definition/visibility_scoped/schema_definition.rb +26 -0
- data/lib/oriole/execution/coerce_result.rb +16 -0
- data/lib/oriole/execution/engine.rb +207 -0
- data/lib/oriole/version.rb +6 -0
- data/lib/oriole.rb +14 -0
- data/oriole.gemspec +38 -0
- data/rakelib/bench.rake +69 -0
- data/sorbet/config +5 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
- data/sorbet/rbi/gems/base64@0.1.1.rbi +172 -0
- data/sorbet/rbi/gems/bluejay@0.1.0.alpha.2-a45c1b3b47aa4524f94bbe03db5ff1ae792afd09.rbi +1206 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
- data/sorbet/rbi/gems/json@2.6.3.rbi +1533 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
- data/sorbet/rbi/gems/minitest@5.19.0.rbi +1491 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +273 -0
- data/sorbet/rbi/gems/parser@3.2.2.3.rbi +7253 -0
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
- data/sorbet/rbi/gems/racc@1.7.1.rbi +161 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +3024 -0
- data/sorbet/rbi/gems/rbi@0.0.17.rbi +2972 -0
- data/sorbet/rbi/gems/regexp_parser@2.8.1.rbi +3749 -0
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +4781 -0
- data/sorbet/rbi/gems/rubocop-ast@1.29.0.rbi +7006 -0
- data/sorbet/rbi/gems/rubocop-minitest@0.27.0.rbi +2371 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +328 -0
- data/sorbet/rbi/gems/rubocop-shopify@2.14.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +975 -0
- data/sorbet/rbi/gems/rubocop@1.56.1.rbi +56525 -0
- data/sorbet/rbi/gems/ruby-lsp@0.4.5.rbi +11 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
- data/sorbet/rbi/gems/spoom@1.2.3.rbi +3203 -0
- data/sorbet/rbi/gems/syntax_tree@6.1.1.rbi +22855 -0
- data/sorbet/rbi/gems/tapioca@0.11.8.rbi +3349 -0
- data/sorbet/rbi/gems/thor@1.2.2.rbi +3965 -0
- data/sorbet/rbi/gems/tinygql@0.1.4.rbi +2363 -0
- data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
- data/sorbet/rbi/gems/unparser@0.6.8.rbi +4525 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
- data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
- data/sorbet/rbi/gems/zeitwerk@2.6.11.rbi +999 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +5 -0
- metadata +208 -0
@@ -0,0 +1,1206 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `bluejay` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem bluejay`.
|
6
|
+
|
7
|
+
# source://bluejay//lib/bluejay/version.rb#3
|
8
|
+
module Bluejay
|
9
|
+
private
|
10
|
+
|
11
|
+
def parse(_arg0); end
|
12
|
+
|
13
|
+
class << self
|
14
|
+
def parse(_arg0); end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
# source://bluejay//lib/bluejay/base/custom_scalar_type.rb#5
|
19
|
+
module Bluejay::Base; end
|
20
|
+
|
21
|
+
# @abstract Subclasses must implement the `abstract` methods below.
|
22
|
+
#
|
23
|
+
# source://bluejay//lib/bluejay/base/custom_scalar_type.rb#6
|
24
|
+
module Bluejay::Base::CustomScalarType
|
25
|
+
interface!
|
26
|
+
|
27
|
+
# @abstract
|
28
|
+
#
|
29
|
+
# source://bluejay//lib/bluejay/base/custom_scalar_type.rb#13
|
30
|
+
sig { abstract.returns(::Bluejay::CustomScalarTypeDefinition) }
|
31
|
+
def definition; end
|
32
|
+
end
|
33
|
+
|
34
|
+
# @abstract Subclasses must implement the `abstract` methods below.
|
35
|
+
#
|
36
|
+
# source://bluejay//lib/bluejay/base/directive.rb#6
|
37
|
+
module Bluejay::Base::Directive
|
38
|
+
interface!
|
39
|
+
|
40
|
+
# @abstract
|
41
|
+
#
|
42
|
+
# source://bluejay//lib/bluejay/base/directive.rb#22
|
43
|
+
sig { abstract.returns(::Bluejay::DirectiveDefinition) }
|
44
|
+
def definition; end
|
45
|
+
end
|
46
|
+
|
47
|
+
# @abstract Subclasses must implement the `abstract` methods below.
|
48
|
+
#
|
49
|
+
# source://bluejay//lib/bluejay/base/directive.rb#10
|
50
|
+
module Bluejay::Base::Directive::Instance
|
51
|
+
interface!
|
52
|
+
|
53
|
+
mixes_in_class_methods ::Bluejay::Base::Directive
|
54
|
+
end
|
55
|
+
|
56
|
+
# @abstract Subclasses must implement the `abstract` methods below.
|
57
|
+
#
|
58
|
+
# source://bluejay//lib/bluejay/base/enum_type.rb#6
|
59
|
+
module Bluejay::Base::EnumType
|
60
|
+
interface!
|
61
|
+
|
62
|
+
# @abstract
|
63
|
+
#
|
64
|
+
# source://bluejay//lib/bluejay/base/enum_type.rb#13
|
65
|
+
sig { abstract.returns(::Bluejay::EnumTypeDefinition) }
|
66
|
+
def definition; end
|
67
|
+
end
|
68
|
+
|
69
|
+
# @abstract Subclasses must implement the `abstract` methods below.
|
70
|
+
#
|
71
|
+
# source://bluejay//lib/bluejay/base/input_object_type.rb#6
|
72
|
+
module Bluejay::Base::InputObjectType
|
73
|
+
interface!
|
74
|
+
|
75
|
+
# @abstract
|
76
|
+
#
|
77
|
+
# source://bluejay//lib/bluejay/base/input_object_type.rb#13
|
78
|
+
sig { abstract.returns(::Bluejay::InputObjectTypeDefinition) }
|
79
|
+
def definition; end
|
80
|
+
end
|
81
|
+
|
82
|
+
# @abstract Subclasses must implement the `abstract` methods below.
|
83
|
+
#
|
84
|
+
# source://bluejay//lib/bluejay/base/interface_type.rb#6
|
85
|
+
module Bluejay::Base::InterfaceType
|
86
|
+
interface!
|
87
|
+
|
88
|
+
# @abstract
|
89
|
+
#
|
90
|
+
# source://bluejay//lib/bluejay/base/interface_type.rb#13
|
91
|
+
sig { abstract.returns(::Bluejay::InterfaceTypeDefinition) }
|
92
|
+
def definition; end
|
93
|
+
end
|
94
|
+
|
95
|
+
# @abstract Subclasses must implement the `abstract` methods below.
|
96
|
+
#
|
97
|
+
# source://bluejay//lib/bluejay/base/object_type.rb#6
|
98
|
+
module Bluejay::Base::ObjectType
|
99
|
+
interface!
|
100
|
+
|
101
|
+
# @abstract
|
102
|
+
#
|
103
|
+
# source://bluejay//lib/bluejay/base/object_type.rb#13
|
104
|
+
sig { abstract.returns(::Bluejay::ObjectTypeDefinition) }
|
105
|
+
def definition; end
|
106
|
+
end
|
107
|
+
|
108
|
+
# @abstract Subclasses must implement the `abstract` methods below.
|
109
|
+
#
|
110
|
+
# source://bluejay//lib/bluejay/base/query_root.rb#6
|
111
|
+
module Bluejay::Base::QueryRoot
|
112
|
+
requires_ancestor { Bluejay::Base::ObjectType }
|
113
|
+
|
114
|
+
interface!
|
115
|
+
end
|
116
|
+
|
117
|
+
# @abstract Subclasses must implement the `abstract` methods below.
|
118
|
+
#
|
119
|
+
# source://bluejay//lib/bluejay/base/schema.rb#6
|
120
|
+
module Bluejay::Base::Schema
|
121
|
+
interface!
|
122
|
+
|
123
|
+
# @abstract
|
124
|
+
#
|
125
|
+
# source://bluejay//lib/bluejay/base/schema.rb#13
|
126
|
+
sig { abstract.returns(::Bluejay::SchemaDefinition) }
|
127
|
+
def definition; end
|
128
|
+
end
|
129
|
+
|
130
|
+
# @abstract Subclasses must implement the `abstract` methods below.
|
131
|
+
#
|
132
|
+
# source://bluejay//lib/bluejay/base/union_type.rb#6
|
133
|
+
module Bluejay::Base::UnionType
|
134
|
+
interface!
|
135
|
+
|
136
|
+
# @abstract
|
137
|
+
#
|
138
|
+
# source://bluejay//lib/bluejay/base/union_type.rb#13
|
139
|
+
sig { abstract.returns(::Bluejay::UnionTypeDefinition) }
|
140
|
+
def definition; end
|
141
|
+
end
|
142
|
+
|
143
|
+
# source://bluejay//lib/bluejay/base_input_type.rb#5
|
144
|
+
Bluejay::BaseInputType = T.type_alias { T.any(::Bluejay::Base::CustomScalarType, ::Bluejay::Base::EnumType, ::Bluejay::Base::InputObjectType, ::Bluejay::Scalar) }
|
145
|
+
|
146
|
+
# source://bluejay//lib/bluejay/base_output_type.rb#5
|
147
|
+
Bluejay::BaseOutputType = T.type_alias { T.any(::Bluejay::Base::CustomScalarType, ::Bluejay::Base::EnumType, ::Bluejay::Base::InterfaceType, ::Bluejay::Base::ObjectType, ::Bluejay::Base::UnionType, ::Bluejay::Scalar) }
|
148
|
+
|
149
|
+
# source://bluejay//lib/bluejay/builtin.rb#5
|
150
|
+
module Bluejay::Builtin
|
151
|
+
class << self
|
152
|
+
# source://bluejay//lib/bluejay/builtin.rb#10
|
153
|
+
sig { returns(::Bluejay::FieldDefinition) }
|
154
|
+
def typename_field_definition; end
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
# source://bluejay//lib/bluejay/builtin/directives/deprecated.rb#6
|
159
|
+
module Bluejay::Builtin::Directives; end
|
160
|
+
|
161
|
+
# source://bluejay//lib/bluejay/builtin/directives/deprecated.rb#7
|
162
|
+
class Bluejay::Builtin::Directives::Deprecated < ::Bluejay::Directive
|
163
|
+
class << self
|
164
|
+
# source://bluejay//lib/bluejay/builtin/directives/deprecated.rb#17
|
165
|
+
sig { override.returns(T::Array[::Bluejay::InputValueDefinition]) }
|
166
|
+
def argument_definitions; end
|
167
|
+
|
168
|
+
# source://bluejay//lib/bluejay/builtin/directives/deprecated.rb#12
|
169
|
+
sig { override.returns(::String) }
|
170
|
+
def graphql_name; end
|
171
|
+
|
172
|
+
# source://bluejay//lib/bluejay/builtin/directives/deprecated.rb#24
|
173
|
+
sig { override.returns(T::Array[::Bluejay::DirectiveLocation]) }
|
174
|
+
def locations; end
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# source://bluejay//lib/bluejay/builtin/directives/include.rb#7
|
179
|
+
class Bluejay::Builtin::Directives::Include < ::Bluejay::Directive
|
180
|
+
class << self
|
181
|
+
# source://bluejay//lib/bluejay/builtin/directives/include.rb#17
|
182
|
+
sig { override.returns(T::Array[::Bluejay::InputValueDefinition]) }
|
183
|
+
def argument_definitions; end
|
184
|
+
|
185
|
+
# source://bluejay//lib/bluejay/builtin/directives/include.rb#12
|
186
|
+
sig { override.returns(::String) }
|
187
|
+
def graphql_name; end
|
188
|
+
|
189
|
+
# source://bluejay//lib/bluejay/builtin/directives/include.rb#24
|
190
|
+
sig { override.returns(T::Array[::Bluejay::DirectiveLocation]) }
|
191
|
+
def locations; end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
# source://bluejay//lib/bluejay/builtin/directives/skip.rb#7
|
196
|
+
class Bluejay::Builtin::Directives::Skip < ::Bluejay::Directive
|
197
|
+
class << self
|
198
|
+
# source://bluejay//lib/bluejay/builtin/directives/skip.rb#17
|
199
|
+
sig { override.returns(T::Array[::Bluejay::InputValueDefinition]) }
|
200
|
+
def argument_definitions; end
|
201
|
+
|
202
|
+
# source://bluejay//lib/bluejay/builtin/directives/skip.rb#12
|
203
|
+
sig { override.returns(::String) }
|
204
|
+
def graphql_name; end
|
205
|
+
|
206
|
+
# source://bluejay//lib/bluejay/builtin/directives/skip.rb#24
|
207
|
+
sig { override.returns(T::Array[::Bluejay::DirectiveLocation]) }
|
208
|
+
def locations; end
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
# source://bluejay//lib/bluejay/builtin/directives/specified_by.rb#7
|
213
|
+
class Bluejay::Builtin::Directives::SpecifiedBy < ::Bluejay::Directive
|
214
|
+
class << self
|
215
|
+
# source://bluejay//lib/bluejay/builtin/directives/specified_by.rb#17
|
216
|
+
sig { override.returns(T::Array[::Bluejay::InputValueDefinition]) }
|
217
|
+
def argument_definitions; end
|
218
|
+
|
219
|
+
# source://bluejay//lib/bluejay/builtin/directives/specified_by.rb#12
|
220
|
+
sig { override.returns(::String) }
|
221
|
+
def graphql_name; end
|
222
|
+
|
223
|
+
# source://bluejay//lib/bluejay/builtin/directives/specified_by.rb#24
|
224
|
+
sig { override.returns(T::Array[::Bluejay::DirectiveLocation]) }
|
225
|
+
def locations; end
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
# source://bluejay//lib/bluejay/builtin/enum_types/directive_location.rb#6
|
230
|
+
module Bluejay::Builtin::EnumTypes; end
|
231
|
+
|
232
|
+
# source://bluejay//lib/bluejay/builtin/enum_types/directive_location.rb#7
|
233
|
+
class Bluejay::Builtin::EnumTypes::DirectiveLocation < ::Bluejay::EnumType
|
234
|
+
class << self
|
235
|
+
# source://bluejay//lib/bluejay/builtin/enum_types/directive_location.rb#17
|
236
|
+
sig { override.returns(T::Array[::Bluejay::EnumValueDefinition]) }
|
237
|
+
def enum_value_definitions; end
|
238
|
+
|
239
|
+
# source://bluejay//lib/bluejay/builtin/enum_types/directive_location.rb#12
|
240
|
+
sig { override.returns(::String) }
|
241
|
+
def graphql_name; end
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
# source://bluejay//lib/bluejay/builtin/enum_types/type_kind.rb#7
|
246
|
+
class Bluejay::Builtin::EnumTypes::TypeKind < ::Bluejay::EnumType
|
247
|
+
class << self
|
248
|
+
# source://bluejay//lib/bluejay/builtin/enum_types/type_kind.rb#17
|
249
|
+
sig { override.returns(T::Array[::Bluejay::EnumValueDefinition]) }
|
250
|
+
def enum_value_definitions; end
|
251
|
+
|
252
|
+
# source://bluejay//lib/bluejay/builtin/enum_types/type_kind.rb#12
|
253
|
+
sig { override.returns(::String) }
|
254
|
+
def graphql_name; end
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
# source://bluejay//lib/bluejay/builtin/object_types/enum_value.rb#6
|
259
|
+
module Bluejay::Builtin::ObjectTypes; end
|
260
|
+
|
261
|
+
# source://bluejay//lib/bluejay/builtin/object_types/directive.rb#7
|
262
|
+
class Bluejay::Builtin::ObjectTypes::Directive < ::Bluejay::ObjectType
|
263
|
+
class << self
|
264
|
+
# source://bluejay//lib/bluejay/builtin/object_types/directive.rb#17
|
265
|
+
sig { override.returns(T::Array[::Bluejay::FieldDefinition]) }
|
266
|
+
def field_definitions; end
|
267
|
+
|
268
|
+
# source://bluejay//lib/bluejay/builtin/object_types/directive.rb#12
|
269
|
+
sig { override.returns(::String) }
|
270
|
+
def graphql_name; end
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
# source://bluejay//lib/bluejay/builtin/object_types/enum_value.rb#7
|
275
|
+
class Bluejay::Builtin::ObjectTypes::EnumValue < ::Bluejay::ObjectType
|
276
|
+
class << self
|
277
|
+
# source://bluejay//lib/bluejay/builtin/object_types/enum_value.rb#17
|
278
|
+
sig { override.returns(T::Array[::Bluejay::FieldDefinition]) }
|
279
|
+
def field_definitions; end
|
280
|
+
|
281
|
+
# source://bluejay//lib/bluejay/builtin/object_types/enum_value.rb#12
|
282
|
+
sig { override.returns(::String) }
|
283
|
+
def graphql_name; end
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
# source://bluejay//lib/bluejay/builtin/object_types/field.rb#7
|
288
|
+
class Bluejay::Builtin::ObjectTypes::Field < ::Bluejay::ObjectType
|
289
|
+
class << self
|
290
|
+
# source://bluejay//lib/bluejay/builtin/object_types/field.rb#17
|
291
|
+
sig { override.returns(T::Array[::Bluejay::FieldDefinition]) }
|
292
|
+
def field_definitions; end
|
293
|
+
|
294
|
+
# source://bluejay//lib/bluejay/builtin/object_types/field.rb#12
|
295
|
+
sig { override.returns(::String) }
|
296
|
+
def graphql_name; end
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
300
|
+
# source://bluejay//lib/bluejay/builtin/object_types/input_value.rb#7
|
301
|
+
class Bluejay::Builtin::ObjectTypes::InputValue < ::Bluejay::ObjectType
|
302
|
+
class << self
|
303
|
+
# source://bluejay//lib/bluejay/builtin/object_types/input_value.rb#17
|
304
|
+
sig { override.returns(T::Array[::Bluejay::FieldDefinition]) }
|
305
|
+
def field_definitions; end
|
306
|
+
|
307
|
+
# source://bluejay//lib/bluejay/builtin/object_types/input_value.rb#12
|
308
|
+
sig { override.returns(::String) }
|
309
|
+
def graphql_name; end
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
# source://bluejay//lib/bluejay/builtin/object_types/schema.rb#7
|
314
|
+
class Bluejay::Builtin::ObjectTypes::Schema < ::Bluejay::ObjectType
|
315
|
+
class << self
|
316
|
+
# source://bluejay//lib/bluejay/builtin/object_types/schema.rb#17
|
317
|
+
sig { override.returns(T::Array[::Bluejay::FieldDefinition]) }
|
318
|
+
def field_definitions; end
|
319
|
+
|
320
|
+
# source://bluejay//lib/bluejay/builtin/object_types/schema.rb#12
|
321
|
+
sig { override.returns(::String) }
|
322
|
+
def graphql_name; end
|
323
|
+
end
|
324
|
+
end
|
325
|
+
|
326
|
+
# source://bluejay//lib/bluejay/builtin/object_types/type.rb#7
|
327
|
+
class Bluejay::Builtin::ObjectTypes::Type < ::Bluejay::ObjectType
|
328
|
+
class << self
|
329
|
+
# source://bluejay//lib/bluejay/builtin/object_types/type.rb#17
|
330
|
+
sig { override.returns(T::Array[::Bluejay::FieldDefinition]) }
|
331
|
+
def field_definitions; end
|
332
|
+
|
333
|
+
# source://bluejay//lib/bluejay/builtin/object_types/type.rb#12
|
334
|
+
sig { override.returns(::String) }
|
335
|
+
def graphql_name; end
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
class Bluejay::CoercionError
|
340
|
+
def ==(_arg0); end
|
341
|
+
def inspect; end
|
342
|
+
def message; end
|
343
|
+
def path; end
|
344
|
+
|
345
|
+
class << self
|
346
|
+
def new(_arg0, _arg1); end
|
347
|
+
end
|
348
|
+
end
|
349
|
+
|
350
|
+
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
351
|
+
#
|
352
|
+
# source://bluejay//lib/bluejay/custom_scalar_type.rb#5
|
353
|
+
class Bluejay::CustomScalarType
|
354
|
+
extend T::Generic
|
355
|
+
extend ::Bluejay::NameFromClass
|
356
|
+
extend ::Bluejay::Base::CustomScalarType
|
357
|
+
|
358
|
+
abstract!
|
359
|
+
|
360
|
+
InternalRepresentation = type_template
|
361
|
+
|
362
|
+
class << self
|
363
|
+
# @abstract
|
364
|
+
#
|
365
|
+
# source://bluejay//lib/bluejay/custom_scalar_type.rb#44
|
366
|
+
sig { abstract.params(value: T.untyped).returns(::Bluejay::Result) }
|
367
|
+
def coerce_input(value); end
|
368
|
+
|
369
|
+
# source://bluejay//lib/bluejay/custom_scalar_type.rb#39
|
370
|
+
sig { overridable.params(value: InternalRepresentation).returns(::Bluejay::Result) }
|
371
|
+
def coerce_result(value); end
|
372
|
+
|
373
|
+
# source://bluejay//lib/bluejay/custom_scalar_type.rb#24
|
374
|
+
sig { overridable.returns(T.nilable(::String)) }
|
375
|
+
def description; end
|
376
|
+
|
377
|
+
# source://bluejay//lib/bluejay/custom_scalar_type.rb#29
|
378
|
+
sig { overridable.returns(T::Array[::Bluejay::Directive]) }
|
379
|
+
def directives; end
|
380
|
+
|
381
|
+
# source://bluejay//lib/bluejay/custom_scalar_type.rb#19
|
382
|
+
sig { overridable.returns(::String) }
|
383
|
+
def graphql_name; end
|
384
|
+
|
385
|
+
# source://bluejay//lib/bluejay/custom_scalar_type.rb#47
|
386
|
+
sig { overridable.returns(::String) }
|
387
|
+
def internal_representation_sorbet_type_name; end
|
388
|
+
|
389
|
+
# source://bluejay//lib/bluejay/custom_scalar_type.rb#34
|
390
|
+
sig { overridable.returns(T.nilable(::String)) }
|
391
|
+
def specified_by_url; end
|
392
|
+
|
393
|
+
private
|
394
|
+
|
395
|
+
# source://bluejay//lib/bluejay/custom_scalar_type.rb#54
|
396
|
+
sig(:final) { override.returns(::Bluejay::CustomScalarTypeDefinition) }
|
397
|
+
def definition; end
|
398
|
+
end
|
399
|
+
end
|
400
|
+
|
401
|
+
class Bluejay::CustomScalarTypeDefinition
|
402
|
+
def description; end
|
403
|
+
def enum_values(_arg0); end
|
404
|
+
def fields(_arg0); end
|
405
|
+
def input_fields; end
|
406
|
+
def interfaces; end
|
407
|
+
def kind; end
|
408
|
+
def name; end
|
409
|
+
def of_type; end
|
410
|
+
def possible_types; end
|
411
|
+
def resolve_typename; end
|
412
|
+
def specified_by_url; end
|
413
|
+
|
414
|
+
class << self
|
415
|
+
def new(_arg0); end
|
416
|
+
end
|
417
|
+
end
|
418
|
+
|
419
|
+
class Bluejay::CustomScalarTypeDefinition::CoercionMethodSignature
|
420
|
+
class << self
|
421
|
+
def exception(_arg0); end
|
422
|
+
end
|
423
|
+
end
|
424
|
+
|
425
|
+
Bluejay::CustomScalarTypeDefinition::CoercionMethodSignature::Result = T.let(T.unsafe(nil), Bluejay::CustomScalarTypeDefinition::CoercionMethodSignature)
|
426
|
+
|
427
|
+
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
428
|
+
#
|
429
|
+
# source://bluejay//lib/bluejay/directive.rb#5
|
430
|
+
class Bluejay::Directive
|
431
|
+
include ::Bluejay::Base::Directive::Instance
|
432
|
+
extend ::Bluejay::Base::Directive
|
433
|
+
extend ::Bluejay::InputTypeShorthands
|
434
|
+
extend ::Bluejay::NameFromClass
|
435
|
+
|
436
|
+
abstract!
|
437
|
+
|
438
|
+
# source://bluejay//lib/bluejay/directive.rb#59
|
439
|
+
def initialize(**kwargs); end
|
440
|
+
|
441
|
+
# source://bluejay//lib/bluejay/directive.rb#67
|
442
|
+
def ==(other); end
|
443
|
+
|
444
|
+
class << self
|
445
|
+
# @abstract
|
446
|
+
#
|
447
|
+
# source://bluejay//lib/bluejay/directive.rb#28
|
448
|
+
sig { abstract.returns(T::Array[::Bluejay::InputValueDefinition]) }
|
449
|
+
def argument_definitions; end
|
450
|
+
|
451
|
+
# source://bluejay//lib/bluejay/directive.rb#23
|
452
|
+
sig { overridable.returns(T.nilable(::String)) }
|
453
|
+
def description; end
|
454
|
+
|
455
|
+
# source://bluejay//lib/bluejay/directive.rb#18
|
456
|
+
sig { overridable.returns(::String) }
|
457
|
+
def graphql_name; end
|
458
|
+
|
459
|
+
# @abstract
|
460
|
+
#
|
461
|
+
# source://bluejay//lib/bluejay/directive.rb#31
|
462
|
+
sig { abstract.returns(T::Array[::Bluejay::DirectiveLocation]) }
|
463
|
+
def locations; end
|
464
|
+
|
465
|
+
# source://bluejay//lib/bluejay/directive.rb#34
|
466
|
+
sig { overridable.returns(T::Boolean) }
|
467
|
+
def repeatable?; end
|
468
|
+
|
469
|
+
private
|
470
|
+
|
471
|
+
# source://bluejay//lib/bluejay/directive.rb#41
|
472
|
+
sig(:final) { override.returns(::Bluejay::DirectiveDefinition) }
|
473
|
+
def definition; end
|
474
|
+
end
|
475
|
+
end
|
476
|
+
|
477
|
+
class Bluejay::DirectiveDefinition
|
478
|
+
def args; end
|
479
|
+
def argument_definitions; end
|
480
|
+
def description; end
|
481
|
+
def locations; end
|
482
|
+
def name; end
|
483
|
+
def repeatable?; end
|
484
|
+
def resolve_typename; end
|
485
|
+
|
486
|
+
class << self
|
487
|
+
def new(_arg0); end
|
488
|
+
end
|
489
|
+
end
|
490
|
+
|
491
|
+
class Bluejay::DirectiveLocation; end
|
492
|
+
Bluejay::DirectiveLocation::ARGUMENT_DEFINITION = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
493
|
+
Bluejay::DirectiveLocation::ENUM = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
494
|
+
Bluejay::DirectiveLocation::ENUM_VALUE = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
495
|
+
Bluejay::DirectiveLocation::FIELD = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
496
|
+
Bluejay::DirectiveLocation::FIELD_DEFINITION = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
497
|
+
Bluejay::DirectiveLocation::FRAGMENT_DEFINITION = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
498
|
+
Bluejay::DirectiveLocation::FRAGMENT_SPREAD = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
499
|
+
Bluejay::DirectiveLocation::INLINE_FRAGMENT = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
500
|
+
Bluejay::DirectiveLocation::INPUT_FIELD_DEFINITION = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
501
|
+
Bluejay::DirectiveLocation::INPUT_OBJECT = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
502
|
+
Bluejay::DirectiveLocation::INTERFACE = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
503
|
+
Bluejay::DirectiveLocation::MUTATION = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
504
|
+
Bluejay::DirectiveLocation::OBJECT = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
505
|
+
Bluejay::DirectiveLocation::QUERY = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
506
|
+
Bluejay::DirectiveLocation::SCALAR = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
507
|
+
Bluejay::DirectiveLocation::SCHEMA = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
508
|
+
Bluejay::DirectiveLocation::SUBSCRIPTION = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
509
|
+
Bluejay::DirectiveLocation::UNION = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
510
|
+
Bluejay::DirectiveLocation::VARIABLE_DEFINITION = T.let(T.unsafe(nil), Bluejay::DirectiveLocation)
|
511
|
+
|
512
|
+
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
513
|
+
#
|
514
|
+
# source://bluejay//lib/bluejay/enum_type.rb#5
|
515
|
+
class Bluejay::EnumType
|
516
|
+
extend ::Bluejay::NameFromClass
|
517
|
+
extend ::Bluejay::Base::EnumType
|
518
|
+
|
519
|
+
abstract!
|
520
|
+
|
521
|
+
class << self
|
522
|
+
# source://bluejay//lib/bluejay/enum_type.rb#20
|
523
|
+
sig { overridable.returns(T.nilable(::String)) }
|
524
|
+
def description; end
|
525
|
+
|
526
|
+
# source://bluejay//lib/bluejay/enum_type.rb#28
|
527
|
+
sig { overridable.returns(T::Array[::Bluejay::Directive]) }
|
528
|
+
def directives; end
|
529
|
+
|
530
|
+
# @abstract
|
531
|
+
#
|
532
|
+
# source://bluejay//lib/bluejay/enum_type.rb#25
|
533
|
+
sig { abstract.returns(T::Array[::Bluejay::EnumValueDefinition]) }
|
534
|
+
def enum_value_definitions; end
|
535
|
+
|
536
|
+
# source://bluejay//lib/bluejay/enum_type.rb#15
|
537
|
+
sig { overridable.returns(::String) }
|
538
|
+
def graphql_name; end
|
539
|
+
|
540
|
+
private
|
541
|
+
|
542
|
+
# source://bluejay//lib/bluejay/enum_type.rb#35
|
543
|
+
sig(:final) { override.returns(::Bluejay::EnumTypeDefinition) }
|
544
|
+
def definition; end
|
545
|
+
end
|
546
|
+
end
|
547
|
+
|
548
|
+
class Bluejay::EnumTypeDefinition
|
549
|
+
def description; end
|
550
|
+
def enum_values(_arg0); end
|
551
|
+
def fields(_arg0); end
|
552
|
+
def input_fields; end
|
553
|
+
def interfaces; end
|
554
|
+
def kind; end
|
555
|
+
def name; end
|
556
|
+
def of_type; end
|
557
|
+
def possible_types; end
|
558
|
+
def resolve_typename; end
|
559
|
+
def specified_by_url; end
|
560
|
+
|
561
|
+
class << self
|
562
|
+
def new(_arg0); end
|
563
|
+
end
|
564
|
+
end
|
565
|
+
|
566
|
+
class Bluejay::EnumValueDefinition
|
567
|
+
def deprecated?; end
|
568
|
+
def deprecation_reason; end
|
569
|
+
def description; end
|
570
|
+
def name; end
|
571
|
+
def resolve_typename; end
|
572
|
+
|
573
|
+
class << self
|
574
|
+
def new(_arg0); end
|
575
|
+
end
|
576
|
+
end
|
577
|
+
|
578
|
+
# source://bluejay//lib/bluejay/errors.rb#5
|
579
|
+
module Bluejay::Errors; end
|
580
|
+
|
581
|
+
# source://bluejay//lib/bluejay/errors.rb#6
|
582
|
+
class Bluejay::Errors::BaseError < ::StandardError; end
|
583
|
+
|
584
|
+
# source://bluejay//lib/bluejay/errors.rb#8
|
585
|
+
class Bluejay::Errors::DefaultValueError < ::Bluejay::Errors::BaseError
|
586
|
+
# source://bluejay//lib/bluejay/errors.rb#12
|
587
|
+
sig { params(errors: T::Array[::Bluejay::CoercionError], value: ::Object, ivd_name: ::String).void }
|
588
|
+
def initialize(errors, value, ivd_name); end
|
589
|
+
end
|
590
|
+
|
591
|
+
# source://bluejay//lib/bluejay/errors.rb#19
|
592
|
+
class Bluejay::Errors::NonUniqueDefinitionNameError < ::Bluejay::Errors::BaseError; end
|
593
|
+
|
594
|
+
class Bluejay::ExecutionError
|
595
|
+
def ==(_arg0); end
|
596
|
+
def inspect; end
|
597
|
+
def message; end
|
598
|
+
def path; end
|
599
|
+
def to_h; end
|
600
|
+
|
601
|
+
class << self
|
602
|
+
def new(*_arg0); end
|
603
|
+
end
|
604
|
+
end
|
605
|
+
|
606
|
+
class Bluejay::ExecutionResult
|
607
|
+
def errors; end
|
608
|
+
def value; end
|
609
|
+
end
|
610
|
+
|
611
|
+
class Bluejay::FieldDefinition
|
612
|
+
def args; end
|
613
|
+
def argument_definitions; end
|
614
|
+
def deprecated?; end
|
615
|
+
def deprecation_reason; end
|
616
|
+
def description; end
|
617
|
+
def directives; end
|
618
|
+
def name; end
|
619
|
+
def resolve_typename; end
|
620
|
+
def resolver_method_name; end
|
621
|
+
def type; end
|
622
|
+
|
623
|
+
class << self
|
624
|
+
def new(_arg0); end
|
625
|
+
end
|
626
|
+
end
|
627
|
+
|
628
|
+
# @abstract Subclasses must implement the `abstract` methods below.
|
629
|
+
#
|
630
|
+
# source://bluejay//lib/bluejay/finalize.rb#5
|
631
|
+
module Bluejay::Finalize
|
632
|
+
abstract!
|
633
|
+
|
634
|
+
# @abstract
|
635
|
+
#
|
636
|
+
# source://bluejay//lib/bluejay/finalize.rb#12
|
637
|
+
sig { abstract.void }
|
638
|
+
def finalize; end
|
639
|
+
|
640
|
+
# source://bluejay//lib/bluejay/finalize.rb#15
|
641
|
+
sig { params(obj: ::Bluejay::Finalize).void }
|
642
|
+
def inherited(obj); end
|
643
|
+
end
|
644
|
+
|
645
|
+
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
646
|
+
#
|
647
|
+
# source://bluejay//lib/bluejay/input_object_type.rb#5
|
648
|
+
class Bluejay::InputObjectType
|
649
|
+
extend ::Bluejay::InputTypeShorthands
|
650
|
+
extend ::Bluejay::NameFromClass
|
651
|
+
extend ::Bluejay::Base::InputObjectType
|
652
|
+
|
653
|
+
abstract!
|
654
|
+
|
655
|
+
# source://bluejay//lib/bluejay/input_object_type.rb#58
|
656
|
+
def initialize(**kwargs); end
|
657
|
+
|
658
|
+
# source://bluejay//lib/bluejay/input_object_type.rb#66
|
659
|
+
def ==(other); end
|
660
|
+
|
661
|
+
class << self
|
662
|
+
# source://bluejay//lib/bluejay/input_object_type.rb#34
|
663
|
+
sig { params(value: T.untyped, context: T.untyped).returns(::Bluejay::Result) }
|
664
|
+
def coerce_input(value, context: T.unsafe(nil)); end
|
665
|
+
|
666
|
+
# source://bluejay//lib/bluejay/input_object_type.rb#21
|
667
|
+
sig { overridable.returns(T.nilable(::String)) }
|
668
|
+
def description; end
|
669
|
+
|
670
|
+
# source://bluejay//lib/bluejay/input_object_type.rb#29
|
671
|
+
sig { overridable.returns(T::Array[::Bluejay::Directive]) }
|
672
|
+
def directives; end
|
673
|
+
|
674
|
+
# source://bluejay//lib/bluejay/input_object_type.rb#16
|
675
|
+
sig { overridable.returns(::String) }
|
676
|
+
def graphql_name; end
|
677
|
+
|
678
|
+
# @abstract
|
679
|
+
#
|
680
|
+
# source://bluejay//lib/bluejay/input_object_type.rb#26
|
681
|
+
sig { abstract.returns(T::Array[::Bluejay::InputValueDefinition]) }
|
682
|
+
def input_field_definitions; end
|
683
|
+
|
684
|
+
private
|
685
|
+
|
686
|
+
# source://bluejay//lib/bluejay/input_object_type.rb#41
|
687
|
+
sig(:final) { override.returns(::Bluejay::InputObjectTypeDefinition) }
|
688
|
+
def definition; end
|
689
|
+
end
|
690
|
+
end
|
691
|
+
|
692
|
+
class Bluejay::InputObjectTypeDefinition
|
693
|
+
def coerce_input(_arg0, _arg1); end
|
694
|
+
def description; end
|
695
|
+
def enum_values(_arg0); end
|
696
|
+
def fields(_arg0); end
|
697
|
+
def input_field_definitions; end
|
698
|
+
def input_fields; end
|
699
|
+
def interfaces; end
|
700
|
+
def kind; end
|
701
|
+
def name; end
|
702
|
+
def of_type; end
|
703
|
+
def possible_types; end
|
704
|
+
def resolve_typename; end
|
705
|
+
def specified_by_url; end
|
706
|
+
|
707
|
+
class << self
|
708
|
+
def new(_arg0); end
|
709
|
+
end
|
710
|
+
end
|
711
|
+
|
712
|
+
class Bluejay::InputType
|
713
|
+
def base?; end
|
714
|
+
def description; end
|
715
|
+
def enum_values(_arg0); end
|
716
|
+
def fields(_arg0); end
|
717
|
+
def input_fields; end
|
718
|
+
def interfaces; end
|
719
|
+
def kind; end
|
720
|
+
def list?; end
|
721
|
+
def name; end
|
722
|
+
def of_type; end
|
723
|
+
def possible_types; end
|
724
|
+
def required?; end
|
725
|
+
def resolve_typename; end
|
726
|
+
def sorbet_type; end
|
727
|
+
def specified_by_url; end
|
728
|
+
def unwrap_list; end
|
729
|
+
|
730
|
+
class << self
|
731
|
+
def list(_arg0); end
|
732
|
+
def new(_arg0); end
|
733
|
+
end
|
734
|
+
end
|
735
|
+
|
736
|
+
# source://bluejay//lib/bluejay/input_type_shorthands.rb#5
|
737
|
+
module Bluejay::InputTypeShorthands
|
738
|
+
# source://bluejay//lib/bluejay/input_type_shorthands.rb#9
|
739
|
+
sig do
|
740
|
+
params(
|
741
|
+
t: T.any(::Bluejay::Base::CustomScalarType, ::Bluejay::Base::EnumType, ::Bluejay::Base::InputObjectType, ::Bluejay::Scalar)
|
742
|
+
).returns(::Bluejay::InputType)
|
743
|
+
end
|
744
|
+
def it(t); end
|
745
|
+
|
746
|
+
# source://bluejay//lib/bluejay/input_type_shorthands.rb#14
|
747
|
+
sig do
|
748
|
+
params(
|
749
|
+
t: T.any(::Bluejay::Base::CustomScalarType, ::Bluejay::Base::EnumType, ::Bluejay::Base::InputObjectType, ::Bluejay::Scalar)
|
750
|
+
).returns(::Bluejay::InputType)
|
751
|
+
end
|
752
|
+
def it!(t); end
|
753
|
+
|
754
|
+
# source://bluejay//lib/bluejay/input_type_shorthands.rb#19
|
755
|
+
sig { params(t: ::Bluejay::InputType).returns(::Bluejay::InputType) }
|
756
|
+
def lit(t); end
|
757
|
+
|
758
|
+
# source://bluejay//lib/bluejay/input_type_shorthands.rb#24
|
759
|
+
sig { params(t: ::Bluejay::InputType).returns(::Bluejay::InputType) }
|
760
|
+
def lit!(t); end
|
761
|
+
end
|
762
|
+
|
763
|
+
class Bluejay::InputValueDefinition
|
764
|
+
def default_value; end
|
765
|
+
def deprecated?; end
|
766
|
+
def deprecation_reason; end
|
767
|
+
def description; end
|
768
|
+
def name; end
|
769
|
+
def resolve_typename; end
|
770
|
+
def ruby_name; end
|
771
|
+
def type; end
|
772
|
+
|
773
|
+
class << self
|
774
|
+
def new(_arg0); end
|
775
|
+
end
|
776
|
+
end
|
777
|
+
|
778
|
+
class Bluejay::InterfaceImplementation
|
779
|
+
def interface; end
|
780
|
+
|
781
|
+
class << self
|
782
|
+
def new(_arg0); end
|
783
|
+
end
|
784
|
+
end
|
785
|
+
|
786
|
+
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
787
|
+
#
|
788
|
+
# source://bluejay//lib/bluejay/interface_type.rb#5
|
789
|
+
class Bluejay::InterfaceType
|
790
|
+
extend ::Bluejay::OutputTypeShorthands
|
791
|
+
extend ::Bluejay::InputTypeShorthands
|
792
|
+
extend ::Bluejay::NameFromClass
|
793
|
+
extend ::Bluejay::Base::InterfaceType
|
794
|
+
|
795
|
+
abstract!
|
796
|
+
|
797
|
+
class << self
|
798
|
+
# source://bluejay//lib/bluejay/interface_type.rb#22
|
799
|
+
sig { overridable.returns(T.nilable(::String)) }
|
800
|
+
def description; end
|
801
|
+
|
802
|
+
# source://bluejay//lib/bluejay/interface_type.rb#35
|
803
|
+
sig { overridable.returns(T::Array[::Bluejay::Directive]) }
|
804
|
+
def directives; end
|
805
|
+
|
806
|
+
# @abstract
|
807
|
+
#
|
808
|
+
# source://bluejay//lib/bluejay/interface_type.rb#27
|
809
|
+
sig { abstract.returns(T::Array[::Bluejay::FieldDefinition]) }
|
810
|
+
def field_definitions; end
|
811
|
+
|
812
|
+
# source://bluejay//lib/bluejay/interface_type.rb#17
|
813
|
+
sig { overridable.returns(::String) }
|
814
|
+
def graphql_name; end
|
815
|
+
|
816
|
+
# source://bluejay//lib/bluejay/interface_type.rb#30
|
817
|
+
sig { overridable.returns(T::Array[::Bluejay::InterfaceImplementation]) }
|
818
|
+
def interface_implementations; end
|
819
|
+
|
820
|
+
private
|
821
|
+
|
822
|
+
# source://bluejay//lib/bluejay/interface_type.rb#42
|
823
|
+
sig { params(name: ::Symbol).returns(T.untyped) }
|
824
|
+
def const_missing(name); end
|
825
|
+
|
826
|
+
# source://bluejay//lib/bluejay/interface_type.rb#52
|
827
|
+
sig { override.returns(::Bluejay::InterfaceTypeDefinition) }
|
828
|
+
def definition; end
|
829
|
+
end
|
830
|
+
end
|
831
|
+
|
832
|
+
class Bluejay::InterfaceTypeDefinition
|
833
|
+
def description; end
|
834
|
+
def enum_values(_arg0); end
|
835
|
+
def fields(_arg0); end
|
836
|
+
def input_fields; end
|
837
|
+
def interfaces; end
|
838
|
+
def kind; end
|
839
|
+
def name; end
|
840
|
+
def of_type; end
|
841
|
+
def possible_types; end
|
842
|
+
def resolve_typename; end
|
843
|
+
def specified_by_url; end
|
844
|
+
|
845
|
+
class << self
|
846
|
+
def new(_arg0); end
|
847
|
+
end
|
848
|
+
end
|
849
|
+
|
850
|
+
# source://bluejay//lib/bluejay/json_value.rb#5
|
851
|
+
Bluejay::JsonValue = T.type_alias { T.nilable(T.any(::Float, ::Integer, ::String, T::Array[::Object], T::Boolean, T::Hash[::String, ::Object])) }
|
852
|
+
|
853
|
+
# source://bluejay//lib/bluejay/name_from_class.rb#5
|
854
|
+
module Bluejay::NameFromClass
|
855
|
+
requires_ancestor { Module }
|
856
|
+
|
857
|
+
private
|
858
|
+
|
859
|
+
# source://bluejay//lib/bluejay/name_from_class.rb#14
|
860
|
+
sig { returns(::String) }
|
861
|
+
def name_from_class; end
|
862
|
+
end
|
863
|
+
|
864
|
+
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
865
|
+
#
|
866
|
+
# source://bluejay//lib/bluejay/object_type.rb#5
|
867
|
+
class Bluejay::ObjectType
|
868
|
+
extend ::Bluejay::OutputTypeShorthands
|
869
|
+
extend ::Bluejay::InputTypeShorthands
|
870
|
+
extend ::Bluejay::NameFromClass
|
871
|
+
extend ::Bluejay::Base::ObjectType
|
872
|
+
|
873
|
+
abstract!
|
874
|
+
|
875
|
+
class << self
|
876
|
+
# source://bluejay//lib/bluejay/object_type.rb#22
|
877
|
+
sig { overridable.returns(T.nilable(::String)) }
|
878
|
+
def description; end
|
879
|
+
|
880
|
+
# source://bluejay//lib/bluejay/object_type.rb#35
|
881
|
+
sig { overridable.returns(T::Array[::Bluejay::Directive]) }
|
882
|
+
def directives; end
|
883
|
+
|
884
|
+
# @abstract
|
885
|
+
#
|
886
|
+
# source://bluejay//lib/bluejay/object_type.rb#27
|
887
|
+
sig { abstract.returns(T::Array[::Bluejay::FieldDefinition]) }
|
888
|
+
def field_definitions; end
|
889
|
+
|
890
|
+
# source://bluejay//lib/bluejay/object_type.rb#17
|
891
|
+
sig { overridable.returns(::String) }
|
892
|
+
def graphql_name; end
|
893
|
+
|
894
|
+
# source://bluejay//lib/bluejay/object_type.rb#30
|
895
|
+
sig { overridable.returns(T::Array[::Bluejay::InterfaceImplementation]) }
|
896
|
+
def interface_implementations; end
|
897
|
+
|
898
|
+
private
|
899
|
+
|
900
|
+
# source://bluejay//lib/bluejay/object_type.rb#42
|
901
|
+
sig { params(name: ::Symbol).returns(T.untyped) }
|
902
|
+
def const_missing(name); end
|
903
|
+
|
904
|
+
# source://bluejay//lib/bluejay/object_type.rb#52
|
905
|
+
sig { override.returns(::Bluejay::ObjectTypeDefinition) }
|
906
|
+
def definition; end
|
907
|
+
end
|
908
|
+
end
|
909
|
+
|
910
|
+
class Bluejay::ObjectTypeDefinition
|
911
|
+
def description; end
|
912
|
+
def enum_values(_arg0); end
|
913
|
+
def field_definitions; end
|
914
|
+
def fields(_arg0); end
|
915
|
+
def input_fields; end
|
916
|
+
def interfaces; end
|
917
|
+
def kind; end
|
918
|
+
def name; end
|
919
|
+
def of_type; end
|
920
|
+
def possible_types; end
|
921
|
+
def resolve_typename; end
|
922
|
+
def specified_by_url; end
|
923
|
+
|
924
|
+
class << self
|
925
|
+
def new(_arg0); end
|
926
|
+
end
|
927
|
+
end
|
928
|
+
|
929
|
+
class Bluejay::OutputType
|
930
|
+
def base?; end
|
931
|
+
def description; end
|
932
|
+
def enum_values(_arg0); end
|
933
|
+
def fields(_arg0); end
|
934
|
+
def input_fields; end
|
935
|
+
def interfaces; end
|
936
|
+
def kind; end
|
937
|
+
def list?; end
|
938
|
+
def name; end
|
939
|
+
def of_type; end
|
940
|
+
def possible_types; end
|
941
|
+
def required?; end
|
942
|
+
def resolve_typename; end
|
943
|
+
def sorbet_type; end
|
944
|
+
def specified_by_url; end
|
945
|
+
def unwrap_list; end
|
946
|
+
|
947
|
+
class << self
|
948
|
+
def list(_arg0); end
|
949
|
+
def new(_arg0); end
|
950
|
+
end
|
951
|
+
end
|
952
|
+
|
953
|
+
# source://bluejay//lib/bluejay/output_type_shorthands.rb#5
|
954
|
+
module Bluejay::OutputTypeShorthands
|
955
|
+
# source://bluejay//lib/bluejay/output_type_shorthands.rb#19
|
956
|
+
sig { params(t: ::Bluejay::OutputType).returns(::Bluejay::OutputType) }
|
957
|
+
def lot(t); end
|
958
|
+
|
959
|
+
# source://bluejay//lib/bluejay/output_type_shorthands.rb#24
|
960
|
+
sig { params(t: ::Bluejay::OutputType).returns(::Bluejay::OutputType) }
|
961
|
+
def lot!(t); end
|
962
|
+
|
963
|
+
# source://bluejay//lib/bluejay/output_type_shorthands.rb#9
|
964
|
+
sig do
|
965
|
+
params(
|
966
|
+
t: T.any(::Bluejay::Base::CustomScalarType, ::Bluejay::Base::EnumType, ::Bluejay::Base::InterfaceType, ::Bluejay::Base::ObjectType, ::Bluejay::Base::UnionType, ::Bluejay::Scalar)
|
967
|
+
).returns(::Bluejay::OutputType)
|
968
|
+
end
|
969
|
+
def ot(t); end
|
970
|
+
|
971
|
+
# source://bluejay//lib/bluejay/output_type_shorthands.rb#14
|
972
|
+
sig do
|
973
|
+
params(
|
974
|
+
t: T.any(::Bluejay::Base::CustomScalarType, ::Bluejay::Base::EnumType, ::Bluejay::Base::InterfaceType, ::Bluejay::Base::ObjectType, ::Bluejay::Base::UnionType, ::Bluejay::Scalar)
|
975
|
+
).returns(::Bluejay::OutputType)
|
976
|
+
end
|
977
|
+
def ot!(t); end
|
978
|
+
end
|
979
|
+
|
980
|
+
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
981
|
+
#
|
982
|
+
# source://bluejay//lib/bluejay/query_root.rb#5
|
983
|
+
class Bluejay::QueryRoot < ::Bluejay::ObjectType
|
984
|
+
extend ::Bluejay::Base::QueryRoot
|
985
|
+
|
986
|
+
abstract!
|
987
|
+
|
988
|
+
class << self
|
989
|
+
private
|
990
|
+
|
991
|
+
# source://bluejay//lib/bluejay/query_root.rb#16
|
992
|
+
sig { override.returns(::Bluejay::ObjectTypeDefinition) }
|
993
|
+
def definition; end
|
994
|
+
end
|
995
|
+
end
|
996
|
+
|
997
|
+
class Bluejay::Result
|
998
|
+
def ==(_arg0); end
|
999
|
+
def err?; end
|
1000
|
+
def inspect; end
|
1001
|
+
def ok?; end
|
1002
|
+
def unwrap; end
|
1003
|
+
def unwrap_err; end
|
1004
|
+
|
1005
|
+
class << self
|
1006
|
+
def [](_arg0, _arg1); end
|
1007
|
+
def err(_arg0); end
|
1008
|
+
def ok(_arg0); end
|
1009
|
+
end
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
class Bluejay::Scalar
|
1013
|
+
def description; end
|
1014
|
+
def enum_values(_arg0); end
|
1015
|
+
def fields(_arg0); end
|
1016
|
+
def input_fields; end
|
1017
|
+
def interfaces; end
|
1018
|
+
def kind; end
|
1019
|
+
def name; end
|
1020
|
+
def of_type; end
|
1021
|
+
def possible_types; end
|
1022
|
+
def resolve_typename; end
|
1023
|
+
def specified_by_url; end
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
Bluejay::Scalar::Boolean = T.let(T.unsafe(nil), Bluejay::Scalar)
|
1027
|
+
Bluejay::Scalar::Float = T.let(T.unsafe(nil), Bluejay::Scalar)
|
1028
|
+
Bluejay::Scalar::ID = T.let(T.unsafe(nil), Bluejay::Scalar)
|
1029
|
+
Bluejay::Scalar::Int = T.let(T.unsafe(nil), Bluejay::Scalar)
|
1030
|
+
Bluejay::Scalar::String = T.let(T.unsafe(nil), Bluejay::Scalar)
|
1031
|
+
|
1032
|
+
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
1033
|
+
#
|
1034
|
+
# source://bluejay//lib/bluejay/schema.rb#5
|
1035
|
+
class Bluejay::Schema
|
1036
|
+
extend ::Bluejay::Finalize
|
1037
|
+
extend ::Bluejay::Base::Schema
|
1038
|
+
|
1039
|
+
abstract!
|
1040
|
+
|
1041
|
+
class << self
|
1042
|
+
# source://bluejay//lib/bluejay/schema.rb#15
|
1043
|
+
sig { overridable.returns(T.nilable(::String)) }
|
1044
|
+
def description; end
|
1045
|
+
|
1046
|
+
# source://bluejay//lib/bluejay/schema.rb#28
|
1047
|
+
sig { overridable.returns(T::Array[::Bluejay::Directive]) }
|
1048
|
+
def directives; end
|
1049
|
+
|
1050
|
+
# source://bluejay//lib/bluejay/schema.rb#41
|
1051
|
+
sig do
|
1052
|
+
params(
|
1053
|
+
query: ::String,
|
1054
|
+
initial_value: ::Object,
|
1055
|
+
operation_name: T.nilable(::String),
|
1056
|
+
variables: T::Hash[::String, T.untyped],
|
1057
|
+
context: T.untyped
|
1058
|
+
).returns(::Bluejay::ExecutionResult)
|
1059
|
+
end
|
1060
|
+
def execute(query:, initial_value:, operation_name: T.unsafe(nil), variables: T.unsafe(nil), context: T.unsafe(nil)); end
|
1061
|
+
|
1062
|
+
# source://bluejay//lib/bluejay/schema.rb#23
|
1063
|
+
sig { overridable.returns(T.nilable(T.class_of(Bluejay::ObjectType))) }
|
1064
|
+
def mutation; end
|
1065
|
+
|
1066
|
+
# @abstract
|
1067
|
+
#
|
1068
|
+
# source://bluejay//lib/bluejay/schema.rb#20
|
1069
|
+
sig { abstract.returns(T.class_of(Bluejay::QueryRoot)) }
|
1070
|
+
def query; end
|
1071
|
+
|
1072
|
+
# source://bluejay//lib/bluejay/schema.rb#51
|
1073
|
+
sig { params(context: T.untyped).returns(::String) }
|
1074
|
+
def to_definition(context: T.unsafe(nil)); end
|
1075
|
+
|
1076
|
+
# source://bluejay//lib/bluejay/schema.rb#46
|
1077
|
+
sig { params(query: ::String, context: T.untyped).returns(T::Array[::Bluejay::ValidationError]) }
|
1078
|
+
def validate_query(query:, context: T.unsafe(nil)); end
|
1079
|
+
|
1080
|
+
protected
|
1081
|
+
|
1082
|
+
# source://bluejay//lib/bluejay/schema.rb#58
|
1083
|
+
sig(:final) { override.void }
|
1084
|
+
def finalize; end
|
1085
|
+
|
1086
|
+
private
|
1087
|
+
|
1088
|
+
# source://bluejay//lib/bluejay/schema.rb#65
|
1089
|
+
sig { params(name: ::Symbol).returns(T.untyped) }
|
1090
|
+
def const_missing(name); end
|
1091
|
+
|
1092
|
+
# source://bluejay//lib/bluejay/schema.rb#75
|
1093
|
+
sig { override.returns(::Bluejay::SchemaDefinition) }
|
1094
|
+
def definition; end
|
1095
|
+
end
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
class Bluejay::SchemaDefinition
|
1099
|
+
def description; end
|
1100
|
+
def directives; end
|
1101
|
+
def execute(_arg0, _arg1, _arg2, _arg3, _arg4); end
|
1102
|
+
def mutation_type; end
|
1103
|
+
def query_type; end
|
1104
|
+
def resolve_typename; end
|
1105
|
+
def subscription_type; end
|
1106
|
+
def to_definition(_arg0); end
|
1107
|
+
def type(_arg0); end
|
1108
|
+
def types; end
|
1109
|
+
def validate_query(_arg0, _arg1); end
|
1110
|
+
|
1111
|
+
class << self
|
1112
|
+
def new(_arg0); end
|
1113
|
+
end
|
1114
|
+
end
|
1115
|
+
|
1116
|
+
class Bluejay::UnionMemberType
|
1117
|
+
class << self
|
1118
|
+
def new(_arg0); end
|
1119
|
+
end
|
1120
|
+
end
|
1121
|
+
|
1122
|
+
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
1123
|
+
#
|
1124
|
+
# source://bluejay//lib/bluejay/union_type.rb#5
|
1125
|
+
class Bluejay::UnionType
|
1126
|
+
extend ::Bluejay::NameFromClass
|
1127
|
+
extend ::Bluejay::Base::UnionType
|
1128
|
+
|
1129
|
+
abstract!
|
1130
|
+
|
1131
|
+
class << self
|
1132
|
+
# source://bluejay//lib/bluejay/union_type.rb#20
|
1133
|
+
sig { overridable.returns(T.nilable(::String)) }
|
1134
|
+
def description; end
|
1135
|
+
|
1136
|
+
# source://bluejay//lib/bluejay/union_type.rb#28
|
1137
|
+
sig { overridable.returns(T::Array[::Bluejay::Directive]) }
|
1138
|
+
def directives; end
|
1139
|
+
|
1140
|
+
# source://bluejay//lib/bluejay/union_type.rb#15
|
1141
|
+
sig { overridable.returns(::String) }
|
1142
|
+
def graphql_name; end
|
1143
|
+
|
1144
|
+
# @abstract
|
1145
|
+
#
|
1146
|
+
# source://bluejay//lib/bluejay/union_type.rb#25
|
1147
|
+
sig { abstract.returns(T::Array[::Bluejay::UnionMemberType]) }
|
1148
|
+
def member_types; end
|
1149
|
+
|
1150
|
+
private
|
1151
|
+
|
1152
|
+
# source://bluejay//lib/bluejay/union_type.rb#35
|
1153
|
+
sig { override.returns(::Bluejay::UnionTypeDefinition) }
|
1154
|
+
def definition; end
|
1155
|
+
end
|
1156
|
+
end
|
1157
|
+
|
1158
|
+
class Bluejay::UnionTypeDefinition
|
1159
|
+
def description; end
|
1160
|
+
def enum_values(_arg0); end
|
1161
|
+
def fields(_arg0); end
|
1162
|
+
def input_fields; end
|
1163
|
+
def interfaces; end
|
1164
|
+
def kind; end
|
1165
|
+
def name; end
|
1166
|
+
def of_type; end
|
1167
|
+
def possible_types; end
|
1168
|
+
def resolve_typename; end
|
1169
|
+
def specified_by_url; end
|
1170
|
+
|
1171
|
+
class << self
|
1172
|
+
def new(_arg0); end
|
1173
|
+
end
|
1174
|
+
end
|
1175
|
+
|
1176
|
+
# source://bluejay//lib/bluejay/version.rb#4
|
1177
|
+
Bluejay::VERSION = T.let(T.unsafe(nil), String)
|
1178
|
+
|
1179
|
+
class Bluejay::ValidationError
|
1180
|
+
def ==(_arg0); end
|
1181
|
+
def inspect; end
|
1182
|
+
def message; end
|
1183
|
+
|
1184
|
+
class << self
|
1185
|
+
def new(_arg0); end
|
1186
|
+
end
|
1187
|
+
end
|
1188
|
+
|
1189
|
+
# @abstract Subclasses must implement the `abstract` methods below.
|
1190
|
+
#
|
1191
|
+
# source://bluejay//lib/bluejay/visibility.rb#5
|
1192
|
+
module Bluejay::Visibility
|
1193
|
+
interface!
|
1194
|
+
|
1195
|
+
# @abstract
|
1196
|
+
#
|
1197
|
+
# source://bluejay//lib/bluejay/visibility.rb#12
|
1198
|
+
sig { abstract.returns(::String) }
|
1199
|
+
def cache_key; end
|
1200
|
+
|
1201
|
+
# @abstract
|
1202
|
+
#
|
1203
|
+
# source://bluejay//lib/bluejay/visibility.rb#15
|
1204
|
+
sig { abstract.params(context: T.untyped).returns(T::Boolean) }
|
1205
|
+
def visible?(context); end
|
1206
|
+
end
|