@graphql-codegen/introspection 2.2.1-alpha-0814e49cc.0 → 2.2.1
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/package.json +4 -4
- package/typings/index.d.cts +44 -0
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/introspection",
|
|
3
|
-
"version": "2.2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating an introspection JSON file for a GraphQLSchema",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-codegen/plugin-helpers": "^2.6.
|
|
10
|
-
"@graphql-codegen/visitor-plugin-common": "^2.12.1
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "^2.6.2",
|
|
10
|
+
"@graphql-codegen/visitor-plugin-common": "^2.12.1",
|
|
11
11
|
"tslib": "~2.4.0"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"exports": {
|
|
27
27
|
".": {
|
|
28
28
|
"require": {
|
|
29
|
-
"types": "./typings/index.d.
|
|
29
|
+
"types": "./typings/index.d.cts",
|
|
30
30
|
"default": "./cjs/index.js"
|
|
31
31
|
},
|
|
32
32
|
"import": {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PluginFunction, PluginValidateFn } from '@graphql-codegen/plugin-helpers';
|
|
2
|
+
/**
|
|
3
|
+
* @description This plugin generates a GraphQL introspection file based on your GraphQL schema.
|
|
4
|
+
*/
|
|
5
|
+
export interface IntrospectionPluginConfig {
|
|
6
|
+
/**
|
|
7
|
+
* @description Set to `true` in order to minify the JSON output.
|
|
8
|
+
* @default false
|
|
9
|
+
*
|
|
10
|
+
* @exampleMarkdown
|
|
11
|
+
* ```yaml {6}
|
|
12
|
+
* generates:
|
|
13
|
+
* introspection.json:
|
|
14
|
+
* plugins:
|
|
15
|
+
* - introspection
|
|
16
|
+
* config:
|
|
17
|
+
* minify: true
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
minify?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @description Whether to include descriptions in the introspection result.
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
descriptions?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @description Whether to include `specifiedByUrl` in the introspection result.
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
specifiedByUrl?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @description Whether to include `isRepeatable` flag on directives.
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
directiveIsRepeatable?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @description Whether to include `description` field on schema.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
schemaDescription?: boolean;
|
|
41
|
+
federation?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export declare const plugin: PluginFunction<IntrospectionPluginConfig>;
|
|
44
|
+
export declare const validate: PluginValidateFn<any>;
|