Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

feat(typeform): ui improvement (#16500)

Talal Jaber98590e3321f6
diff --git a/bun.lock b/bun.lock
index 7aa8d67bfd9..be30c82e223 100644
--- a/bun.lock
+++ b/bun.lock
@@ -9467,7 +9467,7 @@
},
"packages/pieces/community/typeform": {
"name": "@activepieces/piece-typeform",
- "version": "0.6.2",
+ "version": "0.7.0",
"dependencies": {
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
diff --git a/packages/pieces/community/typeform/package.json b/packages/pieces/community/typeform/package.json
index d938bd1c1c1..ba5b77c486b 100644
--- a/packages/pieces/community/typeform/package.json
+++ b/packages/pieces/community/typeform/package.json
@@ -1,6 +1,6 @@
{
"name": "@activepieces/piece-typeform",
- "version": "0.6.2",
+ "version": "0.7.0",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"scripts": {
diff --git a/packages/pieces/community/typeform/src/i18n/de.json b/packages/pieces/community/typeform/src/i18n/de.json
index 266eb56cd49..350b2442d37 100644
--- a/packages/pieces/community/typeform/src/i18n/de.json
+++ b/packages/pieces/community/typeform/src/i18n/de.json
@@ -26,5 +26,53 @@
"New Submission": "Neue Einreichung",
"Triggers when Typeform receives a new submission": "Auslöser wenn Typeform eine neue Einreichung erhält",
"Form": "Formular",
- "Form Name": "Formularname"
+ "Form Name": "Formularname",
+ "Create Form": "Formular erstellen",
+ "Creates a new form, empty or with questions.": "Erstellt ein neues Formular, leer oder mit Fragen.",
+ "Title": "Titel",
+ "Workspace": "Arbeitsbereich",
+ "Leave empty for your default workspace.": "Leer lassen für Ihren Standard-Arbeitsbereich.",
+ "Theme": "Design",
+ "Leave empty for Typeform's default theme.": "Leer lassen für das Standarddesign von Typeform.",
+ "Questions": "Fragen",
+ "A JSON array of Typeform question objects.": "Ein JSON-Array mit Typeform-Fragenobjekten.",
+ "Questions use the [Typeform field format](https://www.typeform.com/developers/create/reference/create-form/). Leave empty to start with an empty form.": "Fragen verwenden das [Typeform-Feldformat](https://www.typeform.com/developers/create/reference/create-form/). Leer lassen, um mit einem leeren Formular zu beginnen.",
+ "Duplicate Form": "Formular duplizieren",
+ "Creates a copy of an existing form.": "Erstellt eine Kopie eines bestehenden Formulars.",
+ "Leave empty for \"Copy of\" and the original title.": "Leer lassen für \"Copy of\" und den ursprünglichen Titel.",
+ "Responses, translations and webhooks are not copied.": "Antworten, Übersetzungen und Webhooks werden nicht kopiert.",
+ "Update Choice Options": "Auswahloptionen aktualisieren",
+ "Replaces the options of a choice question in a form.": "Ersetzt die Optionen einer Auswahlfrage in einem Formular.",
+ "Question": "Frage",
+ "Dropdown, multiple choice, ranking and picture choice questions.": "Dropdown-, Multiple-Choice-, Ranking- und Bildauswahlfragen.",
+ "This list replaces every current option. Options whose label stays the same keep their past answers.": "Diese Liste ersetzt alle aktuellen Optionen. Optionen mit unverändertem Namen behalten ihre bisherigen Antworten.",
+ "Options": "Optionen",
+ "One label per option, in the order they should appear.": "Ein Name pro Option, in der gewünschten Reihenfolge.",
+ "Find Responses": "Antworten finden",
+ "Looks up responses to a form.": "Sucht Antworten auf ein Formular.",
+ "Responses from the last 30 minutes may be missing. Use the New Submission trigger for real-time data.": "Antworten der letzten 30 Minuten können fehlen. Verwenden Sie den Auslöser Neue Einreichung für Echtzeitdaten.",
+ "Search": "Suche",
+ "Only responses containing this text in any answer or hidden field.": "Nur Antworten, die diesen Text in einer Antwort oder einem versteckten Feld enthalten.",
+ "Submitted After": "Eingereicht nach",
+ "Submitted Before": "Eingereicht vor",
+ "Response Type": "Antworttyp",
+ "Leave empty for completed responses only.": "Leer lassen für nur abgeschlossene Antworten.",
+ "Completed": "Abgeschlossen",
+ "Partial": "Teilweise",
+ "Started": "Begonnen",
+ "Response IDs": "Antwort-IDs",
+ "Only return the responses with these IDs.": "Nur die Antworten mit diesen IDs zurückgeben.",
+ "Sort": "Sortierung",
+ "Leave empty for newest first.": "Leer lassen für neueste zuerst.",
+ "Newest first": "Neueste zuerst",
+ "Oldest first": "Älteste zuerst",
+ "Max Responses": "Max. Antworten",
+ "1 to 1000. Leave empty for 25.": "1 bis 1000. Leer lassen für 25.",
+ "Before Response": "Vor Antwort",
+ "Response token. Returns responses submitted before it, for paging.": "Antwort-Token. Gibt davor eingereichte Antworten zurück, zum Blättern.",
+ "After Response": "Nach Antwort",
+ "Response token. Returns responses submitted after it.": "Antwort-Token. Gibt danach eingereichte Antworten zurück.",
+ "Triggers when someone submits the form.": "Wird ausgelöst, wenn jemand das Formular absendet.",
+ "A webhook is added to this form in Typeform when you publish the flow, and removed when you turn it off.": "Beim Veröffentlichen des Flows wird diesem Formular in Typeform ein Webhook hinzugefügt und beim Ausschalten wieder entfernt.",
+ "Leave empty to keep the original form's workspace.": "Leer lassen, um den Arbeitsbereich des ursprünglichen Formulars zu behalten."
}
\ No newline at end of file
diff --git a/packages/pieces/community/typeform/src/i18n/es.json b/packages/pieces/community/typeform/src/i18n/es.json
index aa8bb736ae7..810cdfc0f67 100644
--- a/packages/pieces/community/typeform/src/i18n/es.json
+++ b/packages/pieces/community/typeform/src/i18n/es.json
@@ -26,5 +26,53 @@
"New Submission": "Nuevo envío",
"Triggers when Typeform receives a new submission": "Dispara cuando el tipeforma recibe un nuevo envío",
"Form": "Forma",
- "Form Name": "Nombre del formulario"
+ "Form Name": "Nombre del formulario",
+ "Create Form": "Crear formulario",
+ "Creates a new form, empty or with questions.": "Crea un formulario nuevo, vacío o con preguntas.",
+ "Title": "Título",
+ "Workspace": "Espacio de trabajo",
+ "Leave empty for your default workspace.": "Déjalo vacío para usar tu espacio de trabajo predeterminado.",
+ "Theme": "Tema",
+ "Leave empty for Typeform's default theme.": "Déjalo vacío para usar el tema predeterminado de Typeform.",
+ "Questions": "Preguntas",
+ "A JSON array of Typeform question objects.": "Un array JSON de objetos de pregunta de Typeform.",
+ "Questions use the [Typeform field format](https://www.typeform.com/developers/create/reference/create-form/). Leave empty to start with an empty form.": "Las preguntas usan el [formato de campos de Typeform](https://www.typeform.com/developers/create/reference/create-form/). Déjalo vacío para empezar con un formulario vacío.",
+ "Duplicate Form": "Duplicar formulario",
+ "Creates a copy of an existing form.": "Crea una copia de un formulario existente.",
+ "Leave empty for \"Copy of\" and the original title.": "Déjalo vacío para usar \"Copy of\" y el título original.",
+ "Responses, translations and webhooks are not copied.": "Las respuestas, traducciones y webhooks no se copian.",
+ "Update Choice Options": "Actualizar opciones de elección",
+ "Replaces the options of a choice question in a form.": "Reemplaza las opciones de una pregunta de elección en un formulario.",
+ "Question": "Pregunta",
+ "Dropdown, multiple choice, ranking and picture choice questions.": "Preguntas desplegables, de opción múltiple, de clasificación y de elección de imagen.",
+ "This list replaces every current option. Options whose label stays the same keep their past answers.": "Esta lista reemplaza todas las opciones actuales. Las opciones cuyo nombre no cambia conservan sus respuestas anteriores.",
+ "Options": "Opciones",
+ "One label per option, in the order they should appear.": "Un nombre por opción, en el orden en que deben aparecer.",
+ "Find Responses": "Buscar respuestas",
+ "Looks up responses to a form.": "Busca las respuestas de un formulario.",
+ "Responses from the last 30 minutes may be missing. Use the New Submission trigger for real-time data.": "Puede que falten las respuestas de los últimos 30 minutos. Usa el disparador Nuevo envío para datos en tiempo real.",
+ "Search": "Buscar",
+ "Only responses containing this text in any answer or hidden field.": "Solo respuestas que contengan este texto en alguna respuesta o campo oculto.",
+ "Submitted After": "Enviado después de",
+ "Submitted Before": "Enviado antes de",
+ "Response Type": "Tipo de respuesta",
+ "Leave empty for completed responses only.": "Déjalo vacío para obtener solo respuestas completadas.",
+ "Completed": "Completada",
+ "Partial": "Parcial",
+ "Started": "Iniciada",
+ "Response IDs": "ID de respuestas",
+ "Only return the responses with these IDs.": "Devolver solo las respuestas con estos ID.",
+ "Sort": "Orden",
+ "Leave empty for newest first.": "Déjalo vacío para ver primero las más recientes.",
+ "Newest first": "Más recientes primero",
+ "Oldest first": "Más antiguas primero",
+ "Max Responses": "Máx. respuestas",
+ "1 to 1000. Leave empty for 25.": "De 1 a 1000. Déjalo vacío para 25.",
+ "Before Response": "Antes de la respuesta",
+ "Response token. Returns responses submitted before it, for paging.": "Token de respuesta. Devuelve las respuestas enviadas antes, para paginar.",
+ "After Response": "Después de la respuesta",
+ "Response token. Returns responses submitted after it.": "Token de respuesta. Devuelve las respuestas enviadas después.",
+ "Triggers when someone submits the form.": "Se activa cuando alguien envía el formulario.",
+ "A webhook is added to this form in Typeform when you publish the flow, and removed when you turn it off.": "Se añade un webhook a este formulario en Typeform al publicar el flujo y se elimina al desactivarlo.",
+ "Leave empty to keep the original form's workspace.": "Déjalo vacío para mantener el espacio de trabajo del formulario original."
}
\ No newline at end of file
diff --git a/packages/pieces/community/typeform/src/i18n/fr.json b/packages/pieces/community/typeform/src/i18n/fr.json
index 4b6fa43f386..c638d153523 100644
--- a/packages/pieces/community/typeform/src/i18n/fr.json
+++ b/packages/pieces/community/typeform/src/i18n/fr.json
@@ -26,5 +26,53 @@
"New Submission": "Nouvelle soumission",
"Triggers when Typeform receives a new submission": "Déclenche lorsque le formulaire de type reçoit une nouvelle soumission",
"Form": "Formulaire",
- "Form Name": "Nom du formulaire"
+ "Form Name": "Nom du formulaire",
+ "Create Form": "Créer un formulaire",
+ "Creates a new form, empty or with questions.": "Crée un nouveau formulaire, vide ou avec des questions.",
+ "Title": "Titre",
+ "Workspace": "Espace de travail",
+ "Leave empty for your default workspace.": "Laissez vide pour votre espace de travail par défaut.",
+ "Theme": "Thème",
+ "Leave empty for Typeform's default theme.": "Laissez vide pour le thème par défaut de Typeform.",
+ "Questions": "Questions",
+ "A JSON array of Typeform question objects.": "Un tableau JSON d'objets question Typeform.",
+ "Questions use the [Typeform field format](https://www.typeform.com/developers/create/reference/create-form/). Leave empty to start with an empty form.": "Les questions utilisent le [format de champ Typeform](https://www.typeform.com/developers/create/reference/create-form/). Laissez vide pour commencer avec un formulaire vide.",
+ "Duplicate Form": "Dupliquer un formulaire",
+ "Creates a copy of an existing form.": "Crée une copie d'un formulaire existant.",
+ "Leave empty for \"Copy of\" and the original title.": "Laissez vide pour \"Copy of\" suivi du titre d'origine.",
+ "Responses, translations and webhooks are not copied.": "Les réponses, traductions et webhooks ne sont pas copiés.",
+ "Update Choice Options": "Mettre à jour les options de choix",
+ "Replaces the options of a choice question in a form.": "Remplace les options d'une question à choix dans un formulaire.",
+ "Question": "Question",
+ "Dropdown, multiple choice, ranking and picture choice questions.": "Questions de liste déroulante, à choix multiples, de classement et de choix d'image.",
+ "This list replaces every current option. Options whose label stays the same keep their past answers.": "Cette liste remplace toutes les options actuelles. Les options dont le libellé ne change pas conservent leurs réponses passées.",
+ "Options": "Options",
+ "One label per option, in the order they should appear.": "Un libellé par option, dans l'ordre d'affichage souhaité.",
+ "Find Responses": "Trouver des réponses",
+ "Looks up responses to a form.": "Recherche les réponses à un formulaire.",
+ "Responses from the last 30 minutes may be missing. Use the New Submission trigger for real-time data.": "Les réponses des 30 dernières minutes peuvent manquer. Utilisez le déclencheur Nouvelle soumission pour des données en temps réel.",
+ "Search": "Rechercher",
+ "Only responses containing this text in any answer or hidden field.": "Uniquement les réponses contenant ce texte dans une réponse ou un champ masqué.",
+ "Submitted After": "Soumis après",
+ "Submitted Before": "Soumis avant",
+ "Response Type": "Type de réponse",
+ "Leave empty for completed responses only.": "Laissez vide pour les réponses terminées uniquement.",
+ "Completed": "Terminée",
+ "Partial": "Partielle",
+ "Started": "Commencée",
+ "Response IDs": "ID de réponse",
+ "Only return the responses with these IDs.": "Renvoyer uniquement les réponses ayant ces ID.",
+ "Sort": "Tri",
+ "Leave empty for newest first.": "Laissez vide pour les plus récentes d'abord.",
+ "Newest first": "Plus récentes d'abord",
+ "Oldest first": "Plus anciennes d'abord",
+ "Max Responses": "Réponses max.",
+ "1 to 1000. Leave empty for 25.": "De 1 à 1000. Laissez vide pour 25.",
+ "Before Response": "Avant la réponse",
+ "Response token. Returns responses submitted before it, for paging.": "Jeton de réponse. Renvoie les réponses soumises avant, pour la pagination.",
+ "After Response": "Après la réponse",
+ "Response token. Returns responses submitted after it.": "Jeton de réponse. Renvoie les réponses soumises après.",
+ "Triggers when someone submits the form.": "Se déclenche lorsque quelqu'un soumet le formulaire.",
+ "A webhook is added to this form in Typeform when you publish the flow, and removed when you turn it off.": "Un webhook est ajouté à ce formulaire dans Typeform lorsque vous publiez le flux, et supprimé lorsque vous le désactivez.",
+ "Leave empty to keep the original form's workspace.": "Laissez vide pour conserver l'espace de travail du formulaire d'origine."
}
\ No newline at end of file
diff --git a/packages/pieces/community/typeform/src/i18n/ja.json b/packages/pieces/community/typeform/src/i18n/ja.json
index 0b2f14eb856..d02a82d6989 100644
--- a/packages/pieces/community/typeform/src/i18n/ja.json
+++ b/packages/pieces/community/typeform/src/i18n/ja.json
@@ -26,5 +26,53 @@
"New Submission": "新しい提出",
"Triggers when Typeform receives a new submission": "Typeformが新しい提出物を受け取ったときにトリガー",
"Form": "フォーム",
- "Form Name": "フォーム名"
+ "Form Name": "フォーム名",
+ "Create Form": "フォームを作成",
+ "Creates a new form, empty or with questions.": "空のフォーム、または質問付きのフォームを新規作成します。",
+ "Title": "タイトル",
+ "Workspace": "ワークスペース",
+ "Leave empty for your default workspace.": "空欄の場合はデフォルトのワークスペースを使用します。",
+ "Theme": "テーマ",
+ "Leave empty for Typeform's default theme.": "空欄の場合は Typeform のデフォルトテーマを使用します。",
+ "Questions": "質問",
+ "A JSON array of Typeform question objects.": "Typeform の質問オブジェクトの JSON 配列。",
+ "Questions use the [Typeform field format](https://www.typeform.com/developers/create/reference/create-form/). Leave empty to start with an empty form.": "質問は [Typeform のフィールド形式](https://www.typeform.com/developers/create/reference/create-form/) を使用します。空欄の場合は空のフォームで開始します。",
+ "Duplicate Form": "フォームを複製",
+ "Creates a copy of an existing form.": "既存のフォームのコピーを作成します。",
+ "Leave empty for \"Copy of\" and the original title.": "空欄の場合は「Copy of」と元のタイトルになります。",
+ "Responses, translations and webhooks are not copied.": "回答、翻訳、Webhook はコピーされません。",
+ "Update Choice Options": "選択肢を更新",
+ "Replaces the options of a choice question in a form.": "フォーム内の選択式の質問の選択肢を置き換えます。",
+ "Question": "質問",
+ "Dropdown, multiple choice, ranking and picture choice questions.": "ドロップダウン、多肢選択、ランキング、画像選択の質問。",
+ "This list replaces every current option. Options whose label stays the same keep their past answers.": "このリストで現在の選択肢がすべて置き換わります。ラベルが変わらない選択肢は過去の回答を保持します。",
+ "Options": "選択肢",
+ "One label per option, in the order they should appear.": "選択肢ごとにラベルを 1 つ、表示したい順に入力します。",
+ "Find Responses": "回答を検索",
+ "Looks up responses to a form.": "フォームへの回答を検索します。",
+ "Responses from the last 30 minutes may be missing. Use the New Submission trigger for real-time data.": "直近 30 分以内の回答は含まれない場合があります。リアルタイムのデータには「新しい提出」トリガーを使用してください。",
+ "Search": "検索",
+ "Only responses containing this text in any answer or hidden field.": "いずれかの回答または非表示フィールドにこのテキストを含む回答のみ。",
+ "Submitted After": "送信日時(以降)",
+ "Submitted Before": "送信日時(以前)",
+ "Response Type": "回答の種類",
+ "Leave empty for completed responses only.": "空欄の場合は完了した回答のみになります。",
+ "Completed": "完了",
+ "Partial": "一部",
+ "Started": "開始済み",
+ "Response IDs": "回答 ID",
+ "Only return the responses with these IDs.": "これらの ID の回答のみを返します。",
+ "Sort": "並び順",
+ "Leave empty for newest first.": "空欄の場合は新しい順になります。",
+ "Newest first": "新しい順",
+ "Oldest first": "古い順",
+ "Max Responses": "最大回答数",
+ "1 to 1000. Leave empty for 25.": "1~1000。空欄の場合は 25。",
+ "Before Response": "この回答より前",
+ "Response token. Returns responses submitted before it, for paging.": "回答トークン。これより前に送信された回答を返します(ページ送り用)。",
+ "After Response": "この回答より後",
+ "Response token. Returns responses submitted after it.": "回答トークン。これより後に送信された回答を返します。",
+ "Triggers when someone submits the form.": "誰かがフォームを送信したときにトリガーします。",
+ "A webhook is added to this form in Typeform when you publish the flow, and removed when you turn it off.": "フローを公開すると Typeform のこのフォームに Webhook が追加され、オフにすると削除されます。",
+ "Leave empty to keep the original form's workspace.": "空欄の場合は元のフォームのワークスペースのままになります。"
}
\ No newline at end of file
diff --git a/packages/pieces/community/typeform/src/i18n/nl.json b/packages/pieces/community/typeform/src/i18n/nl.json
index 4430855af53..810315d65b0 100644
--- a/packages/pieces/community/typeform/src/i18n/nl.json
+++ b/packages/pieces/community/typeform/src/i18n/nl.json
@@ -26,5 +26,53 @@
"New Submission": "Nieuwe inzending",
"Triggers when Typeform receives a new submission": "Triggert wanneer het Typeformulier een nieuwe inzending ontvangt",
"Form": "Vorm",
- "Form Name": "Formulier naam"
+ "Form Name": "Formulier naam",
+ "Create Form": "Formulier maken",
+ "Creates a new form, empty or with questions.": "Maakt een nieuw formulier, leeg of met vragen.",
+ "Title": "Titel",
+ "Workspace": "Werkruimte",
+ "Leave empty for your default workspace.": "Laat leeg voor je standaardwerkruimte.",
+ "Theme": "Thema",
+ "Leave empty for Typeform's default theme.": "Laat leeg voor het standaardthema van Typeform.",
+ "Questions": "Vragen",
+ "A JSON array of Typeform question objects.": "Een JSON-array met Typeform-vraagobjecten.",
+ "Questions use the [Typeform field format](https://www.typeform.com/developers/create/reference/create-form/). Leave empty to start with an empty form.": "Vragen gebruiken het [Typeform-veldformaat](https://www.typeform.com/developers/create/reference/create-form/). Laat leeg om met een leeg formulier te beginnen.",
+ "Duplicate Form": "Formulier dupliceren",
+ "Creates a copy of an existing form.": "Maakt een kopie van een bestaand formulier.",
+ "Leave empty for \"Copy of\" and the original title.": "Laat leeg voor \"Copy of\" en de oorspronkelijke titel.",
+ "Responses, translations and webhooks are not copied.": "Antwoorden, vertalingen en webhooks worden niet gekopieerd.",
+ "Update Choice Options": "Keuzeopties bijwerken",
+ "Replaces the options of a choice question in a form.": "Vervangt de opties van een keuzevraag in een formulier.",
+ "Question": "Vraag",
+ "Dropdown, multiple choice, ranking and picture choice questions.": "Dropdown-, meerkeuze-, rangschik- en afbeeldingskeuzevragen.",
+ "This list replaces every current option. Options whose label stays the same keep their past answers.": "Deze lijst vervangt alle huidige opties. Opties waarvan het label gelijk blijft, behouden hun eerdere antwoorden.",
+ "Options": "Opties",
+ "One label per option, in the order they should appear.": "Eén label per optie, in de volgorde waarin ze moeten verschijnen.",
+ "Find Responses": "Antwoorden zoeken",
+ "Looks up responses to a form.": "Zoekt antwoorden op een formulier op.",
+ "Responses from the last 30 minutes may be missing. Use the New Submission trigger for real-time data.": "Antwoorden van de laatste 30 minuten kunnen ontbreken. Gebruik de trigger Nieuwe inzending voor realtime gegevens.",
+ "Search": "Zoeken",
+ "Only responses containing this text in any answer or hidden field.": "Alleen antwoorden met deze tekst in een antwoord of verborgen veld.",
+ "Submitted After": "Ingediend na",
+ "Submitted Before": "Ingediend voor",
+ "Response Type": "Type antwoord",
+ "Leave empty for completed responses only.": "Laat leeg voor alleen voltooide antwoorden.",
+ "Completed": "Voltooid",
+ "Partial": "Gedeeltelijk",
+ "Started": "Gestart",
+ "Response IDs": "Antwoord-ID's",
+ "Only return the responses with these IDs.": "Alleen de antwoorden met deze ID's teruggeven.",
+ "Sort": "Sortering",
+ "Leave empty for newest first.": "Laat leeg voor nieuwste eerst.",
+ "Newest first": "Nieuwste eerst",
+ "Oldest first": "Oudste eerst",
+ "Max Responses": "Max. antwoorden",
+ "1 to 1000. Leave empty for 25.": "1 tot 1000. Laat leeg voor 25.",
+ "Before Response": "Voor antwoord",
+ "Response token. Returns responses submitted before it, for paging.": "Antwoordtoken. Geeft eerder ingediende antwoorden terug, om te bladeren.",
+ "After Response": "Na antwoord",
+ "Response token. Returns responses submitted after it.": "Antwoordtoken. Geeft later ingediende antwoorden terug.",
+ "Triggers when someone submits the form.": "Wordt geactiveerd wanneer iemand het formulier indient.",
+ "A webhook is added to this form in Typeform when you publish the flow, and removed when you turn it off.": "Er wordt een webhook aan dit formulier in Typeform toegevoegd wanneer je de flow publiceert, en verwijderd wanneer je hem uitzet.",
+ "Leave empty to keep the original form's workspace.": "Laat leeg om de werkruimte van het oorspronkelijke formulier te houden."
}
\ No newline at end of file
diff --git a/packages/pieces/community/typeform/src/i18n/pt.json b/packages/pieces/community/typeform/src/i18n/pt.json
index e73ac90799f..44e4bd0a16b 100644
--- a/packages/pieces/community/typeform/src/i18n/pt.json
+++ b/packages/pieces/community/typeform/src/i18n/pt.json
@@ -26,5 +26,53 @@
"New Submission": "Nova Submissão",
"Triggers when Typeform receives a new submission": "Gatilho quando o Typeform receber uma nova submissão",
"Form": "Formulário",
- "Form Name": "Nome do formulário"
+ "Form Name": "Nome do formulário",
+ "Create Form": "Criar formulário",
+ "Creates a new form, empty or with questions.": "Cria um novo formulário, vazio ou com perguntas.",
+ "Title": "Título",
+ "Workspace": "Espaço de trabalho",
+ "Leave empty for your default workspace.": "Deixe vazio para usar seu espaço de trabalho padrão.",
+ "Theme": "Tema",
+ "Leave empty for Typeform's default theme.": "Deixe vazio para usar o tema padrão do Typeform.",
+ "Questions": "Perguntas",
+ "A JSON array of Typeform question objects.": "Um array JSON de objetos de pergunta do Typeform.",
+ "Questions use the [Typeform field format](https://www.typeform.com/developers/create/reference/create-form/). Leave empty to start with an empty form.": "As perguntas usam o [formato de campos do Typeform](https://www.typeform.com/developers/create/reference/create-form/). Deixe vazio para começar com um formulário vazio.",
+ "Duplicate Form": "Duplicar formulário",
+ "Creates a copy of an existing form.": "Cria uma cópia de um formulário existente.",
+ "Leave empty for \"Copy of\" and the original title.": "Deixe vazio para usar \"Copy of\" e o título original.",
+ "Responses, translations and webhooks are not copied.": "Respostas, traduções e webhooks não são copiados.",
+ "Update Choice Options": "Atualizar opções de escolha",
+ "Replaces the options of a choice question in a form.": "Substitui as opções de uma pergunta de escolha em um formulário.",
+ "Question": "Pergunta",
+ "Dropdown, multiple choice, ranking and picture choice questions.": "Perguntas de lista suspensa, múltipla escolha, classificação e escolha de imagem.",
+ "This list replaces every current option. Options whose label stays the same keep their past answers.": "Esta lista substitui todas as opções atuais. Opções cujo rótulo não muda mantêm suas respostas anteriores.",
+ "Options": "Opções",
+ "One label per option, in the order they should appear.": "Um rótulo por opção, na ordem em que devem aparecer.",
+ "Find Responses": "Encontrar respostas",
+ "Looks up responses to a form.": "Busca respostas de um formulário.",
+ "Responses from the last 30 minutes may be missing. Use the New Submission trigger for real-time data.": "Respostas dos últimos 30 minutos podem estar ausentes. Use o gatilho Nova Submissão para dados em tempo real.",
+ "Search": "Pesquisar",
+ "Only responses containing this text in any answer or hidden field.": "Apenas respostas que contêm este texto em alguma resposta ou campo oculto.",
+ "Submitted After": "Enviado após",
+ "Submitted Before": "Enviado antes de",
+ "Response Type": "Tipo de resposta",
+ "Leave empty for completed responses only.": "Deixe vazio para apenas respostas concluídas.",
+ "Completed": "Concluída",
+ "Partial": "Parcial",
+ "Started": "Iniciada",
+ "Response IDs": "IDs de respostas",
+ "Only return the responses with these IDs.": "Retornar apenas as respostas com estes IDs.",
+ "Sort": "Ordem",
+ "Leave empty for newest first.": "Deixe vazio para as mais recentes primeiro.",
+ "Newest first": "Mais recentes primeiro",
+ "Oldest first": "Mais antigas primeiro",
+ "Max Responses": "Máx. de respostas",
+ "1 to 1000. Leave empty for 25.": "De 1 a 1000. Deixe vazio para 25.",
+ "Before Response": "Antes da resposta",
+ "Response token. Returns responses submitted before it, for paging.": "Token de resposta. Retorna as respostas enviadas antes dele, para paginação.",
+ "After Response": "Depois da resposta",
+ "Response token. Returns responses submitted after it.": "Token de resposta. Retorna as respostas enviadas depois dele.",
+ "Triggers when someone submits the form.": "Dispara quando alguém envia o formulário.",
+ "A webhook is added to this form in Typeform when you publish the flow, and removed when you turn it off.": "Um webhook é adicionado a este formulário no Typeform quando você publica o fluxo e removido quando você o desativa.",
+ "Leave empty to keep the original form's workspace.": "Deixe vazio para manter o espaço de trabalho do formulário original."
}
\ No newline at end of file
diff --git a/packages/pieces/community/typeform/src/i18n/ru.json b/packages/pieces/community/typeform/src/i18n/ru.json
index 88f913261c4..d5bfb717e83 100644
--- a/packages/pieces/community/typeform/src/i18n/ru.json
+++ b/packages/pieces/community/typeform/src/i18n/ru.json
@@ -19,5 +19,53 @@
"New Submission": "Новая заявка",
"Triggers when Typeform receives a new submission": "Триггеры, когда ТипФорма получает новую справку",
"Form": "Форма",
- "Form Name": "Имя формы"
+ "Form Name": "Имя формы",
+ "Create Form": "Создать форму",
+ "Creates a new form, empty or with questions.": "Создаёт новую форму, пустую или с вопросами.",
+ "Title": "Название",
+ "Workspace": "Рабочее пространство",
+ "Leave empty for your default workspace.": "Оставьте пустым, чтобы использовать рабочее пространство по умолчанию.",
+ "Theme": "Тема",
+ "Leave empty for Typeform's default theme.": "Оставьте пустым, чтобы использовать тему Typeform по умолчанию.",
+ "Questions": "Вопросы",
+ "A JSON array of Typeform question objects.": "JSON-массив объектов вопросов Typeform.",
+ "Questions use the [Typeform field format](https://www.typeform.com/developers/create/reference/create-form/). Leave empty to start with an empty form.": "Вопросы задаются в [формате полей Typeform](https://www.typeform.com/developers/create/reference/create-form/). Оставьте пустым, чтобы начать с пустой формы.",
+ "Duplicate Form": "Дублировать форму",
+ "Creates a copy of an existing form.": "Создаёт копию существующей формы.",
+ "Leave empty for \"Copy of\" and the original title.": "Оставьте пустым, чтобы использовать \"Copy of\" и исходное название.",
+ "Responses, translations and webhooks are not copied.": "Ответы, переводы и вебхуки не копируются.",
+ "Update Choice Options": "Обновить варианты ответа",
+ "Replaces the options of a choice question in a form.": "Заменяет варианты ответа вопроса с выбором в форме.",
+ "Question": "Вопрос",
+ "Dropdown, multiple choice, ranking and picture choice questions.": "Вопросы с раскрывающимся списком, множественным выбором, ранжированием и выбором изображения.",
+ "This list replaces every current option. Options whose label stays the same keep their past answers.": "Этот список заменяет все текущие варианты. Варианты с неизменной подписью сохраняют прошлые ответы.",
+ "Options": "Варианты",
+ "One label per option, in the order they should appear.": "Одна подпись на вариант, в нужном порядке.",
+ "Find Responses": "Найти ответы",
+ "Looks up responses to a form.": "Ищет ответы на форму.",
+ "Responses from the last 30 minutes may be missing. Use the New Submission trigger for real-time data.": "Ответы за последние 30 минут могут отсутствовать. Для данных в реальном времени используйте триггер «Новая заявка».",
+ "Search": "Поиск",
+ "Only responses containing this text in any answer or hidden field.": "Только ответы, содержащие этот текст в любом ответе или скрытом поле.",
+ "Submitted After": "Отправлено после",
+ "Submitted Before": "Отправлено до",
+ "Response Type": "Тип ответа",
+ "Leave empty for completed responses only.": "Оставьте пустым, чтобы получить только завершённые ответы.",
+ "Completed": "Завершён",
+ "Partial": "Частичный",
+ "Started": "Начат",
+ "Response IDs": "ID ответов",
+ "Only return the responses with these IDs.": "Возвращать только ответы с этими ID.",
+ "Sort": "Сортировка",
+ "Leave empty for newest first.": "Оставьте пустым, чтобы сначала шли новые.",
+ "Newest first": "Сначала новые",
+ "Oldest first": "Сначала старые",
+ "Max Responses": "Макс. ответов",
+ "1 to 1000. Leave empty for 25.": "От 1 до 1000. Пусто — 25.",
+ "Before Response": "До ответа",
+ "Response token. Returns responses submitted before it, for paging.": "Токен ответа. Возвращает ответы, отправленные раньше него, для пагинации.",
+ "After Response": "После ответа",
+ "Response token. Returns responses submitted after it.": "Токен ответа. Возвращает ответы, отправленные после него.",
+ "Triggers when someone submits the form.": "Срабатывает, когда кто-то отправляет форму.",
+ "A webhook is added to this form in Typeform when you publish the flow, and removed when you turn it off.": "При публикации потока к этой форме в Typeform добавляется вебхук, а при его отключении — удаляется.",
+ "Leave empty to keep the original form's workspace.": "Оставьте пустым, чтобы сохранить рабочее пространство исходной формы."
}
\ No newline at end of file
diff --git a/packages/pieces/community/typeform/src/i18n/translation.json b/packages/pieces/community/typeform/src/i18n/translation.json
index b455d63738c..30b16106d7b 100644
--- a/packages/pieces/community/typeform/src/i18n/translation.json
+++ b/packages/pieces/community/typeform/src/i18n/translation.json
@@ -35,7 +35,7 @@
"Changes a form's title, public status, theme or workspace.": "Changes a form's title, public status, theme or workspace.",
"Replaces a form's whole definition, including its questions.": "Replaces a form's whole definition, including its questions.",
"Creates a copy of an existing form.": "Creates a copy of an existing form.",
- "Replaces the options of a dropdown, multiple choice or ranking question.": "Replaces the options of a dropdown, multiple choice or ranking question.",
+ "Replaces the options of a choice question in a form.": "Replaces the options of a choice question in a form.",
"Permanently deletes a form and all of its responses.": "Permanently deletes a form and all of its responses.",
"Gets the button labels, error messages and other texts of a form.": "Gets the button labels, error messages and other texts of a form.",
"Changes button labels, error messages and other texts of a form.": "Changes button labels, error messages and other texts of a form.",
@@ -66,13 +66,13 @@
"Title": "Title",
"Workspace": "Workspace",
"Theme": "Theme",
+ "Markdown": "Markdown",
"Questions": "Questions",
"Public": "Public",
"Theme ID": "Theme ID",
"Form Definition": "Form Definition",
"Allow Field Deletion": "Allow Field Deletion",
"Form": "Form",
- "New Title": "New Title",
"Question": "Question",
"Options": "Options",
"Messages": "Messages",
@@ -81,8 +81,9 @@
"Response Type": "Response Type",
"Response IDs": "Response IDs",
"Sort": "Sort",
- "Before": "Before",
- "After": "After",
+ "Max Responses": "Max Responses",
+ "Before Response": "Before Response",
+ "After Response": "After Response",
"Account ID": "Account ID",
"Name": "Name",
"Font": "Font",
@@ -112,21 +113,29 @@
"Page number, starting at 1.": "Page number, starting at 1.",
"How many items to return per page, from 1 to 200.": "How many items to return per page, from 1 to 200.",
"Form ID, from List Forms.": "Form ID, from List Forms.",
- "Theme ID, from List Themes.": "Theme ID, from List Themes.",
- "JSON array of Typeform field objects, as documented in the Typeform Create API. Leave empty for an empty form.": "JSON array of Typeform field objects, as documented in the Typeform Create API. Leave empty for an empty form.",
+ "Leave empty for your default workspace.": "Leave empty for your default workspace.",
+ "Leave empty for Typeform's default theme.": "Leave empty for Typeform's default theme.",
+ "Questions use the [Typeform field format](https://www.typeform.com/developers/create/reference/create-form/). Leave empty to start with an empty form.": "Questions use the [Typeform field format](https://www.typeform.com/developers/create/reference/create-form/). Leave empty to start with an empty form.",
+ "A JSON array of Typeform question objects.": "A JSON array of Typeform question objects.",
"Whether the form is open and accepts responses.": "Whether the form is open and accepts responses.",
+ "Theme ID, from List Themes.": "Theme ID, from List Themes.",
"The full form JSON from Get Form, with your changes. Must include title.": "The full form JSON from Get Form, with your changes. Must include title.",
"Allow removing existing questions. Their responses are deleted too.": "Allow removing existing questions. Their responses are deleted too.",
- "Form Name": "Form Name",
- "Defaults to \"Copy of\" and the original title.": "Defaults to \"Copy of\" and the original title.",
- "Dropdown, multiple choice, ranking or picture choice question. Field ID or ref, from Get Form.": "Dropdown, multiple choice, ranking or picture choice question. Field ID or ref, from Get Form.",
- "The full new list of option labels, in order.": "The full new list of option labels, in order.",
+ "Leave empty for \"Copy of\" and the original title.": "Leave empty for \"Copy of\" and the original title.",
+ "Leave empty to keep the original form's workspace.": "Leave empty to keep the original form's workspace.",
+ "Responses, translations and webhooks are not copied.": "Responses, translations and webhooks are not copied.",
+ "Dropdown, multiple choice, ranking and picture choice questions.": "Dropdown, multiple choice, ranking and picture choice questions.",
+ "This list replaces every current option. Options whose label stays the same keep their past answers.": "This list replaces every current option. Options whose label stays the same keep their past answers.",
+ "One label per option, in the order they should appear.": "One label per option, in the order they should appear.",
"JSON object of message keys and their new text.": "JSON object of message keys and their new text.",
+ "Responses from the last 30 minutes may be missing. Use the New Submission trigger for real-time data.": "Responses from the last 30 minutes may be missing. Use the New Submission trigger for real-time data.",
"Only responses containing this text in any answer or hidden field.": "Only responses containing this text in any answer or hidden field.",
- "Only these responses.": "Only these responses.",
- "How many responses to return, from 1 to 1000. Default 25.": "How many responses to return, from 1 to 1000. Default 25.",
- "Token of a response. Returns responses older than it, for the next page.": "Token of a response. Returns responses older than it, for the next page.",
- "Token of a response. Returns responses newer than it.": "Token of a response. Returns responses newer than it.",
+ "Leave empty for completed responses only.": "Leave empty for completed responses only.",
+ "Only return the responses with these IDs.": "Only return the responses with these IDs.",
+ "Leave empty for newest first.": "Leave empty for newest first.",
+ "1 to 1000. Leave empty for 25.": "1 to 1000. Leave empty for 25.",
+ "Response token. Returns responses submitted before it, for paging.": "Response token. Returns responses submitted before it, for paging.",
+ "Response token. Returns responses submitted after it.": "Response token. Returns responses submitted after it.",
"Only workspaces whose name contains this text.": "Only workspaces whose name contains this text.",
"Only workspaces of this account (account_id from a workspace).": "Only workspaces of this account (account_id from a workspace).",
"account_id from List Workspaces. Leave empty for your own account.": "account_id from List Workspaces. Leave empty for your own account.",
@@ -151,8 +160,8 @@
"Completed": "Completed",
"Partial": "Partial",
"Started": "Started",
- "Submitted, newest first": "Submitted, newest first",
- "Submitted, oldest first": "Submitted, oldest first",
+ "Newest first": "Newest first",
+ "Oldest first": "Oldest first",
"Acme": "Acme",
"Arial": "Arial",
"Arvo": "Arvo",
@@ -197,5 +206,6 @@
"DELETE": "DELETE",
"HEAD": "HEAD",
"New Submission": "New Submission",
- "Triggers when Typeform receives a new submission": "Triggers when Typeform receives a new submission"
+ "Triggers when someone submits the form.": "Triggers when someone submits the form.",
+ "A webhook is added to this form in Typeform when you publish the flow, and removed when you turn it off.": "A webhook is added to this form in Typeform when you publish the flow, and removed when you turn it off."
}
\ No newline at end of file
diff --git a/packages/pieces/community/typeform/src/i18n/zh.json b/packages/pieces/community/typeform/src/i18n/zh.json
index a44a23e4e4b..29ed856cd3a 100644
--- a/packages/pieces/community/typeform/src/i18n/zh.json
+++ b/packages/pieces/community/typeform/src/i18n/zh.json
@@ -1,5 +1,5 @@
{
- "Create beautiful online forms and surveys": "Create beautiful online forms and surveys",
+ "Create beautiful online forms and surveys": "创建精美的在线表单和调查",
"Custom API Call": "自定义 API 呼叫",
"Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
"Method": "方法",
@@ -23,8 +23,56 @@
"JSON": "JSON",
"Form Data": "表单数据",
"Raw": "原始文件",
- "New Submission": "New Submission",
+ "New Submission": "新提交",
"Triggers when Typeform receives a new submission": "Triggers when Typeform receives a new submission",
- "Form": "Form",
- "Form Name": "Form Name"
+ "Form": "表单",
+ "Form Name": "Form Name",
+ "Create Form": "创建表单",
+ "Creates a new form, empty or with questions.": "创建一个新表单,可以为空或包含问题。",
+ "Title": "标题",
+ "Workspace": "工作区",
+ "Leave empty for your default workspace.": "留空则使用默认工作区。",
+ "Theme": "主题",
+ "Leave empty for Typeform's default theme.": "留空则使用 Typeform 的默认主题。",
+ "Questions": "问题",
+ "A JSON array of Typeform question objects.": "由 Typeform 问题对象组成的 JSON 数组。",
+ "Questions use the [Typeform field format](https://www.typeform.com/developers/create/reference/create-form/). Leave empty to start with an empty form.": "问题使用 [Typeform 字段格式](https://www.typeform.com/developers/create/reference/create-form/)。留空则从空表单开始。",
+ "Duplicate Form": "复制表单",
+ "Creates a copy of an existing form.": "创建现有表单的副本。",
+ "Leave empty for \"Copy of\" and the original title.": "留空则使用 \"Copy of\" 加原标题。",
+ "Responses, translations and webhooks are not copied.": "回复、翻译和 Webhook 不会被复制。",
+ "Update Choice Options": "更新选项",
+ "Replaces the options of a choice question in a form.": "替换表单中选择题的选项。",
+ "Question": "问题",
+ "Dropdown, multiple choice, ranking and picture choice questions.": "下拉、多选、排序和图片选择题。",
+ "This list replaces every current option. Options whose label stays the same keep their past answers.": "此列表会替换所有当前选项。标签不变的选项会保留其过往回复。",
+ "Options": "选项",
+ "One label per option, in the order they should appear.": "每个选项一个标签,按应显示的顺序排列。",
+ "Find Responses": "查找回复",
+ "Looks up responses to a form.": "查找表单的回复。",
+ "Responses from the last 30 minutes may be missing. Use the New Submission trigger for real-time data.": "最近 30 分钟内的回复可能缺失。如需实时数据,请使用“新提交”触发器。",
+ "Search": "搜索",
+ "Only responses containing this text in any answer or hidden field.": "仅包含此文本(在任意答案或隐藏字段中)的回复。",
+ "Submitted After": "提交时间晚于",
+ "Submitted Before": "提交时间早于",
+ "Response Type": "回复类型",
+ "Leave empty for completed responses only.": "留空则仅返回已完成的回复。",
+ "Completed": "已完成",
+ "Partial": "部分完成",
+ "Started": "已开始",
+ "Response IDs": "回复 ID",
+ "Only return the responses with these IDs.": "仅返回具有这些 ID 的回复。",
+ "Sort": "排序",
+ "Leave empty for newest first.": "留空则最新的排在前面。",
+ "Newest first": "最新优先",
+ "Oldest first": "最早优先",
+ "Max Responses": "最大回复数",
+ "1 to 1000. Leave empty for 25.": "1 到 1000。留空则为 25。",
+ "Before Response": "早于此回复",
+ "Response token. Returns responses submitted before it, for paging.": "回复令牌。返回在其之前提交的回复,用于分页。",
+ "After Response": "晚于此回复",
+ "Response token. Returns responses submitted after it.": "回复令牌。返回在其之后提交的回复。",
+ "Triggers when someone submits the form.": "当有人提交表单时触发。",
+ "A webhook is added to this form in Typeform when you publish the flow, and removed when you turn it off.": "发布流程时会在 Typeform 中为此表单添加一个 Webhook,关闭流程时会将其删除。",
+ "Leave empty to keep the original form's workspace.": "留空则保留原表单所在的工作区。"
}
\ No newline at end of file
diff --git a/packages/pieces/community/typeform/src/index.ts b/packages/pieces/community/typeform/src/index.ts
index a31bb824ecb..dded5817be9 100644
--- a/packages/pieces/community/typeform/src/index.ts
+++ b/packages/pieces/community/typeform/src/index.ts
@@ -1,6 +1,7 @@
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { createPiece, PieceCategory } from '@activepieces/pieces-framework';
import { typeformAuth } from './lib/auth';
+import { typeformCommon } from './lib/common';
import { typeformNewSubmission } from './lib/trigger/new-submission';
import { createFormAction } from './lib/actions/create-form';
import { createThemeAction } from './lib/actions/create-theme';
@@ -36,7 +37,7 @@ export const typeform = createPiece({
displayName: 'Typeform',
description: 'Create beautiful online forms and surveys',
- minimumSupportedRelease: '0.87.0',
+ minimumSupportedRelease: '0.88.2',
logoUrl: 'https://cdn.activepieces.com/pieces/typeform.png',
categories: [PieceCategory.FORMS_AND_SURVEYS],
actions: [
@@ -73,6 +74,12 @@ export const typeform = createPiece({
authMapping: async (auth) => ({
Authorization: `Bearer ${auth.access_token}`,
}),
+ props: {
+ url: {
+ description: `Full URL, or a path relative to ${typeformCommon.baseUrl}`,
+ placeholder: '/forms',
+ },
+ },
}),
],
auth: typeformAuth,
diff --git a/packages/pieces/community/typeform/src/lib/actions/create-form.ts b/packages/pieces/community/typeform/src/lib/actions/create-form.ts
index 1aa4d315fa8..5f1473ef82a 100644
--- a/packages/pieces/community/typeform/src/lib/actions/create-form.ts
+++ b/packages/pieces/community/typeform/src/lib/actions/create-form.ts
@@ -1,4 +1,4 @@
-import { createAction, Property } from '@activepieces/pieces-framework';
+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';
import { HttpMethod } from '@activepieces/pieces-common';
import { typeformAuth } from '../auth';
import { typeformCommon, TypeformRecord } from '../common';
@@ -17,23 +17,32 @@ export const createFormAction = createAction({
idempotent: false,
},
outputSchema: formOutputSchema,
+ propertyGroups: [
+ { key: 'form', display: 'section', label: 'New form', icon: 'file', props: ['title', 'workspace', 'theme'] },
+ { key: 'content', display: 'section', label: 'Form content', icon: 'code', props: ['questions_info', 'fields'] },
+ ],
props: {
title: Property.ShortText({
displayName: 'Title',
+ placeholder: 'Customer feedback survey',
required: true,
}),
workspace: typeformCommon.workspace,
theme: typeformCommon.theme,
+ questions_info: Property.MarkDown({
+ value:
+ 'Questions use the [Typeform field format](https://www.typeform.com/developers/create/reference/create-form/). Leave empty to start with an empty form.',
+ variant: MarkdownVariant.INFO,
+ }),
fields: Property.Json({
displayName: 'Questions',
- description:
- 'JSON array of Typeform field objects, as documented in the Typeform Create API. Leave empty for an empty form.',
+ description: 'A JSON array of Typeform question objects.',
required: false,
}),
},
async run({ auth, propsValue }) {
const { title, workspace, theme, fields } = propsValue;
- if (fields !== undefined && fields !== null && !Array.isArray(fields)) {
+ if (!isEmptyQuestions({ fields }) && !Array.isArray(fields)) {
throw new Error('Questions must be a JSON array of field objects.');
}
return typeformCommon.typeformRequest<TypeformRecord>({
@@ -49,3 +58,7 @@ export const createFormAction = createAction({
});
},
});
+
+function isEmptyQuestions({ fields }: { fields: unknown }): boolean {
+ return fields === undefined || fields === null || (typeformCommon.isRecord(fields) && Object.keys(fields).length === 0);
+}
diff --git a/packages/pieces/community/typeform/src/lib/actions/duplicate-form.ts b/packages/pieces/community/typeform/src/lib/actions/duplicate-form.ts
index d0fb7e67392..71eba11e0b5 100644
--- a/packages/pieces/community/typeform/src/lib/actions/duplicate-form.ts
+++ b/packages/pieces/community/typeform/src/lib/actions/duplicate-form.ts
@@ -1,4 +1,4 @@
-import { createAction, Property } from '@activepieces/pieces-framework';
+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';
import { HttpMethod } from '@activepieces/pieces-common';
import { typeformAuth } from '../auth';
import { typeformCommon, TypeformRecord } from '../common';
@@ -17,14 +17,22 @@ export const duplicateFormAction = createAction({
idempotent: false,
},
outputSchema: formOutputSchema,
+ propertyGroups: [
+ { key: 'source', display: 'section', label: 'Original', icon: 'file', props: ['form_id'] },
+ { key: 'copy', display: 'section', label: 'The copy', icon: 'file', props: ['title', 'workspace', 'copy_info'] },
+ ],
props: {
form_id: typeformCommon.form,
title: Property.ShortText({
- displayName: 'New Title',
- description: 'Defaults to "Copy of" and the original title.',
+ displayName: 'Title',
+ description: 'Leave empty for "Copy of" and the original title.',
required: false,
}),
- workspace: typeformCommon.workspace,
+ workspace: typeformCommon.copyWorkspace,
+ copy_info: Property.MarkDown({
+ value: 'Responses, translations and webhooks are not copied.',
+ variant: MarkdownVariant.INFO,
+ }),
},
async run({ auth, propsValue }) {
const { form_id, title, workspace } = propsValue;
diff --git a/packages/pieces/community/typeform/src/lib/actions/list-responses.ts b/packages/pieces/community/typeform/src/lib/actions/list-responses.ts
index 4361993a076..6606a639e8b 100644
--- a/packages/pieces/community/typeform/src/lib/actions/list-responses.ts
+++ b/packages/pieces/community/typeform/src/lib/actions/list-responses.ts
@@ -1,4 +1,4 @@
-import { createAction, Property } from '@activepieces/pieces-framework';
+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';
import { HttpMethod } from '@activepieces/pieces-common';
import { typeformAuth } from '../auth';
import { typeformCommon, TypeformPage, TypeformRecord } from '../common';
@@ -17,8 +17,23 @@ export const listResponsesAction = createAction({
idempotent: true,
},
outputSchema: responsesOutputSchema,
+ propertyGroups: [
+ { key: 'form', display: 'section', label: 'Search in', icon: 'file', props: ['form_id', 'lag_info'] },
+ {
+ key: 'filters',
+ display: 'section',
+ label: 'Filters',
+ icon: 'filter',
+ props: ['query', 'since', 'until', 'responseType', 'includedResponseIds'],
+ },
+ { key: 'results', display: 'section', label: 'Results', icon: 'sliders', props: ['sort', 'pageSize'] },
+ ],
props: {
form_id: typeformCommon.form,
+ lag_info: Property.MarkDown({
+ value: 'Responses from the last 30 minutes may be missing. Use the New Submission trigger for real-time data.',
+ variant: MarkdownVariant.INFO,
+ }),
query: Property.ShortText({
displayName: 'Search',
description: 'Only responses containing this text in any answer or hidden field.',
@@ -27,13 +42,16 @@ export const listResponsesAction = createAction({
since: Property.DateTime({
displayName: 'Submitted After',
required: false,
+ width: 'half',
}),
until: Property.DateTime({
displayName: 'Submitted Before',
required: false,
+ width: 'half',
}),
responseType: Property.StaticDropdown({
displayName: 'Response Type',
+ description: 'Leave empty for completed responses only.',
required: false,
options: {
options: [
@@ -45,33 +63,38 @@ export const listResponsesAction = createAction({
}),
includedResponseIds: Property.Array({
displayName: 'Response IDs',
- description: 'Only these responses.',
+ description: 'Only return the responses with these IDs.',
required: false,
}),
sort: Property.StaticDropdown({
displayName: 'Sort',
+ description: 'Leave empty for newest first.',
required: false,
+ width: 'half',
options: {
options: [
- { label: 'Submitted, newest first', value: 'submitted_at,desc' },
- { label: 'Submitted, oldest first', value: 'submitted_at,asc' },
+ { label: 'Newest first', value: 'submitted_at,desc' },
+ { label: 'Oldest first', value: 'submitted_at,asc' },
],
},
}),
pageSize: Property.Number({
- displayName: 'Page Size',
- description: 'How many responses to return, from 1 to 1000. Default 25.',
+ displayName: 'Max Responses',
+ description: '1 to 1000. Leave empty for 25.',
required: false,
+ width: 'half',
}),
before: Property.ShortText({
- displayName: 'Before',
- description: 'Token of a response. Returns responses older than it, for the next page.',
+ displayName: 'Before Response',
+ description: 'Response token. Returns responses submitted before it, for paging.',
required: false,
+ advanced: true,
}),
after: Property.ShortText({
- displayName: 'After',
- description: 'Token of a response. Returns responses newer than it.',
+ displayName: 'After Response',
+ description: 'Response token. Returns responses submitted after it.',
required: false,
+ advanced: true,
}),
},
async run({ auth, propsValue }) {
diff --git a/packages/pieces/community/typeform/src/lib/actions/update-choice-options.ts b/packages/pieces/community/typeform/src/lib/actions/update-choice-options.ts
index d8767fc9216..18bd1b50c7d 100644
--- a/packages/pieces/community/typeform/src/lib/actions/update-choice-options.ts
+++ b/packages/pieces/community/typeform/src/lib/actions/update-choice-options.ts
@@ -1,4 +1,4 @@
-import { createAction, Property } from '@activepieces/pieces-framework';
+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';
import { HttpMethod } from '@activepieces/pieces-common';
import { typeformAuth } from '../auth';
import { typeformCommon, TypeformRecord } from '../common';
@@ -9,7 +9,7 @@ export const updateChoiceOptionsAction = createAction({
name: 'update_choice_options',
classification: 'WRITE',
displayName: 'Update Choice Options',
- description: 'Replaces the options of a dropdown, multiple choice or ranking question.',
+ description: 'Replaces the options of a choice question in a form.',
audience: 'both',
aiMetadata: {
description:
@@ -17,18 +17,26 @@ export const updateChoiceOptionsAction = createAction({
idempotent: true,
},
outputSchema: formOutputSchema,
+ propertyGroups: [
+ { key: 'question', display: 'section', label: 'Target', icon: 'type', props: ['form_id', 'field'] },
+ { key: 'changes', display: 'section', label: 'Changes', icon: 'tag', props: ['changes_info', 'choices'] },
+ ],
props: {
form_id: typeformCommon.form,
field: typeformCommon.choiceField,
+ changes_info: Property.MarkDown({
+ value: 'This list replaces every current option. Options whose label stays the same keep their past answers.',
+ variant: MarkdownVariant.INFO,
+ }),
choices: Property.Array({
displayName: 'Options',
- description: 'The full new list of option labels, in order.',
+ description: 'One label per option, in the order they should appear.',
required: true,
}),
},
async run({ auth, propsValue }) {
const { form_id, field, choices } = propsValue;
- const labels = typeformCommon.toStringList({ values: choices });
+ const labels = [...new Set(typeformCommon.toStringList({ values: choices }))];
if (labels.length === 0) {
throw new Error('Options must contain at least one label.');
}
diff --git a/packages/pieces/community/typeform/src/lib/common/index.ts b/packages/pieces/community/typeform/src/lib/common/index.ts
index 555351f95b1..6b460093718 100644
--- a/packages/pieces/community/typeform/src/lib/common/index.ts
+++ b/packages/pieces/community/typeform/src/lib/common/index.ts
@@ -229,6 +229,17 @@ function toTypeformError({ error }: { error: unknown }): unknown {
return new Error(`${code} (${status}): ${description}${details}`.trim());
}
+function workspaceDropdown({ description }: { description: string }) {
+ return Property.Dropdown<string, false, typeof typeformAuth>({
+ auth: typeformAuth,
+ displayName: 'Workspace',
+ description,
+ required: false,
+ refreshers: [],
+ options: async ({ auth }) => workspaceOptions({ token: auth?.access_token }),
+ });
+}
+
async function workspaceOptions({ token }: { token: string | undefined }): Promise<DropdownState<string>> {
if (!token) {
return { disabled: true, placeholder: 'Connect your Typeform account', options: [] };
@@ -284,7 +295,6 @@ const CHOICE_FIELD_TYPES = ['dropdown', 'multiple_choice', 'ranking', 'picture_c
export const formsDropdown = Property.Dropdown<string, true, typeof typeformAuth>({
auth: typeformAuth,
displayName: 'Form',
- description: 'Form Name',
required: true,
refreshers: [],
async options({ auth: authentication }) {
@@ -293,7 +303,7 @@ export const formsDropdown = Property.Dropdown<string, true, typeof typeformAuth
if (!auth) {
return {
disabled: true,
- placeholder: 'Connect typeform account',
+ placeholder: 'Connect your Typeform account',
options: [],
};
}
@@ -331,9 +341,17 @@ export const formsDropdown = Property.Dropdown<string, true, typeof typeformAuth
page++;
} while (hasMore);
+ if (options.length === 0) {
+ return {
+ disabled: false,
+ options: [],
+ placeholder: 'No forms found. Create one in Typeform first.',
+ };
+ }
+
return {
disabled: false,
- placeholder: 'Select form',
+ placeholder: 'Select a form',
options,
};
},
@@ -385,18 +403,12 @@ export const typeformCommon = {
return await httpClient.sendRequest(request);
},
form: formsDropdown,
- workspace: Property.Dropdown<string, false, typeof typeformAuth>({
- auth: typeformAuth,
- displayName: 'Workspace',
- description: 'Workspace ID, from List Workspaces.',
- required: false,
- refreshers: [],
- options: async ({ auth }) => workspaceOptions({ token: auth?.access_token }),
- }),
+ workspace: workspaceDropdown({ description: 'Leave empty for your default workspace.' }),
+ copyWorkspace: workspaceDropdown({ description: "Leave empty to keep the original form's workspace." }),
theme: Property.Dropdown<string, false, typeof typeformAuth>({
auth: typeformAuth,
displayName: 'Theme',
- description: 'Theme ID, from List Themes.',
+ description: "Leave empty for Typeform's default theme.",
required: false,
refreshers: [],
options: async ({ auth }) => themeOptions({ token: auth?.access_token }),
@@ -404,19 +416,26 @@ export const typeformCommon = {
choiceField: Property.Dropdown<string, true, typeof typeformAuth>({
auth: typeformAuth,
displayName: 'Question',
- description: 'Dropdown, multiple choice, ranking or picture choice question. Field ID or ref, from Get Form.',
+ description: 'Dropdown, multiple choice, ranking and picture choice questions.',
required: true,
refreshers: ['form_id'],
async options({ auth, form_id }) {
- if (!auth || typeof form_id !== 'string' || form_id.length === 0) {
+ if (!auth) {
+ return { disabled: true, placeholder: 'Connect your Typeform account', options: [] };
+ }
+ if (typeof form_id !== 'string' || form_id.length === 0) {
return { disabled: true, placeholder: 'Select a form first', options: [] };
}
const form = await getForm({ token: auth.access_token, formId: form_id });
+ const options = flattenFields({ fields: form['fields'] })
+ .filter((field) => CHOICE_FIELD_TYPES.includes(String(field['type'])))
+ .map((field) => ({ label: String(field['title'] ?? field['id']), value: String(field['id']) }));
+ if (options.length === 0) {
+ return { disabled: false, options: [], placeholder: 'This form has no choice questions.' };
+ }
return {
disabled: false,
- options: flattenFields({ fields: form['fields'] })
- .filter((field) => CHOICE_FIELD_TYPES.includes(String(field['type'])))
- .map((field) => ({ label: String(field['title'] ?? field['id']), value: String(field['id']) })),
+ options,
};
},
}),
diff --git a/packages/pieces/community/typeform/src/lib/trigger/new-submission.ts b/packages/pieces/community/typeform/src/lib/trigger/new-submission.ts
index 9b7443ce033..4071059f914 100644
--- a/packages/pieces/community/typeform/src/lib/trigger/new-submission.ts
+++ b/packages/pieces/community/typeform/src/lib/trigger/new-submission.ts
@@ -1,7 +1,12 @@
import { typeformCommon, formsDropdown } from '../common';
import { nanoid } from 'nanoid';
-import { createTrigger, TriggerStrategy } from '@activepieces/pieces-framework';
-import { getAccessTokenOrThrow } from '@activepieces/pieces-common';
+import {
+ createTrigger,
+ MarkdownVariant,
+ Property,
+ TriggerStrategy,
+} from '@activepieces/pieces-framework';
+import { getAccessTokenOrThrow, HttpError } from '@activepieces/pieces-common';
import { typeformAuth } from '../auth';
import { newSubmissionOutputSchema } from '../output-schemas';
@@ -10,14 +15,21 @@ export const typeformNewSubmission = createTrigger({
name: 'new_submission',
classification: 'READ',
displayName: 'New Submission',
- description: 'Triggers when Typeform receives a new submission',
+ description: 'Triggers when someone submits the form.',
aiMetadata: {
description:
'Fires when a respondent completes and submits the specified Typeform form. The event represents a single finished submission, delivered via webhook, and provides the form response payload including the submission token, landing/submission timestamps, the form definition, and the respondent\'s answers.',
},
outputSchema: newSubmissionOutputSchema,
+ propertyGroups: [
+ { key: 'form', display: 'section', label: 'Watch', icon: 'file', props: ['form_id', 'webhook_info'] },
+ ],
props: {
form_id: formsDropdown,
+ webhook_info: Property.MarkDown({
+ value: 'A webhook is added to this form in Typeform when you publish the flow, and removed when you turn it off.',
+ variant: MarkdownVariant.INFO,
+ }),
},
type: TriggerStrategy.WEBHOOK,
sampleData: {
@@ -80,11 +92,18 @@ export const typeformNewSubmission = createTrigger({
'_new_submission_trigger'
);
if (response !== null && response !== undefined) {
- await typeformCommon.unsubscribeWebhook(
- context.propsValue['form_id']!,
- response.tag,
- getAccessTokenOrThrow(context.auth)
- );
+ try {
+ await typeformCommon.unsubscribeWebhook(
+ context.propsValue['form_id']!,
+ response.tag,
+ getAccessTokenOrThrow(context.auth)
+ );
+ } catch (error) {
+ if (error instanceof HttpError && error.response.status === 404) {
+ return;
+ }
+ throw error;
+ }
}
},
async run(context) {