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,18 @@
|
||||
{
|
||||
"extends": ["../../../../.eslintrc.json"],
|
||||
"ignorePatterns": ["!**/*"],
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": ["*.ts", "*.tsx"],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": ["*.js", "*.jsx"],
|
||||
"rules": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
2
activepieces-fork/packages/pieces/community/contiguity/.gitignore
vendored
Normal file
2
activepieces-fork/packages/pieces/community/contiguity/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
@@ -0,0 +1,7 @@
|
||||
# pieces-contiguity
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
|
||||
## Building
|
||||
|
||||
Run `nx build pieces-contiguity` to build the library.
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "@activepieces/piece-contiguity",
|
||||
"version": "0.1.14"
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"name": "pieces-contiguity",
|
||||
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "packages/pieces/community/contiguity/src",
|
||||
"projectType": "library",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nx/js:tsc",
|
||||
"outputs": [
|
||||
"{options.outputPath}"
|
||||
],
|
||||
"options": {
|
||||
"outputPath": "dist/packages/pieces/community/contiguity",
|
||||
"tsConfig": "packages/pieces/community/contiguity/tsconfig.lib.json",
|
||||
"packageJson": "packages/pieces/community/contiguity/package.json",
|
||||
"main": "packages/pieces/community/contiguity/src/index.ts",
|
||||
"assets": [
|
||||
"packages/pieces/community/contiguity/*.md",
|
||||
{
|
||||
"input": "packages/pieces/community/contiguity/src/i18n",
|
||||
"output": "./src/i18n",
|
||||
"glob": "**/!(i18n.json)"
|
||||
}
|
||||
],
|
||||
"buildableProjectDepsInPackageJsonType": "dependencies",
|
||||
"updateBuildableProjectDepsInPackageJson": true
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build",
|
||||
"prebuild"
|
||||
]
|
||||
},
|
||||
"publish": {
|
||||
"command": "node tools/scripts/publish.mjs pieces-contiguity {args.ver} {args.tag}",
|
||||
"dependsOn": [
|
||||
"build"
|
||||
]
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nx/eslint:lint",
|
||||
"outputs": [
|
||||
"{options.outputFile}"
|
||||
]
|
||||
},
|
||||
"prebuild": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"cwd": "packages/pieces/community/contiguity",
|
||||
"command": "bun install --no-save --silent"
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"Contiguity": "Contiguity",
|
||||
"An SMS service for your needs - quick and simple": "An SMS service for your needs - quick and simple",
|
||||
"API key acquired from your Contiguity settings": "API key acquired from your Contiguity settings",
|
||||
"Send SMS": "Send SMS",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Send a text message": "Send a text message",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"To": "To",
|
||||
"Content": "Content",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.": "Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.",
|
||||
"Message to send": "Message to send",
|
||||
"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 @@
|
||||
{
|
||||
"Communications for what you're building": "Kommunikation für das, was du baust",
|
||||
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "Authentifizieren Sie sich mit der Contiguity API mit einem widerrufbaren Schlüssel. Erstellen Sie einen unter console.contiguity.com/dashboard/tokens",
|
||||
"Send SMS/MMS": "SMS/MMS senden",
|
||||
"Send iMessage": "Nachricht senden",
|
||||
"Custom API Call": "Eigener API-Aufruf",
|
||||
"Send a text message": "Textnachricht senden",
|
||||
"Send an iMessage": "Eine iMessage senden",
|
||||
"Make a custom API call to a specific endpoint": "Einen benutzerdefinierten API-Aufruf an einen bestimmten Endpunkt machen",
|
||||
"To": "An",
|
||||
"From": "Von",
|
||||
"Message": "Nachricht",
|
||||
"Attachments": "Anhänge",
|
||||
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
||||
"When to fallback": "Wann zurückfallen",
|
||||
"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)",
|
||||
"Recipient phone number in E.164 format": "Telefonnummer des Empfängers im E.164-Format",
|
||||
"Your leased phone number": "Ihre Miet-Telefonnummer",
|
||||
"Text message content": "Textnachricht Inhalt",
|
||||
"File URLs (max 3, 5MB total, HTTPS required)": "Datei-URLs (max 3, 5MB insgesamt, HTTPS erforderlich)",
|
||||
"Your leased iMessage number.": "Ihre geleasste iMessage-Nummer.",
|
||||
"iMessage content": "iMessage-Inhalt",
|
||||
"Fallback to SMS/RCS when iMessage fails or unsupported": "Auf SMS/RCS zurückgreifen, wenn iMessage fehlschlägt oder nicht unterstützt wird",
|
||||
"Conditions that trigger SMS/RCS fallback": "Bedingungen, die SMS/RCS-Fallback auslösen",
|
||||
"File URLs (max 10, 50MB total, HTTPS required)": "Datei-URLs (max 10, 50MB insgesamt, HTTPS benötigt)",
|
||||
"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,40 @@
|
||||
{
|
||||
"Communications for what you're building": "Comunicaciones para lo que estás construyendo",
|
||||
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "Autenticar con la API de Contiguidad usando una clave revocable. Crea una en console.contiguity.com/dashboard/tokens",
|
||||
"Send SMS/MMS": "Enviar SMS/MMS",
|
||||
"Send iMessage": "Enviar iMessage",
|
||||
"Custom API Call": "Llamada API personalizada",
|
||||
"Send a text message": "Enviar un mensaje de texto",
|
||||
"Send an iMessage": "Enviar un iMessage",
|
||||
"Make a custom API call to a specific endpoint": "Hacer una llamada API personalizada a un extremo específico",
|
||||
"To": "A",
|
||||
"From": "De",
|
||||
"Message": "Mensaje",
|
||||
"Attachments": "Adjuntos",
|
||||
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
||||
"When to fallback": "Cuándo fallar",
|
||||
"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)",
|
||||
"Recipient phone number in E.164 format": "Número de teléfono del destinatario en formato E.164",
|
||||
"Your leased phone number": "Tu número de teléfono arrendado",
|
||||
"Text message content": "Contenido del mensaje de texto",
|
||||
"File URLs (max 3, 5MB total, HTTPS required)": "URL de archivo (máximo 3, 5MB total, HTTPS requerido)",
|
||||
"Your leased iMessage number.": "Tu número iMessage arrendado.",
|
||||
"iMessage content": "contenido iMessage",
|
||||
"Fallback to SMS/RCS when iMessage fails or unsupported": "Retroceder a SMS/RCS cuando iMessage falla o no está soportado",
|
||||
"Conditions that trigger SMS/RCS fallback": "Condiciones que activan SMS/RCS",
|
||||
"File URLs (max 10, 50MB total, HTTPS required)": "URL de archivo (máximo 10, 50MB total, HTTPS requerido)",
|
||||
"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,40 @@
|
||||
{
|
||||
"Communications for what you're building": "Communications pour ce que vous construisez",
|
||||
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "Authentifier avec l'API Contiguity à l'aide d'une clé révocable. Créez en une sur console.contiguity.com/dashboard/tokens",
|
||||
"Send SMS/MMS": "Envoyer des SMS/MMS",
|
||||
"Send iMessage": "Envoyer iMessage",
|
||||
"Custom API Call": "Appel API personnalisé",
|
||||
"Send a text message": "Envoyer un SMS",
|
||||
"Send an iMessage": "Envoyer un iMessage",
|
||||
"Make a custom API call to a specific endpoint": "Passez un appel API personnalisé à un point de terminaison spécifique",
|
||||
"To": "À",
|
||||
"From": "A partir de",
|
||||
"Message": "Message",
|
||||
"Attachments": "Pièces jointes",
|
||||
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
||||
"When to fallback": "Quand faire un repli",
|
||||
"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'attente (en secondes)",
|
||||
"Recipient phone number in E.164 format": "Numéro de téléphone du destinataire au format E.164",
|
||||
"Your leased phone number": "Votre numéro de téléphone loué",
|
||||
"Text message content": "Contenu du message texte",
|
||||
"File URLs (max 3, 5MB total, HTTPS required)": "URL de fichier (max 3, 5MB total, HTTPS requis)",
|
||||
"Your leased iMessage number.": "Votre numéro iMessage loué.",
|
||||
"iMessage content": "Contenu iMessage",
|
||||
"Fallback to SMS/RCS when iMessage fails or unsupported": "Revenir au SMS / RCS lorsque iMessage échoue ou n'est pas pris en charge",
|
||||
"Conditions that trigger SMS/RCS fallback": "Conditions qui déclenchent le repli SMS/RCS",
|
||||
"File URLs (max 10, 50MB total, HTTPS required)": "URL de fichier (max 10, 50 Mo au total, HTTPS requis)",
|
||||
"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": "OBTENIR",
|
||||
"POST": "POSTER",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "EFFACER",
|
||||
"DELETE": "SUPPRIMER",
|
||||
"HEAD": "TÊTE"
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"Contiguity": "Contiguity",
|
||||
"An SMS service for your needs - quick and simple": "An SMS service for your needs - quick and simple",
|
||||
"API key acquired from your Contiguity settings": "API key acquired from your Contiguity settings",
|
||||
"Send SMS": "Send SMS",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Send a text message": "Send a text message",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"To": "To",
|
||||
"Content": "Content",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.": "Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.",
|
||||
"Message to send": "Message to send",
|
||||
"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,26 @@
|
||||
{
|
||||
"Contiguity": "Contiguity",
|
||||
"An SMS service for your needs - quick and simple": "An SMS service for your needs - quick and simple",
|
||||
"API key acquired from your Contiguity settings": "API key acquired from your Contiguity settings",
|
||||
"Send SMS": "Send SMS",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Send a text message": "Send a text message",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"To": "To",
|
||||
"Content": "Content",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.": "Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.",
|
||||
"Message to send": "Message to send",
|
||||
"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 @@
|
||||
{
|
||||
"Communications for what you're building": "構築しているものとのコミュニケーション",
|
||||
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "取消し可能なキーを使用して Contiguity API で認証します。console.contiguity.com/dashboard/tokens に作成してください。",
|
||||
"Send SMS/MMS": "SMS/MMS の送信",
|
||||
"Send iMessage": "IMessageがを送信",
|
||||
"Custom API Call": "カスタムAPI通話",
|
||||
"Send a text message": "テキストメッセージを送信",
|
||||
"Send an iMessage": "IMessageがを送信",
|
||||
"Make a custom API call to a specific endpoint": "特定のエンドポイントへのカスタム API コールを実行します。",
|
||||
"To": "終了日",
|
||||
"From": "差出人:",
|
||||
"Message": "メッセージ",
|
||||
"Attachments": "添付ファイル",
|
||||
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
||||
"When to fallback": "フォールバックする時",
|
||||
"Method": "方法",
|
||||
"Headers": "ヘッダー",
|
||||
"Query Parameters": "クエリパラメータ",
|
||||
"Body": "本文",
|
||||
"Response is Binary ?": "応答はバイナリですか?",
|
||||
"No Error on Failure": "失敗時にエラーはありません",
|
||||
"Timeout (in seconds)": "タイムアウト(秒)",
|
||||
"Recipient phone number in E.164 format": "受信者の電話番号(E.164形式)",
|
||||
"Your leased phone number": "リースされた電話番号",
|
||||
"Text message content": "テキストメッセージの内容",
|
||||
"File URLs (max 3, 5MB total, HTTPS required)": "ファイルURL(最大3,5MB、HTTPSが必要)",
|
||||
"Your leased iMessage number.": "あなたのリースされたiMessage番号。",
|
||||
"iMessage content": "iMessage コンテンツ",
|
||||
"Fallback to SMS/RCS when iMessage fails or unsupported": "IMessageが失敗またはサポートされていない場合にSMS/RCSにフォールバックします",
|
||||
"Conditions that trigger SMS/RCS fallback": "SMS/RCSフォールバックをトリガーする条件",
|
||||
"File URLs (max 10, 50MB total, HTTPS required)": "ファイルURL(最大10,50MB、HTTPSが必要)",
|
||||
"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,40 @@
|
||||
{
|
||||
"Communications for what you're building": "Communicatie over wat je aan het maken bent",
|
||||
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "Authenticeer met de Contiguity API met behulp van een herroepbare sleutel. Maak er een aan op console.contiguity.com/dashboard/tokens",
|
||||
"Send SMS/MMS": "Sms/mms verzenden",
|
||||
"Send iMessage": "Verstuur iMessage",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Send a text message": "Stuur een sms",
|
||||
"Send an iMessage": "Stuur een iMessage",
|
||||
"Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
|
||||
"To": "tot",
|
||||
"From": "van",
|
||||
"Message": "bericht",
|
||||
"Attachments": "Bijlagen",
|
||||
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
||||
"When to fallback": "Wanneer terug te vallen",
|
||||
"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)",
|
||||
"Recipient phone number in E.164 format": "Ontvanger telefoonnummer in E.164 formaat",
|
||||
"Your leased phone number": "Jouw leased phone number",
|
||||
"Text message content": "Inhoud van tekstbericht",
|
||||
"File URLs (max 3, 5MB total, HTTPS required)": "File URLs (max 3, 5MB totaal, HTTPS vereist)",
|
||||
"Your leased iMessage number.": "Je leaset iMessage nummer.",
|
||||
"iMessage content": "iMessage inhoud",
|
||||
"Fallback to SMS/RCS when iMessage fails or unsupported": "Terugvallen naar SMS/RCS wanneer iMessage mislukt of niet ondersteund wordt",
|
||||
"Conditions that trigger SMS/RCS fallback": "Voorwaarden die SMS/RCS terugvallen",
|
||||
"File URLs (max 10, 50MB total, HTTPS required)": "File URLs (max 10, 50MB totaal, HTTPS vereist)",
|
||||
"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,40 @@
|
||||
{
|
||||
"Communications for what you're building": "Comunicações sobre o que você está construindo",
|
||||
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "Autenticar com a API Contiguity usando uma chave revogável. Crie uma em console.contiguity.com/dashboard/tokens",
|
||||
"Send SMS/MMS": "Enviar SMS/MMS",
|
||||
"Send iMessage": "Enviar iMessage",
|
||||
"Custom API Call": "Chamada de API personalizada",
|
||||
"Send a text message": "Enviar uma mensagem de texto",
|
||||
"Send an iMessage": "Enviar um iMessage",
|
||||
"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": "De",
|
||||
"Message": "mensagem",
|
||||
"Attachments": "Anexos",
|
||||
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
||||
"When to fallback": "Quando fallback",
|
||||
"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)",
|
||||
"Recipient phone number in E.164 format": "Número de telefone destinatário no formato E.164",
|
||||
"Your leased phone number": "Seu número de telefone alugado",
|
||||
"Text message content": "Texto do conteúdo da mensagem",
|
||||
"File URLs (max 3, 5MB total, HTTPS required)": "URLs de arquivos (máximo de 3, 5MB no total, HTTPS necessário)",
|
||||
"Your leased iMessage number.": "Seu número iMessage de aluguel.",
|
||||
"iMessage content": "Conteúdo iMessage",
|
||||
"Fallback to SMS/RCS when iMessage fails or unsupported": "Retornar para SMS/RCS quando iMessage falhar ou não suportado",
|
||||
"Conditions that trigger SMS/RCS fallback": "Condições que ativam SMS/RCS fallback",
|
||||
"File URLs (max 10, 50MB total, HTTPS required)": "URLs de arquivos (máximo de 10, 50MB total, HTTPS requerido)",
|
||||
"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,26 @@
|
||||
{
|
||||
"Contiguity": "Contiguity",
|
||||
"An SMS service for your needs - quick and simple": "SMS-сервис для ваших потребностей - быстрый и простой",
|
||||
"API key acquired from your Contiguity settings": "Ключ API получен из настроек Вашего Contiguity",
|
||||
"Send SMS": "Отправить СМС",
|
||||
"Custom API Call": "Пользовательский вызов API",
|
||||
"Send a text message": "Отправить текстовое сообщение",
|
||||
"Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
|
||||
"To": "Кому",
|
||||
"Content": "Содержание",
|
||||
"Method": "Метод",
|
||||
"Headers": "Заголовки",
|
||||
"Query Parameters": "Параметры запроса",
|
||||
"Body": "Тело",
|
||||
"No Error on Failure": "Нет ошибок при ошибке",
|
||||
"Timeout (in seconds)": "Таймаут (в секундах)",
|
||||
"Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.": "Введите номер телефона получателя в международном формате без пробелов, следующий шаблон: [+] [Код страны][Номер абонента]. Например, +12065551234.",
|
||||
"Message to send": "Отправленное сообщение",
|
||||
"Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
|
||||
"GET": "ПОЛУЧИТЬ",
|
||||
"POST": "ПОСТ",
|
||||
"PATCH": "ПАТЧ",
|
||||
"PUT": "ПОКУПИТЬ",
|
||||
"DELETE": "УДАЛИТЬ",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"Communications for what you're building": "Communications for what you're building",
|
||||
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens",
|
||||
"Send SMS/MMS": "Send SMS/MMS",
|
||||
"Send iMessage": "Send iMessage",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Send a text message": "Send a text message",
|
||||
"Send an iMessage": "Send an iMessage",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"To": "To",
|
||||
"From": "From",
|
||||
"Message": "Message",
|
||||
"Attachments": "Attachments",
|
||||
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
||||
"When to fallback": "When to fallback",
|
||||
"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)",
|
||||
"Recipient phone number in E.164 format": "Recipient phone number in E.164 format",
|
||||
"Your leased phone number": "Your leased phone number",
|
||||
"Text message content": "Text message content",
|
||||
"File URLs (max 3, 5MB total, HTTPS required)": "File URLs (max 3, 5MB total, HTTPS required)",
|
||||
"Your leased iMessage number.": "Your leased iMessage number.",
|
||||
"iMessage content": "iMessage content",
|
||||
"Fallback to SMS/RCS when iMessage fails or unsupported": "Fallback to SMS/RCS when iMessage fails or unsupported",
|
||||
"Conditions that trigger SMS/RCS fallback": "Conditions that trigger SMS/RCS fallback",
|
||||
"File URLs (max 10, 50MB total, HTTPS required)": "File URLs (max 10, 50MB total, HTTPS required)",
|
||||
"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,26 @@
|
||||
{
|
||||
"Contiguity": "Contiguity",
|
||||
"An SMS service for your needs - quick and simple": "An SMS service for your needs - quick and simple",
|
||||
"API key acquired from your Contiguity settings": "API key acquired from your Contiguity settings",
|
||||
"Send SMS": "Send SMS",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Send a text message": "Send a text message",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"To": "To",
|
||||
"Content": "Content",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.": "Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.",
|
||||
"Message to send": "Message to send",
|
||||
"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 @@
|
||||
{
|
||||
"Communications for what you're building": "Communications for what you're building",
|
||||
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens",
|
||||
"Send SMS/MMS": "Send SMS/MMS",
|
||||
"Send iMessage": "Send iMessage",
|
||||
"Custom API Call": "自定义 API 呼叫",
|
||||
"Send a text message": "Send a text message",
|
||||
"Send an iMessage": "Send an iMessage",
|
||||
"Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
|
||||
"To": "To",
|
||||
"From": "From",
|
||||
"Message": "Message",
|
||||
"Attachments": "Attachments",
|
||||
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
||||
"When to fallback": "When to fallback",
|
||||
"Method": "方法",
|
||||
"Headers": "信头",
|
||||
"Query Parameters": "查询参数",
|
||||
"Body": "正文内容",
|
||||
"Response is Binary ?": "Response is Binary ?",
|
||||
"No Error on Failure": "失败时没有错误",
|
||||
"Timeout (in seconds)": "超时(秒)",
|
||||
"Recipient phone number in E.164 format": "Recipient phone number in E.164 format",
|
||||
"Your leased phone number": "Your leased phone number",
|
||||
"Text message content": "Text message content",
|
||||
"File URLs (max 3, 5MB total, HTTPS required)": "File URLs (max 3, 5MB total, HTTPS required)",
|
||||
"Your leased iMessage number.": "Your leased iMessage number.",
|
||||
"iMessage content": "iMessage content",
|
||||
"Fallback to SMS/RCS when iMessage fails or unsupported": "Fallback to SMS/RCS when iMessage fails or unsupported",
|
||||
"Conditions that trigger SMS/RCS fallback": "Conditions that trigger SMS/RCS fallback",
|
||||
"File URLs (max 10, 50MB total, HTTPS required)": "File URLs (max 10, 50MB total, HTTPS required)",
|
||||
"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,33 @@
|
||||
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
||||
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { sendText } from './lib/actions/send/text';
|
||||
import { send_iMessage } from './lib/actions/send/imessage';
|
||||
|
||||
export const contiguityAuth = PieceAuth.SecretText({
|
||||
displayName: 'API Key',
|
||||
required: true,
|
||||
description: 'Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens',
|
||||
});
|
||||
|
||||
export const contiguity = createPiece({
|
||||
displayName: 'Contiguity',
|
||||
description: 'Communications for what you\'re building',
|
||||
auth: contiguityAuth,
|
||||
minimumSupportedRelease: '0.30.0',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/contiguity.png',
|
||||
authors: ["Owlcept","Ozak93","kishanprmr","MoShizzle","abuaboud","Contiguity"],
|
||||
categories: [PieceCategory.MARKETING],
|
||||
actions: [
|
||||
sendText,
|
||||
send_iMessage,
|
||||
createCustomApiCallAction({
|
||||
baseUrl: () => 'https://api.contiguity.com',
|
||||
auth: contiguityAuth,
|
||||
authMapping: async (auth) => ({
|
||||
authorization: `Bearer ${auth}`,
|
||||
}),
|
||||
}),
|
||||
],
|
||||
triggers: [],
|
||||
});
|
||||
@@ -0,0 +1,124 @@
|
||||
import {
|
||||
HttpMethod,
|
||||
propsValidation,
|
||||
} from '@activepieces/pieces-common';
|
||||
import { contiguityAuth } from '../../..';
|
||||
import {
|
||||
InputPropertyMap,
|
||||
Property,
|
||||
createAction,
|
||||
} from '@activepieces/pieces-framework';
|
||||
import { z } from 'zod';
|
||||
import { _fetch } from '../../common/request';
|
||||
|
||||
export const send_iMessage = createAction({
|
||||
auth: contiguityAuth,
|
||||
name: 'send_imessage',
|
||||
displayName: 'Send iMessage',
|
||||
description: 'Send an iMessage',
|
||||
props: {
|
||||
to: Property.ShortText({
|
||||
displayName: 'To',
|
||||
description: 'Recipient phone number in E.164 format',
|
||||
required: true,
|
||||
}),
|
||||
from: Property.ShortText({
|
||||
displayName: 'From',
|
||||
description: 'Your leased iMessage number.',
|
||||
required: false,
|
||||
}),
|
||||
message: Property.LongText({
|
||||
displayName: 'Message',
|
||||
description: 'iMessage content',
|
||||
required: true,
|
||||
}),
|
||||
fallback: Property.Checkbox({
|
||||
displayName: 'SMS/RCS Fallback',
|
||||
description: 'Fallback to SMS/RCS when iMessage fails or unsupported',
|
||||
required: false,
|
||||
defaultValue: false,
|
||||
}),
|
||||
fallback_when: Property.DynamicProperties({
|
||||
auth: contiguityAuth,
|
||||
displayName: "When to fallback",
|
||||
description: 'Conditions that trigger SMS/RCS fallback',
|
||||
required: true,
|
||||
refreshers: ['fallback'],
|
||||
props: async (propsValue): Promise<InputPropertyMap> => {
|
||||
const fallback = propsValue['fallback'] as unknown as boolean;
|
||||
|
||||
if (!fallback){
|
||||
return{}
|
||||
}
|
||||
|
||||
if (fallback){
|
||||
return{
|
||||
when: Property.StaticMultiSelectDropdown({
|
||||
displayName: "When to fallback",
|
||||
description: "Conditions that trigger SMS/RCS fallback",
|
||||
required: true,
|
||||
options: {
|
||||
options:[
|
||||
{ label: 'iMessage Unsupported', value: 'imessage_unsupported' },
|
||||
{ label: 'iMessage Fails', value: 'imessage_fails' },
|
||||
]
|
||||
}
|
||||
}),
|
||||
from: Property.ShortText({
|
||||
displayName: 'Fallback From Number',
|
||||
description: 'SMS/RCS number for fallback',
|
||||
required: false,
|
||||
}),
|
||||
};
|
||||
}
|
||||
return{};
|
||||
},
|
||||
}),
|
||||
attachments: Property.Array({
|
||||
displayName: 'Attachments',
|
||||
description: 'File URLs (max 10, 50MB total, HTTPS required)',
|
||||
required: false,
|
||||
properties: {
|
||||
url: Property.ShortText({
|
||||
displayName: 'File URL',
|
||||
description: 'HTTPS URL with file extension',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
}),
|
||||
},
|
||||
async run(context) {
|
||||
await propsValidation.validateZod(context.propsValue, {
|
||||
to: z.string().regex(/^\+\d{1,4}\d+$/, 'Invalid E.164 format'),
|
||||
from: z.string().regex(/^\+\d{1,4}\d+$/, 'Must be E.164 format').optional(),
|
||||
message: z.string().min(1, 'Message cannot be empty'),
|
||||
fallback: z.object({
|
||||
when: z.array(z.enum(['imessage_unsupported', 'imessage_fails'])).min(1, 'Select at least one fallback condition'),
|
||||
from: z.string().regex(/^\+\d{1,4}\d+$/, 'Must be E.164 format').optional(),
|
||||
}).optional(),
|
||||
attachments: z.array(
|
||||
z.object({
|
||||
url: z.string()
|
||||
.url('Invalid URL format')
|
||||
.regex(/^https:\/\/.*\.[a-zA-Z0-9]+$/, 'Must be HTTPS URL with file extension')
|
||||
})
|
||||
).max(10, 'Maximum 10 attachments').optional(),
|
||||
});
|
||||
|
||||
const { to, from, message, attachments } = context.propsValue;
|
||||
|
||||
const body: any = { to, message };
|
||||
|
||||
if (from) body.from = from;
|
||||
if (attachments?.length) {
|
||||
body.attachments = attachments.map(attachment => (attachment as {url: string}).url);
|
||||
}
|
||||
|
||||
return await _fetch({
|
||||
method: HttpMethod.POST,
|
||||
endpoint: '/send/imessage',
|
||||
body: body,
|
||||
auth: context.auth.secret_text,
|
||||
});
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,82 @@
|
||||
import {
|
||||
HttpMethod,
|
||||
propsValidation,
|
||||
} from '@activepieces/pieces-common';
|
||||
import { contiguityAuth } from '../../..';
|
||||
import {
|
||||
Property,
|
||||
createAction,
|
||||
} from '@activepieces/pieces-framework';
|
||||
import { z } from 'zod';
|
||||
import { _fetch } from '../../common/request';
|
||||
|
||||
export const sendText = createAction({
|
||||
auth: contiguityAuth,
|
||||
name: 'send_text',
|
||||
displayName: 'Send SMS/MMS',
|
||||
description: 'Send a text message',
|
||||
props: {
|
||||
to: Property.ShortText({
|
||||
displayName: 'To',
|
||||
description: 'Recipient phone number in E.164 format',
|
||||
required: true,
|
||||
}),
|
||||
from: Property.ShortText({
|
||||
displayName: 'From',
|
||||
description: 'Your leased phone number',
|
||||
required: false,
|
||||
}),
|
||||
message: Property.LongText({
|
||||
displayName: 'Message',
|
||||
description: 'Text message content',
|
||||
required: true,
|
||||
}),
|
||||
attachments: Property.Array({
|
||||
displayName: 'Attachments',
|
||||
description: 'File URLs (max 3, 5MB total, HTTPS required)',
|
||||
required: false,
|
||||
properties: {
|
||||
url: Property.ShortText({
|
||||
displayName: 'File URL',
|
||||
description: 'HTTPS URL with file extension',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
}),
|
||||
},
|
||||
async run(context) {
|
||||
await propsValidation.validateZod(context.propsValue, {
|
||||
to: z.string().regex(/^\+\d{1,4}\d+$/, 'Invalid E.164 format'),
|
||||
from: z.string().regex(/^\+\d{1,4}\d+$/, 'Invalid E.164 format').optional(),
|
||||
// Messages above >160 characters are supported by Contiguity, they will be automatically split into multiple messages. When MMS launches, messages will not be split unless they exceed 1,600 characters.
|
||||
message: z.string().refine((message) => {
|
||||
const { attachments } = context.propsValue;
|
||||
// Message can be empty if attachments are provided
|
||||
return message.trim().length > 0 || (attachments && attachments.length > 0);
|
||||
}, 'Message cannot be empty unless attachments are provided'),
|
||||
// MMS is supported by Contiguity, however it is in beta as of September 2025. If not a beta tester, attachments[] will be ignored.
|
||||
attachments: z.array(
|
||||
z.object({
|
||||
url: z.string()
|
||||
.url('Invalid URL format')
|
||||
.regex(/^https:\/\/.*\.[a-zA-Z0-9]+$/, 'Must be a valid, HTTPS-secured URL, with a file extension. Example: https://example.com/image.png')
|
||||
})
|
||||
).max(3, 'Maximum 3 attachment URLs').optional(),
|
||||
});
|
||||
|
||||
const { to, from, message, attachments } = context.propsValue;
|
||||
|
||||
const body: any = { to, message };
|
||||
if (from) body.from = from;
|
||||
if (attachments?.length) {
|
||||
body.attachments = attachments.map(attachment => (attachment as {url: string}).url);
|
||||
}
|
||||
|
||||
return await _fetch({
|
||||
method: HttpMethod.POST,
|
||||
endpoint: '/send/text',
|
||||
body: body,
|
||||
auth: context.auth.secret_text,
|
||||
});
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,31 @@
|
||||
import { HttpMethod, HttpRequest, httpClient } from '@activepieces/pieces-common';
|
||||
|
||||
export const CONTIGUITY_API_BASE_URL = 'https://api.contiguity.com';
|
||||
|
||||
export interface ContiguityRequestConfig {
|
||||
method: HttpMethod;
|
||||
endpoint: string;
|
||||
body?: any;
|
||||
auth: string;
|
||||
}
|
||||
|
||||
export const contiguityHeaders = (auth: string): Record<string, string> => {
|
||||
return {
|
||||
authorization: `Bearer ${auth}`,
|
||||
'Content-Type': 'application/json',
|
||||
};
|
||||
};
|
||||
|
||||
export const contiguityRequest = (config: ContiguityRequestConfig): HttpRequest => {
|
||||
return {
|
||||
method: config.method,
|
||||
url: `${CONTIGUITY_API_BASE_URL}${config.endpoint}`,
|
||||
body: config.body,
|
||||
headers: contiguityHeaders(config.auth),
|
||||
};
|
||||
};
|
||||
|
||||
export const _fetch = async (config: ContiguityRequestConfig) => {
|
||||
const request = contiguityRequest(config);
|
||||
return await httpClient.sendRequest(request);
|
||||
};
|
||||
@@ -0,0 +1,31 @@
|
||||
import { HttpMethod, HttpRequest, httpClient } from '@activepieces/pieces-common';
|
||||
|
||||
export const CONTIGUITY_API_BASE_URL = 'https://api.contiguity.com';
|
||||
|
||||
export interface ContiguityRequestConfig {
|
||||
method: HttpMethod;
|
||||
endpoint: string;
|
||||
body?: any;
|
||||
auth: string;
|
||||
}
|
||||
|
||||
export const contiguityHeaders = (auth: string): Record<string, string> => {
|
||||
return {
|
||||
authorization: `Bearer ${auth}`,
|
||||
'Content-Type': 'application/json',
|
||||
};
|
||||
};
|
||||
|
||||
export const contiguityRequest = (config: ContiguityRequestConfig): HttpRequest => {
|
||||
return {
|
||||
method: config.method,
|
||||
url: `${CONTIGUITY_API_BASE_URL}${config.endpoint}`,
|
||||
body: config.body,
|
||||
headers: contiguityHeaders(config.auth),
|
||||
};
|
||||
};
|
||||
|
||||
export const _fetch = async (config: ContiguityRequestConfig) => {
|
||||
const request = contiguityRequest(config);
|
||||
return await httpClient.sendRequest(request);
|
||||
};
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"extends": "../../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"noImplicitOverride": true,
|
||||
"noPropertyAccessFromIndexSignature": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
},
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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