leadmeteor 0.0.2 → 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 +13 -22
- package/dist/index.js +16 -24
- package/dist/resources/companies.d.ts +1 -1
- package/dist/resources/companies.js +3 -3
- package/dist/resources/domains.d.ts +1 -1
- package/dist/resources/emails.d.ts +1 -1
- package/dist/resources/people.d.ts +1 -1
- package/dist/resources/people.js +3 -3
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +0 -17
- package/package.json +4 -10
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,18 @@
|
|
|
1
1
|
import { type ClientOptions } from "./client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
emails:
|
|
8
|
-
|
|
9
|
-
companies:
|
|
10
|
-
|
|
2
|
+
import { EmailsResource } from "./resources/emails";
|
|
3
|
+
import { DomainsResource } from "./resources/domains";
|
|
4
|
+
import { CompaniesResource } from "./resources/companies";
|
|
5
|
+
import { PeopleResource } from "./resources/people";
|
|
6
|
+
declare class Leadmeteor {
|
|
7
|
+
readonly emails: EmailsResource;
|
|
8
|
+
readonly domains: DomainsResource;
|
|
9
|
+
readonly companies: CompaniesResource;
|
|
10
|
+
readonly people: PeopleResource;
|
|
11
|
+
constructor(apiKey: string, options?: Omit<ClientOptions, "apiKey">);
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
+
import * as LeadmeteorTypes from "./types";
|
|
13
14
|
declare namespace Leadmeteor {
|
|
14
|
-
export import Emails =
|
|
15
|
-
|
|
16
|
-
verify(params: Emails.EmailVerificationParams): Promise<Emails.EmailVerification>;
|
|
17
|
-
lookup(params: Emails.LookupParams): Promise<unknown>;
|
|
18
|
-
search(params: Emails.SearchParams): Promise<unknown>;
|
|
19
|
-
}
|
|
20
|
-
export import Domains = _DomainsModule.Domains;
|
|
21
|
-
interface Domains {
|
|
22
|
-
lookup(params: Domains.DomainLookupParams): Promise<Domains.DomainLookup>;
|
|
23
|
-
}
|
|
15
|
+
export import Emails = LeadmeteorTypes.Emails;
|
|
16
|
+
export import Domains = LeadmeteorTypes.Domains;
|
|
24
17
|
}
|
|
25
18
|
export default Leadmeteor;
|
|
26
|
-
export { Leadmeteor };
|
|
27
|
-
export { LeadmeteorError } from "./error";
|
package/dist/index.js
CHANGED
|
@@ -1,33 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LeadmeteorError = void 0;
|
|
4
|
-
exports.Leadmeteor = Leadmeteor;
|
|
5
3
|
const client_1 = require("./client");
|
|
6
4
|
const emails_1 = require("./resources/emails");
|
|
7
|
-
const people_1 = require("./resources/people");
|
|
8
|
-
const companies_1 = require("./resources/companies");
|
|
9
5
|
const domains_1 = require("./resources/domains");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
const companies_1 = require("./resources/companies");
|
|
7
|
+
const people_1 = require("./resources/people");
|
|
8
|
+
class Leadmeteor {
|
|
9
|
+
emails;
|
|
10
|
+
domains;
|
|
11
|
+
companies;
|
|
12
|
+
people;
|
|
13
|
+
constructor(apiKey, options) {
|
|
14
|
+
const client = new client_1.Client({ apiKey, ...options });
|
|
15
|
+
this.emails = new emails_1.EmailsResource(client);
|
|
16
|
+
this.people = new people_1.PeopleResource(client);
|
|
17
|
+
this.companies = new companies_1.CompaniesResource(client);
|
|
18
|
+
this.domains = new domains_1.DomainsResource(client);
|
|
13
19
|
}
|
|
14
|
-
const client = new client_1.Client({ apiKey, ...options });
|
|
15
|
-
this.emails = new emails_1.EmailsResource(client);
|
|
16
|
-
this.people = new people_1.People(client);
|
|
17
|
-
this.companies = new companies_1.Companies(client);
|
|
18
|
-
this.domains = new domains_1.DomainsResource(client);
|
|
19
|
-
return this;
|
|
20
20
|
}
|
|
21
21
|
(function (Leadmeteor) {
|
|
22
|
-
})(Leadmeteor || (
|
|
23
|
-
|
|
24
|
-
var error_1 = require("./error");
|
|
25
|
-
Object.defineProperty(exports, "LeadmeteorError", { enumerable: true, get: function () { return error_1.LeadmeteorError; } });
|
|
26
|
-
// Support both CJS patterns:
|
|
27
|
-
// const Leadmeteor = require('leadmeteor'); new Leadmeteor('sk_test_...');
|
|
28
|
-
// const leadmeteor = require('leadmeteor')('sk_test_...');
|
|
22
|
+
})(Leadmeteor || (Leadmeteor = {}));
|
|
23
|
+
// Exports
|
|
29
24
|
module.exports = Leadmeteor;
|
|
30
|
-
|
|
31
|
-
module.exports.Leadmeteor = Leadmeteor;
|
|
32
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
33
|
-
module.exports.LeadmeteorError = require("./error").LeadmeteorError;
|
|
25
|
+
exports.default = Leadmeteor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
class
|
|
3
|
+
exports.CompaniesResource = void 0;
|
|
4
|
+
class CompaniesResource {
|
|
5
5
|
client;
|
|
6
6
|
constructor(client) {
|
|
7
7
|
this.client = client;
|
|
@@ -13,4 +13,4 @@ class Companies {
|
|
|
13
13
|
return this.client.request("GET", "/v1/companies/search", params);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
16
|
+
exports.CompaniesResource = CompaniesResource;
|
package/dist/resources/people.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
class
|
|
3
|
+
exports.PeopleResource = void 0;
|
|
4
|
+
class PeopleResource {
|
|
5
5
|
client;
|
|
6
6
|
constructor(client) {
|
|
7
7
|
this.client = client;
|
|
@@ -13,4 +13,4 @@ class People {
|
|
|
13
13
|
return this.client.request("GET", "/v1/people/search", params);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
16
|
+
exports.PeopleResource = PeopleResource;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export { Emails } from "./emails";
|
|
2
|
+
export { Domains } from "./domains";
|
package/dist/types/index.js
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Auto-generated from our API
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
-
};
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
__exportStar(require("./emails"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "leadmeteor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Official Leadmeteor SDK for Node.js",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,18 +14,12 @@
|
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
16
16
|
"leadmeteor",
|
|
17
|
-
"lead",
|
|
18
|
-
"leads",
|
|
19
|
-
"email",
|
|
20
|
-
"emails",
|
|
21
17
|
"email verification",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"js",
|
|
25
|
-
"node",
|
|
26
|
-
"sdk"
|
|
18
|
+
"bulk emails checker",
|
|
19
|
+
"leads verifier"
|
|
27
20
|
],
|
|
28
21
|
"license": "MIT",
|
|
22
|
+
"dependencies": {},
|
|
29
23
|
"devDependencies": {
|
|
30
24
|
"@types/node": "^25.5.0",
|
|
31
25
|
"typescript": "^5.9.3"
|