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": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# pieces-pushover
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
|
||||
## Running lint
|
||||
|
||||
Run `nx lint pieces-pushover` to execute the lint via [ESLint](https://eslint.org/).
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "@activepieces/piece-pushover",
|
||||
"version": "0.1.10"
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "pieces-pushover",
|
||||
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "packages/pieces/community/pushover/src",
|
||||
"projectType": "library",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nx/js:tsc",
|
||||
"outputs": [
|
||||
"{options.outputPath}"
|
||||
],
|
||||
"options": {
|
||||
"outputPath": "dist/packages/pieces/community/pushover",
|
||||
"tsConfig": "packages/pieces/community/pushover/tsconfig.lib.json",
|
||||
"packageJson": "packages/pieces/community/pushover/package.json",
|
||||
"main": "packages/pieces/community/pushover/src/index.ts",
|
||||
"assets": [
|
||||
"packages/pieces/community/pushover/*.md",
|
||||
{
|
||||
"input": "packages/pieces/community/pushover/src/i18n",
|
||||
"output": "./src/i18n",
|
||||
"glob": "**/!(i18n.json)"
|
||||
}
|
||||
],
|
||||
"buildableProjectDepsInPackageJsonType": "dependencies",
|
||||
"updateBuildableProjectDepsInPackageJson": true
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build",
|
||||
"prebuild"
|
||||
]
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nx/eslint:lint",
|
||||
"outputs": [
|
||||
"{options.outputFile}"
|
||||
]
|
||||
},
|
||||
"prebuild": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"cwd": "packages/pieces/community/pushover",
|
||||
"command": "bun install --no-save --silent"
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"Pushover": "Pushover",
|
||||
"Simple push notification service": "Simple push notification service",
|
||||
"Api Token": "Api Token",
|
||||
"User Key": "User Key",
|
||||
"Pushover Api Token": "Pushover Api Token",
|
||||
"Pushover User Key": "Pushover User Key",
|
||||
"\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ": "\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ",
|
||||
"Send Notification": "Send Notification",
|
||||
"Send a notification to Pushover": "Send a notification to Pushover",
|
||||
"Title": "Title",
|
||||
"Message": "Message",
|
||||
"Enable HTML": "Enable HTML",
|
||||
"Priority": "Priority",
|
||||
"Retry": "Retry",
|
||||
"Expire": "Expire",
|
||||
"URL": "URL",
|
||||
"URL Title": "URL Title",
|
||||
"Timestamp": "Timestamp",
|
||||
"Device": "Device",
|
||||
"The title of the notification": "The title of the notification",
|
||||
"The message to send": "The message to send",
|
||||
"To enable HTML parsing": "To enable HTML parsing",
|
||||
"The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.": "The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.",
|
||||
"Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.": "Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.",
|
||||
"Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).": "Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).",
|
||||
"A supplementary URL to show with your message.": "A supplementary URL to show with your message.",
|
||||
"A title for the URL specified as the url input parameter, otherwise just the URL is shown.": "A title for the URL specified as the url input parameter, otherwise just the URL is shown.",
|
||||
"a Unix timestamp of a time to display instead of when our API received it.": "a Unix timestamp of a time to display instead of when our API received it.",
|
||||
"The name of one of your devices to send just to that device instead of all devices.": "The name of one of your devices to send just to that device instead of all devices."
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"Simple push notification service": "Einfacher Push-Benachrichtigungsdienst",
|
||||
"Api Token": "Api Token",
|
||||
"User Key": "Benutzerschlüssel",
|
||||
"Pushover Api Token": "Pushover Api Token",
|
||||
"Pushover User Key": "Pushover Benutzerschlüssel",
|
||||
"\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ": "\n Um das Api Token zu erhalten:\n\n 1. Melden Sie sich im Pushover an.\n 2. Klicken Sie auf Ihre Anwendung oder auf Anwendungs-/API-Token\n 3. Kopieren Sie die API-Token/Schlüssel.\n\n Um den Benutzerschlüssel zu erhalten:\n 1. Anmelden bei Pushover\n 2. Kopieren Sie Ihren Benutzerschlüssel\n\n Notiz, wenn Sie die Nachricht an Ihre Gruppe senden möchten Sie sollten einen Gruppenschlüssel anstelle des Benutzerschlüssels\n angeben ",
|
||||
"Send Notification": "Benachrichtigung senden",
|
||||
"Send a notification to Pushover": "Benachrichtigung an Pushover senden",
|
||||
"Title": "Titel",
|
||||
"Message": "Nachricht",
|
||||
"Enable HTML": "HTML aktivieren",
|
||||
"Priority": "Priorität",
|
||||
"Retry": "Wiederholen",
|
||||
"Expire": "Ablaufen",
|
||||
"URL": "URL",
|
||||
"URL Title": "URL-Titel",
|
||||
"Timestamp": "Zeitstempel",
|
||||
"Device": "Gerät",
|
||||
"The title of the notification": "Der Titel der Benachrichtigung",
|
||||
"The message to send": "Die Nachricht zum Senden",
|
||||
"To enable HTML parsing": "Um HTML-Parsing zu aktivieren",
|
||||
"The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.": "Die Priorität der Benachrichtigung (-2 bis 2) -2 ist die niedrigste Priorität. Wenn Sie auf 2 gesetzt sind, sollten Sie auch Wiederholung und Verfallsdatum angeben.",
|
||||
"Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.": "Funktioniert nur, wenn die Priorität auf 2 gesetzt ist. Gibt an, wie oft (in Sekunden) die Pushover-Server die gleiche Benachrichtigung an den Benutzer senden.",
|
||||
"Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).": "Funktioniert nur, wenn die Priorität auf 2 gesetzt ist. Gibt an, wie viele Sekunden Ihre Benachrichtigung weiter versucht wird (jede Wiederholungssekunde).",
|
||||
"A supplementary URL to show with your message.": "Eine zusätzliche URL, die mit Ihrer Nachricht angezeigt wird.",
|
||||
"A title for the URL specified as the url input parameter, otherwise just the URL is shown.": "Ein Titel für die URL, die als Parameter für die URL-Eingabe angegeben ist, ansonsten wird nur die URL angezeigt.",
|
||||
"a Unix timestamp of a time to display instead of when our API received it.": "ein Unix-Zeitstempel einer anzuzeigenden Zeit, anstatt wenn unsere API sie erhalten hat.",
|
||||
"The name of one of your devices to send just to that device instead of all devices.": "Der Name eines Ihrer Geräte, das nur auf dieses Gerät gesendet werden soll, anstatt auf allen Geräten."
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"Simple push notification service": "Servicio simple de notificaciones push",
|
||||
"Api Token": "Api Token",
|
||||
"User Key": "Clave de usuario",
|
||||
"Pushover Api Token": "Pushover Api Token",
|
||||
"Pushover User Key": "Clave de usuario Pushover",
|
||||
"\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ": "\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ",
|
||||
"Send Notification": "Enviar notificación",
|
||||
"Send a notification to Pushover": "Enviar una notificación a Pushover",
|
||||
"Title": "Título",
|
||||
"Message": "Mensaje",
|
||||
"Enable HTML": "Habilitar HTML",
|
||||
"Priority": "Prioridad",
|
||||
"Retry": "Reintentar",
|
||||
"Expire": "Caduca",
|
||||
"URL": "URL",
|
||||
"URL Title": "Título de URL",
|
||||
"Timestamp": "Timestamp",
|
||||
"Device": "Dispositivo",
|
||||
"The title of the notification": "El título de la notificación",
|
||||
"The message to send": "El mensaje a enviar",
|
||||
"To enable HTML parsing": "Para habilitar el análisis HTML",
|
||||
"The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.": "La prioridad de la notificación (-2 a 2). -2 es la prioridad más baja. Si se establece en 2, también debe especificar Retry y Expire.",
|
||||
"Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.": "Funciona sólo si la prioridad está establecida en 2. Especifica la frecuencia (en segundos) que los servidores de Pushover enviarán la misma notificación al usuario.",
|
||||
"Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).": "Funciona sólo si la prioridad está establecida en 2. Especifica cuántos segundos seguirá siendo reprobada su notificación (cada reintento segundo).",
|
||||
"A supplementary URL to show with your message.": "Una URL complementaria para mostrar con tu mensaje.",
|
||||
"A title for the URL specified as the url input parameter, otherwise just the URL is shown.": "Un título para la URL especificada como parámetro de entrada de url, de lo contrario sólo se muestra la URL.",
|
||||
"a Unix timestamp of a time to display instead of when our API received it.": "una marca de tiempo Unix de un tiempo para mostrar en lugar de cuando nuestra API la recibió.",
|
||||
"The name of one of your devices to send just to that device instead of all devices.": "El nombre de uno de sus dispositivos para enviar sólo a ese dispositivo en lugar de todos los dispositivos."
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"Simple push notification service": "Service de notification push simple",
|
||||
"Api Token": "Api Token",
|
||||
"User Key": "Clé d'utilisateur",
|
||||
"Pushover Api Token": "Jeton d'Api Pushover",
|
||||
"Pushover User Key": "Clé d'utilisateur de Pushover",
|
||||
"\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ": "\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ",
|
||||
"Send Notification": "Envoyer une notification",
|
||||
"Send a notification to Pushover": "Envoyer une notification à Pushover",
|
||||
"Title": "Titre de la page",
|
||||
"Message": "Message",
|
||||
"Enable HTML": "Activer le HTML",
|
||||
"Priority": "Priorité",
|
||||
"Retry": "Réessayer",
|
||||
"Expire": "Expire",
|
||||
"URL": "URL",
|
||||
"URL Title": "Titre de l'URL",
|
||||
"Timestamp": "Horodatage",
|
||||
"Device": "Appareil",
|
||||
"The title of the notification": "Le titre de la notification",
|
||||
"The message to send": "Le message à envoyer",
|
||||
"To enable HTML parsing": "Pour activer l'analyse HTML",
|
||||
"The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.": "La priorité de la notification (-2 à 2). -2 est la priorité la plus basse. Si elle est définie à 2, vous devez également spécifier Retry and Expire.",
|
||||
"Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.": "Ne fonctionne que si la priorité est définie à 2. Spécifie la fréquence (en secondes) que les serveurs Pushover enverront la même notification à l'utilisateur.",
|
||||
"Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).": "Ne fonctionne que si la priorité est définie à 2. Spécifie combien de secondes votre notification va continuer à être ré-essayée (chaque seconde de réessai).",
|
||||
"A supplementary URL to show with your message.": "Une URL supplémentaire à afficher avec votre message.",
|
||||
"A title for the URL specified as the url input parameter, otherwise just the URL is shown.": "Un titre pour l'URL spécifiée en tant que paramètre d'entrée de l'URL, sinon juste l'URL est affichée.",
|
||||
"a Unix timestamp of a time to display instead of when our API received it.": "un horodatage Unix d'une heure à afficher au lieu de quand notre API l'a reçu.",
|
||||
"The name of one of your devices to send just to that device instead of all devices.": "Le nom de l'un de vos périphériques à envoyer uniquement à cet appareil au lieu de tous les périphériques."
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"Pushover": "Pushover",
|
||||
"Simple push notification service": "Simple push notification service",
|
||||
"Api Token": "Api Token",
|
||||
"User Key": "User Key",
|
||||
"Pushover Api Token": "Pushover Api Token",
|
||||
"Pushover User Key": "Pushover User Key",
|
||||
"\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ": "\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ",
|
||||
"Send Notification": "Send Notification",
|
||||
"Send a notification to Pushover": "Send a notification to Pushover",
|
||||
"Title": "Title",
|
||||
"Message": "Message",
|
||||
"Enable HTML": "Enable HTML",
|
||||
"Priority": "Priority",
|
||||
"Retry": "Retry",
|
||||
"Expire": "Expire",
|
||||
"URL": "URL",
|
||||
"URL Title": "URL Title",
|
||||
"Timestamp": "Timestamp",
|
||||
"Device": "Device",
|
||||
"The title of the notification": "The title of the notification",
|
||||
"The message to send": "The message to send",
|
||||
"To enable HTML parsing": "To enable HTML parsing",
|
||||
"The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.": "The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.",
|
||||
"Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.": "Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.",
|
||||
"Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).": "Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).",
|
||||
"A supplementary URL to show with your message.": "A supplementary URL to show with your message.",
|
||||
"A title for the URL specified as the url input parameter, otherwise just the URL is shown.": "A title for the URL specified as the url input parameter, otherwise just the URL is shown.",
|
||||
"a Unix timestamp of a time to display instead of when our API received it.": "a Unix timestamp of a time to display instead of when our API received it.",
|
||||
"The name of one of your devices to send just to that device instead of all devices.": "The name of one of your devices to send just to that device instead of all devices."
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"Pushover": "Pushover",
|
||||
"Simple push notification service": "Simple push notification service",
|
||||
"Api Token": "Api Token",
|
||||
"User Key": "User Key",
|
||||
"Pushover Api Token": "Pushover Api Token",
|
||||
"Pushover User Key": "Pushover User Key",
|
||||
"\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ": "\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ",
|
||||
"Send Notification": "Send Notification",
|
||||
"Send a notification to Pushover": "Send a notification to Pushover",
|
||||
"Title": "Title",
|
||||
"Message": "Message",
|
||||
"Enable HTML": "Enable HTML",
|
||||
"Priority": "Priority",
|
||||
"Retry": "Retry",
|
||||
"Expire": "Expire",
|
||||
"URL": "URL",
|
||||
"URL Title": "URL Title",
|
||||
"Timestamp": "Timestamp",
|
||||
"Device": "Device",
|
||||
"The title of the notification": "The title of the notification",
|
||||
"The message to send": "The message to send",
|
||||
"To enable HTML parsing": "To enable HTML parsing",
|
||||
"The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.": "The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.",
|
||||
"Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.": "Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.",
|
||||
"Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).": "Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).",
|
||||
"A supplementary URL to show with your message.": "A supplementary URL to show with your message.",
|
||||
"A title for the URL specified as the url input parameter, otherwise just the URL is shown.": "A title for the URL specified as the url input parameter, otherwise just the URL is shown.",
|
||||
"a Unix timestamp of a time to display instead of when our API received it.": "a Unix timestamp of a time to display instead of when our API received it.",
|
||||
"The name of one of your devices to send just to that device instead of all devices.": "The name of one of your devices to send just to that device instead of all devices."
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"Simple push notification service": "シンプルなプッシュ通知サービス",
|
||||
"Api Token": "Api Token",
|
||||
"User Key": "ユーザーキー",
|
||||
"Pushover Api Token": "だまされやすいAPIトークン",
|
||||
"Pushover User Key": "だまされたユーザーキー",
|
||||
"\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ": "\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ",
|
||||
"Send Notification": "通知を送信",
|
||||
"Send a notification to Pushover": "Pushover に通知を送信",
|
||||
"Title": "タイトル",
|
||||
"Message": "メッセージ",
|
||||
"Enable HTML": "HTMLを有効にする",
|
||||
"Priority": "優先度",
|
||||
"Retry": "再試行する",
|
||||
"Expire": "有効期限",
|
||||
"URL": "URL",
|
||||
"URL Title": "URLタイトル",
|
||||
"Timestamp": "タイムスタンプ",
|
||||
"Device": "デバイス",
|
||||
"The title of the notification": "通知のタイトル",
|
||||
"The message to send": "送信するメッセージ",
|
||||
"To enable HTML parsing": "HTML 解析を有効にするには",
|
||||
"The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.": "通知の優先度(-2から2)。-2は最も低い優先度です。2に設定されている場合は、再試行と有効期限も指定する必要があります。",
|
||||
"Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.": "優先度が2に設定されている場合にのみ動作します。Pushoverサーバーがユーザーに同じ通知を送信する頻度を指定します。",
|
||||
"Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).": "優先度が2に設定されている場合にのみ動作します。通知を再試行し続ける秒数を指定します (再試行ごとに秒数)。",
|
||||
"A supplementary URL to show with your message.": "メッセージを表示するための補足URL。",
|
||||
"A title for the URL specified as the url input parameter, otherwise just the URL is shown.": "URL入力パラメータとして指定されたURLのタイトル、そうでなければURLだけが表示されます。",
|
||||
"a Unix timestamp of a time to display instead of when our API received it.": "APIがそれを受け取ったときではなく、表示する時間のUnixタイムスタンプです。",
|
||||
"The name of one of your devices to send just to that device instead of all devices.": "すべてのデバイスではなく、そのデバイスに送信するデバイスの名前です。"
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"Simple push notification service": "Eenvoudige push-service",
|
||||
"Api Token": "Api Token",
|
||||
"User Key": "Gebruiker Sleutel",
|
||||
"Pushover Api Token": "Pushover Api Token",
|
||||
"Pushover User Key": "Pushover Gebruiker Sleutel",
|
||||
"\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ": "\n Om de api token te krijgen:\n\n 1. Log in op Pushover.\n 2. Klik op uw Applicatie of Aanmaken van een Applicatie/API Token\n 3. Kopieer de API Token/Key.\n\n Om de gebruikerssleutel te verkrijgen:\n 1. Log in op Pushover\n 2. Kopieer uw gebruikerssleutel\n\n Opmerking als u het bericht naar uw groep wilt versturen. u moet een groepssleutel opgeven in plaats van de gebruikerssleutel\n ",
|
||||
"Send Notification": "Stuur notificatie",
|
||||
"Send a notification to Pushover": "Stuur een notificatie naar Pushover",
|
||||
"Title": "Aanspreektitel",
|
||||
"Message": "bericht",
|
||||
"Enable HTML": "HTML inschakelen",
|
||||
"Priority": "Prioriteit",
|
||||
"Retry": "Opnieuw",
|
||||
"Expire": "Vervalt",
|
||||
"URL": "URL",
|
||||
"URL Title": "URL titel",
|
||||
"Timestamp": "Artikeldatering",
|
||||
"Device": "Apparaat",
|
||||
"The title of the notification": "De titel van de melding",
|
||||
"The message to send": "Het te verzenden bericht",
|
||||
"To enable HTML parsing": "Om HTML-verwerking in te schakelen",
|
||||
"The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.": "De prioriteit van de melding (-2 op 2). -2 is de laagste prioriteit. Indien ingesteld op 2, moet u ook \"Opnieuw proberen\" en \"Verloop\" instellen.",
|
||||
"Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.": "Werkt alleen als prioriteit is ingesteld op 2. Geeft aan hoe vaak (in seconden) de Pushover servers dezelfde melding naar de gebruiker sturen.",
|
||||
"Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).": "Werkt alleen als de prioriteit is ingesteld op 2. Geeft aan hoeveel seconden uw melding opnieuw zal worden geprobeerd (elke keer opnieuw proberen seconden).",
|
||||
"A supplementary URL to show with your message.": "Een aanvullende URL om te laten zien met uw bericht.",
|
||||
"A title for the URL specified as the url input parameter, otherwise just the URL is shown.": "Een titel voor de URL gespecificeerd als de URL invoerparameter, anders wordt alleen de URL getoond.",
|
||||
"a Unix timestamp of a time to display instead of when our API received it.": "een Unix tijdstempel van een tijd in plaats van wanneer onze API deze heeft ontvangen.",
|
||||
"The name of one of your devices to send just to that device instead of all devices.": "De naam van een van uw apparaten om naar dat apparaat te verzenden in plaats van naar alle apparaten."
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"Simple push notification service": "Serviço de notificação simples push",
|
||||
"Api Token": "Api Token",
|
||||
"User Key": "Chave do Usuário",
|
||||
"Pushover Api Token": "Token Api Pushover",
|
||||
"Pushover User Key": "Chave Usuário Pushover",
|
||||
"\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ": "\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ",
|
||||
"Send Notification": "Enviar Notificação",
|
||||
"Send a notification to Pushover": "Enviar uma notificação para Pushover",
|
||||
"Title": "Título",
|
||||
"Message": "mensagem",
|
||||
"Enable HTML": "Habilitar HTML",
|
||||
"Priority": "Prioridade",
|
||||
"Retry": "Repetir",
|
||||
"Expire": "Expirar",
|
||||
"URL": "URL:",
|
||||
"URL Title": "Título da URL",
|
||||
"Timestamp": "Timestamp",
|
||||
"Device": "Dispositivo",
|
||||
"The title of the notification": "O título da notificação",
|
||||
"The message to send": "A mensagem a enviar",
|
||||
"To enable HTML parsing": "Para habilitar a análise HTML",
|
||||
"The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.": "A prioridade da notificação (-2 a 2). -2 é a prioridade mais baixa. Se definida como 2, você também deve especificar Repetir e Expirar.",
|
||||
"Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.": "Funciona somente se a prioridade estiver definida para 2. Especifica quantas vezes (em segundos) os servidores Pushover enviarão a mesma notificação ao usuário.",
|
||||
"Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).": "Funciona somente se a prioridade estiver definida para 2. Especifica por quantos segundos sua notificação continuará a ser repetida (a cada repetição de segundos).",
|
||||
"A supplementary URL to show with your message.": "Um URL complementar para mostrar com a sua mensagem.",
|
||||
"A title for the URL specified as the url input parameter, otherwise just the URL is shown.": "Um título para a URL especificada como o parâmetro de entrada URL, caso contrário apenas a URL é mostrada.",
|
||||
"a Unix timestamp of a time to display instead of when our API received it.": "um horário Unix para exibir ao invés de quando nossa API a recebeu.",
|
||||
"The name of one of your devices to send just to that device instead of all devices.": "O nome de um dos seus dispositivos para enviar apenas para esse dispositivo em vez de todos os dispositivos."
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"Pushover": "Pushover",
|
||||
"Simple push notification service": "Простая служба push-уведомлений",
|
||||
"Api Token": "Api Token",
|
||||
"User Key": "Ключ пользователя",
|
||||
"Pushover Api Token": "Pushover Api жетон",
|
||||
"Pushover User Key": "Pushover ключ пользователя",
|
||||
"\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ": "\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ",
|
||||
"Send Notification": "Отправить уведомление",
|
||||
"Send a notification to Pushover": "Отправить уведомление Pushover",
|
||||
"Title": "Заголовок",
|
||||
"Message": "Сообщение",
|
||||
"Enable HTML": "Включить HTML",
|
||||
"Priority": "Приоритет",
|
||||
"Retry": "Повторить",
|
||||
"Expire": "Истекает",
|
||||
"URL": "URL",
|
||||
"URL Title": "Заголовок URL",
|
||||
"Timestamp": "Отметка времени",
|
||||
"Device": "Устройство",
|
||||
"The title of the notification": "Заголовок уведомления",
|
||||
"The message to send": "Сообщение для отправки",
|
||||
"To enable HTML parsing": "Чтобы включить разбор HTML",
|
||||
"The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.": "Приоритет уведомления (-2 to 2). -2 является наименьшим приоритетом. Если установлено значение 2, вы также должны указать Retry and Expire.",
|
||||
"Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.": "Работает только если приоритет установлен в 2. Указывает, как часто (в секундах) серверы Pushover будут отправлять одно и то же уведомление пользователю.",
|
||||
"Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).": "Работает только в том случае, если приоритет установлен в 2. Указывает, сколько секунд ваше уведомление будет повторять (каждое повторение секунды).",
|
||||
"A supplementary URL to show with your message.": "Дополнительный URL-адрес для отображения с вашим сообщением.",
|
||||
"A title for the URL specified as the url input parameter, otherwise just the URL is shown.": "Заголовок для URL, указанный в качестве входного параметра url, в противном случае отображается только URL.",
|
||||
"a Unix timestamp of a time to display instead of when our API received it.": "метка времени Unix для отображения вместо того, чтобы отображать время, когда API получил его.",
|
||||
"The name of one of your devices to send just to that device instead of all devices.": "Имя одного из ваших устройств для отправки только на это устройство вместо всех устройств."
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"Simple push notification service": "Simple push notification service",
|
||||
"Api Token": "Api Token",
|
||||
"User Key": "User Key",
|
||||
"Pushover Api Token": "Pushover Api Token",
|
||||
"Pushover User Key": "Pushover User Key",
|
||||
"\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ": "\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ",
|
||||
"Send Notification": "Send Notification",
|
||||
"Send a notification to Pushover": "Send a notification to Pushover",
|
||||
"Title": "Title",
|
||||
"Message": "Message",
|
||||
"Enable HTML": "Enable HTML",
|
||||
"Priority": "Priority",
|
||||
"Retry": "Retry",
|
||||
"Expire": "Expire",
|
||||
"URL": "URL",
|
||||
"URL Title": "URL Title",
|
||||
"Timestamp": "Timestamp",
|
||||
"Device": "Device",
|
||||
"The title of the notification": "The title of the notification",
|
||||
"The message to send": "The message to send",
|
||||
"To enable HTML parsing": "To enable HTML parsing",
|
||||
"The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.": "The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.",
|
||||
"Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.": "Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.",
|
||||
"Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).": "Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).",
|
||||
"A supplementary URL to show with your message.": "A supplementary URL to show with your message.",
|
||||
"A title for the URL specified as the url input parameter, otherwise just the URL is shown.": "A title for the URL specified as the url input parameter, otherwise just the URL is shown.",
|
||||
"a Unix timestamp of a time to display instead of when our API received it.": "a Unix timestamp of a time to display instead of when our API received it.",
|
||||
"The name of one of your devices to send just to that device instead of all devices.": "The name of one of your devices to send just to that device instead of all devices."
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"Pushover": "Pushover",
|
||||
"Simple push notification service": "Simple push notification service",
|
||||
"Api Token": "Api Token",
|
||||
"User Key": "User Key",
|
||||
"Pushover Api Token": "Pushover Api Token",
|
||||
"Pushover User Key": "Pushover User Key",
|
||||
"\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ": "\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ",
|
||||
"Send Notification": "Send Notification",
|
||||
"Send a notification to Pushover": "Send a notification to Pushover",
|
||||
"Title": "Title",
|
||||
"Message": "Message",
|
||||
"Enable HTML": "Enable HTML",
|
||||
"Priority": "Priority",
|
||||
"Retry": "Retry",
|
||||
"Expire": "Expire",
|
||||
"URL": "URL",
|
||||
"URL Title": "URL Title",
|
||||
"Timestamp": "Timestamp",
|
||||
"Device": "Device",
|
||||
"The title of the notification": "The title of the notification",
|
||||
"The message to send": "The message to send",
|
||||
"To enable HTML parsing": "To enable HTML parsing",
|
||||
"The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.": "The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.",
|
||||
"Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.": "Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.",
|
||||
"Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).": "Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).",
|
||||
"A supplementary URL to show with your message.": "A supplementary URL to show with your message.",
|
||||
"A title for the URL specified as the url input parameter, otherwise just the URL is shown.": "A title for the URL specified as the url input parameter, otherwise just the URL is shown.",
|
||||
"a Unix timestamp of a time to display instead of when our API received it.": "a Unix timestamp of a time to display instead of when our API received it.",
|
||||
"The name of one of your devices to send just to that device instead of all devices.": "The name of one of your devices to send just to that device instead of all devices."
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"Simple push notification service": "Simple push notification service",
|
||||
"Api Token": "Api Token",
|
||||
"User Key": "User Key",
|
||||
"Pushover Api Token": "Pushover Api Token",
|
||||
"Pushover User Key": "Pushover User Key",
|
||||
"\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ": "\n To obtain the api token:\n\n 1. Log in to Pushover.\n 2. Click on your Application or on Create an Application/API Token\n 3. Copy the API Token/Key.\n\n To obtain the user key:\n 1. Log in to Pushover\n 2. Copy your Your User Key\n\n Note if you want to send the message to your group, you should specify a group key instead of the user key\n ",
|
||||
"Send Notification": "Send Notification",
|
||||
"Send a notification to Pushover": "Send a notification to Pushover",
|
||||
"Title": "标题",
|
||||
"Message": "Message",
|
||||
"Enable HTML": "Enable HTML",
|
||||
"Priority": "Priority",
|
||||
"Retry": "重试",
|
||||
"Expire": "Expire",
|
||||
"URL": "URL",
|
||||
"URL Title": "URL Title",
|
||||
"Timestamp": "Timestamp",
|
||||
"Device": "Device",
|
||||
"The title of the notification": "The title of the notification",
|
||||
"The message to send": "The message to send",
|
||||
"To enable HTML parsing": "To enable HTML parsing",
|
||||
"The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.": "The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.",
|
||||
"Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.": "Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.",
|
||||
"Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).": "Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).",
|
||||
"A supplementary URL to show with your message.": "A supplementary URL to show with your message.",
|
||||
"A title for the URL specified as the url input parameter, otherwise just the URL is shown.": "A title for the URL specified as the url input parameter, otherwise just the URL is shown.",
|
||||
"a Unix timestamp of a time to display instead of when our API received it.": "a Unix timestamp of a time to display instead of when our API received it.",
|
||||
"The name of one of your devices to send just to that device instead of all devices.": "The name of one of your devices to send just to that device instead of all devices."
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
import { PieceAuth, createPiece } from '@activepieces/pieces-framework';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { sendNotification } from './lib/actions/send-notification';
|
||||
|
||||
export const pushoverAuth = PieceAuth.CustomAuth({
|
||||
description: `
|
||||
To obtain the api token:
|
||||
|
||||
1. Log in to Pushover.
|
||||
2. Click on your Application or on Create an Application/API Token
|
||||
3. Copy the API Token/Key.
|
||||
|
||||
To obtain the user key:
|
||||
1. Log in to Pushover
|
||||
2. Copy your Your User Key
|
||||
|
||||
Note if you want to send the message to your group, you should specify a group key instead of the user key
|
||||
`,
|
||||
props: {
|
||||
api_token: PieceAuth.SecretText({
|
||||
displayName: 'Api Token',
|
||||
description: 'Pushover Api Token',
|
||||
required: true,
|
||||
}),
|
||||
user_key: PieceAuth.SecretText({
|
||||
displayName: 'User Key',
|
||||
description: 'Pushover User Key',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
required: true,
|
||||
});
|
||||
|
||||
export const pushover = createPiece({
|
||||
displayName: 'Pushover',
|
||||
description: 'Simple push notification service',
|
||||
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/pushover.png',
|
||||
categories: [PieceCategory.COMMUNICATION],
|
||||
minimumSupportedRelease: '0.30.0',
|
||||
authors: ["MyWay","Vitalini","kishanprmr","khaledmashaly","abuaboud"],
|
||||
auth: pushoverAuth,
|
||||
actions: [sendNotification],
|
||||
triggers: [],
|
||||
});
|
||||
@@ -0,0 +1,103 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
|
||||
import { pushoverAuth } from '../..';
|
||||
|
||||
export const sendNotification = createAction({
|
||||
auth: pushoverAuth,
|
||||
name: 'send_notification',
|
||||
displayName: 'Send Notification',
|
||||
description: 'Send a notification to Pushover',
|
||||
props: {
|
||||
title: Property.ShortText({
|
||||
displayName: 'Title',
|
||||
description: 'The title of the notification',
|
||||
required: false,
|
||||
}),
|
||||
message: Property.LongText({
|
||||
displayName: 'Message',
|
||||
description: 'The message to send',
|
||||
required: true,
|
||||
}),
|
||||
html: Property.Checkbox({
|
||||
displayName: 'Enable HTML',
|
||||
description: 'To enable HTML parsing',
|
||||
required: false,
|
||||
}),
|
||||
priority: Property.Number({
|
||||
displayName: 'Priority',
|
||||
description:
|
||||
'The priority of the notification (-2 to 2). -2 is lowest priority. If set to 2, you should also specify Retry and Expire.',
|
||||
required: false,
|
||||
}),
|
||||
retry: Property.Number({
|
||||
displayName: 'Retry',
|
||||
description:
|
||||
'Works only if priority is set to 2. Specifies how often (in seconds) the Pushover servers will send the same notification to the user.',
|
||||
required: false,
|
||||
}),
|
||||
expire: Property.Number({
|
||||
displayName: 'Expire',
|
||||
description:
|
||||
'Works only if priority is set to 2. Specifies how many seconds your notification will continue to be retried for (every retry seconds).',
|
||||
required: false,
|
||||
}),
|
||||
url: Property.ShortText({
|
||||
displayName: 'URL',
|
||||
description: 'A supplementary URL to show with your message.',
|
||||
required: false,
|
||||
}),
|
||||
url_title: Property.ShortText({
|
||||
displayName: 'URL Title',
|
||||
description:
|
||||
'A title for the URL specified as the url input parameter, otherwise just the URL is shown.',
|
||||
required: false,
|
||||
}),
|
||||
timestamp: Property.ShortText({
|
||||
displayName: 'Timestamp',
|
||||
description:
|
||||
'a Unix timestamp of a time to display instead of when our API received it.',
|
||||
required: false,
|
||||
}),
|
||||
device: Property.ShortText({
|
||||
displayName: 'Device',
|
||||
description:
|
||||
'The name of one of your devices to send just to that device instead of all devices.',
|
||||
required: false,
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const baseUrl = 'https://api.pushover.net/1/messages.json';
|
||||
const apiToken = auth.props.api_token;
|
||||
const userKey = auth.props.user_key;
|
||||
|
||||
const title = propsValue.title;
|
||||
const message = propsValue.message;
|
||||
const html = propsValue.html;
|
||||
const priority = propsValue.priority;
|
||||
const url = propsValue.url;
|
||||
const url_title = propsValue.url_title;
|
||||
const timestamp = propsValue.timestamp;
|
||||
const device = propsValue.device;
|
||||
const retry = propsValue.retry;
|
||||
const expire = propsValue.expire;
|
||||
|
||||
return await httpClient.sendRequest({
|
||||
method: HttpMethod.POST,
|
||||
url: baseUrl,
|
||||
body: {
|
||||
token: apiToken,
|
||||
user: userKey,
|
||||
title,
|
||||
message,
|
||||
html: html ? 1 : 0,
|
||||
url,
|
||||
url_title,
|
||||
timestamp,
|
||||
device,
|
||||
...(priority && { priority: +priority }),
|
||||
...(retry && { retry: +retry }),
|
||||
...(expire && { expire: +expire }),
|
||||
},
|
||||
});
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"extends": "../../../../tsconfig.base.json",
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
}
|
||||
],
|
||||
"compilerOptions": {
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"outDir": "../../../../dist/out-tsc",
|
||||
"declaration": true,
|
||||
"types": ["node"]
|
||||
},
|
||||
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user