@graphql-codegen/plugin-helpers 4.2.1-alpha-20230424083527-699b68f03 → 4.2.1-alpha-20230428134910-3358e1208

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/plugin-helpers",
3
- "version": "4.2.1-alpha-20230424083527-699b68f03",
3
+ "version": "4.2.1-alpha-20230428134910-3358e1208",
4
4
  "description": "GraphQL Code Generator common utils and types",
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"
@@ -89,6 +89,10 @@ export declare namespace Types {
89
89
  * @description HTTP Method to use, either POST (default) or GET.
90
90
  */
91
91
  method?: string;
92
+ /**
93
+ * @description Handling the response as SDL will allow you to load schema from remote server that doesn't return a JSON introspection.
94
+ */
95
+ handleAsSDL?: boolean;
92
96
  }
93
97
  interface UrlSchemaWithOptions {
94
98
  [url: string]: UrlSchemaOptions;
@@ -171,16 +175,11 @@ export declare namespace Types {
171
175
  interface ApolloEngineSchemaOptions {
172
176
  'apollo-engine': ApolloEngineOptions;
173
177
  }
174
- interface GitHubSchemaOptions {
175
- [githubProtocol: string]: {
176
- token: `github:${string}`;
177
- };
178
- }
179
178
  type SchemaGlobPath = string;
180
179
  /**
181
180
  * @description A URL to your GraphQL endpoint, a local path to `.graphql` file, a glob pattern to your GraphQL schema files, or a JavaScript file that exports the schema to generate code from. This can also be an array which specifies multiple schemas to generate code from. You can read more about the supported formats [here](schema-field#available-formats).
182
181
  */
183
- type Schema = string | UrlSchemaWithOptions | ApolloEngineSchemaOptions | GitHubSchemaOptions | LocalSchemaPathWithOptions | SchemaGlobPath | SchemaWithLoader | SchemaFromCodeFile;
182
+ type Schema = string | UrlSchemaWithOptions | ApolloEngineSchemaOptions | LocalSchemaPathWithOptions | SchemaGlobPath | SchemaWithLoader | SchemaFromCodeFile;
184
183
  type OperationDocumentGlobPath = string;
185
184
  /**
186
185
  * @additionalProperties false
@@ -89,6 +89,10 @@ export declare namespace Types {
89
89
  * @description HTTP Method to use, either POST (default) or GET.
90
90
  */
91
91
  method?: string;
92
+ /**
93
+ * @description Handling the response as SDL will allow you to load schema from remote server that doesn't return a JSON introspection.
94
+ */
95
+ handleAsSDL?: boolean;
92
96
  }
93
97
  interface UrlSchemaWithOptions {
94
98
  [url: string]: UrlSchemaOptions;
@@ -171,16 +175,11 @@ export declare namespace Types {
171
175
  interface ApolloEngineSchemaOptions {
172
176
  'apollo-engine': ApolloEngineOptions;
173
177
  }
174
- interface GitHubSchemaOptions {
175
- [githubProtocol: string]: {
176
- token: `github:${string}`;
177
- };
178
- }
179
178
  type SchemaGlobPath = string;
180
179
  /**
181
180
  * @description A URL to your GraphQL endpoint, a local path to `.graphql` file, a glob pattern to your GraphQL schema files, or a JavaScript file that exports the schema to generate code from. This can also be an array which specifies multiple schemas to generate code from. You can read more about the supported formats [here](schema-field#available-formats).
182
181
  */
183
- type Schema = string | UrlSchemaWithOptions | ApolloEngineSchemaOptions | GitHubSchemaOptions | LocalSchemaPathWithOptions | SchemaGlobPath | SchemaWithLoader | SchemaFromCodeFile;
182
+ type Schema = string | UrlSchemaWithOptions | ApolloEngineSchemaOptions | LocalSchemaPathWithOptions | SchemaGlobPath | SchemaWithLoader | SchemaFromCodeFile;
184
183
  type OperationDocumentGlobPath = string;
185
184
  /**
186
185
  * @additionalProperties false