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,19 @@
|
||||
{
|
||||
"Communication services from Microsoft Azure": "Kommunikationsdienste von Microsoft Azure",
|
||||
"Send Email": "E-Mail senden",
|
||||
"Send a text or HTML email": "Text oder HTML-E-Mail senden",
|
||||
"Sender Email (From)": "Absender-E-Mail (Absender)",
|
||||
"To": "An",
|
||||
"Cc": "Cc",
|
||||
"Bcc": "Bcc",
|
||||
"Reply To": "Antwort an",
|
||||
"Subject": "Betreff",
|
||||
"Content Type": "Inhaltstyp",
|
||||
"Content": "Inhalt",
|
||||
"Sender email": "Absender-E-Mail",
|
||||
"Emails of the recipients": "E-Mails der Empfänger",
|
||||
"List of emails in cc": "Liste der E-Mails in cc",
|
||||
"List of emails in bcc": "Liste der E-Mails in bcc",
|
||||
"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"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"Communication services from Microsoft Azure": "Servicios de comunicación de Microsoft Azure",
|
||||
"Send Email": "Enviar Email",
|
||||
"Send a text or HTML email": "Enviar un mensaje de texto o HTML",
|
||||
"Sender Email (From)": "Email del remitente (From)",
|
||||
"To": "A",
|
||||
"Cc": "Cc",
|
||||
"Bcc": "Cco",
|
||||
"Reply To": "Responder a",
|
||||
"Subject": "Asunto",
|
||||
"Content Type": "Tipo de contenido",
|
||||
"Content": "Contenido",
|
||||
"Sender email": "Email del remitente",
|
||||
"Emails of the recipients": "Correos de los destinatarios",
|
||||
"List of emails in cc": "Lista de correos en cc",
|
||||
"List of emails in bcc": "Lista de correos en bcc",
|
||||
"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"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"Communication services from Microsoft Azure": "Services de communication de Microsoft Azure",
|
||||
"Send Email": "Envoyer un e-mail",
|
||||
"Send a text or HTML email": "Envoyer un message texte ou HTML",
|
||||
"Sender Email (From)": "Courriel de l'expéditeur (From)",
|
||||
"To": "À",
|
||||
"Cc": "Cc",
|
||||
"Bcc": "Cci",
|
||||
"Reply To": "Répondre à",
|
||||
"Subject": "Sujet",
|
||||
"Content Type": "Type de contenu",
|
||||
"Content": "Contenus",
|
||||
"Sender email": "E-mail de l'expéditeur",
|
||||
"Emails of the recipients": "E-mails des destinataires",
|
||||
"List of emails in cc": "Liste des emails en cc",
|
||||
"List of emails in bcc": "Liste des emails en bcc",
|
||||
"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"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"Communication services from Microsoft Azure": "Microsoft Azureからの通信サービス",
|
||||
"Send Email": "メール送信",
|
||||
"Send a text or HTML email": "テキストまたはHTMLメールを送信",
|
||||
"Sender Email (From)": "送信者メール (From)",
|
||||
"To": "終了日",
|
||||
"Cc": "Cc",
|
||||
"Bcc": "Bcc",
|
||||
"Reply To": "返信先",
|
||||
"Subject": "件名",
|
||||
"Content Type": "コンテンツタイプ",
|
||||
"Content": "コンテンツ",
|
||||
"Sender email": "送信者のメールアドレス",
|
||||
"Emails of the recipients": "受信者のメール",
|
||||
"List of emails in cc": "Cc内のメール一覧",
|
||||
"List of emails in bcc": "bcc 内のメール一覧",
|
||||
"Email to receive replies on (defaults to sender)": "返信を受信する電子メール(既定の送信者)",
|
||||
"HTML is only allowed if you selected HTML as type": "HTMLはあなたがタイプとしてHTMLを選択した場合にのみ許可されます"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"Communication services from Microsoft Azure": "Communicatiediensten van Microsoft Azure",
|
||||
"Send Email": "E-mail verzenden",
|
||||
"Send a text or HTML email": "Stuur een tekst of HTML e-mail",
|
||||
"Sender Email (From)": "E-mailadres afzender (van)",
|
||||
"To": "tot",
|
||||
"Cc": "Cc",
|
||||
"Bcc": "Bcc",
|
||||
"Reply To": "Antwoord aan",
|
||||
"Subject": "Onderwerp",
|
||||
"Content Type": "Type inhoud",
|
||||
"Content": "Inhoud",
|
||||
"Sender email": "Afzender e-mail",
|
||||
"Emails of the recipients": "E-mails van de ontvangers",
|
||||
"List of emails in cc": "Lijst van e-mails in cc",
|
||||
"List of emails in bcc": "Lijst van e-mails in bcc",
|
||||
"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"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"Communication services from Microsoft Azure": "Serviços de comunicação do Microsoft Azure",
|
||||
"Send Email": "Enviar e-mail",
|
||||
"Send a text or HTML email": "Enviar um e-mail de texto ou HTML",
|
||||
"Sender Email (From)": "E-mail do Remetente (From)",
|
||||
"To": "Para",
|
||||
"Cc": "Cc",
|
||||
"Bcc": "CCO",
|
||||
"Reply To": "Responder a",
|
||||
"Subject": "Cargo",
|
||||
"Content Type": "Tipo de Conteúdo",
|
||||
"Content": "Conteúdo",
|
||||
"Sender email": "E-mail do remetente",
|
||||
"Emails of the recipients": "E-mails dos destinatários",
|
||||
"List of emails in cc": "Lista de e-mails em cc",
|
||||
"List of emails in bcc": "Lista de e-mails em bcc",
|
||||
"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"
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"Azure Communication Services": "Службы связи Azure",
|
||||
"Communication services from Microsoft Azure": "Службы связи от Microsoft Azure",
|
||||
"Send Email": "Отправить письмо",
|
||||
"Send a text or HTML email": "Отправить текст или HTML email",
|
||||
"Sender Email (From)": "Электронная почта отправителя (From)",
|
||||
"To": "Кому",
|
||||
"Cc": "Cc",
|
||||
"Bcc": "Bcc",
|
||||
"Reply To": "Ответить",
|
||||
"Subject": "Тема",
|
||||
"Content Type": "Тип контента",
|
||||
"Content": "Содержание",
|
||||
"Sender email": "Email отправителя",
|
||||
"Emails of the recipients": "Письма получателей",
|
||||
"List of emails in cc": "Список писем в cc",
|
||||
"List of emails in bcc": "Список писем в bcc",
|
||||
"Email to receive replies on (defaults to sender)": "Письмо для получения ответов (по умолчанию для отправителя)",
|
||||
"HTML is only allowed if you selected HTML as type": "HTML допускается только если вы выбрали HTML как тип"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"Communication services from Microsoft Azure": "Communication services from Microsoft Azure",
|
||||
"Send Email": "Send Email",
|
||||
"Send a text or HTML email": "Send a text or HTML email",
|
||||
"Sender Email (From)": "Sender Email (From)",
|
||||
"To": "To",
|
||||
"Cc": "Cc",
|
||||
"Bcc": "Bcc",
|
||||
"Reply To": "Reply To",
|
||||
"Subject": "Subject",
|
||||
"Content Type": "Content Type",
|
||||
"Content": "Content",
|
||||
"Sender email": "Sender email",
|
||||
"Emails of the recipients": "Emails of the recipients",
|
||||
"List of emails in cc": "List of emails in cc",
|
||||
"List of emails in bcc": "List of emails in bcc",
|
||||
"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"
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"Azure Communication Services": "Azure Communication Services",
|
||||
"Communication services from Microsoft Azure": "Communication services from Microsoft Azure",
|
||||
"Send Email": "Send Email",
|
||||
"Send a text or HTML email": "Send a text or HTML email",
|
||||
"Sender Email (From)": "Sender Email (From)",
|
||||
"To": "To",
|
||||
"Cc": "Cc",
|
||||
"Bcc": "Bcc",
|
||||
"Reply To": "Reply To",
|
||||
"Subject": "Subject",
|
||||
"Content Type": "Content Type",
|
||||
"Content": "Content",
|
||||
"Sender email": "Sender email",
|
||||
"Emails of the recipients": "Emails of the recipients",
|
||||
"List of emails in cc": "List of emails in cc",
|
||||
"List of emails in bcc": "List of emails in bcc",
|
||||
"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"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"Communication services from Microsoft Azure": "Communication services from Microsoft Azure",
|
||||
"Send Email": "Send Email",
|
||||
"Send a text or HTML email": "Send a text or HTML email",
|
||||
"Sender Email (From)": "Sender Email (From)",
|
||||
"To": "To",
|
||||
"Cc": "Cc",
|
||||
"Bcc": "Bcc",
|
||||
"Reply To": "Reply To",
|
||||
"Subject": "Subject",
|
||||
"Content Type": "Content Type",
|
||||
"Content": "Content",
|
||||
"Sender email": "Sender email",
|
||||
"Emails of the recipients": "Emails of the recipients",
|
||||
"List of emails in cc": "List of emails in cc",
|
||||
"List of emails in bcc": "List of emails in bcc",
|
||||
"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"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
|
||||
import { sendEmail } from './lib/actions/send-email';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
|
||||
export const azureCommunicationServiceAuth = PieceAuth.SecretText({
|
||||
displayName: 'Connection string',
|
||||
required: true,
|
||||
});
|
||||
|
||||
export const azureCommunicationServices = createPiece({
|
||||
displayName: 'Azure Communication Services',
|
||||
description: 'Communication services from Microsoft Azure',
|
||||
auth: azureCommunicationServiceAuth,
|
||||
minimumSupportedRelease: '0.30.0',
|
||||
logoUrl:
|
||||
'https://cdn.activepieces.com/pieces/azure-communication-services.png',
|
||||
categories: [PieceCategory.COMMUNICATION, PieceCategory.MARKETING],
|
||||
authors: ['matthieu-lombard'],
|
||||
actions: [sendEmail],
|
||||
triggers: [],
|
||||
});
|
||||
@@ -0,0 +1,88 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { azureCommunicationServiceAuth } from '../..';
|
||||
import { EmailClient, EmailMessage } from '@azure/communication-email';
|
||||
|
||||
export const sendEmail = createAction({
|
||||
auth: azureCommunicationServiceAuth,
|
||||
name: 'send_email',
|
||||
displayName: 'Send Email',
|
||||
description: 'Send a text or HTML email',
|
||||
props: {
|
||||
from: Property.ShortText({
|
||||
displayName: 'Sender Email (From)',
|
||||
description: 'Sender email',
|
||||
required: true,
|
||||
}),
|
||||
to: Property.Array({
|
||||
displayName: 'To',
|
||||
description: 'Emails of the recipients',
|
||||
required: true,
|
||||
}),
|
||||
cc: Property.Array({
|
||||
displayName: 'Cc',
|
||||
description: 'List of emails in cc',
|
||||
required: false,
|
||||
}),
|
||||
bcc: Property.Array({
|
||||
displayName: 'Bcc',
|
||||
description: 'List of emails in bcc',
|
||||
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 azureCommunicationServiceAuth>({
|
||||
auth: azureCommunicationServiceAuth,
|
||||
displayName: 'Content Type',
|
||||
refreshers: [],
|
||||
required: true,
|
||||
defaultValue: 'html',
|
||||
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, reply_to, subject, content_type, content, cc, bcc } =
|
||||
context.propsValue;
|
||||
const message = {
|
||||
senderAddress: from,
|
||||
content: {
|
||||
subject: subject,
|
||||
...(content_type === 'text' && { plainText: content }),
|
||||
...(content_type === 'html' && { html: content }),
|
||||
},
|
||||
replyTo: [
|
||||
{
|
||||
address: reply_to ?? from,
|
||||
},
|
||||
],
|
||||
recipients: {
|
||||
to: to.map((address) => ({ address })),
|
||||
cc: (cc || []).map((address) => ({ address })),
|
||||
bcc: (bcc || []).map((address) => ({ address })),
|
||||
},
|
||||
} as EmailMessage;
|
||||
const client = new EmailClient(context.auth.secret_text);
|
||||
const poller = await client.beginSend(message);
|
||||
return await poller.pollUntilDone();
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user