@graphql-codegen/typescript-graphql-request 4.5.6 → 4.5.7-alpha-20221018122157-1afce2555
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 +2 -2
- package/typings/config.d.cts +31 -13
- package/typings/config.d.ts +31 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/typescript-graphql-request",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.7-alpha-20221018122157-1afce2555",
|
|
4
4
|
"description": "GraphQL Code Generator plugin for generating a ready-to-use SDK based on graphql-request and GraphQL operations",
|
|
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",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@graphql-codegen/plugin-helpers": "^2.7.1",
|
|
12
|
-
"@graphql-codegen/visitor-plugin-common": "2.
|
|
12
|
+
"@graphql-codegen/visitor-plugin-common": "2.13.0-alpha-20221018122157-1afce2555",
|
|
13
13
|
"auto-bind": "~4.0.0",
|
|
14
14
|
"tslib": "~2.4.0"
|
|
15
15
|
},
|
package/typings/config.d.cts
CHANGED
|
@@ -8,15 +8,21 @@ export interface RawGraphQLRequestPluginConfig extends RawClientSideBasePluginCo
|
|
|
8
8
|
* @default false
|
|
9
9
|
*
|
|
10
10
|
* @exampleMarkdown
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
11
|
+
* ```ts filename="codegen.ts"
|
|
12
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
13
|
+
*
|
|
14
|
+
* const config: CodegenConfig = {
|
|
15
|
+
* // ...
|
|
16
|
+
* generates: {
|
|
17
|
+
* 'path/to/file.ts': {
|
|
18
|
+
* plugins: ['typescript', 'typescript-operations', 'typescript-graphql-request'],
|
|
19
|
+
* config: {
|
|
20
|
+
* rawRequest: true
|
|
21
|
+
* },
|
|
22
|
+
* },
|
|
23
|
+
* },
|
|
24
|
+
* };
|
|
25
|
+
* export default config;
|
|
20
26
|
* ```
|
|
21
27
|
*/
|
|
22
28
|
rawRequest?: boolean;
|
|
@@ -25,10 +31,22 @@ export interface RawGraphQLRequestPluginConfig extends RawClientSideBasePluginCo
|
|
|
25
31
|
* @default any
|
|
26
32
|
*
|
|
27
33
|
* @exampleMarkdown
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
34
|
+
* ```ts filename="codegen.ts"
|
|
35
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
36
|
+
*
|
|
37
|
+
* const config: CodegenConfig = {
|
|
38
|
+
* // ...
|
|
39
|
+
* generates: {
|
|
40
|
+
* 'path/to/file.ts': {
|
|
41
|
+
* plugins: ['typescript', 'typescript-operations', 'typescript-graphql-request'],
|
|
42
|
+
* config: {
|
|
43
|
+
* rawRequest: true,
|
|
44
|
+
* extensionsType: 'unknown'
|
|
45
|
+
* },
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* };
|
|
49
|
+
* export default config;
|
|
32
50
|
* ```
|
|
33
51
|
*/
|
|
34
52
|
extensionsType?: string;
|
package/typings/config.d.ts
CHANGED
|
@@ -8,15 +8,21 @@ export interface RawGraphQLRequestPluginConfig extends RawClientSideBasePluginCo
|
|
|
8
8
|
* @default false
|
|
9
9
|
*
|
|
10
10
|
* @exampleMarkdown
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
11
|
+
* ```ts filename="codegen.ts"
|
|
12
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
13
|
+
*
|
|
14
|
+
* const config: CodegenConfig = {
|
|
15
|
+
* // ...
|
|
16
|
+
* generates: {
|
|
17
|
+
* 'path/to/file.ts': {
|
|
18
|
+
* plugins: ['typescript', 'typescript-operations', 'typescript-graphql-request'],
|
|
19
|
+
* config: {
|
|
20
|
+
* rawRequest: true
|
|
21
|
+
* },
|
|
22
|
+
* },
|
|
23
|
+
* },
|
|
24
|
+
* };
|
|
25
|
+
* export default config;
|
|
20
26
|
* ```
|
|
21
27
|
*/
|
|
22
28
|
rawRequest?: boolean;
|
|
@@ -25,10 +31,22 @@ export interface RawGraphQLRequestPluginConfig extends RawClientSideBasePluginCo
|
|
|
25
31
|
* @default any
|
|
26
32
|
*
|
|
27
33
|
* @exampleMarkdown
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
34
|
+
* ```ts filename="codegen.ts"
|
|
35
|
+
* import type { CodegenConfig } from '@graphql-codegen/cli';
|
|
36
|
+
*
|
|
37
|
+
* const config: CodegenConfig = {
|
|
38
|
+
* // ...
|
|
39
|
+
* generates: {
|
|
40
|
+
* 'path/to/file.ts': {
|
|
41
|
+
* plugins: ['typescript', 'typescript-operations', 'typescript-graphql-request'],
|
|
42
|
+
* config: {
|
|
43
|
+
* rawRequest: true,
|
|
44
|
+
* extensionsType: 'unknown'
|
|
45
|
+
* },
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* };
|
|
49
|
+
* export default config;
|
|
32
50
|
* ```
|
|
33
51
|
*/
|
|
34
52
|
extensionsType?: string;
|