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 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";
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
@@ -18,6 +18,8 @@ class Leadmeteor {
18
18
  this.domains = new domains_1.DomainsResource(client);
19
19
  }
20
20
  }
21
+ (function (Leadmeteor) {
22
+ })(Leadmeteor || (Leadmeteor = {}));
21
23
  // Exports
22
24
  module.exports = Leadmeteor;
23
25
  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.4",
4
4
  "description": "Official Leadmeteor SDK for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",