@auxcode/auxta 1.3.30 → 1.3.31

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.
@@ -15,8 +15,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.EmailHelper = void 0;
16
16
  const log_service_1 = __importDefault(require("../../auxta/services/log.service"));
17
17
  const AuxGoogleAuth_1 = require("./AuxGoogleAuth");
18
- const base64 = require('js-base64');
19
18
  const AuxTA_1 = require("../../AuxTA");
19
+ const base64 = require('js-base64');
20
20
  const MailComposer = require('nodemailer/lib/mail-composer');
21
21
  class EmailHelper {
22
22
  verifyEmail(from_name, from_email, subject, body, link = false) {
@@ -26,7 +26,7 @@ class EmailHelper {
26
26
  while (timeoutCount <= 60000) {
27
27
  const res = yield AuxGoogleAuth_1.AuxGoogleAuth.gmailClient.users.messages.list({
28
28
  userId: "me",
29
- maxResults: 1
29
+ maxResults: 3
30
30
  });
31
31
  const messagesIds = res.data.messages;
32
32
  if (!messagesIds || messagesIds.length === 0) {
@@ -56,7 +56,11 @@ class EmailHelper {
56
56
  });
57
57
  if (link) {
58
58
  const html_link = yield this.getUrl(message_body);
59
- return { id: gmailResponse.data.id, threadId: gmailResponse.data.threadId, link: html_link };
59
+ return {
60
+ id: gmailResponse.data.id,
61
+ threadId: gmailResponse.data.threadId,
62
+ link: html_link
63
+ };
60
64
  }
61
65
  return { id: gmailResponse.data.id, threadId: gmailResponse.data.threadId, link: '' };
62
66
  }
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import log from "../../auxta/services/log.service";
11
11
  import { AuxGoogleAuth } from "./AuxGoogleAuth";
12
- const base64 = require('js-base64');
13
12
  import { StepStatus } from "../../AuxTA";
13
+ const base64 = require('js-base64');
14
14
  const MailComposer = require('nodemailer/lib/mail-composer');
15
15
  export class EmailHelper {
16
16
  verifyEmail(from_name, from_email, subject, body, link = false) {
@@ -20,7 +20,7 @@ export class EmailHelper {
20
20
  while (timeoutCount <= 60000) {
21
21
  const res = yield AuxGoogleAuth.gmailClient.users.messages.list({
22
22
  userId: "me",
23
- maxResults: 1
23
+ maxResults: 3
24
24
  });
25
25
  const messagesIds = res.data.messages;
26
26
  if (!messagesIds || messagesIds.length === 0) {
@@ -50,7 +50,11 @@ export class EmailHelper {
50
50
  });
51
51
  if (link) {
52
52
  const html_link = yield this.getUrl(message_body);
53
- return { id: gmailResponse.data.id, threadId: gmailResponse.data.threadId, link: html_link };
53
+ return {
54
+ id: gmailResponse.data.id,
55
+ threadId: gmailResponse.data.threadId,
56
+ link: html_link
57
+ };
54
58
  }
55
59
  return { id: gmailResponse.data.id, threadId: gmailResponse.data.threadId, link: '' };
56
60
  }