@memberjunction/communication-gmail 6.2.0-edge.0 → 6.2.0-edge.1

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/auth.d.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  export declare const GmailClient: import("googleapis").gmail_v1.Gmail;
2
+ export declare function GetAuthenticatedUser(): Promise<import("googleapis").gmail_v1.Schema$Profile>;
3
+ /** @deprecated Use {@link GetAuthenticatedUser}. */
2
4
  export declare function getAuthenticatedUser(): Promise<import("googleapis").gmail_v1.Schema$Profile>;
3
5
  //# sourceMappingURL=auth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,WAAW,qCAGtB,CAAC;AAGH,wBAAsB,oBAAoB,0DAYzC"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,WAAW,qCAGtB,CAAC;AAGH,wBAAsB,oBAAoB,0DAYzC;AAED,oDAAoD;AACpD,wBAAsB,oBAAoB,0DAEzC"}
package/dist/auth.js CHANGED
@@ -13,7 +13,7 @@ export const GmailClient = google.gmail({
13
13
  auth: oauth2Client
14
14
  });
15
15
  // Helper function to get authenticated user information
16
- export async function getAuthenticatedUser() {
16
+ export async function GetAuthenticatedUser() {
17
17
  try {
18
18
  // Get user profile to verify authentication
19
19
  const response = await GmailClient.users.getProfile({
@@ -26,4 +26,8 @@ export async function getAuthenticatedUser() {
26
26
  return null;
27
27
  }
28
28
  }
29
+ /** @deprecated Use {@link GetAuthenticatedUser}. */
30
+ export async function getAuthenticatedUser() {
31
+ return GetAuthenticatedUser();
32
+ }
29
33
  //# sourceMappingURL=auth.js.map
package/dist/auth.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"A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AC,eAAe,EACtB,MAAM,CAAC,mBAAmB,EAC1B,MAAM,CAAC,kBAAkB,CAC1B,CAAC;AAEF,2DAA2D;AAC3D,YAAY,CAAC,cAAc,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC,mBAAmB;CAC1C,CAAC,CAAC;AAEH,qCAAqC;AACrC,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC;IACtC,OAAO,EAAE,IAAI;IACb,IAAI,EAAE,YAAY;CACnB,CAAC,CAAC;AAEH,wDAAwD;AACxD,MAAM,CAAC,KAAK,UAAU,oBAAoB;IACxC,IAAI,CAAC;QACH,4CAA4C;QAC5C,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,KAAK,CAAC,UAAU,CAAC;YAClD,MAAM,EAAE,IAAI;SACb,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,CAAC,sCAAsC,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,oDAAoD;AACpD,MAAM,CAAC,KAAK,UAAU,oBAAoB;IACxC,OAAO,oBAAoB,EAAE,CAAC;AAChC,CAAC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@memberjunction/communication-gmail",
3
3
  "license": "BUSL-1.1",
4
4
  "type": "module",
5
- "version": "6.2.0-edge.0",
5
+ "version": "6.2.0-edge.1",
6
6
  "description": "Gmail/Google Suite provider for MemberJunction Communication framework",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -10,9 +10,9 @@
10
10
  "dist/**/*"
11
11
  ],
12
12
  "dependencies": {
13
- "@memberjunction/communication-types": "6.2.0-edge.0",
14
- "@memberjunction/core": "6.2.0-edge.0",
15
- "@memberjunction/global": "6.2.0-edge.0",
13
+ "@memberjunction/communication-types": "6.2.0-edge.1",
14
+ "@memberjunction/core": "6.2.0-edge.1",
15
+ "@memberjunction/global": "6.2.0-edge.1",
16
16
  "dotenv": "^17.2.4",
17
17
  "env-var": "^7.4.1",
18
18
  "googleapis": "^171.4.0"