-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(WFR): Updated all WFR Entities with changes to the Models
- Loading branch information
Showing
2 changed files
with
292 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,23 +10,39 @@ | |
|
||
Entity Utils and Typescript Interfaces for the Bullhorn REST Api | ||
|
||
|
||
## Setup | ||
|
||
```bash | ||
npm install -g @bullhorn/bullhorn-types | ||
npm install @bullhorn/bullhorn-types | ||
``` | ||
|
||
## Usage | ||
|
||
```typescript | ||
import { EntityTypes, Candidate } from '@bullhorn/bullhorn-types'; | ||
import { EntityTypes, Candidate } from "@bullhorn/bullhorn-types"; | ||
|
||
console.log(EntityTypes.Candidate === 'Candidate'); // outputs: true | ||
console.log(EntityTypes.Candidate === "Candidate"); // outputs: true | ||
|
||
let person:Candidate = { | ||
firstName: 'John', | ||
lastName: 'smith' | ||
let person: Candidate = { | ||
firstName: "John", | ||
lastName: "smith" | ||
}; | ||
``` | ||
|
||
## Build & Deploy | ||
|
||
```bash | ||
# Clone this repo | ||
git clone [email protected]:bullhorn/bullhorn-types.git | ||
cd bullhorn-types | ||
# Install the Bullhorn CLI tool | ||
npm install -g @bullhorn/bullhorn-cli | ||
# Login into the Bullhorn Environment | ||
bullhorn config set environment YOUR_API_ENDPOINT | ||
# Login into the Bullhorn Environment | ||
bullhorn auth login | ||
# Generate the typings file | ||
bullhorn typings generate | ||
``` | ||
|
||
Travis will build a deploy to NPM when you push to master with appropriate [Semantice Release](https://github.com/semantic-release/semantic-release) messages. |
Oops, something went wrong.