@webiny/handler-graphql 5.40.5-beta.0 → 5.41.0-dbt.0

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.
Files changed (3) hide show
  1. package/package.json +11 -11
  2. package/types.d.ts +4 -4
  3. package/types.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/handler-graphql",
3
- "version": "5.40.5-beta.0",
3
+ "version": "5.41.0-dbt.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -15,11 +15,11 @@
15
15
  ],
16
16
  "dependencies": {
17
17
  "@babel/runtime": "7.24.1",
18
- "@graphql-tools/schema": "7.1.5",
19
- "@webiny/api": "5.40.5-beta.0",
20
- "@webiny/error": "5.40.5-beta.0",
21
- "@webiny/handler": "5.40.5-beta.0",
22
- "@webiny/plugins": "5.40.5-beta.0",
18
+ "@graphql-tools/schema": "10.0.6",
19
+ "@webiny/api": "5.41.0-dbt.0",
20
+ "@webiny/error": "5.41.0-dbt.0",
21
+ "@webiny/handler": "5.41.0-dbt.0",
22
+ "@webiny/plugins": "5.41.0-dbt.0",
23
23
  "boolean": "3.2.0",
24
24
  "graphql": "15.8.0",
25
25
  "graphql-scalars": "1.12.0",
@@ -29,14 +29,14 @@
29
29
  "@babel/cli": "7.24.1",
30
30
  "@babel/core": "7.24.3",
31
31
  "@babel/preset-env": "7.24.3",
32
- "@webiny/cli": "5.40.5-beta.0",
33
- "@webiny/handler-aws": "5.40.5-beta.0",
34
- "@webiny/project-utils": "5.40.5-beta.0",
32
+ "@webiny/cli": "5.41.0-dbt.0",
33
+ "@webiny/handler-aws": "5.41.0-dbt.0",
34
+ "@webiny/project-utils": "5.41.0-dbt.0",
35
35
  "jest": "29.7.0",
36
36
  "jest-mock-console": "1.3.0",
37
37
  "rimraf": "5.0.5",
38
38
  "ttypescript": "1.5.15",
39
- "typescript": "4.7.4"
39
+ "typescript": "4.9.5"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public",
@@ -46,5 +46,5 @@
46
46
  "build": "yarn webiny run build",
47
47
  "watch": "yarn webiny run watch"
48
48
  },
49
- "gitHead": "f67778732392ed88f28da869ddacbf08a98cdec6"
49
+ "gitHead": "bbaec4dd1685579548c08bbde386aee5d96b80f8"
50
50
  }
package/types.d.ts CHANGED
@@ -10,16 +10,16 @@ export interface HandlerGraphQLOptions {
10
10
  path?: RouteMethodPath;
11
11
  debug?: boolean | string;
12
12
  }
13
- export declare type GraphQLFieldResolver<TSource = any, TArgs = any, TContext = Context> = BaseGraphQLFieldResolver<TSource, TContext, TArgs>;
14
- export declare type Types = string | string[] | (() => string | string[] | Promise<string | string[]>);
13
+ export type GraphQLFieldResolver<TSource = any, TArgs = any, TContext = Context> = BaseGraphQLFieldResolver<TSource, TContext, TArgs>;
14
+ export type Types = string | string[] | (() => string | string[] | Promise<string | string[]>);
15
15
  export interface GraphQLSchemaPluginTypeArgs {
16
16
  context?: any;
17
17
  args?: any;
18
18
  source?: any;
19
19
  }
