leadmeteor 0.0.3 → 0.0.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/dist/index.d.ts +5 -1
- package/dist/index.js +2 -0
- package/dist/resources/domains.d.ts +2 -2
- package/dist/resources/emails.d.ts +4 -4
- package/dist/types/index.d.ts +2 -60
- package/dist/types/index.js +0 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,5 +10,9 @@ declare class Leadmeteor {
|
|
|
10
10
|
readonly people: PeopleResource;
|
|
11
11
|
constructor(apiKey: string, options?: Omit<ClientOptions, "apiKey">);
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
import * as LeadmeteorTypes from "./types";
|
|
14
|
+
declare namespace Leadmeteor {
|
|
15
|
+
export import Emails = LeadmeteorTypes.Emails;
|
|
16
|
+
export import Domains = LeadmeteorTypes.Domains;
|
|
17
|
+
}
|
|
14
18
|
export default Leadmeteor;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Client } from "../client";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Domains } from "../types";
|
|
3
3
|
export declare class DomainsResource {
|
|
4
4
|
private readonly client;
|
|
5
5
|
constructor(client: Client);
|
|
6
|
-
lookup(params:
|
|
6
|
+
lookup(params: Domains.DomainLookupParams): Promise<Domains.DomainLookup>;
|
|
7
7
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Client } from "../client";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Emails } from "../types";
|
|
3
3
|
export declare class EmailsResource {
|
|
4
4
|
private readonly client;
|
|
5
5
|
constructor(client: Client);
|
|
6
|
-
verify(params:
|
|
7
|
-
lookup(params:
|
|
8
|
-
search(params:
|
|
6
|
+
verify(params: Emails.EmailVerificationParams): Promise<Emails.EmailVerification>;
|
|
7
|
+
lookup(params: Emails.LookupParams): Promise<unknown>;
|
|
8
|
+
search(params: Emails.SearchParams): Promise<unknown>;
|
|
9
9
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,60 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
type EmailVerificationParams = {
|
|
4
|
-
email: string;
|
|
5
|
-
};
|
|
6
|
-
type EmailVerification = {
|
|
7
|
-
email: string;
|
|
8
|
-
status: string;
|
|
9
|
-
checks: {
|
|
10
|
-
format: {
|
|
11
|
-
status: string;
|
|
12
|
-
passed: boolean;
|
|
13
|
-
reason?: string;
|
|
14
|
-
};
|
|
15
|
-
dns: {
|
|
16
|
-
status: string;
|
|
17
|
-
passed: boolean;
|
|
18
|
-
reason?: string;
|
|
19
|
-
};
|
|
20
|
-
mx: {
|
|
21
|
-
status: string;
|
|
22
|
-
passed: boolean;
|
|
23
|
-
reason?: string;
|
|
24
|
-
};
|
|
25
|
-
smtp: {
|
|
26
|
-
status: string;
|
|
27
|
-
passed: boolean;
|
|
28
|
-
reason?: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
is_disposable: boolean;
|
|
32
|
-
is_free_provider: boolean;
|
|
33
|
-
is_role_based: boolean;
|
|
34
|
-
id: string;
|
|
35
|
-
object: string;
|
|
36
|
-
created_at: number;
|
|
37
|
-
};
|
|
38
|
-
type LookupParams = EmailVerificationParams | {
|
|
39
|
-
name: string;
|
|
40
|
-
company: string;
|
|
41
|
-
} | {
|
|
42
|
-
linkedin_url: string;
|
|
43
|
-
};
|
|
44
|
-
type SearchParams = {
|
|
45
|
-
domain: string;
|
|
46
|
-
email?: string;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
namespace Domains {
|
|
50
|
-
type DomainLookupParams = {
|
|
51
|
-
domain: string;
|
|
52
|
-
};
|
|
53
|
-
type DomainLookup = {
|
|
54
|
-
domain: string;
|
|
55
|
-
expires_at?: string;
|
|
56
|
-
registered_at?: string;
|
|
57
|
-
registrar?: string;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
}
|
|
1
|
+
export { Emails } from "./emails";
|
|
2
|
+
export { Domains } from "./domains";
|
package/dist/types/index.js
CHANGED