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,33 @@
|
||||
{
|
||||
"extends": [
|
||||
"../../../../.eslintrc.base.json"
|
||||
],
|
||||
"ignorePatterns": [
|
||||
"!**/*"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
"*.ts",
|
||||
"*.tsx",
|
||||
"*.js",
|
||||
"*.jsx"
|
||||
],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"*.ts",
|
||||
"*.tsx"
|
||||
],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"*.js",
|
||||
"*.jsx"
|
||||
],
|
||||
"rules": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# pieces-amazon-sns
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
|
||||
## Building
|
||||
|
||||
Run `nx build pieces-amazon-sns` to build the library.
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "@activepieces/piece-amazon-sns",
|
||||
"version": "0.0.7",
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-sns": "3.726.1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"name": "pieces-amazon-sns",
|
||||
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "packages/pieces/community/amazon-sns/src",
|
||||
"projectType": "library",
|
||||
"release": {
|
||||
"version": {
|
||||
"currentVersionResolver": "git-tag",
|
||||
"preserveLocalDependencyProtocols": false,
|
||||
"manifestRootsToUpdate": [
|
||||
"dist/{projectRoot}"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tags": [],
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nx/js:tsc",
|
||||
"outputs": [
|
||||
"{options.outputPath}"
|
||||
],
|
||||
"options": {
|
||||
"outputPath": "dist/packages/pieces/community/amazon-sns",
|
||||
"tsConfig": "packages/pieces/community/amazon-sns/tsconfig.lib.json",
|
||||
"packageJson": "packages/pieces/community/amazon-sns/package.json",
|
||||
"main": "packages/pieces/community/amazon-sns/src/index.ts",
|
||||
"assets": [
|
||||
"packages/pieces/community/amazon-sns/*.md",
|
||||
{
|
||||
"input": "packages/pieces/community/amazon-sns/src/i18n",
|
||||
"output": "./src/i18n",
|
||||
"glob": "**/!(i18n.json)"
|
||||
}
|
||||
],
|
||||
"buildableProjectDepsInPackageJsonType": "dependencies",
|
||||
"updateBuildableProjectDepsInPackageJson": true
|
||||
},
|
||||
"dependsOn": [
|
||||
"prebuild",
|
||||
"^build"
|
||||
]
|
||||
},
|
||||
"nx-release-publish": {
|
||||
"options": {
|
||||
"packageRoot": "dist/{projectRoot}"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nx/eslint:lint",
|
||||
"outputs": [
|
||||
"{options.outputFile}"
|
||||
]
|
||||
},
|
||||
"prebuild": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"cwd": "packages/pieces/community/amazon-sns",
|
||||
"command": "bun install --no-save --silent"
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"Access Key ID": "Zugangsschlüssel ID",
|
||||
"Secret Access Key": "Geheimer Zugangsschlüssel",
|
||||
"Region": "Region",
|
||||
"Endpoint": "Endpoint",
|
||||
"Default": "Standard",
|
||||
"US East (N. Virginia) [us-east-1]": "US Ost (N. Virginia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "US Ost (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "US West (N. Kalifornien) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "US West (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "Afrika (Cape Town) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Asien-Pazifik (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asien-Pazifik (Osaka-Lokal) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Asien Pazifik (Seoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Asien-Pazifik (Singapur) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Asien-Pazifik (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europa (Frankfurt) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europa (Irland) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europa (London) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europa (Mailand) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europa (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Naher Osten (Bahrain) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "Südamerika (Sa<unk> o Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europa (Spanien) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Asien Pazifik (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Asien Pazifik (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (Peking) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "China (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europa (Zürich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Naher Osten (UAE) [me-central-1]",
|
||||
"\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n": "\nMit diesem Stück können Sie Nachrichten an Amazon SNS Themen senden.\n\nBeziehen Sie sich auf [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) für **Region**. Lassen Sie den **Endpunkt** leer. \n",
|
||||
"Send Message": "Nachricht senden",
|
||||
"Sends a message to an Amazon SNS topic.": "Sendet eine Nachricht an ein Amazon SNS Thema.",
|
||||
"Topic": "Thema",
|
||||
"Message": "Nachricht",
|
||||
"Select a topic": "Thema auswählen"
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"Access Key ID": "Clave de acceso ID",
|
||||
"Secret Access Key": "Clave de acceso secreta",
|
||||
"Region": "Región",
|
||||
"Endpoint": "Endpoint",
|
||||
"Default": "Por defecto",
|
||||
"US East (N. Virginia) [us-east-1]": "EEUU Este (N. Virginia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "EEUU Este (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "EEUU Oeste (N. California) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "Oeste de EEUU (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "África (Ciudad del Cabo) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Asia Pacific (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asia Pacífico (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Asia-Pacífico (Seoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Asia Pacífico (Singapore) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Asia Pacífico (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europa (mañana) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europa (mañana) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europa (Londres) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europa (Milán) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europa (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Oriente Medio (Bahrein) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "América del Sur (Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europa (España) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Asia Pacífico (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Asia Pacífico (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (poniendo) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "China (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europa (Zúrich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Oriente Medio (EAU) [me-central-1]",
|
||||
"\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n": "\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n",
|
||||
"Send Message": "Enviar mensaje",
|
||||
"Sends a message to an Amazon SNS topic.": "Envía un mensaje a un tema de Amazon SNS.",
|
||||
"Topic": "Tema",
|
||||
"Message": "Mensaje",
|
||||
"Select a topic": "Seleccione un tema"
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"Access Key ID": "ID de la clé d'accès",
|
||||
"Secret Access Key": "Clé secrète d'accès",
|
||||
"Region": "Région",
|
||||
"Endpoint": "Endpoint",
|
||||
"Default": "Par défaut",
|
||||
"US East (N. Virginia) [us-east-1]": "US East (N. Virginie) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "US East (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "US West (N. California) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "US West (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "Afrique (Cape Ville) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Asie-Pacifique (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asie-Pacifique (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Asie-Pacifique (Séoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Asie-Pacifique (Singapore) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Asie-Pacifique (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europe (Francfort) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europe (Irlande) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europe (London) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europe (Milan) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europe (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Moyen Orient (Bahrain) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "Amérique du Sud (Sa<unk> o Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europe (Espagne) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Asie-Pacifique (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Asie Pacifique (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "Chine (Beijing) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "Chine (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europe (Zurich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Moyen Orient (UAE) [me-central-1]",
|
||||
"\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n": "\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n",
|
||||
"Send Message": "Envoyer un message",
|
||||
"Sends a message to an Amazon SNS topic.": "Envoie un message à un sujet du SNS Amazon.",
|
||||
"Topic": "Sujet",
|
||||
"Message": "Message",
|
||||
"Select a topic": "Sélectionnez un sujet"
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"Access Key ID": "アクセスキーID",
|
||||
"Secret Access Key": "シークレットアクセスキー",
|
||||
"Region": "地域",
|
||||
"Endpoint": "Endpoint",
|
||||
"Default": "デフォルト",
|
||||
"US East (N. Virginia) [us-east-1]": "US East (バージニア州北部) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "US East (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "US West (N. California) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "アメリカ西部(オレゴン) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "アフリカ (ケープタウン) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "アジア太平洋(香港) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asia Pacific (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "アジア太平洋(ソウル) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "アジア太平洋(シンガポール) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "アジア太平洋(シドニー) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europe (Frankfurt) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "ヨーロッパ (アイルランド) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "ヨーロッパ (ロンドン) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "ヨーロッパ (ミラノ) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "ヨーロッパ (パリ) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "中東(バーレーン) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "南アメリカ (Safingo Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "ヨーロッパ (スペイン) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "アジア太平洋(ハイデラバード) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "アジア太平洋(Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "中国 (北京) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "中国 (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "ヨーロッパ (チューリッヒ) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "中東(UAE) [me-central-1]",
|
||||
"\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n": "\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n",
|
||||
"Send Message": "メッセージを送信",
|
||||
"Sends a message to an Amazon SNS topic.": "Amazon SNSのトピックにメッセージを送信します。",
|
||||
"Topic": "トピック",
|
||||
"Message": "メッセージ",
|
||||
"Select a topic": "トピックを選択"
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"Access Key ID": "Toegangssleutel ID",
|
||||
"Secret Access Key": "Geheime toegangssleutel",
|
||||
"Region": "Regio",
|
||||
"Endpoint": "Endpoint",
|
||||
"Default": "Standaard",
|
||||
"US East (N. Virginia) [us-east-1]": "VS Oost (N. Virginia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "VS Oost (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "VS West (N. Californië) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "VS West (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "Afrika (Cape Town) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Azië Pacific (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Azië Pacific (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Azië Pacific (Seoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Azië Pacific (Singapore) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Azië Pacific (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europa (Frankfurt) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europa (Ireland) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europa (London) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europa (Milan) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europa (Parijs) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Midden Oosten (Bahrain) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "Zuid-Amerika (Saľo Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europa (Spanje) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Azië Pacific (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Azië Pacific (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (Beijing) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "China (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europa (Zurich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Midden Oosten (AAE) [me-central-1]",
|
||||
"\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n": "\nDit stuk stelt u in staat berichten te verzenden naar Amazon SNS topics.\n\nVerwijs naar [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) voor **Regio**. Laat het **eindpunt** leeg. \n",
|
||||
"Send Message": "Verstuur bericht",
|
||||
"Sends a message to an Amazon SNS topic.": "Stuurt een bericht naar een Amazon SNS topic.",
|
||||
"Topic": "Onderwerp",
|
||||
"Message": "bericht",
|
||||
"Select a topic": "Selecteer een onderwerp"
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"Access Key ID": "Chave ID de acesso",
|
||||
"Secret Access Key": "Chave de Acesso Secreta",
|
||||
"Region": "Região",
|
||||
"Endpoint": "Endpoint",
|
||||
"Default": "Padrão",
|
||||
"US East (N. Virginia) [us-east-1]": "Leste dos EUA (N. Virgínia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "Leste dos EUA (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "Oeste dos EUA (N. Califórnia) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "Oeste dos EUA (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "África (Cidade do Macaco) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Ásia Pacífico (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Ásia Pacífico (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Ásia Pacífico (Seul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Ásia Pacífico (Singapura) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Ásia Pacífico (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europa (Frankfurt) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europa (Irlanda) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europa (Londres) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europa (Milão) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europa (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Oriente Médio (Bahre) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "América do Sul (Sa├o Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europa (Espanha) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Ásia Pacífico (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Ásia Pacífico (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (Pequim) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "China (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europa (Zurich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Oriente Médio (AUE) [me-central-1]",
|
||||
"\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n": "U\nesta peça permite que você envie mensagens para tópicos da Amazon SNS.\n\nConsulte [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) para **Região**. Deixe o **Endpoint** em branco. \n",
|
||||
"Send Message": "Enviar mensagem",
|
||||
"Sends a message to an Amazon SNS topic.": "Envia uma mensagem para um tópico do Amazon SNS.",
|
||||
"Topic": "Tópico",
|
||||
"Message": "mensagem",
|
||||
"Select a topic": "Selecione um tópico"
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"Amazon SNS": "Amazon SNS",
|
||||
"Access Key ID": "ID ключа доступа",
|
||||
"Secret Access Key": "Ключ секретного доступа",
|
||||
"Region": "Регион",
|
||||
"Endpoint": "Endpoint",
|
||||
"Default": "По умолчанию",
|
||||
"US East (N. Virginia) [us-east-1]": "US East (N. Virginia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "US East (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "US West (N. California) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "US West (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "Africa (Cape Town) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Asia Pacific (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asia Pacific (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Asia Pacific (Seoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Asia Pacific (Singapore) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Asia Pacific (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Европа (Франкфурт) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Европа (Ирландия) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Европа (Лондон) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Европа (Милан) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europe (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Middle East (Bahrain) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "South America (São Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Европа (Испания) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Asia Pacific (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Asia Pacific (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (Beijing) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "Китай (Нинксия) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Европа (Цюрих) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Middle East (UAE) [me-central-1]",
|
||||
"\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n": "\nЭта часть позволяет вам отправлять сообщения на Amazon SNS темы.\n\nОбратитесь к [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) для **Области**. Оставьте **Endpoint** пустым. \n",
|
||||
"Send Message": "Отправить сообщение",
|
||||
"Sends a message to an Amazon SNS topic.": "Отправляет сообщение на Amazon SNS.",
|
||||
"Topic": "Тема",
|
||||
"Message": "Сообщение",
|
||||
"Select a topic": "Выберите тему"
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"Access Key ID": "Access Key ID",
|
||||
"Secret Access Key": "Secret Access Key",
|
||||
"Region": "Region",
|
||||
"Endpoint": "Endpoint",
|
||||
"Default": "Default",
|
||||
"US East (N. Virginia) [us-east-1]": "US East (N. Virginia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "US East (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "US West (N. California) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "US West (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "Africa (Cape Town) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Asia Pacific (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asia Pacific (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Asia Pacific (Seoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Asia Pacific (Singapore) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Asia Pacific (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europe (Frankfurt) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europe (Ireland) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europe (London) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europe (Milan) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europe (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Middle East (Bahrain) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "South America (São Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europe (Spain) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Asia Pacific (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Asia Pacific (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (Beijing) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "China (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europe (Zurich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Middle East (UAE) [me-central-1]",
|
||||
"\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n": "\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n",
|
||||
"Send Message": "Send Message",
|
||||
"Sends a message to an Amazon SNS topic.": "Sends a message to an Amazon SNS topic.",
|
||||
"Topic": "Topic",
|
||||
"Message": "Message",
|
||||
"Select a topic": "Select a topic"
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"Amazon SNS": "Amazon SNS",
|
||||
"Access Key ID": "Access Key ID",
|
||||
"Secret Access Key": "Secret Access Key",
|
||||
"Region": "Region",
|
||||
"Endpoint": "Endpoint",
|
||||
"Default": "Default",
|
||||
"US East (N. Virginia) [us-east-1]": "US East (N. Virginia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "US East (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "US West (N. California) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "US West (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "Africa (Cape Town) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Asia Pacific (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asia Pacific (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Asia Pacific (Seoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Asia Pacific (Singapore) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Asia Pacific (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europe (Frankfurt) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europe (Ireland) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europe (London) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europe (Milan) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europe (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Middle East (Bahrain) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "South America (São Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europe (Spain) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Asia Pacific (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Asia Pacific (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (Beijing) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "China (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europe (Zurich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Middle East (UAE) [me-central-1]",
|
||||
"\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n": "\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n",
|
||||
"Send Message": "Send Message",
|
||||
"Sends a message to an Amazon SNS topic.": "Sends a message to an Amazon SNS topic.",
|
||||
"Topic": "Topic",
|
||||
"Message": "Message",
|
||||
"Select a topic": "Select a topic"
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"Access Key ID": "Access Key ID",
|
||||
"Secret Access Key": "Secret Access Key",
|
||||
"Region": "Region",
|
||||
"Endpoint": "Endpoint",
|
||||
"Default": "Default",
|
||||
"US East (N. Virginia) [us-east-1]": "US East (N. Virginia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "US East (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "US West (N. California) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "US West (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "Africa (Cape Town) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Asia Pacific (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asia Pacific (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Asia Pacific (Seoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Asia Pacific (Singapore) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Asia Pacific (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europe (Frankfurt) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europe (Ireland) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europe (London) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europe (Milan) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europe (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Middle East (Bahrain) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "South America (São Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europe (Spain) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Asia Pacific (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Asia Pacific (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (Beijing) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "China (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europe (Zurich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Middle East (UAE) [me-central-1]",
|
||||
"\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n": "\nThis piece allows you to send messages to Amazon SNS topics.\n\nRefer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank. \n",
|
||||
"Send Message": "Send Message",
|
||||
"Sends a message to an Amazon SNS topic.": "Sends a message to an Amazon SNS topic.",
|
||||
"Topic": "Topic",
|
||||
"Message": "Message",
|
||||
"Select a topic": "Select a topic"
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
import { createPiece, PieceAuth, Property } from "@activepieces/pieces-framework";
|
||||
import { createSNS } from './lib/common';
|
||||
import { ListTopicsCommand } from '@aws-sdk/client-sns';
|
||||
import { sendMessageAction } from './lib/actions/send-message';
|
||||
|
||||
const description = `
|
||||
This piece allows you to send messages to Amazon SNS topics.
|
||||
|
||||
Refer to [this](https://docs.aws.amazon.com/general/latest/gr/sns.html) for **Region**. Leave the **Endpoint** blank.
|
||||
`;
|
||||
|
||||
export const amazonSnsAuth = PieceAuth.CustomAuth({
|
||||
description: description,
|
||||
props: {
|
||||
accessKeyId: Property.ShortText({
|
||||
displayName: 'Access Key ID',
|
||||
required: true,
|
||||
}),
|
||||
secretAccessKey: PieceAuth.SecretText({
|
||||
displayName: 'Secret Access Key',
|
||||
required: true,
|
||||
}),
|
||||
region: Property.StaticDropdown({
|
||||
displayName: 'Region',
|
||||
options: {
|
||||
options: [
|
||||
{
|
||||
label: 'Default',
|
||||
value: 'us-east-1',
|
||||
},
|
||||
{
|
||||
label: 'US East (N. Virginia) [us-east-1]',
|
||||
value: 'us-east-1',
|
||||
},
|
||||
{
|
||||
label: 'US East (Ohio) [us-east-2]',
|
||||
value: 'us-east-2',
|
||||
},
|
||||
{
|
||||
label: 'US West (N. California) [us-west-1]',
|
||||
value: 'us-west-1',
|
||||
},
|
||||
{
|
||||
label: 'US West (Oregon) [us-west-2]',
|
||||
value: 'us-west-2',
|
||||
},
|
||||
{
|
||||
label: 'Africa (Cape Town) [af-south-1]',
|
||||
value: 'af-south-1',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Hong Kong) [ap-east-1]',
|
||||
value: 'ap-east-1',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Mumbai) [ap-south-1]',
|
||||
value: 'ap-south-1',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Osaka-Local) [ap-northeast-3]',
|
||||
value: 'ap-northeast-3',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Seoul) [ap-northeast-2]',
|
||||
value: 'ap-northeast-2',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Singapore) [ap-southeast-1]',
|
||||
value: 'ap-southeast-1',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Sydney) [ap-southeast-2]',
|
||||
value: 'ap-southeast-2',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Tokyo) [ap-northeast-1]',
|
||||
value: 'ap-northeast-1',
|
||||
},
|
||||
{
|
||||
label: 'Canada (Central) [ca-central-1]',
|
||||
value: 'ca-central-1',
|
||||
},
|
||||
{
|
||||
label: 'Europe (Frankfurt) [eu-central-1]',
|
||||
value: 'eu-central-1',
|
||||
},
|
||||
{
|
||||
label: 'Europe (Ireland) [eu-west-1]',
|
||||
value: 'eu-west-1',
|
||||
},
|
||||
{
|
||||
label: 'Europe (London) [eu-west-2]',
|
||||
value: 'eu-west-2',
|
||||
},
|
||||
{
|
||||
label: 'Europe (Milan) [eu-south-1]',
|
||||
value: 'eu-south-1',
|
||||
},
|
||||
{
|
||||
label: 'Europe (Paris) [eu-west-3]',
|
||||
value: 'eu-west-3',
|
||||
},
|
||||
{
|
||||
label: 'Europe (Stockholm) [eu-north-1]',
|
||||
value: 'eu-north-1',
|
||||
},
|
||||
{
|
||||
label: 'Middle East (Bahrain) [me-south-1]',
|
||||
value: 'me-south-1',
|
||||
},
|
||||
{
|
||||
label: 'South America (São Paulo) [sa-east-1]',
|
||||
value: 'sa-east-1',
|
||||
},
|
||||
{
|
||||
label: 'Europe (Spain) [eu-south-2]',
|
||||
value: 'eu-south-2',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Hyderabad) [ap-south-2]',
|
||||
value: 'ap-south-2',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Jakarta) [ap-southeast-3]',
|
||||
value: 'ap-southeast-3',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Melbourne) [ap-southeast-4]',
|
||||
value: 'ap-southeast-4',
|
||||
},
|
||||
{
|
||||
label: 'China (Beijing) [cn-north-1]',
|
||||
value: 'cn-north-1',
|
||||
},
|
||||
{
|
||||
label: 'China (Ningxia) [cn-northwest-1]',
|
||||
value: 'cn-northwest-1',
|
||||
},
|
||||
{
|
||||
label: 'Europe (Zurich) [eu-central-2]',
|
||||
value: 'eu-central-2',
|
||||
},
|
||||
{
|
||||
label: 'Middle East (UAE) [me-central-1]',
|
||||
value: 'me-central-1',
|
||||
},
|
||||
],
|
||||
},
|
||||
required: true,
|
||||
}),
|
||||
endpoint: Property.ShortText({
|
||||
displayName: 'Endpoint',
|
||||
required: false,
|
||||
}),
|
||||
},
|
||||
validate: async ({ auth }) => {
|
||||
const sns = createSNS(auth);
|
||||
try {
|
||||
const command = new ListTopicsCommand({});
|
||||
await sns.send(command);
|
||||
return {
|
||||
valid: true,
|
||||
};
|
||||
} catch (e) {
|
||||
return {
|
||||
valid: false,
|
||||
error: (e as Error)?.message,
|
||||
};
|
||||
}
|
||||
},
|
||||
required: true,
|
||||
});
|
||||
|
||||
export const amazonSns = createPiece({
|
||||
displayName: "Amazon SNS",
|
||||
auth: amazonSnsAuth,
|
||||
minimumSupportedRelease: '0.36.1',
|
||||
logoUrl: "https://cdn.activepieces.com/pieces/amazon-sns.png",
|
||||
authors: ["coat"],
|
||||
actions: [sendMessageAction],
|
||||
triggers: [],
|
||||
});
|
||||
@@ -0,0 +1,57 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { createSNS } from '../common';
|
||||
import { amazonSnsAuth } from '../..';
|
||||
import { ListTopicsCommand, PublishCommand } from "@aws-sdk/client-sns";
|
||||
|
||||
export const sendMessageAction = createAction({
|
||||
auth: amazonSnsAuth,
|
||||
name: 'send-message',
|
||||
displayName: 'Send Message',
|
||||
description: 'Sends a message to an Amazon SNS topic.',
|
||||
props: {
|
||||
topic: Property.Dropdown({
|
||||
auth: amazonSnsAuth,
|
||||
displayName: 'Topic',
|
||||
description: 'Select a topic',
|
||||
required: true,
|
||||
refreshers: ['auth'],
|
||||
options: async ({ auth }) => {
|
||||
if (!auth) {
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'Please authenticate first',
|
||||
};
|
||||
}
|
||||
const sns = await createSNS(auth.props);
|
||||
const topics = await sns.send(new ListTopicsCommand({}));
|
||||
if (topics.Topics) {
|
||||
return {
|
||||
options: topics.Topics.map((topic) =>(
|
||||
{
|
||||
label: topic.TopicArn?.split(':').pop() as string,
|
||||
value: topic.TopicArn as string,
|
||||
}
|
||||
)),
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
options: [],
|
||||
placeholder: 'No topics found',
|
||||
};
|
||||
}
|
||||
},
|
||||
}),
|
||||
message: Property.LongText({
|
||||
displayName: 'Message',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
async run(context) {
|
||||
const { topic, message } = context.propsValue;
|
||||
const sns = createSNS(context.auth.props);
|
||||
const response = await sns.send(new PublishCommand({ TopicArn: topic, Message: message }));
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,20 @@
|
||||
import { isNil } from '@activepieces/shared';
|
||||
import { SNSClient } from '@aws-sdk/client-sns';
|
||||
|
||||
export function createSNS(auth: {
|
||||
accessKeyId: string;
|
||||
secretAccessKey: string;
|
||||
region: string | undefined;
|
||||
endpoint: string | undefined;
|
||||
}) {
|
||||
const sns = new SNSClient({
|
||||
credentials: {
|
||||
accessKeyId: auth.accessKeyId,
|
||||
secretAccessKey: auth.secretAccessKey,
|
||||
},
|
||||
region: auth.region,
|
||||
endpoint:
|
||||
auth.endpoint === '' || isNil(auth.endpoint) ? undefined : auth.endpoint,
|
||||
});
|
||||
return sns;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"extends": "../../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"noImplicitOverride": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noPropertyAccessFromIndexSignature": 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