( cel: string )
| 352 | }; |
| 353 | |
| 354 | export const convertFromCELString = async ( |
| 355 | cel: string |
| 356 | ): Promise<ConditionExpression> => { |
| 357 | let expr: Expr | undefined; |
| 358 | if (cel) { |
| 359 | const celExpr = await batchConvertCELStringToParsedExpr([cel]); |
| 360 | expr = celExpr[0]; |
| 361 | } |
| 362 | if (!expr) { |
| 363 | return {}; |
| 364 | } |
| 365 | |
| 366 | return convertFromExpr(expr); |
| 367 | }; |
| 368 | |
| 369 | export const batchConvertFromCELString = async ( |
| 370 | cels: string[] |
no test coverage detected