@activepieces/piece-line 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +30 -11
- package/src/i18n/ca.json +28 -0
- package/src/i18n/de.json +28 -0
- package/src/i18n/es.json +28 -0
- package/src/i18n/fr.json +28 -0
- package/src/i18n/hi.json +28 -0
- package/src/i18n/id.json +28 -0
- package/src/i18n/ja.json +28 -0
- package/src/i18n/nl.json +28 -0
- package/src/i18n/pt.json +28 -0
- package/src/i18n/ru.json +28 -0
- package/src/i18n/translation.json +28 -0
- package/src/i18n/vi.json +28 -0
- package/src/i18n/zh.json +28 -0
- package/src/index.js +6 -3
- package/src/index.js.map +1 -1
- package/src/lib/actions/push-message.js +1 -1
- package/src/lib/actions/push-message.js.map +1 -1
- package/src/lib/trigger/new-message.d.ts +3 -3
- package/src/lib/trigger/new-message.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,19 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-line",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
5
|
+
"@ai-sdk/anthropic": "1.2.12",
|
|
6
|
+
"@ai-sdk/google": "1.2.19",
|
|
7
|
+
"@ai-sdk/openai": "1.3.22",
|
|
8
|
+
"@ai-sdk/replicate": "0.2.8",
|
|
9
|
+
"@sinclair/typebox": "0.34.11",
|
|
10
|
+
"ai": "4.3.16",
|
|
11
|
+
"axios": "1.8.3",
|
|
12
|
+
"axios-retry": "4.4.1",
|
|
13
|
+
"deepmerge-ts": "7.1.0",
|
|
14
|
+
"fast-glob": "3.3.3",
|
|
15
|
+
"mime-types": "2.1.35",
|
|
16
|
+
"nanoid": "3.3.8",
|
|
11
17
|
"semver": "7.6.0",
|
|
12
|
-
"
|
|
13
|
-
"@activepieces/pieces-
|
|
14
|
-
"@activepieces/
|
|
15
|
-
"
|
|
18
|
+
"zod": "3.25.76",
|
|
19
|
+
"@activepieces/pieces-common": "0.6.4",
|
|
20
|
+
"@activepieces/pieces-framework": "0.18.3",
|
|
21
|
+
"@activepieces/shared": "0.18.0",
|
|
22
|
+
"tslib": "2.8.1"
|
|
16
23
|
},
|
|
24
|
+
"overrides": {
|
|
25
|
+
"@tryfabric/martian": {
|
|
26
|
+
"@notionhq/client": "$@notionhq/client"
|
|
27
|
+
},
|
|
28
|
+
"vite": {
|
|
29
|
+
"rollup": "npm:@rollup/wasm-node"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"resolutions": {
|
|
33
|
+
"rollup": "npm:@rollup/wasm-node"
|
|
34
|
+
},
|
|
35
|
+
"types": "./src/index.d.ts",
|
|
17
36
|
"main": "./src/index.js",
|
|
18
37
|
"type": "commonjs"
|
|
19
38
|
}
|
package/src/i18n/ca.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Line Bot": "Line Bot",
|
|
3
|
+
"Build chatbots for LINE": "Build chatbots for LINE",
|
|
4
|
+
"Push Message": "Push Message",
|
|
5
|
+
"Custom API Call": "Custom API Call",
|
|
6
|
+
"Push message to the line account": "Push message to the line account",
|
|
7
|
+
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
8
|
+
"User Id": "User Id",
|
|
9
|
+
"Text": "Text",
|
|
10
|
+
"Method": "Method",
|
|
11
|
+
"Headers": "Headers",
|
|
12
|
+
"Query Parameters": "Query Parameters",
|
|
13
|
+
"Body": "Body",
|
|
14
|
+
"No Error on Failure": "No Error on Failure",
|
|
15
|
+
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
16
|
+
"The user id can be obtained from the webhook payload": "The user id can be obtained from the webhook payload",
|
|
17
|
+
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
18
|
+
"GET": "GET",
|
|
19
|
+
"POST": "POST",
|
|
20
|
+
"PATCH": "PATCH",
|
|
21
|
+
"PUT": "PUT",
|
|
22
|
+
"DELETE": "DELETE",
|
|
23
|
+
"HEAD": "HEAD",
|
|
24
|
+
"New Message": "New Message",
|
|
25
|
+
"Triggers when a new message is received": "Triggers when a new message is received",
|
|
26
|
+
"Markdown": "Markdown",
|
|
27
|
+
"\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n"
|
|
28
|
+
}
|
package/src/i18n/de.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Line Bot": "Line Bot",
|
|
3
|
+
"Build chatbots for LINE": "Erstelle Chatbots für LINE",
|
|
4
|
+
"Push Message": "Push-Nachricht",
|
|
5
|
+
"Custom API Call": "Eigener API-Aufruf",
|
|
6
|
+
"Push message to the line account": "Nachricht auf das Zeilenkonto schieben",
|
|
7
|
+
"Make a custom API call to a specific endpoint": "Einen benutzerdefinierten API-Aufruf an einen bestimmten Endpunkt machen",
|
|
8
|
+
"User Id": "Benutzer-Id",
|
|
9
|
+
"Text": "Text",
|
|
10
|
+
"Method": "Methode",
|
|
11
|
+
"Headers": "Kopfzeilen",
|
|
12
|
+
"Query Parameters": "Abfrageparameter",
|
|
13
|
+
"Body": "Körper",
|
|
14
|
+
"No Error on Failure": "Kein Fehler bei Fehler",
|
|
15
|
+
"Timeout (in seconds)": "Timeout (in Sekunden)",
|
|
16
|
+
"The user id can be obtained from the webhook payload": "Die Benutzer-ID kann über die webhook Nutzlast abgerufen werden",
|
|
17
|
+
"Authorization headers are injected automatically from your connection.": "Autorisierungs-Header werden automatisch von Ihrer Verbindung injiziert.",
|
|
18
|
+
"GET": "ERHALTEN",
|
|
19
|
+
"POST": "POST",
|
|
20
|
+
"PATCH": "PATCH",
|
|
21
|
+
"PUT": "PUT",
|
|
22
|
+
"DELETE": "LÖSCHEN",
|
|
23
|
+
"HEAD": "HEAD",
|
|
24
|
+
"New Message": "Neue Nachricht",
|
|
25
|
+
"Triggers when a new message is received": "Wird ausgelöst, wenn eine neue Nachricht empfangen wird",
|
|
26
|
+
"Markdown": "Markdown",
|
|
27
|
+
"\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Line-Bot-Konto von Entwickler-Konsole\n- Gehen Sie zu \"Messaging API\".\n- In den Webhook-Einstellungen, füge diese URL ein: \n `{{webhookUrl}}`\n- Aktivierungsfluss veröffentlichen und dann auf \"Überprüfen\" Button\n"
|
|
28
|
+
}
|
package/src/i18n/es.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Line Bot": "Line Bot",
|
|
3
|
+
"Build chatbots for LINE": "Construir chatbots para LINE",
|
|
4
|
+
"Push Message": "Enviar mensaje",
|
|
5
|
+
"Custom API Call": "Llamada API personalizada",
|
|
6
|
+
"Push message to the line account": "Enviar mensaje a la cuenta de línea",
|
|
7
|
+
"Make a custom API call to a specific endpoint": "Hacer una llamada API personalizada a un extremo específico",
|
|
8
|
+
"User Id": "Id de Usuario",
|
|
9
|
+
"Text": "Texto",
|
|
10
|
+
"Method": "Método",
|
|
11
|
+
"Headers": "Encabezados",
|
|
12
|
+
"Query Parameters": "Parámetros de consulta",
|
|
13
|
+
"Body": "Cuerpo",
|
|
14
|
+
"No Error on Failure": "No hay ningún error en fallo",
|
|
15
|
+
"Timeout (in seconds)": "Tiempo de espera (en segundos)",
|
|
16
|
+
"The user id can be obtained from the webhook payload": "El id de usuario se puede obtener de la carga del webhook",
|
|
17
|
+
"Authorization headers are injected automatically from your connection.": "Las cabeceras de autorización se inyectan automáticamente desde tu conexión.",
|
|
18
|
+
"GET": "RECOGER",
|
|
19
|
+
"POST": "POST",
|
|
20
|
+
"PATCH": "PATCH",
|
|
21
|
+
"PUT": "PUT",
|
|
22
|
+
"DELETE": "BORRAR",
|
|
23
|
+
"HEAD": "LIMPIO",
|
|
24
|
+
"New Message": "Nuevo mensaje",
|
|
25
|
+
"Triggers when a new message is received": "Dispara cuando se recibe un nuevo mensaje",
|
|
26
|
+
"Markdown": "Markdown",
|
|
27
|
+
"\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n"
|
|
28
|
+
}
|
package/src/i18n/fr.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Line Bot": "Line Bot",
|
|
3
|
+
"Build chatbots for LINE": "Construire des chatbots pour LINE",
|
|
4
|
+
"Push Message": "Message Push",
|
|
5
|
+
"Custom API Call": "Appel API personnalisé",
|
|
6
|
+
"Push message to the line account": "Envoyer un message vers le compte en ligne",
|
|
7
|
+
"Make a custom API call to a specific endpoint": "Passez un appel API personnalisé à un point de terminaison spécifique",
|
|
8
|
+
"User Id": "Identifiant de l'utilisateur",
|
|
9
|
+
"Text": "Texte du texte",
|
|
10
|
+
"Method": "Méthode",
|
|
11
|
+
"Headers": "En-têtes",
|
|
12
|
+
"Query Parameters": "Paramètres de requête",
|
|
13
|
+
"Body": "Corps",
|
|
14
|
+
"No Error on Failure": "Aucune erreur en cas d'échec",
|
|
15
|
+
"Timeout (in seconds)": "Délai d'attente (en secondes)",
|
|
16
|
+
"The user id can be obtained from the webhook payload": "L'identifiant de l'utilisateur peut être obtenu à partir de la charge utile du webhook",
|
|
17
|
+
"Authorization headers are injected automatically from your connection.": "Les en-têtes d'autorisation sont injectés automatiquement à partir de votre connexion.",
|
|
18
|
+
"GET": "OBTENIR",
|
|
19
|
+
"POST": "POSTER",
|
|
20
|
+
"PATCH": "PATCH",
|
|
21
|
+
"PUT": "EFFACER",
|
|
22
|
+
"DELETE": "SUPPRIMER",
|
|
23
|
+
"HEAD": "TÊTE",
|
|
24
|
+
"New Message": "Nouveau message",
|
|
25
|
+
"Triggers when a new message is received": "Déclenche quand un nouveau message est reçu",
|
|
26
|
+
"Markdown": "Markdown",
|
|
27
|
+
"\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n"
|
|
28
|
+
}
|
package/src/i18n/hi.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Line Bot": "Line Bot",
|
|
3
|
+
"Build chatbots for LINE": "Build chatbots for LINE",
|
|
4
|
+
"Push Message": "Push Message",
|
|
5
|
+
"Custom API Call": "Custom API Call",
|
|
6
|
+
"Push message to the line account": "Push message to the line account",
|
|
7
|
+
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
8
|
+
"User Id": "User Id",
|
|
9
|
+
"Text": "Text",
|
|
10
|
+
"Method": "Method",
|
|
11
|
+
"Headers": "Headers",
|
|
12
|
+
"Query Parameters": "Query Parameters",
|
|
13
|
+
"Body": "Body",
|
|
14
|
+
"No Error on Failure": "No Error on Failure",
|
|
15
|
+
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
16
|
+
"The user id can be obtained from the webhook payload": "The user id can be obtained from the webhook payload",
|
|
17
|
+
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
18
|
+
"GET": "GET",
|
|
19
|
+
"POST": "POST",
|
|
20
|
+
"PATCH": "PATCH",
|
|
21
|
+
"PUT": "PUT",
|
|
22
|
+
"DELETE": "DELETE",
|
|
23
|
+
"HEAD": "HEAD",
|
|
24
|
+
"New Message": "New Message",
|
|
25
|
+
"Triggers when a new message is received": "Triggers when a new message is received",
|
|
26
|
+
"Markdown": "Markdown",
|
|
27
|
+
"\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n"
|
|
28
|
+
}
|
package/src/i18n/id.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Line Bot": "Line Bot",
|
|
3
|
+
"Build chatbots for LINE": "Build chatbots for LINE",
|
|
4
|
+
"Push Message": "Push Message",
|
|
5
|
+
"Custom API Call": "Custom API Call",
|
|
6
|
+
"Push message to the line account": "Push message to the line account",
|
|
7
|
+
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
8
|
+
"User Id": "User Id",
|
|
9
|
+
"Text": "Text",
|
|
10
|
+
"Method": "Method",
|
|
11
|
+
"Headers": "Headers",
|
|
12
|
+
"Query Parameters": "Query Parameters",
|
|
13
|
+
"Body": "Body",
|
|
14
|
+
"No Error on Failure": "No Error on Failure",
|
|
15
|
+
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
16
|
+
"The user id can be obtained from the webhook payload": "The user id can be obtained from the webhook payload",
|
|
17
|
+
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
18
|
+
"GET": "GET",
|
|
19
|
+
"POST": "POST",
|
|
20
|
+
"PATCH": "PATCH",
|
|
21
|
+
"PUT": "PUT",
|
|
22
|
+
"DELETE": "DELETE",
|
|
23
|
+
"HEAD": "HEAD",
|
|
24
|
+
"New Message": "New Message",
|
|
25
|
+
"Triggers when a new message is received": "Triggers when a new message is received",
|
|
26
|
+
"Markdown": "Markdown",
|
|
27
|
+
"\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n"
|
|
28
|
+
}
|
package/src/i18n/ja.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Line Bot": "Line Bot",
|
|
3
|
+
"Build chatbots for LINE": "LINE 用のチャットボットを構築",
|
|
4
|
+
"Push Message": "Push Message",
|
|
5
|
+
"Custom API Call": "カスタムAPI通話",
|
|
6
|
+
"Push message to the line account": "ラインアカウントにメッセージを送る",
|
|
7
|
+
"Make a custom API call to a specific endpoint": "特定のエンドポイントへのカスタム API コールを実行します。",
|
|
8
|
+
"User Id": "ユーザー ID",
|
|
9
|
+
"Text": "テキスト",
|
|
10
|
+
"Method": "方法",
|
|
11
|
+
"Headers": "ヘッダー",
|
|
12
|
+
"Query Parameters": "クエリパラメータ",
|
|
13
|
+
"Body": "本文",
|
|
14
|
+
"No Error on Failure": "失敗時にエラーはありません",
|
|
15
|
+
"Timeout (in seconds)": "タイムアウト(秒)",
|
|
16
|
+
"The user id can be obtained from the webhook payload": "ユーザ ID は webhook ペイロードから取得できます",
|
|
17
|
+
"Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
|
|
18
|
+
"GET": "取得",
|
|
19
|
+
"POST": "POST",
|
|
20
|
+
"PATCH": "PATCH",
|
|
21
|
+
"PUT": "PUT",
|
|
22
|
+
"DELETE": "削除",
|
|
23
|
+
"HEAD": "頭",
|
|
24
|
+
"New Message": "新しいメッセージ",
|
|
25
|
+
"Triggers when a new message is received": "新しいメッセージを受信したときにトリガーする",
|
|
26
|
+
"Markdown": "Markdown",
|
|
27
|
+
"\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n"
|
|
28
|
+
}
|
package/src/i18n/nl.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Line Bot": "Line Bot",
|
|
3
|
+
"Build chatbots for LINE": "Bouw chatbots voor LINE",
|
|
4
|
+
"Push Message": "Bericht pushen",
|
|
5
|
+
"Custom API Call": "Custom API Call",
|
|
6
|
+
"Push message to the line account": "Stuur bericht naar de regelaccount",
|
|
7
|
+
"Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
|
|
8
|
+
"User Id": "Gebruikers ID",
|
|
9
|
+
"Text": "Tekstveld",
|
|
10
|
+
"Method": "Methode",
|
|
11
|
+
"Headers": "Kopteksten",
|
|
12
|
+
"Query Parameters": "Query parameters",
|
|
13
|
+
"Body": "Lichaam",
|
|
14
|
+
"No Error on Failure": "Geen fout bij fout",
|
|
15
|
+
"Timeout (in seconds)": "Time-out (in seconden)",
|
|
16
|
+
"The user id can be obtained from the webhook payload": "De gebruikers-id kan worden verkregen via de webhook payload",
|
|
17
|
+
"Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
|
|
18
|
+
"GET": "KRIJG",
|
|
19
|
+
"POST": "POSTE",
|
|
20
|
+
"PATCH": "BEKIJK",
|
|
21
|
+
"PUT": "PUT",
|
|
22
|
+
"DELETE": "VERWIJDEREN",
|
|
23
|
+
"HEAD": "HOOFD",
|
|
24
|
+
"New Message": "Nieuw bericht",
|
|
25
|
+
"Triggers when a new message is received": "Triggert wanneer een nieuw bericht wordt ontvangen",
|
|
26
|
+
"Markdown": "Markdown",
|
|
27
|
+
"\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Maak Line bot account aan van Developer Console\n- Ga naar de \"Messaging API\" sectie.\n- In de webhook instellingen plak deze URL: \n `{{webhookUrl}}`\n- Publiceer Activepieces flow en klik op \"Verifiëren\" knop\n"
|
|
28
|
+
}
|
package/src/i18n/pt.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Line Bot": "Line Bot",
|
|
3
|
+
"Build chatbots for LINE": "Construa chatbots para LINE",
|
|
4
|
+
"Push Message": "Mensagem de Envio",
|
|
5
|
+
"Custom API Call": "Chamada de API personalizada",
|
|
6
|
+
"Push message to the line account": "Empurre mensagem para a conta de linha",
|
|
7
|
+
"Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
|
|
8
|
+
"User Id": "Identificação do Usuário",
|
|
9
|
+
"Text": "texto",
|
|
10
|
+
"Method": "Método",
|
|
11
|
+
"Headers": "Cabeçalhos",
|
|
12
|
+
"Query Parameters": "Parâmetros da consulta",
|
|
13
|
+
"Body": "Conteúdo",
|
|
14
|
+
"No Error on Failure": "Nenhum erro no Failure",
|
|
15
|
+
"Timeout (in seconds)": "Tempo limite (em segundos)",
|
|
16
|
+
"The user id can be obtained from the webhook payload": "A identificação do usuário pode ser obtida a partir da carga do webhook",
|
|
17
|
+
"Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
|
|
18
|
+
"GET": "OBTER",
|
|
19
|
+
"POST": "POSTAR",
|
|
20
|
+
"PATCH": "COMPRAR",
|
|
21
|
+
"PUT": "COLOCAR",
|
|
22
|
+
"DELETE": "EXCLUIR",
|
|
23
|
+
"HEAD": "CABEÇA",
|
|
24
|
+
"New Message": "Nova mensagem",
|
|
25
|
+
"Triggers when a new message is received": "Aciona quando uma nova mensagem é recebida",
|
|
26
|
+
"Markdown": "Markdown",
|
|
27
|
+
"\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Crie uma conta do bot de linha a partir do Console\nde Desenvolvedor - Vá para a seção \"API de mensagens\".\n- Nas configurações do webhook colar esta URL: \n `{{webhookUrl}}`\n- Publicar o fluxo de peças ativas primeiro e depois clicar no botão \"Verificar\"\n"
|
|
28
|
+
}
|
package/src/i18n/ru.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Line Bot": "Line Bot",
|
|
3
|
+
"Build chatbots for LINE": "Построить чатботы для LINE",
|
|
4
|
+
"Push Message": "Отправить сообщение",
|
|
5
|
+
"Custom API Call": "Пользовательский вызов API",
|
|
6
|
+
"Push message to the line account": "Отправить сообщение в линейный аккаунт",
|
|
7
|
+
"Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
|
|
8
|
+
"User Id": "ID пользователя",
|
|
9
|
+
"Text": "Текст",
|
|
10
|
+
"Method": "Метод",
|
|
11
|
+
"Headers": "Заголовки",
|
|
12
|
+
"Query Parameters": "Параметры запроса",
|
|
13
|
+
"Body": "Тело",
|
|
14
|
+
"No Error on Failure": "Нет ошибок при ошибке",
|
|
15
|
+
"Timeout (in seconds)": "Таймаут (в секундах)",
|
|
16
|
+
"The user id can be obtained from the webhook payload": "Идентификатор пользователя может быть получен из webhook загрузчика",
|
|
17
|
+
"Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
|
|
18
|
+
"GET": "ПОЛУЧИТЬ",
|
|
19
|
+
"POST": "ПОСТ",
|
|
20
|
+
"PATCH": "ПАТЧ",
|
|
21
|
+
"PUT": "ПОКУПИТЬ",
|
|
22
|
+
"DELETE": "УДАЛИТЬ",
|
|
23
|
+
"HEAD": "HEAD",
|
|
24
|
+
"New Message": "Новое сообщение",
|
|
25
|
+
"Triggers when a new message is received": "Триггеры при получении нового сообщения",
|
|
26
|
+
"Markdown": "Markdown",
|
|
27
|
+
"\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Создать учетную запись линейного бота от Developer Console\n- Перейдите в раздел \"Messaging API\".\n- В настройках webhook, вставьте этот URL: \n `{{webhookUrl}}`\n- Опубликовать поток Activepieces затем нажмите кнопку \"Verify\"\n"
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Line Bot": "Line Bot",
|
|
3
|
+
"Build chatbots for LINE": "Build chatbots for LINE",
|
|
4
|
+
"Push Message": "Push Message",
|
|
5
|
+
"Custom API Call": "Custom API Call",
|
|
6
|
+
"Push message to the line account": "Push message to the line account",
|
|
7
|
+
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
8
|
+
"User Id": "User Id",
|
|
9
|
+
"Text": "Text",
|
|
10
|
+
"Method": "Method",
|
|
11
|
+
"Headers": "Headers",
|
|
12
|
+
"Query Parameters": "Query Parameters",
|
|
13
|
+
"Body": "Body",
|
|
14
|
+
"No Error on Failure": "No Error on Failure",
|
|
15
|
+
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
16
|
+
"The user id can be obtained from the webhook payload": "The user id can be obtained from the webhook payload",
|
|
17
|
+
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
18
|
+
"GET": "GET",
|
|
19
|
+
"POST": "POST",
|
|
20
|
+
"PATCH": "PATCH",
|
|
21
|
+
"PUT": "PUT",
|
|
22
|
+
"DELETE": "DELETE",
|
|
23
|
+
"HEAD": "HEAD",
|
|
24
|
+
"New Message": "New Message",
|
|
25
|
+
"Triggers when a new message is received": "Triggers when a new message is received",
|
|
26
|
+
"Markdown": "Markdown",
|
|
27
|
+
"\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n"
|
|
28
|
+
}
|
package/src/i18n/vi.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Line Bot": "Line Bot",
|
|
3
|
+
"Build chatbots for LINE": "Build chatbots for LINE",
|
|
4
|
+
"Push Message": "Push Message",
|
|
5
|
+
"Custom API Call": "Custom API Call",
|
|
6
|
+
"Push message to the line account": "Push message to the line account",
|
|
7
|
+
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
8
|
+
"User Id": "User Id",
|
|
9
|
+
"Text": "Text",
|
|
10
|
+
"Method": "Method",
|
|
11
|
+
"Headers": "Headers",
|
|
12
|
+
"Query Parameters": "Query Parameters",
|
|
13
|
+
"Body": "Body",
|
|
14
|
+
"No Error on Failure": "No Error on Failure",
|
|
15
|
+
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
16
|
+
"The user id can be obtained from the webhook payload": "The user id can be obtained from the webhook payload",
|
|
17
|
+
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
18
|
+
"GET": "GET",
|
|
19
|
+
"POST": "POST",
|
|
20
|
+
"PATCH": "PATCH",
|
|
21
|
+
"PUT": "PUT",
|
|
22
|
+
"DELETE": "DELETE",
|
|
23
|
+
"HEAD": "HEAD",
|
|
24
|
+
"New Message": "New Message",
|
|
25
|
+
"Triggers when a new message is received": "Triggers when a new message is received",
|
|
26
|
+
"Markdown": "Markdown",
|
|
27
|
+
"\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n"
|
|
28
|
+
}
|
package/src/i18n/zh.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Line Bot": "Line Bot",
|
|
3
|
+
"Build chatbots for LINE": "建立 LINE 聊天機器人",
|
|
4
|
+
"Push Message": "推送消息",
|
|
5
|
+
"Custom API Call": "自定義 API 呼叫",
|
|
6
|
+
"Push message to the line account": "推送消息到 LINE 帳號",
|
|
7
|
+
"Make a custom API call to a specific endpoint": "將一個自定義 API 調用到一個特定的終點",
|
|
8
|
+
"User Id": "用戶 ID",
|
|
9
|
+
"Text": "文本",
|
|
10
|
+
"Method": "方法",
|
|
11
|
+
"Headers": "信頭",
|
|
12
|
+
"Query Parameters": "查詢參數",
|
|
13
|
+
"Body": "正文內容",
|
|
14
|
+
"No Error on Failure": "失敗時沒有錯誤",
|
|
15
|
+
"Timeout (in seconds)": "超時(秒)",
|
|
16
|
+
"The user id can be obtained from the webhook payload": "用戶 ID 可從回調負載中獲得",
|
|
17
|
+
"Authorization headers are injected automatically from your connection.": "授權頭自動從您的連接中注入。",
|
|
18
|
+
"GET": "獲取",
|
|
19
|
+
"POST": "帖子",
|
|
20
|
+
"PATCH": "PATCH",
|
|
21
|
+
"PUT": "彈出",
|
|
22
|
+
"DELETE": "刪除",
|
|
23
|
+
"HEAD": "黑色",
|
|
24
|
+
"New Message": "新消息",
|
|
25
|
+
"Triggers when a new message is received": "當收到新消息時觸發",
|
|
26
|
+
"Markdown": "Markdown",
|
|
27
|
+
"\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- 從開發者控制台創建 LINE 機器人帳戶\n- 前往 \"Messaging API\" 部分。\n- 在 Webhook 設定中粘貼此 URL:\n `{{webhookUrl}}`\n- 首先發布 Activepieces 流,然後點擊 \"Verify\" 按鈕\n"
|
|
28
|
+
}
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.line = exports.lineAuth2 = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
5
6
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
7
|
const shared_1 = require("@activepieces/shared");
|
|
@@ -14,7 +15,7 @@ exports.line = (0, pieces_framework_1.createPiece)({
|
|
|
14
15
|
displayName: 'Line Bot',
|
|
15
16
|
description: 'Build chatbots for LINE',
|
|
16
17
|
auth: exports.lineAuth2,
|
|
17
|
-
minimumSupportedRelease: '0.
|
|
18
|
+
minimumSupportedRelease: '0.30.0',
|
|
18
19
|
logoUrl: 'https://cdn.activepieces.com/pieces/line.png',
|
|
19
20
|
categories: [shared_1.PieceCategory.COMMUNICATION],
|
|
20
21
|
authors: ["kishanprmr", "MoShizzle", "abuaboud"],
|
|
@@ -23,8 +24,10 @@ exports.line = (0, pieces_framework_1.createPiece)({
|
|
|
23
24
|
(0, pieces_common_1.createCustomApiCallAction)({
|
|
24
25
|
baseUrl: () => 'https://api.line.me/v2',
|
|
25
26
|
auth: exports.lineAuth2,
|
|
26
|
-
authMapping: (auth) => ({
|
|
27
|
-
|
|
27
|
+
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
28
|
+
return ({
|
|
29
|
+
Authorization: `Bearer ${auth}`,
|
|
30
|
+
});
|
|
28
31
|
}),
|
|
29
32
|
}),
|
|
30
33
|
],
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/line/src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/line/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAAwE;AACxE,iDAAqD;AACrD,6DAAyD;AACzD,2DAAuD;AAE1C,QAAA,SAAS,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC5C,WAAW,EAAE,WAAW;IACxB,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEU,QAAA,IAAI,GAAG,IAAA,8BAAW,EAAC;IAC9B,WAAW,EAAE,UAAU;IACvB,WAAW,EAAE,yBAAyB;IAEtC,IAAI,EAAE,iBAAS;IACf,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,8CAA8C;IACvD,UAAU,EAAE,CAAC,sBAAa,CAAC,aAAa,CAAC;IACzC,OAAO,EAAE,CAAC,YAAY,EAAC,WAAW,EAAC,UAAU,CAAC;IAC9C,OAAO,EAAE;QACP,0BAAW;QACX,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,wBAAwB;YACvC,IAAI,EAAE,iBAAS;YACf,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAU,IAAI,EAAE;iBAChC,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE,CAAC,wBAAU,CAAC;CACvB,CAAC,CAAC"}
|
|
@@ -6,7 +6,7 @@ const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
|
6
6
|
const __1 = require("../..");
|
|
7
7
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
8
8
|
exports.pushMessage = (0, pieces_framework_1.createAction)({
|
|
9
|
-
name: 'push_message',
|
|
9
|
+
name: 'push_message', // Must be a unique across the piece, this shouldn't be changed.
|
|
10
10
|
auth: __1.lineAuth2,
|
|
11
11
|
displayName: 'Push Message',
|
|
12
12
|
description: 'Push message to the line account',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push-message.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/line/src/lib/actions/push-message.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6BAAkC;AAClC,+DAIqC;AAExB,QAAA,WAAW,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,cAAc;
|
|
1
|
+
{"version":3,"file":"push-message.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/line/src/lib/actions/push-message.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,6BAAkC;AAClC,+DAIqC;AAExB,QAAA,WAAW,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,cAAc,EAAE,gEAAgE;IACtF,IAAI,EAAE,aAAS;IACf,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,kCAAkC;IAC/C,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,sDAAsD;YACnE,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,OAAO,0BAAU,CAAC,WAAW,CAAC;gBAC5B,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,yCAAyC;gBAC9C,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI;iBACpB;gBACD,IAAI,EAAE;oBACJ,EAAE,EAAE,OAAO,CAAC,UAAU,CAAC,MAAM;oBAC7B,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,MAAM;4BACZ,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI;yBAC9B;qBACF;iBACF;aACF,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
2
|
export declare const newMessage: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").PieceAuthProperty, {
|
|
3
|
-
md: import("
|
|
3
|
+
md: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
4
4
|
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").PieceAuthProperty, {
|
|
5
|
-
md: import("
|
|
5
|
+
md: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
6
|
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").PieceAuthProperty, {
|
|
7
|
-
md: import("
|
|
7
|
+
md: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
8
8
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new-message.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/line/src/lib/trigger/new-message.ts"],"names":[],"mappings":";;;;AAAA,qEAKwC;AAExC,MAAM,QAAQ,GAAG;;;;;;CAMhB,CAAC;AAEW,QAAA,UAAU,GAAG,IAAA,gCAAa,EAAC;IACtC,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,4BAAS,CAAC,IAAI,EAAE;IACtB,WAAW,EAAE,yCAAyC;IACtD,KAAK,EAAE;QACL,EAAE,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACpB,KAAK,EAAE,QAAQ;SAChB,CAAC;KACH;IACD,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,UAAU,EAAE,EAAE;IACR,QAAQ,CAAC,OAAO;;YACpB,QAAQ;QACV,CAAC;KAAA;IACK,SAAS,CAAC,OAAO;;YACrB,QAAQ;QACV,CAAC;KAAA;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,IAA6B,CAAC;YACjE,IAAI,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"new-message.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/line/src/lib/trigger/new-message.ts"],"names":[],"mappings":";;;;AAAA,qEAKwC;AAExC,MAAM,QAAQ,GAAG;;;;;;CAMhB,CAAC;AAEW,QAAA,UAAU,GAAG,IAAA,gCAAa,EAAC;IACtC,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,4BAAS,CAAC,IAAI,EAAE;IACtB,WAAW,EAAE,yCAAyC;IACtD,KAAK,EAAE;QACL,EAAE,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACpB,KAAK,EAAE,QAAQ;SAChB,CAAC;KACH;IACD,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,UAAU,EAAE,EAAE;IACR,QAAQ,CAAC,OAAO;;YACpB,QAAQ;QACV,CAAC;KAAA;IACK,SAAS,CAAC,OAAO;;YACrB,QAAQ;QACV,CAAC;KAAA;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,IAA6B,CAAC;YACjE,IAAI,CAAC,MAAM,EAAE,CAAC;gBACZ,OAAO,EAAE,CAAC;YACZ,CAAC;YACD,OAAO,MAAM,CAAC,MAAM,CAClB,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,CACpE,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|