From 8aeab82c8307f969a89e96755da20a2cc73da08d Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Thu, 7 Aug 2025 15:12:12 -0400 Subject: [PATCH 1/5] new sources --- .../changed-ticket-status.mjs | 2 +- .../{common.mjs => common/common-polling.mjs} | 0 .../sources/common/common-webhook.mjs | 68 ++++++++++++ .../deleted-article-instant.mjs | 28 +++++ .../deleted-article-instant/test-event.mjs | 3 + .../sources/new-account/new-account.mjs | 2 +- .../zoho_desk/sources/new-agent/new-agent.mjs | 2 +- .../new-article-instant.mjs | 28 +++++ .../new-article-instant/test-event.mjs | 103 ++++++++++++++++++ .../sources/new-contact/new-contact.mjs | 2 +- .../new-ticket-attachment.mjs | 2 +- .../new-ticket-comment/new-ticket-comment.mjs | 2 +- .../new-ticket-message/new-ticket-message.mjs | 2 +- .../sources/new-ticket/new-ticket.mjs | 2 +- .../updated-article-instant/test-event.mjs | 103 ++++++++++++++++++ .../updated-article-instant.mjs | 29 +++++ .../sources/updated-ticket/updated-ticket.mjs | 2 +- components/zoho_desk/zoho_desk.app.mjs | 16 +++ 18 files changed, 387 insertions(+), 9 deletions(-) rename components/zoho_desk/sources/{common.mjs => common/common-polling.mjs} (100%) create mode 100644 components/zoho_desk/sources/common/common-webhook.mjs create mode 100644 components/zoho_desk/sources/deleted-article-instant/deleted-article-instant.mjs create mode 100644 components/zoho_desk/sources/deleted-article-instant/test-event.mjs create mode 100644 components/zoho_desk/sources/new-article-instant/new-article-instant.mjs create mode 100644 components/zoho_desk/sources/new-article-instant/test-event.mjs create mode 100644 components/zoho_desk/sources/updated-article-instant/test-event.mjs create mode 100644 components/zoho_desk/sources/updated-article-instant/updated-article-instant.mjs diff --git a/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs b/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs index be41226f0d2e0..71da371cd51b3 100644 --- a/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs +++ b/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs @@ -1,4 +1,4 @@ -import common from "../common.mjs"; +import common from "../common/common-pollling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/common.mjs b/components/zoho_desk/sources/common/common-polling.mjs similarity index 100% rename from components/zoho_desk/sources/common.mjs rename to components/zoho_desk/sources/common/common-polling.mjs diff --git a/components/zoho_desk/sources/common/common-webhook.mjs b/components/zoho_desk/sources/common/common-webhook.mjs new file mode 100644 index 0000000000000..4ee31fc46b935 --- /dev/null +++ b/components/zoho_desk/sources/common/common-webhook.mjs @@ -0,0 +1,68 @@ +import zohoDesk from "../../zoho_desk.app.mjs"; +import { ConfigurationError } from "@pipedream/platform"; + +export default { + props: { + zohoDesk, + db: "$.service.db", + http: { + type: "$.interface.http", + customResponse: true, + }, + infoAlert: { + type: "alert", + alertType: "info", + content: "Webhooks are available for Professional and Enterprise plans only", + }, + }, + hooks: { + async activate() { + const { id } = await this.zohoDesk.createWebhook({ + data: { + url: this.http.endpoint, + subscriptions: this.getSubscriptions(), + }, + }); + this._setWebhookId(id); + }, + async deactivate() { + const webhookId = this._getWebhookId(); + if (webhookId) { + await this.zohoDesk.deleteWebhook({ + webhookId, + }); + } + }, + }, + methods: { + _getWebhookId() { + return this.db.get("webhookId"); + }, + _setWebhookId(webhookId) { + this.db.set("webhookId", webhookId); + }, + getSubscriptions() { + throw new ConfigurationError("getSubscriptions is not implemented"); + }, + generateMeta() { + throw new ConfigurationError("generateMeta is not implemented"); + }, + }, + async run(event) { + this.http.respond({ + status: 200, + }); + + const { body: events } = event; + + if (!events || !Array.isArray(events)) { + return; + } + + for (const event of events) { + const { payload } = event; + const meta = this.generateMeta(payload); + this.$emit(payload, meta); + } + }, +}; diff --git a/components/zoho_desk/sources/deleted-article-instant/deleted-article-instant.mjs b/components/zoho_desk/sources/deleted-article-instant/deleted-article-instant.mjs new file mode 100644 index 0000000000000..e2b2f51b4953d --- /dev/null +++ b/components/zoho_desk/sources/deleted-article-instant/deleted-article-instant.mjs @@ -0,0 +1,28 @@ +import common from "../common/common-webhook.mjs"; +import sampleEmit from "./test-event.mjs"; + +export default { + ...common, + key: "zoho_desk-deleted-article-instant", + name: "Deleted Article (Instant)", + description: "Emit new event when an article is deleted from the recycle bin", + type: "source", + version: "0.0.1", + dedupe: "unique", + methods: { + ...common.methods, + getSubscriptions() { + return { + Article_Delete: null, + }; + }, + generateMeta(payload) { + return { + id: payload.id, + summary: `Article Deleted: ${payload.id}`, + ts: Date.now(), + }; + }, + }, + sampleEmit, +}; diff --git a/components/zoho_desk/sources/deleted-article-instant/test-event.mjs b/components/zoho_desk/sources/deleted-article-instant/test-event.mjs new file mode 100644 index 0000000000000..89a9c6bf0de31 --- /dev/null +++ b/components/zoho_desk/sources/deleted-article-instant/test-event.mjs @@ -0,0 +1,3 @@ +export default { + "id" : "123456789044" +} \ No newline at end of file diff --git a/components/zoho_desk/sources/new-account/new-account.mjs b/components/zoho_desk/sources/new-account/new-account.mjs index bf768c6f0afce..69530070aec59 100644 --- a/components/zoho_desk/sources/new-account/new-account.mjs +++ b/components/zoho_desk/sources/new-account/new-account.mjs @@ -1,4 +1,4 @@ -import common from "../common.mjs"; +import common from "../common/common-pollling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/new-agent/new-agent.mjs b/components/zoho_desk/sources/new-agent/new-agent.mjs index ed02e33ccd8eb..87a4b4f3e28f0 100644 --- a/components/zoho_desk/sources/new-agent/new-agent.mjs +++ b/components/zoho_desk/sources/new-agent/new-agent.mjs @@ -1,4 +1,4 @@ -import common from "../common.mjs"; +import common from "../common/common-pollling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/new-article-instant/new-article-instant.mjs b/components/zoho_desk/sources/new-article-instant/new-article-instant.mjs new file mode 100644 index 0000000000000..31c8dc0ab06de --- /dev/null +++ b/components/zoho_desk/sources/new-article-instant/new-article-instant.mjs @@ -0,0 +1,28 @@ +import common from "../common/common-webhook.mjs"; +import sampleEmit from "./test-event.mjs"; + +export default { + ...common, + key: "zoho_desk-new-article-instant", + name: "New Article (Instant)", + description: "Emit new event when a new article is created", + type: "source", + version: "0.0.1", + dedupe: "unique", + methods: { + ...common.methods, + getSubscriptions() { + return { + Article_Add: null, + }; + }, + generateMeta(payload) { + return { + id: payload.id, + summary: `New Article Created: ${payload.title}`, + ts: Date.parse(payload.createdTime), + }; + }, + }, + sampleEmit, +}; diff --git a/components/zoho_desk/sources/new-article-instant/test-event.mjs b/components/zoho_desk/sources/new-article-instant/test-event.mjs new file mode 100644 index 0000000000000..680c77406d076 --- /dev/null +++ b/components/zoho_desk/sources/new-article-instant/test-event.mjs @@ -0,0 +1,103 @@ +export default { + "modifiedTime" : "2020-09-02T07:53:28.000Z", + "attachments" : [ ], + "reviewedTime" : null, + "departmentId" : "112534000000394045", + "modifierId" : "112534000000192635", + "dislikeCount" : "0", + "creatorId" : "112534000000192635", + "likeCount" : "0", + "ownerId" : "112534000000192635", + "title" : "Zoho Desk - An Overview", + "locale" : "en", + "translationState" : "UP-TO-DATE", + "expiryDate" : null, + "isTrashed" : false, + "isLocked" : false, + "createdTime" : "2020-09-02T07:53:28.000Z", + "modifiedBy" : { + "photoURL" : "https://contacts.zoho.com/file?ID=53947797&t=user&API=true&fs=thumb", + "name" : "Zylker", + "id" : "112534000000192635", + "status" : "ACTIVE", + "zuid" : "53947797" + }, + "id" : "112534000000396881", + "viewCount" : "0", + "translationSource" : null, + "seo" : { + "keywords" : null, + "description" : null, + "title" : null + }, + "summary" : "Zoho Desk - An Overview", + "owner" : { + "photoURL" : "https://contacts.zoho.com/file?ID=53947797&t=user&API=true&fs=thumb", + "name" : "Zylker", + "id" : "112534000000192635", + "status" : "ACTIVE", + "zuid" : "53947797" + }, + "latestVersionStatus" : "Published", + "author" : { + "photoURL" : "https://contacts.zoho.com/file?ID=53947797&t=user&API=true&fs=thumb", + "name" : "Zylker", + "id" : "112534000000192635", + "status" : "ACTIVE", + "zuid" : "53947797" + }, + "permission" : "AGENTS", + "reviewedBy" : null, + "authorId" : "112534000000192635", + "usageCount" : "0", + "commentCount" : "0", + "tags" : [ ], + "rootCategoryId" : "112534000000397001", + "sourceLocale" : "en", + "translationId" : "112534000000396883", + "createdBy" : { + "photoURL" : "https://contacts.zoho.com/file?ID=53947797&t=user&API=true&fs=thumb", + "name" : "Zylker", + "id" : "112534000000192635", + "status" : "ACTIVE", + "zuid" : "53947797" + }, + "latestVersion" : "1.0", + "webUrl" : "https://desk.zoho.com/support/zylker/ShowHomePage.do#Solutions/dv/112534000000396881/en", + "feedbackCount" : "0", + "portalUrl" : "https://desk.zoho.com/portal/zylker/en/kb/articles/asa", + "latestPublishedVersion" : "1.0", + "attachmentCount" : "0", + "metrics" : { + "feedbackCount" : "0", + "unlikeCount" : "0", + "dislikeCount" : "0", + "lastUsageTime" : null, + "likeCount" : "0", + "viewCount" : "0", + "lastActivityTime" : null, + "usageCount" : "0" + }, + "position" : "3", + "availableLocaleTranslations" : [ { + "latestVersionStatus" : "Published", + "translationId" : "112534000000396883", + "isTrashed" : false, + "recycleBinEntityId" : "112534000000396881", + "latestVersion" : "1.0", + "latestPublishedVersion" : "1.0", + "href" : "https://desk.zoho.com/api/v1/articles/112534000000396881/translations/en?orgId=62366276", + "authorId" : "112534000000192635", + "locale" : "en", + "translationState" : "UP-TO-DATE", + "status" : "Published" + } ], + "permalink" : "zoho-desk-overview", + "category" : { + "name" : "General", + "id" : "112534000000397018", + "locale" : "en" + }, + "categoryId" : "112534000000397018", + "status" : "Published" +} \ No newline at end of file diff --git a/components/zoho_desk/sources/new-contact/new-contact.mjs b/components/zoho_desk/sources/new-contact/new-contact.mjs index 9a9a5f79e22c4..38b656fcfaba4 100644 --- a/components/zoho_desk/sources/new-contact/new-contact.mjs +++ b/components/zoho_desk/sources/new-contact/new-contact.mjs @@ -1,4 +1,4 @@ -import common from "../common.mjs"; +import common from "../common/common-pollling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs b/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs index 36635f0a09f3c..4bc8a257798b6 100644 --- a/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs +++ b/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs @@ -1,4 +1,4 @@ -import common from "../common.mjs"; +import common from "../common/common-pollling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs b/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs index 0e3958c132a0e..e758c9ff7eb06 100644 --- a/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs +++ b/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs @@ -1,4 +1,4 @@ -import common from "../common.mjs"; +import common from "../common/common-pollling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs b/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs index 15b747c59ef8e..388b1a55fe853 100644 --- a/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs +++ b/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs @@ -1,4 +1,4 @@ -import common from "../common.mjs"; +import common from "../common/common-pollling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/new-ticket/new-ticket.mjs b/components/zoho_desk/sources/new-ticket/new-ticket.mjs index 79bf3211e2295..861d3080764f6 100644 --- a/components/zoho_desk/sources/new-ticket/new-ticket.mjs +++ b/components/zoho_desk/sources/new-ticket/new-ticket.mjs @@ -1,4 +1,4 @@ -import common from "../common.mjs"; +import common from "../common/common-pollling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/updated-article-instant/test-event.mjs b/components/zoho_desk/sources/updated-article-instant/test-event.mjs new file mode 100644 index 0000000000000..680c77406d076 --- /dev/null +++ b/components/zoho_desk/sources/updated-article-instant/test-event.mjs @@ -0,0 +1,103 @@ +export default { + "modifiedTime" : "2020-09-02T07:53:28.000Z", + "attachments" : [ ], + "reviewedTime" : null, + "departmentId" : "112534000000394045", + "modifierId" : "112534000000192635", + "dislikeCount" : "0", + "creatorId" : "112534000000192635", + "likeCount" : "0", + "ownerId" : "112534000000192635", + "title" : "Zoho Desk - An Overview", + "locale" : "en", + "translationState" : "UP-TO-DATE", + "expiryDate" : null, + "isTrashed" : false, + "isLocked" : false, + "createdTime" : "2020-09-02T07:53:28.000Z", + "modifiedBy" : { + "photoURL" : "https://contacts.zoho.com/file?ID=53947797&t=user&API=true&fs=thumb", + "name" : "Zylker", + "id" : "112534000000192635", + "status" : "ACTIVE", + "zuid" : "53947797" + }, + "id" : "112534000000396881", + "viewCount" : "0", + "translationSource" : null, + "seo" : { + "keywords" : null, + "description" : null, + "title" : null + }, + "summary" : "Zoho Desk - An Overview", + "owner" : { + "photoURL" : "https://contacts.zoho.com/file?ID=53947797&t=user&API=true&fs=thumb", + "name" : "Zylker", + "id" : "112534000000192635", + "status" : "ACTIVE", + "zuid" : "53947797" + }, + "latestVersionStatus" : "Published", + "author" : { + "photoURL" : "https://contacts.zoho.com/file?ID=53947797&t=user&API=true&fs=thumb", + "name" : "Zylker", + "id" : "112534000000192635", + "status" : "ACTIVE", + "zuid" : "53947797" + }, + "permission" : "AGENTS", + "reviewedBy" : null, + "authorId" : "112534000000192635", + "usageCount" : "0", + "commentCount" : "0", + "tags" : [ ], + "rootCategoryId" : "112534000000397001", + "sourceLocale" : "en", + "translationId" : "112534000000396883", + "createdBy" : { + "photoURL" : "https://contacts.zoho.com/file?ID=53947797&t=user&API=true&fs=thumb", + "name" : "Zylker", + "id" : "112534000000192635", + "status" : "ACTIVE", + "zuid" : "53947797" + }, + "latestVersion" : "1.0", + "webUrl" : "https://desk.zoho.com/support/zylker/ShowHomePage.do#Solutions/dv/112534000000396881/en", + "feedbackCount" : "0", + "portalUrl" : "https://desk.zoho.com/portal/zylker/en/kb/articles/asa", + "latestPublishedVersion" : "1.0", + "attachmentCount" : "0", + "metrics" : { + "feedbackCount" : "0", + "unlikeCount" : "0", + "dislikeCount" : "0", + "lastUsageTime" : null, + "likeCount" : "0", + "viewCount" : "0", + "lastActivityTime" : null, + "usageCount" : "0" + }, + "position" : "3", + "availableLocaleTranslations" : [ { + "latestVersionStatus" : "Published", + "translationId" : "112534000000396883", + "isTrashed" : false, + "recycleBinEntityId" : "112534000000396881", + "latestVersion" : "1.0", + "latestPublishedVersion" : "1.0", + "href" : "https://desk.zoho.com/api/v1/articles/112534000000396881/translations/en?orgId=62366276", + "authorId" : "112534000000192635", + "locale" : "en", + "translationState" : "UP-TO-DATE", + "status" : "Published" + } ], + "permalink" : "zoho-desk-overview", + "category" : { + "name" : "General", + "id" : "112534000000397018", + "locale" : "en" + }, + "categoryId" : "112534000000397018", + "status" : "Published" +} \ No newline at end of file diff --git a/components/zoho_desk/sources/updated-article-instant/updated-article-instant.mjs b/components/zoho_desk/sources/updated-article-instant/updated-article-instant.mjs new file mode 100644 index 0000000000000..01de420a9bb6b --- /dev/null +++ b/components/zoho_desk/sources/updated-article-instant/updated-article-instant.mjs @@ -0,0 +1,29 @@ +import common from "../common/common-webhook.mjs"; +import sampleEmit from "./test-event.mjs"; + +export default { + ...common, + key: "zoho_desk-updated-article-instant", + name: "Updated Article (Instant)", + description: "Emit new event when an article is updated", + type: "source", + version: "0.0.1", + dedupe: "unique", + methods: { + ...common.methods, + getSubscriptions() { + return { + Article_Update: null, + }; + }, + generateMeta(payload) { + const ts = Date.parse(payload.modifiedTime); + return { + id: `${payload.id}-${ts}`, + summary: `Article Updated: ${payload.title}`, + ts, + }; + }, + }, + sampleEmit, +}; diff --git a/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs b/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs index d989a2ac4b5c2..0ea84f751fe8c 100644 --- a/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs +++ b/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs @@ -1,4 +1,4 @@ -import common from "../common.mjs"; +import common from "../common/common-pollling.mjs"; export default { ...common, diff --git a/components/zoho_desk/zoho_desk.app.mjs b/components/zoho_desk/zoho_desk.app.mjs index 5df21a3aa84aa..a911852d9958a 100644 --- a/components/zoho_desk/zoho_desk.app.mjs +++ b/components/zoho_desk/zoho_desk.app.mjs @@ -145,6 +145,22 @@ export default { throw error.response?.data; } }, + createWebhook(args = {}) { + return this.makeRequest({ + method: "post", + path: "/webhooks", + ...args, + }); + }, + deleteWebhook({ + webhookId, ...args + }) { + return this.makeRequest({ + method: "delete", + path: `/webhooks/${webhookId}`, + ...args, + }); + }, getOrganizations(args = {}) { return this.makeRequest({ path: "/organizations", From c75fec2c1651f5d8fd32390e8789cb267c515b23 Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Thu, 7 Aug 2025 15:17:28 -0400 Subject: [PATCH 2/5] typos --- .../sources/changed-ticket-status/changed-ticket-status.mjs | 2 +- components/zoho_desk/sources/new-account/new-account.mjs | 2 +- components/zoho_desk/sources/new-agent/new-agent.mjs | 2 +- components/zoho_desk/sources/new-contact/new-contact.mjs | 2 +- .../sources/new-ticket-attachment/new-ticket-attachment.mjs | 2 +- .../zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs | 2 +- .../zoho_desk/sources/new-ticket-message/new-ticket-message.mjs | 2 +- components/zoho_desk/sources/new-ticket/new-ticket.mjs | 2 +- components/zoho_desk/sources/updated-ticket/updated-ticket.mjs | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs b/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs index 71da371cd51b3..cc3674ca73e4d 100644 --- a/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs +++ b/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs @@ -1,4 +1,4 @@ -import common from "../common/common-pollling.mjs"; +import common from "../common/common-polling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/new-account/new-account.mjs b/components/zoho_desk/sources/new-account/new-account.mjs index 69530070aec59..bed75c40510c0 100644 --- a/components/zoho_desk/sources/new-account/new-account.mjs +++ b/components/zoho_desk/sources/new-account/new-account.mjs @@ -1,4 +1,4 @@ -import common from "../common/common-pollling.mjs"; +import common from "../common/common-polling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/new-agent/new-agent.mjs b/components/zoho_desk/sources/new-agent/new-agent.mjs index 87a4b4f3e28f0..11e8211e8ae38 100644 --- a/components/zoho_desk/sources/new-agent/new-agent.mjs +++ b/components/zoho_desk/sources/new-agent/new-agent.mjs @@ -1,4 +1,4 @@ -import common from "../common/common-pollling.mjs"; +import common from "../common/common-polling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/new-contact/new-contact.mjs b/components/zoho_desk/sources/new-contact/new-contact.mjs index 38b656fcfaba4..5864fe1da8ea2 100644 --- a/components/zoho_desk/sources/new-contact/new-contact.mjs +++ b/components/zoho_desk/sources/new-contact/new-contact.mjs @@ -1,4 +1,4 @@ -import common from "../common/common-pollling.mjs"; +import common from "../common/common-polling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs b/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs index 4bc8a257798b6..6019b0ca0cb6c 100644 --- a/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs +++ b/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs @@ -1,4 +1,4 @@ -import common from "../common/common-pollling.mjs"; +import common from "../common/common-polling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs b/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs index e758c9ff7eb06..d102e426ad9f0 100644 --- a/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs +++ b/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs @@ -1,4 +1,4 @@ -import common from "../common/common-pollling.mjs"; +import common from "../common/common-polling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs b/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs index 388b1a55fe853..f384fce4d8ac4 100644 --- a/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs +++ b/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs @@ -1,4 +1,4 @@ -import common from "../common/common-pollling.mjs"; +import common from "../common/common-polling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/new-ticket/new-ticket.mjs b/components/zoho_desk/sources/new-ticket/new-ticket.mjs index 861d3080764f6..a92e260e3c58d 100644 --- a/components/zoho_desk/sources/new-ticket/new-ticket.mjs +++ b/components/zoho_desk/sources/new-ticket/new-ticket.mjs @@ -1,4 +1,4 @@ -import common from "../common/common-pollling.mjs"; +import common from "../common/common-polling.mjs"; export default { ...common, diff --git a/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs b/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs index 0ea84f751fe8c..9081243e3c956 100644 --- a/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs +++ b/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs @@ -1,4 +1,4 @@ -import common from "../common/common-pollling.mjs"; +import common from "../common/common-polling.mjs"; export default { ...common, From 8ae198ab4e2ce6731de8b51ae1b62cf3657ee9c9 Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Thu, 7 Aug 2025 15:19:54 -0400 Subject: [PATCH 3/5] versions --- .../actions/add-ticket-attachment/add-ticket-attachment.mjs | 2 +- .../zoho_desk/actions/add-ticket-comment/add-ticket-comment.mjs | 2 +- components/zoho_desk/actions/create-account/create-account.mjs | 2 +- components/zoho_desk/actions/create-contact/create-contact.mjs | 2 +- components/zoho_desk/actions/create-ticket/create-ticket.mjs | 2 +- components/zoho_desk/actions/find-contact/find-contact.mjs | 2 +- .../actions/find-or-create-contact/find-or-create-contact.mjs | 2 +- components/zoho_desk/actions/search-ticket/search-ticket.mjs | 2 +- .../zoho_desk/actions/send-email-reply/send-email-reply.mjs | 2 +- components/zoho_desk/actions/update-contact/update-contact.mjs | 2 +- components/zoho_desk/actions/update-ticket/update-ticket.mjs | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/components/zoho_desk/actions/add-ticket-attachment/add-ticket-attachment.mjs b/components/zoho_desk/actions/add-ticket-attachment/add-ticket-attachment.mjs index 65763736af511..825574b807286 100644 --- a/components/zoho_desk/actions/add-ticket-attachment/add-ticket-attachment.mjs +++ b/components/zoho_desk/actions/add-ticket-attachment/add-ticket-attachment.mjs @@ -7,7 +7,7 @@ export default { name: "Add Ticket Attachment", description: "Attaches a file to a ticket. [See the docs here](https://desk.zoho.com/DeskAPIDocument#TicketAttachments#TicketAttachments_CreateTicketattachment)", type: "action", - version: "0.1.1", + version: "0.1.2", props: { zohoDesk, orgId: { diff --git a/components/zoho_desk/actions/add-ticket-comment/add-ticket-comment.mjs b/components/zoho_desk/actions/add-ticket-comment/add-ticket-comment.mjs index dcc8d294bd657..5bc72c5637080 100644 --- a/components/zoho_desk/actions/add-ticket-comment/add-ticket-comment.mjs +++ b/components/zoho_desk/actions/add-ticket-comment/add-ticket-comment.mjs @@ -5,7 +5,7 @@ export default { name: "Add Ticket Comment", description: "Adds a comment to a ticket. [See the docs here](https://desk.zoho.com/DeskAPIDocument#TicketsComments#TicketsComments_Createticketcomment)", type: "action", - version: "0.0.2", + version: "0.0.3", props: { zohoDesk, orgId: { diff --git a/components/zoho_desk/actions/create-account/create-account.mjs b/components/zoho_desk/actions/create-account/create-account.mjs index fdf4577482eab..8338646fec753 100644 --- a/components/zoho_desk/actions/create-account/create-account.mjs +++ b/components/zoho_desk/actions/create-account/create-account.mjs @@ -5,7 +5,7 @@ export default { name: "Create Account", description: "Creates an account in your help desk portal. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Accounts#Accounts_CreateAccount)", type: "action", - version: "0.0.2", + version: "0.0.3", props: { zohoDesk, orgId: { diff --git a/components/zoho_desk/actions/create-contact/create-contact.mjs b/components/zoho_desk/actions/create-contact/create-contact.mjs index 1da75403d1ee6..f4399aacfc1e5 100644 --- a/components/zoho_desk/actions/create-contact/create-contact.mjs +++ b/components/zoho_desk/actions/create-contact/create-contact.mjs @@ -5,7 +5,7 @@ export default { name: "Create Contact", description: "Creates a contact in your help desk portal. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Contacts#Contacts_CreateContact)", type: "action", - version: "0.0.2", + version: "0.0.3", props: { zohoDesk, orgId: { diff --git a/components/zoho_desk/actions/create-ticket/create-ticket.mjs b/components/zoho_desk/actions/create-ticket/create-ticket.mjs index 6c324e1e0699b..b2d1d22332ed2 100644 --- a/components/zoho_desk/actions/create-ticket/create-ticket.mjs +++ b/components/zoho_desk/actions/create-ticket/create-ticket.mjs @@ -5,7 +5,7 @@ export default { name: "Create Ticket", description: "Creates a ticket in your helpdesk. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Tickets#Tickets_Createaticket)", type: "action", - version: "0.0.2", + version: "0.0.3", props: { zohoDesk, orgId: { diff --git a/components/zoho_desk/actions/find-contact/find-contact.mjs b/components/zoho_desk/actions/find-contact/find-contact.mjs index 6f7c96da39277..f4ab6751784fc 100644 --- a/components/zoho_desk/actions/find-contact/find-contact.mjs +++ b/components/zoho_desk/actions/find-contact/find-contact.mjs @@ -5,7 +5,7 @@ export default { name: "Find Contact", description: "Searches for contacts in your help desk portal. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Search#Search_SearchContacts)", type: "action", - version: "0.0.2", + version: "0.0.3", props: { zohoDesk, orgId: { diff --git a/components/zoho_desk/actions/find-or-create-contact/find-or-create-contact.mjs b/components/zoho_desk/actions/find-or-create-contact/find-or-create-contact.mjs index 8e10ac83b48cd..25b966e0f3cc7 100644 --- a/components/zoho_desk/actions/find-or-create-contact/find-or-create-contact.mjs +++ b/components/zoho_desk/actions/find-or-create-contact/find-or-create-contact.mjs @@ -5,7 +5,7 @@ export default { name: "Find or Create Contact", description: "Finds or create a contact. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Contacts#Contacts_CreateContact)", type: "action", - version: "0.0.2", + version: "0.0.3", props: { zohoDesk, orgId: { diff --git a/components/zoho_desk/actions/search-ticket/search-ticket.mjs b/components/zoho_desk/actions/search-ticket/search-ticket.mjs index a49cf2877db13..b96ad28c8b505 100644 --- a/components/zoho_desk/actions/search-ticket/search-ticket.mjs +++ b/components/zoho_desk/actions/search-ticket/search-ticket.mjs @@ -5,7 +5,7 @@ export default { name: "Search Ticket", description: "Searches for tickets in your help desk. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Search_TicketsSearchAPI)", type: "action", - version: "0.0.2", + version: "0.0.3", props: { zohoDesk, orgId: { diff --git a/components/zoho_desk/actions/send-email-reply/send-email-reply.mjs b/components/zoho_desk/actions/send-email-reply/send-email-reply.mjs index b9a99c00b022b..6d365b2a7ba53 100644 --- a/components/zoho_desk/actions/send-email-reply/send-email-reply.mjs +++ b/components/zoho_desk/actions/send-email-reply/send-email-reply.mjs @@ -5,7 +5,7 @@ export default { name: "Send E-Mail Reply", description: "Sends an email reply. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Threads#Threads_SendEmailReply)", type: "action", - version: "0.0.2", + version: "0.0.3", props: { zohoDesk, orgId: { diff --git a/components/zoho_desk/actions/update-contact/update-contact.mjs b/components/zoho_desk/actions/update-contact/update-contact.mjs index 1e08be6bef34c..df9bbcf18986d 100644 --- a/components/zoho_desk/actions/update-contact/update-contact.mjs +++ b/components/zoho_desk/actions/update-contact/update-contact.mjs @@ -5,7 +5,7 @@ export default { name: "Update Contact", description: "Updates details of an existing contact. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Contacts#Contacts_Updateacontact)", type: "action", - version: "0.0.2", + version: "0.0.3", props: { zohoDesk, orgId: { diff --git a/components/zoho_desk/actions/update-ticket/update-ticket.mjs b/components/zoho_desk/actions/update-ticket/update-ticket.mjs index 4c3ae72b89c49..a2428d0761534 100644 --- a/components/zoho_desk/actions/update-ticket/update-ticket.mjs +++ b/components/zoho_desk/actions/update-ticket/update-ticket.mjs @@ -5,7 +5,7 @@ export default { name: "Update Ticket", description: "Updates an existing ticket. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Tickets#Tickets_Updateaticket)", type: "action", - version: "0.0.2", + version: "0.0.3", props: { zohoDesk, orgId: { From 98f25aab1f72f614498e1fba2d79156f9c854fd3 Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Thu, 7 Aug 2025 15:23:09 -0400 Subject: [PATCH 4/5] versions --- components/zoho_desk/package.json | 2 +- .../sources/changed-ticket-status/changed-ticket-status.mjs | 2 +- components/zoho_desk/sources/new-account/new-account.mjs | 2 +- components/zoho_desk/sources/new-agent/new-agent.mjs | 2 +- components/zoho_desk/sources/new-contact/new-contact.mjs | 2 +- .../sources/new-ticket-attachment/new-ticket-attachment.mjs | 2 +- .../zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs | 2 +- .../zoho_desk/sources/new-ticket-message/new-ticket-message.mjs | 2 +- components/zoho_desk/sources/new-ticket/new-ticket.mjs | 2 +- components/zoho_desk/sources/updated-ticket/updated-ticket.mjs | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/components/zoho_desk/package.json b/components/zoho_desk/package.json index 77722d645209b..dd33cd2e89812 100644 --- a/components/zoho_desk/package.json +++ b/components/zoho_desk/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/zoho_desk", - "version": "0.1.1", + "version": "0.2.0", "description": "Pipedream Zoho_desk Components", "main": "zoho_desk.app.mjs", "keywords": [ diff --git a/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs b/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs index cc3674ca73e4d..a800e8d0cd780 100644 --- a/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs +++ b/components/zoho_desk/sources/changed-ticket-status/changed-ticket-status.mjs @@ -6,7 +6,7 @@ export default { name: "New Ticket Status Change", description: "Emit new event when a status ticket is changed. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Tickets#Tickets_Listalltickets)", type: "source", - version: "0.0.3", + version: "0.0.4", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/new-account/new-account.mjs b/components/zoho_desk/sources/new-account/new-account.mjs index bed75c40510c0..ff975e65e83a0 100644 --- a/components/zoho_desk/sources/new-account/new-account.mjs +++ b/components/zoho_desk/sources/new-account/new-account.mjs @@ -6,7 +6,7 @@ export default { name: "New Account", description: "Emit new event when a new account is created. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Accounts#Accounts_Listaccounts)", type: "source", - version: "0.0.3", + version: "0.0.4", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/new-agent/new-agent.mjs b/components/zoho_desk/sources/new-agent/new-agent.mjs index 11e8211e8ae38..576c6bf921def 100644 --- a/components/zoho_desk/sources/new-agent/new-agent.mjs +++ b/components/zoho_desk/sources/new-agent/new-agent.mjs @@ -6,7 +6,7 @@ export default { name: "New Agent", description: "Emit new event when a new agent is created. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Agents#Agents_Listagents)", type: "source", - version: "0.0.3", + version: "0.0.4", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/new-contact/new-contact.mjs b/components/zoho_desk/sources/new-contact/new-contact.mjs index 5864fe1da8ea2..94c6662b4abf2 100644 --- a/components/zoho_desk/sources/new-contact/new-contact.mjs +++ b/components/zoho_desk/sources/new-contact/new-contact.mjs @@ -6,7 +6,7 @@ export default { name: "New Contact", description: "Emit new event when a new contact is created. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Contacts#Contacts_Listcontacts)", type: "source", - version: "0.0.3", + version: "0.0.4", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs b/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs index 6019b0ca0cb6c..c9b95d060ce16 100644 --- a/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs +++ b/components/zoho_desk/sources/new-ticket-attachment/new-ticket-attachment.mjs @@ -6,7 +6,7 @@ export default { name: "New Ticket Attachment", description: "Emit new event when a new ticket attachment is created. [See the docs here](https://desk.zoho.com/DeskAPIDocument#TicketAttachments#TicketAttachments_Listticketattachments)", type: "source", - version: "0.0.3", + version: "0.0.4", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs b/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs index d102e426ad9f0..14d31838efe57 100644 --- a/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs +++ b/components/zoho_desk/sources/new-ticket-comment/new-ticket-comment.mjs @@ -6,7 +6,7 @@ export default { name: "New Ticket Comment", description: "Emit new event when a new ticket comment is created. [See the docs here](https://desk.zoho.com/DeskAPIDocument#TicketsComments#TicketsComments_Listallticketcomments)", type: "source", - version: "0.0.3", + version: "0.0.4", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs b/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs index f384fce4d8ac4..d909ba1e39ada 100644 --- a/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs +++ b/components/zoho_desk/sources/new-ticket-message/new-ticket-message.mjs @@ -6,7 +6,7 @@ export default { name: "New Ticket Message", description: "Emit new event when a message ticket is created. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Threads#Threads_Listallthreads)", type: "source", - version: "0.0.3", + version: "0.0.4", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/new-ticket/new-ticket.mjs b/components/zoho_desk/sources/new-ticket/new-ticket.mjs index a92e260e3c58d..878001f3b95f1 100644 --- a/components/zoho_desk/sources/new-ticket/new-ticket.mjs +++ b/components/zoho_desk/sources/new-ticket/new-ticket.mjs @@ -6,7 +6,7 @@ export default { name: "New Ticket", description: "Emit new event when a new ticket is created. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Tickets#Tickets_Listalltickets)", type: "source", - version: "0.0.3", + version: "0.0.4", dedupe: "unique", props: { ...common.props, diff --git a/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs b/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs index 9081243e3c956..cf793594ee531 100644 --- a/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs +++ b/components/zoho_desk/sources/updated-ticket/updated-ticket.mjs @@ -6,7 +6,7 @@ export default { name: "New Updated Ticket", description: "Emit new event when a ticket is updated. [See the docs here](https://desk.zoho.com/DeskAPIDocument#Tickets#Tickets_Listalltickets)", type: "source", - version: "0.0.3", + version: "0.0.4", dedupe: "unique", props: { ...common.props, From 387b3846ef6dafcba99ba526eb6bf13e8eebb0b3 Mon Sep 17 00:00:00 2001 From: Michelle Bergeron Date: Thu, 7 Aug 2025 15:40:17 -0400 Subject: [PATCH 5/5] update imports --- components/zoho_desk/sources/common/common-polling.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/zoho_desk/sources/common/common-polling.mjs b/components/zoho_desk/sources/common/common-polling.mjs index c46756f67b75c..465601a125adc 100644 --- a/components/zoho_desk/sources/common/common-polling.mjs +++ b/components/zoho_desk/sources/common/common-polling.mjs @@ -1,6 +1,6 @@ -import constants from "../common/constants.mjs"; -import utils from "../common/utils.mjs"; -import zohoDesk from "../zoho_desk.app.mjs"; +import constants from "../../common/constants.mjs"; +import utils from "../../common/utils.mjs"; +import zohoDesk from "../../zoho_desk.app.mjs"; import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform"; export default {