MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / runtimeFieldToSortKey

Method runtimeFieldToSortKey

src/api/TaskNotesAPI.ts:1633–1651  ·  view source on GitHub ↗
(field: string)

Source from the content-addressed store, hash-verified

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);

Callers 1

Calls 1

Tested by

no test coverage detected