@activepieces/piece-zoho-mail 0.0.7 → 0.0.9

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/package.json CHANGED
@@ -1,21 +1,20 @@
1
1
  {
2
2
  "name": "@activepieces/piece-zoho-mail",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "dependencies": {
5
5
  "@sinclair/typebox": "0.34.11",
6
6
  "axios": "1.8.3",
7
7
  "axios-retry": "4.4.1",
8
8
  "deepmerge-ts": "7.1.0",
9
- "fast-glob": "3.3.3",
10
9
  "form-data": "4.0.4",
11
10
  "mailparser": "3.6.7",
12
11
  "mime-types": "2.1.35",
13
12
  "nanoid": "3.3.8",
14
13
  "semver": "7.6.0",
15
14
  "zod": "3.25.76",
16
- "@activepieces/pieces-common": "0.7.0",
17
- "@activepieces/pieces-framework": "0.18.4",
18
- "@activepieces/shared": "0.20.0",
15
+ "@activepieces/pieces-common": "0.8.1",
16
+ "@activepieces/pieces-framework": "0.20.1",
17
+ "@activepieces/shared": "0.24.0",
19
18
  "tslib": "2.8.1"
20
19
  },
21
20
  "overrides": {
package/src/index.js CHANGED
@@ -8,6 +8,8 @@ const shared_1 = require("@activepieces/shared");
8
8
  const get_email_details_1 = require("./lib/actions/get-email-details");
9
9
  const mark_email_as_read_1 = require("./lib/actions/mark-email-as-read");
10
10
  const mark_email_as_unread_1 = require("./lib/actions/mark-email-as-unread");
11
+ const archive_email_1 = require("./lib/actions/archive-email");
12
+ const unarchive_email_1 = require("./lib/actions/unarchive-email");
11
13
  const move_email_1 = require("./lib/actions/move-email");
12
14
  const send_email_1 = require("./lib/actions/send-email");
13
15
  const auth_1 = require("./lib/common/auth");
@@ -16,7 +18,7 @@ exports.zohoMail = (0, pieces_framework_1.createPiece)({
16
18
  displayName: 'Zoho Mail',
17
19
  logoUrl: 'https://cdn.activepieces.com/pieces/zoho-mail.png',
18
20
  auth: auth_1.zohoMailAuth,
19
- authors: ['onyedikachi-david', 'kishanprmr'],
21
+ authors: ['onyedikachi-david', 'kishanprmr', 'kdurek'],
20
22
  description: 'Zoho Mail is a powerful email service that allows you to manage your email, contacts, and calendars efficiently.',
21
23
  minimumSupportedRelease: '0.36.1',
22
24
  categories: [shared_1.PieceCategory.COMMUNICATION],
@@ -24,6 +26,8 @@ exports.zohoMail = (0, pieces_framework_1.createPiece)({
24
26
  get_email_details_1.getEmailDetailsAction,
25
27
  mark_email_as_read_1.markEmailAsReadAction,
26
28
  mark_email_as_unread_1.markEmailAsUnreadAction,
29
+ archive_email_1.archiveEmailAction,
30
+ unarchive_email_1.unarchiveEmailAction,
27
31
  move_email_1.moveEmailAction,
28
32
  send_email_1.sendEmailAction,
29
33
  (0, pieces_common_1.createCustomApiCallAction)({
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/zoho-mail/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAIwC;AACxC,iDAAqD;AACrD,uEAAwE;AACxE,yEAAyE;AACzE,6EAA6E;AAC7E,yDAA2D;AAC3D,yDAA2D;AAC3D,4CAAiD;AACjD,0FAAoF;AAEvE,QAAA,QAAQ,GAAG,IAAA,8BAAW,EAAC;IACnC,WAAW,EAAE,WAAW;IACxB,OAAO,EAAE,mDAAmD;IAC5D,IAAI,EAAE,mBAAY;IAClB,OAAO,EAAE,CAAC,mBAAmB,EAAE,YAAY,CAAC;IAC5C,WAAW,EACV,kHAAkH;IACnH,uBAAuB,EAAE,QAAQ;IACjC,UAAU,EAAE,CAAC,sBAAa,CAAC,aAAa,CAAC;IACzC,OAAO,EAAE;QACR,yCAAqB;QACrB,0CAAqB;QACrB,8CAAuB;QACvB,4BAAe;QACf,4BAAe;QACf,IAAA,yCAAyB,EAAC;YACzB,IAAI,EAAE,mBAAY;YAClB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;;gBACjB,MAAM,SAAS,GAAG,IAAiD,CAAC;gBACpE,MAAM,QAAQ,GAAG,MAAA,MAAA,SAAS,CAAC,KAAK,0CAAG,UAAU,CAAC,mCAAI,UAAU,CAAC;gBAC7D,OAAO,gBAAgB,QAAQ,MAAM,CAAC;YACvC,CAAC;YACD,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC3B,OAAO;oBACN,aAAa,EAAE,mBAAoB,IAA4B,CAAC,YAAY,EAAE;iBAC9E,CAAC;YACH,CAAC,CAAA;SACD,CAAC;KACF;IACD,QAAQ,EAAE,CAAC,oDAAuB,CAAC;CACnC,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/zoho-mail/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAIwC;AACxC,iDAAqD;AACrD,uEAAwE;AACxE,yEAAyE;AACzE,6EAA6E;AAC7E,+DAAiE;AACjE,mEAAqE;AACrE,yDAA2D;AAC3D,yDAA2D;AAC3D,4CAAiD;AACjD,0FAAoF;AAEvE,QAAA,QAAQ,GAAG,IAAA,8BAAW,EAAC;IACnC,WAAW,EAAE,WAAW;IACxB,OAAO,EAAE,mDAAmD;IAC5D,IAAI,EAAE,mBAAY;IAClB,OAAO,EAAE,CAAC,mBAAmB,EAAE,YAAY,EAAE,QAAQ,CAAC;IACtD,WAAW,EACV,kHAAkH;IACnH,uBAAuB,EAAE,QAAQ;IACjC,UAAU,EAAE,CAAC,sBAAa,CAAC,aAAa,CAAC;IACzC,OAAO,EAAE;QACR,yCAAqB;QACrB,0CAAqB;QACrB,8CAAuB;QACvB,kCAAkB;QAClB,sCAAoB;QACpB,4BAAe;QACf,4BAAe;QACf,IAAA,yCAAyB,EAAC;YACzB,IAAI,EAAE,mBAAY;YAClB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE;;gBACjB,MAAM,SAAS,GAAG,IAAiD,CAAC;gBACpE,MAAM,QAAQ,GAAG,MAAA,MAAA,SAAS,CAAC,KAAK,0CAAG,UAAU,CAAC,mCAAI,UAAU,CAAC;gBAC7D,OAAO,gBAAgB,QAAQ,MAAM,CAAC;YACvC,CAAC;YACD,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC3B,OAAO;oBACN,aAAa,EAAE,mBAAoB,IAA4B,CAAC,YAAY,EAAE;iBAC9E,CAAC;YACH,CAAC,CAAA;SACD,CAAC;KACF;IACD,QAAQ,EAAE,CAAC,oDAAuB,CAAC;CACnC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const archiveEmailAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
+ accountId: import("@activepieces/pieces-framework").DropdownProperty<string, false> | import("@activepieces/pieces-framework").DropdownProperty<string, true>;
3
+ folderId: import("@activepieces/pieces-framework").DropdownProperty<string, false> | import("@activepieces/pieces-framework").DropdownProperty<string, true>;
4
+ messageId: import("@activepieces/pieces-framework").DropdownProperty<string, false> | import("@activepieces/pieces-framework").DropdownProperty<string, true>;
5
+ }>;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.archiveEmailAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_common_1 = require("@activepieces/pieces-common");
6
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
7
+ const common_1 = require("../common");
8
+ const auth_1 = require("../common/auth");
9
+ const props_1 = require("../common/props");
10
+ exports.archiveEmailAction = (0, pieces_framework_1.createAction)({
11
+ auth: auth_1.zohoMailAuth,
12
+ name: 'archive_email',
13
+ displayName: 'Archive Email',
14
+ description: 'Archives an email.',
15
+ props: {
16
+ accountId: (0, props_1.accountId)({ displayName: 'Account', required: true }),
17
+ folderId: (0, props_1.folderId)({ displayName: 'Folder', required: true }),
18
+ messageId: (0, props_1.messageId)({
19
+ displayName: 'Message ID',
20
+ description: 'The ID of the email message to archive.',
21
+ required: true,
22
+ }),
23
+ },
24
+ run(context) {
25
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
26
+ const { accountId, messageId } = context.propsValue;
27
+ const response = yield (0, common_1.zohoMailApiCall)({
28
+ auth: context.auth,
29
+ method: pieces_common_1.HttpMethod.PUT,
30
+ resourceUri: `/accounts/${accountId}/updatemessage`,
31
+ body: {
32
+ mode: 'archiveMails',
33
+ messageId: [messageId],
34
+ },
35
+ });
36
+ return response;
37
+ });
38
+ },
39
+ });
40
+ //# sourceMappingURL=archive-email.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archive-email.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/zoho-mail/src/lib/actions/archive-email.ts"],"names":[],"mappings":";;;;AAAA,+DAAyD;AACzD,qEAA8D;AAC9D,sCAA4C;AAC5C,yCAA8C;AAC9C,2CAAiE;AAEpD,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC9C,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,oBAAoB;IACjC,KAAK,EAAE;QACN,SAAS,EAAE,IAAA,iBAAS,EAAC,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAChE,QAAQ,EAAE,IAAA,gBAAQ,EAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAC7D,SAAS,EAAE,IAAA,iBAAS,EAAC;YACpB,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,IAAI;SACd,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEpD,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EAAC;gBACtC,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,aAAa,SAAS,gBAAgB;gBACnD,IAAI,EAAE;oBACL,IAAI,EAAE,cAAc;oBACpB,SAAS,EAAE,CAAC,SAAS,CAAC;iBACtB;aACD,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QACjB,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const unarchiveEmailAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
+ accountId: import("@activepieces/pieces-framework").DropdownProperty<string, false> | import("@activepieces/pieces-framework").DropdownProperty<string, true>;
3
+ folderId: import("@activepieces/pieces-framework").DropdownProperty<string, false> | import("@activepieces/pieces-framework").DropdownProperty<string, true>;
4
+ messageId: import("@activepieces/pieces-framework").DropdownProperty<string, false> | import("@activepieces/pieces-framework").DropdownProperty<string, true>;
5
+ }>;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unarchiveEmailAction = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_common_1 = require("@activepieces/pieces-common");
6
+ const pieces_framework_1 = require("@activepieces/pieces-framework");
7
+ const common_1 = require("../common");
8
+ const auth_1 = require("../common/auth");
9
+ const props_1 = require("../common/props");
10
+ exports.unarchiveEmailAction = (0, pieces_framework_1.createAction)({
11
+ auth: auth_1.zohoMailAuth,
12
+ name: 'unarchive_email',
13
+ displayName: 'Unarchive Email',
14
+ description: 'Unarchives an email.',
15
+ props: {
16
+ accountId: (0, props_1.accountId)({ displayName: 'Account', required: true }),
17
+ folderId: (0, props_1.folderId)({ displayName: 'Folder', required: true }),
18
+ messageId: (0, props_1.messageId)({
19
+ displayName: 'Message ID',
20
+ description: 'The ID of the email message to unarchive.',
21
+ required: true,
22
+ }),
23
+ },
24
+ run(context) {
25
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
26
+ const { accountId, messageId } = context.propsValue;
27
+ const response = yield (0, common_1.zohoMailApiCall)({
28
+ auth: context.auth,
29
+ method: pieces_common_1.HttpMethod.PUT,
30
+ resourceUri: `/accounts/${accountId}/updatemessage`,
31
+ body: {
32
+ mode: 'unArchiveMails',
33
+ messageId: [messageId],
34
+ },
35
+ });
36
+ return response;
37
+ });
38
+ },
39
+ });
40
+ //# sourceMappingURL=unarchive-email.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unarchive-email.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/zoho-mail/src/lib/actions/unarchive-email.ts"],"names":[],"mappings":";;;;AAAA,+DAAyD;AACzD,qEAA8D;AAC9D,sCAA4C;AAC5C,yCAA8C;AAC9C,2CAAiE;AAEpD,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,sBAAsB;IACnC,KAAK,EAAE;QACN,SAAS,EAAE,IAAA,iBAAS,EAAC,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAChE,QAAQ,EAAE,IAAA,gBAAQ,EAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAC7D,SAAS,EAAE,IAAA,iBAAS,EAAC;YACpB,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE,IAAI;SACd,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEpD,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EAAC;gBACtC,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,aAAa,SAAS,gBAAgB;gBACnD,IAAI,EAAE;oBACL,IAAI,EAAE,gBAAgB;oBACtB,SAAS,EAAE,CAAC,SAAS,CAAC;iBACtB;aACD,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QACjB,CAAC;KAAA;CACD,CAAC,CAAC"}