@activepieces/piece-surveymonkey 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/de.json +22 -0
- package/src/i18n/es.json +22 -0
- package/src/i18n/fr.json +22 -0
- package/src/i18n/ja.json +22 -0
- package/src/i18n/nl.json +22 -0
- package/src/i18n/pt.json +22 -0
- package/src/i18n/ru.json +22 -0
- package/src/i18n/translation.json +22 -0
- package/src/i18n/vi.json +22 -0
- package/src/i18n/zh.json +22 -0
- package/src/index.js +8 -5
- package/src/index.js.map +1 -1
- package/src/lib/common/index.js.map +1 -1
- package/src/lib/triggers/new-response.js +2 -2
- package/src/lib/triggers/new-response.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,19 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-surveymonkey",
|
|
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.3",
|
|
20
|
+
"@activepieces/pieces-framework": "0.18.0",
|
|
21
|
+
"@activepieces/shared": "0.17.11",
|
|
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/de.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"SurveyMonkey": "SurveyAffe",
|
|
3
|
+
"Receive survey responses from SurveyMonkey": "Erhalte Umfrageantworten von SurveyMonkey",
|
|
4
|
+
"Custom API Call": "Eigener API-Aufruf",
|
|
5
|
+
"Make a custom API call to a specific endpoint": "Einen benutzerdefinierten API-Aufruf an einen bestimmten Endpunkt machen",
|
|
6
|
+
"Method": "Methode",
|
|
7
|
+
"Headers": "Kopfzeilen",
|
|
8
|
+
"Query Parameters": "Abfrageparameter",
|
|
9
|
+
"Body": "Körper",
|
|
10
|
+
"No Error on Failure": "Kein Fehler bei Fehler",
|
|
11
|
+
"Timeout (in seconds)": "Timeout (in Sekunden)",
|
|
12
|
+
"Authorization headers are injected automatically from your connection.": "Autorisierungs-Header werden automatisch von Ihrer Verbindung injiziert.",
|
|
13
|
+
"GET": "ERHALTEN",
|
|
14
|
+
"POST": "POST",
|
|
15
|
+
"PATCH": "PATCH",
|
|
16
|
+
"PUT": "PUT",
|
|
17
|
+
"DELETE": "LÖSCHEN",
|
|
18
|
+
"HEAD": "HEAD",
|
|
19
|
+
"New Response": "Neue Antwort",
|
|
20
|
+
"Triggers when a new response is submitted": "Wird ausgelöst, wenn eine neue Antwort gesendet wird",
|
|
21
|
+
"Survey": "Umfrage"
|
|
22
|
+
}
|
package/src/i18n/es.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"SurveyMonkey": "Encuesta Mono",
|
|
3
|
+
"Receive survey responses from SurveyMonkey": "Recibir respuestas de encuestas de SurveyMonkey",
|
|
4
|
+
"Custom API Call": "Llamada API personalizada",
|
|
5
|
+
"Make a custom API call to a specific endpoint": "Hacer una llamada API personalizada a un extremo específico",
|
|
6
|
+
"Method": "Método",
|
|
7
|
+
"Headers": "Encabezados",
|
|
8
|
+
"Query Parameters": "Parámetros de consulta",
|
|
9
|
+
"Body": "Cuerpo",
|
|
10
|
+
"No Error on Failure": "No hay ningún error en fallo",
|
|
11
|
+
"Timeout (in seconds)": "Tiempo de espera (en segundos)",
|
|
12
|
+
"Authorization headers are injected automatically from your connection.": "Las cabeceras de autorización se inyectan automáticamente desde tu conexión.",
|
|
13
|
+
"GET": "RECOGER",
|
|
14
|
+
"POST": "POST",
|
|
15
|
+
"PATCH": "PATCH",
|
|
16
|
+
"PUT": "PUT",
|
|
17
|
+
"DELETE": "BORRAR",
|
|
18
|
+
"HEAD": "LIMPIO",
|
|
19
|
+
"New Response": "Nueva respuesta",
|
|
20
|
+
"Triggers when a new response is submitted": "Dispara cuando se envía una nueva respuesta",
|
|
21
|
+
"Survey": "Encuesta"
|
|
22
|
+
}
|
package/src/i18n/fr.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"SurveyMonkey": "format@@0 SurveyMonkey",
|
|
3
|
+
"Receive survey responses from SurveyMonkey": "Recevoir les réponses de l'enquête de SurveyMonkey",
|
|
4
|
+
"Custom API Call": "Appel API personnalisé",
|
|
5
|
+
"Make a custom API call to a specific endpoint": "Passez un appel API personnalisé à un point de terminaison spécifique",
|
|
6
|
+
"Method": "Méthode",
|
|
7
|
+
"Headers": "En-têtes",
|
|
8
|
+
"Query Parameters": "Paramètres de requête",
|
|
9
|
+
"Body": "Corps",
|
|
10
|
+
"No Error on Failure": "Aucune erreur en cas d'échec",
|
|
11
|
+
"Timeout (in seconds)": "Délai d'attente (en secondes)",
|
|
12
|
+
"Authorization headers are injected automatically from your connection.": "Les en-têtes d'autorisation sont injectés automatiquement à partir de votre connexion.",
|
|
13
|
+
"GET": "OBTENIR",
|
|
14
|
+
"POST": "POSTER",
|
|
15
|
+
"PATCH": "PATCH",
|
|
16
|
+
"PUT": "EFFACER",
|
|
17
|
+
"DELETE": "SUPPRIMER",
|
|
18
|
+
"HEAD": "TÊTE",
|
|
19
|
+
"New Response": "Nouvelle réponse",
|
|
20
|
+
"Triggers when a new response is submitted": "Déclenche quand une nouvelle réponse est envoyée",
|
|
21
|
+
"Survey": "Enquête"
|
|
22
|
+
}
|
package/src/i18n/ja.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"SurveyMonkey": "SurveyMonkey",
|
|
3
|
+
"Receive survey responses from SurveyMonkey": "SurveyMonkey からアンケートの回答を受け取る",
|
|
4
|
+
"Custom API Call": "カスタムAPI通話",
|
|
5
|
+
"Make a custom API call to a specific endpoint": "特定のエンドポイントへのカスタム API コールを実行します。",
|
|
6
|
+
"Method": "方法",
|
|
7
|
+
"Headers": "ヘッダー",
|
|
8
|
+
"Query Parameters": "クエリパラメータ",
|
|
9
|
+
"Body": "本文",
|
|
10
|
+
"No Error on Failure": "失敗時にエラーはありません",
|
|
11
|
+
"Timeout (in seconds)": "タイムアウト(秒)",
|
|
12
|
+
"Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
|
|
13
|
+
"GET": "取得",
|
|
14
|
+
"POST": "POST",
|
|
15
|
+
"PATCH": "PATCH",
|
|
16
|
+
"PUT": "PUT",
|
|
17
|
+
"DELETE": "削除",
|
|
18
|
+
"HEAD": "頭",
|
|
19
|
+
"New Response": "新しい回答",
|
|
20
|
+
"Triggers when a new response is submitted": "新しい応答が送信されたときにトリガーします",
|
|
21
|
+
"Survey": "調査"
|
|
22
|
+
}
|
package/src/i18n/nl.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"SurveyMonkey": "SurveyAap",
|
|
3
|
+
"Receive survey responses from SurveyMonkey": "Ontvang antwoorden van SurveyMonkey",
|
|
4
|
+
"Custom API Call": "Custom API Call",
|
|
5
|
+
"Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
|
|
6
|
+
"Method": "Methode",
|
|
7
|
+
"Headers": "Kopteksten",
|
|
8
|
+
"Query Parameters": "Query parameters",
|
|
9
|
+
"Body": "Lichaam",
|
|
10
|
+
"No Error on Failure": "Geen fout bij fout",
|
|
11
|
+
"Timeout (in seconds)": "Time-out (in seconden)",
|
|
12
|
+
"Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
|
|
13
|
+
"GET": "KRIJG",
|
|
14
|
+
"POST": "POSTE",
|
|
15
|
+
"PATCH": "BEKIJK",
|
|
16
|
+
"PUT": "PUT",
|
|
17
|
+
"DELETE": "VERWIJDEREN",
|
|
18
|
+
"HEAD": "HOOFD",
|
|
19
|
+
"New Response": "Nieuw Antwoord",
|
|
20
|
+
"Triggers when a new response is submitted": "Triggert wanneer een nieuw antwoord wordt verzonden",
|
|
21
|
+
"Survey": "Vragenlijst"
|
|
22
|
+
}
|
package/src/i18n/pt.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"SurveyMonkey": "Macaco",
|
|
3
|
+
"Receive survey responses from SurveyMonkey": "Receber respostas de pesquisas da SurveyMonkey",
|
|
4
|
+
"Custom API Call": "Chamada de API personalizada",
|
|
5
|
+
"Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
|
|
6
|
+
"Method": "Método",
|
|
7
|
+
"Headers": "Cabeçalhos",
|
|
8
|
+
"Query Parameters": "Parâmetros da consulta",
|
|
9
|
+
"Body": "Conteúdo",
|
|
10
|
+
"No Error on Failure": "Nenhum erro no Failure",
|
|
11
|
+
"Timeout (in seconds)": "Tempo limite (em segundos)",
|
|
12
|
+
"Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
|
|
13
|
+
"GET": "OBTER",
|
|
14
|
+
"POST": "POSTAR",
|
|
15
|
+
"PATCH": "COMPRAR",
|
|
16
|
+
"PUT": "COLOCAR",
|
|
17
|
+
"DELETE": "EXCLUIR",
|
|
18
|
+
"HEAD": "CABEÇA",
|
|
19
|
+
"New Response": "Nova Resposta",
|
|
20
|
+
"Triggers when a new response is submitted": "Dispara quando uma nova resposta é enviada",
|
|
21
|
+
"Survey": "Questionário"
|
|
22
|
+
}
|
package/src/i18n/ru.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"SurveyMonkey": "Опрос",
|
|
3
|
+
"Receive survey responses from SurveyMonkey": "Получать ответы на анкету от SurveyMonkey",
|
|
4
|
+
"Custom API Call": "Пользовательский вызов API",
|
|
5
|
+
"Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
|
|
6
|
+
"Method": "Метод",
|
|
7
|
+
"Headers": "Заголовки",
|
|
8
|
+
"Query Parameters": "Параметры запроса",
|
|
9
|
+
"Body": "Тело",
|
|
10
|
+
"No Error on Failure": "Нет ошибок при ошибке",
|
|
11
|
+
"Timeout (in seconds)": "Таймаут (в секундах)",
|
|
12
|
+
"Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
|
|
13
|
+
"GET": "ПОЛУЧИТЬ",
|
|
14
|
+
"POST": "ПОСТ",
|
|
15
|
+
"PATCH": "ПАТЧ",
|
|
16
|
+
"PUT": "ПОКУПИТЬ",
|
|
17
|
+
"DELETE": "УДАЛИТЬ",
|
|
18
|
+
"HEAD": "HEAD",
|
|
19
|
+
"New Response": "Новый ответ",
|
|
20
|
+
"Triggers when a new response is submitted": "Триггеры при отправке нового ответа",
|
|
21
|
+
"Survey": "Опрос"
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"SurveyMonkey": "SurveyMonkey",
|
|
3
|
+
"Receive survey responses from SurveyMonkey": "Receive survey responses from SurveyMonkey",
|
|
4
|
+
"Custom API Call": "Custom API Call",
|
|
5
|
+
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
6
|
+
"Method": "Method",
|
|
7
|
+
"Headers": "Headers",
|
|
8
|
+
"Query Parameters": "Query Parameters",
|
|
9
|
+
"Body": "Body",
|
|
10
|
+
"No Error on Failure": "No Error on Failure",
|
|
11
|
+
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
12
|
+
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
13
|
+
"GET": "GET",
|
|
14
|
+
"POST": "POST",
|
|
15
|
+
"PATCH": "PATCH",
|
|
16
|
+
"PUT": "PUT",
|
|
17
|
+
"DELETE": "DELETE",
|
|
18
|
+
"HEAD": "HEAD",
|
|
19
|
+
"New Response": "New Response",
|
|
20
|
+
"Triggers when a new response is submitted": "Triggers when a new response is submitted",
|
|
21
|
+
"Survey": "Survey"
|
|
22
|
+
}
|
package/src/i18n/vi.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"SurveyMonkey": "SurveyMonkey",
|
|
3
|
+
"Receive survey responses from SurveyMonkey": "Receive survey responses from SurveyMonkey",
|
|
4
|
+
"Custom API Call": "Custom API Call",
|
|
5
|
+
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
6
|
+
"Method": "Method",
|
|
7
|
+
"Headers": "Headers",
|
|
8
|
+
"Query Parameters": "Query Parameters",
|
|
9
|
+
"Body": "Body",
|
|
10
|
+
"No Error on Failure": "No Error on Failure",
|
|
11
|
+
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
12
|
+
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
13
|
+
"GET": "GET",
|
|
14
|
+
"POST": "POST",
|
|
15
|
+
"PATCH": "PATCH",
|
|
16
|
+
"PUT": "PUT",
|
|
17
|
+
"DELETE": "DELETE",
|
|
18
|
+
"HEAD": "HEAD",
|
|
19
|
+
"New Response": "New Response",
|
|
20
|
+
"Triggers when a new response is submitted": "Triggers when a new response is submitted",
|
|
21
|
+
"Survey": "Survey"
|
|
22
|
+
}
|
package/src/i18n/zh.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"SurveyMonkey": "SurveyMonkey",
|
|
3
|
+
"Receive survey responses from SurveyMonkey": "Receive survey responses from SurveyMonkey",
|
|
4
|
+
"Custom API Call": "自定义 API 呼叫",
|
|
5
|
+
"Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
|
|
6
|
+
"Method": "方法",
|
|
7
|
+
"Headers": "信头",
|
|
8
|
+
"Query Parameters": "查询参数",
|
|
9
|
+
"Body": "正文内容",
|
|
10
|
+
"No Error on Failure": "失败时没有错误",
|
|
11
|
+
"Timeout (in seconds)": "超时(秒)",
|
|
12
|
+
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
|
|
13
|
+
"GET": "获取",
|
|
14
|
+
"POST": "帖子",
|
|
15
|
+
"PATCH": "PATCH",
|
|
16
|
+
"PUT": "弹出",
|
|
17
|
+
"DELETE": "删除",
|
|
18
|
+
"HEAD": "黑色",
|
|
19
|
+
"New Response": "New Response",
|
|
20
|
+
"Triggers when a new response is submitted": "Triggers when a new response is submitted",
|
|
21
|
+
"Survey": "Survey"
|
|
22
|
+
}
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.surveymonkey = exports.smAuth = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
6
7
|
const shared_1 = require("@activepieces/shared");
|
|
@@ -19,18 +20,20 @@ exports.smAuth = pieces_framework_1.PieceAuth.OAuth2({
|
|
|
19
20
|
});
|
|
20
21
|
exports.surveymonkey = (0, pieces_framework_1.createPiece)({
|
|
21
22
|
displayName: 'SurveyMonkey',
|
|
22
|
-
description: '
|
|
23
|
+
description: 'Receive survey responses from SurveyMonkey',
|
|
23
24
|
auth: exports.smAuth,
|
|
24
|
-
minimumSupportedRelease: '0.
|
|
25
|
+
minimumSupportedRelease: '0.30.0',
|
|
25
26
|
logoUrl: 'https://cdn.activepieces.com/pieces/surveymonkey.png',
|
|
26
27
|
categories: [shared_1.PieceCategory.FORMS_AND_SURVEYS],
|
|
27
|
-
authors: [
|
|
28
|
+
authors: ["kishanprmr", "MoShizzle", "khaledmashaly", "abuaboud"],
|
|
28
29
|
actions: [
|
|
29
30
|
(0, pieces_common_1.createCustomApiCallAction)({
|
|
30
31
|
baseUrl: () => 'https://api.surveymonkey.com/v3',
|
|
31
32
|
auth: exports.smAuth,
|
|
32
|
-
authMapping: (auth) => ({
|
|
33
|
-
|
|
33
|
+
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
34
|
+
return ({
|
|
35
|
+
Authorization: `Bearer ${auth.access_token}`,
|
|
36
|
+
});
|
|
34
37
|
}),
|
|
35
38
|
}),
|
|
36
39
|
],
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/surveymonkey/src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/surveymonkey/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AAExC,+DAAwE;AACxE,iDAAqD;AACrD,8DAA0D;AAE7C,QAAA,MAAM,GAAG,4BAAS,CAAC,MAAM,CAAC;IACrC,OAAO,EAAE,8CAA8C;IACvD,QAAQ,EAAE,0CAA0C;IACpD,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACL,gBAAgB;QAChB,uBAAuB;QACvB,eAAe;QACf,gBAAgB;QAChB,cAAc;KACf;CACF,CAAC,CAAC;AAEU,QAAA,YAAY,GAAG,IAAA,8BAAW,EAAC;IACtC,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,4CAA4C;IACzD,IAAI,EAAE,cAAM;IACZ,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,sDAAsD;IAC/D,UAAU,EAAE,CAAC,sBAAa,CAAC,iBAAiB,CAAC;IAC7C,OAAO,EAAE,CAAC,YAAY,EAAC,WAAW,EAAC,eAAe,EAAC,UAAU,CAAC;IAC9D,OAAO,EAAE;QACP,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,iCAAiC;YAChD,IAAI,EAAE,cAAM;YACZ,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,UAAW,IAA4B,CAAC,YAAY,EAAE;iBACtE,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE,CAAC,0BAAW,CAAC;CACxB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/surveymonkey/src/lib/common/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA+E;AAC/E,+DAKqC;AAExB,QAAA,QAAQ,GAAG;IACtB,OAAO,EAAE,iCAAiC;IAC1C,MAAM,EAAE,2BAAQ,CAAC,QAAQ,CAAC;QACxB,WAAW,EAAE,QAAQ;QACrB,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,EAAE;QACd,OAAO,EAAE,CAAO,OAAO,EAAE,EAAE;YACzB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/surveymonkey/src/lib/common/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA+E;AAC/E,+DAKqC;AAExB,QAAA,QAAQ,GAAG;IACtB,OAAO,EAAE,iCAAiC;IAC1C,MAAM,EAAE,2BAAQ,CAAC,QAAQ,CAAC;QACxB,WAAW,EAAE,QAAQ;QACrB,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,EAAE;QACd,OAAO,EAAE,CAAO,OAAO,EAAE,EAAE;YACzB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;gBACrB,OAAO;oBACL,QAAQ,EAAE,IAAI;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,sBAAsB;iBACpC,CAAC;YACJ,CAAC;YAED,MAAM,QAAQ,GAAQ,OAAO,CAAC,MAAM,CAAC,CAAC;YACtC,MAAM,OAAO,GAAU,MAAM,gBAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;YACxE,OAAO;gBACL,OAAO,EAAE,OAAO;gBAChB,WAAW,EAAE,0BAA0B;aACxC,CAAC;QACJ,CAAC,CAAA;KACF,CAAC;IACF,UAAU,EAAE,CAAO,WAAmB,EAAE,EAAE;QACxC,MAAM,OAAO,GAAgB;YAC3B,MAAM,EAAE,0BAAU,CAAC,GAAG;YACtB,GAAG,EAAE,GAAG,gBAAQ,CAAC,OAAO,UAAU;YAClC,cAAc,EAAE;gBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;gBACrC,KAAK,EAAE,WAAW;aACnB;SACF,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC,O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,CAAC,CAAC;QAC7D,OAAO,cAAc,CAAC;IACxB,CAAC,CAAA;IAEK,kBAAkB,CACtB,WAAmB,EACnB,QAAyB,EACzB,UAA2B;;YAE3B,MAAM,OAAO,GAAgB;gBAC3B,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,GAAG,gBAAQ,CAAC,OAAO,YAAY,QAAQ,cAAc,UAAU,UAAU;gBAC9E,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,WAAW;iBACnB;aACF,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;YACvD,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC"}
|
|
@@ -17,8 +17,8 @@ exports.newResponse = (0, pieces_framework_1.createTrigger)({
|
|
|
17
17
|
},
|
|
18
18
|
//Create the webhook in SurveyMonkey and save the webhook ID in store for disable behavior
|
|
19
19
|
onEnable(context) {
|
|
20
|
-
var _a;
|
|
21
20
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
var _a;
|
|
22
22
|
const webhookId = yield common_1.smCommon.subscribeWebhook(context.propsValue.survey, context.webhookUrl, context.auth['access_token']);
|
|
23
23
|
yield ((_a = context.store) === null || _a === void 0 ? void 0 : _a.put('_new_response_trigger', {
|
|
24
24
|
webhookId: webhookId,
|
|
@@ -27,8 +27,8 @@ exports.newResponse = (0, pieces_framework_1.createTrigger)({
|
|
|
27
27
|
},
|
|
28
28
|
//Delete the webhook from SurveyMonkey
|
|
29
29
|
onDisable(context) {
|
|
30
|
-
var _a;
|
|
31
30
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
var _a;
|
|
32
32
|
const response = yield ((_a = context.store) === null || _a === void 0 ? void 0 : _a.get('_new_response_trigger'));
|
|
33
33
|
if (response !== null && response !== undefined) {
|
|
34
34
|
yield common_1.smCommon.unsubscribeWebhook(response.webhookId, context.auth['access_token']);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new-response.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/surveymonkey/src/lib/triggers/new-response.ts"],"names":[],"mappings":";;;;AAAA,qEAAgF;AAChF,sCAAqC;AACrC,6BAA+B;AAElB,QAAA,WAAW,GAAG,IAAA,gCAAa,EAAC;IACvC,IAAI,EAAE,UAAM;IACZ,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,2CAA2C;IACxD,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,UAAU,EAAE,EAAE;IACd,KAAK,EAAE;QACL,MAAM,EAAE,iBAAQ,CAAC,MAAM;KACxB;IACD,0FAA0F;IACpF,QAAQ,CAAC,OAAO;;;YACpB,MAAM,SAAS,GAAG,MAAM,iBAAQ,CAAC,gBAAgB,CAC/C,OAAO,CAAC,UAAU,CAAC,MAAgB,EACnC,OAAO,CAAC,UAAU,EAClB,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,CAC7B,CAAC;YAEF,MAAM,CAAA,MAAA,OAAO,CAAC,KAAK,0CAAE,GAAG,CAAC,uBAAuB,EAAE;gBAChD,SAAS,EAAE,SAAS;aACrB,CAAC,CAAA,CAAC
|
|
1
|
+
{"version":3,"file":"new-response.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/surveymonkey/src/lib/triggers/new-response.ts"],"names":[],"mappings":";;;;AAAA,qEAAgF;AAChF,sCAAqC;AACrC,6BAA+B;AAElB,QAAA,WAAW,GAAG,IAAA,gCAAa,EAAC;IACvC,IAAI,EAAE,UAAM;IACZ,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,2CAA2C;IACxD,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,UAAU,EAAE,EAAE;IACd,KAAK,EAAE;QACL,MAAM,EAAE,iBAAQ,CAAC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