diff --git a/package.json b/package.json index 8e0f3a7..5e1b833 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/src/types/autocomplete-types.ts b/src/types/autocomplete-types.ts index 2d733c0..e37eab2 100644 --- a/src/types/autocomplete-types.ts +++ b/src/types/autocomplete-types.ts @@ -37,6 +37,9 @@ export interface AutoCompleteResponse extends BaseResponse { locality?: string; region?: string; role?: string; + alternative_names?: Array; + display_name?: string; + display_name_history?: Array; } }> } diff --git a/src/types/common-types.ts b/src/types/common-types.ts index d8451bc..90f126b 100644 --- a/src/types/common-types.ts +++ b/src/types/common-types.ts @@ -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, @@ -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, diff --git a/src/types/ip-types.ts b/src/types/ip-types.ts index 4564bb0..d33426b 100644 --- a/src/types/ip-types.ts +++ b/src/types/ip-types.ts @@ -42,6 +42,7 @@ export interface IPResponse extends BaseResponse { id?: string, website?: string, name?: string, + display_name?: string, location?: { name?: string, locality?: string, @@ -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, }, } diff --git a/yarn.lock b/yarn.lock index dbd397b..67b17d6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1314,16 +1314,16 @@ resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.1.tgz#0480eeb7221eb9bc398ad7432c9d7e14b1a5a367" integrity sha512-cJRQXpObxfNKkFAZbJl2yjWtJCqELQIdShsogr1d2MilP8dKD9TE/nEKHkJgUNHdGKCQaf9HbIynuV2csLGVLg== -"@typescript-eslint/eslint-plugin@^6.12.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.12.0.tgz#2a647d278bb48bf397fef07ba0507612ff9dd812" - integrity sha512-XOpZ3IyJUIV1b15M7HVOpgQxPPF7lGXgsfcEIu3yDxFPaf/xZKt7s9QO/pbk7vpWQyVulpJbu4E5LwpZiQo4kA== +"@typescript-eslint/eslint-plugin@^6.13.1": + version "6.13.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.13.1.tgz#f98bd887bf95551203c917e734d113bf8d527a0c" + integrity sha512-5bQDGkXaxD46bPvQt08BUz9YSaO4S0fB1LB5JHQuXTfkGPI3+UUeS387C/e9jRie5GqT8u5kFTrMvAjtX4O5kA== dependencies: "@eslint-community/regexpp" "^4.5.1" - "@typescript-eslint/scope-manager" "6.12.0" - "@typescript-eslint/type-utils" "6.12.0" - "@typescript-eslint/utils" "6.12.0" - "@typescript-eslint/visitor-keys" "6.12.0" + "@typescript-eslint/scope-manager" "6.13.1" + "@typescript-eslint/type-utils" "6.13.1" + "@typescript-eslint/utils" "6.13.1" + "@typescript-eslint/visitor-keys" "6.13.1" debug "^4.3.4" graphemer "^1.4.0" ignore "^5.2.4" @@ -1331,72 +1331,72 @@ semver "^7.5.4" ts-api-utils "^1.0.1" -"@typescript-eslint/parser@^6.12.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.12.0.tgz#9fb21ed7d88065a4a2ee21eb80b8578debb8217c" - integrity sha512-s8/jNFPKPNRmXEnNXfuo1gemBdVmpQsK1pcu+QIvuNJuhFzGrpD7WjOcvDc/+uEdfzSYpNu7U/+MmbScjoQ6vg== +"@typescript-eslint/parser@^6.13.1": + version "6.13.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.13.1.tgz#29d6d4e5fab4669e58bc15f6904b67da65567487" + integrity sha512-fs2XOhWCzRhqMmQf0eicLa/CWSaYss2feXsy7xBD/pLyWke/jCIVc2s1ikEAtSW7ina1HNhv7kONoEfVNEcdDQ== dependencies: - "@typescript-eslint/scope-manager" "6.12.0" - "@typescript-eslint/types" "6.12.0" - "@typescript-eslint/typescript-estree" "6.12.0" - "@typescript-eslint/visitor-keys" "6.12.0" + "@typescript-eslint/scope-manager" "6.13.1" + "@typescript-eslint/types" "6.13.1" + "@typescript-eslint/typescript-estree" "6.13.1" + "@typescript-eslint/visitor-keys" "6.13.1" debug "^4.3.4" -"@typescript-eslint/scope-manager@6.12.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.12.0.tgz#5833a16dbe19cfbad639d4d33bcca5e755c7044b" - integrity sha512-5gUvjg+XdSj8pcetdL9eXJzQNTl3RD7LgUiYTl8Aabdi8hFkaGSYnaS6BLc0BGNaDH+tVzVwmKtWvu0jLgWVbw== +"@typescript-eslint/scope-manager@6.13.1": + version "6.13.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.13.1.tgz#58c7c37c6a957d3d9f59bc4f64c2888e0cac1d70" + integrity sha512-BW0kJ7ceiKi56GbT2KKzZzN+nDxzQK2DS6x0PiSMPjciPgd/JRQGMibyaN2cPt2cAvuoH0oNvn2fwonHI+4QUQ== dependencies: - "@typescript-eslint/types" "6.12.0" - "@typescript-eslint/visitor-keys" "6.12.0" + "@typescript-eslint/types" "6.13.1" + "@typescript-eslint/visitor-keys" "6.13.1" -"@typescript-eslint/type-utils@6.12.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.12.0.tgz#968f7c95162808d69950ab5dff710ad730e58287" - integrity sha512-WWmRXxhm1X8Wlquj+MhsAG4dU/Blvf1xDgGaYCzfvStP2NwPQh6KBvCDbiOEvaE0filhranjIlK/2fSTVwtBng== +"@typescript-eslint/type-utils@6.13.1": + version "6.13.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.13.1.tgz#e6e5885e387841cae9c38fc0638fd8b7561973d6" + integrity sha512-A2qPlgpxx2v//3meMqQyB1qqTg1h1dJvzca7TugM3Yc2USDY+fsRBiojAEo92HO7f5hW5mjAUF6qobOPzlBCBQ== dependencies: - "@typescript-eslint/typescript-estree" "6.12.0" - "@typescript-eslint/utils" "6.12.0" + "@typescript-eslint/typescript-estree" "6.13.1" + "@typescript-eslint/utils" "6.13.1" debug "^4.3.4" ts-api-utils "^1.0.1" -"@typescript-eslint/types@6.12.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.12.0.tgz#ffc5297bcfe77003c8b7b545b51c2505748314ac" - integrity sha512-MA16p/+WxM5JG/F3RTpRIcuOghWO30//VEOvzubM8zuOOBYXsP+IfjoCXXiIfy2Ta8FRh9+IO9QLlaFQUU+10Q== +"@typescript-eslint/types@6.13.1": + version "6.13.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.13.1.tgz#b56f26130e7eb8fa1e429c75fb969cae6ad7bb5c" + integrity sha512-gjeEskSmiEKKFIbnhDXUyiqVma1gRCQNbVZ1C8q7Zjcxh3WZMbzWVfGE9rHfWd1msQtPS0BVD9Jz9jded44eKg== -"@typescript-eslint/typescript-estree@6.12.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.12.0.tgz#764ccc32598549e5b48ec99e3b85f89b1385310c" - integrity sha512-vw9E2P9+3UUWzhgjyyVczLWxZ3GuQNT7QpnIY3o5OMeLO/c8oHljGc8ZpryBMIyympiAAaKgw9e5Hl9dCWFOYw== +"@typescript-eslint/typescript-estree@6.13.1": + version "6.13.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.13.1.tgz#d01dda78d2487434d1c503853fa00291c566efa4" + integrity sha512-sBLQsvOC0Q7LGcUHO5qpG1HxRgePbT6wwqOiGLpR8uOJvPJbfs0mW3jPA3ujsDvfiVwVlWUDESNXv44KtINkUQ== dependencies: - "@typescript-eslint/types" "6.12.0" - "@typescript-eslint/visitor-keys" "6.12.0" + "@typescript-eslint/types" "6.13.1" + "@typescript-eslint/visitor-keys" "6.13.1" debug "^4.3.4" globby "^11.1.0" is-glob "^4.0.3" semver "^7.5.4" ts-api-utils "^1.0.1" -"@typescript-eslint/utils@6.12.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.12.0.tgz#c6ce8c06fe9b0212620e5674a2036f6f8f611754" - integrity sha512-LywPm8h3tGEbgfyjYnu3dauZ0U7R60m+miXgKcZS8c7QALO9uWJdvNoP+duKTk2XMWc7/Q3d/QiCuLN9X6SWyQ== +"@typescript-eslint/utils@6.13.1": + version "6.13.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.13.1.tgz#925b3a2453a71ada914ae329b7bb7e7d96634b2f" + integrity sha512-ouPn/zVoan92JgAegesTXDB/oUp6BP1v8WpfYcqh649ejNc9Qv+B4FF2Ff626kO1xg0wWwwG48lAJ4JuesgdOw== dependencies: "@eslint-community/eslint-utils" "^4.4.0" "@types/json-schema" "^7.0.12" "@types/semver" "^7.5.0" - "@typescript-eslint/scope-manager" "6.12.0" - "@typescript-eslint/types" "6.12.0" - "@typescript-eslint/typescript-estree" "6.12.0" + "@typescript-eslint/scope-manager" "6.13.1" + "@typescript-eslint/types" "6.13.1" + "@typescript-eslint/typescript-estree" "6.13.1" semver "^7.5.4" -"@typescript-eslint/visitor-keys@6.12.0": - version "6.12.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.12.0.tgz#5877950de42a0f3344261b7a1eee15417306d7e9" - integrity sha512-rg3BizTZHF1k3ipn8gfrzDXXSFKyOEB5zxYXInQ6z0hUvmQlhaZQzK+YmHmNViMA9HzW5Q9+bPPt90bU6GQwyw== +"@typescript-eslint/visitor-keys@6.13.1": + version "6.13.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.13.1.tgz#c4b692dcc23a4fc60685b718f10fde789d65a540" + integrity sha512-NDhQUy2tg6XGNBGDRm1XybOHSia8mcXmlbKWoQP+nm1BIIMxa55shyJfZkHpEBN62KNPLrocSM2PdPcaLgDKMQ== dependencies: - "@typescript-eslint/types" "6.12.0" + "@typescript-eslint/types" "6.13.1" eslint-visitor-keys "^3.4.1" "@ungap/structured-clone@^1.2.0":