@graphql-codegen/plugin-helpers 4.2.0 → 4.2.1-alpha-20230423113203-646309f65
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 +1 -1
- package/typings/types.d.cts +6 -1
- package/typings/types.d.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/plugin-helpers",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1-alpha-20230423113203-646309f65",
|
|
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"
|
package/typings/types.d.cts
CHANGED
|
@@ -171,11 +171,16 @@ export declare namespace Types {
|
|
|
171
171
|
interface ApolloEngineSchemaOptions {
|
|
172
172
|
'apollo-engine': ApolloEngineOptions;
|
|
173
173
|
}
|
|
174
|
+
interface GitHubSchemaOptions {
|
|
175
|
+
[githubProtocol: string]: {
|
|
176
|
+
token: string;
|
|
177
|
+
};
|
|
178
|
+
}
|
|
174
179
|
type SchemaGlobPath = string;
|
|
175
180
|
/**
|
|
176
181
|
* @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).
|
|
177
182
|
*/
|
|
178
|
-
type Schema = string | UrlSchemaWithOptions | ApolloEngineSchemaOptions | LocalSchemaPathWithOptions | SchemaGlobPath | SchemaWithLoader | SchemaFromCodeFile;
|
|
183
|
+
type Schema = string | UrlSchemaWithOptions | ApolloEngineSchemaOptions | GitHubSchemaOptions | LocalSchemaPathWithOptions | SchemaGlobPath | SchemaWithLoader | SchemaFromCodeFile;
|
|
179
184
|
type OperationDocumentGlobPath = string;
|
|
180
185
|
/**
|
|
181
186
|
* @additionalProperties false
|
package/typings/types.d.ts
CHANGED
|
@@ -171,11 +171,16 @@ export declare namespace Types {
|
|
|
171
171
|
interface ApolloEngineSchemaOptions {
|
|
172
172
|
'apollo-engine': ApolloEngineOptions;
|
|
173
173
|
}
|
|
174
|
+
interface GitHubSchemaOptions {
|
|
175
|
+
[githubProtocol: string]: {
|
|
176
|
+
token: string;
|
|
177
|
+
};
|
|
178
|
+
}
|
|
174
179
|
type SchemaGlobPath = string;
|
|
175
180
|
/**
|
|
176
181
|
* @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).
|
|
177
182
|
*/
|
|
178
|
-
type Schema = string | UrlSchemaWithOptions | ApolloEngineSchemaOptions | LocalSchemaPathWithOptions | SchemaGlobPath | SchemaWithLoader | SchemaFromCodeFile;
|
|
183
|
+
type Schema = string | UrlSchemaWithOptions | ApolloEngineSchemaOptions | GitHubSchemaOptions | LocalSchemaPathWithOptions | SchemaGlobPath | SchemaWithLoader | SchemaFromCodeFile;
|
|
179
184
|
type OperationDocumentGlobPath = string;
|
|
180
185
|
/**
|
|
181
186
|
* @additionalProperties false
|