Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add New Types #145

Merged
merged 1 commit into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "peopledatalabs",
"version": "6.1.5",
"version": "6.2.0",
"description": "JavaScript client with TypeScript support for the People Data Labs API",
"type": "module",
"main": "dist/index.cjs",
Expand Down Expand Up @@ -43,8 +43,8 @@
},
"homepage": "https://docs.peopledatalabs.com/docs/javascript-sdk",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"chai": "^4.3.10",
"dotenv": "^16.3.1",
"eslint": "^8.54.0",
Expand Down
3 changes: 3 additions & 0 deletions src/types/autocomplete-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export interface AutoCompleteResponse extends BaseResponse {
locality?: string;
region?: string;
role?: string;
alternative_names?: Array<string>;
display_name?: string;
display_name_history?: Array<string>;
}
}>
}
260 changes: 5 additions & 255 deletions src/types/common-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ export interface PersonResponse {
job_company_location_continent?: string,
job_company_ticker?: string,
job_company_type?: string,
job_company_employee_count?: number,
job_company_inferred_revenue?: string,
job_company_12mo_employee_growth_rate?: number,
job_company_total_funding_raised?: number,
job_onet_code?: string,
job_onet_major_group?: string,
job_onet_minor_group?: string,
Expand Down Expand Up @@ -313,261 +317,7 @@ export interface CompanyResponse {
sales?: number,
trades?: number,
},
employee_count_by_country?: {
afghanistan?: number,
albania ?: number,
algeria ?: number,
'american samoa' ?: number,
andorra ?: number,
angola ?: number,
anguilla ?: number,
antarctica ?: number,
'antigua and barbuda' ?: number,
argentina ?: number,
armenia ?: number,
aruba ?: number,
australia?: number,
austria?: number,
azerbaijan?: number,
bahamas?: number,
bahrain?: number,
bangladesh?: number,
barbados?: number,
belarus?: number,
belgium?: number,
belize?: number,
benin?: number,
bermuda?: number,
bhutan?: number,
bolivia?: number,
'bosnia and herzegovina'?: number,
botswana?: number,
'bouvet island'?: number,
brazil?: number,
'british indian ocean territory'?: number,
'british virgin islands'?: number,
brunei?: number,
bulgaria?: number,
'burkina faso'?: number,
burundi?: number,
cambodia?: number,
cameroon?: number,
canada?: number,
'cape verde'?: number,
'caribbean netherlands'?: number,
'cayman islands'?: number,
'central african republic'?: number,
chad?: number,
chile?: number,
china?: number,
'christmas island'?: number,
'cocos (keeling) islands'?: number,
colombia?: number,
comoros?: number,
'cook islands'?: number,
'costa rica'?: number,
croatia?: number,
cuba?: number,
curaçao?: number,
cyprus?: number,
czechia?: number,
'côte d’ivoire'?: number,
'democratic republic of the congo'?: number,
denmark?: number,
djibouti?: number,
dominica?: number,
'dominican republic'?: number,
ecuador?: number,
egypt?: number,
'el salvador'?: number,
'equatorial guinea'?: number,
eritrea?: number,
estonia?: number,
ethiopia?: number,
'falkland islands'?: number,
'faroe islands'?: number,
fiji?: number,
finland?: number,
france?: number,
'french guiana'?: number,
'french polynesia'?: number,
'french southern territories'?: number,
gabon?: number,
gambia?: number,
georgia?: number,
germany?: number,
ghana?: number,
gibraltar?: number,
greece?: number,
greenland?: number,
grenada?: number,
guadeloupe?: number,
guam?: number,
guatemala?: number,
guernsey?: number,
guinea?: number,
'guinea-bissau'?: number,
guyana?: number,
haiti?: number,
'heard island and mcdonald islands'?: number,
honduras?: number,
'hong kong'?: number,
hungary?: number,
iceland?: number,
india?: number,
indonesia?: number,
iran?: number,
iraq?: number,
ireland?: number,
'isle of man'?: number,
israel?: number,
italy?: number,
'ivory coast'?: number,
jamaica?: number,
japan?: number,
jersey?: number,
jordan?: number,
kazakhstan?: number,
kenya?: number,
kiribati?: number,
kosovo?: number,
kuwait?: number,
kyrgyzstan?: number,
laos?: number,
latvia?: number,
lebanon?: number,
lesotho?: number,
liberia?: number,
libya?: number,
liechtenstein?: number,
lithuania?: number,
luxembourg?: number,
macau?: number,
macedonia?: number,
madagascar?: number,
malawi?: number,
malaysia?: number,
maldives?: number,
mali?: number,
malta?: number,
'marshall islands'?: number,
martinique?: number,
mauritania?: number,
mauritius?: number,
mayotte?: number,
mexico?: number,
micronesia?: number,
moldova?: number,
monaco?: number,
mongolia?: number,
montenegro?: number,
montserrat?: number,
morocco?: number,
mozambique?: number,
myanmar?: number,
namibia?: number,
nauru?: number,
nepal?: number,
netherlands?: number,
'netherlands antilles'?: number,
'new caledonia'?: number,
'new zealand'?: number,
nicaragua?: number,
niger?: number,
nigeria?: number,
niue?: number,
'norfolk island'?: number,
'north korea'?: number,
'northern mariana islands'?: number,
norway?: number,
oman?: number,
pakistan?: number,
palau?: number,
palestine?: number,
panama?: number,
'papua new guinea'?: number,
paraguay?: number,
peru?: number,
philippines?: number,
pitcairn?: number,
poland?: number,
portugal?: number,
'puerto rico'?: number,
qatar?: number,
'republic of the congo'?: number,
romania?: number,
russia?: number,
rwanda?: number,
réunion?: number,
'saint barthélemy'?: number,
'saint helena'?: number,
'saint kitts and nevis'?: number,
'saint lucia'?: number,
'saint martin'?: number,
'saint pierre and miquelon'?: number,
'saint vincent and the grenadines'?: number,
samoa?: number,
'san marino'?: number,
'saudi arabia'?: number,
senegal?: number,
serbia?: number,
seychelles?: number,
'sierra leone'?: number,
singapore?: number,
'sint maarten'?: number,
slovakia?: number,
slovenia?: number,
'solomon islands'?: number,
somalia?: number,
'south africa'?: number,
'south georgia and the south sandwich islands'?: number,
'south korea'?: number,
'south sudan'?: number,
spain?: number,
'sri lanka'?: number,
sudan?: number,
suriname?: number,
'svalbard and jan mayen'?: number,
swaziland?: number,
sweden?: number,
switzerland?: number,
syria?: number,
'são tomé and príncipe'?: number,
taiwan?: number,
tajikistan?: number,
tanzania?: number,
thailand?: number,
'timor-leste'?: number,
togo?: number,
tokelau?: number,
tonga?: number,
'trinidad and tobago'?: number,
tunisia?: number,
'turkey' ?: number,
'turkmenistan'?: number,
'turks and caicos islands'?: number,
tuvalu?: number,
'u.s. virgin islands'?: number,
uganda?: number,
ukraine?: number,
'united arab emirates'?: number,
'united kingdom'?: number,
'united states'?: number,
'united states minor outlying islands'?: number,
uruguay?: number,
uzbekistan?: number,
vanuatu?: number,
'vatican city'?: number,
venezuela?: number,
vietnam?: number,
'wallis and futuna'?: number,
'western sahara'?: number,
yemen?: number,
zambia?: number,
zimbabwe?: number,
'Åland islands'?: number,
'åland islands'?: number,
},
employee_count_by_country?: object,
employee_count_by_month?: object,
employee_count_by_month_by_level?: object,
employee_count_by_month_by_role?: object,
Expand Down
3 changes: 2 additions & 1 deletion src/types/ip-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export interface IPResponse extends BaseResponse {
id?: string,
website?: string,
name?: string,
display_name?: string,
location?: {
name?: string,
locality?: string,
Expand All @@ -62,8 +63,8 @@ export interface IPResponse extends BaseResponse {
},
person?: {
confidence?: 'very high' | 'high' | 'moderate' | 'low' | 'very low',
job_title_sub_role?: string,
job_title_role?: string,
job_title_sub_role?: string,
job_title_levels?: Array<string>,
},
}
Expand Down
Loading
Loading