@pliancy/asana-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

asana-sdk

This was created to have the proper types for the asana api. The official node-asana sdk is generated with their open-api spec but doesn't includes types and there seems to be some inconsistencies with @types/asana. Found an issue that suggested using the open-api generator with asana's open-api spec and which is used to generate the /src/lib/asanaClient folder.

All of the generated api classes are added to exported Asana class with the below having changes to not have to destructure the data key returned from both axios and Asana:

  • PortfolioMemberships
  • Portfolios
  • ProjectMemberships
  • Projects
  • TeamMemberships
  • Teams
  • Users

Install Package

yarn add @pliancy/asana-sdk

PAT Auth

import { Asana } from '@pliancy/asana-sdk'

const asana = new Asana({accessToken: '12345'}, 'workspaceGid', 'ownerGid')
Dev Environment Setup:

The below command will create the generated /src/lib/asanaClient folder

yarn dev

Readme

Keywords

none

Package Sidebar

Install

npm i @pliancy/asana-sdk

Weekly Downloads

12

Version

1.1.1

License

MIT

Unpacked Size

1.65 MB

Total Files

918

Last publish

Collaborators

  • santese
  • pliancy-bot
  • justin.pliancy