@graphql-mesh/types 0.95.0 → 0.95.1-alpha-20230731151755-1fb00a173

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.
@@ -480,6 +480,9 @@ exports.jsonSchema = {
480
480
  "$ref": "#/definitions/SoapHandler",
481
481
  "description": "Handler for SOAP"
482
482
  },
483
+ "supergraph": {
484
+ "$ref": "#/definitions/SupergraphHandler"
485
+ },
483
486
  "thrift": {
484
487
  "$ref": "#/definitions/ThriftHandler",
485
488
  "description": "Handler for OData"
@@ -3234,6 +3237,35 @@ exports.jsonSchema = {
3234
3237
  "source"
3235
3238
  ]
3236
3239
  },
3240
+ "SupergraphHandler": {
3241
+ "additionalProperties": false,
3242
+ "type": "object",
3243
+ "title": "SupergraphHandler",
3244
+ "properties": {
3245
+ "source": {
3246
+ "type": "string",
3247
+ "description": "A file path to your Supergraph Schema\nIf you provide a path to a code file(js or ts),\nother options will be ignored and the schema exported from the file will be used directly."
3248
+ },
3249
+ "schemaHeaders": {
3250
+ "anyOf": [
3251
+ {
3252
+ "type": "object",
3253
+ "additionalProperties": true
3254
+ },
3255
+ {
3256
+ "type": "string"
3257
+ },
3258
+ {
3259
+ "type": "array",
3260
+ "additionalItems": true
3261
+ }
3262
+ ]
3263
+ }
3264
+ },
3265
+ "required": [
3266
+ "source"
3267
+ ]
3268
+ },
3237
3269
  "ThriftHandler": {
3238
3270
  "additionalProperties": false,
3239
3271
  "type": "object",
@@ -465,6 +465,9 @@
465
465
  "$ref": "#/definitions/SoapHandler",
466
466
  "description": "Handler for SOAP"
467
467
  },
468
+ "supergraph": {
469
+ "$ref": "#/definitions/SupergraphHandler"
470
+ },
468
471
  "thrift": {
469
472
  "$ref": "#/definitions/ThriftHandler",
470
473
  "description": "Handler for OData"
@@ -3080,6 +3083,33 @@
3080
3083
  },
3081
3084
  "required": ["source"]
3082
3085
  },
3086
+ "SupergraphHandler": {
3087
+ "additionalProperties": false,
3088
+ "type": "object",
3089
+ "title": "SupergraphHandler",
3090
+ "properties": {
3091
+ "source": {
3092
+ "type": "string",
3093
+ "description": "A file path to your Supergraph Schema\nIf you provide a path to a code file(js or ts),\nother options will be ignored and the schema exported from the file will be used directly."
3094
+ },
3095
+ "schemaHeaders": {
3096
+ "anyOf": [
3097
+ {
3098
+ "type": "object",
3099
+ "additionalProperties": true
3100
+ },
3101
+ {
3102
+ "type": "string"
3103
+ },
3104
+ {
3105
+ "type": "array",
3106
+ "additionalItems": true
3107
+ }
3108
+ ]
3109
+ }
3110
+ },
3111
+ "required": ["source"]
3112
+ },
3083
3113
  "ThriftHandler": {
3084
3114
  "additionalProperties": false,
3085
3115
  "type": "object",
@@ -477,6 +477,9 @@ export const jsonSchema = {
477
477
  "$ref": "#/definitions/SoapHandler",
478
478
  "description": "Handler for SOAP"
479
479
  },
480
+ "supergraph": {
481
+ "$ref": "#/definitions/SupergraphHandler"
482
+ },
480
483
  "thrift": {
481
484
  "$ref": "#/definitions/ThriftHandler",
482
485
  "description": "Handler for OData"
@@ -3231,6 +3234,35 @@ export const jsonSchema = {
3231
3234
  "source"
3232
3235
  ]
3233
3236
  },
3237
+ "SupergraphHandler": {
3238
+ "additionalProperties": false,
3239
+ "type": "object",
3240
+ "title": "SupergraphHandler",
3241
+ "properties": {
3242
+ "source": {
3243
+ "type": "string",
3244
+ "description": "A file path to your Supergraph Schema\nIf you provide a path to a code file(js or ts),\nother options will be ignored and the schema exported from the file will be used directly."
3245
+ },
3246
+ "schemaHeaders": {
3247
+ "anyOf": [
3248
+ {
3249
+ "type": "object",
3250
+ "additionalProperties": true
3251
+ },
3252
+ {
3253
+ "type": "string"
3254
+ },
3255
+ {
3256
+ "type": "array",
3257
+ "additionalItems": true
3258
+ }
3259
+ ]
3260
+ }
3261
+ },
3262
+ "required": [
3263
+ "source"
3264
+ ]
3265
+ },
3234
3266
  "ThriftHandler": {
3235
3267
  "additionalProperties": false,
3236
3268
  "type": "object",
@@ -465,6 +465,9 @@
465
465
  "$ref": "#/definitions/SoapHandler",
466
466
  "description": "Handler for SOAP"
467
467
  },
468
+ "supergraph": {
469
+ "$ref": "#/definitions/SupergraphHandler"
470
+ },
468
471
  "thrift": {
469
472
  "$ref": "#/definitions/ThriftHandler",
470
473
  "description": "Handler for OData"
@@ -3080,6 +3083,33 @@
3080
3083
  },
3081
3084
  "required": ["source"]
3082
3085
  },
