Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
vvillait88 committed Jul 20, 2022
1 parent df3a8d4 commit d4b3400
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "peopledatalabs",
"version": "3.1.5",
"version": "3.1.6",
"description": "JavaScript client with TypeScript support for the People Data Labs API",
"type": "module",
"main": "dist/index.cjs",
Expand Down
2 changes: 1 addition & 1 deletion src/types/autocomplete-types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BaseResponse } from './api-types';

type AutoCompleteField =
export type AutoCompleteField =
'company' |
'country' |
'industry' |
Expand Down
4 changes: 2 additions & 2 deletions src/types/bulk-types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PersonEnrichmentParams, PersonEnrichmentResponse } from './enrichment-types';
import { RateLimit } from './api-types';

interface BulkPersonEnrichmentRequest {
export interface BulkPersonEnrichmentRequest {
params: PersonEnrichmentParams,
metadata?: unknown // The user can define their own custom metadata
}
Expand All @@ -10,7 +10,7 @@ export interface BulkPersonEnrichmentParams {
requests: Array<BulkPersonEnrichmentRequest>
}

interface BulkPersonEnrichmentResponseItem extends PersonEnrichmentResponse {
export interface BulkPersonEnrichmentResponseItem extends PersonEnrichmentResponse {
metadata?: unknown
}

Expand Down
20 changes: 10 additions & 10 deletions src/types/common-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ export interface LocationResponse {
geo?: string
}

interface PersonEmailResponse {
export interface PersonEmailResponse {
address?: string,
type?: string,
first_seen?: string,
last_seen?: string,
num_sources?: number
}

interface PersonExperienceResponse {
export interface PersonExperienceResponse {
company?: {
name?: string,
size?: string,
Expand Down Expand Up @@ -53,7 +53,7 @@ interface PersonExperienceResponse {
last_seen?: string
}

interface PersonEducationResponse {
export interface PersonEducationResponse {
school?: {
name?: string,
type?: string,
Expand All @@ -77,7 +77,7 @@ interface PersonEducationResponse {
summary?: string
}

interface PersonProfileResponse {
export interface PersonProfileResponse {
network?: string,
id?: string,
url?: string,
Expand All @@ -87,14 +87,14 @@ interface PersonProfileResponse {
num_sources?: number
}

interface PersonPhoneResponse {
export interface PersonPhoneResponse {
number?: string,
first_seen?: string,
last_seen?: string,
num_sources?: number
}

interface PersonStreetAddressResponse {
export interface PersonStreetAddressResponse {
street_address?: string,
address_line_2?: string,
name?: string,
Expand All @@ -110,25 +110,25 @@ interface PersonStreetAddressResponse {
num_sources?: number
}

interface PersonCertificateResponse {
export interface PersonCertificateResponse {
start_date?: string,
end_date?: string,
name?: string,
organization?: string
}

interface PersonBirthdateResponse {
export interface PersonBirthdateResponse {
month?: string,
day?: string,
year?: string
}

interface PersonLanguageResponse {
export interface PersonLanguageResponse {
name?: string,
proficiency?: number
}

interface PersonJobHistoryResponse {
export interface PersonJobHistoryResponse {
company_id?: string,
company_name?: string,
title?: string,
Expand Down
4 changes: 2 additions & 2 deletions src/types/enrichment-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { CompanyResponse, PersonResponse } from './common-types';

export type EnrichmentType = 'company' | 'person';

interface EnrichmentAdditionalParams {
export interface EnrichmentAdditionalParams {
titlecase?: boolean;
include_if_matched?: boolean;
min_likelihood?: number;
Expand Down Expand Up @@ -47,7 +47,7 @@ export interface PersonEnrichmentResponse extends BaseResponse {
/* ------------------------- Company ------------------------ */
/* ---------------------------------------------------------- */

interface CompanyEnrichmentRequiredParams {
export interface CompanyEnrichmentRequiredParams {
name: string,
profile: string,
ticker: string,
Expand Down
2 changes: 1 addition & 1 deletion src/types/identify-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BaseResponse } from './api-types';
import { PersonResponse } from './common-types';
import { RequireAtLeastOne } from './utility-types';

type IdentifyRequiredParams = RequireAtLeastOne<{
export type IdentifyRequiredParams = RequireAtLeastOne<{
name: string,
first_name: string,
last_name: string,
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"module": "ESNext",
"target": "ESNext"
},
"include": ["src/**/*", "tests", "example"],
"exclude": ["dist", "node_modules"]
"include": ["src/**/*"],
"exclude": ["dist", "node_modules", "tests", "example"]
}

0 comments on commit d4b3400

Please sign in to comment.