( operators: readonly (FilterOperator | TaskNotesRuntimeOperator)[] )
| 3019 | } |
| 3020 | |
| 3021 | function runtimeOperatorsFromLegacy( |
| 3022 | operators: readonly (FilterOperator | TaskNotesRuntimeOperator)[] |
| 3023 | ): TaskNotesRuntimeOperator[] { |
| 3024 | const normalizedOperators = operators |
| 3025 | .map((operator) => normalizeRuntimeOperator(operator)) |
| 3026 | .filter(isDefined); |
| 3027 | if (normalizedOperators.includes("eq")) normalizedOperators.push("in"); |
| 3028 | if (normalizedOperators.includes("ne")) normalizedOperators.push("notIn"); |
| 3029 | return Array.from(new Set(normalizedOperators)); |
| 3030 | } |
| 3031 | |
| 3032 | function operatorsForRuntimeValueType( |
| 3033 | valueType: TaskNotesRuntimeFieldDefinition["valueType"] |
no test coverage detected