From 6b3a082a793720982499e1b8f42ca167d401fbae Mon Sep 17 00:00:00 2001 From: Luan Cazarine Date: Tue, 27 May 2025 12:37:44 -0300 Subject: [PATCH 1/8] syncmate_by_assitro init --- .../send-bulk-messages/send-bulk-messages.mjs | 49 ++++++++++ .../actions/send-message/send-message.mjs | 41 ++++++++ components/syncmate_by_assitro/package.json | 2 +- .../syncmate_by_assitro.app.mjs | 93 ++++++++++++++++++- 4 files changed, 181 insertions(+), 4 deletions(-) create mode 100644 components/syncmate_by_assitro/actions/send-bulk-messages/send-bulk-messages.mjs create mode 100644 components/syncmate_by_assitro/actions/send-message/send-message.mjs diff --git a/components/syncmate_by_assitro/actions/send-bulk-messages/send-bulk-messages.mjs b/components/syncmate_by_assitro/actions/send-bulk-messages/send-bulk-messages.mjs new file mode 100644 index 0000000000000..3f993908dd3d9 --- /dev/null +++ b/components/syncmate_by_assitro/actions/send-bulk-messages/send-bulk-messages.mjs @@ -0,0 +1,49 @@ +import syncmateByAssitro from "../../syncmate_by_assitro.app.mjs"; +import { axios } from "@pipedream/platform"; + +export default { + key: "syncmate_by_assitro-send-bulk-messages", + name: "Send Bulk Messages", + description: "Send multiple WhatsApp messages in bulk. [See the documentation](https://assistro.co/user-guide/bulk-messaging-at-a-scheduled-time-using-syncmate-2/)", + version: "0.0.{{ts}}", + type: "action", + props: { + syncmateByAssitro, + numberOfMessages: { + propDefinition: [ + syncmateByAssitro, + "numberOfMessages", + ], + }, + number: { + propDefinition: [ + syncmateByAssitro, + "number", + ], + }, + message: { + propDefinition: [ + syncmateByAssitro, + "message", + ], + }, + media: { + propDefinition: [ + syncmateByAssitro, + "media", + ], + optional: true, + }, + }, + async run({ $ }) { + const response = await this.syncmateByAssitro.sendBulkMessages({ + numberOfMessages: this.numberOfMessages, + number: this.number, + message: this.message, + media: this.media, + }); + + $.export("$summary", `Successfully sent ${this.numberOfMessages} messages to ${this.number}`); + return response; + }, +}; diff --git a/components/syncmate_by_assitro/actions/send-message/send-message.mjs b/components/syncmate_by_assitro/actions/send-message/send-message.mjs new file mode 100644 index 0000000000000..854b8a29809f2 --- /dev/null +++ b/components/syncmate_by_assitro/actions/send-message/send-message.mjs @@ -0,0 +1,41 @@ +import syncmateByAssitro from "../../syncmate_by_assitro.app.mjs"; +import { axios } from "@pipedream/platform"; + +export default { + key: "syncmate_by_assitro-send-message", + name: "Send WhatsApp Message", + description: "Send a single WhatsApp message using SyncMate by Assistro. [See the documentation](https://assistro.co/user-guide/connect-your-custom-app-with-syncmate/)", + version: "0.0.{{ts}}", + type: "action", + props: { + syncmateByAssitro, + number: { + propDefinition: [ + syncmateByAssitro, + "number", + ], + }, + message: { + propDefinition: [ + syncmateByAssitro, + "message", + ], + }, + media: { + propDefinition: [ + syncmateByAssitro, + "media", + ], + }, + }, + async run({ $ }) { + const response = await this.syncmateByAssitro.sendSingleMessage({ + number: this.number, + message: this.message, + media: this.media, + }); + + $.export("$summary", `Successfully sent message to ${this.number}`); + return response; + }, +}; diff --git a/components/syncmate_by_assitro/package.json b/components/syncmate_by_assitro/package.json index d771ae625415f..b3e03c88218ca 100644 --- a/components/syncmate_by_assitro/package.json +++ b/components/syncmate_by_assitro/package.json @@ -12,4 +12,4 @@ "publishConfig": { "access": "public" } -} \ No newline at end of file +} diff --git a/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs b/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs index 75248e8dce136..addc7d05387b3 100644 --- a/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs +++ b/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs @@ -1,11 +1,98 @@ +import { axios } from "@pipedream/platform"; + export default { type: "app", app: "syncmate_by_assitro", - propDefinitions: {}, + propDefinitions: { + number: { + type: "string", + label: "Number", + description: "WhatsApp number with country code", + }, + message: { + type: "string", + label: "Message", + description: "The text message to be sent", + }, + media: { + type: "string[]", + label: "Media", + description: "Base64 encoded media files", + optional: true, + default: [], + }, + numberOfMessages: { + type: "integer", + label: "Number of Messages", + description: "The number of messages to send in bulk", + }, + }, methods: { - // this.$auth contains connected account data authKeys() { console.log(Object.keys(this.$auth)); }, + _baseUrl() { + return "https://app.assistro.co/api/v1/wapushplus"; + }, + async _makeRequest(opts = {}) { + const { + $ = this, + method = "POST", + path = "/", + headers, + ...otherOpts + } = opts; + return axios($, { + ...otherOpts, + method, + url: this._baseUrl() + path, + headers: { + "Authorization": `Bearer ${this.$auth.api_key}`, + "Content-Type": "application/json", + ...headers, + }, + }); + }, + async sendSingleMessage({ + number, message, media = [], + }) { + const data = { + msgs: [ + { + number, + message, + media: media.map((m) => ({ + media_base64: m, + file_name: `file_${Date.now()}`, + })), + }, + ], + }; + return this._makeRequest({ + path: "/single/message", + data, + }); + }, + async sendBulkMessages({ + numberOfMessages, number, message, media = [], + }) { + const msgs = Array.from({ + length: numberOfMessages, + }, () => ({ + number, + message, + media: media.map((m) => ({ + media_base64: m, + file_name: `file_${Date.now()}`, + })), + })); + const data = { + msgs, + }; + return this._makeRequest({ + path: "/bulk/message", + data, + }); + }, }, -}; \ No newline at end of file +}; From 48349337a1165bcbc74a30042e3cc1bd7171b055 Mon Sep 17 00:00:00 2001 From: Luan Cazarine Date: Tue, 27 May 2025 16:46:04 -0300 Subject: [PATCH 2/8] [Components] syncmate_by_assitro #16832 Actions - Send Message - Send Bulk Messages --- .../actions/common/base.mjs | 63 +++++++++++++ .../send-bulk-messages/send-bulk-messages.mjs | 92 ++++++++++++------- .../actions/send-message/send-message.mjs | 58 ++++++++---- .../syncmate_by_assitro/common/utils.mjs | 6 ++ components/syncmate_by_assitro/package.json | 6 +- .../syncmate_by_assitro.app.mjs | 92 ++++--------------- 6 files changed, 193 insertions(+), 124 deletions(-) create mode 100644 components/syncmate_by_assitro/actions/common/base.mjs create mode 100644 components/syncmate_by_assitro/common/utils.mjs diff --git a/components/syncmate_by_assitro/actions/common/base.mjs b/components/syncmate_by_assitro/actions/common/base.mjs new file mode 100644 index 0000000000000..bc25391f9a3cb --- /dev/null +++ b/components/syncmate_by_assitro/actions/common/base.mjs @@ -0,0 +1,63 @@ +import { ConfigurationError } from "@pipedream/platform"; +import fs from "fs"; +import { checkTmp } from "../../common/utils.mjs"; +import syncmateByAssitro from "../../syncmate_by_assitro.app.mjs"; + +export default { + props: { + syncmateByAssitro, + number: { + propDefinition: [ + syncmateByAssitro, + "number", + ], + }, + message: { + propDefinition: [ + syncmateByAssitro, + "message", + ], + }, + media: { + propDefinition: [ + syncmateByAssitro, + "media", + ], + }, + fileName: { + propDefinition: [ + syncmateByAssitro, + "fileName", + ], + optional: true, + }, + }, + async run({ $ }) { + if (this.media && !this.fileName) { + throw new ConfigurationError("You must provide the file name."); + } + const file = fs.readFileSync(checkTmp(this.media), { + encoding: "base64", + }); + const response = await this.syncmateByAssitro.sendSingleMessage({ + $, + data: { + msgs: [ + { + number: this.number, + message: this.message, + media: [ + { + media_base64: file, + file_name: this.fileName, + }, + ], + }, + ], + }, + }); + + $.export("$summary", `Successfully sent message to ${this.number}`); + return response; + }, +}; diff --git a/components/syncmate_by_assitro/actions/send-bulk-messages/send-bulk-messages.mjs b/components/syncmate_by_assitro/actions/send-bulk-messages/send-bulk-messages.mjs index 3f993908dd3d9..8480a5973a436 100644 --- a/components/syncmate_by_assitro/actions/send-bulk-messages/send-bulk-messages.mjs +++ b/components/syncmate_by_assitro/actions/send-bulk-messages/send-bulk-messages.mjs @@ -1,49 +1,79 @@ +import fs from "fs"; +import { checkTmp } from "../../common/utils.mjs"; import syncmateByAssitro from "../../syncmate_by_assitro.app.mjs"; -import { axios } from "@pipedream/platform"; export default { key: "syncmate_by_assitro-send-bulk-messages", name: "Send Bulk Messages", description: "Send multiple WhatsApp messages in bulk. [See the documentation](https://assistro.co/user-guide/bulk-messaging-at-a-scheduled-time-using-syncmate-2/)", - version: "0.0.{{ts}}", + version: "0.0.1", type: "action", props: { syncmateByAssitro, - numberOfMessages: { - propDefinition: [ - syncmateByAssitro, - "numberOfMessages", - ], - }, - number: { - propDefinition: [ - syncmateByAssitro, - "number", - ], - }, - message: { - propDefinition: [ - syncmateByAssitro, - "message", - ], - }, - media: { - propDefinition: [ - syncmateByAssitro, - "media", - ], - optional: true, + messagesNumber: { + type: "string", + label: "Messages Number", + description: "The quantity of messages you want to send.", + reloadProps: true, }, }, + async additionalProps() { + const props = {}; + for (let i = 1; i <= this.messagesNumber; i++) { + props[`number${i}`] = { + type: "string", + label: `Number ${i}`, + description: "WhatsApp number with country code", + }; + props[`message${i}`] = { + type: "string", + label: `Message ${i}`, + description: "The text message to be sent", + }; + props[`media${i}`] = { + type: "string", + label: `Media ${i}`, + description: "Base64 encoded media files", + optional: true, + }; + props[`fileName${i}`] = { + type: "string", + label: `File Name ${i}`, + description: "The name of the file.", + optional: true, + }; + } + + return props; + }, async run({ $ }) { + const msgs = []; + + for (let i = 1; i <= this.messagesNumber; i++) { + const file = fs.readFileSync(checkTmp(this[`media${i}`]), { + encoding: "base64", + }); + + msgs.push({ + number: this[`number${i}`], + message: this[`message${i}`], + media: [ + { + media_base64: file, + file_name: this[`fileName${i}`], + }, + ], + }); + } + const response = await this.syncmateByAssitro.sendBulkMessages({ - numberOfMessages: this.numberOfMessages, - number: this.number, - message: this.message, - media: this.media, + $, + data: { + msgs, + }, }); - $.export("$summary", `Successfully sent ${this.numberOfMessages} messages to ${this.number}`); + $.export("$summary", `Successfully sent ${this.messagesNumber} messages.`); return response; }, }; diff --git a/components/syncmate_by_assitro/actions/send-message/send-message.mjs b/components/syncmate_by_assitro/actions/send-message/send-message.mjs index 854b8a29809f2..06074131068bc 100644 --- a/components/syncmate_by_assitro/actions/send-message/send-message.mjs +++ b/components/syncmate_by_assitro/actions/send-message/send-message.mjs @@ -1,38 +1,62 @@ +import { ConfigurationError } from "@pipedream/platform"; +import fs from "fs"; +import { checkTmp } from "../../common/utils.mjs"; import syncmateByAssitro from "../../syncmate_by_assitro.app.mjs"; -import { axios } from "@pipedream/platform"; export default { key: "syncmate_by_assitro-send-message", name: "Send WhatsApp Message", description: "Send a single WhatsApp message using SyncMate by Assistro. [See the documentation](https://assistro.co/user-guide/connect-your-custom-app-with-syncmate/)", - version: "0.0.{{ts}}", + version: "0.0.1", type: "action", props: { syncmateByAssitro, number: { - propDefinition: [ - syncmateByAssitro, - "number", - ], + type: "string", + label: "Number", + description: "WhatsApp number with country code", }, message: { - propDefinition: [ - syncmateByAssitro, - "message", - ], + type: "string", + label: "Message", + description: "The text message to be sent", }, media: { - propDefinition: [ - syncmateByAssitro, - "media", - ], + type: "string", + label: "Media", + description: "Base64 encoded media files", + optional: true, + }, + fileName: { + type: "string", + label: "File Name", + description: "The name of the file.", + optional: true, }, }, async run({ $ }) { + if (this.media && !this.fileName) { + throw new ConfigurationError("You must provide the file name."); + } + const file = fs.readFileSync(checkTmp(this.media), { + encoding: "base64", + }); const response = await this.syncmateByAssitro.sendSingleMessage({ - number: this.number, - message: this.message, - media: this.media, + $, + data: { + msgs: [ + { + number: this.number, + message: this.message, + media: [ + { + media_base64: file, + file_name: this.fileName, + }, + ], + }, + ], + }, }); $.export("$summary", `Successfully sent message to ${this.number}`); diff --git a/components/syncmate_by_assitro/common/utils.mjs b/components/syncmate_by_assitro/common/utils.mjs new file mode 100644 index 0000000000000..1a5e36f32a603 --- /dev/null +++ b/components/syncmate_by_assitro/common/utils.mjs @@ -0,0 +1,6 @@ +export const checkTmp = (filename) => { + if (!filename.startsWith("/tmp")) { + return `/tmp/${filename}`; + } + return filename; +}; diff --git a/components/syncmate_by_assitro/package.json b/components/syncmate_by_assitro/package.json index b3e03c88218ca..965af52a00c1a 100644 --- a/components/syncmate_by_assitro/package.json +++ b/components/syncmate_by_assitro/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/syncmate_by_assitro", - "version": "0.0.1", + "version": "0.1.0", "description": "Pipedream SyncMate by Assitro Components", "main": "syncmate_by_assitro.app.mjs", "keywords": [ @@ -11,5 +11,9 @@ "author": "Pipedream (https://pipedream.com/)", "publishConfig": { "access": "public" + }, + "dependencies": { + "@pipedream/platform": "^3.0.3", + "fs": "^0.0.1-security" } } diff --git a/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs b/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs index addc7d05387b3..dfe13f875435b 100644 --- a/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs +++ b/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs @@ -3,95 +3,37 @@ import { axios } from "@pipedream/platform"; export default { type: "app", app: "syncmate_by_assitro", - propDefinitions: { - number: { - type: "string", - label: "Number", - description: "WhatsApp number with country code", - }, - message: { - type: "string", - label: "Message", - description: "The text message to be sent", - }, - media: { - type: "string[]", - label: "Media", - description: "Base64 encoded media files", - optional: true, - default: [], - }, - numberOfMessages: { - type: "integer", - label: "Number of Messages", - description: "The number of messages to send in bulk", - }, - }, methods: { - authKeys() { - console.log(Object.keys(this.$auth)); - }, _baseUrl() { return "https://app.assistro.co/api/v1/wapushplus"; }, - async _makeRequest(opts = {}) { - const { - $ = this, - method = "POST", - path = "/", - headers, - ...otherOpts - } = opts; + _headers() { + return { + "Authorization": `Bearer ${this.$auth.api_key}`, + "Content-Type": "application/json", + }; + }, + _makeRequest({ + $ = this, path, ...opts + }) { return axios($, { - ...otherOpts, - method, url: this._baseUrl() + path, - headers: { - "Authorization": `Bearer ${this.$auth.api_key}`, - "Content-Type": "application/json", - ...headers, - }, + headers: this._headers(), + ...opts, }); }, - async sendSingleMessage({ - number, message, media = [], - }) { - const data = { - msgs: [ - { - number, - message, - media: media.map((m) => ({ - media_base64: m, - file_name: `file_${Date.now()}`, - })), - }, - ], - }; + sendSingleMessage(opts = {}) { return this._makeRequest({ + method: "POST", path: "/single/message", - data, + ...opts, }); }, - async sendBulkMessages({ - numberOfMessages, number, message, media = [], - }) { - const msgs = Array.from({ - length: numberOfMessages, - }, () => ({ - number, - message, - media: media.map((m) => ({ - media_base64: m, - file_name: `file_${Date.now()}`, - })), - })); - const data = { - msgs, - }; + sendBulkMessages(opts = {}) { return this._makeRequest({ + method: "POST", path: "/bulk/message", - data, + ...opts, }); }, }, From e6dc23266331439ed49e0fc7ed45bb0dbee0c680 Mon Sep 17 00:00:00 2001 From: Luan Cazarine Date: Tue, 27 May 2025 17:06:22 -0300 Subject: [PATCH 3/8] pnpm update --- pnpm-lock.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 990f7c17c9d1d..285763e0f225b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13022,7 +13022,13 @@ importers: version: 1.6.6 components/syncmate_by_assitro: - specifiers: {} + dependencies: + '@pipedream/platform': + specifier: ^3.0.3 + version: 3.0.3 + fs: + specifier: ^0.0.1-security + version: 0.0.1-security components/syncro: {} From 369844581cce7b5079234bd47d5ac18fef759e52 Mon Sep 17 00:00:00 2001 From: Luan Cazarine Date: Wed, 28 May 2025 10:50:07 -0300 Subject: [PATCH 4/8] Update components/syncmate_by_assitro/package.json Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- components/syncmate_by_assitro/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/syncmate_by_assitro/package.json b/components/syncmate_by_assitro/package.json index 965af52a00c1a..09f1d6cb6316a 100644 --- a/components/syncmate_by_assitro/package.json +++ b/components/syncmate_by_assitro/package.json @@ -14,6 +14,8 @@ }, "dependencies": { "@pipedream/platform": "^3.0.3", - "fs": "^0.0.1-security" + "dependencies": { + "@pipedream/platform": "^3.0.3" + } } } From 9ac982c3cda8499f467155d2fdcbbd91b3cff762 Mon Sep 17 00:00:00 2001 From: Luan Cazarine Date: Wed, 28 May 2025 11:12:45 -0300 Subject: [PATCH 5/8] some adjusts --- .../actions/common/base.mjs | 63 ------------------- .../send-bulk-messages/send-bulk-messages.mjs | 28 ++++++--- .../actions/send-message/send-message.mjs | 39 +++++++----- components/syncmate_by_assitro/package.json | 3 +- .../syncmate_by_assitro.app.mjs | 5 ++ 5 files changed, 47 insertions(+), 91 deletions(-) delete mode 100644 components/syncmate_by_assitro/actions/common/base.mjs diff --git a/components/syncmate_by_assitro/actions/common/base.mjs b/components/syncmate_by_assitro/actions/common/base.mjs deleted file mode 100644 index bc25391f9a3cb..0000000000000 --- a/components/syncmate_by_assitro/actions/common/base.mjs +++ /dev/null @@ -1,63 +0,0 @@ -import { ConfigurationError } from "@pipedream/platform"; -import fs from "fs"; -import { checkTmp } from "../../common/utils.mjs"; -import syncmateByAssitro from "../../syncmate_by_assitro.app.mjs"; - -export default { - props: { - syncmateByAssitro, - number: { - propDefinition: [ - syncmateByAssitro, - "number", - ], - }, - message: { - propDefinition: [ - syncmateByAssitro, - "message", - ], - }, - media: { - propDefinition: [ - syncmateByAssitro, - "media", - ], - }, - fileName: { - propDefinition: [ - syncmateByAssitro, - "fileName", - ], - optional: true, - }, - }, - async run({ $ }) { - if (this.media && !this.fileName) { - throw new ConfigurationError("You must provide the file name."); - } - const file = fs.readFileSync(checkTmp(this.media), { - encoding: "base64", - }); - const response = await this.syncmateByAssitro.sendSingleMessage({ - $, - data: { - msgs: [ - { - number: this.number, - message: this.message, - media: [ - { - media_base64: file, - file_name: this.fileName, - }, - ], - }, - ], - }, - }); - - $.export("$summary", `Successfully sent message to ${this.number}`); - return response; - }, -}; diff --git a/components/syncmate_by_assitro/actions/send-bulk-messages/send-bulk-messages.mjs b/components/syncmate_by_assitro/actions/send-bulk-messages/send-bulk-messages.mjs index 8480a5973a436..6a3f30cbe4f8c 100644 --- a/components/syncmate_by_assitro/actions/send-bulk-messages/send-bulk-messages.mjs +++ b/components/syncmate_by_assitro/actions/send-bulk-messages/send-bulk-messages.mjs @@ -1,3 +1,4 @@ +import { ConfigurationError } from "@pipedream/platform"; import fs from "fs"; import { checkTmp } from "../../common/utils.mjs"; import syncmateByAssitro from "../../syncmate_by_assitro.app.mjs"; @@ -11,7 +12,7 @@ export default { props: { syncmateByAssitro, messagesNumber: { - type: "string", + type: "integer", label: "Messages Number", description: "The quantity of messages you want to send.", reloadProps: true, @@ -33,7 +34,7 @@ export default { props[`media${i}`] = { type: "string", label: `Media ${i}`, - description: "Base64 encoded media files", + description: "The the path to a file in the `/tmp` directory. [See the documentation on working with files](https://pipedream.com/docs/code/nodejs/working-with-files/#writing-a-file-to-tmp).", optional: true, }; props[`fileName${i}`] = { @@ -50,20 +51,27 @@ export default { const msgs = []; for (let i = 1; i <= this.messagesNumber; i++) { - const file = fs.readFileSync(checkTmp(this[`media${i}`]), { - encoding: "base64", - }); - - msgs.push({ + if (this[`media${i}`] && !this[`fileName${i}`]) { + throw new ConfigurationError(`You must provide the File Name ${i}.`); + } + const data = { number: this[`number${i}`], message: this[`message${i}`], - media: [ + }; + + if (this[`media${i}`]) { + const file = fs.readFileSync(checkTmp(this[`media${i}`]), { + encoding: "base64", + }); + data.media = [ { media_base64: file, file_name: this[`fileName${i}`], }, - ], - }); + ]; + } + + msgs.push(data); } const response = await this.syncmateByAssitro.sendBulkMessages({ diff --git a/components/syncmate_by_assitro/actions/send-message/send-message.mjs b/components/syncmate_by_assitro/actions/send-message/send-message.mjs index 06074131068bc..d8fa92bd1ffc7 100644 --- a/components/syncmate_by_assitro/actions/send-message/send-message.mjs +++ b/components/syncmate_by_assitro/actions/send-message/send-message.mjs @@ -24,7 +24,7 @@ export default { media: { type: "string", label: "Media", - description: "Base64 encoded media files", + description: "The the path to a file in the `/tmp` directory. [See the documentation on working with files](https://pipedream.com/docs/code/nodejs/working-with-files/#writing-a-file-to-tmp).", optional: true, }, fileName: { @@ -38,24 +38,31 @@ export default { if (this.media && !this.fileName) { throw new ConfigurationError("You must provide the file name."); } - const file = fs.readFileSync(checkTmp(this.media), { - encoding: "base64", - }); + + const msgs = [ + { + number: this.number, + message: this.message, + }, + ]; + + if (this.media) { + const file = fs.readFileSync(checkTmp(this.media), { + encoding: "base64", + }); + + msgs[0].media = [ + { + media_base64: file, + file_name: this.fileName, + }, + ]; + } + const response = await this.syncmateByAssitro.sendSingleMessage({ $, data: { - msgs: [ - { - number: this.number, - message: this.message, - media: [ - { - media_base64: file, - file_name: this.fileName, - }, - ], - }, - ], + msgs, }, }); diff --git a/components/syncmate_by_assitro/package.json b/components/syncmate_by_assitro/package.json index 965af52a00c1a..259eda1b8640b 100644 --- a/components/syncmate_by_assitro/package.json +++ b/components/syncmate_by_assitro/package.json @@ -13,7 +13,6 @@ "access": "public" }, "dependencies": { - "@pipedream/platform": "^3.0.3", - "fs": "^0.0.1-security" + "@pipedream/platform": "^3.0.3" } } diff --git a/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs b/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs index dfe13f875435b..d37446116d168 100644 --- a/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs +++ b/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs @@ -16,6 +16,11 @@ export default { _makeRequest({ $ = this, path, ...opts }) { + console.log("config", { + url: this._baseUrl() + path, + headers: this._headers(), + ...opts, + }); return axios($, { url: this._baseUrl() + path, headers: this._headers(), From b1a590b98cd754663d1315a1fd56af1a1ba219e3 Mon Sep 17 00:00:00 2001 From: Luan Cazarine Date: Wed, 28 May 2025 11:14:09 -0300 Subject: [PATCH 6/8] pnpm update --- pnpm-lock.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 285763e0f225b..d9d040fdec3b6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13026,9 +13026,6 @@ importers: '@pipedream/platform': specifier: ^3.0.3 version: 3.0.3 - fs: - specifier: ^0.0.1-security - version: 0.0.1-security components/syncro: {} From a7c90a639d18b35aa9062fc2972e48ea83176e1d Mon Sep 17 00:00:00 2001 From: Luan Cazarine Date: Wed, 28 May 2025 11:18:45 -0300 Subject: [PATCH 7/8] pnpm update --- pnpm-lock.yaml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7ae769535da64..2fe569ffe3769 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11169,8 +11169,7 @@ importers: specifier: ^3.0.3 version: 3.0.3 - components/ringg_ai: - specifiers: {} + components/ringg_ai: {} components/ringover: dependencies: @@ -15515,14 +15514,6 @@ importers: specifier: ^6.0.0 version: 6.2.0 - modelcontextprotocol/node_modules2/@modelcontextprotocol/sdk/dist/cjs: {} - - modelcontextprotocol/node_modules2/@modelcontextprotocol/sdk/dist/esm: {} - - modelcontextprotocol/node_modules2/zod-to-json-schema/dist/cjs: {} - - modelcontextprotocol/node_modules2/zod-to-json-schema/dist/esm: {} - packages/ai: dependencies: '@pipedream/sdk': From 6c6aba1fce6dc5dbad644d25fd12a31ade8a537d Mon Sep 17 00:00:00 2001 From: Luan Cazarine Date: Wed, 28 May 2025 11:36:17 -0300 Subject: [PATCH 8/8] Update components/syncmate_by_assitro/syncmate_by_assitro.app.mjs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- components/syncmate_by_assitro/syncmate_by_assitro.app.mjs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs b/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs index d37446116d168..dfe13f875435b 100644 --- a/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs +++ b/components/syncmate_by_assitro/syncmate_by_assitro.app.mjs @@ -16,11 +16,6 @@ export default { _makeRequest({ $ = this, path, ...opts }) { - console.log("config", { - url: this._baseUrl() + path, - headers: this._headers(), - ...opts, - }); return axios($, { url: this._baseUrl() + path, headers: this._headers(),