Skip to content

Commit

Permalink
add naics, sic and update packages (#48)
Browse files Browse the repository at this point in the history
* add naics, sic and update packages

* remove unneeded package
  • Loading branch information
vvillait88 authored Mar 31, 2023
1 parent 5e8aaf8 commit 5bfa045
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 128 deletions.
19 changes: 9 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "peopledatalabs",
"version": "5.0.1",
"version": "5.0.2",
"description": "JavaScript client with TypeScript support for the People Data Labs API",
"type": "module",
"main": "dist/index.cjs",
Expand Down Expand Up @@ -43,28 +43,27 @@
},
"homepage": "https://docs.peopledatalabs.com/docs/javascript-sdk",
"devDependencies": {
"@types/lodash": "^4.14.191",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
"chai": "^4.3.7",
"dotenv": "^16.0.3",
"eslint": "^8.32.0",
"eslint": "^8.37.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-plugin-import": "^2.27.4",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^8.0.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
"esm": "^3.2.25",
"microbundle": "^0.15.1",
"mocha": "^10.2.0",
"typescript": "^4.9.4"
"typescript": "^5.0.3"
},
"dependencies": {
"axios": "^1.2.2",
"axios": "^1.3.4",
"copy-anything": "^3.0.3"
}
}
18 changes: 18 additions & 0 deletions src/types/common-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,22 @@ export interface PersonResponse {
recommended_personal_email?: string,
}

interface NaicsResponse {
naics_code?: string,
naics_industry?: string,
sector?: string,
sub_sector?: string,
industry_group?: string,
national_industry?: string,
}

export interface SicResponse {
sic_code?: string,
major_group?: string,
industry_group?: string,
industry_sector?: string,
}

export interface CompanyResponse {
name?: string,
size?: string,
Expand Down Expand Up @@ -634,6 +650,8 @@ export interface CompanyResponse {
direct_subsidiaries?: Array<string>,
immediate_parent?: string,
ultimate_parent?: string,
naics?: Array<NaicsResponse>,
sic?: Array<SicResponse>,
}

export interface ErrorResponse {
Expand Down
Loading

0 comments on commit 5bfa045

Please sign in to comment.