@baeta/plugin-federation 0.0.0 → 2.0.0-next.13
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.
- package/CHANGELOG.md +12 -0
- package/LICENSE +21 -0
- package/README.md +164 -0
- package/dist/index.d.ts +1004 -0
- package/dist/index.js +1827 -0
- package/dist/index.js.map +1 -0
- package/package.json +65 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1004 @@
|
|
|
1
|
+
import * as _$_baeta_generator_sdk0 from "@baeta/generator-sdk";
|
|
2
|
+
|
|
3
|
+
//#region lib/specs.generated.d.ts
|
|
4
|
+
declare const federationSpecs: readonly [{
|
|
5
|
+
readonly version: "2.0";
|
|
6
|
+
readonly directives: [{
|
|
7
|
+
readonly name: "@key";
|
|
8
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
9
|
+
readonly args: [{
|
|
10
|
+
readonly name: "fields";
|
|
11
|
+
readonly type: "FieldSet!";
|
|
12
|
+
}, {
|
|
13
|
+
readonly name: "resolvable";
|
|
14
|
+
readonly type: "Boolean";
|
|
15
|
+
readonly defaultValue: true;
|
|
16
|
+
}];
|
|
17
|
+
readonly repeatable: true;
|
|
18
|
+
readonly scalars: [{
|
|
19
|
+
readonly name: "FieldSet";
|
|
20
|
+
readonly serialize: "string";
|
|
21
|
+
}];
|
|
22
|
+
}, {
|
|
23
|
+
readonly name: "@requires";
|
|
24
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
25
|
+
readonly args: [{
|
|
26
|
+
readonly name: "fields";
|
|
27
|
+
readonly type: "FieldSet!";
|
|
28
|
+
}];
|
|
29
|
+
readonly scalars: [{
|
|
30
|
+
readonly name: "FieldSet";
|
|
31
|
+
readonly serialize: "string";
|
|
32
|
+
}];
|
|
33
|
+
}, {
|
|
34
|
+
readonly name: "@provides";
|
|
35
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
36
|
+
readonly args: [{
|
|
37
|
+
readonly name: "fields";
|
|
38
|
+
readonly type: "FieldSet!";
|
|
39
|
+
}];
|
|
40
|
+
readonly scalars: [{
|
|
41
|
+
readonly name: "FieldSet";
|
|
42
|
+
readonly serialize: "string";
|
|
43
|
+
}];
|
|
44
|
+
}, {
|
|
45
|
+
readonly name: "@external";
|
|
46
|
+
readonly locations: ["OBJECT", "FIELD_DEFINITION"];
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "@shareable";
|
|
49
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT"];
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "@extends";
|
|
52
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "@override";
|
|
55
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
56
|
+
readonly args: [{
|
|
57
|
+
readonly name: "from";
|
|
58
|
+
readonly type: "String!";
|
|
59
|
+
}];
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "@inaccessible";
|
|
62
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT", "INTERFACE", "UNION", "ENUM", "ENUM_VALUE", "SCALAR", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION", "ARGUMENT_DEFINITION"];
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "@tag";
|
|
65
|
+
readonly locations: ["FIELD_DEFINITION", "INTERFACE", "OBJECT", "UNION", "ARGUMENT_DEFINITION", "SCALAR", "ENUM", "ENUM_VALUE", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION"];
|
|
66
|
+
readonly args: [{
|
|
67
|
+
readonly name: "name";
|
|
68
|
+
readonly type: "String!";
|
|
69
|
+
}];
|
|
70
|
+
readonly repeatable: true;
|
|
71
|
+
}];
|
|
72
|
+
}, {
|
|
73
|
+
readonly version: "2.1";
|
|
74
|
+
readonly directives: [{
|
|
75
|
+
readonly name: "@composeDirective";
|
|
76
|
+
readonly locations: ["SCHEMA"];
|
|
77
|
+
readonly args: [{
|
|
78
|
+
readonly name: "name";
|
|
79
|
+
readonly type: "String!";
|
|
80
|
+
}];
|
|
81
|
+
readonly repeatable: true;
|
|
82
|
+
}, {
|
|
83
|
+
readonly name: "@extends";
|
|
84
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "@external";
|
|
87
|
+
readonly locations: ["OBJECT", "FIELD_DEFINITION"];
|
|
88
|
+
}, {
|
|
89
|
+
readonly name: "@key";
|
|
90
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
91
|
+
readonly args: [{
|
|
92
|
+
readonly name: "fields";
|
|
93
|
+
readonly type: "FieldSet!";
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "resolvable";
|
|
96
|
+
readonly type: "Boolean";
|
|
97
|
+
readonly defaultValue: true;
|
|
98
|
+
}];
|
|
99
|
+
readonly repeatable: true;
|
|
100
|
+
readonly scalars: [{
|
|
101
|
+
readonly name: "FieldSet";
|
|
102
|
+
readonly serialize: "string";
|
|
103
|
+
}];
|
|
104
|
+
}, {
|
|
105
|
+
readonly name: "@inaccessible";
|
|
106
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT", "INTERFACE", "UNION", "ENUM", "ENUM_VALUE", "SCALAR", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION", "ARGUMENT_DEFINITION"];
|
|
107
|
+
}, {
|
|
108
|
+
readonly name: "@override";
|
|
109
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
110
|
+
readonly args: [{
|
|
111
|
+
readonly name: "from";
|
|
112
|
+
readonly type: "String!";
|
|
113
|
+
}];
|
|
114
|
+
}, {
|
|
115
|
+
readonly name: "@provides";
|
|
116
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
117
|
+
readonly args: [{
|
|
118
|
+
readonly name: "fields";
|
|
119
|
+
readonly type: "FieldSet!";
|
|
120
|
+
}];
|
|
121
|
+
readonly scalars: [{
|
|
122
|
+
readonly name: "FieldSet";
|
|
123
|
+
readonly serialize: "string";
|
|
124
|
+
}];
|
|
125
|
+
}, {
|
|
126
|
+
readonly name: "@requires";
|
|
127
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
128
|
+
readonly args: [{
|
|
129
|
+
readonly name: "fields";
|
|
130
|
+
readonly type: "FieldSet!";
|
|
131
|
+
}];
|
|
132
|
+
readonly scalars: [{
|
|
133
|
+
readonly name: "FieldSet";
|
|
134
|
+
readonly serialize: "string";
|
|
135
|
+
}];
|
|
136
|
+
}, {
|
|
137
|
+
readonly name: "@shareable";
|
|
138
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT"];
|
|
139
|
+
}, {
|
|
140
|
+
readonly name: "@tag";
|
|
141
|
+
readonly locations: ["FIELD_DEFINITION", "INTERFACE", "OBJECT", "UNION", "ARGUMENT_DEFINITION", "SCALAR", "ENUM", "ENUM_VALUE", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION"];
|
|
142
|
+
readonly args: [{
|
|
143
|
+
readonly name: "name";
|
|
144
|
+
readonly type: "String!";
|
|
145
|
+
}];
|
|
146
|
+
readonly repeatable: true;
|
|
147
|
+
}];
|
|
148
|
+
}, {
|
|
149
|
+
readonly version: "2.2";
|
|
150
|
+
readonly directives: [{
|
|
151
|
+
readonly name: "@composeDirective";
|
|
152
|
+
readonly locations: ["SCHEMA"];
|
|
153
|
+
readonly args: [{
|
|
154
|
+
readonly name: "name";
|
|
155
|
+
readonly type: "String!";
|
|
156
|
+
}];
|
|
157
|
+
readonly repeatable: true;
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "@extends";
|
|
160
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
161
|
+
}, {
|
|
162
|
+
readonly name: "@external";
|
|
163
|
+
readonly locations: ["OBJECT", "FIELD_DEFINITION"];
|
|
164
|
+
}, {
|
|
165
|
+
readonly name: "@key";
|
|
166
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
167
|
+
readonly args: [{
|
|
168
|
+
readonly name: "fields";
|
|
169
|
+
readonly type: "FieldSet!";
|
|
170
|
+
}, {
|
|
171
|
+
readonly name: "resolvable";
|
|
172
|
+
readonly type: "Boolean";
|
|
173
|
+
readonly defaultValue: true;
|
|
174
|
+
}];
|
|
175
|
+
readonly repeatable: true;
|
|
176
|
+
readonly scalars: [{
|
|
177
|
+
readonly name: "FieldSet";
|
|
178
|
+
readonly serialize: "string";
|
|
179
|
+
}];
|
|
180
|
+
}, {
|
|
181
|
+
readonly name: "@inaccessible";
|
|
182
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT", "INTERFACE", "UNION", "ENUM", "ENUM_VALUE", "SCALAR", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION", "ARGUMENT_DEFINITION"];
|
|
183
|
+
}, {
|
|
184
|
+
readonly name: "@override";
|
|
185
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
186
|
+
readonly args: [{
|
|
187
|
+
readonly name: "from";
|
|
188
|
+
readonly type: "String!";
|
|
189
|
+
}];
|
|
190
|
+
}, {
|
|
191
|
+
readonly name: "@provides";
|
|
192
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
193
|
+
readonly args: [{
|
|
194
|
+
readonly name: "fields";
|
|
195
|
+
readonly type: "FieldSet!";
|
|
196
|
+
}];
|
|
197
|
+
readonly scalars: [{
|
|
198
|
+
readonly name: "FieldSet";
|
|
199
|
+
readonly serialize: "string";
|
|
200
|
+
}];
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "@requires";
|
|
203
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
204
|
+
readonly args: [{
|
|
205
|
+
readonly name: "fields";
|
|
206
|
+
readonly type: "FieldSet!";
|
|
207
|
+
}];
|
|
208
|
+
readonly scalars: [{
|
|
209
|
+
readonly name: "FieldSet";
|
|
210
|
+
readonly serialize: "string";
|
|
211
|
+
}];
|
|
212
|
+
}, {
|
|
213
|
+
readonly name: "@shareable";
|
|
214
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT"];
|
|
215
|
+
readonly repeatable: true;
|
|
216
|
+
}, {
|
|
217
|
+
readonly name: "@tag";
|
|
218
|
+
readonly locations: ["FIELD_DEFINITION", "INTERFACE", "OBJECT", "UNION", "ARGUMENT_DEFINITION", "SCALAR", "ENUM", "ENUM_VALUE", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION"];
|
|
219
|
+
readonly args: [{
|
|
220
|
+
readonly name: "name";
|
|
221
|
+
readonly type: "String!";
|
|
222
|
+
}];
|
|
223
|
+
readonly repeatable: true;
|
|
224
|
+
}];
|
|
225
|
+
}, {
|
|
226
|
+
readonly version: "2.3";
|
|
227
|
+
readonly directives: [{
|
|
228
|
+
readonly name: "@composeDirective";
|
|
229
|
+
readonly locations: ["SCHEMA"];
|
|
230
|
+
readonly args: [{
|
|
231
|
+
readonly name: "name";
|
|
232
|
+
readonly type: "String!";
|
|
233
|
+
}];
|
|
234
|
+
readonly repeatable: true;
|
|
235
|
+
}, {
|
|
236
|
+
readonly name: "@extends";
|
|
237
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
238
|
+
}, {
|
|
239
|
+
readonly name: "@external";
|
|
240
|
+
readonly locations: ["OBJECT", "FIELD_DEFINITION"];
|
|
241
|
+
}, {
|
|
242
|
+
readonly name: "@key";
|
|
243
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
244
|
+
readonly args: [{
|
|
245
|
+
readonly name: "fields";
|
|
246
|
+
readonly type: "FieldSet!";
|
|
247
|
+
}, {
|
|
248
|
+
readonly name: "resolvable";
|
|
249
|
+
readonly type: "Boolean";
|
|
250
|
+
readonly defaultValue: true;
|
|
251
|
+
}];
|
|
252
|
+
readonly repeatable: true;
|
|
253
|
+
readonly scalars: [{
|
|
254
|
+
readonly name: "FieldSet";
|
|
255
|
+
readonly serialize: "string";
|
|
256
|
+
}];
|
|
257
|
+
}, {
|
|
258
|
+
readonly name: "@inaccessible";
|
|
259
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT", "INTERFACE", "UNION", "ENUM", "ENUM_VALUE", "SCALAR", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION", "ARGUMENT_DEFINITION"];
|
|
260
|
+
}, {
|
|
261
|
+
readonly name: "@interfaceObject";
|
|
262
|
+
readonly locations: ["OBJECT"];
|
|
263
|
+
}, {
|
|
264
|
+
readonly name: "@override";
|
|
265
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
266
|
+
readonly args: [{
|
|
267
|
+
readonly name: "from";
|
|
268
|
+
readonly type: "String!";
|
|
269
|
+
}];
|
|
270
|
+
}, {
|
|
271
|
+
readonly name: "@provides";
|
|
272
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
273
|
+
readonly args: [{
|
|
274
|
+
readonly name: "fields";
|
|
275
|
+
readonly type: "FieldSet!";
|
|
276
|
+
}];
|
|
277
|
+
readonly scalars: [{
|
|
278
|
+
readonly name: "FieldSet";
|
|
279
|
+
readonly serialize: "string";
|
|
280
|
+
}];
|
|
281
|
+
}, {
|
|
282
|
+
readonly name: "@requires";
|
|
283
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
284
|
+
readonly args: [{
|
|
285
|
+
readonly name: "fields";
|
|
286
|
+
readonly type: "FieldSet!";
|
|
287
|
+
}];
|
|
288
|
+
readonly scalars: [{
|
|
289
|
+
readonly name: "FieldSet";
|
|
290
|
+
readonly serialize: "string";
|
|
291
|
+
}];
|
|
292
|
+
}, {
|
|
293
|
+
readonly name: "@shareable";
|
|
294
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT"];
|
|
295
|
+
readonly repeatable: true;
|
|
296
|
+
}, {
|
|
297
|
+
readonly name: "@tag";
|
|
298
|
+
readonly locations: ["FIELD_DEFINITION", "INTERFACE", "OBJECT", "UNION", "ARGUMENT_DEFINITION", "SCALAR", "ENUM", "ENUM_VALUE", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION"];
|
|
299
|
+
readonly args: [{
|
|
300
|
+
readonly name: "name";
|
|
301
|
+
readonly type: "String!";
|
|
302
|
+
}];
|
|
303
|
+
readonly repeatable: true;
|
|
304
|
+
}];
|
|
305
|
+
}, {
|
|
306
|
+
readonly version: "2.4";
|
|
307
|
+
readonly directives: [{
|
|
308
|
+
readonly name: "@composeDirective";
|
|
309
|
+
readonly locations: ["SCHEMA"];
|
|
310
|
+
readonly args: [{
|
|
311
|
+
readonly name: "name";
|
|
312
|
+
readonly type: "String!";
|
|
313
|
+
}];
|
|
314
|
+
readonly repeatable: true;
|
|
315
|
+
}, {
|
|
316
|
+
readonly name: "@extends";
|
|
317
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
318
|
+
}, {
|
|
319
|
+
readonly name: "@external";
|
|
320
|
+
readonly locations: ["OBJECT", "FIELD_DEFINITION"];
|
|
321
|
+
}, {
|
|
322
|
+
readonly name: "@key";
|
|
323
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
324
|
+
readonly args: [{
|
|
325
|
+
readonly name: "fields";
|
|
326
|
+
readonly type: "FieldSet!";
|
|
327
|
+
}, {
|
|
328
|
+
readonly name: "resolvable";
|
|
329
|
+
readonly type: "Boolean";
|
|
330
|
+
readonly defaultValue: true;
|
|
331
|
+
}];
|
|
332
|
+
readonly repeatable: true;
|
|
333
|
+
readonly scalars: [{
|
|
334
|
+
readonly name: "FieldSet";
|
|
335
|
+
readonly serialize: "string";
|
|
336
|
+
}];
|
|
337
|
+
}, {
|
|
338
|
+
readonly name: "@inaccessible";
|
|
339
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT", "INTERFACE", "UNION", "ENUM", "ENUM_VALUE", "SCALAR", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION", "ARGUMENT_DEFINITION"];
|
|
340
|
+
}, {
|
|
341
|
+
readonly name: "@interfaceObject";
|
|
342
|
+
readonly locations: ["OBJECT"];
|
|
343
|
+
}, {
|
|
344
|
+
readonly name: "@override";
|
|
345
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
346
|
+
readonly args: [{
|
|
347
|
+
readonly name: "from";
|
|
348
|
+
readonly type: "String!";
|
|
349
|
+
}];
|
|
350
|
+
}, {
|
|
351
|
+
readonly name: "@provides";
|
|
352
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
353
|
+
readonly args: [{
|
|
354
|
+
readonly name: "fields";
|
|
355
|
+
readonly type: "FieldSet!";
|
|
356
|
+
}];
|
|
357
|
+
readonly scalars: [{
|
|
358
|
+
readonly name: "FieldSet";
|
|
359
|
+
readonly serialize: "string";
|
|
360
|
+
}];
|
|
361
|
+
}, {
|
|
362
|
+
readonly name: "@requires";
|
|
363
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
364
|
+
readonly args: [{
|
|
365
|
+
readonly name: "fields";
|
|
366
|
+
readonly type: "FieldSet!";
|
|
367
|
+
}];
|
|
368
|
+
readonly scalars: [{
|
|
369
|
+
readonly name: "FieldSet";
|
|
370
|
+
readonly serialize: "string";
|
|
371
|
+
}];
|
|
372
|
+
}, {
|
|
373
|
+
readonly name: "@shareable";
|
|
374
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT"];
|
|
375
|
+
readonly repeatable: true;
|
|
376
|
+
}, {
|
|
377
|
+
readonly name: "@tag";
|
|
378
|
+
readonly locations: ["FIELD_DEFINITION", "INTERFACE", "OBJECT", "UNION", "ARGUMENT_DEFINITION", "SCALAR", "ENUM", "ENUM_VALUE", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION"];
|
|
379
|
+
readonly args: [{
|
|
380
|
+
readonly name: "name";
|
|
381
|
+
readonly type: "String!";
|
|
382
|
+
}];
|
|
383
|
+
readonly repeatable: true;
|
|
384
|
+
}];
|
|
385
|
+
}, {
|
|
386
|
+
readonly version: "2.5";
|
|
387
|
+
readonly directives: [{
|
|
388
|
+
readonly name: "@authenticated";
|
|
389
|
+
readonly locations: ["ENUM", "FIELD_DEFINITION", "INTERFACE", "OBJECT", "SCALAR"];
|
|
390
|
+
}, {
|
|
391
|
+
readonly name: "@composeDirective";
|
|
392
|
+
readonly locations: ["SCHEMA"];
|
|
393
|
+
readonly args: [{
|
|
394
|
+
readonly name: "name";
|
|
395
|
+
readonly type: "String!";
|
|
396
|
+
}];
|
|
397
|
+
readonly repeatable: true;
|
|
398
|
+
}, {
|
|
399
|
+
readonly name: "@extends";
|
|
400
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
401
|
+
}, {
|
|
402
|
+
readonly name: "@external";
|
|
403
|
+
readonly locations: ["OBJECT", "FIELD_DEFINITION"];
|
|
404
|
+
}, {
|
|
405
|
+
readonly name: "@key";
|
|
406
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
407
|
+
readonly args: [{
|
|
408
|
+
readonly name: "fields";
|
|
409
|
+
readonly type: "FieldSet!";
|
|
410
|
+
}, {
|
|
411
|
+
readonly name: "resolvable";
|
|
412
|
+
readonly type: "Boolean";
|
|
413
|
+
readonly defaultValue: true;
|
|
414
|
+
}];
|
|
415
|
+
readonly repeatable: true;
|
|
416
|
+
readonly scalars: [{
|
|
417
|
+
readonly name: "FieldSet";
|
|
418
|
+
readonly serialize: "string";
|
|
419
|
+
}];
|
|
420
|
+
}, {
|
|
421
|
+
readonly name: "@inaccessible";
|
|
422
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT", "INTERFACE", "UNION", "ENUM", "ENUM_VALUE", "SCALAR", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION", "ARGUMENT_DEFINITION"];
|
|
423
|
+
}, {
|
|
424
|
+
readonly name: "@interfaceObject";
|
|
425
|
+
readonly locations: ["OBJECT"];
|
|
426
|
+
}, {
|
|
427
|
+
readonly name: "@override";
|
|
428
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
429
|
+
readonly args: [{
|
|
430
|
+
readonly name: "from";
|
|
431
|
+
readonly type: "String!";
|
|
432
|
+
}];
|
|
433
|
+
}, {
|
|
434
|
+
readonly name: "@provides";
|
|
435
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
436
|
+
readonly args: [{
|
|
437
|
+
readonly name: "fields";
|
|
438
|
+
readonly type: "FieldSet!";
|
|
439
|
+
}];
|
|
440
|
+
readonly scalars: [{
|
|
441
|
+
readonly name: "FieldSet";
|
|
442
|
+
readonly serialize: "string";
|
|
443
|
+
}];
|
|
444
|
+
}, {
|
|
445
|
+
readonly name: "@requires";
|
|
446
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
447
|
+
readonly args: [{
|
|
448
|
+
readonly name: "fields";
|
|
449
|
+
readonly type: "FieldSet!";
|
|
450
|
+
}];
|
|
451
|
+
readonly scalars: [{
|
|
452
|
+
readonly name: "FieldSet";
|
|
453
|
+
readonly serialize: "string";
|
|
454
|
+
}];
|
|
455
|
+
}, {
|
|
456
|
+
readonly name: "@requiresScopes";
|
|
457
|
+
readonly locations: ["ENUM", "FIELD_DEFINITION", "INTERFACE", "OBJECT", "SCALAR"];
|
|
458
|
+
readonly args: [{
|
|
459
|
+
readonly name: "scopes";
|
|
460
|
+
readonly type: "[[Scope!]!]!";
|
|
461
|
+
}];
|
|
462
|
+
readonly scalars: [{
|
|
463
|
+
readonly name: "Scope";
|
|
464
|
+
readonly serialize: "string";
|
|
465
|
+
}];
|
|
466
|
+
}, {
|
|
467
|
+
readonly name: "@shareable";
|
|
468
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT"];
|
|
469
|
+
readonly repeatable: true;
|
|
470
|
+
}, {
|
|
471
|
+
readonly name: "@tag";
|
|
472
|
+
readonly locations: ["FIELD_DEFINITION", "INTERFACE", "OBJECT", "UNION", "ARGUMENT_DEFINITION", "SCALAR", "ENUM", "ENUM_VALUE", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION"];
|
|
473
|
+
readonly args: [{
|
|
474
|
+
readonly name: "name";
|
|
475
|
+
readonly type: "String!";
|
|
476
|
+
}];
|
|
477
|
+
readonly repeatable: true;
|
|
478
|
+
}];
|
|
479
|
+
}, {
|
|
480
|
+
readonly version: "2.6";
|
|
481
|
+
readonly directives: [{
|
|
482
|
+
readonly name: "@authenticated";
|
|
483
|
+
readonly locations: ["ENUM", "FIELD_DEFINITION", "INTERFACE", "OBJECT", "SCALAR"];
|
|
484
|
+
}, {
|
|
485
|
+
readonly name: "@composeDirective";
|
|
486
|
+
readonly locations: ["SCHEMA"];
|
|
487
|
+
readonly args: [{
|
|
488
|
+
readonly name: "name";
|
|
489
|
+
readonly type: "String!";
|
|
490
|
+
}];
|
|
491
|
+
readonly repeatable: true;
|
|
492
|
+
}, {
|
|
493
|
+
readonly name: "@extends";
|
|
494
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
495
|
+
}, {
|
|
496
|
+
readonly name: "@external";
|
|
497
|
+
readonly locations: ["OBJECT", "FIELD_DEFINITION"];
|
|
498
|
+
}, {
|
|
499
|
+
readonly name: "@key";
|
|
500
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
501
|
+
readonly args: [{
|
|
502
|
+
readonly name: "fields";
|
|
503
|
+
readonly type: "FieldSet!";
|
|
504
|
+
}, {
|
|
505
|
+
readonly name: "resolvable";
|
|
506
|
+
readonly type: "Boolean";
|
|
507
|
+
readonly defaultValue: true;
|
|
508
|
+
}];
|
|
509
|
+
readonly repeatable: true;
|
|
510
|
+
readonly scalars: [{
|
|
511
|
+
readonly name: "FieldSet";
|
|
512
|
+
readonly serialize: "string";
|
|
513
|
+
}];
|
|
514
|
+
}, {
|
|
515
|
+
readonly name: "@inaccessible";
|
|
516
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT", "INTERFACE", "UNION", "ENUM", "ENUM_VALUE", "SCALAR", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION", "ARGUMENT_DEFINITION"];
|
|
517
|
+
}, {
|
|
518
|
+
readonly name: "@interfaceObject";
|
|
519
|
+
readonly locations: ["OBJECT"];
|
|
520
|
+
}, {
|
|
521
|
+
readonly name: "@override";
|
|
522
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
523
|
+
readonly args: [{
|
|
524
|
+
readonly name: "from";
|
|
525
|
+
readonly type: "String!";
|
|
526
|
+
}];
|
|
527
|
+
}, {
|
|
528
|
+
readonly name: "@policy";
|
|
529
|
+
readonly locations: ["ENUM", "FIELD_DEFINITION", "INTERFACE", "OBJECT", "SCALAR"];
|
|
530
|
+
readonly args: [{
|
|
531
|
+
readonly name: "policies";
|
|
532
|
+
readonly type: "[[Policy!]!]!";
|
|
533
|
+
}];
|
|
534
|
+
readonly scalars: [{
|
|
535
|
+
readonly name: "Policy";
|
|
536
|
+
readonly serialize: "string";
|
|
537
|
+
}];
|
|
538
|
+
}, {
|
|
539
|
+
readonly name: "@provides";
|
|
540
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
541
|
+
readonly args: [{
|
|
542
|
+
readonly name: "fields";
|
|
543
|
+
readonly type: "FieldSet!";
|
|
544
|
+
}];
|
|
545
|
+
readonly scalars: [{
|
|
546
|
+
readonly name: "FieldSet";
|
|
547
|
+
readonly serialize: "string";
|
|
548
|
+
}];
|
|
549
|
+
}, {
|
|
550
|
+
readonly name: "@requires";
|
|
551
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
552
|
+
readonly args: [{
|
|
553
|
+
readonly name: "fields";
|
|
554
|
+
readonly type: "FieldSet!";
|
|
555
|
+
}];
|
|
556
|
+
readonly scalars: [{
|
|
557
|
+
readonly name: "FieldSet";
|
|
558
|
+
readonly serialize: "string";
|
|
559
|
+
}];
|
|
560
|
+
}, {
|
|
561
|
+
readonly name: "@requiresScopes";
|
|
562
|
+
readonly locations: ["ENUM", "FIELD_DEFINITION", "INTERFACE", "OBJECT", "SCALAR"];
|
|
563
|
+
readonly args: [{
|
|
564
|
+
readonly name: "scopes";
|
|
565
|
+
readonly type: "[[Scope!]!]!";
|
|
566
|
+
}];
|
|
567
|
+
readonly scalars: [{
|
|
568
|
+
readonly name: "Scope";
|
|
569
|
+
readonly serialize: "string";
|
|
570
|
+
}];
|
|
571
|
+
}, {
|
|
572
|
+
readonly name: "@shareable";
|
|
573
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT"];
|
|
574
|
+
readonly repeatable: true;
|
|
575
|
+
}, {
|
|
576
|
+
readonly name: "@tag";
|
|
577
|
+
readonly locations: ["FIELD_DEFINITION", "INTERFACE", "OBJECT", "UNION", "ARGUMENT_DEFINITION", "SCALAR", "ENUM", "ENUM_VALUE", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION"];
|
|
578
|
+
readonly args: [{
|
|
579
|
+
readonly name: "name";
|
|
580
|
+
readonly type: "String!";
|
|
581
|
+
}];
|
|
582
|
+
readonly repeatable: true;
|
|
583
|
+
}];
|
|
584
|
+
}, {
|
|
585
|
+
readonly version: "2.7";
|
|
586
|
+
readonly directives: [{
|
|
587
|
+
readonly name: "@authenticated";
|
|
588
|
+
readonly locations: ["ENUM", "FIELD_DEFINITION", "INTERFACE", "OBJECT", "SCALAR"];
|
|
589
|
+
}, {
|
|
590
|
+
readonly name: "@composeDirective";
|
|
591
|
+
readonly locations: ["SCHEMA"];
|
|
592
|
+
readonly args: [{
|
|
593
|
+
readonly name: "name";
|
|
594
|
+
readonly type: "String!";
|
|
595
|
+
}];
|
|
596
|
+
readonly repeatable: true;
|
|
597
|
+
}, {
|
|
598
|
+
readonly name: "@extends";
|
|
599
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
600
|
+
}, {
|
|
601
|
+
readonly name: "@external";
|
|
602
|
+
readonly locations: ["OBJECT", "FIELD_DEFINITION"];
|
|
603
|
+
}, {
|
|
604
|
+
readonly name: "@key";
|
|
605
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
606
|
+
readonly args: [{
|
|
607
|
+
readonly name: "fields";
|
|
608
|
+
readonly type: "FieldSet!";
|
|
609
|
+
}, {
|
|
610
|
+
readonly name: "resolvable";
|
|
611
|
+
readonly type: "Boolean";
|
|
612
|
+
readonly defaultValue: true;
|
|
613
|
+
}];
|
|
614
|
+
readonly repeatable: true;
|
|
615
|
+
readonly scalars: [{
|
|
616
|
+
readonly name: "FieldSet";
|
|
617
|
+
readonly serialize: "string";
|
|
618
|
+
}];
|
|
619
|
+
}, {
|
|
620
|
+
readonly name: "@inaccessible";
|
|
621
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT", "INTERFACE", "UNION", "ENUM", "ENUM_VALUE", "SCALAR", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION", "ARGUMENT_DEFINITION"];
|
|
622
|
+
}, {
|
|
623
|
+
readonly name: "@interfaceObject";
|
|
624
|
+
readonly locations: ["OBJECT"];
|
|
625
|
+
}, {
|
|
626
|
+
readonly name: "@override";
|
|
627
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
628
|
+
readonly args: [{
|
|
629
|
+
readonly name: "from";
|
|
630
|
+
readonly type: "String!";
|
|
631
|
+
}, {
|
|
632
|
+
readonly name: "label";
|
|
633
|
+
readonly type: "String";
|
|
634
|
+
}];
|
|
635
|
+
}, {
|
|
636
|
+
readonly name: "@policy";
|
|
637
|
+
readonly locations: ["ENUM", "FIELD_DEFINITION", "INTERFACE", "OBJECT", "SCALAR"];
|
|
638
|
+
readonly args: [{
|
|
639
|
+
readonly name: "policies";
|
|
640
|
+
readonly type: "[[Policy!]!]!";
|
|
641
|
+
}];
|
|
642
|
+
readonly scalars: [{
|
|
643
|
+
readonly name: "Policy";
|
|
644
|
+
readonly serialize: "string";
|
|
645
|
+
}];
|
|
646
|
+
}, {
|
|
647
|
+
readonly name: "@provides";
|
|
648
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
649
|
+
readonly args: [{
|
|
650
|
+
readonly name: "fields";
|
|
651
|
+
readonly type: "FieldSet!";
|
|
652
|
+
}];
|
|
653
|
+
readonly scalars: [{
|
|
654
|
+
readonly name: "FieldSet";
|
|
655
|
+
readonly serialize: "string";
|
|
656
|
+
}];
|
|
657
|
+
}, {
|
|
658
|
+
readonly name: "@requires";
|
|
659
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
660
|
+
readonly args: [{
|
|
661
|
+
readonly name: "fields";
|
|
662
|
+
readonly type: "FieldSet!";
|
|
663
|
+
}];
|
|
664
|
+
readonly scalars: [{
|
|
665
|
+
readonly name: "FieldSet";
|
|
666
|
+
readonly serialize: "string";
|
|
667
|
+
}];
|
|
668
|
+
}, {
|
|
669
|
+
readonly name: "@requiresScopes";
|
|
670
|
+
readonly locations: ["ENUM", "FIELD_DEFINITION", "INTERFACE", "OBJECT", "SCALAR"];
|
|
671
|
+
readonly args: [{
|
|
672
|
+
readonly name: "scopes";
|
|
673
|
+
readonly type: "[[Scope!]!]!";
|
|
674
|
+
}];
|
|
675
|
+
readonly scalars: [{
|
|
676
|
+
readonly name: "Scope";
|
|
677
|
+
readonly serialize: "string";
|
|
678
|
+
}];
|
|
679
|
+
}, {
|
|
680
|
+
readonly name: "@shareable";
|
|
681
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT"];
|
|
682
|
+
readonly repeatable: true;
|
|
683
|
+
}, {
|
|
684
|
+
readonly name: "@tag";
|
|
685
|
+
readonly locations: ["FIELD_DEFINITION", "INTERFACE", "OBJECT", "UNION", "ARGUMENT_DEFINITION", "SCALAR", "ENUM", "ENUM_VALUE", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION"];
|
|
686
|
+
readonly args: [{
|
|
687
|
+
readonly name: "name";
|
|
688
|
+
readonly type: "String!";
|
|
689
|
+
}];
|
|
690
|
+
readonly repeatable: true;
|
|
691
|
+
}];
|
|
692
|
+
}, {
|
|
693
|
+
readonly version: "2.8";
|
|
694
|
+
readonly directives: [{
|
|
695
|
+
readonly name: "@authenticated";
|
|
696
|
+
readonly locations: ["ENUM", "FIELD_DEFINITION", "INTERFACE", "OBJECT", "SCALAR"];
|
|
697
|
+
}, {
|
|
698
|
+
readonly name: "@composeDirective";
|
|
699
|
+
readonly locations: ["SCHEMA"];
|
|
700
|
+
readonly args: [{
|
|
701
|
+
readonly name: "name";
|
|
702
|
+
readonly type: "String!";
|
|
703
|
+
}];
|
|
704
|
+
readonly repeatable: true;
|
|
705
|
+
}, {
|
|
706
|
+
readonly name: "@context";
|
|
707
|
+
readonly locations: ["OBJECT", "INTERFACE", "UNION"];
|
|
708
|
+
readonly args: [{
|
|
709
|
+
readonly name: "name";
|
|
710
|
+
readonly type: "String!";
|
|
711
|
+
}];
|
|
712
|
+
}, {
|
|
713
|
+
readonly name: "@extends";
|
|
714
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
715
|
+
}, {
|
|
716
|
+
readonly name: "@external";
|
|
717
|
+
readonly locations: ["OBJECT", "FIELD_DEFINITION"];
|
|
718
|
+
}, {
|
|
719
|
+
readonly name: "@fromContext";
|
|
720
|
+
readonly locations: ["ARGUMENT_DEFINITION"];
|
|
721
|
+
readonly args: [{
|
|
722
|
+
readonly name: "field";
|
|
723
|
+
readonly type: "ContextFieldValue";
|
|
724
|
+
}];
|
|
725
|
+
readonly scalars: [{
|
|
726
|
+
readonly name: "ContextFieldValue";
|
|
727
|
+
readonly serialize: "string";
|
|
728
|
+
}];
|
|
729
|
+
}, {
|
|
730
|
+
readonly name: "@key";
|
|
731
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
732
|
+
readonly args: [{
|
|
733
|
+
readonly name: "fields";
|
|
734
|
+
readonly type: "FieldSet!";
|
|
735
|
+
}, {
|
|
736
|
+
readonly name: "resolvable";
|
|
737
|
+
readonly type: "Boolean";
|
|
738
|
+
readonly defaultValue: true;
|
|
739
|
+
}];
|
|
740
|
+
readonly repeatable: true;
|
|
741
|
+
readonly scalars: [{
|
|
742
|
+
readonly name: "FieldSet";
|
|
743
|
+
readonly serialize: "string";
|
|
744
|
+
}];
|
|
745
|
+
}, {
|
|
746
|
+
readonly name: "@inaccessible";
|
|
747
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT", "INTERFACE", "UNION", "ENUM", "ENUM_VALUE", "SCALAR", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION", "ARGUMENT_DEFINITION"];
|
|
748
|
+
}, {
|
|
749
|
+
readonly name: "@interfaceObject";
|
|
750
|
+
readonly locations: ["OBJECT"];
|
|
751
|
+
}, {
|
|
752
|
+
readonly name: "@override";
|
|
753
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
754
|
+
readonly args: [{
|
|
755
|
+
readonly name: "from";
|
|
756
|
+
readonly type: "String!";
|
|
757
|
+
}, {
|
|
758
|
+
readonly name: "label";
|
|
759
|
+
readonly type: "String";
|
|
760
|
+
}];
|
|
761
|
+
}, {
|
|
762
|
+
readonly name: "@policy";
|
|
763
|
+
readonly locations: ["ENUM", "FIELD_DEFINITION", "INTERFACE", "OBJECT", "SCALAR"];
|
|
764
|
+
readonly args: [{
|
|
765
|
+
readonly name: "policies";
|
|
766
|
+
readonly type: "[[Policy!]!]!";
|
|
767
|
+
}];
|
|
768
|
+
readonly scalars: [{
|
|
769
|
+
readonly name: "Policy";
|
|
770
|
+
readonly serialize: "string";
|
|
771
|
+
}];
|
|
772
|
+
}, {
|
|
773
|
+
readonly name: "@provides";
|
|
774
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
775
|
+
readonly args: [{
|
|
776
|
+
readonly name: "fields";
|
|
777
|
+
readonly type: "FieldSet!";
|
|
778
|
+
}];
|
|
779
|
+
readonly scalars: [{
|
|
780
|
+
readonly name: "FieldSet";
|
|
781
|
+
readonly serialize: "string";
|
|
782
|
+
}];
|
|
783
|
+
}, {
|
|
784
|
+
readonly name: "@requires";
|
|
785
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
786
|
+
readonly args: [{
|
|
787
|
+
readonly name: "fields";
|
|
788
|
+
readonly type: "FieldSet!";
|
|
789
|
+
}];
|
|
790
|
+
readonly scalars: [{
|
|
791
|
+
readonly name: "FieldSet";
|
|
792
|
+
readonly serialize: "string";
|
|
793
|
+
}];
|
|
794
|
+
}, {
|
|
795
|
+
readonly name: "@requiresScopes";
|
|
796
|
+
readonly locations: ["ENUM", "FIELD_DEFINITION", "INTERFACE", "OBJECT", "SCALAR"];
|
|
797
|
+
readonly args: [{
|
|
798
|
+
readonly name: "scopes";
|
|
799
|
+
readonly type: "[[Scope!]!]!";
|
|
800
|
+
}];
|
|
801
|
+
readonly scalars: [{
|
|
802
|
+
readonly name: "Scope";
|
|
803
|
+
readonly serialize: "string";
|
|
804
|
+
}];
|
|
805
|
+
}, {
|
|
806
|
+
readonly name: "@shareable";
|
|
807
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT"];
|
|
808
|
+
readonly repeatable: true;
|
|
809
|
+
}, {
|
|
810
|
+
readonly name: "@tag";
|
|
811
|
+
readonly locations: ["FIELD_DEFINITION", "INTERFACE", "OBJECT", "UNION", "ARGUMENT_DEFINITION", "SCALAR", "ENUM", "ENUM_VALUE", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION"];
|
|
812
|
+
readonly args: [{
|
|
813
|
+
readonly name: "name";
|
|
814
|
+
readonly type: "String!";
|
|
815
|
+
}];
|
|
816
|
+
readonly repeatable: true;
|
|
817
|
+
}];
|
|
818
|
+
}, {
|
|
819
|
+
readonly version: "2.9";
|
|
820
|
+
readonly directives: [{
|
|
821
|
+
readonly name: "@authenticated";
|
|
822
|
+
readonly locations: ["ENUM", "FIELD_DEFINITION", "INTERFACE", "OBJECT", "SCALAR"];
|
|
823
|
+
}, {
|
|
824
|
+
readonly name: "@composeDirective";
|
|
825
|
+
readonly locations: ["SCHEMA"];
|
|
826
|
+
readonly args: [{
|
|
827
|
+
readonly name: "name";
|
|
828
|
+
readonly type: "String!";
|
|
829
|
+
}];
|
|
830
|
+
readonly repeatable: true;
|
|
831
|
+
}, {
|
|
832
|
+
readonly name: "@context";
|
|
833
|
+
readonly locations: ["OBJECT", "INTERFACE", "UNION"];
|
|
834
|
+
readonly args: [{
|
|
835
|
+
readonly name: "name";
|
|
836
|
+
readonly type: "String!";
|
|
837
|
+
}];
|
|
838
|
+
}, {
|
|
839
|
+
readonly name: "@cost";
|
|
840
|
+
readonly locations: ["ARGUMENT_DEFINITION", "ENUM", "FIELD_DEFINITION", "INPUT_FIELD_DEFINITION", "OBJECT", "SCALAR"];
|
|
841
|
+
readonly args: [{
|
|
842
|
+
readonly name: "weight";
|
|
843
|
+
readonly type: "Int!";
|
|
844
|
+
}];
|
|
845
|
+
}, {
|
|
846
|
+
readonly name: "@extends";
|
|
847
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
848
|
+
}, {
|
|
849
|
+
readonly name: "@external";
|
|
850
|
+
readonly locations: ["OBJECT", "FIELD_DEFINITION"];
|
|
851
|
+
}, {
|
|
852
|
+
readonly name: "@fromContext";
|
|
853
|
+
readonly locations: ["ARGUMENT_DEFINITION"];
|
|
854
|
+
readonly args: [{
|
|
855
|
+
readonly name: "field";
|
|
856
|
+
readonly type: "ContextFieldValue";
|
|
857
|
+
}];
|
|
858
|
+
readonly scalars: [{
|
|
859
|
+
readonly name: "ContextFieldValue";
|
|
860
|
+
readonly serialize: "string";
|
|
861
|
+
}];
|
|
862
|
+
}, {
|
|
863
|
+
readonly name: "@key";
|
|
864
|
+
readonly locations: ["OBJECT", "INTERFACE"];
|
|
865
|
+
readonly args: [{
|
|
866
|
+
readonly name: "fields";
|
|
867
|
+
readonly type: "FieldSet!";
|
|
868
|
+
}, {
|
|
869
|
+
readonly name: "resolvable";
|
|
870
|
+
readonly type: "Boolean";
|
|
871
|
+
readonly defaultValue: true;
|
|
872
|
+
}];
|
|
873
|
+
readonly repeatable: true;
|
|
874
|
+
readonly scalars: [{
|
|
875
|
+
readonly name: "FieldSet";
|
|
876
|
+
readonly serialize: "string";
|
|
877
|
+
}];
|
|
878
|
+
}, {
|
|
879
|
+
readonly name: "@inaccessible";
|
|
880
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT", "INTERFACE", "UNION", "ENUM", "ENUM_VALUE", "SCALAR", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION", "ARGUMENT_DEFINITION"];
|
|
881
|
+
}, {
|
|
882
|
+
readonly name: "@interfaceObject";
|
|
883
|
+
readonly locations: ["OBJECT"];
|
|
884
|
+
}, {
|
|
885
|
+
readonly name: "@listSize";
|
|
886
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
887
|
+
readonly args: [{
|
|
888
|
+
readonly name: "assumedSize";
|
|
889
|
+
readonly type: "Int";
|
|
890
|
+
}, {
|
|
891
|
+
readonly name: "slicingArguments";
|
|
892
|
+
readonly type: "[String!]";
|
|
893
|
+
}, {
|
|
894
|
+
readonly name: "sizedFields";
|
|
895
|
+
readonly type: "[String!]";
|
|
896
|
+
}, {
|
|
897
|
+
readonly name: "requireOneSlicingArgument";
|
|
898
|
+
readonly type: "Boolean";
|
|
899
|
+
readonly defaultValue: true;
|
|
900
|
+
}];
|
|
901
|
+
}, {
|
|
902
|
+
readonly name: "@override";
|
|
903
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
904
|
+
readonly args: [{
|
|
905
|
+
readonly name: "from";
|
|
906
|
+
readonly type: "String!";
|
|
907
|
+
}, {
|
|
908
|
+
readonly name: "label";
|
|
909
|
+
readonly type: "String";
|
|
910
|
+
}];
|
|
911
|
+
}, {
|
|
912
|
+
readonly name: "@policy";
|
|
913
|
+
readonly locations: ["ENUM", "FIELD_DEFINITION", "INTERFACE", "OBJECT", "SCALAR"];
|
|
914
|
+
readonly args: [{
|
|
915
|
+
readonly name: "policies";
|
|
916
|
+
readonly type: "[[Policy!]!]!";
|
|
917
|
+
}];
|
|
918
|
+
readonly scalars: [{
|
|
919
|
+
readonly name: "Policy";
|
|
920
|
+
readonly serialize: "string";
|
|
921
|
+
}];
|
|
922
|
+
}, {
|
|
923
|
+
readonly name: "@provides";
|
|
924
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
925
|
+
readonly args: [{
|
|
926
|
+
readonly name: "fields";
|
|
927
|
+
readonly type: "FieldSet!";
|
|
928
|
+
}];
|
|
929
|
+
readonly scalars: [{
|
|
930
|
+
readonly name: "FieldSet";
|
|
931
|
+
readonly serialize: "string";
|
|
932
|
+
}];
|
|
933
|
+
}, {
|
|
934
|
+
readonly name: "@requires";
|
|
935
|
+
readonly locations: ["FIELD_DEFINITION"];
|
|
936
|
+
readonly args: [{
|
|
937
|
+
readonly name: "fields";
|
|
938
|
+
readonly type: "FieldSet!";
|
|
939
|
+
}];
|
|
940
|
+
readonly scalars: [{
|
|
941
|
+
readonly name: "FieldSet";
|
|
942
|
+
readonly serialize: "string";
|
|
943
|
+
}];
|
|
944
|
+
}, {
|
|
945
|
+
readonly name: "@requiresScopes";
|
|
946
|
+
readonly locations: ["ENUM", "FIELD_DEFINITION", "INTERFACE", "OBJECT", "SCALAR"];
|
|
947
|
+
readonly args: [{
|
|
948
|
+
readonly name: "scopes";
|
|
949
|
+
readonly type: "[[Scope!]!]!";
|
|
950
|
+
}];
|
|
951
|
+
readonly scalars: [{
|
|
952
|
+
readonly name: "Scope";
|
|
953
|
+
readonly serialize: "string";
|
|
954
|
+
}];
|
|
955
|
+
}, {
|
|
956
|
+
readonly name: "@shareable";
|
|
957
|
+
readonly locations: ["FIELD_DEFINITION", "OBJECT"];
|
|
958
|
+
readonly repeatable: true;
|
|
959
|
+
}, {
|
|
960
|
+
readonly name: "@tag";
|
|
961
|
+
readonly locations: ["FIELD_DEFINITION", "INTERFACE", "OBJECT", "UNION", "ARGUMENT_DEFINITION", "SCALAR", "ENUM", "ENUM_VALUE", "INPUT_OBJECT", "INPUT_FIELD_DEFINITION"];
|
|
962
|
+
readonly args: [{
|
|
963
|
+
readonly name: "name";
|
|
964
|
+
readonly type: "String!";
|
|
965
|
+
}];
|
|
966
|
+
readonly repeatable: true;
|
|
967
|
+
}];
|
|
968
|
+
}];
|
|
969
|
+
//#endregion
|
|
970
|
+
//#region lib/specs.d.ts
|
|
971
|
+
type FederationSpecs = (typeof federationSpecs)[number];
|
|
972
|
+
type FederationVersion = FederationSpecs['version'];
|
|
973
|
+
type FederationDirectiveNamesByVersion<V extends FederationVersion> = Extract<FederationSpecs, {
|
|
974
|
+
version: V;
|
|
975
|
+
}>['directives'][number]['name'];
|
|
976
|
+
//#endregion
|
|
977
|
+
//#region index.d.ts
|
|
978
|
+
declare const DEFAULT_VERSION: "2.9";
|
|
979
|
+
declare const DEFAULT_DIRECTIVES: ["@key", "@external", "@requires", "@provides", "@extends"];
|
|
980
|
+
type DefaultFederationVersion = typeof DEFAULT_VERSION;
|
|
981
|
+
type DefaultFederationDirectives = (typeof DEFAULT_DIRECTIVES)[number];
|
|
982
|
+
/**
|
|
983
|
+
* Options for the federation plugin. All options are optional and have sensible defaults, so you can just call `federationPlugin()` without any arguments for a good out-of-the-box experience.
|
|
984
|
+
*/
|
|
985
|
+
interface FederationPluginOptions<Version extends FederationVersion = DefaultFederationVersion> {
|
|
986
|
+
/**
|
|
987
|
+
* Federation version to target. Determines which directives are available for import.
|
|
988
|
+
* @defaultValue '2.9'
|
|
989
|
+
*/
|
|
990
|
+
version?: Version;
|
|
991
|
+
/** Directives to include in the generated federation module. Can be either a list of directive names or 'all' to include all available directives for the specified version.
|
|
992
|
+
* @defaultValue ['@key', '@external', '@requires', '@provides', '@extends']
|
|
993
|
+
*/
|
|
994
|
+
include?: Exclude<FederationDirectiveNamesByVersion<Version>, DefaultFederationDirectives>[] | 'all';
|
|
995
|
+
/**
|
|
996
|
+
* Custom name for the federation module
|
|
997
|
+
* @defaultValue 'baeta-federation'
|
|
998
|
+
*/
|
|
999
|
+
moduleName?: string;
|
|
1000
|
+
}
|
|
1001
|
+
declare function federationPlugin<const Version extends FederationVersion>(options?: FederationPluginOptions<Version>): _$_baeta_generator_sdk0.GeneratorPluginV1<unknown>;
|
|
1002
|
+
//#endregion
|
|
1003
|
+
export { FederationPluginOptions, federationPlugin };
|
|
1004
|
+
//# sourceMappingURL=index.d.ts.map
|