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
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(google-forms): ui improvement (#16078)
Talal Jaber38906b47914f
diff --git a/bun.lock b/bun.lockindex 15d5b50f481..e3c2380c3d2 100644--- a/bun.lock+++ b/bun.lock@@ -3894,7 +3894,7 @@},"packages/pieces/community/google-forms": {"name": "@activepieces/piece-google-forms",- "version": "0.6.1",+ "version": "0.7.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/community/google-forms/package.json b/packages/pieces/community/google-forms/package.jsonindex 1e56cd6df3a..0a9455fe969 100644--- a/packages/pieces/community/google-forms/package.json+++ b/packages/pieces/community/google-forms/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-google-forms",- "version": "0.6.1",+ "version": "0.7.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","dependencies": {diff --git a/packages/pieces/community/google-forms/src/i18n/de.json b/packages/pieces/community/google-forms/src/i18n/de.jsonindex fd9314e0769..d024235d82e 100644--- a/packages/pieces/community/google-forms/src/i18n/de.json+++ b/packages/pieces/community/google-forms/src/i18n/de.json@@ -45,5 +45,19 @@"Triggers when there is new response": "Wird ausgelöst, wenn eine neue Antwort vorhanden ist","Form": "Formular","Include Team Drive Forms": "Teamlaufwerksformulare einbeziehen",- "Determines if forms from Team Drives should be included in the results.": "Legt fest, ob Formulare von Team Drives in die Ergebnisse aufgenommen werden sollen."+ "Determines if forms from Team Drives should be included in the results.": "Legt fest, ob Formulare von Team Drives in die Ergebnisse aufgenommen werden sollen.",+ "Response is Binary": "Antwort ist binär",+ "Return Error as Output": "Fehler als Ausgabe zurückgeben",+ "Timeout": "Zeitlimit",+ "Appended to the URL as ?key=value.": "Wird als ?key=value an die URL angehängt.",+ "On a failed request, output the error instead of failing the step.": "Bei einer fehlgeschlagenen Anfrage den Fehler ausgeben, statt den Schritt fehlschlagen zu lassen.",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Sekunden, die auf eine Antwort gewartet wird. Leer: bis zum Flow-Limit (10 Min.).",+ "Follow 3xx redirects instead of returning them as the response.": "3xx-Weiterleitungen folgen, statt sie als Antwort zurückzugeben.",+ "Triggers when someone submits or edits a response to the form.": "Wird ausgelöst, wenn jemand eine Antwort auf das Formular sendet oder bearbeitet.",+ "Include Shared Drives": "Geteilte Ablagen einbeziehen",+ "Checks the form every few minutes. A response starts the flow when it is sent or edited after the flow is published.": "Prüft das Formular alle paar Minuten. Eine Antwort startet den Flow, wenn sie nach dem Veröffentlichen des Flows gesendet oder bearbeitet wird.",+ "The form to watch for new responses.": "Das Formular, das auf neue Antworten überwacht wird.",+ "Also include forms stored in shared drives.": "Auch Formulare in geteilten Ablagen einbeziehen.",+ "Connect with a Google Cloud service account.\n\n**How to get the key:**\n1. Open the [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Create a service account, or pick an existing one.\n3. Open **Keys** → **Add key** → **Create new key** → **JSON** and download the file.\n4. Share each form with the service account's email, or set up [domain-wide delegation](https://support.google.com/a/answer/162106) and fill in **User Email** below.": "Mit einem Google-Cloud-Dienstkonto verbinden.\n\n**So erhalten Sie den Schlüssel:**\n1. Öffnen Sie die [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Erstellen Sie ein Dienstkonto oder wählen Sie ein vorhandenes aus.\n3. Öffnen Sie **Keys** → **Add key** → **Create new key** → **JSON** und laden Sie die Datei herunter.\n4. Geben Sie jedes Formular für die E-Mail-Adresse des Dienstkontos frei oder richten Sie die [domainweite Delegierung](https://support.google.com/a/answer/162106) ein und füllen Sie unten **User Email** aus.",+ "Paste the full contents of the downloaded key file.": "Fügen Sie den vollständigen Inhalt der heruntergeladenen Schlüsseldatei ein."}\ No newline at end of filediff --git a/packages/pieces/community/google-forms/src/i18n/es.json b/packages/pieces/community/google-forms/src/i18n/es.jsonindex 90963234ada..fa0b51e9c1b 100644--- a/packages/pieces/community/google-forms/src/i18n/es.json+++ b/packages/pieces/community/google-forms/src/i18n/es.json@@ -45,5 +45,19 @@"Triggers when there is new response": "Dispara cuando hay nueva respuesta","Form": "Forma","Include Team Drive Forms": "Incluye Formularios de Unidad de Equipo",- "Determines if forms from Team Drives should be included in the results.": "Determina si los formularios de Team Drives deben ser incluidos en los resultados."+ "Determines if forms from Team Drives should be included in the results.": "Determina si los formularios de Team Drives deben ser incluidos en los resultados.",+ "Response is Binary": "La respuesta es binaria",+ "Return Error as Output": "Devolver error como salida",+ "Timeout": "Tiempo de espera",+ "Appended to the URL as ?key=value.": "Se añade a la URL como ?key=value.",+ "On a failed request, output the error instead of failing the step.": "Si la solicitud falla, devuelve el error en lugar de hacer fallar el paso.",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Segundos de espera para una respuesta. Vacío: hasta el límite del flujo (10 min).",+ "Follow 3xx redirects instead of returning them as the response.": "Sigue las redirecciones 3xx en lugar de devolverlas como respuesta.",+ "Triggers when someone submits or edits a response to the form.": "Se activa cuando alguien envía o edita una respuesta al formulario.",+ "Include Shared Drives": "Incluir unidades compartidas",+ "Checks the form every few minutes. A response starts the flow when it is sent or edited after the flow is published.": "Revisa el formulario cada pocos minutos. Una respuesta inicia el flujo cuando se envía o se edita después de publicar el flujo.",+ "The form to watch for new responses.": "El formulario en el que se vigilan las respuestas nuevas.",+ "Also include forms stored in shared drives.": "Incluir también los formularios guardados en unidades compartidas.",+ "Connect with a Google Cloud service account.\n\n**How to get the key:**\n1. Open the [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Create a service account, or pick an existing one.\n3. Open **Keys** → **Add key** → **Create new key** → **JSON** and download the file.\n4. Share each form with the service account's email, or set up [domain-wide delegation](https://support.google.com/a/answer/162106) and fill in **User Email** below.": "Conéctate con una cuenta de servicio de Google Cloud.\n\n**Cómo obtener la clave:**\n1. Abre la [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Crea una cuenta de servicio o elige una existente.\n3. Abre **Keys** → **Add key** → **Create new key** → **JSON** y descarga el archivo.\n4. Comparte cada formulario con el correo de la cuenta de servicio, o configura la [delegación de todo el dominio](https://support.google.com/a/answer/162106) y completa **User Email** abajo.",+ "Paste the full contents of the downloaded key file.": "Pega todo el contenido del archivo de clave descargado."}\ No newline at end of filediff --git a/packages/pieces/community/google-forms/src/i18n/fr.json b/packages/pieces/community/google-forms/src/i18n/fr.jsonindex 2b517560552..9e4cd667bcc 100644--- a/packages/pieces/community/google-forms/src/i18n/fr.json+++ b/packages/pieces/community/google-forms/src/i18n/fr.json@@ -45,5 +45,19 @@"Triggers when there is new response": "Se déclenche lorsqu'il y a une nouvelle réponse","Form": "Formulaire","Include Team Drive Forms": "Inclure les formulaires Team Drive",- "Determines if forms from Team Drives should be included in the results.": "Détermine si les formulaires de Team Drives doivent être inclus dans les résultats."+ "Determines if forms from Team Drives should be included in the results.": "Détermine si les formulaires de Team Drives doivent être inclus dans les résultats.",+ "Response is Binary": "La réponse est binaire",+ "Return Error as Output": "Renvoyer l'erreur en sortie",+ "Timeout": "Délai d'expiration",+ "Appended to the URL as ?key=value.": "Ajouté à l'URL sous la forme ?key=value.",+ "On a failed request, output the error instead of failing the step.": "En cas d'échec de la requête, renvoie l'erreur au lieu de faire échouer l'étape.",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Secondes d'attente d'une réponse. Vide : jusqu'à la limite du flux (10 min).",+ "Follow 3xx redirects instead of returning them as the response.": "Suit les redirections 3xx au lieu de les renvoyer comme réponse.",+ "Triggers when someone submits or edits a response to the form.": "Se déclenche lorsque quelqu'un envoie ou modifie une réponse au formulaire.",+ "Include Shared Drives": "Inclure les Drive partagés",+ "Checks the form every few minutes. A response starts the flow when it is sent or edited after the flow is published.": "Vérifie le formulaire toutes les quelques minutes. Une réponse déclenche le flux lorsqu'elle est envoyée ou modifiée après la publication du flux.",+ "The form to watch for new responses.": "Le formulaire à surveiller pour les nouvelles réponses.",+ "Also include forms stored in shared drives.": "Inclure aussi les formulaires stockés dans les Drive partagés.",+ "Connect with a Google Cloud service account.\n\n**How to get the key:**\n1. Open the [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Create a service account, or pick an existing one.\n3. Open **Keys** → **Add key** → **Create new key** → **JSON** and download the file.\n4. Share each form with the service account's email, or set up [domain-wide delegation](https://support.google.com/a/answer/162106) and fill in **User Email** below.": "Connectez-vous avec un compte de service Google Cloud.\n\n**Obtenir la clé:**\n1. Ouvrez la [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Créez un compte de service ou choisissez-en un existant.\n3. Ouvrez **Keys** → **Add key** → **Create new key** → **JSON** et téléchargez le fichier.\n4. Partagez chaque formulaire avec l'adresse e-mail du compte de service, ou configurez la [délégation au niveau du domaine](https://support.google.com/a/answer/162106) et renseignez **User Email** ci-dessous.",+ "Paste the full contents of the downloaded key file.": "Collez le contenu complet du fichier de clé téléchargé."}\ No newline at end of filediff --git a/packages/pieces/community/google-forms/src/i18n/ja.json b/packages/pieces/community/google-forms/src/i18n/ja.jsonindex 7210afc52d8..825b042a1cb 100644--- a/packages/pieces/community/google-forms/src/i18n/ja.json+++ b/packages/pieces/community/google-forms/src/i18n/ja.json@@ -45,5 +45,19 @@"Triggers when there is new response": "新しい応答があるときにトリガーします","Form": "フォーム","Include Team Drive Forms": "チームドライブフォームを含める",- "Determines if forms from Team Drives should be included in the results.": "チームドライブのフォームを結果に含めるかどうかを指定します。"+ "Determines if forms from Team Drives should be included in the results.": "チームドライブのフォームを結果に含めるかどうかを指定します。",+ "Response is Binary": "応答はバイナリです",+ "Return Error as Output": "エラーを出力として返す",+ "Timeout": "タイムアウト",+ "Appended to the URL as ?key=value.": "?key=value としてURLに追加されます。",+ "On a failed request, output the error instead of failing the step.": "リクエストが失敗した場合、ステップを失敗させずにエラーを出力します。",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "応答を待つ秒数。空欄: フローの上限(10分)まで。",+ "Follow 3xx redirects instead of returning them as the response.": "3xxリダイレクトをレスポンスとして返さずにたどります。",+ "Triggers when someone submits or edits a response to the form.": "誰かがフォームの回答を送信または編集したときにトリガーされます。",+ "Include Shared Drives": "共有ドライブを含める",+ "Checks the form every few minutes. A response starts the flow when it is sent or edited after the flow is published.": "数分ごとにフォームを確認します。フローの公開後に送信または編集された回答でフローが開始されます。",+ "The form to watch for new responses.": "新しい回答を監視するフォーム。",+ "Also include forms stored in shared drives.": "共有ドライブに保存されたフォームも含めます。",+ "Connect with a Google Cloud service account.\n\n**How to get the key:**\n1. Open the [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Create a service account, or pick an existing one.\n3. Open **Keys** → **Add key** → **Create new key** → **JSON** and download the file.\n4. Share each form with the service account's email, or set up [domain-wide delegation](https://support.google.com/a/answer/162106) and fill in **User Email** below.": "Google Cloud のサービスアカウントで接続します。\n\n**キーの取得方法:**\n1. [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts** を開きます。\n2. サービスアカウントを作成するか、既存のものを選びます。\n3. **Keys** → **Add key** → **Create new key** → **JSON** を開き、ファイルをダウンロードします。\n4. 各フォームをサービスアカウントのメールアドレスと共有するか、[ドメイン全体の委任](https://support.google.com/a/answer/162106)を設定して下の **User Email** に入力します。",+ "Paste the full contents of the downloaded key file.": "ダウンロードしたキーファイルの内容をすべて貼り付けてください。"}\ No newline at end of filediff --git a/packages/pieces/community/google-forms/src/i18n/nl.json b/packages/pieces/community/google-forms/src/i18n/nl.jsonindex 9bb9f865e72..2bb7c624d3e 100644--- a/packages/pieces/community/google-forms/src/i18n/nl.json+++ b/packages/pieces/community/google-forms/src/i18n/nl.json@@ -45,5 +45,19 @@"Triggers when there is new response": "Triggert wanneer er een nieuwe reactie is","Form": "Vorm","Include Team Drive Forms": "Inclusief Team Drive formulieren",- "Determines if forms from Team Drives should be included in the results.": "Bepaalt of vormen van Team Drives moeten worden opgenomen in de resultaten."+ "Determines if forms from Team Drives should be included in the results.": "Bepaalt of vormen van Team Drives moeten worden opgenomen in de resultaten.",+ "Response is Binary": "Antwoord is binair",+ "Return Error as Output": "Fout als uitvoer teruggeven",+ "Timeout": "Time-out",+ "Appended to the URL as ?key=value.": "Wordt als ?key=value aan de URL toegevoegd.",+ "On a failed request, output the error instead of failing the step.": "Geef bij een mislukte aanvraag de fout als uitvoer in plaats van de stap te laten mislukken.",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Seconden wachten op een antwoord. Leeg: tot de flowlimiet (10 min).",+ "Follow 3xx redirects instead of returning them as the response.": "Volg 3xx-omleidingen in plaats van ze als antwoord terug te geven.",+ "Triggers when someone submits or edits a response to the form.": "Wordt geactiveerd wanneer iemand een antwoord op het formulier verzendt of bewerkt.",+ "Include Shared Drives": "Gedeelde drives opnemen",+ "Checks the form every few minutes. A response starts the flow when it is sent or edited after the flow is published.": "Controleert het formulier om de paar minuten. Een antwoord start de flow wanneer het wordt verzonden of bewerkt nadat de flow is gepubliceerd.",+ "The form to watch for new responses.": "Het formulier dat op nieuwe antwoorden wordt gecontroleerd.",+ "Also include forms stored in shared drives.": "Neem ook formulieren op die in gedeelde drives zijn opgeslagen.",+ "Connect with a Google Cloud service account.\n\n**How to get the key:**\n1. Open the [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Create a service account, or pick an existing one.\n3. Open **Keys** → **Add key** → **Create new key** → **JSON** and download the file.\n4. Share each form with the service account's email, or set up [domain-wide delegation](https://support.google.com/a/answer/162106) and fill in **User Email** below.": "Maak verbinding met een Google Cloud-serviceaccount.\n\n**Zo krijg je de sleutel:**\n1. Open de [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Maak een serviceaccount aan of kies een bestaand account.\n3. Open **Keys** → **Add key** → **Create new key** → **JSON** en download het bestand.\n4. Deel elk formulier met het e-mailadres van het serviceaccount, of stel [domeinbrede delegatie](https://support.google.com/a/answer/162106) in en vul hieronder **User Email** in.",+ "Paste the full contents of the downloaded key file.": "Plak de volledige inhoud van het gedownloade sleutelbestand."}\ No newline at end of filediff --git a/packages/pieces/community/google-forms/src/i18n/pt.json b/packages/pieces/community/google-forms/src/i18n/pt.jsonindex 81cdfd5824d..8cca29c907b 100644--- a/packages/pieces/community/google-forms/src/i18n/pt.json+++ b/packages/pieces/community/google-forms/src/i18n/pt.json@@ -45,5 +45,19 @@"Triggers when there is new response": "Dispara quando há uma nova resposta","Form": "Formulário","Include Team Drive Forms": "Incluir Formulários de Drive do Time",- "Determines if forms from Team Drives should be included in the results.": "Determina se os formulários de unidades de equipe devem ser incluídos nos resultados."+ "Determines if forms from Team Drives should be included in the results.": "Determina se os formulários de unidades de equipe devem ser incluídos nos resultados.",+ "Response is Binary": "A resposta é binária",+ "Return Error as Output": "Retornar erro como saída",+ "Timeout": "Tempo limite",+ "Appended to the URL as ?key=value.": "Adicionado à URL como ?key=value.",+ "On a failed request, output the error instead of failing the step.": "Se a solicitação falhar, retorna o erro em vez de falhar a etapa.",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Segundos de espera por uma resposta. Vazio: até o limite do fluxo (10 min).",+ "Follow 3xx redirects instead of returning them as the response.": "Segue redirecionamentos 3xx em vez de retorná-los como resposta.",+ "Triggers when someone submits or edits a response to the form.": "É acionado quando alguém envia ou edita uma resposta ao formulário.",+ "Include Shared Drives": "Incluir drives compartilhados",+ "Checks the form every few minutes. A response starts the flow when it is sent or edited after the flow is published.": "Verifica o formulário a cada poucos minutos. Uma resposta inicia o fluxo quando é enviada ou editada após a publicação do fluxo.",+ "The form to watch for new responses.": "O formulário a ser monitorado para novas respostas.",+ "Also include forms stored in shared drives.": "Incluir também formulários armazenados em drives compartilhados.",+ "Connect with a Google Cloud service account.\n\n**How to get the key:**\n1. Open the [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Create a service account, or pick an existing one.\n3. Open **Keys** → **Add key** → **Create new key** → **JSON** and download the file.\n4. Share each form with the service account's email, or set up [domain-wide delegation](https://support.google.com/a/answer/162106) and fill in **User Email** below.": "Conecte com uma conta de serviço do Google Cloud.\n\n**Como obter a chave:**\n1. Abra o [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Crie uma conta de serviço ou escolha uma existente.\n3. Abra **Keys** → **Add key** → **Create new key** → **JSON** e baixe o arquivo.\n4. Compartilhe cada formulário com o e-mail da conta de serviço ou configure a [delegação em todo o domínio](https://support.google.com/a/answer/162106) e preencha **User Email** abaixo.",+ "Paste the full contents of the downloaded key file.": "Cole todo o conteúdo do arquivo de chave baixado."}\ No newline at end of filediff --git a/packages/pieces/community/google-forms/src/i18n/ru.json b/packages/pieces/community/google-forms/src/i18n/ru.jsonindex 8a83ee56cbf..19dfcf5bb1f 100644--- a/packages/pieces/community/google-forms/src/i18n/ru.json+++ b/packages/pieces/community/google-forms/src/i18n/ru.json@@ -20,5 +20,19 @@"Triggers when there is new response": "Триггеры при новом ответе","Form": "Форма","Include Team Drive Forms": "Включить Team Drive Формы",- "Determines if forms from Team Drives should be included in the results.": "Определяет, должны ли в результаты включаться формы из Team Drive."+ "Determines if forms from Team Drives should be included in the results.": "Определяет, должны ли в результаты включаться формы из Team Drive.",+ "Response is Binary": "Ответ является двоичным",+ "Return Error as Output": "Возвращать ошибку как результат",+ "Timeout": "Тайм-аут",+ "Appended to the URL as ?key=value.": "Добавляется к URL как ?key=value.",+ "On a failed request, output the error instead of failing the step.": "При неудачном запросе вернуть ошибку вместо сбоя шага.",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Секунды ожидания ответа. Пусто: до лимита потока (10 мин).",+ "Follow 3xx redirects instead of returning them as the response.": "Следовать перенаправлениям 3xx, а не возвращать их как ответ.",+ "Triggers when someone submits or edits a response to the form.": "Срабатывает, когда кто-то отправляет или редактирует ответ на форму.",+ "Include Shared Drives": "Включить общие диски",+ "Checks the form every few minutes. A response starts the flow when it is sent or edited after the flow is published.": "Проверяет форму каждые несколько минут. Ответ запускает поток, если он отправлен или изменён после публикации потока.",+ "The form to watch for new responses.": "Форма, на которой отслеживаются новые ответы.",+ "Also include forms stored in shared drives.": "Также включать формы, хранящиеся на общих дисках.",+ "Connect with a Google Cloud service account.\n\n**How to get the key:**\n1. Open the [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Create a service account, or pick an existing one.\n3. Open **Keys** → **Add key** → **Create new key** → **JSON** and download the file.\n4. Share each form with the service account's email, or set up [domain-wide delegation](https://support.google.com/a/answer/162106) and fill in **User Email** below.": "Подключитесь с помощью сервисного аккаунта Google Cloud.\n\n**Как получить ключ:**\n1. Откройте [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Создайте сервисный аккаунт или выберите существующий.\n3. Откройте **Keys** → **Add key** → **Create new key** → **JSON** и скачайте файл.\n4. Предоставьте доступ к каждой форме адресу сервисного аккаунта или настройте [делегирование на уровне домена](https://support.google.com/a/answer/162106) и заполните **User Email** ниже.",+ "Paste the full contents of the downloaded key file.": "Вставьте полное содержимое скачанного файла ключа."}\ No newline at end of filediff --git a/packages/pieces/community/google-forms/src/i18n/translation.json b/packages/pieces/community/google-forms/src/i18n/translation.jsonindex 2ee4adf1482..99f95b9e900 100644--- a/packages/pieces/community/google-forms/src/i18n/translation.json+++ b/packages/pieces/community/google-forms/src/i18n/translation.json@@ -18,9 +18,9 @@"Query Parameters": "Query Parameters","Body Type": "Body Type","Body": "Body",- "Response is Binary ?": "Response is Binary ?",- "No Error on Failure": "No Error on Failure",- "Timeout (in seconds)": "Timeout (in seconds)",+ "Response is Binary": "Response is Binary",+ "Return Error as Output": "Return Error as Output",+ "Timeout": "Timeout","Follow redirects": "Follow redirects","The ID of the form to fetch. Obtain it from forms_create_form, forms_list_responses, or the New Response trigger.": "The ID of the form to fetch. Obtain it from forms_create_form, forms_list_responses, or the New Response trigger.","The ID of the form whose responses to list. Obtain it from forms_create_form, forms_get_form, or the New Response trigger.": "The ID of the form whose responses to list. Obtain it from forms_create_form, forms_get_form, or the New Response trigger.",@@ -30,20 +30,25 @@"The ID of the form the response belongs to. Obtain it from forms_list_responses or the New Response trigger.": "The ID of the form the response belongs to. Obtain it from forms_list_responses or the New Response trigger.","The ID of the response to fetch. Obtain it from forms_list_responses or the New Response trigger.": "The ID of the response to fetch. Obtain it from forms_list_responses or the New Response trigger.","Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",+ "Appended to the URL as ?key=value.": "Appended to the URL as ?key=value.","Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",+ "On a failed request, output the error instead of failing the step.": "On a failed request, output the error instead of failing the step.",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Seconds to wait for a response. Empty: up to the flow limit (10 min).",+ "Follow 3xx redirects instead of returning them as the response.": "Follow 3xx redirects instead of returning them as the response.","GET": "GET","POST": "POST","PATCH": "PATCH","PUT": "PUT","DELETE": "DELETE","HEAD": "HEAD",- "None": "None",- "JSON": "JSON",- "Form Data": "Form Data",- "Raw": "Raw","New Response": "New Response",- "Triggers when there is new response": "Triggers when there is new response",+ "Triggers when someone submits or edits a response to the form.": "Triggers when someone submits or edits a response to the form.",+ "Markdown": "Markdown","Form": "Form",- "Include Team Drive Forms": "Include Team Drive Forms",- "Determines if forms from Team Drives should be included in the results.": "Determines if forms from Team Drives should be included in the results."+ "Include Shared Drives": "Include Shared Drives",+ "Checks the form every few minutes. A response starts the flow when it is sent or edited after the flow is published.": "Checks the form every few minutes. A response starts the flow when it is sent or edited after the flow is published.",+ "The form to watch for new responses.": "The form to watch for new responses.",+ "Also include forms stored in shared drives.": "Also include forms stored in shared drives.",+ "Connect with a Google Cloud service account.\n\n**How to get the key:**\n1. Open the [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Create a service account, or pick an existing one.\n3. Open **Keys** → **Add key** → **Create new key** → **JSON** and download the file.\n4. Share each form with the service account's email, or set up [domain-wide delegation](https://support.google.com/a/answer/162106) and fill in **User Email** below.": "Connect with a Google Cloud service account.\n\n**How to get the key:**\n1. Open the [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Create a service account, or pick an existing one.\n3. Open **Keys** → **Add key** → **Create new key** → **JSON** and download the file.\n4. Share each form with the service account's email, or set up [domain-wide delegation](https://support.google.com/a/answer/162106) and fill in **User Email** below.",+ "Paste the full contents of the downloaded key file.": "Paste the full contents of the downloaded key file."}\ No newline at end of filediff --git a/packages/pieces/community/google-forms/src/i18n/zh.json b/packages/pieces/community/google-forms/src/i18n/zh.jsonindex 80da6624c23..49022c791ad 100644--- a/packages/pieces/community/google-forms/src/i18n/zh.json+++ b/packages/pieces/community/google-forms/src/i18n/zh.json@@ -45,5 +45,19 @@"Triggers when there is new response": "Triggers when there is new response","Form": "Form","Include Team Drive Forms": "Include Team Drive Forms",- "Determines if forms from Team Drives should be included in the results.": "Determines if forms from Team Drives should be included in the results."+ "Determines if forms from Team Drives should be included in the results.": "Determines if forms from Team Drives should be included in the results.",+ "Response is Binary": "响应为二进制",+ "Return Error as Output": "将错误作为输出返回",+ "Timeout": "超时",+ "Appended to the URL as ?key=value.": "以 ?key=value 的形式附加到 URL。",+ "On a failed request, output the error instead of failing the step.": "请求失败时,输出错误而不是让步骤失败。",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "等待响应的秒数。留空:最多到流程上限(10 分钟)。",+ "Follow 3xx redirects instead of returning them as the response.": "跟随 3xx 重定向,而不是将其作为响应返回。",+ "Triggers when someone submits or edits a response to the form.": "当有人提交或编辑表单回复时触发。",+ "Include Shared Drives": "包含共享云端硬盘",+ "Checks the form every few minutes. A response starts the flow when it is sent or edited after the flow is published.": "每隔几分钟检查一次表单。在流程发布后提交或编辑的回复会启动流程。",+ "The form to watch for new responses.": "要监视新回复的表单。",+ "Also include forms stored in shared drives.": "同时包含存储在共享云端硬盘中的表单。",+ "Connect with a Google Cloud service account.\n\n**How to get the key:**\n1. Open the [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.\n2. Create a service account, or pick an existing one.\n3. Open **Keys** → **Add key** → **Create new key** → **JSON** and download the file.\n4. Share each form with the service account's email, or set up [domain-wide delegation](https://support.google.com/a/answer/162106) and fill in **User Email** below.": "使用 Google Cloud 服务账号连接。\n\n**如何获取密钥:**\n1. 打开 [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**。\n2. 创建服务账号,或选择现有的服务账号。\n3. 打开 **Keys** → **Add key** → **Create new key** → **JSON** 并下载文件。\n4. 将每个表单共享给服务账号的邮箱,或设置[全网域委派](https://support.google.com/a/answer/162106)并在下方填写 **User Email**。",+ "Paste the full contents of the downloaded key file.": "粘贴下载的密钥文件的全部内容。"}\ No newline at end of filediff --git a/packages/pieces/community/google-forms/src/index.ts b/packages/pieces/community/google-forms/src/index.tsindex 112cb3bba83..69b48d0e72a 100644--- a/packages/pieces/community/google-forms/src/index.ts+++ b/packages/pieces/community/google-forms/src/index.ts@@ -15,7 +15,7 @@ export const googleForms = createPiece({displayName: 'Google Forms',description: 'Receive form responses from Google Forms',- minimumSupportedRelease: '0.86.4',+ minimumSupportedRelease: '0.88.2',logoUrl: 'https://cdn.activepieces.com/pieces/google-forms.png',categories: [PieceCategory.FORMS_AND_SURVEYS],authors: ["kishanprmr","MoShizzle","khaledmashaly","abuaboud","Startouf"],diff --git a/packages/pieces/community/google-forms/src/lib/common/common.ts b/packages/pieces/community/google-forms/src/lib/common/common.tsindex 6f873d45480..c4e04f290b0 100644--- a/packages/pieces/community/google-forms/src/lib/common/common.ts+++ b/packages/pieces/community/google-forms/src/lib/common/common.ts@@ -21,12 +21,19 @@ export const googleFormsAuth = [PieceAuth.OAuth2({scope: googleFormsScopes,}), PieceAuth.CustomAuth({displayName: 'Service Account (Advanced)',- description: 'Authenticate via service account from https://console.cloud.google.com/ > IAM & Admin > Service Accounts > Create Service Account > Keys > Add key. <br> <br> You can optionally use domain-wide delegation (https://support.google.com/a/answer/162106?hl=en#zippy=%2Cset-up-domain-wide-delegation-for-a-client) to access forms without adding the service account to each one. <br> <br> **Note:** Without a user email, the service account only has access to files/folders you explicitly share with it.',+ description: `Connect with a Google Cloud service account.++**How to get the key:**+1. Open the [Google Cloud console](https://console.cloud.google.com/iam-admin/serviceaccounts) → **IAM & Admin** → **Service Accounts**.+2. Create a service account, or pick an existing one.+3. Open **Keys** → **Add key** → **Create new key** → **JSON** and download the file.+4. Share each form with the service account's email, or set up [domain-wide delegation](https://support.google.com/a/answer/162106) and fill in **User Email** below.`,required: true,props: {serviceAccount: Property.ShortText({displayName: 'Service Account JSON Key',required: true,+ description: 'Paste the full contents of the downloaded key file.',}),userEmail: Property.ShortText({displayName: 'User Email',@@ -84,54 +91,107 @@ export const getAccessToken = async (auth: GoogleFormsAuthValue): Promise<stringexport const googleFormsCommon = {include_team_drives: Property.Checkbox({- displayName: 'Include Team Drive Forms',- description:- 'Determines if forms from Team Drives should be included in the results.',+ displayName: 'Include Shared Drives',+ description: 'Also include forms stored in shared drives.',defaultValue: false,required: false,+ advanced: true,}),form_id: Property.Dropdown({displayName: 'Form',+ description: 'The form to watch for new responses.',required: true,auth: googleFormsAuth,refreshers: ['include_team_drives'],- options: async ({ auth, include_team_drives }) => {+ refreshOnSearch: true,+ options: async ({ auth, include_team_drives }, { searchValue }) => {if (!auth) {return {disabled: true,options: [],- placeholder: 'Please authenticate first',+ placeholder: 'Connect your account first',};}const authValue = auth as GoogleFormsAuthValue;- const accessToken = await getAccessToken(authValue);- const files = (- await httpClient.sendRequest<{ files: { id: string; name: string }[] }>(- {- method: HttpMethod.GET,- url: `https://www.googleapis.com/drive/v3/files`,- queryParams: {- q: "mimeType='application/vnd.google-apps.form'",- includeItemsFromAllDrives: include_team_drives ? 'true' : 'false',- supportsAllDrives: 'true',- corpora: include_team_drives ? 'allDrives' : 'user',- },- authentication: {- type: AuthenticationType.BEARER_TOKEN,- token: accessToken,- },- }- )- ).body.files;- return {- disabled: false,- options: files.map((file: { id: string; name: string }) => {+ try {+ const accessToken = await getAccessToken(authValue);+ const { files, nextPageToken } = await listForms({+ accessToken,+ includeTeamDrives: Boolean(include_team_drives),+ searchValue: searchValue?.trim() ?? '',+ });+ if (files.length === 0) {return {+ disabled: false,+ options: [],+ placeholder: 'No forms found',+ };+ }+ return {+ disabled: false,+ placeholder: nextPageToken+ ? `Showing the first ${files.length} forms. Type to narrow the list.`+ : undefined,+ options: files.map((file) => ({label: file.name,value: file.id,- };- }),- };+ })),+ };+ } catch {+ return {+ disabled: true,+ options: [],+ placeholder: 'Failed to load forms. Check your connection.',+ };+ }},}),};++async function listForms({+ accessToken,+ includeTeamDrives,+ searchValue,+}: {+ accessToken: string;+ includeTeamDrives: boolean;+ searchValue: string;+}): Promise<{ files: { id: string; name: string }[]; nextPageToken?: string }> {+ const q = [+ "mimeType='application/vnd.google-apps.form'",+ 'trashed = false',+ ...(searchValue.length > 0+ ? [`name contains '${escapeDriveQueryLiteral(searchValue)}'`]+ : []),+ ];+ const response = await httpClient.sendRequest<{+ files: { id: string; name: string }[];+ nextPageToken?: string;+ }>({+ method: HttpMethod.GET,+ url: `https://www.googleapis.com/drive/v3/files`,+ queryParams: {+ q: q.join(' and '),+ includeItemsFromAllDrives: includeTeamDrives ? 'true' : 'false',+ supportsAllDrives: 'true',+ corpora: includeTeamDrives ? 'allDrives' : 'user',+ pageSize: String(FORM_DROPDOWN_PAGE_SIZE),+ orderBy: 'createdTime desc',+ fields: 'nextPageToken, files(id, name)',+ },+ authentication: {+ type: AuthenticationType.BEARER_TOKEN,+ token: accessToken,+ },+ });+ return {+ files: response.body.files ?? [],+ nextPageToken: response.body.nextPageToken,+ };+}++function escapeDriveQueryLiteral(value: string): string {+ return value.replace(/\\/g, '\\\\').replace(/'/g, "\\'");+}++const FORM_DROPDOWN_PAGE_SIZE = 1000;diff --git a/packages/pieces/community/google-forms/src/lib/triggers/new-form-response.ts b/packages/pieces/community/google-forms/src/lib/triggers/new-form-response.tsindex 2191835e4ac..fdb80ef1de4 100644--- a/packages/pieces/community/google-forms/src/lib/triggers/new-form-response.ts+++ b/packages/pieces/community/google-forms/src/lib/triggers/new-form-response.ts@@ -8,6 +8,8 @@ import {import {AppConnectionValueForAuthProperty,createTrigger,+ MarkdownVariant,+ Property,TriggerStrategy,} from '@activepieces/pieces-framework';import dayjs from 'dayjs';@@ -19,13 +21,18 @@ export const newResponse = createTrigger({name: 'new_response',classification: 'READ',displayName: 'New Response',- description: 'Triggers when there is new response',+ description: 'Triggers when someone submits or edits a response to the form.',aiMetadata: {description:'Fires when a respondent submits a new response to the specified Google Form. Each event represents a single form submission, including the response ID, submission timestamps, and the respondent\'s answers keyed by question ID.',},outputSchema: newResponseTriggerOutputSchema,props: {+ info: Property.MarkDown({+ value:+ 'Checks the form every few minutes. A response starts the flow when it is sent or edited after the flow is published.',+ variant: MarkdownVariant.INFO,+ }),form_id: googleFormsCommon.form_id,include_team_drives: googleFormsCommon.include_team_drives,},