20
- export declare type Resolvers<TContext> = GraphQLScalarType | GraphQLFieldResolver<any, Record<string, any>, TContext> | {
20
+ export type Resolvers<TContext> = GraphQLScalarType | GraphQLFieldResolver<any, Record<string, any>, TContext> | {
21
21
  [property: string]: Resolvers<TContext>;
22
- };
22
+ } | undefined;
23
23
  export interface GraphQLSchemaDefinition<TContext> {
24
24
  typeDefs: Types;
25
25
  resolvers?: Resolvers<TContext>;
package/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import {\n GraphQLScalarType,\n GraphQLFieldResolver as BaseGraphQLFieldResolver,\n GraphQLSchema\n} from \"graphql\";\nimport { Plugin } from \"@webiny/plugins/types\";\nimport { Context } from \"@webiny/api/types\";\nimport { RouteMethodPath } from \"@webiny/handler/types\";\n\nexport interface GraphQLScalarPlugin extends Plugin {\n type: \"graphql-scalar\";\n scalar: GraphQLScalarType;\n}\n\nexport interface HandlerGraphQLOptions {\n path?: RouteMethodPath;\n debug?: boolean | string;\n}\n\nexport type GraphQLFieldResolver<\n TSource = any,\n TArgs = any,\n TContext = Context\n> = BaseGraphQLFieldResolver<TSource, TContext, TArgs>;\n\n// `GraphQLSchemaPlugin` types.\nexport type Types = string | string[] | (() => string | string[] | Promise<string | string[]>);\n\nexport interface GraphQLSchemaPluginTypeArgs {\n context?: any;\n args?: any;\n source?: any;\n}\n\nexport type Resolvers<TContext> =\n | GraphQLScalarType\n | GraphQLFieldResolver<any, Record<string, any>, TContext>\n | { [property: string]: Resolvers<TContext> };\n\nexport interface GraphQLSchemaDefinition<TContext> {\n typeDefs: Types;\n resolvers?: Resolvers<TContext>;\n}\n\nexport interface GraphQLSchemaPlugin<TContext extends Context = Context> extends Plugin {\n type: \"graphql-schema\";\n schema: GraphQLSchemaDefinition<TContext>;\n}\n\nexport interface GraphQLRequestBody {\n query: string;\n variables: Record<string, any>;\n operationName: string;\n}\n\nexport interface GraphQLBeforeQueryPlugin<TContext extends Context = Context> extends Plugin {\n type: \"graphql-before-query\";\n apply(params: { body: GraphQLRequestBody; schema: GraphQLSchema; context: TContext }): void;\n}\n\nexport interface GraphQLAfterQueryPlugin<TContext extends Context = Context> extends Plugin {\n type: \"graphql-after-query\";\n apply(params: {\n result: any;\n body: GraphQLRequestBody;\n schema: GraphQLSchema;\n context: TContext;\n }): void;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import {\n GraphQLScalarType,\n GraphQLFieldResolver as BaseGraphQLFieldResolver,\n GraphQLSchema\n} from \"graphql\";\nimport { Plugin } from \"@webiny/plugins/types\";\nimport { Context } from \"@webiny/api/types\";\nimport { RouteMethodPath } from \"@webiny/handler/types\";\n\nexport interface GraphQLScalarPlugin extends Plugin {\n type: \"graphql-scalar\";\n scalar: GraphQLScalarType;\n}\n\nexport interface HandlerGraphQLOptions {\n path?: RouteMethodPath;\n debug?: boolean | string;\n}\n\nexport type GraphQLFieldResolver<\n TSource = any,\n TArgs = any,\n TContext = Context\n> = BaseGraphQLFieldResolver<TSource, TContext, TArgs>;\n\n// `GraphQLSchemaPlugin` types.\nexport type Types = string | string[] | (() => string | string[] | Promise<string | string[]>);\n\nexport interface GraphQLSchemaPluginTypeArgs {\n context?: any;\n args?: any;\n source?: any;\n}\n\nexport type Resolvers<TContext> =\n | GraphQLScalarType\n | GraphQLFieldResolver<any, Record<string, any>, TContext>\n | { [property: string]: Resolvers<TContext> }\n | undefined;\n\nexport interface GraphQLSchemaDefinition<TContext> {\n typeDefs: Types;\n resolvers?: Resolvers<TContext>;\n}\n\nexport interface GraphQLSchemaPlugin<TContext extends Context = Context> extends Plugin {\n type: \"graphql-schema\";\n schema: GraphQLSchemaDefinition<TContext>;\n}\n\nexport interface GraphQLRequestBody {\n query: string;\n variables: Record<string, any>;\n operationName: string;\n}\n\nexport interface GraphQLBeforeQueryPlugin<TContext extends Context = Context> extends Plugin {\n type: \"graphql-before-query\";\n apply(params: { body: GraphQLRequestBody; schema: GraphQLSchema; context: TContext }): void;\n}\n\nexport interface GraphQLAfterQueryPlugin<TContext extends Context = Context> extends Plugin {\n type: \"graphql-after-query\";\n apply(params: {\n result: any;\n body: GraphQLRequestBody;\n schema: GraphQLSchema;\n context: TContext;\n }): void;\n}\n"],"mappings":"","ignoreList":[]}