leadmeteor 0.0.3 → 0.0.5
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 +6 -2
- package/dist/index.js +2 -3
- 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
|
-
|
|
14
|
-
|
|
13
|
+
import * as LeadmeteorTypes from "./types";
|
|
14
|
+
declare namespace Leadmeteor {
|
|
15
|
+
export import Emails = LeadmeteorTypes.Emails;
|
|
16
|
+
export import Domains = LeadmeteorTypes.Domains;
|
|
17
|
+
}
|
|
18
|
+
export = Leadmeteor;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
2
|
const client_1 = require("./client");
|
|
4
3
|
const emails_1 = require("./resources/emails");
|
|
5
4
|
const domains_1 = require("./resources/domains");
|
|
@@ -18,6 +17,6 @@ class Leadmeteor {
|
|
|
18
17
|
this.domains = new domains_1.DomainsResource(client);
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
|
-
|
|
20
|
+
(function (Leadmeteor) {
|
|
21
|
+
})(Leadmeteor || (Leadmeteor = {}));
|
|
22
22
|
module.exports = Leadmeteor;
|
|
23
|
-
exports.default = Leadmeteor;
|
|
@@ -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