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 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
- export { Leadmeteor } from "./types";
14
- export default Leadmeteor;
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
- // Exports
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 { Leadmeteor } from "../types";
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: Leadmeteor.Domains.DomainLookupParams): Promise<Leadmeteor.Domains.DomainLookup>;
6
+ lookup(params: Domains.DomainLookupParams): Promise<Domains.DomainLookup>;
7
7
  }
@@ -1,9 +1,9 @@
1
1
  import type { Client } from "../client";
2
- import type { Leadmeteor } from "../types";
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: Leadmeteor.Emails.EmailVerificationParams): Promise<Leadmeteor.Emails.EmailVerification>;
7
- lookup(params: Leadmeteor.Emails.LookupParams): Promise<unknown>;
8
- search(params: Leadmeteor.Emails.SearchParams): Promise<unknown>;
6
+ verify(params: Emails.EmailVerificationParams): Promise<Emails.EmailVerification>;
7
+ lookup(params: Emails.LookupParams): Promise<unknown>;
8
+ search(params: Emails.SearchParams): Promise<unknown>;
9
9
  }
@@ -1,60 +1,2 @@
1
- export declare namespace Leadmeteor {
2
- namespace Emails {
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";
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
- // Auto-generated from our API
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leadmeteor",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Official Leadmeteor SDK for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",