@activepieces/piece-drip 0.3.11 → 0.4.1
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 +11 -15
- package/src/i18n/de.json +7 -1
- package/src/i18n/es.json +7 -1
- package/src/i18n/fr.json +7 -1
- package/src/i18n/ja.json +7 -1
- package/src/i18n/nl.json +7 -1
- package/src/i18n/pt.json +7 -1
- package/src/i18n/translation.json +7 -1
- package/src/i18n/zh.json +7 -1
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/lib/actions/add-subscriber-to-campaign.action.d.ts +2 -2
- package/src/lib/actions/add-subscriber-to-campaign.action.js +2 -1
- package/src/lib/actions/add-subscriber-to-campaign.action.js.map +1 -1
- package/src/lib/actions/apply-tag-to-subscriber.action.d.ts +1 -1
- package/src/lib/actions/upsert-subscriber.action.d.ts +1 -1
- package/src/lib/common/index.d.ts +4 -2
- package/src/lib/common/index.js +4 -2
- package/src/lib/common/index.js.map +1 -1
- package/src/lib/trigger/new-subscriber.trigger.d.ts +5 -3
- package/src/lib/trigger/new-tag.trigger.d.ts +5 -3
package/package.json
CHANGED
|
@@ -1,27 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-drip",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@sinclair/typebox": "0.34.11",
|
|
6
|
-
"
|
|
6
|
+
"ai": "^6.0.0",
|
|
7
|
+
"axios": "1.13.1",
|
|
7
8
|
"axios-retry": "4.4.1",
|
|
8
9
|
"deepmerge-ts": "7.1.0",
|
|
10
|
+
"form-data": "4.0.4",
|
|
11
|
+
"i18next": "23.13.0",
|
|
9
12
|
"mime-types": "2.1.35",
|
|
10
13
|
"nanoid": "3.3.8",
|
|
11
14
|
"semver": "7.6.0",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"@activepieces/pieces-
|
|
15
|
-
"@activepieces/
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
"overrides": {
|
|
19
|
-
"@tryfabric/martian": {
|
|
20
|
-
"@notionhq/client": "$@notionhq/client"
|
|
21
|
-
},
|
|
22
|
-
"vite": {
|
|
23
|
-
"rollup": "npm:@rollup/wasm-node"
|
|
24
|
-
}
|
|
15
|
+
"socket.io-client": "4.8.1",
|
|
16
|
+
"zod": "4.1.13",
|
|
17
|
+
"@activepieces/pieces-common": "0.11.2",
|
|
18
|
+
"@activepieces/pieces-framework": "0.24.0",
|
|
19
|
+
"@activepieces/shared": "0.32.0",
|
|
20
|
+
"tslib": "2.6.2"
|
|
25
21
|
},
|
|
26
22
|
"resolutions": {
|
|
27
23
|
"rollup": "npm:@rollup/wasm-node"
|
package/src/i18n/de.json
CHANGED
|
@@ -25,10 +25,12 @@
|
|
|
25
25
|
"Method": "Methode",
|
|
26
26
|
"Headers": "Kopfzeilen",
|
|
27
27
|
"Query Parameters": "Abfrageparameter",
|
|
28
|
+
"Body Type": "Körpertyp",
|
|
28
29
|
"Body": "Körper",
|
|
29
30
|
"Response is Binary ?": "Antwort ist binär?",
|
|
30
31
|
"No Error on Failure": "Kein Fehler bei Fehler",
|
|
31
32
|
"Timeout (in seconds)": "Timeout (in Sekunden)",
|
|
33
|
+
"Follow redirects": "Weiterleitungen folgen",
|
|
32
34
|
"Email of the subscriber": "E-Mail des Abonnenten",
|
|
33
35
|
"Tag to apply": "Tag zum Anwenden",
|
|
34
36
|
"Tags to apply to subscriber": "Tags für Abonnenten",
|
|
@@ -40,13 +42,17 @@
|
|
|
40
42
|
"The subscriber's primary phone number": "Die primäre Telefonnummer des Abonnenten",
|
|
41
43
|
"The subscriber's mailing address": "Die Mailingadresse des Abonnenten",
|
|
42
44
|
"Authorization headers are injected automatically from your connection.": "Autorisierungs-Header werden automatisch von Ihrer Verbindung injiziert.",
|
|
43
|
-
"Enable for files like PDFs, images, etc
|
|
45
|
+
"Enable for files like PDFs, images, etc.": "Aktivieren für Dateien wie PDFs, Bilder usw.",
|
|
44
46
|
"GET": "ERHALTEN",
|
|
45
47
|
"POST": "POST",
|
|
46
48
|
"PATCH": "PATCH",
|
|
47
49
|
"PUT": "PUT",
|
|
48
50
|
"DELETE": "LÖSCHEN",
|
|
49
51
|
"HEAD": "HEAD",
|
|
52
|
+
"None": "Keine",
|
|
53
|
+
"JSON": "JSON",
|
|
54
|
+
"Form Data": "Formulardaten",
|
|
55
|
+
"Raw": "Rohe",
|
|
50
56
|
"New Subscriber": "Neuer Abonnent",
|
|
51
57
|
"Tag Applied": "Tag angewendet",
|
|
52
58
|
"Triggers when a subscriber is created in your Drip account.": "Wird ausgelöst, wenn ein Abonnent in Ihrem Drip-Konto erstellt wurde.",
|
package/src/i18n/es.json
CHANGED
|
@@ -25,10 +25,12 @@
|
|
|
25
25
|
"Method": "Método",
|
|
26
26
|
"Headers": "Encabezados",
|
|
27
27
|
"Query Parameters": "Parámetros de consulta",
|
|
28
|
+
"Body Type": "Tipo de cuerpo",
|
|
28
29
|
"Body": "Cuerpo",
|
|
29
30
|
"Response is Binary ?": "¿Respuesta es binaria?",
|
|
30
31
|
"No Error on Failure": "No hay ningún error en fallo",
|
|
31
32
|
"Timeout (in seconds)": "Tiempo de espera (en segundos)",
|
|
33
|
+
"Follow redirects": "Seguir redirecciones",
|
|
32
34
|
"Email of the subscriber": "Email del suscriptor",
|
|
33
35
|
"Tag to apply": "Etiqueta a aplicar",
|
|
34
36
|
"Tags to apply to subscriber": "Etiquetas a aplicar al suscriptor",
|
|
@@ -40,13 +42,17 @@
|
|
|
40
42
|
"The subscriber's primary phone number": "Número de teléfono principal del suscriptor",
|
|
41
43
|
"The subscriber's mailing address": "La dirección de correo del suscriptor",
|
|
42
44
|
"Authorization headers are injected automatically from your connection.": "Las cabeceras de autorización se inyectan automáticamente desde tu conexión.",
|
|
43
|
-
"Enable for files like PDFs, images, etc
|
|
45
|
+
"Enable for files like PDFs, images, etc.": "Activar para archivos como PDFs, imágenes, etc.",
|
|
44
46
|
"GET": "RECOGER",
|
|
45
47
|
"POST": "POST",
|
|
46
48
|
"PATCH": "PATCH",
|
|
47
49
|
"PUT": "PUT",
|
|
48
50
|
"DELETE": "BORRAR",
|
|
49
51
|
"HEAD": "LIMPIO",
|
|
52
|
+
"None": "Ninguna",
|
|
53
|
+
"JSON": "JSON",
|
|
54
|
+
"Form Data": "Datos de Formulario",
|
|
55
|
+
"Raw": "Rápido",
|
|
50
56
|
"New Subscriber": "Nuevo suscriptor",
|
|
51
57
|
"Tag Applied": "Etiqueta aplicada",
|
|
52
58
|
"Triggers when a subscriber is created in your Drip account.": "Dispara cuando un suscriptor es creado en su cuenta de Drip.",
|
package/src/i18n/fr.json
CHANGED
|
@@ -25,10 +25,12 @@
|
|
|
25
25
|
"Method": "Méthode",
|
|
26
26
|
"Headers": "En-têtes",
|
|
27
27
|
"Query Parameters": "Paramètres de requête",
|
|
28
|
+
"Body Type": "Body Type",
|
|
28
29
|
"Body": "Corps",
|
|
29
30
|
"Response is Binary ?": "La réponse est Binaire ?",
|
|
30
31
|
"No Error on Failure": "Aucune erreur en cas d'échec",
|
|
31
32
|
"Timeout (in seconds)": "Délai d'attente (en secondes)",
|
|
33
|
+
"Follow redirects": "Suivre les redirections",
|
|
32
34
|
"Email of the subscriber": "Courriel de l'abonné",
|
|
33
35
|
"Tag to apply": "Étiquette à appliquer",
|
|
34
36
|
"Tags to apply to subscriber": "Tags à appliquer à l'abonné",
|
|
@@ -40,13 +42,17 @@
|
|
|
40
42
|
"The subscriber's primary phone number": "Le numéro de téléphone principal de l'abonné",
|
|
41
43
|
"The subscriber's mailing address": "Adresse postale de l'abonné",
|
|
42
44
|
"Authorization headers are injected automatically from your connection.": "Les en-têtes d'autorisation sont injectés automatiquement à partir de votre connexion.",
|
|
43
|
-
"Enable for files like PDFs, images, etc
|
|
45
|
+
"Enable for files like PDFs, images, etc.": "Activer pour les fichiers comme les PDFs, les images, etc.",
|
|
44
46
|
"GET": "OBTENIR",
|
|
45
47
|
"POST": "POSTER",
|
|
46
48
|
"PATCH": "PATCH",
|
|
47
49
|
"PUT": "EFFACER",
|
|
48
50
|
"DELETE": "SUPPRIMER",
|
|
49
51
|
"HEAD": "TÊTE",
|
|
52
|
+
"None": "Aucun",
|
|
53
|
+
"JSON": "JSON",
|
|
54
|
+
"Form Data": "Données du formulaire",
|
|
55
|
+
"Raw": "Brut",
|
|
50
56
|
"New Subscriber": "Nouvel abonné",
|
|
51
57
|
"Tag Applied": "Étiquette appliquée",
|
|
52
58
|
"Triggers when a subscriber is created in your Drip account.": "Déclenche lorsqu'un abonné est créé dans votre compte Drip.",
|
package/src/i18n/ja.json
CHANGED
|
@@ -25,10 +25,12 @@
|
|
|
25
25
|
"Method": "方法",
|
|
26
26
|
"Headers": "ヘッダー",
|
|
27
27
|
"Query Parameters": "クエリパラメータ",
|
|
28
|
+
"Body Type": "ボディタイプ",
|
|
28
29
|
"Body": "本文",
|
|
29
30
|
"Response is Binary ?": "応答はバイナリですか?",
|
|
30
31
|
"No Error on Failure": "失敗時にエラーはありません",
|
|
31
32
|
"Timeout (in seconds)": "タイムアウト(秒)",
|
|
33
|
+
"Follow redirects": "リダイレクトをフォローする",
|
|
32
34
|
"Email of the subscriber": "購読者のメールアドレス",
|
|
33
35
|
"Tag to apply": "適用するタグ",
|
|
34
36
|
"Tags to apply to subscriber": "購読者に適用するタグ",
|
|
@@ -40,13 +42,17 @@
|
|
|
40
42
|
"The subscriber's primary phone number": "購読者の主な電話番号",
|
|
41
43
|
"The subscriber's mailing address": "購読者の郵送先住所",
|
|
42
44
|
"Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
|
|
43
|
-
"Enable for files like PDFs, images, etc
|
|
45
|
+
"Enable for files like PDFs, images, etc.": "PDF、画像などのファイルを有効にする",
|
|
44
46
|
"GET": "取得",
|
|
45
47
|
"POST": "POST",
|
|
46
48
|
"PATCH": "PATCH",
|
|
47
49
|
"PUT": "PUT",
|
|
48
50
|
"DELETE": "削除",
|
|
49
51
|
"HEAD": "頭",
|
|
52
|
+
"None": "なし",
|
|
53
|
+
"JSON": "JSON",
|
|
54
|
+
"Form Data": "フォームデータ",
|
|
55
|
+
"Raw": "Raw",
|
|
50
56
|
"New Subscriber": "新規購読",
|
|
51
57
|
"Tag Applied": "タグを適用しました",
|
|
52
58
|
"Triggers when a subscriber is created in your Drip account.": "Dripアカウントに登録者が作成されたときにトリガーします。",
|
package/src/i18n/nl.json
CHANGED
|
@@ -25,10 +25,12 @@
|
|
|
25
25
|
"Method": "Methode",
|
|
26
26
|
"Headers": "Kopteksten",
|
|
27
27
|
"Query Parameters": "Query parameters",
|
|
28
|
+
"Body Type": "Type lichaam",
|
|
28
29
|
"Body": "Lichaam",
|
|
29
30
|
"Response is Binary ?": "Antwoord is binair?",
|
|
30
31
|
"No Error on Failure": "Geen fout bij fout",
|
|
31
32
|
"Timeout (in seconds)": "Time-out (in seconden)",
|
|
33
|
+
"Follow redirects": "Volg omleidingen",
|
|
32
34
|
"Email of the subscriber": "E-mail van de abonnee",
|
|
33
35
|
"Tag to apply": "Tag om toe te passen",
|
|
34
36
|
"Tags to apply to subscriber": "Tags om toe te passen op abonnee",
|
|
@@ -40,13 +42,17 @@
|
|
|
40
42
|
"The subscriber's primary phone number": "Het primaire telefoonnummer van de abonnee",
|
|
41
43
|
"The subscriber's mailing address": "Postadres van de abonnee",
|
|
42
44
|
"Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
|
|
43
|
-
"Enable for files like PDFs, images, etc
|
|
45
|
+
"Enable for files like PDFs, images, etc.": "Inschakelen voor bestanden zoals PDF's, afbeeldingen etc.",
|
|
44
46
|
"GET": "KRIJG",
|
|
45
47
|
"POST": "POSTE",
|
|
46
48
|
"PATCH": "BEKIJK",
|
|
47
49
|
"PUT": "PUT",
|
|
48
50
|
"DELETE": "VERWIJDEREN",
|
|
49
51
|
"HEAD": "HOOFD",
|
|
52
|
+
"None": "geen",
|
|
53
|
+
"JSON": "JSON",
|
|
54
|
+
"Form Data": "Formulieren gegevens",
|
|
55
|
+
"Raw": "Onbewerkte",
|
|
50
56
|
"New Subscriber": "Nieuwe abonnee",
|
|
51
57
|
"Tag Applied": "Tag toegepast",
|
|
52
58
|
"Triggers when a subscriber is created in your Drip account.": "Triggert wanneer een abonnee is aangemaakt in uw Drip account.",
|
package/src/i18n/pt.json
CHANGED
|
@@ -25,10 +25,12 @@
|
|
|
25
25
|
"Method": "Método",
|
|
26
26
|
"Headers": "Cabeçalhos",
|
|
27
27
|
"Query Parameters": "Parâmetros da consulta",
|
|
28
|
+
"Body Type": "Tipo de Corpo",
|
|
28
29
|
"Body": "Conteúdo",
|
|
29
30
|
"Response is Binary ?": "A resposta é binária ?",
|
|
30
31
|
"No Error on Failure": "Nenhum erro no Failure",
|
|
31
32
|
"Timeout (in seconds)": "Tempo limite (em segundos)",
|
|
33
|
+
"Follow redirects": "Seguir redirecionamentos",
|
|
32
34
|
"Email of the subscriber": "E-mail do assinante",
|
|
33
35
|
"Tag to apply": "Etiqueta para aplicar",
|
|
34
36
|
"Tags to apply to subscriber": "Tags a serem aplicadas aos assinantes",
|
|
@@ -40,13 +42,17 @@
|
|
|
40
42
|
"The subscriber's primary phone number": "Número primário do assinante",
|
|
41
43
|
"The subscriber's mailing address": "Endereço postal do assinante",
|
|
42
44
|
"Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
|
|
43
|
-
"Enable for files like PDFs, images, etc
|
|
45
|
+
"Enable for files like PDFs, images, etc.": "Habilitar para arquivos como PDFs, imagens, etc.",
|
|
44
46
|
"GET": "OBTER",
|
|
45
47
|
"POST": "POSTAR",
|
|
46
48
|
"PATCH": "COMPRAR",
|
|
47
49
|
"PUT": "COLOCAR",
|
|
48
50
|
"DELETE": "EXCLUIR",
|
|
49
51
|
"HEAD": "CABEÇA",
|
|
52
|
+
"None": "Nenhuma",
|
|
53
|
+
"JSON": "JSON",
|
|
54
|
+
"Form Data": "Dados de Formulário",
|
|
55
|
+
"Raw": "RAW",
|
|
50
56
|
"New Subscriber": "Novo Assinante",
|
|
51
57
|
"Tag Applied": "Tag Aplicada",
|
|
52
58
|
"Triggers when a subscriber is created in your Drip account.": "Aciona quando um assinante é criado em sua conta de Gotejamento.",
|
|
@@ -25,10 +25,12 @@
|
|
|
25
25
|
"Method": "Method",
|
|
26
26
|
"Headers": "Headers",
|
|
27
27
|
"Query Parameters": "Query Parameters",
|
|
28
|
+
"Body Type": "Body Type",
|
|
28
29
|
"Body": "Body",
|
|
29
30
|
"Response is Binary ?": "Response is Binary ?",
|
|
30
31
|
"No Error on Failure": "No Error on Failure",
|
|
31
32
|
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
33
|
+
"Follow redirects": "Follow redirects",
|
|
32
34
|
"Email of the subscriber": "Email of the subscriber",
|
|
33
35
|
"Tag to apply": "Tag to apply",
|
|
34
36
|
"Tags to apply to subscriber": "Tags to apply to subscriber",
|
|
@@ -40,13 +42,17 @@
|
|
|
40
42
|
"The subscriber's primary phone number": "The subscriber's primary phone number",
|
|
41
43
|
"The subscriber's mailing address": "The subscriber's mailing address",
|
|
42
44
|
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
43
|
-
"Enable for files like PDFs, images, etc
|
|
45
|
+
"Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
|
|
44
46
|
"GET": "GET",
|
|
45
47
|
"POST": "POST",
|
|
46
48
|
"PATCH": "PATCH",
|
|
47
49
|
"PUT": "PUT",
|
|
48
50
|
"DELETE": "DELETE",
|
|
49
51
|
"HEAD": "HEAD",
|
|
52
|
+
"None": "None",
|
|
53
|
+
"JSON": "JSON",
|
|
54
|
+
"Form Data": "Form Data",
|
|
55
|
+
"Raw": "Raw",
|
|
50
56
|
"New Subscriber": "New Subscriber",
|
|
51
57
|
"Tag Applied": "Tag Applied",
|
|
52
58
|
"Triggers when a subscriber is created in your Drip account.": "Triggers when a subscriber is created in your Drip account.",
|
package/src/i18n/zh.json
CHANGED
|
@@ -25,10 +25,12 @@
|
|
|
25
25
|
"Method": "方法",
|
|
26
26
|
"Headers": "信头",
|
|
27
27
|
"Query Parameters": "查询参数",
|
|
28
|
+
"Body Type": "Body Type",
|
|
28
29
|
"Body": "正文内容",
|
|
29
30
|
"Response is Binary ?": "Response is Binary ?",
|
|
30
31
|
"No Error on Failure": "失败时没有错误",
|
|
31
32
|
"Timeout (in seconds)": "超时(秒)",
|
|
33
|
+
"Follow redirects": "Follow redirects",
|
|
32
34
|
"Email of the subscriber": "Email of the subscriber",
|
|
33
35
|
"Tag to apply": "Tag to apply",
|
|
34
36
|
"Tags to apply to subscriber": "Tags to apply to subscriber",
|
|
@@ -40,13 +42,17 @@
|
|
|
40
42
|
"The subscriber's primary phone number": "The subscriber's primary phone number",
|
|
41
43
|
"The subscriber's mailing address": "The subscriber's mailing address",
|
|
42
44
|
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
|
|
43
|
-
"Enable for files like PDFs, images, etc
|
|
45
|
+
"Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
|
|
44
46
|
"GET": "获取",
|
|
45
47
|
"POST": "帖子",
|
|
46
48
|
"PATCH": "PATCH",
|
|
47
49
|
"PUT": "弹出",
|
|
48
50
|
"DELETE": "删除",
|
|
49
51
|
"HEAD": "黑色",
|
|
52
|
+
"None": "无",
|
|
53
|
+
"JSON": "JSON",
|
|
54
|
+
"Form Data": "表单数据",
|
|
55
|
+
"Raw": "原始文件",
|
|
50
56
|
"New Subscriber": "New Subscriber",
|
|
51
57
|
"Tag Applied": "Tag Applied",
|
|
52
58
|
"Triggers when a subscriber is created in your Drip account.": "Triggers when a subscriber is created in your Drip account.",
|
package/src/index.js
CHANGED
|
@@ -32,7 +32,7 @@ exports.drip = (0, pieces_framework_1.createPiece)({
|
|
|
32
32
|
auth: exports.dripAuth,
|
|
33
33
|
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
34
34
|
return ({
|
|
35
|
-
Authorization: `Basic ${Buffer.from(auth).toString('base64')}`,
|
|
35
|
+
Authorization: `Basic ${Buffer.from(auth.secret_text).toString('base64')}`,
|
|
36
36
|
});
|
|
37
37
|
}),
|
|
38
38
|
}),
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/drip/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAAwE;AACxE,iDAAqD;AACrD,uGAA8F;AAC9F,iGAAwF;AACxF,qFAAoF;AACpF,iFAA8E;AAC9E,mEAAoE;AAEvD,QAAA,QAAQ,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC3C,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,+CAA+C;CAC7D,CAAC,CAAC;AAEU,QAAA,IAAI,GAAG,IAAA,8BAAW,EAAC;IAC9B,WAAW,EAAE,MAAM;IACnB,WAAW,EAAE,kCAAkC;IAC/C,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,8CAA8C;IACvD,OAAO,EAAE,CAAC,YAAY,EAAC,WAAW,EAAC,sBAAsB,EAAC,eAAe,EAAC,UAAU,CAAC;IACrF,UAAU,EAAE,CAAC,sBAAa,CAAC,SAAS,CAAC;IACrC,IAAI,EAAE,gBAAQ;IACd,OAAO,EAAE;QACP,yDAAwB;QACxB,+DAA2B;QAC3B,qDAA0B;QAC1B,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,6BAA6B;YAC5C,IAAI,EAAE,gBAAQ;YACd,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,SAAS,MAAM,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/drip/src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAAwE;AACxE,iDAAqD;AACrD,uGAA8F;AAC9F,iGAAwF;AACxF,qFAAoF;AACpF,iFAA8E;AAC9E,mEAAoE;AAEvD,QAAA,QAAQ,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC3C,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,+CAA+C;CAC7D,CAAC,CAAC;AAEU,QAAA,IAAI,GAAG,IAAA,8BAAW,EAAC;IAC9B,WAAW,EAAE,MAAM;IACnB,WAAW,EAAE,kCAAkC;IAC/C,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,8CAA8C;IACvD,OAAO,EAAE,CAAC,YAAY,EAAC,WAAW,EAAC,sBAAsB,EAAC,eAAe,EAAC,UAAU,CAAC;IACrF,UAAU,EAAE,CAAC,sBAAa,CAAC,SAAS,CAAC;IACrC,IAAI,EAAE,gBAAQ;IACd,OAAO,EAAE;QACP,yDAAwB;QACxB,+DAA2B;QAC3B,qDAA0B;QAC1B,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,GAAG,EAAE,CAAC,6BAA6B;YAC5C,IAAI,EAAE,gBAAQ;YACd,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,SAAS,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,QAAQ,CAC5D,QAAQ,CACT,EAAE;iBACJ,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE,CAAC,+CAAsB,EAAE,qCAAmB,CAAC;CACxD,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const dripAddSubscriberToCampaign: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true
|
|
3
|
-
campaign_id: import("@activepieces/pieces-framework").DropdownProperty<string, true
|
|
2
|
+
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
+
campaign_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
4
4
|
subscriber: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
5
|
tags: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
6
6
|
custom_fields: import("@activepieces/pieces-framework").ObjectProperty<false>;
|
|
@@ -15,6 +15,7 @@ exports.dripAddSubscriberToCampaign = (0, pieces_framework_1.createAction)({
|
|
|
15
15
|
account_id: common_1.dripCommon.account_id,
|
|
16
16
|
campaign_id: pieces_framework_1.Property.Dropdown({
|
|
17
17
|
displayName: 'Email Series Campaign',
|
|
18
|
+
auth: __1.dripAuth,
|
|
18
19
|
refreshers: ['account_id'],
|
|
19
20
|
required: true,
|
|
20
21
|
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, account_id }) {
|
|
@@ -36,7 +37,7 @@ exports.dripAddSubscriberToCampaign = (0, pieces_framework_1.createAction)({
|
|
|
36
37
|
method: pieces_common_1.HttpMethod.GET,
|
|
37
38
|
url: `${common_1.dripCommon.baseUrl(account_id)}/campaigns`,
|
|
38
39
|
headers: {
|
|
39
|
-
Authorization: `Basic ${Buffer.from(auth).toString('base64')}`,
|
|
40
|
+
Authorization: `Basic ${Buffer.from(auth.secret_text).toString('base64')}`,
|
|
40
41
|
},
|
|
41
42
|
};
|
|
42
43
|
const response = yield pieces_common_1.httpClient.sendRequest(request);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-subscriber-to-campaign.action.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/drip/src/lib/actions/add-subscriber-to-campaign.action.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAIqC;AACrC,sCAAuC;AACvC,8BAAkC;AAErB,QAAA,2BAA2B,GAAG,IAAA,+BAAY,EAAC;IACtD,IAAI,EAAE,YAAQ;IACd,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,+CAA+C;IAC5D,WAAW,EAAE,gCAAgC;IAC7C,KAAK,EAAE;QACL,UAAU,EAAE,mBAAU,CAAC,UAAU;QACjC,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC7B,WAAW,EAAE,uBAAuB;YACpC,UAAU,EAAE,CAAC,YAAY,CAAC;YAC1B,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,KAA6B,EAAE,oDAAxB,EAAE,IAAI,EAAE,UAAU,EAAE;gBAClC,IAAI,CAAC,IAAI,EAAE,CAAC;oBACV,OAAO;wBACL,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,8BAA8B;qBAC5C,CAAC;gBACJ,CAAC;gBACD,IAAI,CAAC,UAAU,EAAE,CAAC;oBAChB,OAAO;wBACL,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,gCAAgC;qBAC9C,CAAC;gBACJ,CAAC;gBACD,MAAM,OAAO,GAAgB;oBAC3B,MAAM,EAAE,0BAAU,CAAC,GAAG;oBACtB,GAAG,EAAE,GAAG,mBAAU,CAAC,OAAO,CAAC,UAAoB,CAAC,YAAY;oBAC5D,OAAO,EAAE;wBACP,aAAa,EAAE,SAAS,MAAM,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"add-subscriber-to-campaign.action.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/drip/src/lib/actions/add-subscriber-to-campaign.action.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAIqC;AACrC,sCAAuC;AACvC,8BAAkC;AAErB,QAAA,2BAA2B,GAAG,IAAA,+BAAY,EAAC;IACtD,IAAI,EAAE,YAAQ;IACd,IAAI,E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AAC,CAAC;gBACH,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBACtB,OAAO;wBACL,QAAQ,EAAE,KAAK;wBACf,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,wCAAwC;qBACtD,CAAC;gBACJ,CAAC;gBACD,OAAO;oBACL,QAAQ,EAAE,KAAK;oBACf,OAAO,EAAE,IAAI;iBACd,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;QACF,UAAU,EAAE,mBAAU,CAAC,UAAU;QACjC,IAAI,EAAE,mBAAU,CAAC,IAAI;QACrB,aAAa,EAAE,mBAAU,CAAC,aAAa;KACxC;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,OAAO,GAAgB;gBAC3B,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,GAAG,mBAAU,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,cAC/C,UAAU,CAAC,WACb,cAAc;gBACd,IAAI,EAAE;oBACJ,WAAW,EAAE;wBACX;4BACE,KAAK,EAAE,UAAU,CAAC,UAAU;4BAC5B,IAAI,EAAE,UAAU,CAAC,IAAI;4BACrB,aAAa,EAAE,UAAU,CAAC,aAAa;yBACxC;qBACF;iBACF;gBACD,OAAO,EAAE;oBACP,aAAa,EAAE,mBAAU,CAAC,mBAAmB,CAAC,IAAI,CAAC;iBACpD;gBACD,WAAW,EAAE,EAAE;aAChB,CAAC;YACF,OAAO,MAAM,0BAAU,CAAC,WAAW,CAAwB,OAAO,CAAC,CAAC;QACtE,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const dripApplyTagToSubscriber: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true
|
|
2
|
+
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
3
|
subscriber: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
tag: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
5
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const dripUpsertSubscriberAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true
|
|
2
|
+
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
3
|
subscriber: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
tags: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
5
5
|
custom_fields: import("@activepieces/pieces-framework").ObjectProperty<false>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { AppConnectionValueForAuthProperty } from '@activepieces/pieces-framework';
|
|
2
|
+
import { dripAuth } from '../..';
|
|
1
3
|
export declare const dripCommon: {
|
|
2
4
|
baseUrl: (accountId: string) => string;
|
|
3
|
-
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true
|
|
5
|
+
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
4
6
|
subscriber: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
7
|
tags: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
6
8
|
custom_fields: import("@activepieces/pieces-framework").ObjectProperty<false>;
|
|
7
|
-
authorizationHeader: (apiKey:
|
|
9
|
+
authorizationHeader: (apiKey: AppConnectionValueForAuthProperty<typeof dripAuth>) => string;
|
|
8
10
|
};
|
package/src/lib/common/index.js
CHANGED
|
@@ -4,11 +4,13 @@ exports.dripCommon = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
+
const __1 = require("../..");
|
|
7
8
|
exports.dripCommon = {
|
|
8
9
|
baseUrl: (accountId) => {
|
|
9
10
|
return `https://api.getdrip.com/v2/${accountId}`;
|
|
10
11
|
},
|
|
11
12
|
account_id: pieces_framework_1.Property.Dropdown({
|
|
13
|
+
auth: __1.dripAuth,
|
|
12
14
|
displayName: 'Account',
|
|
13
15
|
required: true,
|
|
14
16
|
refreshers: [],
|
|
@@ -24,7 +26,7 @@ exports.dripCommon = {
|
|
|
24
26
|
method: pieces_common_1.HttpMethod.GET,
|
|
25
27
|
url: 'https://api.getdrip.com/v2/accounts',
|
|
26
28
|
headers: {
|
|
27
|
-
Authorization: `Basic ${Buffer.from(auth).toString('base64')}`,
|
|
29
|
+
Authorization: `Basic ${Buffer.from(auth.secret_text).toString('base64')}`,
|
|
28
30
|
},
|
|
29
31
|
};
|
|
30
32
|
const response = yield pieces_common_1.httpClient.sendRequest(request);
|
|
@@ -52,6 +54,6 @@ exports.dripCommon = {
|
|
|
52
54
|
required: false,
|
|
53
55
|
description: 'Custom field data about the subscriber',
|
|
54
56
|
}),
|
|
55
|
-
authorizationHeader: (apiKey) => `Basic ${Buffer.from(apiKey).toString('base64')}`,
|
|
57
|
+
authorizationHeader: (apiKey) => `Basic ${Buffer.from(apiKey.secret_text).toString('base64')}`,
|
|
56
58
|
};
|
|
57
59
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/drip/src/lib/common/index.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/drip/src/lib/common/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA6F;AAC7F,+DAIqC;AACrC,6BAAiC;AAEpB,QAAA,UAAU,GAAG;IAC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BAAQ,CAAC,KAAK,CAAC;QACnB,WAAW,EAAE,MAAM;QACnB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6BAA6B;KAC3C,CAAC;IACF,aAAa,EAAE,2BAAQ,CAAC,MAAM,CAAC;QAC7B,WAAW,EAAE,eAAe;QAC5B,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,wCAAwC;KACtD,CAAC;IACF,mBAAmB,EAAE,CAAC,MAA0D,EAAE,EAAE,CAClF,SAAS,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;CAChE,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
2
|
export declare const dripNewSubscriberEvent: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
3
|
-
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true
|
|
3
|
+
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
4
4
|
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
5
|
-
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true
|
|
5
|
+
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
6
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
7
|
+
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
6
8
|
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
7
|
-
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true
|
|
9
|
+
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
8
10
|
}>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
2
|
export declare const dripTagAppliedEvent: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
3
|
-
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true
|
|
3
|
+
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
4
4
|
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
5
|
-
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true
|
|
5
|
+
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
6
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
7
|
+
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
6
8
|
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
7
|
-
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true
|
|
9
|
+
account_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
8
10
|
}>;
|