@graphql-inspector/patch
Version:
Applies changes output from @graphql-inspect/diff
32 lines (31 loc) • 6.87 kB
text/typescript
import { ASTNode } from 'graphql';
import { Change, ChangeType } from '@graphql-inspector/core';
import { PatchConfig, PatchContext, SchemaNode } from '../types.cjs';
export type DirectiveUsageAddedChange = typeof ChangeType.DirectiveUsageArgumentDefinitionAdded | typeof ChangeType.DirectiveUsageInputFieldDefinitionAdded | typeof ChangeType.DirectiveUsageInputObjectAdded | typeof ChangeType.DirectiveUsageInterfaceAdded | typeof ChangeType.DirectiveUsageObjectAdded | typeof ChangeType.DirectiveUsageEnumAdded | typeof ChangeType.DirectiveUsageFieldDefinitionAdded | typeof ChangeType.DirectiveUsageUnionMemberAdded | typeof ChangeType.DirectiveUsageEnumValueAdded | typeof ChangeType.DirectiveUsageSchemaAdded | typeof ChangeType.DirectiveUsageScalarAdded | typeof ChangeType.DirectiveUsageFieldAdded;
export type DirectiveUsageRemovedChange = typeof ChangeType.DirectiveUsageArgumentDefinitionRemoved | typeof ChangeType.DirectiveUsageInputFieldDefinitionRemoved | typeof ChangeType.DirectiveUsageInputObjectRemoved | typeof ChangeType.DirectiveUsageInterfaceRemoved | typeof ChangeType.DirectiveUsageObjectRemoved | typeof ChangeType.DirectiveUsageEnumRemoved | typeof ChangeType.DirectiveUsageFieldDefinitionRemoved | typeof ChangeType.DirectiveUsageFieldRemoved | typeof ChangeType.DirectiveUsageUnionMemberRemoved | typeof ChangeType.DirectiveUsageEnumValueRemoved | typeof ChangeType.DirectiveUsageSchemaRemoved | typeof ChangeType.DirectiveUsageScalarRemoved;
export declare function directiveUsageArgumentDefinitionAdded(change: Change<typeof ChangeType.DirectiveUsageArgumentDefinitionAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageArgumentDefinitionRemoved(change: Change<typeof ChangeType.DirectiveUsageArgumentDefinitionRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageEnumAdded(change: Change<typeof ChangeType.DirectiveUsageEnumAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageEnumRemoved(change: Change<typeof ChangeType.DirectiveUsageEnumRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageEnumValueAdded(change: Change<typeof ChangeType.DirectiveUsageEnumValueAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageEnumValueRemoved(change: Change<typeof ChangeType.DirectiveUsageEnumValueRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageFieldAdded(change: Change<typeof ChangeType.DirectiveUsageFieldAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageFieldDefinitionAdded(change: Change<typeof ChangeType.DirectiveUsageFieldDefinitionAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageFieldDefinitionRemoved(change: Change<typeof ChangeType.DirectiveUsageFieldDefinitionRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageFieldRemoved(change: Change<typeof ChangeType.DirectiveUsageFieldRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageInputFieldDefinitionAdded(change: Change<typeof ChangeType.DirectiveUsageInputFieldDefinitionAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageInputFieldDefinitionRemoved(change: Change<typeof ChangeType.DirectiveUsageInputFieldDefinitionRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageInputObjectAdded(change: Change<typeof ChangeType.DirectiveUsageInputObjectAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageInputObjectRemoved(change: Change<typeof ChangeType.DirectiveUsageInputObjectRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageInterfaceAdded(change: Change<typeof ChangeType.DirectiveUsageInterfaceAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageInterfaceRemoved(change: Change<typeof ChangeType.DirectiveUsageInterfaceRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageObjectAdded(change: Change<typeof ChangeType.DirectiveUsageObjectAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageObjectRemoved(change: Change<typeof ChangeType.DirectiveUsageObjectRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageScalarAdded(change: Change<typeof ChangeType.DirectiveUsageScalarAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageScalarRemoved(change: Change<typeof ChangeType.DirectiveUsageScalarRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageSchemaAdded(change: Change<typeof ChangeType.DirectiveUsageSchemaAdded>, schemaDefs: SchemaNode[], nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageSchemaRemoved(change: Change<typeof ChangeType.DirectiveUsageSchemaRemoved>, schemaDefs: SchemaNode[], nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageUnionMemberAdded(change: Change<typeof ChangeType.DirectiveUsageUnionMemberAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageUnionMemberRemoved(change: Change<typeof ChangeType.DirectiveUsageUnionMemberRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, context: PatchContext): void;
export declare function directiveUsageArgumentAdded(change: Change<typeof ChangeType.DirectiveUsageArgumentAdded>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;
export declare function directiveUsageArgumentRemoved(change: Change<typeof ChangeType.DirectiveUsageArgumentRemoved>, nodeByPath: Map<string, ASTNode>, config: PatchConfig, _context: PatchContext): void;