Skip to content

Weldable/integration-google-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@weldable/integration-google-tasks

Google Tasks actions for Weldable.

Part of the Weldable integration library — see @weldable/integration-core for the full catalog.

Install

npm install @weldable/integration-google-tasks @weldable/integration-core

@weldable/integration-core is a peer dependency and must be installed alongside this package.

Usage

import integration from '@weldable/integration-google-tasks'

// List open tasks
const list = integration.actions.find(a => a.id === 'google_tasks.list_tasks')!

const tasks = await list.execute(
  { tasklist: '@default', showCompleted: false, maxResults: 20 },
  ctx, // ActionContext from your Weldable-compatible host
)

// Create a task with a due date
const create = integration.actions.find(a => a.id === 'google_tasks.create_task')!

await create.execute(
  {
    title: 'Review pull request #42',
    notes: 'Focus on the auth changes',
    due: '2025-02-07T00:00:00.000Z',
  },
  ctx,
)

// Mark a task complete
const update = integration.actions.find(a => a.id === 'google_tasks.update_task')!

await update.execute(
  { task: 'abc123', status: 'completed' },
  ctx,
)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors