@frogbotai/piece-gmail 0.15.0 → 0.16.0

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
@@ -1,4 +1,4 @@
1
- import { type PieceFactoryConfig } from "frogbot/pieces";
1
+ import { type PieceFactoryConfig } from 'frogbot/pieces';
2
2
  export declare const gmailActions: readonly ["send_email", "request_approval_in_mail", "reply_to_email", "create_draft_reply", "gmail_get_mail", "gmail_search_mail"];
3
3
  export declare const gmailScopes: readonly ["https://www.googleapis.com/auth/gmail.send", "https://www.googleapis.com/auth/gmail.readonly", "https://www.googleapis.com/auth/gmail.compose", "email"];
4
4
  export declare function createGmail(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
package/dist/index.js CHANGED
@@ -1,43 +1,43 @@
1
- import * as module from "@activepieces/piece-gmail";
2
- import { createActivepiecesPiece } from "frogbot/pieces";
1
+ import * as module from '@activepieces/piece-gmail';
2
+ import { createActivepiecesPiece } from 'frogbot/pieces';
3
3
  export const gmailActions = [
4
- "send_email",
5
- "request_approval_in_mail",
6
- "reply_to_email",
7
- "create_draft_reply",
8
- "gmail_get_mail",
9
- "gmail_search_mail",
4
+ 'send_email',
5
+ 'request_approval_in_mail',
6
+ 'reply_to_email',
7
+ 'create_draft_reply',
8
+ 'gmail_get_mail',
9
+ 'gmail_search_mail',
10
10
  ];
11
11
  export const gmailScopes = [
12
- "https://www.googleapis.com/auth/gmail.send",
13
- "https://www.googleapis.com/auth/gmail.readonly",
14
- "https://www.googleapis.com/auth/gmail.compose",
15
- "email"
12
+ 'https://www.googleapis.com/auth/gmail.send',
13
+ 'https://www.googleapis.com/auth/gmail.readonly',
14
+ 'https://www.googleapis.com/auth/gmail.compose',
15
+ 'email',
16
16
  ];
17
17
  export function createGmail(config) {
18
18
  const piece = createActivepiecesPiece({
19
19
  module: module,
20
- service: "gmail",
21
- credentialType: "oauth2",
20
+ service: 'gmail',
21
+ credentialType: 'oauth2',
22
22
  defaultActions: gmailActions,
23
23
  scopes: gmailScopes,
24
24
  config,
25
25
  });
26
26
  return Object.assign(piece, {
27
27
  /** Send Email: Send an email through a Gmail account */
28
- sendEmail: piece.tool("send_email"),
28
+ sendEmail: piece.tool('send_email'),
29
29
  /** Request Approval in Email: Send approval request email and then wait until the email is approved or disapproved */
30
- requestApprovalInMail: piece.tool("request_approval_in_mail"),
30
+ requestApprovalInMail: piece.tool('request_approval_in_mail'),
31
31
  /** Reply to Email: Reply to an existing email. */
32
- replyToEmail: piece.tool("reply_to_email"),
32
+ replyToEmail: piece.tool('reply_to_email'),
33
33
  /** Create Draft Reply: Creates a draft reply to an existing email. */
34
- createDraftReply: piece.tool("create_draft_reply"),
34
+ createDraftReply: piece.tool('create_draft_reply'),
35
35
  /** Get Email: Get an email via Id. */
36
- gmailGetMail: piece.tool("gmail_get_mail"),
36
+ gmailGetMail: piece.tool('gmail_get_mail'),
37
37
  /** Find Email: Find emails using advanced search criteria. If no filters are provided, the latest emails are returned. */
38
- gmailSearchMail: piece.tool("gmail_search_mail"),
38
+ gmailSearchMail: piece.tool('gmail_search_mail'),
39
39
  /** Custom API Call: Make a custom API call to a specific endpoint */
40
- customApiCall: piece.tool("custom_api_call"),
40
+ customApiCall: piece.tool('custom_api_call'),
41
41
  });
42
42
  }
43
43
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frogbotai/piece-gmail",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Gmail tools for FrogBot.",
5
5
  "license": "MIT",
6
6
  "author": "Colby Gilbert",
@@ -27,11 +27,11 @@
27
27
  "@activepieces/piece-gmail": "0.12.8"
28
28
  },
29
29
  "peerDependencies": {
30
- "frogbot": "0.15.0"
30
+ "frogbot": "0.16.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "typescript": "5.6.2",
34
- "frogbot": "0.15.0"
34
+ "frogbot": "0.16.0"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"