Files
klz-cables.com/.pnpm-store/v10/files/09/67616454978a1c8a610ed34580da2ff70b27415a07b6cbda71142f8e575473f7466f069b2436e345b12fb797faf80e89a849830c2a1793230528ca5c1b4e11
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

51 lines
2.1 KiB
Plaintext

/**
* Created by Ivo Meißner on 28.07.17.
*/
import type { DocumentNode, FieldNode, FragmentDefinitionNode, GraphQLCompositeType, GraphQLDirective, GraphQLField, GraphQLSchema, GraphQLUnionType, InlineFragmentNode, OperationDefinitionNode } from 'graphql';
import { GraphQLError, GraphQLInterfaceType, GraphQLObjectType, ValidationContext } from 'graphql';
export type ComplexityEstimatorArgs = {
args: {
[key: string]: any;
};
childComplexity: number;
context?: Record<string, any>;
field: GraphQLField<any, any>;
node: FieldNode;
type: GraphQLCompositeType;
};
export type ComplexityEstimator = (options: ComplexityEstimatorArgs) => number | void;
export type Complexity = any;
export interface QueryComplexityOptions {
context?: Record<string, any>;
createError?: (max: number, actual: number) => GraphQLError;
estimators: Array<ComplexityEstimator>;
maximumComplexity: number;
onComplete?: (complexity: number) => void;
operationName?: string;
variables?: Record<string, any>;
}
export declare function getComplexity(options: {
context?: Record<string, any>;
estimators: ComplexityEstimator[];
operationName?: string;
query: DocumentNode;
schema: GraphQLSchema;
variables?: Record<string, any>;
}): number;
export declare class QueryComplexity {
complexity: number;
context: ValidationContext;
estimators: Array<ComplexityEstimator>;
includeDirectiveDef: GraphQLDirective;
OperationDefinition: Record<string, any>;
options: QueryComplexityOptions;
requestContext?: Record<string, any>;
skipDirectiveDef: GraphQLDirective;
variableValues: Record<string, any>;
constructor(context: ValidationContext, options: QueryComplexityOptions);
createError(): GraphQLError;
nodeComplexity(node: FieldNode | FragmentDefinitionNode | InlineFragmentNode | OperationDefinitionNode, typeDef: GraphQLInterfaceType | GraphQLObjectType | GraphQLUnionType): number;
onOperationDefinitionEnter(operation: OperationDefinitionNode): void;
onOperationDefinitionLeave(operation: OperationDefinitionNode): GraphQLError | void;
}
//# sourceMappingURL=QueryComplexity.d.ts.map