Repository navigation
feat(tasks)!: support custom assignment email on task create - #43
Merged
Merged
Conversation
The task request and response types now use the API's field names. BREAKING CHANGE: task `title` is now `name`, and `assigneeId`/`assigneeType` are replaced by `internalUserId`, `clientId` and `companyId`. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an optional
emailtotasks.create()that replaces the default assignment email (subject,header,title,body/htmlBody,ctaParams), matching what mys-dashboard already sends toPOST /v1/tasks. Also fixes the task schema, which used field names the API doesn't have.Breaking:
title→name;assigneeId/assigneeType→internalUserId/clientId/companyId. Releases as 0.1.0.What to look at:
src/lib/modules/tasks/schema.ts: theemailfield isn't in the public OpenAPI spec. Its shape comes from mys-dashboard's working call;bodyandctaParamsare borrowed from the notification email shape and not yet exercised.Taskstill requirescreatedAt, per the OpenAPI spec; the docs' example object showscreatedDateinstead.Verified:
vp checkand unit tests (new test asserts the email is forwarded in the body). Not verified against the live API.🤖 Generated with Claude Code