( operator: TaskNotesRuntimeOperator )
| 3274 | } |
| 3275 | |
| 3276 | function invertRuntimeOperator( |
| 3277 | operator: TaskNotesRuntimeOperator |
| 3278 | ): TaskNotesRuntimeOperator | null { |
| 3279 | const inverses: Partial<Record<TaskNotesRuntimeOperator, TaskNotesRuntimeOperator>> = { |
| 3280 | eq: "ne", |
| 3281 | ne: "eq", |
| 3282 | contains: "notContains", |
| 3283 | notContains: "contains", |
| 3284 | in: "notIn", |
| 3285 | notIn: "in", |
| 3286 | exists: "missing", |
| 3287 | missing: "exists", |
| 3288 | lt: "gte", |
| 3289 | lte: "gt", |
| 3290 | gt: "lte", |
| 3291 | gte: "lt", |
| 3292 | isTrue: "isFalse", |
| 3293 | isFalse: "isTrue", |
| 3294 | }; |
| 3295 | return inverses[operator] ?? null; |
| 3296 | } |
| 3297 | |
| 3298 | function applyRuntimeQueryScope( |
| 3299 | tasks: TaskInfo[], |
no outgoing calls
no test coverage detected