0.13.2 ā€¢ Published 2 months ago

@polarsquad/cinode-api v0.13.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@polarsquad/cinode-api

Unofficial Node.js API client for Cinode.

šŸš§ This client is still very much in development and might change drastically šŸš§

This client has support for:

  • Interacting with skills
  • Interacting with project assignments
  • More to follow...

Installation

npm install --save @polarsquad/cinode-api

Configuration

  1. Enable the Cinode REST API for your company (docs)
  2. Create a Cinode user and give it the roles "Api" and "Manager" in https://app.cinode.com/polarsquad/administration/users/employees/
    • The yourcompany part of the URL is your company name in the configuration
  3. Create a Cinode token for the bot user in https://app.cinode.com/polarsquad/administration/integrations/tokens
    • Name & expiration: anything you like
    • Mimic user: your bot user
    • Token claims: Manager & Admin
  4. Import and configure the client:

    import { Api } from '@polarsquad/cinode-api/api'
    import clientBuilder from '@polarsquad/cinode-api/client'
    import { CinodeService } from '@polarsquad/cinode-api/service'
    
    const api = new Api(
      {
        id: 1234,               // Company ID
        name: 'yourcompany'     // Company name
      },
      clientBuilder(
        'cinodeapitoken',       // Cinode API token
      )
    )
    const service = new CinodeService(api)

Development

Useful commands

šŸš€ Run tests: npm run test

šŸ”§ Lint code: npm run lint-fix

šŸ–Œļø Autoformat code: npm run prettier-fix

Releasing

  1. Create new branch
  2. Update version in package.json based on changes (we follow semantic versioning)
  3. Run npm install to update package-lock.json
  4. Create Pull Request with title "Release x.y.z" and description for changelog
  5. Merge changes to main
  6. Tag & release with the format "vX.Y.Z" (e.g. 0.3.0 in package.json becomes v0.3.0 as tag title)
  7. GitHub Actions publishes the version in npm

Links

License

See LICENSE for more details.

0.13.2

2 months ago

0.13.1

3 months ago

0.12.9

4 months ago

0.13.0

4 months ago

0.12.8

4 months ago

0.12.7

6 months ago

0.12.3

9 months ago

0.12.4

8 months ago

0.12.5

6 months ago

0.12.6

6 months ago

0.12.2

1 year ago

0.12.0

1 year ago

0.12.1

1 year ago

0.11.4

1 year ago

0.11.5

1 year ago

0.11.6

1 year ago

0.11.2

1 year ago

0.11.3

1 year ago

0.11.0

1 year ago

0.11.1

1 year ago

0.10.2

1 year ago

0.10.0

2 years ago

0.10.1

2 years ago

0.9.0

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.7.1

2 years ago

0.9.2

2 years ago

0.9.1

2 years ago

0.8.2

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.3.0

2 years ago

0.1.0

2 years ago