1.1.1 • Published 1 year ago

@pliancy/asana-sdk v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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
1.1.1

1 year ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

4 years ago

1.0.0

4 years ago