@kubb/plugin-cypress
Version:
Cypress test generator plugin for Kubb, creating end-to-end tests from OpenAPI specifications for automated API testing.
47 lines (46 loc) • 1.34 kB
text/typescript
import { i as OperationSchemas, n as PluginCypress, o as HttpMethod } from "./types-H3p8ahP5.cjs";
import { FunctionParams } from "@kubb/react-fabric";
import { KubbNode } from "@kubb/react-fabric/types";
//#region src/components/Request.d.ts
type Props = {
/**
* Name of the function
*/
name: string;
typeSchemas: OperationSchemas;
url: string;
baseURL: string | undefined;
dataReturnType: PluginCypress['resolvedOptions']['dataReturnType'];
paramsCasing: PluginCypress['resolvedOptions']['paramsCasing'];
paramsType: PluginCypress['resolvedOptions']['paramsType'];
pathParamsType: PluginCypress['resolvedOptions']['pathParamsType'];
method: HttpMethod;
};
type GetParamsProps = {
paramsCasing: PluginCypress['resolvedOptions']['paramsCasing'];
paramsType: PluginCypress['resolvedOptions']['paramsType'];
pathParamsType: PluginCypress['resolvedOptions']['pathParamsType'];
typeSchemas: OperationSchemas;
};
declare function Request({
baseURL,
name,
dataReturnType,
typeSchemas,
url,
method,
paramsType,
paramsCasing,
pathParamsType
}: Props): KubbNode;
declare namespace Request {
var getParams: ({
paramsType,
paramsCasing,
pathParamsType,
typeSchemas
}: GetParamsProps) => FunctionParams;
}
//#endregion
export { Request };
//# sourceMappingURL=components.d.cts.map