@graphql-tools/merge 8.3.2 → 8.3.3-alpha-20220809192840-c5b336bd
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/cjs/typedefs-mergers/directives.js +1 -1
- package/cjs/typedefs-mergers/enum.js +1 -1
- package/cjs/typedefs-mergers/input-type.js +1 -1
- package/cjs/typedefs-mergers/interface.js +1 -1
- package/cjs/typedefs-mergers/merge-nodes.js +1 -1
- package/cjs/typedefs-mergers/merge-typedefs.js +1 -1
- package/cjs/typedefs-mergers/scalar.js +1 -1
- package/cjs/typedefs-mergers/schema-def.js +1 -1
- package/cjs/typedefs-mergers/type.js +1 -1
- package/cjs/typedefs-mergers/union.js +1 -1
- package/cjs/typedefs-mergers/utils.js +1 -1
- package/esm/typedefs-mergers/directives.js +1 -1
- package/esm/typedefs-mergers/enum.js +1 -1
- package/esm/typedefs-mergers/input-type.js +1 -1
- package/esm/typedefs-mergers/interface.js +1 -1
- package/esm/typedefs-mergers/merge-nodes.js +1 -1
- package/esm/typedefs-mergers/merge-typedefs.js +1 -1
- package/esm/typedefs-mergers/scalar.js +1 -1
- package/esm/typedefs-mergers/schema-def.js +1 -1
- package/esm/typedefs-mergers/type.js +1 -1
- package/esm/typedefs-mergers/union.js +1 -1
- package/esm/typedefs-mergers/utils.js +1 -1
- package/package.json +3 -5
- package/typings/extensions.d.cts +1 -1
- package/typings/extensions.d.ts +1 -1
- package/typings/typedefs-mergers/arguments.d.cts +1 -1
- package/typings/typedefs-mergers/arguments.d.ts +1 -1
- package/typings/typedefs-mergers/directives.d.cts +1 -1
- package/typings/typedefs-mergers/directives.d.ts +1 -1
- package/typings/typedefs-mergers/enum-values.d.cts +1 -1
- package/typings/typedefs-mergers/enum-values.d.ts +1 -1
- package/typings/typedefs-mergers/enum.d.cts +1 -1
- package/typings/typedefs-mergers/enum.d.ts +1 -1
- package/typings/typedefs-mergers/fields.d.cts +1 -1
- package/typings/typedefs-mergers/fields.d.ts +1 -1
- package/typings/typedefs-mergers/input-type.d.cts +1 -1
- package/typings/typedefs-mergers/input-type.d.ts +1 -1
- package/typings/typedefs-mergers/interface.d.cts +1 -1
- package/typings/typedefs-mergers/interface.d.ts +1 -1
- package/typings/typedefs-mergers/merge-named-type-array.d.cts +1 -1
- package/typings/typedefs-mergers/merge-named-type-array.d.ts +1 -1
- package/typings/typedefs-mergers/merge-nodes.d.cts +1 -1
- package/typings/typedefs-mergers/merge-nodes.d.ts +1 -1
- package/typings/typedefs-mergers/merge-typedefs.d.cts +1 -1
- package/typings/typedefs-mergers/merge-typedefs.d.ts +1 -1
- package/typings/typedefs-mergers/scalar.d.cts +1 -1
- package/typings/typedefs-mergers/scalar.d.ts +1 -1
- package/typings/typedefs-mergers/schema-def.d.cts +1 -1
- package/typings/typedefs-mergers/schema-def.d.ts +1 -1
- package/typings/typedefs-mergers/type.d.cts +1 -1
- package/typings/typedefs-mergers/type.d.ts +1 -1
- package/typings/typedefs-mergers/union.d.cts +1 -1
- package/typings/typedefs-mergers/union.d.ts +1 -1
- package/typings/typedefs-mergers/utils.d.cts +1 -1
- package/typings/typedefs-mergers/utils.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mergeDirective = exports.mergeDirectives = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const utils_1 = require("@graphql-tools/utils");
|
|
6
6
|
function directiveAlreadyExists(directivesArr, otherDirective) {
|
|
7
7
|
return !!directivesArr.find(directive => directive.name.value === otherDirective.name.value);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mergeEnum = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const directives_js_1 = require("./directives.js");
|
|
6
6
|
const enum_values_js_1 = require("./enum-values.js");
|
|
7
7
|
function mergeEnum(e1, e2, config) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mergeInputType = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const fields_js_1 = require("./fields.js");
|
|
6
6
|
const directives_js_1 = require("./directives.js");
|
|
7
7
|
function mergeInputType(node, existingNode, config) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mergeInterface = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const fields_js_1 = require("./fields.js");
|
|
6
6
|
const directives_js_1 = require("./directives.js");
|
|
7
7
|
const index_js_1 = require("./index.js");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mergeGraphQLNodes = exports.isNamedDefinitionNode = exports.schemaDefSymbol = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const type_js_1 = require("./type.js");
|
|
6
6
|
const enum_js_1 = require("./enum.js");
|
|
7
7
|
const scalar_js_1 = require("./scalar.js");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mergeGraphQLTypes = exports.mergeTypeDefs = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const utils_js_1 = require("./utils.js");
|
|
6
6
|
const merge_nodes_js_1 = require("./merge-nodes.js");
|
|
7
7
|
const utils_1 = require("@graphql-tools/utils");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mergeScalar = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const directives_js_1 = require("./directives.js");
|
|
6
6
|
function mergeScalar(node, existingNode, config) {
|
|
7
7
|
if (existingNode) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mergeSchemaDefs = exports.DEFAULT_OPERATION_TYPE_NAME_MAP = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const directives_js_1 = require("./directives.js");
|
|
6
6
|
exports.DEFAULT_OPERATION_TYPE_NAME_MAP = {
|
|
7
7
|
query: 'Query',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mergeType = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const fields_js_1 = require("./fields.js");
|
|
6
6
|
const directives_js_1 = require("./directives.js");
|
|
7
7
|
const merge_named_type_array_js_1 = require("./merge-named-type-array.js");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.mergeUnion = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
const directives_js_1 = require("./directives.js");
|
|
6
6
|
const merge_named_type_array_js_1 = require("./merge-named-type-array.js");
|
|
7
7
|
function mergeUnion(first, second, config) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultStringComparator = exports.CompareVal = exports.printTypeNode = exports.isNonNullTypeNode = exports.isListTypeNode = exports.isWrappingTypeNode = exports.extractType = exports.isSourceTypes = exports.isStringTypes = void 0;
|
|
4
|
-
const graphql_1 = require("graphql");
|
|
4
|
+
const graphql_1 = require("@graphql-tools/graphql");
|
|
5
5
|
function isStringTypes(types) {
|
|
6
6
|
return typeof types === 'string';
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print } from 'graphql';
|
|
1
|
+
import { print, } from '@graphql-tools/graphql';
|
|
2
2
|
import { isSome } from '@graphql-tools/utils';
|
|
3
3
|
function directiveAlreadyExists(directivesArr, otherDirective) {
|
|
4
4
|
return !!directivesArr.find(directive => directive.name.value === otherDirective.name.value);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { parse, Kind, isSchema, isDefinitionNode, } from 'graphql';
|
|
1
|
+
import { parse, Kind, isSchema, isDefinitionNode, } from '@graphql-tools/graphql';
|
|
2
2
|
import { defaultStringComparator, isSourceTypes, isStringTypes } from './utils.js';
|
|
3
3
|
import { mergeGraphQLNodes, schemaDefSymbol } from './merge-nodes.js';
|
|
4
4
|
import { getDocumentNodeFromSchema, isDocumentNode, resetComments, printWithComments, } from '@graphql-tools/utils';
|
package/package.json
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/merge",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.3-alpha-20220809192840-c5b336bd",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
|
-
"peerDependencies": {
|
|
7
|
-
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
8
|
-
},
|
|
9
6
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/utils": "8.9.
|
|
7
|
+
"@graphql-tools/utils": "8.9.2-alpha-20220809192840-c5b336bd",
|
|
8
|
+
"@graphql-tools/graphql": "0.1.0-alpha-20220809192840-c5b336bd",
|
|
11
9
|
"tslib": "^2.4.0"
|
|
12
10
|
},
|
|
13
11
|
"repository": {
|
package/typings/extensions.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLSchema } from 'graphql';
|
|
1
|
+
import { GraphQLSchema } from '@graphql-tools/graphql';
|
|
2
2
|
import { SchemaExtensions } from '@graphql-tools/utils';
|
|
3
3
|
export declare function mergeExtensions(extensions: SchemaExtensions[]): SchemaExtensions;
|
|
4
4
|
export declare function applyExtensions(schema: GraphQLSchema, extensions: SchemaExtensions): GraphQLSchema;
|
package/typings/extensions.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQLSchema } from 'graphql';
|
|
1
|
+
import { GraphQLSchema } from '@graphql-tools/graphql';
|
|
2
2
|
import { SchemaExtensions } from '@graphql-tools/utils';
|
|
3
3
|
export declare function mergeExtensions(extensions: SchemaExtensions[]): SchemaExtensions;
|
|
4
4
|
export declare function applyExtensions(schema: GraphQLSchema, extensions: SchemaExtensions): GraphQLSchema;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { InputValueDefinitionNode } from 'graphql';
|
|
1
|
+
import { InputValueDefinitionNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from './index.cjs';
|
|
3
3
|
export declare function mergeArguments(args1: InputValueDefinitionNode[], args2: InputValueDefinitionNode[], config?: Config): InputValueDefinitionNode[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { InputValueDefinitionNode } from 'graphql';
|
|
1
|
+
import { InputValueDefinitionNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from './index.js';
|
|
3
3
|
export declare function mergeArguments(args1: InputValueDefinitionNode[], args2: InputValueDefinitionNode[], config?: Config): InputValueDefinitionNode[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DirectiveNode, DirectiveDefinitionNode } from 'graphql';
|
|
1
|
+
import { DirectiveNode, DirectiveDefinitionNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from './merge-typedefs.cjs';
|
|
3
3
|
export declare function mergeDirectives(d1?: ReadonlyArray<DirectiveNode>, d2?: ReadonlyArray<DirectiveNode>, config?: Config): DirectiveNode[];
|
|
4
4
|
export declare function mergeDirective(node: DirectiveDefinitionNode, existingNode?: DirectiveDefinitionNode): DirectiveDefinitionNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DirectiveNode, DirectiveDefinitionNode } from 'graphql';
|
|
1
|
+
import { DirectiveNode, DirectiveDefinitionNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from './merge-typedefs.js';
|
|
3
3
|
export declare function mergeDirectives(d1?: ReadonlyArray<DirectiveNode>, d2?: ReadonlyArray<DirectiveNode>, config?: Config): DirectiveNode[];
|
|
4
4
|
export declare function mergeDirective(node: DirectiveDefinitionNode, existingNode?: DirectiveDefinitionNode): DirectiveDefinitionNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EnumValueDefinitionNode } from 'graphql';
|
|
1
|
+
import { EnumValueDefinitionNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from './merge-typedefs.cjs';
|
|
3
3
|
export declare function mergeEnumValues(first: ReadonlyArray<EnumValueDefinitionNode> | undefined, second: ReadonlyArray<EnumValueDefinitionNode> | undefined, config?: Config): EnumValueDefinitionNode[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EnumValueDefinitionNode } from 'graphql';
|
|
1
|
+
import { EnumValueDefinitionNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from './merge-typedefs.js';
|
|
3
3
|
export declare function mergeEnumValues(first: ReadonlyArray<EnumValueDefinitionNode> | undefined, second: ReadonlyArray<EnumValueDefinitionNode> | undefined, config?: Config): EnumValueDefinitionNode[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EnumTypeDefinitionNode, EnumTypeExtensionNode } from 'graphql';
|
|
1
|
+
import { EnumTypeDefinitionNode, EnumTypeExtensionNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from './merge-typedefs.cjs';
|
|
3
3
|
export declare function mergeEnum(e1: EnumTypeDefinitionNode | EnumTypeExtensionNode, e2: EnumTypeDefinitionNode | EnumTypeExtensionNode, config?: Config): EnumTypeDefinitionNode | EnumTypeExtensionNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EnumTypeDefinitionNode, EnumTypeExtensionNode } from 'graphql';
|
|
1
|
+
import { EnumTypeDefinitionNode, EnumTypeExtensionNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from './merge-typedefs.js';
|
|
3
3
|
export declare function mergeEnum(e1: EnumTypeDefinitionNode | EnumTypeExtensionNode, e2: EnumTypeDefinitionNode | EnumTypeExtensionNode, config?: Config): EnumTypeDefinitionNode | EnumTypeExtensionNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Config } from './merge-typedefs.cjs';
|
|
2
|
-
import { FieldDefinitionNode, InputValueDefinitionNode, NameNode } from 'graphql';
|
|
2
|
+
import { FieldDefinitionNode, InputValueDefinitionNode, NameNode } from '@graphql-tools/graphql';
|
|
3
3
|
export declare function mergeFields<T extends FieldDefinitionNode | InputValueDefinitionNode>(type: {
|
|
4
4
|
name: NameNode;
|
|
5
5
|
}, f1: ReadonlyArray<T> | undefined, f2: ReadonlyArray<T> | undefined, config?: Config): T[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Config } from './merge-typedefs.js';
|
|
2
|
-
import { FieldDefinitionNode, InputValueDefinitionNode, NameNode } from 'graphql';
|
|
2
|
+
import { FieldDefinitionNode, InputValueDefinitionNode, NameNode } from '@graphql-tools/graphql';
|
|
3
3
|
export declare function mergeFields<T extends FieldDefinitionNode | InputValueDefinitionNode>(type: {
|
|
4
4
|
name: NameNode;
|
|
5
5
|
}, f1: ReadonlyArray<T> | undefined, f2: ReadonlyArray<T> | undefined, config?: Config): T[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Config } from './merge-typedefs.cjs';
|
|
2
|
-
import { InputObjectTypeDefinitionNode, InputObjectTypeExtensionNode } from 'graphql';
|
|
2
|
+
import { InputObjectTypeDefinitionNode, InputObjectTypeExtensionNode } from '@graphql-tools/graphql';
|
|
3
3
|
export declare function mergeInputType(node: InputObjectTypeDefinitionNode | InputObjectTypeExtensionNode, existingNode: InputObjectTypeDefinitionNode | InputObjectTypeExtensionNode, config?: Config): InputObjectTypeDefinitionNode | InputObjectTypeExtensionNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Config } from './merge-typedefs.js';
|
|
2
|
-
import { InputObjectTypeDefinitionNode, InputObjectTypeExtensionNode } from 'graphql';
|
|
2
|
+
import { InputObjectTypeDefinitionNode, InputObjectTypeExtensionNode } from '@graphql-tools/graphql';
|
|
3
3
|
export declare function mergeInputType(node: InputObjectTypeDefinitionNode | InputObjectTypeExtensionNode, existingNode: InputObjectTypeDefinitionNode | InputObjectTypeExtensionNode, config?: Config): InputObjectTypeDefinitionNode | InputObjectTypeExtensionNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Config } from './merge-typedefs.cjs';
|
|
2
|
-
import { InterfaceTypeDefinitionNode, InterfaceTypeExtensionNode } from 'graphql';
|
|
2
|
+
import { InterfaceTypeDefinitionNode, InterfaceTypeExtensionNode } from '@graphql-tools/graphql';
|
|
3
3
|
export declare function mergeInterface(node: InterfaceTypeDefinitionNode | InterfaceTypeExtensionNode, existingNode: InterfaceTypeDefinitionNode | InterfaceTypeExtensionNode, config?: Config): InterfaceTypeDefinitionNode | InterfaceTypeExtensionNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Config } from './merge-typedefs.js';
|
|
2
|
-
import { InterfaceTypeDefinitionNode, InterfaceTypeExtensionNode } from 'graphql';
|
|
2
|
+
import { InterfaceTypeDefinitionNode, InterfaceTypeExtensionNode } from '@graphql-tools/graphql';
|
|
3
3
|
export declare function mergeInterface(node: InterfaceTypeDefinitionNode | InterfaceTypeExtensionNode, existingNode: InterfaceTypeDefinitionNode | InterfaceTypeExtensionNode, config?: Config): InterfaceTypeDefinitionNode | InterfaceTypeExtensionNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { NamedTypeNode } from 'graphql';
|
|
1
|
+
import { NamedTypeNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from '../index.cjs';
|
|
3
3
|
export declare function mergeNamedTypeArray(first?: ReadonlyArray<NamedTypeNode>, second?: ReadonlyArray<NamedTypeNode>, config?: Config): NamedTypeNode[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { NamedTypeNode } from 'graphql';
|
|
1
|
+
import { NamedTypeNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from '../index.js';
|
|
3
3
|
export declare function mergeNamedTypeArray(first?: ReadonlyArray<NamedTypeNode>, second?: ReadonlyArray<NamedTypeNode>, config?: Config): NamedTypeNode[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Config } from './merge-typedefs.cjs';
|
|
2
|
-
import { DefinitionNode, SchemaDefinitionNode, SchemaExtensionNode } from 'graphql';
|
|
2
|
+
import { DefinitionNode, SchemaDefinitionNode, SchemaExtensionNode } from '@graphql-tools/graphql';
|
|
3
3
|
import { NamedDefinitionNode } from '@graphql-tools/utils';
|
|
4
4
|
export declare const schemaDefSymbol = "SCHEMA_DEF_SYMBOL";
|
|
5
5
|
export declare type MergedResultMap = Record<string, NamedDefinitionNode> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Config } from './merge-typedefs.js';
|
|
2
|
-
import { DefinitionNode, SchemaDefinitionNode, SchemaExtensionNode } from 'graphql';
|
|
2
|
+
import { DefinitionNode, SchemaDefinitionNode, SchemaExtensionNode } from '@graphql-tools/graphql';
|
|
3
3
|
import { NamedDefinitionNode } from '@graphql-tools/utils';
|
|
4
4
|
export declare const schemaDefSymbol = "SCHEMA_DEF_SYMBOL";
|
|
5
5
|
export declare type MergedResultMap = Record<string, NamedDefinitionNode> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefinitionNode, DocumentNode, ParseOptions } from 'graphql';
|
|
1
|
+
import { DefinitionNode, DocumentNode, ParseOptions } from '@graphql-tools/graphql';
|
|
2
2
|
import { CompareFn } from './utils.cjs';
|
|
3
3
|
import { GetDocumentNodeFromSchemaOptions, TypeSource } from '@graphql-tools/utils';
|
|
4
4
|
declare type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefinitionNode, DocumentNode, ParseOptions } from 'graphql';
|
|
1
|
+
import { DefinitionNode, DocumentNode, ParseOptions } from '@graphql-tools/graphql';
|
|
2
2
|
import { CompareFn } from './utils.js';
|
|
3
3
|
import { GetDocumentNodeFromSchemaOptions, TypeSource } from '@graphql-tools/utils';
|
|
4
4
|
declare type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ScalarTypeDefinitionNode, ScalarTypeExtensionNode } from 'graphql';
|
|
1
|
+
import { ScalarTypeDefinitionNode, ScalarTypeExtensionNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from './merge-typedefs.cjs';
|
|
3
3
|
export declare function mergeScalar(node: ScalarTypeDefinitionNode | ScalarTypeExtensionNode, existingNode: ScalarTypeDefinitionNode | ScalarTypeExtensionNode, config?: Config): ScalarTypeDefinitionNode | ScalarTypeExtensionNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ScalarTypeDefinitionNode, ScalarTypeExtensionNode } from 'graphql';
|
|
1
|
+
import { ScalarTypeDefinitionNode, ScalarTypeExtensionNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from './merge-typedefs.js';
|
|
3
3
|
export declare function mergeScalar(node: ScalarTypeDefinitionNode | ScalarTypeExtensionNode, existingNode: ScalarTypeDefinitionNode | ScalarTypeExtensionNode, config?: Config): ScalarTypeDefinitionNode | ScalarTypeExtensionNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SchemaDefinitionNode, SchemaExtensionNode } from 'graphql';
|
|
1
|
+
import { SchemaDefinitionNode, SchemaExtensionNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from './merge-typedefs.cjs';
|
|
3
3
|
export declare const DEFAULT_OPERATION_TYPE_NAME_MAP: {
|
|
4
4
|
readonly query: "Query";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SchemaDefinitionNode, SchemaExtensionNode } from 'graphql';
|
|
1
|
+
import { SchemaDefinitionNode, SchemaExtensionNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from './merge-typedefs.js';
|
|
3
3
|
export declare const DEFAULT_OPERATION_TYPE_NAME_MAP: {
|
|
4
4
|
readonly query: "Query";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Config } from './merge-typedefs.cjs';
|
|
2
|
-
import { ObjectTypeDefinitionNode, ObjectTypeExtensionNode } from 'graphql';
|
|
2
|
+
import { ObjectTypeDefinitionNode, ObjectTypeExtensionNode } from '@graphql-tools/graphql';
|
|
3
3
|
export declare function mergeType(node: ObjectTypeDefinitionNode | ObjectTypeExtensionNode, existingNode: ObjectTypeDefinitionNode | ObjectTypeExtensionNode, config?: Config): ObjectTypeDefinitionNode | ObjectTypeExtensionNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Config } from './merge-typedefs.js';
|
|
2
|
-
import { ObjectTypeDefinitionNode, ObjectTypeExtensionNode } from 'graphql';
|
|
2
|
+
import { ObjectTypeDefinitionNode, ObjectTypeExtensionNode } from '@graphql-tools/graphql';
|
|
3
3
|
export declare function mergeType(node: ObjectTypeDefinitionNode | ObjectTypeExtensionNode, existingNode: ObjectTypeDefinitionNode | ObjectTypeExtensionNode, config?: Config): ObjectTypeDefinitionNode | ObjectTypeExtensionNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { UnionTypeDefinitionNode, UnionTypeExtensionNode } from 'graphql';
|
|
1
|
+
import { UnionTypeDefinitionNode, UnionTypeExtensionNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from './merge-typedefs.cjs';
|
|
3
3
|
export declare function mergeUnion(first: UnionTypeDefinitionNode | UnionTypeExtensionNode, second: UnionTypeDefinitionNode | UnionTypeExtensionNode, config?: Config): UnionTypeDefinitionNode | UnionTypeExtensionNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { UnionTypeDefinitionNode, UnionTypeExtensionNode } from 'graphql';
|
|
1
|
+
import { UnionTypeDefinitionNode, UnionTypeExtensionNode } from '@graphql-tools/graphql';
|
|
2
2
|
import { Config } from './merge-typedefs.js';
|
|
3
3
|
export declare function mergeUnion(first: UnionTypeDefinitionNode | UnionTypeExtensionNode, second: UnionTypeDefinitionNode | UnionTypeExtensionNode, config?: Config): UnionTypeDefinitionNode | UnionTypeExtensionNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TypeNode, NamedTypeNode, ListTypeNode, NonNullTypeNode, Source } from 'graphql';
|
|
1
|
+
import { TypeNode, NamedTypeNode, ListTypeNode, NonNullTypeNode, Source } from '@graphql-tools/graphql';
|
|
2
2
|
export declare function isStringTypes(types: any): types is string;
|
|
3
3
|
export declare function isSourceTypes(types: any): types is Source;
|
|
4
4
|
export declare function extractType(type: TypeNode): NamedTypeNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TypeNode, NamedTypeNode, ListTypeNode, NonNullTypeNode, Source } from 'graphql';
|
|
1
|
+
import { TypeNode, NamedTypeNode, ListTypeNode, NonNullTypeNode, Source } from '@graphql-tools/graphql';
|
|
2
2
|
export declare function isStringTypes(types: any): types is string;
|
|
3
3
|
export declare function isSourceTypes(types: any): types is Source;
|
|
4
4
|
export declare function extractType(type: TypeNode): NamedTypeNode;
|