nestjs-clickup
TypeScript icon, indicating that this package has built-in type declarations

0.2.13 • Public • Published

Project

NestJS Module to access ClickUP API

Features

  • CRUD Task

  • OAuth

  • Team

Incoming Features

Why this module have only these features?

This project was initialized based on one requirement: create an task in Clickup based on an event. That been saied, new features and improvements are added quite slowly. Feel free to contribute, send us your pull request!

Installation

$ npm ci

Examples

Configure async

@Module({
  imports: [
    ClickUpModule.forRootAsync({
      imports: [ConfigModule],
      useFactory: (configService: ConfigService) => ({
        token: configService.get<string>('CLICKUP_TOKEN')
        client_id: configService.get<string>('CLICKUP_CLIENT_ID'), // only required for oauth flow
        secret: configService.get<string>('CLICKUP_SECRET') // only required for oauth flow
      }),
      inject: [ConfigService],
    }),
  ],
  providers: [FeedbackService],
})
export class FeedbackModule {}

Create a task

@Injectable()
export class FeedbackService {
  constructor(private readonly clickupService: ClickUpService) {}

  async createFeedback(feedbackDto: FeedbackDto) {
     // create feedback locally then create as task in feedback list
     await this.clickupService.task.create(feedbackListId, {
       name: "New Feedback",
       content: feedbackDto.message
     });
  }

License

MIT licensed.

Readme

Keywords

none

Package Sidebar

Install

npm i nestjs-clickup

Weekly Downloads

1

Version

0.2.13

License

MIT

Unpacked Size

29.2 kB

Total Files

51

Last publish

Collaborators

  • josecleiton