@graphql-codegen/hasura-allow-list 1.1.1-alpha-0814e49cc.0 → 1.1.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 +3 -3
- package/typings/config.d.cts +14 -0
- package/typings/index.d.cts +7 -0
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/hasura-allow-list",
|
|
3
|
-
"version": "1.1.1
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "GraphQL Code Generator plugin to generate hasura allow liste metadata from graphql files",
|
|
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.
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "^2.6.2",
|
|
10
10
|
"tslib": "~2.4.0",
|
|
11
11
|
"yaml": "^1.10.2"
|
|
12
12
|
},
|
|
@@ -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,14 @@
|
|
|
1
|
+
export interface HasuraAllowListPluginConfig {
|
|
2
|
+
/**
|
|
3
|
+
* @default allowed-queries
|
|
4
|
+
* @description Choose the collection name to be generated. Defaults to allowed-queries
|
|
5
|
+
*/
|
|
6
|
+
collection_name?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @default 3
|
|
9
|
+
* @description Target metadata config version. Supported versions are 2 and 3.
|
|
10
|
+
* This is mostly for future proofing, currently has no impact as both versions use the same format.
|
|
11
|
+
* The default value _will change_ in the future if/when newer config versions are released.
|
|
12
|
+
*/
|
|
13
|
+
config_version?: 2 | 3;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PluginFunction, Types } from '@graphql-codegen/plugin-helpers';
|
|
2
|
+
import { HasuraAllowListPluginConfig } from './config.cjs';
|
|
3
|
+
export declare const plugin: PluginFunction<HasuraAllowListPluginConfig>;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
plugin: PluginFunction<HasuraAllowListPluginConfig, Types.PluginOutput>;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|