@auxcode/auxta 1.3.19-beta.7 → 1.3.19-beta.8

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.
@@ -2,8 +2,9 @@ import googleType = require("googleapis");
2
2
  export declare class GoogleAuthHelper {
3
3
  private _oAuth2Client;
4
4
  private credentialsJson;
5
- get oAuth2Client(): googleType.Auth.AuthClient;
5
+ get oAuth2Client(): googleType.Auth.OAuth2Client;
6
6
  get googleClient(): googleType.GoogleApis;
7
+ get gmailClient(): googleType.gmail_v1.Gmail;
7
8
  setup(): Promise<void>;
8
9
  private authorize;
9
10
  private getNewToken;
@@ -48,6 +48,9 @@ class GoogleAuthHelper {
48
48
  get googleClient() {
49
49
  return google;
50
50
  }
51
+ get gmailClient() {
52
+ return google.gmail({ version: 'v1', auth: this._oAuth2Client });
53
+ }
51
54
  setup() {
52
55
  return __awaiter(this, void 0, void 0, function* () {
53
56
  yield this.authorize(this.credentialsJson);
@@ -2,8 +2,9 @@ import googleType = require("googleapis");
2
2
  export declare class GoogleAuthHelper {
3
3
  private _oAuth2Client;
4
4
  private credentialsJson;
5
- get oAuth2Client(): googleType.Auth.AuthClient;
5
+ get oAuth2Client(): googleType.Auth.OAuth2Client;
6
6
  get googleClient(): googleType.GoogleApis;
7
+ get gmailClient(): googleType.gmail_v1.Gmail;
7
8
  setup(): Promise<void>;
8
9
  private authorize;
9
10
  private getNewToken;
@@ -45,6 +45,9 @@ export class GoogleAuthHelper {
45
45
  get googleClient() {
46
46
  return google;
47
47
  }
48
+ get gmailClient() {
49
+ return google.gmail({ version: 'v1', auth: this._oAuth2Client });
50
+ }
48
51
  setup() {
49
52
  return __awaiter(this, void 0, void 0, function* () {
50
53
  yield this.authorize(this.credentialsJson);