@pact-foundation/pact
Version:
Pact for all things Javascript
20 lines (19 loc) • 1.25 kB
TypeScript
import type { ConsumerInteraction, ConsumerPact } from '@pact-foundation/pact-core';
import type { GraphQLVariables } from '../../common/graphQL/graphQL';
import type { JsonMap } from '../../common/jsonTypes';
import type { Path } from '../../v3';
import type { PactV4Options } from '../http/types';
import type { V4GraphQLInteractionWithRequest, V4GraphQLRequestBuilderFunc, V4UnconfiguredGraphQLInteraction } from './types';
export declare class UnconfiguredGraphQLInteraction implements V4UnconfiguredGraphQLInteraction {
protected pact: ConsumerPact;
protected interaction: ConsumerInteraction;
protected opts: PactV4Options;
protected cleanupFn: () => void;
private graphQLRequest;
constructor(pact: ConsumerPact, interaction: ConsumerInteraction, opts: PactV4Options, cleanupFn: () => void);
withOperation(operation: string): V4UnconfiguredGraphQLInteraction;
withVariables(variables: GraphQLVariables): V4UnconfiguredGraphQLInteraction;
uponReceiving(description: string): V4UnconfiguredGraphQLInteraction;
given(state: string, parameters?: JsonMap): V4UnconfiguredGraphQLInteraction;
withRequest(method: string, path: Path, builder?: V4GraphQLRequestBuilderFunc): V4GraphQLInteractionWithRequest;
}