@power-plant/graphql-codegen 0.0.2
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/LICENSE +201 -0
- package/README.md +265 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +4677 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +4677 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +88 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":["T","T","key","ObjMap","ReadOnlyObjMap","ReadOnlyObjMapWithSymbol","NAME","DOCUMENT","OPERATION_DEFINITION","VARIABLE_DEFINITION","SELECTION_SET","FIELD","ARGUMENT","FRAGMENT_ARGUMENT","FRAGMENT_SPREAD","INLINE_FRAGMENT","FRAGMENT_DEFINITION","VARIABLE","INT","FLOAT","STRING","BOOLEAN","NULL","ENUM","LIST","OBJECT","OBJECT_FIELD","DIRECTIVE","NAMED_TYPE","LIST_TYPE","NON_NULL_TYPE","SCHEMA_DEFINITION","OPERATION_TYPE_DEFINITION","SCALAR_TYPE_DEFINITION","OBJECT_TYPE_DEFINITION","FIELD_DEFINITION","INPUT_VALUE_DEFINITION","INTERFACE_TYPE_DEFINITION","UNION_TYPE_DEFINITION","ENUM_VALUE_DEFINITION","INPUT_OBJECT_TYPE_DEFINITION","DIRECTIVE_DEFINITION","SCHEMA_EXTENSION","DIRECTIVE_EXTENSION","SCALAR_TYPE_EXTENSION","OBJECT_TYPE_EXTENSION","INTERFACE_TYPE_EXTENSION","UNION_TYPE_EXTENSION","ENUM_TYPE_EXTENSION","INPUT_OBJECT_TYPE_EXTENSION","TYPE_COORDINATE","MEMBER_COORDINATE","ARGUMENT_COORDINATE","DIRECTIVE_COORDINATE","DIRECTIVE_ARGUMENT_COORDINATE","Kind_","line","column","body","name","locationOffset","Location","constructor","Symbol","toStringTag","source","Source","SOF","EOF","BANG","DOLLAR","AMP","PAREN_L","PAREN_R","DOT","SPREAD","COLON","EQUALS","AT","BRACKET_L","BRACKET_R","BRACE_L","PIPE","BRACE_R","NAME","INT","FLOAT","STRING","BLOCK_STRING","COMMENT","TokenKind","start","end","startToken","Token","endToken","source","Source","constructor","Symbol","toStringTag","toJSON","kind","TokenKind","line","column","value","prev","next","NameNode","DocumentNode","OperationDefinitionNode","VariableDefinitionNode","VariableNode","SelectionSetNode","FieldNode","ArgumentNode","FragmentArgumentNode","FragmentSpreadNode","InlineFragmentNode","FragmentDefinitionNode","IntValueNode","FloatValueNode","StringValueNode","BooleanValueNode","NullValueNode","EnumValueNode","ListValueNode","ObjectValueNode","ObjectFieldNode","DirectiveNode","NamedTypeNode","ListTypeNode","NonNullTypeNode","SchemaDefinitionNode","OperationTypeDefinitionNode","ScalarTypeDefinitionNode","ObjectTypeDefinitionNode","FieldDefinitionNode","InputValueDefinitionNode","InterfaceTypeDefinitionNode","UnionTypeDefinitionNode","EnumTypeDefinitionNode","EnumValueDefinitionNode","InputObjectTypeDefinitionNode","DirectiveDefinitionNode","SchemaExtensionNode","ScalarTypeExtensionNode","ObjectTypeExtensionNode","InterfaceTypeExtensionNode","UnionTypeExtensionNode","EnumTypeExtensionNode","InputObjectTypeExtensionNode","DirectiveExtensionNode","TypeCoordinateNode","MemberCoordinateNode","ArgumentCoordinateNode","DirectiveCoordinateNode","DirectiveArgumentCoordinateNode","NodeT","ASTNode","ReadonlyArray","maybeNode","KindTypeMap","loc","Location","definitions","DefinitionNode","tokenCount","ExecutableDefinitionNode","TypeSystemDefinitionNode","TypeSystemExtensionNode","description","operation","OperationTypeNode","name","variableDefinitions","directives","selectionSet","QUERY","MUTATION","SUBSCRIPTION","variable","type","TypeNode","defaultValue","ConstValueNode","ConstDirectiveNode","selections","SelectionNode","alias","arguments","ValueNode","typeCondition","ConstListValueNode","ConstObjectValueNode","block","values","fields","ConstObjectFieldNode","ConstArgumentNode","TypeDefinitionNode","operationTypes","interfaces","types","repeatable","locations","TypeExtensionNode","memberName","fieldName","argumentName","prev","Path","key","typename","Readonly","Maybe","path","Array","T","Promise","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION","FRAGMENT_VARIABLE_DEFINITION","SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","DIRECTIVE_DEFINITION","DirectiveLocation","directive","GraphQLDirective","attributeName","GraphQLSchemaElement","name","description","Maybe","locations","ReadonlyArray","DirectiveLocation","args","GraphQLArgument","isRepeatable","deprecationReason","extensions","Readonly","GraphQLDirectiveExtensions","astNode","DirectiveDefinitionNode","extensionASTNodes","DirectiveExtensionNode","constructor","GraphQLDirectiveConfig","config","Symbol","toStringTag","toConfig","GraphQLDirectiveNormalizedConfig","toString","toJSON","ObjMap","GraphQLArgumentConfig","GraphQLFieldNormalizedConfigArgumentMap","name","type","GraphQLInputType","defaultValue","default","literal","ConstValueNode","GraphQLSchema","schema","VariableDefinitionNode","varDefNode","GraphQLVariableSignature","GraphQLError","sources","ReadOnlyObjMap","VariableValueSource","coerced","signature","GraphQLVariableSignature","value","variableValues","VariableValues","errors","ReadonlyArray","GraphQLError","GraphQLSchema","schema","VariableDefinitionNode","varDefNodes","variable","inputs","maxErrors","hideSuggestions","options","VariableValuesOrErrors","FragmentSpreadNode","fragmentSpreadNode","fragmentSignatures","Maybe","FragmentVariableValues","fragmentVariableValues","GraphQLField","GraphQLDirective","def","FieldNode","DirectiveNode","node","ObjMap","directiveDef","directives","GraphQLNamedType","GraphQLWrappingType","type","GraphQLType","GraphQLScalarType","GraphQLObjectType","field","GraphQLField","arg","GraphQLArgument","GraphQLInterfaceType","GraphQLUnionType","GraphQLEnumType","value","GraphQLEnumValue","GraphQLInputObjectType","GraphQLInputField","GraphQLInputType","GraphQLList","GraphQLOutputType","GraphQLNonNull","GraphQLNullableInputType","GraphQLNullableOutputType","GraphQLNullableType","GraphQLNamedInputType","GraphQLNamedOutputType","GraphQLLeafType","GraphQLCompositeType","GraphQLAbstractType","T","GraphQLSchemaElement","ofType","__GraphQLListTypeBrand","constructor","Symbol","toStringTag","toString","toJSON","__GraphQLNonNullTypeBrand","Maybe","ReadonlyArray","ObjMap","ThunkReadonlyArray","thunk","ThunkObjMap","attributeName","TInternal","TExternal","name","description","specifiedByURL","serialize","GraphQLScalarSerializer","parseValue","GraphQLScalarValueParser","parseLiteral","GraphQLScalarLiteralParser","coerceOutputValue","GraphQLScalarOutputValueCoercer","coerceInputValue","GraphQLScalarInputValueCoercer","coerceInputLiteral","GraphQLScalarInputLiteralCoercer","valueToLiteral","GraphQLScalarValueToLiteral","extensions","Readonly","GraphQLScalarTypeExtensions","astNode","ScalarTypeDefinitionNode","extensionASTNodes","ScalarTypeExtensionNode","GraphQLScalarTypeConfig","config","toConfig","GraphQLScalarTypeNormalizedConfig","outputValue","inputValue","ValueNode","valueNode","variables","ConstValueNode","_TSource","_TContext","TSource","TContext","TAbstract","isTypeOf","GraphQLIsTypeOfFn","GraphQLObjectTypeExtensions","ObjectTypeDefinitionNode","ObjectTypeExtensionNode","_fields","_interfaces","GraphQLObjectTypeConfig","getFields","GraphQLFieldMap","getInterfaces","GraphQLObjectTypeNormalizedConfig","interfaces","fields","GraphQLFieldConfig","GraphQLFieldNormalizedConfigMap","context","GraphQLResolveInfo","info","abstractType","PromiseOrValue","TArgs","TResult","source","args","promiseAll","PromiseLike","values","Promise","Array","track","maybePromises","fieldName","fieldNodes","FieldNode","returnType","parentType","path","Path","schema","GraphQLSchema","fragments","FragmentDefinitionNode","rootValue","operation","OperationDefinitionNode","variableValues","VariableValues","getAbortSignal","AbortSignal","getAsyncHelpers","GraphQLResolveInfoHelpers","_TArgs","GraphQLFieldConfigArgumentMap","resolve","GraphQLFieldResolver","subscribe","deprecationReason","GraphQLFieldExtensions","FieldDefinitionNode","GraphQLFieldNormalizedConfigArgumentMap","GraphQLArgumentConfig","GraphQLArgumentNormalizedConfig","defaultValue","default","GraphQLDefaultInput","GraphQLArgumentExtensions","InputValueDefinitionNode","GraphQLFieldNormalizedConfig","parent","GraphQLDirective","GraphQLVariableSignature","literal","resolveType","GraphQLTypeResolver","GraphQLInterfaceTypeExtensions","InterfaceTypeDefinitionNode","InterfaceTypeExtensionNode","GraphQLInterfaceTypeConfig","GraphQLInterfaceTypeNormalizedConfig","GraphQLUnionTypeExtensions","UnionTypeDefinitionNode","UnionTypeExtensionNode","_types","GraphQLUnionTypeConfig","getTypes","GraphQLUnionTypeNormalizedConfig","types","GraphQLEnumTypeExtensions","EnumTypeDefinitionNode","EnumTypeExtensionNode","_values","_valueLookup","_nameLookup","GraphQLEnumTypeConfig","getValues","getValue","hideSuggestions","_variables","GraphQLEnumTypeNormalizedConfig","GraphQLEnumValueConfig","GraphQLEnumValueNormalizedConfigMap","GraphQLEnumValueNormalizedConfig","GraphQLEnumValueExtensions","EnumValueDefinitionNode","parentEnum","GraphQLInputObjectTypeExtensions","InputObjectTypeDefinitionNode","InputObjectTypeExtensionNode","isOneOf","GraphQLInputObjectTypeConfig","GraphQLInputFieldMap","GraphQLInputObjectTypeNormalizedConfig","GraphQLInputFieldConfig","GraphQLInputFieldNormalizedConfigMap","GraphQLInputFieldExtensions","GraphQLInputFieldNormalizedConfig","schema","GraphQLSchema","attributeName","description","Maybe","extensions","Readonly","GraphQLSchemaExtensions","astNode","SchemaDefinitionNode","extensionASTNodes","ReadonlyArray","SchemaExtensionNode","assumeValid","_queryType","_mutationType","_subscriptionType","_directives","_typeMap","_subTypeMap","_implementationsMap","constructor","GraphQLSchemaConfig","config","Symbol","toStringTag","getQueryType","GraphQLObjectType","getMutationType","getSubscriptionType","getRootType","OperationTypeNode","operation","getTypeMap","TypeMap","getType","name","GraphQLNamedType","getPossibleTypes","GraphQLAbstractType","abstractType","getImplementations","GraphQLInterfaceType","interfaceType","objects","interfaces","isSubType","maybeSubType","getDirectives","GraphQLDirective","getDirective","getField","GraphQLCompositeType","parentType","fieldName","GraphQLField","toConfig","GraphQLSchemaNormalizedConfig","ObjMap","GraphQLSchemaValidationOptions","query","mutation","subscription","types","directives"],"sources":["../../../../node_modules/.pnpm/graphql@17.0.2/node_modules/graphql/jsutils/Maybe.d.ts","../../../../node_modules/.pnpm/graphql@17.0.2/node_modules/graphql/jsutils/ObjMap.d.ts","../../../../node_modules/.pnpm/graphql@17.0.2/node_modules/graphql/language/kinds_.d.ts","../../../../node_modules/.pnpm/graphql@17.0.2/node_modules/graphql/language/KindTypeMap.d.ts","../../../../node_modules/.pnpm/graphql@17.0.2/node_modules/graphql/language/source.d.ts","../../../../node_modules/.pnpm/graphql@17.0.2/node_modules/graphql/language/tokenKind.d.ts","../../../../node_modules/.pnpm/graphql@17.0.2/node_modules/graphql/language/ast.d.ts","../../../../node_modules/.pnpm/graphql@17.0.2/node_modules/graphql/jsutils/Path.d.ts","../../../../node_modules/.pnpm/graphql@17.0.2/node_modules/graphql/jsutils/PromiseOrValue.d.ts","../../../../node_modules/.pnpm/graphql@17.0.2/node_modules/graphql/language/directiveLocation.d.ts","../../../../node_modules/.pnpm/graphql@17.0.2/node_modules/graphql/type/directives.d.ts","../../../../node_modules/.pnpm/graphql@17.0.2/node_modules/graphql/execution/getVariableSignature.d.ts","../../../../node_modules/.pnpm/graphql@17.0.2/node_modules/graphql/execution/values.d.ts","../../../../node_modules/.pnpm/graphql@17.0.2/node_modules/graphql/type/definition.d.ts","../../../../node_modules/.pnpm/graphql@17.0.2/node_modules/graphql/type/schema.d.ts","../src/index.ts"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"mappings":""}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{codegen as e}from"@graphql-codegen/core";import{defineGenerator as t}from"@power-plant/core";import n from"@power-plant/graphql-schema";var r=t({meta:{name:`graphql-codegen`,description:`A generator that uses GraphQL Codegen to generate source code from a GraphQL schema.`,version:`1.0`,tags:[`graphql`,`graphql-codegen`]},schema:n,generator:async(t,n)=>{let r=await e({...n});return{[n.filename]:{path:n.filename,source:[{content:r}]}}}});export{r as default};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@power-plant/graphql-codegen",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "A Power Plant generator for using GraphQL Codegen to generate source code from a GraphQL schema.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"graphql",
|
|
8
|
+
"graphql-codegen",
|
|
9
|
+
"power-plant-generator",
|
|
10
|
+
"power-plant",
|
|
11
|
+
"storm-software"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://stormsoftware.com",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://stormsoftware.com/support",
|
|
16
|
+
"email": "support@stormsoftware.com"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "github",
|
|
20
|
+
"url": "https://github.com/storm-software/power-plant.git",
|
|
21
|
+
"directory": "packages/generators/graphql-codegen"
|
|
22
|
+
},
|
|
23
|
+
"funding": {
|
|
24
|
+
"type": "github",
|
|
25
|
+
"url": "https://github.com/sponsors/storm-software"
|
|
26
|
+
},
|
|
27
|
+
"license": "Apache-2.0",
|
|
28
|
+
"author": {
|
|
29
|
+
"name": "Storm Software",
|
|
30
|
+
"email": "contact@stormsoftware.com",
|
|
31
|
+
"url": "https://stormsoftware.com"
|
|
32
|
+
},
|
|
33
|
+
"maintainers": [
|
|
34
|
+
{
|
|
35
|
+
"name": "Storm Software",
|
|
36
|
+
"email": "contact@stormsoftware.com",
|
|
37
|
+
"url": "https://stormsoftware.com"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"contributors": [
|
|
41
|
+
{
|
|
42
|
+
"name": "Storm Software",
|
|
43
|
+
"email": "contact@stormsoftware.com",
|
|
44
|
+
"url": "https://stormsoftware.com"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"type": "module",
|
|
48
|
+
"exports": {
|
|
49
|
+
".": {
|
|
50
|
+
"require": {
|
|
51
|
+
"types": "./dist/index.d.cts",
|
|
52
|
+
"default": "./dist/index.cjs"
|
|
53
|
+
},
|
|
54
|
+
"import": {
|
|
55
|
+
"types": "./dist/index.d.mts",
|
|
56
|
+
"default": "./dist/index.mjs"
|
|
57
|
+
},
|
|
58
|
+
"default": {
|
|
59
|
+
"types": "./dist/index.d.mts",
|
|
60
|
+
"default": "./dist/index.mjs"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"./package.json": "./package.json"
|
|
64
|
+
},
|
|
65
|
+
"main": "./dist/index.cjs",
|
|
66
|
+
"module": "./dist/index.mjs",
|
|
67
|
+
"types": "./dist/index.d.cts",
|
|
68
|
+
"typings": "dist/index.d.mts",
|
|
69
|
+
"files": ["dist"],
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@graphql-codegen/core": "^6.2.0",
|
|
72
|
+
"@graphql-codegen/plugin-helpers": "^7.1.0",
|
|
73
|
+
"@power-plant/core": "^0.0.6",
|
|
74
|
+
"@power-plant/graphql-schema": "^0.0.1",
|
|
75
|
+
"@power-plant/schema": "^0.0.6",
|
|
76
|
+
"@stryke/convert": "^0.7.26",
|
|
77
|
+
"@stryke/type-checks": "^0.6.28",
|
|
78
|
+
"@stryke/types": "^0.12.23"
|
|
79
|
+
},
|
|
80
|
+
"devDependencies": {
|
|
81
|
+
"@powerlines/plugin-tsdown": "^0.1.543",
|
|
82
|
+
"@types/node": "^25.9.4",
|
|
83
|
+
"powerlines": "^0.47.142"
|
|
84
|
+
},
|
|
85
|
+
"publishConfig": { "access": "public" },
|
|
86
|
+
"inlinedDependencies": { "graphql": "17.0.2" },
|
|
87
|
+
"gitHead": "1cd5a7e9984824bad1310f46128dab190fc77fa7"
|
|
88
|
+
}
|