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(tidycal): ui improvement (#16498)
Talal Jaber8811926724bb
diff --git a/bun.lock b/bun.lockindex 6fa489bb5d2..06bc470da2f 100644--- a/bun.lock+++ b/bun.lock@@ -9242,7 +9242,7 @@},"packages/pieces/community/tidycal": {"name": "@activepieces/piece-tidycal",- "version": "0.2.0",+ "version": "0.3.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/community/tidycal/package.json b/packages/pieces/community/tidycal/package.jsonindex d2d35337a43..0471b78565b 100644--- a/packages/pieces/community/tidycal/package.json+++ b/packages/pieces/community/tidycal/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-tidycal",- "version": "0.2.0",+ "version": "0.3.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","scripts": {diff --git a/packages/pieces/community/tidycal/src/i18n/de.json b/packages/pieces/community/tidycal/src/i18n/de.jsonindex ee80ca0e208..82a07640fa7 100644--- a/packages/pieces/community/tidycal/src/i18n/de.json+++ b/packages/pieces/community/tidycal/src/i18n/de.json@@ -29,5 +29,10 @@"New Contact": "Neuer Kontakt","Triggers when a new booking is canceled": "Wird ausgelöst, wenn eine neue Buchung storniert wird","Triggers when a new booking is created": "Wird ausgelöst, wenn eine neue Buchung erstellt wird",- "Triggers when a new contact is created": "Wird ausgelöst, wenn ein neuer Kontakt erstellt wird"+ "Triggers when a new contact is created": "Wird ausgelöst, wenn ein neuer Kontakt erstellt wird",+ "Triggers when a booking is canceled": "Wird ausgelöst, wenn eine Buchung storniert wird",+ "Checks TidyCal periodically and runs once for each new booking.": "Prüft TidyCal regelmäßig und wird für jede neue Buchung einmal ausgeführt.",+ "Checks TidyCal periodically and runs once for each canceled booking.": "Prüft TidyCal regelmäßig und wird für jede stornierte Buchung einmal ausgeführt.",+ "Checks TidyCal periodically and runs once for each new contact.": "Prüft TidyCal regelmäßig und wird für jeden neuen Kontakt einmal ausgeführt.",+ "To create a personal access token:\n1. In TidyCal, open [Manage API keys](https://tidycal.com/integrations/advanced) under Integrations.\n2. On the **Personal tokens** tab, click **Create token**, enter a name and click **Create**.\n3. Copy the token now: TidyCal shows it only once.\n\nAPI access needs a paid TidyCal plan.": "So erstellen Sie ein persönliches Zugriffstoken:\n1. Öffnen Sie in TidyCal unter Integrations [Manage API keys](https://tidycal.com/integrations/advanced).\n2. Klicken Sie auf dem Tab **Personal tokens** auf **Create token**, geben Sie einen Namen ein und klicken Sie auf **Create**.\n3. Kopieren Sie das Token sofort: TidyCal zeigt es nur einmal an.\n\nFür den API-Zugriff ist ein kostenpflichtiger TidyCal-Tarif erforderlich."}\ No newline at end of filediff --git a/packages/pieces/community/tidycal/src/i18n/es.json b/packages/pieces/community/tidycal/src/i18n/es.jsonindex fd5188884ac..c2d55bedcc7 100644--- a/packages/pieces/community/tidycal/src/i18n/es.json+++ b/packages/pieces/community/tidycal/src/i18n/es.json@@ -29,5 +29,10 @@"New Contact": "Nuevo contacto","Triggers when a new booking is canceled": "Dispara cuando una nueva reserva es cancelada","Triggers when a new booking is created": "Dispara cuando se crea una nueva reserva",- "Triggers when a new contact is created": "Dispara cuando se crea un nuevo contacto"+ "Triggers when a new contact is created": "Dispara cuando se crea un nuevo contacto",+ "Triggers when a booking is canceled": "Dispara cuando se cancela una reserva",+ "Checks TidyCal periodically and runs once for each new booking.": "Consulta TidyCal periódicamente y se ejecuta una vez por cada nueva reserva.",+ "Checks TidyCal periodically and runs once for each canceled booking.": "Consulta TidyCal periódicamente y se ejecuta una vez por cada reserva cancelada.",+ "Checks TidyCal periodically and runs once for each new contact.": "Consulta TidyCal periódicamente y se ejecuta una vez por cada nuevo contacto.",+ "To create a personal access token:\n1. In TidyCal, open [Manage API keys](https://tidycal.com/integrations/advanced) under Integrations.\n2. On the **Personal tokens** tab, click **Create token**, enter a name and click **Create**.\n3. Copy the token now: TidyCal shows it only once.\n\nAPI access needs a paid TidyCal plan.": "Para crear un token de acceso personal:\n1. En TidyCal, abre [Manage API keys](https://tidycal.com/integrations/advanced) en Integrations.\n2. En la pestaña **Personal tokens**, haz clic en **Create token**, introduce un nombre y haz clic en **Create**.\n3. Copia el token ahora: TidyCal solo lo muestra una vez.\n\nEl acceso a la API requiere un plan de pago de TidyCal."}\ No newline at end of filediff --git a/packages/pieces/community/tidycal/src/i18n/fr.json b/packages/pieces/community/tidycal/src/i18n/fr.jsonindex d63fc1f3578..52cbc3332f6 100644--- a/packages/pieces/community/tidycal/src/i18n/fr.json+++ b/packages/pieces/community/tidycal/src/i18n/fr.json@@ -29,5 +29,10 @@"New Contact": "Nouveau contact","Triggers when a new booking is canceled": "Déclenche quand une nouvelle réservation est annulée","Triggers when a new booking is created": "Déclenche quand une nouvelle réservation est créée",- "Triggers when a new contact is created": "Déclenche lorsqu'un nouveau contact est créé"+ "Triggers when a new contact is created": "Déclenche lorsqu'un nouveau contact est créé",+ "Triggers when a booking is canceled": "Déclenche quand une réservation est annulée",+ "Checks TidyCal periodically and runs once for each new booking.": "Vérifie TidyCal régulièrement et s'exécute une fois pour chaque nouvelle réservation.",+ "Checks TidyCal periodically and runs once for each canceled booking.": "Vérifie TidyCal régulièrement et s'exécute une fois pour chaque réservation annulée.",+ "Checks TidyCal periodically and runs once for each new contact.": "Vérifie TidyCal régulièrement et s'exécute une fois pour chaque nouveau contact.",+ "To create a personal access token:\n1. In TidyCal, open [Manage API keys](https://tidycal.com/integrations/advanced) under Integrations.\n2. On the **Personal tokens** tab, click **Create token**, enter a name and click **Create**.\n3. Copy the token now: TidyCal shows it only once.\n\nAPI access needs a paid TidyCal plan.": "Pour créer un jeton d'accès personnel :\n1. Dans TidyCal, ouvrez [Manage API keys](https://tidycal.com/integrations/advanced) sous Integrations.\n2. Dans l'onglet **Personal tokens**, cliquez sur **Create token**, saisissez un nom et cliquez sur **Create**.\n3. Copiez le jeton maintenant : TidyCal ne l'affiche qu'une seule fois.\n\nL'accès à l'API nécessite un abonnement TidyCal payant."}\ No newline at end of filediff --git a/packages/pieces/community/tidycal/src/i18n/ja.json b/packages/pieces/community/tidycal/src/i18n/ja.jsonindex 4358c10a7dd..43fea73e2ce 100644--- a/packages/pieces/community/tidycal/src/i18n/ja.json+++ b/packages/pieces/community/tidycal/src/i18n/ja.json@@ -29,5 +29,10 @@"New Contact": "新しい連絡先","Triggers when a new booking is canceled": "新しい予約がキャンセルされたときにトリガーします","Triggers when a new booking is created": "新しい予約が作成されたときに発生する",- "Triggers when a new contact is created": "新しい連絡先が作成されたときにトリガーします"+ "Triggers when a new contact is created": "新しい連絡先が作成されたときにトリガーします",+ "Triggers when a booking is canceled": "予約がキャンセルされたときにトリガーします",+ "Checks TidyCal periodically and runs once for each new booking.": "TidyCal を定期的に確認し、新しい予約ごとに 1 回実行します。",+ "Checks TidyCal periodically and runs once for each canceled booking.": "TidyCal を定期的に確認し、キャンセルされた予約ごとに 1 回実行します。",+ "Checks TidyCal periodically and runs once for each new contact.": "TidyCal を定期的に確認し、新しい連絡先ごとに 1 回実行します。",+ "To create a personal access token:\n1. In TidyCal, open [Manage API keys](https://tidycal.com/integrations/advanced) under Integrations.\n2. On the **Personal tokens** tab, click **Create token**, enter a name and click **Create**.\n3. Copy the token now: TidyCal shows it only once.\n\nAPI access needs a paid TidyCal plan.": "個人アクセストークンを作成するには:\n1. TidyCal で、Integrations の [Manage API keys](https://tidycal.com/integrations/advanced) を開きます。\n2. **Personal tokens** タブで **Create token** をクリックし、名前を入力して **Create** をクリックします。\n3. トークンをすぐにコピーしてください。TidyCal では一度しか表示されません。\n\nAPI アクセスには TidyCal の有料プランが必要です。"}\ No newline at end of filediff --git a/packages/pieces/community/tidycal/src/i18n/nl.json b/packages/pieces/community/tidycal/src/i18n/nl.jsonindex 2c29fa777bf..addc3482f4a 100644--- a/packages/pieces/community/tidycal/src/i18n/nl.json+++ b/packages/pieces/community/tidycal/src/i18n/nl.json@@ -29,5 +29,10 @@"New Contact": "Nieuw contactpersoon","Triggers when a new booking is canceled": "Triggert wanneer een nieuwe boeking wordt geannuleerd","Triggers when a new booking is created": "Triggert wanneer een nieuwe boeking wordt gemaakt",- "Triggers when a new contact is created": "Triggert wanneer een nieuw contact wordt aangemaakt"+ "Triggers when a new contact is created": "Triggert wanneer een nieuw contact wordt aangemaakt",+ "Triggers when a booking is canceled": "Triggert wanneer een boeking wordt geannuleerd",+ "Checks TidyCal periodically and runs once for each new booking.": "Controleert TidyCal regelmatig en wordt één keer uitgevoerd voor elke nieuwe boeking.",+ "Checks TidyCal periodically and runs once for each canceled booking.": "Controleert TidyCal regelmatig en wordt één keer uitgevoerd voor elke geannuleerde boeking.",+ "Checks TidyCal periodically and runs once for each new contact.": "Controleert TidyCal regelmatig en wordt één keer uitgevoerd voor elk nieuw contact.",+ "To create a personal access token:\n1. In TidyCal, open [Manage API keys](https://tidycal.com/integrations/advanced) under Integrations.\n2. On the **Personal tokens** tab, click **Create token**, enter a name and click **Create**.\n3. Copy the token now: TidyCal shows it only once.\n\nAPI access needs a paid TidyCal plan.": "Zo maakt u een persoonlijk toegangstoken:\n1. Open in TidyCal [Manage API keys](https://tidycal.com/integrations/advanced) onder Integrations.\n2. Klik op het tabblad **Personal tokens** op **Create token**, voer een naam in en klik op **Create**.\n3. Kopieer het token meteen: TidyCal toont het maar één keer.\n\nVoor API-toegang is een betaald TidyCal-abonnement nodig."}\ No newline at end of filediff --git a/packages/pieces/community/tidycal/src/i18n/pt.json b/packages/pieces/community/tidycal/src/i18n/pt.jsonindex 78ff8db1b74..f320c01a8ac 100644--- a/packages/pieces/community/tidycal/src/i18n/pt.json+++ b/packages/pieces/community/tidycal/src/i18n/pt.json@@ -29,5 +29,10 @@"New Contact": "Novo Contato","Triggers when a new booking is canceled": "Aciona quando uma nova reserva é anulada","Triggers when a new booking is created": "Dispara quando uma nova reserva é criada",- "Triggers when a new contact is created": "Dispara quando um novo contato é criado"+ "Triggers when a new contact is created": "Dispara quando um novo contato é criado",+ "Triggers when a booking is canceled": "Aciona quando uma reserva é cancelada",+ "Checks TidyCal periodically and runs once for each new booking.": "Verifica o TidyCal periodicamente e é executado uma vez para cada nova reserva.",+ "Checks TidyCal periodically and runs once for each canceled booking.": "Verifica o TidyCal periodicamente e é executado uma vez para cada reserva cancelada.",+ "Checks TidyCal periodically and runs once for each new contact.": "Verifica o TidyCal periodicamente e é executado uma vez para cada novo contato.",+ "To create a personal access token:\n1. In TidyCal, open [Manage API keys](https://tidycal.com/integrations/advanced) under Integrations.\n2. On the **Personal tokens** tab, click **Create token**, enter a name and click **Create**.\n3. Copy the token now: TidyCal shows it only once.\n\nAPI access needs a paid TidyCal plan.": "Para criar um token de acesso pessoal:\n1. No TidyCal, abra [Manage API keys](https://tidycal.com/integrations/advanced) em Integrations.\n2. Na aba **Personal tokens**, clique em **Create token**, insira um nome e clique em **Create**.\n3. Copie o token agora: o TidyCal o mostra apenas uma vez.\n\nO acesso à API exige um plano pago do TidyCal."}\ No newline at end of filediff --git a/packages/pieces/community/tidycal/src/i18n/ru.json b/packages/pieces/community/tidycal/src/i18n/ru.jsonindex 5cb2a58b9e0..e5154541de7 100644--- a/packages/pieces/community/tidycal/src/i18n/ru.json+++ b/packages/pieces/community/tidycal/src/i18n/ru.json@@ -22,5 +22,10 @@"New Contact": "Новый контакт","Triggers when a new booking is canceled": "Триггеры при отмене нового заказа","Triggers when a new booking is created": "Триггеры при создании нового заказа",- "Triggers when a new contact is created": "Включает при создании нового контакта"+ "Triggers when a new contact is created": "Включает при создании нового контакта",+ "Triggers when a booking is canceled": "Срабатывает при отмене бронирования",+ "Checks TidyCal periodically and runs once for each new booking.": "Периодически проверяет TidyCal и запускается один раз для каждого нового бронирования.",+ "Checks TidyCal periodically and runs once for each canceled booking.": "Периодически проверяет TidyCal и запускается один раз для каждого отменённого бронирования.",+ "Checks TidyCal periodically and runs once for each new contact.": "Периодически проверяет TidyCal и запускается один раз для каждого нового контакта.",+ "To create a personal access token:\n1. In TidyCal, open [Manage API keys](https://tidycal.com/integrations/advanced) under Integrations.\n2. On the **Personal tokens** tab, click **Create token**, enter a name and click **Create**.\n3. Copy the token now: TidyCal shows it only once.\n\nAPI access needs a paid TidyCal plan.": "Как создать персональный токен доступа:\n1. В TidyCal откройте [Manage API keys](https://tidycal.com/integrations/advanced) в разделе Integrations.\n2. На вкладке **Personal tokens** нажмите **Create token**, введите название и нажмите **Create**.\n3. Сразу скопируйте токен: TidyCal показывает его только один раз.\n\nДля доступа к API нужен платный тариф TidyCal."}\ No newline at end of filediff --git a/packages/pieces/community/tidycal/src/i18n/translation.json b/packages/pieces/community/tidycal/src/i18n/translation.jsonindex 91648ac3c9b..ad2c8387ce3 100644--- a/packages/pieces/community/tidycal/src/i18n/translation.json+++ b/packages/pieces/community/tidycal/src/i18n/translation.json@@ -1,6 +1,6 @@{"Streamline your scheduling": "Streamline your scheduling",- "\n# Personal Access Token\n1- Visit https://tidycal.com/integrations/oauth and click on \"Create a new token\"\n2- Enter a name for your token and click on \"Create\"\n": "\n# Personal Access Token\n1- Visit https://tidycal.com/integrations/oauth and click on \"Create a new token\"\n2- Enter a name for your token and click on \"Create\"\n",+ "To create a personal access token:\n1. In TidyCal, open [Manage API keys](https://tidycal.com/integrations/advanced) under Integrations.\n2. On the **Personal tokens** tab, click **Create token**, enter a name and click **Create**.\n3. Copy the token now: TidyCal shows it only once.\n\nAPI access needs a paid TidyCal plan.": "To create a personal access token:\n1. In TidyCal, open [Manage API keys](https://tidycal.com/integrations/advanced) under Integrations.\n2. On the **Personal tokens** tab, click **Create token**, enter a name and click **Create**.\n3. Copy the token now: TidyCal shows it only once.\n\nAPI access needs a paid TidyCal plan.","Custom API Call": "Custom API Call","Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint","Method": "Method",@@ -27,7 +27,11 @@"Booking Canceled": "Booking Canceled","New Booking": "New Booking","New Contact": "New Contact",- "Triggers when a new booking is canceled": "Triggers when a new booking is canceled",+ "Triggers when a booking is canceled": "Triggers when a booking is canceled","Triggers when a new booking is created": "Triggers when a new booking is created",- "Triggers when a new contact is created": "Triggers when a new contact is created"+ "Triggers when a new contact is created": "Triggers when a new contact is created",+ "Markdown": "Markdown",+ "Checks TidyCal periodically and runs once for each canceled booking.": "Checks TidyCal periodically and runs once for each canceled booking.",+ "Checks TidyCal periodically and runs once for each new booking.": "Checks TidyCal periodically and runs once for each new booking.",+ "Checks TidyCal periodically and runs once for each new contact.": "Checks TidyCal periodically and runs once for each new contact."}\ No newline at end of filediff --git a/packages/pieces/community/tidycal/src/i18n/zh.json b/packages/pieces/community/tidycal/src/i18n/zh.jsonindex edaec8a1249..2daede4ee2c 100644--- a/packages/pieces/community/tidycal/src/i18n/zh.json+++ b/packages/pieces/community/tidycal/src/i18n/zh.json@@ -29,5 +29,10 @@"New Contact": "New Contact","Triggers when a new booking is canceled": "Triggers when a new booking is canceled","Triggers when a new booking is created": "Triggers when a new booking is created",- "Triggers when a new contact is created": "Triggers when a new contact is created"+ "Triggers when a new contact is created": "Triggers when a new contact is created",+ "Triggers when a booking is canceled": "预约被取消时触发",+ "Checks TidyCal periodically and runs once for each new booking.": "定期检查 TidyCal,每个新预约运行一次。",+ "Checks TidyCal periodically and runs once for each canceled booking.": "定期检查 TidyCal,每个被取消的预约运行一次。",+ "Checks TidyCal periodically and runs once for each new contact.": "定期检查 TidyCal,每个新联系人运行一次。",+ "To create a personal access token:\n1. In TidyCal, open [Manage API keys](https://tidycal.com/integrations/advanced) under Integrations.\n2. On the **Personal tokens** tab, click **Create token**, enter a name and click **Create**.\n3. Copy the token now: TidyCal shows it only once.\n\nAPI access needs a paid TidyCal plan.": "创建个人访问令牌:\n1. 在 TidyCal 中,打开 Integrations 下的 [Manage API keys](https://tidycal.com/integrations/advanced)。\n2. 在 **Personal tokens** 标签页中点击 **Create token**,输入名称并点击 **Create**。\n3. 立即复制令牌:TidyCal 只显示一次。\n\n使用 API 需要 TidyCal 付费套餐。"}\ No newline at end of filediff --git a/packages/pieces/community/tidycal/src/index.ts b/packages/pieces/community/tidycal/src/index.tsindex b7a38c1ac57..94e1c87d861 100644--- a/packages/pieces/community/tidycal/src/index.ts+++ b/packages/pieces/community/tidycal/src/index.ts@@ -1,35 +1,32 @@-import {- createCustomApiCallAction,- HttpMethod,-} from '@activepieces/pieces-common';-import { createPiece, PieceAuth } from '@activepieces/pieces-framework';-import { AppConnectionType, PieceCategory } from '@activepieces/pieces-framework';-import { calltidycalapi } from './lib/common';+import { createCustomApiCallAction } from '@activepieces/pieces-common';+import { createPiece, PieceCategory } from '@activepieces/pieces-framework';+import { TIDYCAL_API_BASE_URL } from './lib/common';import { tidycalbookingcancelled } from './lib/trigger/cancelled-booking';import { tidycalnewbooking } from './lib/trigger/new-booking';import { tidycalnewcontact } from './lib/trigger/new-contacts';import { tidyCalAuth } from './lib/auth';-const markdown = `-# Personal Access Token-1- Visit https://tidycal.com/integrations/oauth and click on "Create a new token"-2- Enter a name for your token and click on "Create"-`;export const tidycal = createPiece({displayName: 'TidyCal',description: 'Streamline your scheduling',auth: tidyCalAuth,- minimumSupportedRelease: '0.30.0',+ minimumSupportedRelease: '0.88.2',logoUrl: 'https://cdn.activepieces.com/pieces/tidycal.png',categories: [PieceCategory.PRODUCTIVITY],authors: ["Salem-Alaa","kishanprmr","MoShizzle","abuaboud"],actions: [createCustomApiCallAction({- baseUrl: () => 'https://tidycal.com/api',+ baseUrl: () => TIDYCAL_API_BASE_URL,auth: tidyCalAuth,authMapping: async (auth) => ({- Authorization: `Bearer ${auth}`,+ Authorization: `Bearer ${auth.secret_text}`,}),+ props: {+ url: {+ description: `Full URL, or a path relative to ${TIDYCAL_API_BASE_URL}`,+ placeholder: '/bookings',+ },+ },}),],triggers: [tidycalbookingcancelled, tidycalnewbooking, tidycalnewcontact],diff --git a/packages/pieces/community/tidycal/src/lib/auth.ts b/packages/pieces/community/tidycal/src/lib/auth.tsindex 9b6c7ae4deb..7f6f8c1884a 100644--- a/packages/pieces/community/tidycal/src/lib/auth.ts+++ b/packages/pieces/community/tidycal/src/lib/auth.ts@@ -3,14 +3,15 @@ import { HttpMethod } from '@activepieces/pieces-common';import { AppConnectionType } from '@activepieces/pieces-framework';import { calltidycalapi } from './common';-const markdown = `-# Personal Access Token-1- Visit https://tidycal.com/integrations/oauth and click on "Create a new token"-2- Enter a name for your token and click on "Create"-`;+const markdown = `To create a personal access token:+1. In TidyCal, open [Manage API keys](https://tidycal.com/integrations/advanced) under Integrations.+2. On the **Personal tokens** tab, click **Create token**, enter a name and click **Create**.+3. Copy the token now: TidyCal shows it only once.++API access needs a paid TidyCal plan.`;export const tidyCalAuth = PieceAuth.SecretText({- displayName: 'API Key',+ displayName: 'Personal Access Token',description: markdown,required: true,validate: async ({ auth }) => {@@ -25,7 +26,7 @@ export const tidyCalAuth = PieceAuth.SecretText({} catch (e) {return {valid: false,- error: 'Invalid API Key',+ error: 'Invalid personal access token.',};}},diff --git a/packages/pieces/community/tidycal/src/lib/common/index.ts b/packages/pieces/community/tidycal/src/lib/common/index.tsindex b6af600aee0..43c862eaf88 100644--- a/packages/pieces/community/tidycal/src/lib/common/index.ts+++ b/packages/pieces/community/tidycal/src/lib/common/index.ts@@ -12,11 +12,11 @@ export async function calltidycalapi<T extends HttpMessageBody>(method: HttpMethod,apiUrl: string,accessToken: AppConnectionValueForAuthProperty<typeof tidyCalAuth>,- body: any | undefined+ body: HttpMessageBody | undefined): Promise<HttpResponse<T>> {return await httpClient.sendRequest<T>({method: method,- url: `https://tidycal.com/api/${apiUrl}`,+ url: `${TIDYCAL_API_BASE_URL}/${apiUrl}`,authentication: {type: AuthenticationType.BEARER_TOKEN,token: accessToken.secret_text,@@ -24,3 +24,5 @@ export async function calltidycalapi<T extends HttpMessageBody>(body: body,});}++export const TIDYCAL_API_BASE_URL = 'https://tidycal.com/api';diff --git a/packages/pieces/community/tidycal/src/lib/trigger/cancelled-booking.ts b/packages/pieces/community/tidycal/src/lib/trigger/cancelled-booking.tsindex c15172acc71..f7e9e6d23d6 100644--- a/packages/pieces/community/tidycal/src/lib/trigger/cancelled-booking.ts+++ b/packages/pieces/community/tidycal/src/lib/trigger/cancelled-booking.ts@@ -1,4 +1,11 @@-import { AppConnectionValueForAuthProperty, createTrigger, TriggerStrategy } from '@activepieces/pieces-framework';+import {+ AppConnectionValueForAuthProperty,+ createTrigger,+ MarkdownVariant,+ Property,+ StaticPropsValue,+ TriggerStrategy,+} from '@activepieces/pieces-framework';import {DedupeStrategy,HttpMethod,@@ -9,40 +16,43 @@ import { calltidycalapi } from '../common';import { tidyCalAuth } from '../auth';import dayjs from 'dayjs';+const props = {+ info: Property.MarkDown({+ value: 'Checks TidyCal periodically and runs once for each canceled booking.',+ variant: MarkdownVariant.INFO,+ }),+};+export const tidycalbookingcancelled = createTrigger({auth: tidyCalAuth,name: 'booking_canceled',classification: 'READ',displayName: 'Booking Canceled',- description: 'Triggers when a new booking is canceled',+ description: 'Triggers when a booking is canceled',aiMetadata: {description: 'Fires when an existing TidyCal booking is canceled. The event represents the canceled appointment, including its id, booking type, start/end times, timezone, meeting URL, intake question answers, the cancellation timestamp, and the associated contact. Use this to react to cancellations, such as notifying the host, freeing resources, or updating downstream records.',},- props: {},+ props,sampleData: {- data: [- {- id: 1,- contact_id: 1,- booking_type_id: 1,- starts_at: '2022-01-01T00:00:00.000000Z',- ends_at: '2022-02-01T00:00:00.000000Z',- cancelled_at: '2022-02-01T00:00:00.000000Z',- created_at: '2022-02-01T00:00:00.000000Z',- updated_at: '2022-02-01T00:00:00.000000Z',- timezone: 'America/Los_Angeles',- meeting_url: 'https://zoom.us/j/949494949494',- meeting_id: 'fw44lkj48fks',- questions: {},- contact: {- id: '1',- email: '[email protected]',- name: 'John Doe',- created_at: '2022-01-01T00:00:00.000000Z',- updated_at: '2022-01-01T00:00:00.000000Z',- },- },- ],+ id: 1,+ contact_id: 1,+ booking_type_id: 1,+ starts_at: '2022-01-01T00:00:00.000000Z',+ ends_at: '2022-02-01T00:00:00.000000Z',+ cancelled_at: '2022-02-01T00:00:00.000000Z',+ created_at: '2022-02-01T00:00:00.000000Z',+ updated_at: '2022-02-01T00:00:00.000000Z',+ timezone: 'America/Los_Angeles',+ meeting_url: 'https://zoom.us/j/949494949494',+ meeting_id: 'fw44lkj48fks',+ questions: [],+ contact: {+ id: 1,+ email: '[email protected]',+ name: 'John Doe',+ created_at: '2022-01-01T00:00:00.000000Z',+ updated_at: '2022-01-01T00:00:00.000000Z',+ },},type: TriggerStrategy.POLLING,onEnable: async (context) => {@@ -77,12 +87,15 @@ export const tidycalbookingcancelled = createTrigger({},});-const polling: Polling<AppConnectionValueForAuthProperty<typeof tidyCalAuth>, Record<string, never>> = {+const polling: Polling<+ AppConnectionValueForAuthProperty<typeof tidyCalAuth>,+ StaticPropsValue<typeof props>+> = {strategy: DedupeStrategy.TIMEBASED,items: async ({ auth, lastFetchEpochMS }) => {const currentValues = await calltidycalapi<{data: {- id: string;+ id: number;cancelled_at: string;}[];}>(HttpMethod.GET, `bookings?cancelled=true`, auth, undefined);diff --git a/packages/pieces/community/tidycal/src/lib/trigger/new-booking.ts b/packages/pieces/community/tidycal/src/lib/trigger/new-booking.tsindex 8602a02c908..c9a7c036f24 100644--- a/packages/pieces/community/tidycal/src/lib/trigger/new-booking.ts+++ b/packages/pieces/community/tidycal/src/lib/trigger/new-booking.ts@@ -1,4 +1,11 @@-import { AppConnectionValueForAuthProperty, createTrigger, TriggerStrategy } from '@activepieces/pieces-framework';+import {+ AppConnectionValueForAuthProperty,+ createTrigger,+ MarkdownVariant,+ Property,+ StaticPropsValue,+ TriggerStrategy,+} from '@activepieces/pieces-framework';import {DedupeStrategy,HttpMethod,@@ -9,6 +16,13 @@ import { calltidycalapi } from '../common';import { tidyCalAuth } from '../auth';import dayjs from 'dayjs';+const props = {+ info: Property.MarkDown({+ value: 'Checks TidyCal periodically and runs once for each new booking.',+ variant: MarkdownVariant.INFO,+ }),+};+export const tidycalnewbooking = createTrigger({auth: tidyCalAuth,name: 'new_booking',@@ -18,31 +32,27 @@ export const tidycalnewbooking = createTrigger({aiMetadata: {description: 'Fires when a new (non-canceled) booking is created in TidyCal. The event represents the scheduled appointment, including its id, booking type, start/end times, timezone, meeting URL, intake question answers, creation timestamp, and the associated contact. Use this to react to newly scheduled meetings, such as sending confirmations or creating calendar events.',},- props: {},+ props,sampleData: {- data: [- {- id: 1,- contact_id: 1,- booking_type_id: 1,- starts_at: '2022-01-01T00:00:00.000000Z',- ends_at: '2022-02-01T00:00:00.000000Z',- cancelled_at: '2022-02-01T00:00:00.000000Z',- created_at: '2022-02-01T00:00:00.000000Z',- updated_at: '2022-02-01T00:00:00.000000Z',- timezone: 'America/Los_Angeles',- meeting_url: 'https://zoom.us/j/949494949494',- meeting_id: 'fw44lkj48fks',- questions: {},- contact: {- id: '1',- email: '[email protected]',- name: 'John Doe',- created_at: '2022-01-01T00:00:00.000000Z',- updated_at: '2022-01-01T00:00:00.000000Z',- },- },- ],+ id: 1,+ contact_id: 1,+ booking_type_id: 1,+ starts_at: '2022-01-01T00:00:00.000000Z',+ ends_at: '2022-02-01T00:00:00.000000Z',+ cancelled_at: null,+ created_at: '2022-02-01T00:00:00.000000Z',+ updated_at: '2022-02-01T00:00:00.000000Z',+ timezone: 'America/Los_Angeles',+ meeting_url: 'https://zoom.us/j/949494949494',+ meeting_id: 'fw44lkj48fks',+ questions: [],+ contact: {+ id: 1,+ email: '[email protected]',+ name: 'John Doe',+ created_at: '2022-01-01T00:00:00.000000Z',+ updated_at: '2022-01-01T00:00:00.000000Z',+ },},type: TriggerStrategy.POLLING,onEnable: async (context) => {@@ -77,12 +87,15 @@ export const tidycalnewbooking = createTrigger({},});-const polling: Polling<AppConnectionValueForAuthProperty<typeof tidyCalAuth>, Record<string, never>> = {+const polling: Polling<+ AppConnectionValueForAuthProperty<typeof tidyCalAuth>,+ StaticPropsValue<typeof props>+> = {strategy: DedupeStrategy.TIMEBASED,items: async ({ auth, lastFetchEpochMS }) => {const currentValues = await calltidycalapi<{data: {- id: string;+ id: number;created_at: string;}[];}>(HttpMethod.GET, `bookings?cancelled=false`, auth, undefined);diff --git a/packages/pieces/community/tidycal/src/lib/trigger/new-contacts.ts b/packages/pieces/community/tidycal/src/lib/trigger/new-contacts.tsindex 9126d23794c..598cdeabd27 100644--- a/packages/pieces/community/tidycal/src/lib/trigger/new-contacts.ts+++ b/packages/pieces/community/tidycal/src/lib/trigger/new-contacts.ts@@ -1,4 +1,11 @@-import { AppConnectionValueForAuthProperty, createTrigger, TriggerStrategy } from '@activepieces/pieces-framework';+import {+ AppConnectionValueForAuthProperty,+ createTrigger,+ MarkdownVariant,+ Property,+ StaticPropsValue,+ TriggerStrategy,+} from '@activepieces/pieces-framework';import {DedupeStrategy,HttpMethod,@@ -9,6 +16,13 @@ import { calltidycalapi } from '../common';import { tidyCalAuth } from '../auth';import dayjs from 'dayjs';+const props = {+ info: Property.MarkDown({+ value: 'Checks TidyCal periodically and runs once for each new contact.',+ variant: MarkdownVariant.INFO,+ }),+};+export const tidycalnewcontact = createTrigger({auth: tidyCalAuth,name: 'new_contact',@@ -18,17 +32,13 @@ export const tidycalnewcontact = createTrigger({aiMetadata: {description: 'Fires when a new contact is added to the TidyCal account. A contact represents a person who has booked or interacted with the scheduling account, including their id, name, email, and creation timestamp. Use this to react to newly captured contacts, such as syncing them to a CRM or mailing list.',},- props: {},+ props,sampleData: {- data: [- {- id: '1',- email: '[email protected]',- name: 'John Doe',- created_at: '2022-01-01T00:00:00.000000Z',- updated_at: '2022-01-01T00:00:00.000000Z',- },- ],+ id: 1,+ email: '[email protected]',+ name: 'John Doe',+ created_at: '2022-01-01T00:00:00.000000Z',+ updated_at: '2022-01-01T00:00:00.000000Z',},type: TriggerStrategy.POLLING,onEnable: async (context) => {@@ -63,12 +73,15 @@ export const tidycalnewcontact = createTrigger({},});-const polling: Polling<AppConnectionValueForAuthProperty<typeof tidyCalAuth>, Record<string, never>> = {+const polling: Polling<+ AppConnectionValueForAuthProperty<typeof tidyCalAuth>,+ StaticPropsValue<typeof props>+> = {strategy: DedupeStrategy.TIMEBASED,items: async ({ auth, lastFetchEpochMS }) => {const currentValues = await calltidycalapi<{data: {- id: string;+ id: number;created_at: string;}[];}>(HttpMethod.GET, `contacts`, auth, undefined);