@memberjunction/actions-peopledatalabs 0.0.0 → 6.2.0-edge.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +183 -0
- package/README.md +90 -43
- package/dist/PDLEnrichPeopleAction.d.ts +20 -0
- package/dist/PDLEnrichPeopleAction.d.ts.map +1 -0
- package/dist/PDLEnrichPeopleAction.js +104 -0
- package/dist/PDLEnrichPeopleAction.js.map +1 -0
- package/dist/PDLPersonClient.d.ts +164 -0
- package/dist/PDLPersonClient.d.ts.map +1 -0
- package/dist/PDLPersonClient.js +257 -0
- package/dist/PDLPersonClient.js.map +1 -0
- package/dist/config.d.ts +7 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +7 -0
- package/dist/config.js.map +1 -0
- package/dist/credentials.d.ts +32 -0
- package/dist/credentials.d.ts.map +1 -0
- package/dist/credentials.js +121 -0
- package/dist/credentials.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/params.d.ts +18 -0
- package/dist/params.d.ts.map +1 -0
- package/dist/params.js +50 -0
- package/dist/params.js.map +1 -0
- package/dist/pdl.types.d.ts +108 -0
- package/dist/pdl.types.d.ts.map +1 -0
- package/dist/pdl.types.js +10 -0
- package/dist/pdl.types.js.map +1 -0
- package/package.json +30 -8
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* People Data Labs v5 payload shapes, limited to what this package reads. Field names follow the
|
|
3
|
+
* vendor's JSON, so they keep the vendor's snake_case.
|
|
4
|
+
*
|
|
5
|
+
* Shapes were confirmed against live responses on 2026-10-12 (plan Phase 0); the redacted fixtures
|
|
6
|
+
* under `__tests__/fixtures/` are those responses.
|
|
7
|
+
*/
|
|
8
|
+
export interface PDLSchool {
|
|
9
|
+
name: string | null;
|
|
10
|
+
type: string | null;
|
|
11
|
+
id: string | null;
|
|
12
|
+
website: string | null;
|
|
13
|
+
domain: string | null;
|
|
14
|
+
linkedin_url: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface PDLEducationRaw {
|
|
17
|
+
school: PDLSchool | null;
|
|
18
|
+
degrees: string[] | null;
|
|
19
|
+
majors: string[] | null;
|
|
20
|
+
minors: string[] | null;
|
|
21
|
+
gpa: number | null;
|
|
22
|
+
/** `YYYY`, `YYYY-MM` or `YYYY-MM-DD`, or null. */
|
|
23
|
+
start_date: string | null;
|
|
24
|
+
end_date: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface PDLCompany {
|
|
27
|
+
name: string | null;
|
|
28
|
+
id: string | null;
|
|
29
|
+
/** A bare domain, e.g. `un.org`. */
|
|
30
|
+
website: string | null;
|
|
31
|
+
industry: string | null;
|
|
32
|
+
size: string | null;
|
|
33
|
+
linkedin_url: string | null;
|
|
34
|
+
}
|
|
35
|
+
export interface PDLExperienceRaw {
|
|
36
|
+
company: PDLCompany | null;
|
|
37
|
+
title: {
|
|
38
|
+
name: string | null;
|
|
39
|
+
role: string | null;
|
|
40
|
+
sub_role: string | null;
|
|
41
|
+
levels: string[] | null;
|
|
42
|
+
} | null;
|
|
43
|
+
start_date: string | null;
|
|
44
|
+
end_date: string | null;
|
|
45
|
+
/** True on the current job. */
|
|
46
|
+
is_primary: boolean | null;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The person record. Only the fields this package maps are typed; PDL sends many more (emails,
|
|
50
|
+
* phones, addresses) which the client never reads.
|
|
51
|
+
*/
|
|
52
|
+
export interface PDLPersonRaw {
|
|
53
|
+
id: string | null;
|
|
54
|
+
linkedin_url: string | null;
|
|
55
|
+
education: PDLEducationRaw[] | null;
|
|
56
|
+
experience: PDLExperienceRaw[] | null;
|
|
57
|
+
}
|
|
58
|
+
export interface PDLErrorBody {
|
|
59
|
+
type: string | string[];
|
|
60
|
+
message: string;
|
|
61
|
+
}
|
|
62
|
+
/** One element of the bulk response array, in request order. */
|
|
63
|
+
export interface PDLBulkItemRaw {
|
|
64
|
+
status: number;
|
|
65
|
+
likelihood?: number;
|
|
66
|
+
data?: PDLPersonRaw;
|
|
67
|
+
error?: PDLErrorBody;
|
|
68
|
+
/** Echo of `requests[i].metadata`. */
|
|
69
|
+
metadata?: Record<string, unknown>;
|
|
70
|
+
}
|
|
71
|
+
export interface PDLSearchResponseRaw {
|
|
72
|
+
status: number;
|
|
73
|
+
data?: PDLPersonRaw[];
|
|
74
|
+
total?: number;
|
|
75
|
+
scroll_token?: string | null;
|
|
76
|
+
error?: PDLErrorBody;
|
|
77
|
+
}
|
|
78
|
+
export interface PDLAutocompleteItemRaw {
|
|
79
|
+
name: string;
|
|
80
|
+
count?: number;
|
|
81
|
+
meta?: {
|
|
82
|
+
id?: string;
|
|
83
|
+
website?: string;
|
|
84
|
+
location_name?: string;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
export interface PDLAutocompleteResponseRaw {
|
|
88
|
+
status: number;
|
|
89
|
+
data?: PDLAutocompleteItemRaw[];
|
|
90
|
+
error?: PDLErrorBody;
|
|
91
|
+
}
|
|
92
|
+
export interface PDLSchoolCleanResponseRaw {
|
|
93
|
+
status: number;
|
|
94
|
+
name?: string;
|
|
95
|
+
id?: string;
|
|
96
|
+
type?: string;
|
|
97
|
+
website?: string;
|
|
98
|
+
error?: PDLErrorBody;
|
|
99
|
+
}
|
|
100
|
+
/** Headers PDL sets on every response. Values are strings; the rate-limit ones hold JSON per window. */
|
|
101
|
+
export interface PDLResponseHeaders {
|
|
102
|
+
creditsSpent: number | null;
|
|
103
|
+
creditsType: string | null;
|
|
104
|
+
rateLimitRemaining: string | null;
|
|
105
|
+
rateLimitReset: string | null;
|
|
106
|
+
totalLimitRemaining: number | null;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=pdl.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdl.types.d.ts","sourceRoot":"","sources":["../src/pdl.types.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AAA;KAAE,CAAC;CACpE;AAGD,MAAM,WAAW,0BAA0B;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAChC,KAAK,CAAC,EAAE,YAAY,CAAC;CACxB;AAGD,MAAM,WAAW,yBAAyB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,YAAY,CAAC;CACxB;AAED,wGAAwG;AACxG,MAAM,WAAW,kBAAkB;IAC/B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;CACtC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* People Data Labs v5 payload shapes, limited to what this package reads. Field names follow the
|
|
3
|
+
* vendor's JSON, so they keep the vendor's snake_case.
|
|
4
|
+
*
|
|
5
|
+
* Shapes were confirmed against live responses on 2026-10-12 (plan Phase 0); the redacted fixtures
|
|
6
|
+
* under `__tests__/fixtures/` are those responses.
|
|
7
|
+
*/
|
|
8
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=pdl.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdl.types.js","sourceRoot":"","sources":["../src/pdl.types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,yDAAyD"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/actions-peopledatalabs",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "6.2.0-edge.4",
|
|
5
|
+
"description": "A table-agnostic People Data Labs client (bulk person enrichment, person search, school lookup) and a thin Action that returns data and writes nothing",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"/dist"
|
|
10
|
+
],
|
|
11
|
+
"author": "MemberJunction.com",
|
|
12
|
+
"license": "BUSL-1.1",
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"typescript": "^5.9.3"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@memberjunction/actions": "6.2.0-edge.4",
|
|
18
|
+
"@memberjunction/actions-base": "6.2.0-edge.4",
|
|
19
|
+
"@memberjunction/core": "6.2.0-edge.4",
|
|
20
|
+
"@memberjunction/core-entities": "6.2.0-edge.4",
|
|
21
|
+
"@memberjunction/credentials": "6.2.0-edge.4",
|
|
22
|
+
"@memberjunction/global": "6.2.0-edge.4"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://github.com/MemberJunction/MJ"
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsc && tsc-alias -f",
|
|
30
|
+
"test": "vitest run"
|
|
31
|
+
}
|
|
32
|
+
}
|