Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

feat(sendfox): ui improvement (#16784)

Talal Jaber50ce8107ff77
diff --git a/bun.lock b/bun.lock
index 1d1b75cc65b..a838747f58a 100644
--- a/bun.lock
+++ b/bun.lock
@@ -8252,7 +8252,7 @@
},
"packages/pieces/community/sendfox": {
"name": "@activepieces/piece-sendfox",
- "version": "0.2.0",
+ "version": "0.3.0",
"dependencies": {
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
diff --git a/packages/pieces/community/sendfox/package.json b/packages/pieces/community/sendfox/package.json
index f41f2387ddd..624d03861ca 100644
--- a/packages/pieces/community/sendfox/package.json
+++ b/packages/pieces/community/sendfox/package.json
@@ -1,6 +1,6 @@
{
"name": "@activepieces/piece-sendfox",
- "version": "0.2.0",
+ "version": "0.3.0",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"scripts": {
diff --git a/packages/pieces/community/sendfox/src/common/index.ts b/packages/pieces/community/sendfox/src/common/index.ts
index 214f3175460..81ce1d066d7 100644
--- a/packages/pieces/community/sendfox/src/common/index.ts
+++ b/packages/pieces/community/sendfox/src/common/index.ts
@@ -59,16 +59,18 @@ export async function getcontacts(accessToken: string) {
}
export const sendfoxCommon = {
+ baseUrl: 'https://api.sendfox.com',
lists: Property.Dropdown({
auth: sendfoxAuth,
- displayName: 'Lists',
+ displayName: 'List',
+ description: 'Leave empty to add the contact without a list.',
required: false,
refreshers: ['auth'],
options: async ({ auth }) => {
if (!auth) {
return {
disabled: true,
- placeholder: 'connect your account first',
+ placeholder: 'Please connect your account first',
options: [],
};
}
@@ -76,21 +78,36 @@ export const sendfoxCommon = {
if (!authentication) {
return {
disabled: true,
- placeholder: 'connect your account first',
+ placeholder: 'Please connect your account first',
options: [],
};
}
const accessToken = authentication;
- const list_of_lists = await getLists(accessToken);
- return {
- disabled: false,
- options: list_of_lists.flat().map((list) => {
+ try {
+ const lists = (await getLists(accessToken)).flat();
+ if (lists.length === 0) {
return {
- label: list.name,
- value: list.id,
+ disabled: false,
+ placeholder: 'No lists found. Create one in SendFox first.',
+ options: [],
};
- }),
- };
+ }
+ return {
+ disabled: false,
+ options: lists.map((list) => {
+ return {
+ label: list.name,
+ value: list.id,
+ };
+ }),
+ };
+ } catch {
+ return {
+ disabled: true,
+ placeholder: 'Failed to load lists. Check your connection.',
+ options: [],
+ };
+ }
},
}),
};
@@ -103,7 +120,7 @@ export async function callsendfoxApi<T extends HttpMessageBody>(
): Promise<HttpResponse<T>> {
return await httpClient.sendRequest<T>({
method: method,
- url: `https://api.sendfox.com/${apiUrl}`,
+ url: `${sendfoxCommon.baseUrl}/${apiUrl}`,
authentication: {
type: AuthenticationType.BEARER_TOKEN,
token: accessToken,
diff --git a/packages/pieces/community/sendfox/src/i18n/de.json b/packages/pieces/community/sendfox/src/i18n/de.json
index 70925da2b21..b7fa0575e14 100644
--- a/packages/pieces/community/sendfox/src/i18n/de.json
+++ b/packages/pieces/community/sendfox/src/i18n/de.json
@@ -34,5 +34,24 @@
"None": "Keine",
"JSON": "JSON",
"Form Data": "Formulardaten",
- "Raw": "Rohe"
+ "Raw": "Rohe",
+ "To get your personal access token:\n1. In SendFox, open **Settings → Connections → API tokens**, or go to [sendfox.com/account/oauth](https://sendfox.com/account/oauth).\n2. Under **Personal Access Tokens**, click **Create New Token**.\n3. Enter a name for the token and click **Create**.\n4. Copy the token right away (SendFox shows it only once) and paste it here.": "So erhalten Sie Ihr persönliches Zugriffstoken:\n1. Öffnen Sie in SendFox **Settings → Connections → API tokens** oder rufen Sie [sendfox.com/account/oauth](https://sendfox.com/account/oauth) auf.\n2. Klicken Sie unter **Personal Access Tokens** auf **Create New Token**.\n3. Geben Sie einen Namen für das Token ein und klicken Sie auf **Create**.\n4. Kopieren Sie das Token sofort (SendFox zeigt es nur einmal an) und fügen Sie es hier ein.",
+ "Create a contact list in SendFox": "Eine Kontaktliste in SendFox erstellen",
+ "Stop all SendFox emails to a contact": "Alle SendFox-E-Mails an einen Kontakt stoppen",
+ "Add a contact to SendFox, optionally to one of your lists": "Einen Kontakt zu SendFox hinzufügen, optional zu einer Ihrer Listen",
+ "Markdown": "Markdown",
+ "List": "Liste",
+ "Response is Binary": "Antwort ist binär",
+ "Return Error as Output": "Fehler als Ausgabe zurückgeben",
+ "Timeout": "Zeitlimit",
+ "Stops **all** SendFox emails to this address, on every list. SendFox has no way to undo this through the API.": "Stoppt **alle** SendFox-E-Mails an diese Adresse, auf jeder Liste. SendFox bietet keine Möglichkeit, dies über die API rückgängig zu machen.",
+ "Leave empty to add the contact without a list.": "Leer lassen, um den Kontakt ohne Liste hinzuzufügen.",
+ "Appended to the URL as ?key=value.": "Wird als ?key=value an die URL angehängt.",
+ "On a failed request, output the error instead of failing the step.": "Bei einer fehlgeschlagenen Anfrage den Fehler ausgeben, statt den Schritt abzubrechen.",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Sekunden bis zur Antwort. Leer: bis zum Flow-Limit (10 Min.).",
+ "Follow 3xx redirects instead of returning them as the response.": "3xx-Weiterleitungen folgen, statt sie als Antwort zurückzugeben.",
+ "Contact": "Kontakt",
+ "Add to list": "Zur Liste hinzufügen",
+ "Request": "Anfrage",
+ "Data to send": "Zu sendende Daten"
}
\ No newline at end of file
diff --git a/packages/pieces/community/sendfox/src/i18n/es.json b/packages/pieces/community/sendfox/src/i18n/es.json
index 6ad82f78d5c..eba03d6da1c 100644
--- a/packages/pieces/community/sendfox/src/i18n/es.json
+++ b/packages/pieces/community/sendfox/src/i18n/es.json
@@ -34,5 +34,24 @@
"None": "Ninguna",
"JSON": "JSON",
"Form Data": "Datos de Formulario",
- "Raw": "Rápido"
+ "Raw": "Rápido",
+ "To get your personal access token:\n1. In SendFox, open **Settings → Connections → API tokens**, or go to [sendfox.com/account/oauth](https://sendfox.com/account/oauth).\n2. Under **Personal Access Tokens**, click **Create New Token**.\n3. Enter a name for the token and click **Create**.\n4. Copy the token right away (SendFox shows it only once) and paste it here.": "Para obtener tu token de acceso personal:\n1. En SendFox, abre **Settings → Connections → API tokens** o ve a [sendfox.com/account/oauth](https://sendfox.com/account/oauth).\n2. En **Personal Access Tokens**, haz clic en **Create New Token**.\n3. Escribe un nombre para el token y haz clic en **Create**.\n4. Copia el token de inmediato (SendFox solo lo muestra una vez) y pégalo aquí.",
+ "Create a contact list in SendFox": "Crear una lista de contactos en SendFox",
+ "Stop all SendFox emails to a contact": "Detener todos los correos de SendFox a un contacto",
+ "Add a contact to SendFox, optionally to one of your lists": "Añadir un contacto a SendFox y, si quieres, a una de tus listas",
+ "Markdown": "Markdown",
+ "List": "Lista",
+ "Response is Binary": "Respuesta binaria",
+ "Return Error as Output": "Devolver error como salida",
+ "Timeout": "Tiempo de espera",
+ "Stops **all** SendFox emails to this address, on every list. SendFox has no way to undo this through the API.": "Detiene **todos** los correos de SendFox a esta dirección, en todas las listas. SendFox no permite deshacerlo a través de la API.",
+ "Leave empty to add the contact without a list.": "Déjalo vacío para añadir el contacto sin lista.",
+ "Appended to the URL as ?key=value.": "Se añade a la URL como ?key=value.",
+ "On a failed request, output the error instead of failing the step.": "Si la solicitud falla, devuelve el error en lugar de fallar el paso.",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Segundos de espera de la respuesta. Vacío: hasta el límite del flujo (10 min).",
+ "Follow 3xx redirects instead of returning them as the response.": "Seguir las redirecciones 3xx en lugar de devolverlas como respuesta.",
+ "Contact": "Contacto",
+ "Add to list": "Añadir a la lista",
+ "Request": "Solicitud",
+ "Data to send": "Datos a enviar"
}
\ No newline at end of file
diff --git a/packages/pieces/community/sendfox/src/i18n/fr.json b/packages/pieces/community/sendfox/src/i18n/fr.json
index ea06db80dbd..ab31140a671 100644
--- a/packages/pieces/community/sendfox/src/i18n/fr.json
+++ b/packages/pieces/community/sendfox/src/i18n/fr.json
@@ -34,5 +34,24 @@
"None": "Aucun",
"JSON": "JSON",
"Form Data": "Données du formulaire",
- "Raw": "Brut"
+ "Raw": "Brut",
+ "To get your personal access token:\n1. In SendFox, open **Settings → Connections → API tokens**, or go to [sendfox.com/account/oauth](https://sendfox.com/account/oauth).\n2. Under **Personal Access Tokens**, click **Create New Token**.\n3. Enter a name for the token and click **Create**.\n4. Copy the token right away (SendFox shows it only once) and paste it here.": "Pour obtenir votre jeton d'accès personnel :\n1. Dans SendFox, ouvrez **Settings → Connections → API tokens**, ou allez sur [sendfox.com/account/oauth](https://sendfox.com/account/oauth).\n2. Sous **Personal Access Tokens**, cliquez sur **Create New Token**.\n3. Saisissez un nom pour le jeton et cliquez sur **Create**.\n4. Copiez le jeton tout de suite (SendFox ne l'affiche qu'une fois) et collez-le ici.",
+ "Create a contact list in SendFox": "Créer une liste de contacts dans SendFox",
+ "Stop all SendFox emails to a contact": "Arrêter tous les e-mails SendFox envoyés à un contact",
+ "Add a contact to SendFox, optionally to one of your lists": "Ajouter un contact à SendFox, et éventuellement à l'une de vos listes",
+ "Markdown": "Markdown",
+ "List": "Liste",
+ "Response is Binary": "La réponse est binaire",
+ "Return Error as Output": "Renvoyer l'erreur comme sortie",
+ "Timeout": "Délai d'expiration",
+ "Stops **all** SendFox emails to this address, on every list. SendFox has no way to undo this through the API.": "Arrête **tous** les e-mails SendFox envoyés à cette adresse, sur toutes les listes. SendFox ne permet pas d'annuler cette action via l'API.",
+ "Leave empty to add the contact without a list.": "Laissez vide pour ajouter le contact sans liste.",
+ "Appended to the URL as ?key=value.": "Ajouté à l'URL sous la forme ?key=value.",
+ "On a failed request, output the error instead of failing the step.": "En cas d'échec de la requête, renvoyer l'erreur au lieu de faire échouer l'étape.",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Secondes d'attente de la réponse. Vide : jusqu'à la limite du flux (10 min).",
+ "Follow 3xx redirects instead of returning them as the response.": "Suivre les redirections 3xx au lieu de les renvoyer comme réponse.",
+ "Contact": "Contact",
+ "Add to list": "Ajouter à la liste",
+ "Request": "Requête",
+ "Data to send": "Données à envoyer"
}
\ No newline at end of file
diff --git a/packages/pieces/community/sendfox/src/i18n/ja.json b/packages/pieces/community/sendfox/src/i18n/ja.json
index 9239fbab7de..00f5edf10e6 100644
--- a/packages/pieces/community/sendfox/src/i18n/ja.json
+++ b/packages/pieces/community/sendfox/src/i18n/ja.json
@@ -34,5 +34,24 @@
"None": "なし",
"JSON": "JSON",
"Form Data": "フォームデータ",
- "Raw": "Raw"
+ "Raw": "Raw",
+ "To get your personal access token:\n1. In SendFox, open **Settings → Connections → API tokens**, or go to [sendfox.com/account/oauth](https://sendfox.com/account/oauth).\n2. Under **Personal Access Tokens**, click **Create New Token**.\n3. Enter a name for the token and click **Create**.\n4. Copy the token right away (SendFox shows it only once) and paste it here.": "個人アクセストークンを取得するには:\n1. SendFox で **Settings → Connections → API tokens** を開くか、[sendfox.com/account/oauth](https://sendfox.com/account/oauth) にアクセスします。\n2. **Personal Access Tokens** で **Create New Token** をクリックします。\n3. トークンの名前を入力し、**Create** をクリックします。\n4. トークンをすぐにコピーし(SendFox では一度しか表示されません)、ここに貼り付けます。",
+ "Create a contact list in SendFox": "SendFox で連絡先リストを作成します",
+ "Stop all SendFox emails to a contact": "連絡先への SendFox メールをすべて停止します",
+ "Add a contact to SendFox, optionally to one of your lists": "SendFox に連絡先を追加します(任意でリストにも追加)",
+ "Markdown": "Markdown",
+ "List": "リスト",
+ "Response is Binary": "レスポンスをバイナリとして扱う",
+ "Return Error as Output": "エラーを出力として返す",
+ "Timeout": "タイムアウト",
+ "Stops **all** SendFox emails to this address, on every list. SendFox has no way to undo this through the API.": "このアドレスへの SendFox メールを、すべてのリストで**すべて**停止します。SendFox の API ではこの操作を元に戻せません。",
+ "Leave empty to add the contact without a list.": "空欄にすると、リストに入れずに連絡先を追加します。",
+ "Appended to the URL as ?key=value.": "URLの末尾に ?key=value の形で追加されます。",
+ "On a failed request, output the error instead of failing the step.": "リクエスト失敗時にステップを失敗させず、エラーを出力します。",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "応答を待つ秒数です。空欄にすると、フローの上限(10分)まで待ちます。",
+ "Follow 3xx redirects instead of returning them as the response.": "オンにすると、3xx のリダイレクトを応答として返さずに、リダイレクト先をたどります。",
+ "Contact": "連絡先",
+ "Add to list": "リストに追加",
+ "Request": "リクエスト",
+ "Data to send": "送信するデータ"
}
\ No newline at end of file
diff --git a/packages/pieces/community/sendfox/src/i18n/nl.json b/packages/pieces/community/sendfox/src/i18n/nl.json
index 94d0a633c8c..593e2def50b 100644
--- a/packages/pieces/community/sendfox/src/i18n/nl.json
+++ b/packages/pieces/community/sendfox/src/i18n/nl.json
@@ -34,5 +34,24 @@
"None": "geen",
"JSON": "JSON",
"Form Data": "Formulieren gegevens",
- "Raw": "Onbewerkte"
+ "Raw": "Onbewerkte",
+ "To get your personal access token:\n1. In SendFox, open **Settings → Connections → API tokens**, or go to [sendfox.com/account/oauth](https://sendfox.com/account/oauth).\n2. Under **Personal Access Tokens**, click **Create New Token**.\n3. Enter a name for the token and click **Create**.\n4. Copy the token right away (SendFox shows it only once) and paste it here.": "Zo krijgt u uw persoonlijke toegangstoken:\n1. Open in SendFox **Settings → Connections → API tokens**, of ga naar [sendfox.com/account/oauth](https://sendfox.com/account/oauth).\n2. Klik onder **Personal Access Tokens** op **Create New Token**.\n3. Voer een naam voor het token in en klik op **Create**.\n4. Kopieer het token meteen (SendFox toont het maar één keer) en plak het hier.",
+ "Create a contact list in SendFox": "Een contactlijst maken in SendFox",
+ "Stop all SendFox emails to a contact": "Alle SendFox-e-mails aan een contact stoppen",
+ "Add a contact to SendFox, optionally to one of your lists": "Een contact toevoegen aan SendFox, optioneel aan een van uw lijsten",
+ "Markdown": "Markdown",
+ "List": "Lijst",
+ "Response is Binary": "Antwoord is binair",
+ "Return Error as Output": "Fout als uitvoer teruggeven",
+ "Timeout": "Time-out",
+ "Stops **all** SendFox emails to this address, on every list. SendFox has no way to undo this through the API.": "Stopt **alle** SendFox-e-mails aan dit adres, op elke lijst. SendFox biedt geen manier om dit via de API ongedaan te maken.",
+ "Leave empty to add the contact without a list.": "Laat leeg om het contact zonder lijst toe te voegen.",
+ "Appended to the URL as ?key=value.": "Toegevoegd aan de URL als ?key=value.",
+ "On a failed request, output the error instead of failing the step.": "Bij een mislukt verzoek de fout als uitvoer geven in plaats van de stap te laten mislukken.",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Seconden wachten op een antwoord. Leeg: tot de flowlimiet (10 min).",
+ "Follow 3xx redirects instead of returning them as the response.": "3xx-omleidingen volgen in plaats van ze als antwoord terug te geven.",
+ "Contact": "Contact",
+ "Add to list": "Toevoegen aan lijst",
+ "Request": "Verzoek",
+ "Data to send": "Te verzenden gegevens"
}
\ No newline at end of file
diff --git a/packages/pieces/community/sendfox/src/i18n/pt.json b/packages/pieces/community/sendfox/src/i18n/pt.json
index a2ec89a7366..942920967ef 100644
--- a/packages/pieces/community/sendfox/src/i18n/pt.json
+++ b/packages/pieces/community/sendfox/src/i18n/pt.json
@@ -34,5 +34,24 @@
"None": "Nenhuma",
"JSON": "JSON",
"Form Data": "Dados de Formulário",
- "Raw": "RAW"
+ "Raw": "RAW",
+ "To get your personal access token:\n1. In SendFox, open **Settings → Connections → API tokens**, or go to [sendfox.com/account/oauth](https://sendfox.com/account/oauth).\n2. Under **Personal Access Tokens**, click **Create New Token**.\n3. Enter a name for the token and click **Create**.\n4. Copy the token right away (SendFox shows it only once) and paste it here.": "Para obter seu token de acesso pessoal:\n1. No SendFox, abra **Settings → Connections → API tokens** ou acesse [sendfox.com/account/oauth](https://sendfox.com/account/oauth).\n2. Em **Personal Access Tokens**, clique em **Create New Token**.\n3. Digite um nome para o token e clique em **Create**.\n4. Copie o token imediatamente (o SendFox o mostra apenas uma vez) e cole-o aqui.",
+ "Create a contact list in SendFox": "Criar uma lista de contatos no SendFox",
+ "Stop all SendFox emails to a contact": "Parar todos os e-mails do SendFox para um contato",
+ "Add a contact to SendFox, optionally to one of your lists": "Adicionar um contato ao SendFox e, opcionalmente, a uma das suas listas",
+ "Markdown": "Markdown",
+ "List": "Lista",
+ "Response is Binary": "Resposta é binária",
+ "Return Error as Output": "Retornar erro como saída",
+ "Timeout": "Tempo limite",
+ "Stops **all** SendFox emails to this address, on every list. SendFox has no way to undo this through the API.": "Interrompe **todos** os e-mails do SendFox para este endereço, em todas as listas. O SendFox não permite desfazer isso pela API.",
+ "Leave empty to add the contact without a list.": "Deixe vazio para adicionar o contato sem lista.",
+ "Appended to the URL as ?key=value.": "Adicionado à URL como ?key=value.",
+ "On a failed request, output the error instead of failing the step.": "Se a requisição falhar, retorna o erro em vez de falhar a etapa.",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Segundos de espera pela resposta. Vazio: até o limite do fluxo (10 min).",
+ "Follow 3xx redirects instead of returning them as the response.": "Seguir redirecionamentos 3xx em vez de retorná-los como resposta.",
+ "Contact": "Contato",
+ "Add to list": "Adicionar à lista",
+ "Request": "Requisição",
+ "Data to send": "Dados a enviar"
}
\ No newline at end of file
diff --git a/packages/pieces/community/sendfox/src/i18n/ru.json b/packages/pieces/community/sendfox/src/i18n/ru.json
index a649583691c..268c83767ae 100644
--- a/packages/pieces/community/sendfox/src/i18n/ru.json
+++ b/packages/pieces/community/sendfox/src/i18n/ru.json
@@ -27,5 +27,27 @@
"PATCH": "ПАТЧ",
"PUT": "ПОКУПИТЬ",
"DELETE": "УДАЛИТЬ",
- "HEAD": "HEAD"
+ "HEAD": "HEAD",
+ "To get your personal access token:\n1. In SendFox, open **Settings → Connections → API tokens**, or go to [sendfox.com/account/oauth](https://sendfox.com/account/oauth).\n2. Under **Personal Access Tokens**, click **Create New Token**.\n3. Enter a name for the token and click **Create**.\n4. Copy the token right away (SendFox shows it only once) and paste it here.": "Как получить персональный токен доступа:\n1. В SendFox откройте **Settings → Connections → API tokens** или перейдите на [sendfox.com/account/oauth](https://sendfox.com/account/oauth).\n2. В разделе **Personal Access Tokens** нажмите **Create New Token**.\n3. Введите название токена и нажмите **Create**.\n4. Сразу скопируйте токен (SendFox показывает его только один раз) и вставьте его сюда.",
+ "Create a contact list in SendFox": "Создать список контактов в SendFox",
+ "Stop all SendFox emails to a contact": "Прекратить все письма SendFox контакту",
+ "Add a contact to SendFox, optionally to one of your lists": "Добавить контакт в SendFox и, при желании, в один из ваших списков",
+ "Markdown": "Markdown",
+ "List": "Список",
+ "Body Type": "Тип тела",
+ "Response is Binary": "Ответ двоичный",
+ "Return Error as Output": "Возвращать ошибку как результат",
+ "Timeout": "Тайм-аут",
+ "Follow redirects": "Следовать перенаправлениям",
+ "Stops **all** SendFox emails to this address, on every list. SendFox has no way to undo this through the API.": "Прекращает **все** письма SendFox на этот адрес во всех списках. Отменить это через API SendFox нельзя.",
+ "Leave empty to add the contact without a list.": "Оставьте пустым, чтобы добавить контакт без списка.",
+ "Appended to the URL as ?key=value.": "Добавляется к URL как ?key=value.",
+ "Enable for files like PDFs, images, etc.": "Включите для файлов, таких как PDF, изображения и т. д.",
+ "On a failed request, output the error instead of failing the step.": "При неудачном запросе вернуть ошибку вместо сбоя шага.",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Секунды ожидания ответа. Пусто: до лимита потока (10 мин).",
+ "Follow 3xx redirects instead of returning them as the response.": "Следовать перенаправлениям 3xx, а не возвращать их как ответ.",
+ "Contact": "Контакт",
+ "Add to list": "Добавить в список",
+ "Request": "Запрос",
+ "Data to send": "Отправляемые данные"
}
\ No newline at end of file
diff --git a/packages/pieces/community/sendfox/src/i18n/translation.json b/packages/pieces/community/sendfox/src/i18n/translation.json
index 4e20f7c8f89..e07318e7049 100644
--- a/packages/pieces/community/sendfox/src/i18n/translation.json
+++ b/packages/pieces/community/sendfox/src/i18n/translation.json
@@ -1,19 +1,20 @@
{
"Email marketing made simple": "Email marketing made simple",
- "To obtain your personal token, follow these steps:\n1. Log in to your SendFox account.\n2. Visit https://sendfox.com/account/oauth to create one\n3. From OAuth Apps click on Create New Token.\n4. Enter any name you want then click create.\n5. Copy and paste your token here.": "To obtain your personal token, follow these steps:\n1. Log in to your SendFox account.\n2. Visit https://sendfox.com/account/oauth to create one\n3. From OAuth Apps click on Create New Token.\n4. Enter any name you want then click create.\n5. Copy and paste your token here.",
+ "To get your personal access token:\n1. In SendFox, open **Settings → Connections → API tokens**, or go to [sendfox.com/account/oauth](https://sendfox.com/account/oauth).\n2. Under **Personal Access Tokens**, click **Create New Token**.\n3. Enter a name for the token and click **Create**.\n4. Copy the token right away (SendFox shows it only once) and paste it here.": "To get your personal access token:\n1. In SendFox, open **Settings → Connections → API tokens**, or go to [sendfox.com/account/oauth](https://sendfox.com/account/oauth).\n2. Under **Personal Access Tokens**, click **Create New Token**.\n3. Enter a name for the token and click **Create**.\n4. Copy the token right away (SendFox shows it only once) and paste it here.",
"Create List": "Create List",
"Unsubscribe Contact": "Unsubscribe Contact",
"Create Contact": "Create Contact",
"Custom API Call": "Custom API Call",
- "Create a new list": "Create a new list",
- "Unsubscribe a contact": "Unsubscribe a contact",
- "Create a new contact": "Create a new contact",
+ "Create a contact list in SendFox": "Create a contact list in SendFox",
+ "Stop all SendFox emails to a contact": "Stop all SendFox emails to a contact",
+ "Add a contact to SendFox, optionally to one of your lists": "Add a contact to SendFox, optionally to one of your lists",
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
"List Name": "List Name",
+ "Markdown": "Markdown",
"Email": "Email",
"First Name": "First Name",
"Last Name": "Last Name",
- "Lists": "Lists",
+ "List": "List",
"Method": "Method",
"Headers": "Headers",
"Query Parameters": "Query Parameters",
@@ -23,6 +24,8 @@
"Return Error as Output": "Return Error as Output",
"Timeout": "Timeout",
"Follow redirects": "Follow redirects",
+ "Stops **all** SendFox emails to this address, on every list. SendFox has no way to undo this through the API.": "Stops **all** SendFox emails to this address, on every list. SendFox has no way to undo this through the API.",
+ "Leave empty to add the contact without a list.": "Leave empty to add the contact without a list.",
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
"Appended to the URL as ?key=value.": "Appended to the URL as ?key=value.",
"Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
@@ -35,6 +38,8 @@
"PUT": "PUT",
"DELETE": "DELETE",
"HEAD": "HEAD",
+ "Contact": "Contact",
+ "Add to list": "Add to list",
"Request": "Request",
"Data to send": "Data to send"
}
\ No newline at end of file
diff --git a/packages/pieces/community/sendfox/src/i18n/zh.json b/packages/pieces/community/sendfox/src/i18n/zh.json
index 5fa88430ad1..9c86e37091d 100644
--- a/packages/pieces/community/sendfox/src/i18n/zh.json
+++ b/packages/pieces/community/sendfox/src/i18n/zh.json
@@ -34,5 +34,24 @@
"None": "无",
"JSON": "JSON",
"Form Data": "表单数据",
- "Raw": "原始文件"
+ "Raw": "原始文件",
+ "To get your personal access token:\n1. In SendFox, open **Settings → Connections → API tokens**, or go to [sendfox.com/account/oauth](https://sendfox.com/account/oauth).\n2. Under **Personal Access Tokens**, click **Create New Token**.\n3. Enter a name for the token and click **Create**.\n4. Copy the token right away (SendFox shows it only once) and paste it here.": "获取个人访问令牌:\n1. 在 SendFox 中打开 **Settings → Connections → API tokens**,或前往 [sendfox.com/account/oauth](https://sendfox.com/account/oauth)。\n2. 在 **Personal Access Tokens** 下,点击 **Create New Token**。\n3. 为令牌输入名称,然后点击 **Create**。\n4. 立即复制令牌(SendFox 只显示一次)并粘贴到此处。",
+ "Create a contact list in SendFox": "在 SendFox 中创建联系人列表",
+ "Stop all SendFox emails to a contact": "停止向联系人发送所有 SendFox 邮件",
+ "Add a contact to SendFox, optionally to one of your lists": "将联系人添加到 SendFox,可选择加入某个列表",
+ "Markdown": "Markdown",
+ "List": "列表",
+ "Response is Binary": "响应为二进制",
+ "Return Error as Output": "将错误作为输出返回",
+ "Timeout": "超时",
+ "Stops **all** SendFox emails to this address, on every list. SendFox has no way to undo this through the API.": "停止向此地址发送**所有** SendFox 邮件,涵盖所有列表。SendFox 无法通过 API 撤销此操作。",
+ "Leave empty to add the contact without a list.": "留空则添加联系人但不加入列表。",
+ "Appended to the URL as ?key=value.": "以 ?key=value 形式附加到 URL。",
+ "On a failed request, output the error instead of failing the step.": "请求失败时输出错误,而不是让步骤失败。",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "等待响应的秒数。留空:最长为流程上限(10 分钟)。",
+ "Follow 3xx redirects instead of returning them as the response.": "跟随 3xx 重定向,而不是将其作为响应返回。",
+ "Contact": "联系人",
+ "Add to list": "添加到列表",
+ "Request": "请求",
+ "Data to send": "要发送的数据"
}
\ No newline at end of file
diff --git a/packages/pieces/community/sendfox/src/index.ts b/packages/pieces/community/sendfox/src/index.ts
index 6ebe13d1162..4bf3b92232f 100644
--- a/packages/pieces/community/sendfox/src/index.ts
+++ b/packages/pieces/community/sendfox/src/index.ts
@@ -5,12 +5,13 @@ import { createContact } from './lib/actions/create-contact';
import { createList } from './lib/actions/create-list';
import { unsubscribe } from './lib/actions/unsubscribe-contact';
import { sendfoxAuth } from './lib/auth';
+import { sendfoxCommon } from './common';
export const sendfox = createPiece({
displayName: 'SendFox',
description: 'Email marketing made simple',
auth: sendfoxAuth,
- minimumSupportedRelease: '0.30.0',
+ minimumSupportedRelease: '0.88.2',
logoUrl: 'https://cdn.activepieces.com/pieces/sendfox.png',
categories: [PieceCategory.MARKETING],
authors: ["Salem-Alaa","kishanprmr","MoShizzle","abuaboud"],
@@ -19,11 +20,17 @@ export const sendfox = createPiece({
unsubscribe,
createContact,
createCustomApiCallAction({
- baseUrl: () => 'https://api.sendfox.com',
+ baseUrl: () => sendfoxCommon.baseUrl,
auth: sendfoxAuth,
authMapping: async (auth) => ({
Authorization: `Bearer ${auth.secret_text}`,
}),
+ props: {
+ url: {
+ description: `Full URL, or a path relative to ${sendfoxCommon.baseUrl}`,
+ placeholder: '/contacts',
+ },
+ },
}),
],
triggers: [],
diff --git a/packages/pieces/community/sendfox/src/lib/actions/create-contact.ts b/packages/pieces/community/sendfox/src/lib/actions/create-contact.ts
index 50a73c5b187..d2111d87feb 100644
--- a/packages/pieces/community/sendfox/src/lib/actions/create-contact.ts
+++ b/packages/pieces/community/sendfox/src/lib/actions/create-contact.ts
@@ -8,21 +8,42 @@ export const createContact = createAction({
classification: 'WRITE',
auth: sendfoxAuth,
displayName: 'Create Contact',
- description: 'Create a new contact',
+ description: 'Add a contact to SendFox, optionally to one of your lists',
audience: 'both',
aiMetadata: { description: 'Adds a new contact (subscriber) to SendFox by email, optionally setting first/last name and assigning the contact to a list. Use to add or onboard a subscriber. Not idempotent: each call posts the contact, so repeating may create or re-add the entry.', idempotent: false },
+ propertyGroups: [
+ {
+ key: 'contact',
+ display: 'section',
+ label: 'Contact',
+ icon: 'user',
+ props: ['email', 'firstname', 'lastname'],
+ },
+ {
+ key: 'list',
+ display: 'section',
+ label: 'Add to list',
+ icon: 'inbox',
+ props: ['list'],
+ },
+ ],
props: {
email: Property.ShortText({
displayName: 'Email',
required: true,
+ placeholder: '[email protected]',
}),
firstname: Property.ShortText({
displayName: 'First Name',
required: false,
+ placeholder: 'Jane',
+ width: 'half',
}),
lastname: Property.ShortText({
displayName: 'Last Name',
required: false,
+ placeholder: 'Doe',
+ width: 'half',
}),
list: sendfoxCommon.lists,
},
diff --git a/packages/pieces/community/sendfox/src/lib/actions/create-list.ts b/packages/pieces/community/sendfox/src/lib/actions/create-list.ts
index fce196b59a5..59800984848 100644
--- a/packages/pieces/community/sendfox/src/lib/actions/create-list.ts
+++ b/packages/pieces/community/sendfox/src/lib/actions/create-list.ts
@@ -8,13 +8,14 @@ export const createList = createAction({
classification: 'WRITE',
auth: sendfoxAuth,
displayName: 'Create List',
- description: 'Create a new list',
+ description: 'Create a contact list in SendFox',
audience: 'both',
aiMetadata: { description: 'Creates a new contact list in SendFox with the given name. Use to set up a list before adding subscribers to it. Not idempotent: each call creates a new list even if one with the same name already exists.', idempotent: false },
props: {
task_name: Property.ShortText({
displayName: 'List Name',
required: true,
+ placeholder: 'Newsletter subscribers',
}),
},
async run(context) {
diff --git a/packages/pieces/community/sendfox/src/lib/actions/unsubscribe-contact.ts b/packages/pieces/community/sendfox/src/lib/actions/unsubscribe-contact.ts
index 12ab8dbca57..7ab8d78baf2 100644
--- a/packages/pieces/community/sendfox/src/lib/actions/unsubscribe-contact.ts
+++ b/packages/pieces/community/sendfox/src/lib/actions/unsubscribe-contact.ts
@@ -1,4 +1,4 @@
-import { createAction, Property } from '@activepieces/pieces-framework';
+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';
import { sendfoxAuth } from '../auth';
import { callsendfoxApi } from '../../common';
import { HttpMethod } from '@activepieces/pieces-common';
@@ -8,13 +8,19 @@ export const unsubscribe = createAction({
classification: 'DESTRUCTIVE',
auth: sendfoxAuth,
displayName: 'Unsubscribe Contact',
- description: 'Unsubscribe a contact',
+ description: 'Stop all SendFox emails to a contact',
audience: 'both',
aiMetadata: { description: 'Unsubscribes a contact from SendFox by email so they stop receiving emails. Use to honor an opt-out or remove someone from sends. Effectively idempotent in outcome (the contact ends up unsubscribed), but flagged not idempotent because each call issues a state-changing request.', idempotent: false },
props: {
+ info: Property.MarkDown({
+ value:
+ 'Stops **all** SendFox emails to this address, on every list. SendFox has no way to undo this through the API.',
+ variant: MarkdownVariant.WARNING,
+ }),
email: Property.ShortText({
displayName: 'Email',
required: true,
+ placeholder: '[email protected]',
}),
},
async run(context) {
diff --git a/packages/pieces/community/sendfox/src/lib/auth.ts b/packages/pieces/community/sendfox/src/lib/auth.ts
index 44d6b9e9f9f..ec1a675222a 100644
--- a/packages/pieces/community/sendfox/src/lib/auth.ts
+++ b/packages/pieces/community/sendfox/src/lib/auth.ts
@@ -1,8 +1,11 @@
import { PieceAuth } from '@activepieces/pieces-framework';
export const sendfoxAuth = PieceAuth.SecretText({
- displayName: 'API Key',
- description:
- 'To obtain your personal token, follow these steps:\n1. Log in to your SendFox account.\n2. Visit https://sendfox.com/account/oauth to create one\n3. From OAuth Apps click on Create New Token.\n4. Enter any name you want then click create.\n5. Copy and paste your token here.',
+ displayName: 'Personal Access Token',
+ description: `To get your personal access token:
+1. In SendFox, open **Settings → Connections → API tokens**, or go to [sendfox.com/account/oauth](https://sendfox.com/account/oauth).
+2. Under **Personal Access Tokens**, click **Create New Token**.
+3. Enter a name for the token and click **Create**.
+4. Copy the token right away (SendFox shows it only once) and paste it here.`,
required: true,
});