3086
+ "SupergraphHandler": {
3087
+ "additionalProperties": false,
3088
+ "type": "object",
3089
+ "title": "SupergraphHandler",
3090
+ "properties": {
3091
+ "source": {
3092
+ "type": "string",
3093
+ "description": "A file path to your Supergraph Schema\nIf you provide a path to a code file(js or ts),\nother options will be ignored and the schema exported from the file will be used directly."
3094
+ },
3095
+ "schemaHeaders": {
3096
+ "anyOf": [
3097
+ {
3098
+ "type": "object",
3099
+ "additionalProperties": true
3100
+ },
3101
+ {
3102
+ "type": "string"
3103
+ },
3104
+ {
3105
+ "type": "array",
3106
+ "additionalItems": true
3107
+ }
3108
+ ]
3109
+ }
3110
+ },
3111
+ "required": ["source"]
3112
+ },
3083
3113
  "ThriftHandler": {
3084
3114
  "additionalProperties": false,
3085
3115
  "type": "object",
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@graphql-mesh/types",
3
- "version": "0.95.0",
3
+ "version": "0.95.1-alpha-20230731151755-1fb00a173",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@graphql-mesh/store": "^0.95.0",
6
+ "@graphql-mesh/store": "0.95.1-alpha-20230731151755-1fb00a173",
7
7
  "@graphql-tools/utils": "^9.2.1 || ^10.0.0",
8
8
  "graphql": "*",
9
9
  "tslib": "^2.4.0"
@@ -172,6 +172,7 @@ export interface Handler {
172
172
  postgraphile?: PostGraphileHandler;
173
173
  raml?: RAMLHandler;
174
174
  soap?: SoapHandler;
175
+ supergraph?: SupergraphHandler;
175
176
  thrift?: ThriftHandler;
176
177
  tuql?: TuqlHandler;
177
178
  [k: string]: any;
@@ -985,6 +986,15 @@ export interface SoapHandler {
985
986
  [k: string]: any;
986
987
  };
987
988
  }
989
+ export interface SupergraphHandler {
990
+ /**
991
+ * A file path to your Supergraph Schema
992
+ * If you provide a path to a code file(js or ts),
993
+ * other options will be ignored and the schema exported from the file will be used directly.
994
+ */
995
+ source: string;
996
+ schemaHeaders?: any;
997
+ }
988
998
  /**
989
999
  * Handler for OData
990
1000
  */
@@ -172,6 +172,7 @@ export interface Handler {
172
172
  postgraphile?: PostGraphileHandler;
173
173
  raml?: RAMLHandler;
174
174
  soap?: SoapHandler;
175
+ supergraph?: SupergraphHandler;
175
176
  thrift?: ThriftHandler;
176
177
  tuql?: TuqlHandler;
177
178
  [k: string]: any;
@@ -985,6 +986,15 @@ export interface SoapHandler {
985
986
  [k: string]: any;
986
987
  };
987
988
  }
989
+ export interface SupergraphHandler {
990
+ /**
991
+ * A file path to your Supergraph Schema
992
+ * If you provide a path to a code file(js or ts),
993
+ * other options will be ignored and the schema exported from the file will be used directly.
994
+ */
995
+ source: string;
996
+ schemaHeaders?: any;
997
+ }
988
998
  /**
989
999
  * Handler for OData
990
1000
  */
@@ -2,7 +2,7 @@ import { DocumentNode, GraphQLResolveInfo, GraphQLSchema, SelectionSetNode } fro
2
2
  import { PromiseOrValue } from 'graphql/jsutils/PromiseOrValue';
3
3
  import type { Plugin } from '@envelop/core';
4
4
  import { MeshStore } from '@graphql-mesh/store';
5
- import { BatchDelegateOptions } from '@graphql-tools/batch-delegate';
5
+ import type { BatchDelegateOptions } from '@graphql-tools/batch-delegate';
6
6
  import { CreateProxyingResolverFn, IDelegateToSchemaOptions, MergedTypeConfig, SubschemaConfig, Transform } from '@graphql-tools/delegate';
7
7
  import { Executor, IResolvers } from '@graphql-tools/utils';
8
8
  import { TypedDocumentNode } from '@graphql-typed-document-node/core';
@@ -2,7 +2,7 @@ import { DocumentNode, GraphQLResolveInfo, GraphQLSchema, SelectionSetNode } fro
2
2
  import { PromiseOrValue } from 'graphql/jsutils/PromiseOrValue';
3
3
  import type { Plugin } from '@envelop/core';
4
4
  import { MeshStore } from '@graphql-mesh/store';
5
- import { BatchDelegateOptions } from '@graphql-tools/batch-delegate';
5
+ import type { BatchDelegateOptions } from '@graphql-tools/batch-delegate';
6
6
  import { CreateProxyingResolverFn, IDelegateToSchemaOptions, MergedTypeConfig, SubschemaConfig, Transform } from '@graphql-tools/delegate';
7
7
  import { Executor, IResolvers } from '@graphql-tools/utils';
8
8
  import { TypedDocumentNode } from '@graphql-typed-document-node/core';