@apistudio/apim-cli
Version:
CLI for API Management Products
19 lines • 743 B
TypeScript
/**
* Copyright IBM Corp. 2024, 2025
*/
/**
* Converts human-readable condition format to filtrex-compatible format
*
* @param humanReadable - The human-readable condition string
* @returns The filtrex-compatible condition string
*
* @example
* Input: "${requestHeaders.abc} equals 100 and ${response.name} contains ["victor", "sangeeth"]"
* Output: "${requestHeaders.abc} == 100 and ${response.name} in ("victor", "sangeeth")"
*
* @example
* Input: "${requestHeaders} containsKey Content-Type and ${response} equals sss"
* Output: "Content-Type of ${requestHeaders} and ${response} == sss"
*/
export declare const convertToExecutableFormat: (humanReadable: string) => string;
//# sourceMappingURL=condition-converter.d.ts.map