Add Activepieces integration for workflow automation
- Add Activepieces fork with SmoothSchedule custom piece - Create integrations app with Activepieces service layer - Add embed token endpoint for iframe integration - Create Automations page with embedded workflow builder - Add sidebar visibility fix for embed mode - Add list inactive customers endpoint to Public API - Include SmoothSchedule triggers: event created/updated/cancelled - Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"presets": [["@nx/js/babel", { "useBuiltIns": "usage" }]]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"extends": ["../../../../.eslintrc.json"],
|
||||
"ignorePatterns": ["!**/*"],
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": ["*.ts", "*.tsx"],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": ["*.js", "*.jsx"],
|
||||
"rules": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# pieces-sendgrid
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
|
||||
## Running lint
|
||||
|
||||
Run `nx lint pieces-sendgrid` to execute the lint via [ESLint](https://eslint.org/).
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "@activepieces/piece-sendgrid",
|
||||
"version": "0.3.11"
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "pieces-sendgrid",
|
||||
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "packages/pieces/community/sendgrid/src",
|
||||
"projectType": "library",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nx/js:tsc",
|
||||
"outputs": [
|
||||
"{options.outputPath}"
|
||||
],
|
||||
"options": {
|
||||
"outputPath": "dist/packages/pieces/community/sendgrid",
|
||||
"tsConfig": "packages/pieces/community/sendgrid/tsconfig.lib.json",
|
||||
"packageJson": "packages/pieces/community/sendgrid/package.json",
|
||||
"main": "packages/pieces/community/sendgrid/src/index.ts",
|
||||
"assets": [
|
||||
"packages/pieces/community/sendgrid/*.md",
|
||||
{
|
||||
"input": "packages/pieces/community/sendgrid/src/i18n",
|
||||
"output": "./src/i18n",
|
||||
"glob": "**/!(i18n.json)"
|
||||
}
|
||||
],
|
||||
"buildableProjectDepsInPackageJsonType": "dependencies",
|
||||
"updateBuildableProjectDepsInPackageJson": true
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build",
|
||||
"prebuild"
|
||||
]
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nx/eslint:lint",
|
||||
"outputs": [
|
||||
"{options.outputFile}"
|
||||
]
|
||||
},
|
||||
"prebuild": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"cwd": "packages/pieces/community/sendgrid",
|
||||
"command": "bun install --no-save --silent"
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"SendGrid": "SendGrid",
|
||||
"Email delivery service for sending transactional and marketing emails": "Email delivery service for sending transactional and marketing emails",
|
||||
"API key acquired from your SendGrid settings": "API key acquired from your SendGrid settings",
|
||||
"Send Email": "Send Email",
|
||||
"Send Dynamic Template": "Send Dynamic Template",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Send a text or HTML email": "Send a text or HTML email",
|
||||
"Send an email using a dynamic template": "Send an email using a dynamic template",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"To": "To",
|
||||
"From (Email)": "From (Email)",
|
||||
"From (Name)": "From (Name)",
|
||||
"Reply To": "Reply To",
|
||||
"Subject": "Subject",
|
||||
"Content Type": "Content Type",
|
||||
"Content": "Content",
|
||||
"Template Id": "Template Id",
|
||||
"Template Data": "Template Data",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"Emails of the recipients": "Emails of the recipients",
|
||||
"Sender email, must be on your SendGrid": "Sender email, must be on your SendGrid",
|
||||
"Sender name": "Sender name",
|
||||
"Email to receive replies on (defaults to sender)": "Email to receive replies on (defaults to sender)",
|
||||
"HTML is only allowed if you selected HTML as type": "HTML is only allowed if you selected HTML as type",
|
||||
"Dynamic template id": "Dynamic template id",
|
||||
"Dynamic template data": "Dynamic template data",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"Email delivery service for sending transactional and marketing emails": "E-Mail-Zustellservice zum Versenden von Transaktions- und Marketing-E-Mails",
|
||||
"API key acquired from your SendGrid settings": "API-Schlüssel von Ihren SendGrid-Einstellungen übernommen",
|
||||
"Send Email": "E-Mail senden",
|
||||
"Send Dynamic Template": "Dynamische Vorlage senden",
|
||||
"Custom API Call": "Eigener API-Aufruf",
|
||||
"Send a text or HTML email": "Text oder HTML-E-Mail senden",
|
||||
"Send an email using a dynamic template": "Senden Sie eine E-Mail mit einer dynamischen Vorlage",
|
||||
"Make a custom API call to a specific endpoint": "Einen benutzerdefinierten API-Aufruf an einen bestimmten Endpunkt machen",
|
||||
"To": "An",
|
||||
"From (Email)": "Von (Email)",
|
||||
"From (Name)": "Von (Name)",
|
||||
"Reply To": "Antwort an",
|
||||
"Subject": "Betreff",
|
||||
"Content Type": "Inhaltstyp",
|
||||
"Content": "Inhalt",
|
||||
"Template Id": "Template Id",
|
||||
"Template Data": "Vorlagendaten",
|
||||
"Method": "Methode",
|
||||
"Headers": "Kopfzeilen",
|
||||
"Query Parameters": "Abfrageparameter",
|
||||
"Body": "Körper",
|
||||
"Response is Binary ?": "Antwort ist binär?",
|
||||
"No Error on Failure": "Kein Fehler bei Fehler",
|
||||
"Timeout (in seconds)": "Timeout (in Sekunden)",
|
||||
"Emails of the recipients": "E-Mails der Empfänger",
|
||||
"Sender email, must be on your SendGrid": "Absender-E-Mail, muss auf Ihrem SendGrid sein",
|
||||
"Sender name": "Absendername",
|
||||
"Email to receive replies on (defaults to sender)": "E-Mail um Antworten zu erhalten (Standardeinstellung zum Absender)",
|
||||
"HTML is only allowed if you selected HTML as type": "HTML ist nur zulässig, wenn Sie HTML als Typ ausgewählt haben",
|
||||
"Dynamic template id": "Dynamische Template-Id",
|
||||
"Dynamic template data": "Dynamische Vorlagendaten",
|
||||
"Authorization headers are injected automatically from your connection.": "Autorisierungs-Header werden automatisch von Ihrer Verbindung injiziert.",
|
||||
"Enable for files like PDFs, images, etc..": "Aktivieren für Dateien wie PDFs, Bilder, etc..",
|
||||
"GET": "ERHALTEN",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "LÖSCHEN",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"Email delivery service for sending transactional and marketing emails": "Servicio de entrega de correo electrónico para enviar correos electrónicos transaccionales y de marketing",
|
||||
"API key acquired from your SendGrid settings": "Clave API adquirida de tus ajustes de SendGrid",
|
||||
"Send Email": "Enviar Email",
|
||||
"Send Dynamic Template": "Enviar plantilla dinámica",
|
||||
"Custom API Call": "Llamada API personalizada",
|
||||
"Send a text or HTML email": "Enviar un mensaje de texto o HTML",
|
||||
"Send an email using a dynamic template": "Enviar un correo electrónico usando una plantilla dinámica",
|
||||
"Make a custom API call to a specific endpoint": "Hacer una llamada API personalizada a un extremo específico",
|
||||
"To": "A",
|
||||
"From (Email)": "Desde (Email)",
|
||||
"From (Name)": "De (Nombre)",
|
||||
"Reply To": "Responder a",
|
||||
"Subject": "Asunto",
|
||||
"Content Type": "Tipo de contenido",
|
||||
"Content": "Contenido",
|
||||
"Template Id": "Id de Plantilla",
|
||||
"Template Data": "Datos de plantilla",
|
||||
"Method": "Método",
|
||||
"Headers": "Encabezados",
|
||||
"Query Parameters": "Parámetros de consulta",
|
||||
"Body": "Cuerpo",
|
||||
"Response is Binary ?": "¿Respuesta es binaria?",
|
||||
"No Error on Failure": "No hay ningún error en fallo",
|
||||
"Timeout (in seconds)": "Tiempo de espera (en segundos)",
|
||||
"Emails of the recipients": "Correos de los destinatarios",
|
||||
"Sender email, must be on your SendGrid": "Email del remitente, debe estar en tu SendGrid",
|
||||
"Sender name": "Nombre del remitente",
|
||||
"Email to receive replies on (defaults to sender)": "Correo electrónico en el que recibir respuestas (por defecto el remitente)",
|
||||
"HTML is only allowed if you selected HTML as type": "Sólo se permite HTML si ha seleccionado HTML como tipo",
|
||||
"Dynamic template id": "Id de plantilla dinámica",
|
||||
"Dynamic template data": "Datos dinámicos de la plantilla",
|
||||
"Authorization headers are injected automatically from your connection.": "Las cabeceras de autorización se inyectan automáticamente desde tu conexión.",
|
||||
"Enable for files like PDFs, images, etc..": "Activar para archivos como PDFs, imágenes, etc.",
|
||||
"GET": "RECOGER",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "BORRAR",
|
||||
"HEAD": "LIMPIO"
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"Email delivery service for sending transactional and marketing emails": "Service de livraison de courrier électronique pour l'envoi d'e-mails transactionnels et de marketing",
|
||||
"API key acquired from your SendGrid settings": "Clé API acquise dans vos paramètres SendGrid",
|
||||
"Send Email": "Envoyer un e-mail",
|
||||
"Send Dynamic Template": "Envoyer un modèle dynamique",
|
||||
"Custom API Call": "Appel d'API personnalisé",
|
||||
"Send a text or HTML email": "Envoyer un message texte ou HTML",
|
||||
"Send an email using a dynamic template": "Envoyer un email en utilisant un modèle dynamique",
|
||||
"Make a custom API call to a specific endpoint": "Passer un appel API personnalisé à un endpoint spécifique",
|
||||
"To": "À",
|
||||
"From (Email)": "De (Email)",
|
||||
"From (Name)": "De (Nom)",
|
||||
"Reply To": "Répondre à",
|
||||
"Subject": "Sujet",
|
||||
"Content Type": "Type de contenu",
|
||||
"Content": "Contenus",
|
||||
"Template Id": "Identifiant du modèle",
|
||||
"Template Data": "Données du modèle",
|
||||
"Method": "Méthode",
|
||||
"Headers": "En-têtes",
|
||||
"Query Parameters": "Paramètres de requête",
|
||||
"Body": "Corps",
|
||||
"Response is Binary ?": "La réponse est Binaire ?",
|
||||
"No Error on Failure": "Aucune erreur en cas d'échec",
|
||||
"Timeout (in seconds)": "Délai d'expiration (en secondes)",
|
||||
"Emails of the recipients": "E-mails des destinataires",
|
||||
"Sender email, must be on your SendGrid": "L'e-mail de l'expéditeur doit être sur votre SendGrid",
|
||||
"Sender name": "Nom de l'expéditeur",
|
||||
"Email to receive replies on (defaults to sender)": "Courriel sur lequel recevoir les réponses (par défaut l'expéditeur)",
|
||||
"HTML is only allowed if you selected HTML as type": "Le code HTML n'est autorisé que si vous avez sélectionné le code HTML comme type",
|
||||
"Dynamic template id": "Identifiant du modèle dynamique",
|
||||
"Dynamic template data": "Données du modèle dynamique",
|
||||
"Authorization headers are injected automatically from your connection.": "Les en-têtes d'autorisation sont injectés automatiquement à partir de votre connexion.",
|
||||
"Enable for files like PDFs, images, etc..": "Activer pour les fichiers comme les PDFs, les images, etc.",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"SendGrid": "SendGrid",
|
||||
"Email delivery service for sending transactional and marketing emails": "Email delivery service for sending transactional and marketing emails",
|
||||
"API key acquired from your SendGrid settings": "API key acquired from your SendGrid settings",
|
||||
"Send Email": "Send Email",
|
||||
"Send Dynamic Template": "Send Dynamic Template",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Send a text or HTML email": "Send a text or HTML email",
|
||||
"Send an email using a dynamic template": "Send an email using a dynamic template",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"To": "To",
|
||||
"From (Email)": "From (Email)",
|
||||
"From (Name)": "From (Name)",
|
||||
"Reply To": "Reply To",
|
||||
"Subject": "Subject",
|
||||
"Content Type": "Content Type",
|
||||
"Content": "Content",
|
||||
"Template Id": "Template Id",
|
||||
"Template Data": "Template Data",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"Emails of the recipients": "Emails of the recipients",
|
||||
"Sender email, must be on your SendGrid": "Sender email, must be on your SendGrid",
|
||||
"Sender name": "Sender name",
|
||||
"Email to receive replies on (defaults to sender)": "Email to receive replies on (defaults to sender)",
|
||||
"HTML is only allowed if you selected HTML as type": "HTML is only allowed if you selected HTML as type",
|
||||
"Dynamic template id": "Dynamic template id",
|
||||
"Dynamic template data": "Dynamic template data",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"SendGrid": "SendGrid",
|
||||
"Email delivery service for sending transactional and marketing emails": "Email delivery service for sending transactional and marketing emails",
|
||||
"API key acquired from your SendGrid settings": "API key acquired from your SendGrid settings",
|
||||
"Send Email": "Send Email",
|
||||
"Send Dynamic Template": "Send Dynamic Template",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Send a text or HTML email": "Send a text or HTML email",
|
||||
"Send an email using a dynamic template": "Send an email using a dynamic template",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"To": "To",
|
||||
"From (Email)": "From (Email)",
|
||||
"From (Name)": "From (Name)",
|
||||
"Reply To": "Reply To",
|
||||
"Subject": "Subject",
|
||||
"Content Type": "Content Type",
|
||||
"Content": "Content",
|
||||
"Template Id": "Template Id",
|
||||
"Template Data": "Template Data",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"Emails of the recipients": "Emails of the recipients",
|
||||
"Sender email, must be on your SendGrid": "Sender email, must be on your SendGrid",
|
||||
"Sender name": "Sender name",
|
||||
"Email to receive replies on (defaults to sender)": "Email to receive replies on (defaults to sender)",
|
||||
"HTML is only allowed if you selected HTML as type": "HTML is only allowed if you selected HTML as type",
|
||||
"Dynamic template id": "Dynamic template id",
|
||||
"Dynamic template data": "Dynamic template data",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"Email delivery service for sending transactional and marketing emails": "トランザクションとマーケティングの電子メールを送信するためのメール配信サービス",
|
||||
"API key acquired from your SendGrid settings": "SendGrid設定から取得したAPIキー",
|
||||
"Send Email": "メール送信",
|
||||
"Send Dynamic Template": "動的テンプレートを送信",
|
||||
"Custom API Call": "カスタムAPI通話",
|
||||
"Send a text or HTML email": "テキストまたはHTMLメールを送信",
|
||||
"Send an email using a dynamic template": "動的テンプレートを使用して電子メールを送信します。",
|
||||
"Make a custom API call to a specific endpoint": "特定のエンドポイントへのカスタム API コールを実行します。",
|
||||
"To": "終了日",
|
||||
"From (Email)": "From (Email)",
|
||||
"From (Name)": "差出人(名前)",
|
||||
"Reply To": "返信先",
|
||||
"Subject": "件名",
|
||||
"Content Type": "コンテンツタイプ",
|
||||
"Content": "コンテンツ",
|
||||
"Template Id": "テンプレートID",
|
||||
"Template Data": "テンプレートデータ",
|
||||
"Method": "方法",
|
||||
"Headers": "ヘッダー",
|
||||
"Query Parameters": "クエリパラメータ",
|
||||
"Body": "本文",
|
||||
"Response is Binary ?": "応答はバイナリですか?",
|
||||
"No Error on Failure": "失敗時にエラーはありません",
|
||||
"Timeout (in seconds)": "タイムアウト(秒)",
|
||||
"Emails of the recipients": "受信者のメール",
|
||||
"Sender email, must be on your SendGrid": "Sender email must be on your SendGrid",
|
||||
"Sender name": "送信者名",
|
||||
"Email to receive replies on (defaults to sender)": "返信を受信する電子メール(既定の送信者)",
|
||||
"HTML is only allowed if you selected HTML as type": "HTMLはあなたがタイプとしてHTMLを選択した場合にのみ許可されます",
|
||||
"Dynamic template id": "動的テンプレートid",
|
||||
"Dynamic template data": "動的テンプレートデータ",
|
||||
"Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
|
||||
"Enable for files like PDFs, images, etc..": "PDF、画像などのファイルを有効にします。",
|
||||
"GET": "取得",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "削除",
|
||||
"HEAD": "頭"
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"Email delivery service for sending transactional and marketing emails": "E-mailbezorging service voor het verzenden van transactionele en marketing e-mails",
|
||||
"API key acquired from your SendGrid settings": "API-sleutel verkregen via SendGrid instellingen",
|
||||
"Send Email": "E-mail verzenden",
|
||||
"Send Dynamic Template": "Verstuur dynamisch sjabloon",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Send a text or HTML email": "Stuur een tekst of HTML e-mail",
|
||||
"Send an email using a dynamic template": "Stuur een e-mail met behulp van een dynamische sjabloon",
|
||||
"Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
|
||||
"To": "tot",
|
||||
"From (Email)": "Van (Email)",
|
||||
"From (Name)": "Van (Naam)",
|
||||
"Reply To": "Antwoord aan",
|
||||
"Subject": "Onderwerp",
|
||||
"Content Type": "Type inhoud",
|
||||
"Content": "Inhoud",
|
||||
"Template Id": "Sjabloon ID",
|
||||
"Template Data": "Sjabloon gegevens",
|
||||
"Method": "Methode",
|
||||
"Headers": "Kopteksten",
|
||||
"Query Parameters": "Query parameters",
|
||||
"Body": "Lichaam",
|
||||
"Response is Binary ?": "Antwoord is binair?",
|
||||
"No Error on Failure": "Geen fout bij fout",
|
||||
"Timeout (in seconds)": "Time-out (in seconden)",
|
||||
"Emails of the recipients": "E-mails van de ontvangers",
|
||||
"Sender email, must be on your SendGrid": "Afzender e-mail, moet op je SendGrid staan",
|
||||
"Sender name": "Naam afzender",
|
||||
"Email to receive replies on (defaults to sender)": "E-mail om antwoorden op te ontvangen (standaard afzender)",
|
||||
"HTML is only allowed if you selected HTML as type": "HTML is alleen toegestaan als je hebt geselecteerd als HTML als type",
|
||||
"Dynamic template id": "Dynamische sjabloonid",
|
||||
"Dynamic template data": "Dynamische sjabloongegevens",
|
||||
"Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
|
||||
"Enable for files like PDFs, images, etc..": "Inschakelen voor bestanden zoals PDF's, afbeeldingen etc..",
|
||||
"GET": "KRIJG",
|
||||
"POST": "POSTE",
|
||||
"PATCH": "BEKIJK",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "VERWIJDEREN",
|
||||
"HEAD": "HOOFD"
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"Email delivery service for sending transactional and marketing emails": "Serviço de entrega de e-mail para envio de e-mails de transacção e marketing",
|
||||
"API key acquired from your SendGrid settings": "Chave API adquirida das suas configurações do SendGrid",
|
||||
"Send Email": "Enviar e-mail",
|
||||
"Send Dynamic Template": "Enviar Modelo Dinâmico",
|
||||
"Custom API Call": "Chamada de API personalizada",
|
||||
"Send a text or HTML email": "Enviar um e-mail de texto ou HTML",
|
||||
"Send an email using a dynamic template": "Enviar um e-mail usando um modelo dinâmico",
|
||||
"Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
|
||||
"To": "Para",
|
||||
"From (Email)": "De (E-mail)",
|
||||
"From (Name)": "De (Nome)",
|
||||
"Reply To": "Responder a",
|
||||
"Subject": "Cargo",
|
||||
"Content Type": "Tipo de Conteúdo",
|
||||
"Content": "Conteúdo",
|
||||
"Template Id": "ID do modelo",
|
||||
"Template Data": "Dados do modelo",
|
||||
"Method": "Método",
|
||||
"Headers": "Cabeçalhos",
|
||||
"Query Parameters": "Parâmetros da consulta",
|
||||
"Body": "Conteúdo",
|
||||
"Response is Binary ?": "A resposta é binária ?",
|
||||
"No Error on Failure": "Nenhum erro no Failure",
|
||||
"Timeout (in seconds)": "Tempo limite (em segundos)",
|
||||
"Emails of the recipients": "E-mails dos destinatários",
|
||||
"Sender email, must be on your SendGrid": "E-mail do remetente, deve estar em seu SendGrid",
|
||||
"Sender name": "Nome do remetente",
|
||||
"Email to receive replies on (defaults to sender)": "Enviar email para as respostas (o padrão é enviado)",
|
||||
"HTML is only allowed if you selected HTML as type": "HTML só é permitido se você selecionou HTML como tipo",
|
||||
"Dynamic template id": "Id do modelo dinâmico",
|
||||
"Dynamic template data": "Dados dinâmicos do modelo",
|
||||
"Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
|
||||
"Enable for files like PDFs, images, etc..": "Habilitar para arquivos como PDFs, imagens, etc..",
|
||||
"GET": "OBTER",
|
||||
"POST": "POSTAR",
|
||||
"PATCH": "COMPRAR",
|
||||
"PUT": "COLOCAR",
|
||||
"DELETE": "EXCLUIR",
|
||||
"HEAD": "CABEÇA"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"SendGrid": "SendGrid",
|
||||
"Email delivery service for sending transactional and marketing emails": "Служба доставки электронной почты для отправки транзакций и маркетинговых писем",
|
||||
"API key acquired from your SendGrid settings": "API ключ получен из настроек SendGrid",
|
||||
"Send Email": "Отправить письмо",
|
||||
"Send Dynamic Template": "Отправить динамический шаблон",
|
||||
"Custom API Call": "Пользовательский вызов API",
|
||||
"Send a text or HTML email": "Отправить текст или HTML email",
|
||||
"Send an email using a dynamic template": "Отправить письмо с помощью динамического шаблона",
|
||||
"Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
|
||||
"To": "Кому",
|
||||
"From (Email)": "От (Email)",
|
||||
"From (Name)": "От (имя)",
|
||||
"Reply To": "Ответить",
|
||||
"Subject": "Тема",
|
||||
"Content Type": "Тип контента",
|
||||
"Content": "Содержание",
|
||||
"Template Id": "Id шаблона",
|
||||
"Template Data": "Данные шаблона",
|
||||
"Method": "Метод",
|
||||
"Headers": "Заголовки",
|
||||
"Query Parameters": "Параметры запроса",
|
||||
"Body": "Тело",
|
||||
"No Error on Failure": "Нет ошибок при ошибке",
|
||||
"Timeout (in seconds)": "Таймаут (в секундах)",
|
||||
"Emails of the recipients": "Письма получателей",
|
||||
"Sender email, must be on your SendGrid": "E-mail отправителя, должен быть в вашем SendGrid",
|
||||
"Sender name": "Имя отправителя",
|
||||
"Email to receive replies on (defaults to sender)": "Письмо для получения ответов (по умолчанию для отправителя)",
|
||||
"HTML is only allowed if you selected HTML as type": "HTML допускается только если вы выбрали HTML как тип",
|
||||
"Dynamic template id": "Идентификатор динамического шаблона",
|
||||
"Dynamic template data": "Данные динамического шаблона",
|
||||
"Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
|
||||
"GET": "ПОЛУЧИТЬ",
|
||||
"POST": "ПОСТ",
|
||||
"PATCH": "ПАТЧ",
|
||||
"PUT": "ПОКУПИТЬ",
|
||||
"DELETE": "УДАЛИТЬ",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"Email delivery service for sending transactional and marketing emails": "Email delivery service for sending transactional and marketing emails",
|
||||
"API key acquired from your SendGrid settings": "API key acquired from your SendGrid settings",
|
||||
"Send Email": "Send Email",
|
||||
"Send Dynamic Template": "Send Dynamic Template",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Send a text or HTML email": "Send a text or HTML email",
|
||||
"Send an email using a dynamic template": "Send an email using a dynamic template",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"To": "To",
|
||||
"From (Email)": "From (Email)",
|
||||
"From (Name)": "From (Name)",
|
||||
"Reply To": "Reply To",
|
||||
"Subject": "Subject",
|
||||
"Content Type": "Content Type",
|
||||
"Content": "Content",
|
||||
"Template Id": "Template Id",
|
||||
"Template Data": "Template Data",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"Response is Binary ?": "Response is Binary ?",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"Emails of the recipients": "Emails of the recipients",
|
||||
"Sender email, must be on your SendGrid": "Sender email, must be on your SendGrid",
|
||||
"Sender name": "Sender name",
|
||||
"Email to receive replies on (defaults to sender)": "Email to receive replies on (defaults to sender)",
|
||||
"HTML is only allowed if you selected HTML as type": "HTML is only allowed if you selected HTML as type",
|
||||
"Dynamic template id": "Dynamic template id",
|
||||
"Dynamic template data": "Dynamic template data",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"SendGrid": "SendGrid",
|
||||
"Email delivery service for sending transactional and marketing emails": "Email delivery service for sending transactional and marketing emails",
|
||||
"API key acquired from your SendGrid settings": "API key acquired from your SendGrid settings",
|
||||
"Send Email": "Send Email",
|
||||
"Send Dynamic Template": "Send Dynamic Template",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Send a text or HTML email": "Send a text or HTML email",
|
||||
"Send an email using a dynamic template": "Send an email using a dynamic template",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"To": "To",
|
||||
"From (Email)": "From (Email)",
|
||||
"From (Name)": "From (Name)",
|
||||
"Reply To": "Reply To",
|
||||
"Subject": "Subject",
|
||||
"Content Type": "Content Type",
|
||||
"Content": "Content",
|
||||
"Template Id": "Template Id",
|
||||
"Template Data": "Template Data",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"Emails of the recipients": "Emails of the recipients",
|
||||
"Sender email, must be on your SendGrid": "Sender email, must be on your SendGrid",
|
||||
"Sender name": "Sender name",
|
||||
"Email to receive replies on (defaults to sender)": "Email to receive replies on (defaults to sender)",
|
||||
"HTML is only allowed if you selected HTML as type": "HTML is only allowed if you selected HTML as type",
|
||||
"Dynamic template id": "Dynamic template id",
|
||||
"Dynamic template data": "Dynamic template data",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"Email delivery service for sending transactional and marketing emails": "Email delivery service for sending transactional and marketing emails",
|
||||
"API key acquired from your SendGrid settings": "API key acquired from your SendGrid settings",
|
||||
"Send Email": "Send Email",
|
||||
"Send Dynamic Template": "Send Dynamic Template",
|
||||
"Custom API Call": "自定义 API 呼叫",
|
||||
"Send a text or HTML email": "Send a text or HTML email",
|
||||
"Send an email using a dynamic template": "Send an email using a dynamic template",
|
||||
"Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
|
||||
"To": "To",
|
||||
"From (Email)": "From (Email)",
|
||||
"From (Name)": "From (Name)",
|
||||
"Reply To": "Reply To",
|
||||
"Subject": "Subject",
|
||||
"Content Type": "Content Type",
|
||||
"Content": "Content",
|
||||
"Template Id": "Template Id",
|
||||
"Template Data": "Template Data",
|
||||
"Method": "方法",
|
||||
"Headers": "信头",
|
||||
"Query Parameters": "查询参数",
|
||||
"Body": "正文内容",
|
||||
"Response is Binary ?": "Response is Binary ?",
|
||||
"No Error on Failure": "失败时没有错误",
|
||||
"Timeout (in seconds)": "超时(秒)",
|
||||
"Emails of the recipients": "Emails of the recipients",
|
||||
"Sender email, must be on your SendGrid": "Sender email, must be on your SendGrid",
|
||||
"Sender name": "Sender name",
|
||||
"Email to receive replies on (defaults to sender)": "Email to receive replies on (defaults to sender)",
|
||||
"HTML is only allowed if you selected HTML as type": "HTML is only allowed if you selected HTML as type",
|
||||
"Dynamic template id": "Dynamic template id",
|
||||
"Dynamic template data": "Dynamic template data",
|
||||
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
|
||||
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
||||
"GET": "获取",
|
||||
"POST": "帖子",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "弹出",
|
||||
"DELETE": "删除",
|
||||
"HEAD": "黑色"
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
||||
import { PieceAuth, createPiece } from '@activepieces/pieces-framework';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { sendDynamicTemplate } from './lib/actions/send-dynamic-template';
|
||||
import { sendEmail } from './lib/actions/send-email';
|
||||
import { sendgridCommon } from './lib/common';
|
||||
|
||||
export const sendgridAuth = PieceAuth.SecretText({
|
||||
displayName: 'API Key',
|
||||
required: true,
|
||||
description: 'API key acquired from your SendGrid settings',
|
||||
});
|
||||
|
||||
export const sendgrid = createPiece({
|
||||
displayName: 'SendGrid',
|
||||
description:
|
||||
'Email delivery service for sending transactional and marketing emails',
|
||||
|
||||
minimumSupportedRelease: '0.30.0',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/sendgrid.png',
|
||||
authors: ["ashrafsamhouri","kishanprmr","MoShizzle","khaledmashaly","abuaboud"],
|
||||
categories: [PieceCategory.COMMUNICATION, PieceCategory.MARKETING],
|
||||
auth: sendgridAuth,
|
||||
actions: [
|
||||
sendEmail,
|
||||
sendDynamicTemplate,
|
||||
createCustomApiCallAction({
|
||||
baseUrl: () => sendgridCommon.baseUrl,
|
||||
auth: sendgridAuth,
|
||||
authMapping: async (auth) => ({
|
||||
Authorization: `Bearer ${auth.secret_text}`,
|
||||
}),
|
||||
}),
|
||||
],
|
||||
triggers: [],
|
||||
});
|
||||
@@ -0,0 +1,74 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import {
|
||||
HttpMethod,
|
||||
AuthenticationType,
|
||||
httpClient,
|
||||
} from '@activepieces/pieces-common';
|
||||
import { sendgridCommon } from '../common';
|
||||
import { sendgridAuth } from '../..';
|
||||
|
||||
export const sendDynamicTemplate = createAction({
|
||||
auth: sendgridAuth,
|
||||
name: 'send_dynamic_template',
|
||||
displayName: 'Send Dynamic Template',
|
||||
description: 'Send an email using a dynamic template',
|
||||
props: {
|
||||
to: Property.Array({
|
||||
displayName: 'To',
|
||||
description: 'Emails of the recipients',
|
||||
required: true,
|
||||
}),
|
||||
from_name: Property.ShortText({
|
||||
displayName: 'From (Name)',
|
||||
description: 'Sender name',
|
||||
required: false,
|
||||
}),
|
||||
from: Property.ShortText({
|
||||
displayName: 'From (Email)',
|
||||
description: 'Sender email, must be on your SendGrid',
|
||||
required: true,
|
||||
}),
|
||||
template_id: Property.ShortText({
|
||||
displayName: 'Template Id',
|
||||
description: 'Dynamic template id',
|
||||
required: true,
|
||||
}),
|
||||
template_data: Property.Json({
|
||||
displayName: 'Template Data',
|
||||
description: 'Dynamic template data',
|
||||
required: true,
|
||||
}),
|
||||
reply_to: Property.ShortText({
|
||||
displayName: 'Reply To',
|
||||
description: 'Email to receive replies on (defaults to sender)',
|
||||
required: false,
|
||||
}),
|
||||
},
|
||||
async run(context) {
|
||||
const { to, from, template_id, template_data, reply_to, from_name } =
|
||||
context.propsValue;
|
||||
const message = {
|
||||
personalizations: to.map((email) => ({
|
||||
to: [{ email: (email as string).trim() }],
|
||||
dynamic_template_data: template_data,
|
||||
})),
|
||||
from: { email: from, name: from_name },
|
||||
reply_to: { email: reply_to ?? from },
|
||||
template_id,
|
||||
};
|
||||
|
||||
await httpClient.sendRequest({
|
||||
method: HttpMethod.POST,
|
||||
url: `${sendgridCommon.baseUrl}/mail/send`,
|
||||
body: message,
|
||||
authentication: {
|
||||
type: AuthenticationType.BEARER_TOKEN,
|
||||
token: context.auth.secret_text,
|
||||
},
|
||||
queryParams: {},
|
||||
});
|
||||
return {
|
||||
success: true,
|
||||
};
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,106 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import {
|
||||
HttpMethod,
|
||||
AuthenticationType,
|
||||
httpClient,
|
||||
HttpRequest,
|
||||
} from '@activepieces/pieces-common';
|
||||
import { sendgridCommon } from '../common';
|
||||
import { sendgridAuth } from '../..';
|
||||
|
||||
export const sendEmail = createAction({
|
||||
auth: sendgridAuth,
|
||||
name: 'send_email',
|
||||
displayName: 'Send Email',
|
||||
description: 'Send a text or HTML email',
|
||||
props: {
|
||||
to: Property.Array({
|
||||
displayName: 'To',
|
||||
description: 'Emails of the recipients',
|
||||
required: true,
|
||||
}),
|
||||
from: Property.ShortText({
|
||||
displayName: 'From (Email)',
|
||||
description: 'Sender email, must be on your SendGrid',
|
||||
required: true,
|
||||
}),
|
||||
from_name: Property.ShortText({
|
||||
displayName: 'From (Name)',
|
||||
description: 'Sender name',
|
||||
required: false,
|
||||
}),
|
||||
reply_to: Property.ShortText({
|
||||
displayName: 'Reply To',
|
||||
description: 'Email to receive replies on (defaults to sender)',
|
||||
required: false,
|
||||
}),
|
||||
subject: Property.ShortText({
|
||||
displayName: 'Subject',
|
||||
description: undefined,
|
||||
required: true,
|
||||
}),
|
||||
content_type: Property.Dropdown<'text' | 'html', true, typeof sendgridAuth>({
|
||||
displayName: 'Content Type',
|
||||
refreshers: [],
|
||||
required: true,
|
||||
auth: sendgridAuth,
|
||||
options: async () => {
|
||||
return {
|
||||
disabled: false,
|
||||
options: [
|
||||
{ label: 'Plain Text', value: 'text' },
|
||||
{ label: 'HTML', value: 'html' },
|
||||
],
|
||||
};
|
||||
},
|
||||
}),
|
||||
content: Property.ShortText({
|
||||
displayName: 'Content',
|
||||
description: 'HTML is only allowed if you selected HTML as type',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
async run(context) {
|
||||
const { to, from, from_name, reply_to, subject, content_type, content } =
|
||||
context.propsValue;
|
||||
const request: HttpRequest = {
|
||||
method: HttpMethod.POST,
|
||||
url: `${sendgridCommon.baseUrl}/mail/send`,
|
||||
body: {
|
||||
personalizations: to.map((x) => {
|
||||
return {
|
||||
to: [
|
||||
{
|
||||
email: (x as string).trim(),
|
||||
},
|
||||
],
|
||||
};
|
||||
}),
|
||||
from: {
|
||||
email: from,
|
||||
name: from_name,
|
||||
},
|
||||
reply_to: {
|
||||
email: reply_to ?? from,
|
||||
},
|
||||
subject: subject,
|
||||
content: [
|
||||
{
|
||||
type: content_type == 'text' ? 'text/plain' : 'text/html',
|
||||
value: content,
|
||||
},
|
||||
],
|
||||
},
|
||||
authentication: {
|
||||
type: AuthenticationType.BEARER_TOKEN,
|
||||
token: context.auth.secret_text,
|
||||
},
|
||||
queryParams: {},
|
||||
};
|
||||
await httpClient.sendRequest(request);
|
||||
|
||||
return {
|
||||
success: true,
|
||||
};
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,3 @@
|
||||
export const sendgridCommon = {
|
||||
baseUrl: 'https://api.sendgrid.com/v3',
|
||||
};
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"extends": "../../../../tsconfig.base.json",
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
}
|
||||
],
|
||||
"compilerOptions": {
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"outDir": "../../../../dist/out-tsc",
|
||||
"declaration": true,
|
||||
"types": ["node"]
|
||||
},
|
||||
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user