@adtrackify/at-service-common 3.2.23 → 3.2.24

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.
@@ -0,0 +1,30 @@
1
+ import { EMAIL_STATUS } from '@adtrackify/at-tracking-event-types';
2
+ import { ApiResponse } from '../../types/api-response';
3
+ export interface EmailableVerifyEmailResponse {
4
+ accept_all: boolean;
5
+ did_you_mean: string | null;
6
+ disposable: boolean;
7
+ domain: string;
8
+ duration: number;
9
+ email: string;
10
+ first_name: string | null;
11
+ free: boolean;
12
+ full_name: string | null;
13
+ gender: string | null;
14
+ last_name: string | null;
15
+ mailbox_full: boolean;
16
+ mx_record: string;
17
+ no_reply: boolean;
18
+ reason: string;
19
+ role: boolean;
20
+ score: number;
21
+ smtp_provider: string;
22
+ state: EMAIL_STATUS;
23
+ tag: string | null;
24
+ user: string;
25
+ }
26
+ export declare class EmailableClient {
27
+ private EMAILABLE_API_KEY;
28
+ constructor(emailableApiKey: string);
29
+ verifyEmail: (email: string) => Promise<ApiResponse<EmailableVerifyEmailResponse>>;
30
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmailableClient = void 0;
4
+ const generic_1 = require("../generic");
5
+ const EMAILABLE_API_URL = 'https://api.emailable.com/v1';
6
+ const client = (0, generic_1.axiosHttpService)({
7
+ baseURL: EMAILABLE_API_URL
8
+ });
9
+ class EmailableClient {
10
+ EMAILABLE_API_KEY;
11
+ constructor(emailableApiKey) {
12
+ this.EMAILABLE_API_KEY = emailableApiKey;
13
+ }
14
+ verifyEmail = async (email) => {
15
+ const response = await client.get('/verify', { params: { api_key: this.EMAILABLE_API_KEY, email } });
16
+ return response;
17
+ };
18
+ }
19
+ exports.EmailableClient = EmailableClient;
20
+ //# sourceMappingURL=emailable-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emailable-client.js","sourceRoot":"","sources":["../../../../src/clients/third-party/emailable-client.ts"],"names":[],"mappings":";;;AACA,wCAA8C;AA2B9C,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;AACzD,MAAM,MAAM,GAAG,IAAA,0BAAgB,EAAC;IAC9B,OAAO,EAAE,iBAAiB;CAC3B,CAAC,CAAC;AAEH,MAAa,eAAe;IAClB,iBAAiB,CAAS;IAElC,YAAY,eAAuB;QACjC,IAAI,CAAC,iBAAiB,GAAG,eAAe,CAAC;IAC3C,CAAC;IAEM,WAAW,GAAG,KAAK,EAAE,KAAa,EAAsD,EAAE;QAC/F,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QACrG,OAAO,QAAqD,CAAC;IAC/D,CAAC,CAAA;CACF;AAXD,0CAWC"}
@@ -1 +1,2 @@
1
1
  export * from './shopify-client.js';
2
+ export * from './emailable-client.js';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./shopify-client.js"), exports);
18
+ __exportStar(require("./emailable-client.js"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/clients/third-party/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/clients/third-party/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,wDAAsC"}
@@ -0,0 +1,30 @@
1
+ import { EMAIL_STATUS } from '@adtrackify/at-tracking-event-types';
2
+ import { ApiResponse } from '../../types/api-response';
3
+ export interface EmailableVerifyEmailResponse {
4
+ accept_all: boolean;
5
+ did_you_mean: string | null;
6
+ disposable: boolean;
7
+ domain: string;
8
+ duration: number;
9
+ email: string;
10
+ first_name: string | null;
11
+ free: boolean;
12
+ full_name: string | null;
13
+ gender: string | null;
14
+ last_name: string | null;
15
+ mailbox_full: boolean;
16
+ mx_record: string;
17
+ no_reply: boolean;
18
+ reason: string;
19
+ role: boolean;
20
+ score: number;
21
+ smtp_provider: string;
22
+ state: EMAIL_STATUS;
23
+ tag: string | null;
24
+ user: string;
25
+ }
26
+ export declare class EmailableClient {
27
+ private EMAILABLE_API_KEY;
28
+ constructor(emailableApiKey: string);
29
+ verifyEmail: (email: string) => Promise<ApiResponse<EmailableVerifyEmailResponse>>;
30
+ }
@@ -0,0 +1,16 @@
1
+ import { axiosHttpService } from '../generic';
2
+ const EMAILABLE_API_URL = 'https://api.emailable.com/v1';
3
+ const client = axiosHttpService({
4
+ baseURL: EMAILABLE_API_URL
5
+ });
6
+ export class EmailableClient {
7
+ EMAILABLE_API_KEY;
8
+ constructor(emailableApiKey) {
9
+ this.EMAILABLE_API_KEY = emailableApiKey;
10
+ }
11
+ verifyEmail = async (email) => {
12
+ const response = await client.get('/verify', { params: { api_key: this.EMAILABLE_API_KEY, email } });
13
+ return response;
14
+ };
15
+ }
16
+ //# sourceMappingURL=emailable-client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emailable-client.js","sourceRoot":"","sources":["../../../../src/clients/third-party/emailable-client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AA2B9C,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;AACzD,MAAM,MAAM,GAAG,gBAAgB,CAAC;IAC9B,OAAO,EAAE,iBAAiB;CAC3B,CAAC,CAAC;AAEH,MAAM,OAAO,eAAe;IAClB,iBAAiB,CAAS;IAElC,YAAY,eAAuB;QACjC,IAAI,CAAC,iBAAiB,GAAG,eAAe,CAAC;IAC3C,CAAC;IAEM,WAAW,GAAG,KAAK,EAAE,KAAa,EAAsD,EAAE;QAC/F,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,iBAAiB,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QACrG,OAAO,QAAqD,CAAC;IAC/D,CAAC,CAAA;CACF"}
@@ -1 +1,2 @@
1
1
  export * from './shopify-client.js';
2
+ export * from './emailable-client.js';
@@ -1,2 +1,3 @@
1
1
  export * from './shopify-client.js';
2
+ export * from './emailable-client.js';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/clients/third-party/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/clients/third-party/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adtrackify/at-service-common",
3
- "version": "3.2.23",
3
+ "version": "3.2.24",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist/*"