@apollo/federation-internals
Advanced tools
Comparing version 2.4.5 to 2.4.6
import { ArgumentNode, DocumentNode, FieldNode, FragmentDefinitionNode, FragmentSpreadNode, InlineFragmentNode, SelectionNode, SelectionSetNode } from "graphql"; | ||
import { Directive, DirectiveTargetElement, FieldDefinition, InterfaceType, ObjectType, Schema, SchemaRootKind, VariableCollector, VariableDefinitions, CompositeType, DeferDirectiveArgs, Variable, Type, Variables } from "./definitions"; | ||
import { Directive, DirectiveTargetElement, FieldDefinition, InterfaceType, ObjectType, Schema, SchemaRootKind, VariableCollector, VariableDefinitions, CompositeType, DeferDirectiveArgs, Variable, Type, Variables, NamedType } from "./definitions"; | ||
import { SetMultiMap } from "./utils"; | ||
@@ -35,2 +35,3 @@ declare abstract class AbstractOperationElement<T extends AbstractOperationElement<T>> extends DirectiveTargetElement<T> { | ||
isLeafField(): boolean; | ||
baseType(): NamedType; | ||
withUpdatedDefinition(newDefinition: FieldDefinition<any>): Field<TArgs>; | ||
@@ -259,2 +260,3 @@ withUpdatedAlias(newAlias: string | undefined): Field<TArgs>; | ||
get parentType(): CompositeType; | ||
isTypenameField(): boolean; | ||
collectVariables(collector: VariableCollector): void; | ||
@@ -299,2 +301,3 @@ collectUsedFragmentNames(collector: Map<string, number>): void; | ||
protected us(): FieldSelection; | ||
isTypenameField(): boolean; | ||
withUpdatedComponents(field: Field<any>, selectionSet: SelectionSet | undefined): FieldSelection; | ||
@@ -383,3 +386,3 @@ key(): string; | ||
withUpdatedComponents(_fragment: FragmentElement, _selectionSet: SelectionSet): InlineFragmentSelection; | ||
trimUnsatisfiableBranches(_: CompositeType): FragmentSelection; | ||
trimUnsatisfiableBranches(parentType: CompositeType): FragmentSelection; | ||
namedFragments(): NamedFragments | undefined; | ||
@@ -389,3 +392,3 @@ validate(): void; | ||
optimize(_: NamedFragments): FragmentSelection; | ||
rebaseOn(_parentType: CompositeType): FragmentSelection; | ||
rebaseOn(parentType: CompositeType): FragmentSelection; | ||
canAddTo(_: CompositeType): boolean; | ||
@@ -392,0 +395,0 @@ expandAllFragments(): FragmentSelection | readonly Selection[]; |
@@ -58,3 +58,3 @@ export declare function assert(condition: any, message: string | (() => string)): asserts condition; | ||
export type Concrete<Type> = { | ||
[Property in keyof Type]-?: Type[Property]; | ||
[Property in keyof Type]-?: Concrete<Type[Property]>; | ||
}; | ||
@@ -61,0 +61,0 @@ export declare const isDefined: <T>(t: T | undefined) => t is T; |
{ | ||
"name": "@apollo/federation-internals", | ||
"version": "2.4.5", | ||
"version": "2.4.6", | ||
"description": "Apollo Federation internal utilities", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -404,3 +404,3 @@ /** | ||
export type Concrete<Type> = { | ||
[Property in keyof Type]-?: Type[Property]; | ||
[Property in keyof Type]-?: Concrete<Type[Property]>; | ||
}; | ||
@@ -407,0 +407,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1854742
152
29959