import { TodoistApi } from '@doist/todoist-api-typescript'
import { v9 as Todoist } from 'todoist'
type Todoist = {
Token: string
}
export async function main(
resource: Todoist,
comment: {
args: {
content: string
attachment?: {
fileName?: string
fileUrl: string
fileType?: string
resourceType?: string
}
taskId?: string
projectId?: string
}
requestId?: string
}
) {
const api = new TodoistApi(resource.Token)
// @ts-ignore
const commentResponse = await api.addComment(comment.args, comment.requestId)
return commentResponse
}
Submitted by hugo697 399 days ago
import { TodoistApi } from '@doist/todoist-api-typescript'
import { v9 as Todoist } from 'todoist'
type Todoist = {
Token: string
}
export async function main(
resource: Todoist,
comment: {
args: {
content: string
attachment?: {
fileName?: string
fileUrl: string
fileType?: string
resourceType?: string
}
taskId?: string
projectId?: string
}
requestId?: string
}
) {
const api = new TodoistApi(resource.Token)
// @ts-ignore
const commentResponse = await api.addComment(comment.args, comment.requestId)
return commentResponse
}
Submitted by hugo697 764 days ago