@graphql-tools/stitching-directives 2.1.1-alpha-db7f3b43.0 → 3.0.0-alpha-24ba9af0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,15 +1,2 @@
1
- export declare function federationToStitchingSDL(federationSDL: string, stitchingConfig?: {
2
- keyDirectiveTypeDefs: string;
3
- computedDirectiveTypeDefs: string;
4
- mergeDirectiveTypeDefs: string;
5
- canonicalDirectiveTypeDefs: string;
6
- stitchingDirectivesTypeDefs: string;
7
- allStitchingDirectivesTypeDefs: string;
8
- stitchingDirectivesValidator: (schema: import("graphql").GraphQLSchema) => import("graphql").GraphQLSchema;
9
- stitchingDirectivesTransformer: (subschemaConfig: import("../../delegate/src").SubschemaConfig<any, any, any, Record<string, any>>) => import("../../delegate/src").SubschemaConfig<any, any, any, Record<string, any>>;
10
- keyDirective: import("graphql").GraphQLDirective;
11
- computedDirective: import("graphql").GraphQLDirective;
12
- mergeDirective: import("graphql").GraphQLDirective;
13
- canonicalDirective: import("graphql").GraphQLDirective;
14
- allStitchingDirectives: import("graphql").GraphQLDirective[];
15
- }): string;
1
+ import { StitchingDirectivesResult } from './stitchingDirectives';
2
+ export declare function federationToStitchingSDL(federationSDL: string, stitchingConfig?: StitchingDirectivesResult): string;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@graphql-tools/stitching-directives",
3
- "version": "2.1.1-alpha-db7f3b43.0",
3
+ "version": "3.0.0-alpha-24ba9af0.0",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
7
7
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@graphql-tools/delegate": "8.2.2-alpha-db7f3b43.0",
11
- "@graphql-tools/utils": "^8.2.0",
10
+ "@graphql-tools/delegate": "9.0.0-alpha-24ba9af0.0",
11
+ "@graphql-tools/utils": "9.0.0-alpha-24ba9af0.0",
12
12
  "tslib": "~2.3.0"
13
13
  },
14
14
  "repository": {
@@ -1,7 +1,7 @@
1
1
  import { GraphQLDirective, GraphQLSchema } from 'graphql';
2
2
  import { SubschemaConfig } from '@graphql-tools/delegate';
3
3
  import { StitchingDirectivesOptions } from './types';
4
- export declare function stitchingDirectives(options?: StitchingDirectivesOptions): {
4
+ export interface StitchingDirectivesResult {
5
5
  keyDirectiveTypeDefs: string;
6
6
  computedDirectiveTypeDefs: string;
7
7
  mergeDirectiveTypeDefs: string;
@@ -15,4 +15,5 @@ export declare function stitchingDirectives(options?: StitchingDirectivesOptions
15
15
  mergeDirective: GraphQLDirective;
16
16
  canonicalDirective: GraphQLDirective;
17
17
  allStitchingDirectives: Array<GraphQLDirective>;
18
- };
18
+ }
19
+ export declare function stitchingDirectives(options?: StitchingDirectivesOptions): StitchingDirectivesResult;
package/es5/README.md DELETED
@@ -1,7 +0,0 @@
1
- Check API Reference for more information about this package;
2
- https://www.graphql-tools.com/docs/api/modules/stitching_directives_src
3
-
4
- You can also learn more about Schema Stitching Directives in this chapter;
5
- https://www.graphql-tools.com/docs/stitch-directives-sdl
6
-
7
-
@@ -1,2 +0,0 @@
1
- import { StitchingDirectivesFinalOptions } from './types';
2
- export declare const defaultStitchingDirectiveOptions: StitchingDirectivesFinalOptions;
@@ -1,7 +0,0 @@
1
- import { ValueNode } from 'graphql';
2
- declare type VariablePaths = Record<string, Array<string | number>>;
3
- export declare function extractVariables(inputValue: ValueNode): {
4
- inputValue: ValueNode;
5
- variablePaths: VariablePaths;
6
- };
7
- export {};
@@ -1,15 +0,0 @@
1
- export declare function federationToStitchingSDL(federationSDL: string, stitchingConfig?: {
2
- keyDirectiveTypeDefs: string;
3
- computedDirectiveTypeDefs: string;
4
- mergeDirectiveTypeDefs: string;
5
- canonicalDirectiveTypeDefs: string;
6
- stitchingDirectivesTypeDefs: string;
7
- allStitchingDirectivesTypeDefs: string;
8
- stitchingDirectivesValidator: (schema: import("graphql").GraphQLSchema) => import("graphql").GraphQLSchema;
9
- stitchingDirectivesTransformer: (subschemaConfig: import("../../delegate/src").SubschemaConfig<any, any, any, Record<string, any>>) => import("../../delegate/src").SubschemaConfig<any, any, any, Record<string, any>>;
10
- keyDirective: import("graphql").GraphQLDirective;
11
- computedDirective: import("graphql").GraphQLDirective;
12
- mergeDirective: import("graphql").GraphQLDirective;
13
- canonicalDirective: import("graphql").GraphQLDirective;
14
- allStitchingDirectives: import("graphql").GraphQLDirective[];
15
- }): string;
@@ -1,3 +0,0 @@
1
- import { SelectionSetNode } from 'graphql';
2
- import { MappingInstruction } from './types';
3
- export declare function getSourcePaths(mappingInstructions: Array<MappingInstruction>, selectionSet?: SelectionSetNode): Array<Array<string>>;
package/es5/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './stitchingDirectives';
2
- export * from './types';
3
- export * from './federationToStitchingSDL';