(field: string)
| 1631 | } |
| 1632 | |
| 1633 | private runtimeFieldToSortKey(field: string): TaskSortKey | null { |
| 1634 | const resolved = this.resolveRuntimeQueryField(field); |
| 1635 | if (!resolved) return null; |
| 1636 | const property = resolved.internalProperty; |
| 1637 | if (property.startsWith("user:")) return property as `user:${string}`; |
| 1638 | if ( |
| 1639 | property === "due" || |
| 1640 | property === "scheduled" || |
| 1641 | property === "priority" || |
| 1642 | property === "status" || |
| 1643 | property === "title" || |
| 1644 | property === "dateCreated" || |
| 1645 | property === "completedDate" || |
| 1646 | property === "tags" |
| 1647 | ) { |
| 1648 | return property; |
| 1649 | } |
| 1650 | return null; |
| 1651 | } |
| 1652 | |
| 1653 | private runtimeFieldToGroupKey(field: string): TaskGroupKey | null { |
| 1654 | const resolved = this.resolveRuntimeQueryField(field); |
no test coverage detected