0.2.13 • Published 3 years ago

nestjs-clickup v0.2.13

Weekly downloads
69
License
MIT
Repository
github
Last release
3 years ago

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.

0.2.13

3 years ago

0.2.12

3 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago