npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@cookd/harvest-sdk

v1.0.1

Published

SDK for interacting with the Greenhouse Harvest API

Downloads

21

Readme

Greenhouse Harvest SDK

Description

The Greenhouse Harvest SDK is a TypeScript library for interacting with the Greenhouse Harvest API. It provides an easy-to-use interface for managing candidates, applications, custom fields, and more within your Greenhouse recruitment system.

Installation

To install the Greenhouse Harvest SDK, use npm:

npm install @cookd/harvest-sdk

Usage

First, import the SDK and create an instance:

import GreenhouseHarvestSDK from '@cookd/harvest-sdk';

const sdk = new GreenhouseHarvestSDK('your-api-key');

Examples

Working with Applications

// List applications
const applications = await sdk.applications.listApplications('user-id', { per_page: 10 });

// Get a specific application
const application = await sdk.applications.getApplication('user-id', 12345);

// Add an application
const newApplication = await sdk.applications.addApplication('user-id', 67890, {
  job_id: 54321,
  prospect: false
});

// Update an application
const updatedApplication = await sdk.applications.updateApplication('user-id', 12345, {
  source_id: 100
});

Working with Candidates

// List candidates
const candidates = await sdk.candidates.listCandidates({ per_page: 20 });

// Get a specific candidate
const candidate = await sdk.candidates.getCandidate(12345);

// Add a candidate
const newCandidate = await sdk.candidates.addCandidate({
  first_name: 'John',
  last_name: 'Doe',
  email_addresses: [{ value: '[email protected]', type: 'personal' }]
});

// Update a candidate
const updatedCandidate = await sdk.candidates.updateCandidate(12345, {
  company: 'New Company Inc.'
});

Working with Custom Fields

// List custom fields
const customFields = await sdk.customFields.listCustomFields('job', 'user-id');

// Get a specific custom field
const customField = await sdk.customFields.getCustomField(12345, 'user-id');

// Create a custom field
const newCustomField = await sdk.customFields.createCustomField({
  name: 'New Custom Field',
  field_type: 'candidate',
  value_type: 'short_text'
}, 'user-id');

// Update a custom field
const updatedCustomField = await sdk.customFields.updateCustomField(12345, {
  name: 'Updated Custom Field'
}, 'user-id');

API Reference

The SDK is divided into several modules:

  • applications: Methods for managing job applications
  • candidates: Methods for managing candidates
  • customFields: Methods for managing custom fields

Each module contains methods that correspond to Greenhouse Harvest API endpoints. For full details on available methods and their parameters, please refer to the source code or generated TypeScript definitions.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.