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

Function getRawEventForRuntimeEvent

src/api/TaskNotesAPI.ts:3441–3455  ·  view source on GitHub ↗
(event: TaskNotesRuntimeEventName)

Source from the content-addressed store, hash-verified

3439}
3440
3441function getRawEventForRuntimeEvent(event: TaskNotesRuntimeEventName): string {
3442 if (event === "task.deleted") {
3443 return EVENT_TASK_DELETED;
3444 }
3445 if (event === "pomodoro.started") {
3446 return EVENT_POMODORO_START;
3447 }
3448 if (event === "pomodoro.completed") {
3449 return EVENT_POMODORO_COMPLETE;
3450 }
3451 if (event === "pomodoro.interrupted") {
3452 return EVENT_POMODORO_INTERRUPT;
3453 }
3454 return EVENT_TASK_UPDATED;
3455}
3456
3457function copyTaskInfo(task: TaskInfo): TaskInfo {
3458 const copy = { ...task };

Callers 1

onMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected