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(pinterest): improve the step forms (#15471)

Talal Jaber7129df1976f7
diff --git a/packages/pieces/community/pinterest/package.json b/packages/pieces/community/pinterest/package.json
index b3bce1f4e46..edd9e8c6ccb 100644
--- a/packages/pieces/community/pinterest/package.json
+++ b/packages/pieces/community/pinterest/package.json
@@ -1,6 +1,6 @@
{
"name": "@activepieces/piece-pinterest",
- "version": "0.1.8",
+ "version": "0.1.9",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"scripts": {
diff --git a/packages/pieces/community/pinterest/src/i18n/de.json b/packages/pieces/community/pinterest/src/i18n/de.json
index 0d86d3fdbd0..eaaecde80bc 100644
--- a/packages/pieces/community/pinterest/src/i18n/de.json
+++ b/packages/pieces/community/pinterest/src/i18n/de.json
@@ -1,67 +1,39 @@
{
- "Connect your Pinterest Business Account": "Verbinden Sie Ihr Pinterest Business Konto",
"Create Pin": "Pin erstellen",
"Create Board": "Board erstellen",
"Delete Pin": "Pin löschen",
"Find Board by Name": "Brett nach Namen suchen",
- "Find Pin by Title/Keyword": "Pin nach Titel/Stichwort finden",
+ "Find Pin by Keyword": "Pin nach Titel/Stichwort finden",
"Update Board": "Board aktualisieren",
- "Upload an image or video to create a new Pin on a board.": "Ein Bild oder Video hochladen, um einen neuen Pin auf einem Board zu erstellen.",
"Create a new Pinterest board for organizing Pins.": "Erstellen Sie ein neues Pinterest Board für die Organisation von Pins.",
"Permanently delete a specific Pin.": "Einen bestimmten Pin dauerhaft löschen.",
"Search for boards by name using Pinterest's search API.": "Suchen Sie nach Boards mit der Suche API von Pinterest nach Namen.",
"Search for Pins using title, description, or keywords.": "Suche nach Pins mit Titel, Beschreibung oder Schlüsselwörtern.",
"Update a board's name, description, or privacy settings.": "Name, Beschreibung oder Privatsphäre-Einstellungen eines Boards aktualisieren.",
- "Ad account Id": "Anzeigen-Konto-Id",
- "Board Id": "Board-Id",
- "Board Section Id": "Board-Sektion-Id",
+ "Ad Account": "Anzeigen-Konto-Id",
+ "Board": "Board-Id",
+ "Board Section": "Board-Sektion-Id",
"Title": "Titel",
"Description": "Beschreibung",
- "Media Source Type": "Medienquellentyp",
- "Media URL": "Medien-URL",
+ "Media Type": "Medienquellentyp",
+ "Media": "Medien-URL",
"Destination Link": "Ziellink",
"Dominant Color": "Dominante Farbe",
"Alt Text": "Alt Text",
"Parent Pin ID": "Übergeordnete Pin-ID",
"Sponsor ID": "Sponsor ID",
- "Product Tags": "Produkt-Tags",
+ "Product Tag Pins": "Produkt-Tags",
"Note": "Notiz",
- "Is Removable": "Ist abnehmbar",
+ "Removable": "Ist abnehmbar",
"Board Name": "Boardname",
"Privacy": "Privatsphäre",
- "Ads Only Board": "Nur Werbung Board",
- "pin Id": "pin Id",
+ "Ads-Only Board": "Nur Werbung Board",
+ "Pin": "pin Id",
"Search Query": "Suchanfrage",
"Bookmark": "Lesezeichen",
- "Pagination Bookmark": "Seiten-Lesezeichen",
- "Maximum Results": "Maximale Ergebnisse",
- "The title of the Pin (max 100 characters).": "Der Titel des Pin (max. 100 Zeichen).",
- "The description of the Pin (max 800 characters).": "Die Beschreibung des Pin (max. 800 Zeichen).",
- "The type of media source for the Pin.": "Der Typ der Medienquelle für den Pin.",
- "The URL of the image or video to upload. Must be a valid URL.": "Die URL des Bildes oder Videos zum Hochladen. Muss eine gültige URL sein.",
- "The destination URL that the Pin will link to when clicked.": "Die Ziel-URL, auf die der Pin verlinkt, wenn angeklickt.",
- "The dominant color of the Pin as a hex color code (e.g., \"#6E7874\").": "Die dominante Farbe des Pins als Hex-Farbcode (z.B. \"#6E7874\").",
- "Alternative text for accessibility and screen readers (max 500 characters).": "Alternativer Text für Barrierefreiheit und Screenreader (max. 500 Zeichen).",
- "The ID of the original Pin if this is a saved/repinned Pin.": "Die ID des ursprünglichen Pins wenn es sich um einen gespeicherten/reparierten Pin handelt.",
- "The sponsor account ID for paid partnership content. Available only to select users in closed beta.": "Die Sponsor Konto-ID für kostenpflichtige Partnerschaften. Verfügbar nur um Benutzer in der geschlossenen Beta auszuwählen.",
- "Select one or more options": "Wählen Sie eine oder mehrere Optionen",
- "A private note for this Pin that only you can see.": "Eine private Notiz für diesen Pin, die nur Sie sehen können.",
- "Set to true to create an ad-only Pin that can be easily removed.": "Auf true setzen um einen ad-only Pin zu erstellen, der leicht entfernt werden kann.",
- "The name of the board (max 180 characters).": "Der Name des Boards (max. 180 Zeichen).",
- "Optional description for your board.": "Optionale Beschreibung für Ihr Board.",
- "Board privacy setting (auto-set to \"PROTECTED\" for ad-only boards).": "Board-Privatsphäre-Einstellung (automatisch auf \"PROTECTED\" für Nur-Werbung-Boards gesetzt).",
- "Create an ad-only board that can only store promotional Pins. Note: Board name will become \"Ad-only Pins\" and privacy will be set to \"PROTECTED\".": "Erstellen Sie ein Werbe-Board, das nur Werbe-Pins speichern kann. Hinweis: Der Board-Name wird zu \"Werbe-Nur-Pins\" und die Privatsphäre wird auf \"PROTECTED\" gesetzt.",
- "The search term to find boards (required).": "Der Suchbegriff zu finden Boards (erforderlich).",
- "Pagination bookmark from previous response.": "Lesezeichen für Paginierung von vorheriger Antwort.",
- "Search terms for pin titles, descriptions, or tags. You can also search using comma-separated pin IDs.": "Suchbegriffe für Pin-Titel, Beschreibungen oder Tags. Sie können auch mit Komma-getrennten Pin-IDs suchen.",
- "Bookmark token from previous search results for pagination.": "Lesezeichen-Token von vorherigen Suchergebnissen für die Seiteninierung.",
- "Maximum number of pins to return (useful for large result sets).": "Maximale Anzahl an Pins die zurückgegeben werden (nützlich für große Ergebnisse).",
- "The new name of the board (max 180 characters). Leave empty to keep current name.": "Der neue Name des Boards (max. 180 Zeichen). Leer lassen, um den aktuellen Namen zu behalten.",
- "The new description of the board (max 500 characters). Leave empty to keep current description.": "Die neue Beschreibung des Boards (max. 500 Zeichen). Leer lassen, um die aktuelle Beschreibung zu behalten.",
- "Update board privacy setting. Leave empty to keep current setting.": "Datenschutzeinstellungen des Boards aktualisieren. Leer lassen, um die aktuelle Einstellung zu behalten.",
+ "Max Results": "Maximale Ergebnisse",
"Image URL": "Bild-URL",
"Base64 Image": "Base64-Bild",
- "Video URL": "Video-URL",
"Public": "Öffentlich",
"Protected": "Geschützt",
"Secret": "Geheimnis",
@@ -71,16 +43,9 @@
"Fires when a new board is created in the account.": "Feuert ab, wenn ein neues Board im Konto erstellt wird.",
"Triggers when a user gains a new follower.": "Wird ausgelöst, wenn ein Benutzer einen neuen Follower erhält.",
"Fires when a new Pin is added to a specific board.": "Feuert ab, wenn ein neuer Pin einem bestimmten Board hinzugefügt wird.",
- "Board Privacy Filter": "Datenschutz-Filter",
"Page Size": "Einträge pro Seite",
- "Pin Types to Watch": "Zu beobachtende Typen anheften",
- "Filter boards by privacy setting (optional).": "Foren nach Datenschutzeinstellungen filtern (optional).",
- "Number of boards to fetch per page (1-250, default: 25).": "Anzahl der Boards pro Seite (1-250, Standard: 25).",
- "Filter by specific pin types. Leave empty to watch all types.": "Nach bestimmten Pin-Typen filtern. Leer lassen, um alle Typen zu beobachten.",
- "All Boards": "Alle Boards",
- "Public Only": "Nur öffentlich",
- "Protected Only": "Nur Geschützt",
- "Secret Only": "Nur Geheimnis",
+ "Pin Types": "Zu beobachtende Typen anheften",
+ "All": "Alle Boards",
"Public and Secret": "Öffentliche und geheime",
"Regular Pins": "Normale Pins",
"Video Pins": "Video-Pins",
diff --git a/packages/pieces/community/pinterest/src/i18n/es.json b/packages/pieces/community/pinterest/src/i18n/es.json
index b64739efb96..74155616d18 100644
--- a/packages/pieces/community/pinterest/src/i18n/es.json
+++ b/packages/pieces/community/pinterest/src/i18n/es.json
@@ -1,67 +1,39 @@
{
- "Connect your Pinterest Business Account": "Conecte su cuenta de Pinterest Business",
"Create Pin": "Crear pin",
"Create Board": "Crear tablero",
"Delete Pin": "Eliminar pin",
"Find Board by Name": "Buscar foro por nombre",
- "Find Pin by Title/Keyword": "Buscar alfileres por título/palabra clave",
+ "Find Pin by Keyword": "Buscar alfileres por título/palabra clave",
"Update Board": "Actualizar Tablero",
- "Upload an image or video to create a new Pin on a board.": "Sube una imagen o vídeo para crear un nuevo Pin en un foro.",
"Create a new Pinterest board for organizing Pins.": "Crear un nuevo tablero de Pinterest para organizar Pins.",
"Permanently delete a specific Pin.": "Elimina permanentemente un pin específico.",
"Search for boards by name using Pinterest's search API.": "Buscar tableros por nombre usando la API de búsqueda de Pinterest.",
"Search for Pins using title, description, or keywords.": "Buscar Pines usando título, descripción o palabras clave.",
"Update a board's name, description, or privacy settings.": "Actualizar el nombre, la descripción o la configuración de privacidad de un tablero.",
- "Ad account Id": "Id de cuenta de anuncio",
- "Board Id": "Tablero Id",
- "Board Section Id": "Id de la sección del foro",
+ "Ad Account": "Id de cuenta de anuncio",
+ "Board": "Tablero Id",
+ "Board Section": "Id de la sección del foro",
"Title": "Título",
"Description": "Descripción",
- "Media Source Type": "Tipo de fuente Multimedia",
- "Media URL": "URL de medios",
+ "Media Type": "Tipo de fuente Multimedia",
+ "Media": "URL de medios",
"Destination Link": "Enlace de destino",
"Dominant Color": "Color dominante",
"Alt Text": "Texto Alt",
"Parent Pin ID": "Pin ID padre",
"Sponsor ID": "ID del patrocinador",
- "Product Tags": "Etiquetas de producto",
+ "Product Tag Pins": "Etiquetas de producto",
"Note": "Nota",
- "Is Removable": "Es eliminable",
+ "Removable": "Es eliminable",
"Board Name": "Nombre del foro",
"Privacy": "Privacidad",
- "Ads Only Board": "Solo tablero de anuncios",
- "pin Id": "pin Id",
+ "Ads-Only Board": "Solo tablero de anuncios",
+ "Pin": "pin Id",
"Search Query": "Buscar consulta",
"Bookmark": "Marcador",
- "Pagination Bookmark": "Marcador de paginación",
- "Maximum Results": "Resultados máximos",
- "The title of the Pin (max 100 characters).": "El título del Pin (máximo 100 caracteres).",
- "The description of the Pin (max 800 characters).": "La descripción del Pin (máximo 800 caracteres).",
- "The type of media source for the Pin.": "El tipo de fuente de medios para el Pin.",
- "The URL of the image or video to upload. Must be a valid URL.": "La URL de la imagen o vídeo a cargar. Debe ser una URL válida.",
- "The destination URL that the Pin will link to when clicked.": "La URL de destino a la que el Pin enlazará cuando se haga clic.",
- "The dominant color of the Pin as a hex color code (e.g., \"#6E7874\").": "El color dominante del Pin como código hexadecimal de color (por ejemplo, \"#6E7874\").",
- "Alternative text for accessibility and screen readers (max 500 characters).": "Texto alternativo para accesibilidad y lectores de pantalla (máximo 500 caracteres).",
- "The ID of the original Pin if this is a saved/repinned Pin.": "El ID del Pin original si es un Pin guardado/repinnado.",
- "The sponsor account ID for paid partnership content. Available only to select users in closed beta.": "El ID de la cuenta de patrocinador para el contenido de la asociación pagada. Disponible sólo para seleccionar usuarios en beta cerrada.",
- "Select one or more options": "Seleccione una o más opciones",
- "A private note for this Pin that only you can see.": "Una nota privada para este Pin que sólo usted puede ver.",
- "Set to true to create an ad-only Pin that can be easily removed.": "Establecer en true para crear un pin de sólo anuncios que se puede eliminar fácilmente.",
- "The name of the board (max 180 characters).": "El nombre del tablero (máximo 180 caracteres).",
- "Optional description for your board.": "Descripción opcional para tu foro.",
- "Board privacy setting (auto-set to \"PROTECTED\" for ad-only boards).": "Configuración de privacidad del foro (auto-set a \"PROTECTED\" para tableros de sólo anuncios).",
- "Create an ad-only board that can only store promotional Pins. Note: Board name will become \"Ad-only Pins\" and privacy will be set to \"PROTECTED\".": "Crear un tablero de sólo publicidad que sólo puede almacenar alfileres promocionales. Nota: El nombre del tablero se convertirá en \"Pines de sólo anuncios\" y la privacidad se establecerá en \"PROTECTED\".",
- "The search term to find boards (required).": "El término de búsqueda para encontrar foros (requerido).",
- "Pagination bookmark from previous response.": "Marcador de paginación de la respuesta anterior.",
- "Search terms for pin titles, descriptions, or tags. You can also search using comma-separated pin IDs.": "Buscar términos para títulos de pin, descripciones o etiquetas. También puede buscar usando IDs de pines separados por comas.",
- "Bookmark token from previous search results for pagination.": "Ficha de marcadores de resultados de búsqueda anteriores para la paginación.",
- "Maximum number of pins to return (useful for large result sets).": "Número máximo de pines a devolver (útil para conjuntos de resultados grandes).",
- "The new name of the board (max 180 characters). Leave empty to keep current name.": "El nuevo nombre del tablero (máximo 180 caracteres). Dejar en blanco para mantener el nombre actual.",
- "The new description of the board (max 500 characters). Leave empty to keep current description.": "La nueva descripción del tablero (máximo 500 caracteres). Dejar en blanco para mantener la descripción actual.",
- "Update board privacy setting. Leave empty to keep current setting.": "Actualizar configuración de privacidad del foro. Dejar vacío para mantener la configuración actual.",
+ "Max Results": "Resultados máximos",
"Image URL": "URL de imagen",
"Base64 Image": "Imagen Base64",
- "Video URL": "URL del vídeo",
"Public": "Público",
"Protected": "Protegido",
"Secret": "Secreto",
@@ -71,16 +43,9 @@
"Fires when a new board is created in the account.": "Dispara cuando se crea un nuevo tablero en la cuenta.",
"Triggers when a user gains a new follower.": "Dispara cuando un usuario obtiene un nuevo seguidor.",
"Fires when a new Pin is added to a specific board.": "Dispara cuando se añade un nuevo Pin a un tablero específico.",
- "Board Privacy Filter": "Filtro de privacidad del foro",
"Page Size": "Tamaño de página",
- "Pin Types to Watch": "Anclar tipos a ver",
- "Filter boards by privacy setting (optional).": "Filtrar tableros por configuración de privacidad (opcional).",
- "Number of boards to fetch per page (1-250, default: 25).": "Número de tableros a buscar por página (1-250, por defecto: 25).",
- "Filter by specific pin types. Leave empty to watch all types.": "Filtrar por tipos de pin específicos. Dejar en blanco para ver todos los tipos.",
- "All Boards": "Todos los tableros",
- "Public Only": "Sólo público",
- "Protected Only": "Sólo Protegidos",
- "Secret Only": "Sólo secretos",
+ "Pin Types": "Anclar tipos a ver",
+ "All": "Todos los tableros",
"Public and Secret": "Público y secreto",
"Regular Pins": "Alfileres regulares",
"Video Pins": "Pines de vídeo",
diff --git a/packages/pieces/community/pinterest/src/i18n/fr.json b/packages/pieces/community/pinterest/src/i18n/fr.json
index 8ce8262f7a5..f22d2bdbd3d 100644
--- a/packages/pieces/community/pinterest/src/i18n/fr.json
+++ b/packages/pieces/community/pinterest/src/i18n/fr.json
@@ -1,67 +1,39 @@
{
- "Connect your Pinterest Business Account": "Connectez votre compte Pinterest Business",
"Create Pin": "Créer une broche",
"Create Board": "Créer un tableau",
"Delete Pin": "Supprimer la broche",
"Find Board by Name": "Trouver un tableau par nom",
- "Find Pin by Title/Keyword": "Trouver l'épingle par titre/Mot-clé",
+ "Find Pin by Keyword": "Trouver l'épingle par titre/Mot-clé",
"Update Board": "Mettre à jour le tableau",
- "Upload an image or video to create a new Pin on a board.": "Téléchargez une image ou une vidéo pour créer une nouvelle broche sur un tableau.",
"Create a new Pinterest board for organizing Pins.": "Créer un nouveau tableau Pinterest pour organiser les Pins.",
"Permanently delete a specific Pin.": "Supprimer définitivement une épingle spécifique.",
"Search for boards by name using Pinterest's search API.": "Rechercher des tableaux par nom en utilisant l'API de recherche de Pinterest.",
"Search for Pins using title, description, or keywords.": "Rechercher des épingles en utilisant le titre, la description ou les mots-clés.",
"Update a board's name, description, or privacy settings.": "Mettre à jour le nom, la description ou les paramètres de confidentialité d'un tableau.",
- "Ad account Id": "Id du compte publicitaire",
- "Board Id": "Identifiant du tableau",
- "Board Section Id": "ID de la section du tableau",
+ "Ad Account": "Id du compte publicitaire",
+ "Board": "Identifiant du tableau",
+ "Board Section": "ID de la section du tableau",
"Title": "Titre de la feuille de calcul",
"Description": "Libellé",
- "Media Source Type": "Type de Media Source",
- "Media URL": "URL du média",
+ "Media Type": "Type de Media Source",
+ "Media": "URL du média",
"Destination Link": "Lien de destination",
"Dominant Color": "Couleur dominante",
"Alt Text": "Texte Alt",
"Parent Pin ID": "ID de Pin parent",
"Sponsor ID": "ID du sponsor",
- "Product Tags": "Balises de produit",
+ "Product Tag Pins": "Balises de produit",
"Note": "Note",
- "Is Removable": "Est amovible",
+ "Removable": "Est amovible",
"Board Name": "Nom du tableau",
"Privacy": "Confidentialité",
- "Ads Only Board": "Annonces uniquement sur le tableau",
- "pin Id": "ID de la broche",
+ "Ads-Only Board": "Annonces uniquement sur le tableau",
+ "Pin": "ID de la broche",
"Search Query": "Requête de recherche",
"Bookmark": "Marque-page",
- "Pagination Bookmark": "Marque-page de pagination",
- "Maximum Results": "Nombre maximum de résultats",
- "The title of the Pin (max 100 characters).": "Le titre de la broche (max 100 caractères).",
- "The description of the Pin (max 800 characters).": "La description de la broche (max 800 caractères).",
- "The type of media source for the Pin.": "Le type de source de média pour l'épingle.",
- "The URL of the image or video to upload. Must be a valid URL.": "L'URL de l'image ou de la vidéo à télécharger. Doit être une URL valide.",
- "The destination URL that the Pin will link to when clicked.": "L'URL de destination vers laquelle l'épingle sera lorsqu'elle sera cliquée.",
- "The dominant color of the Pin as a hex color code (e.g., \"#6E7874\").": "La couleur dominante de la broche en tant que code couleur hexadécimal (par exemple, \"#6E7874\").",
- "Alternative text for accessibility and screen readers (max 500 characters).": "Texte alternatif pour l'accessibilité et les lecteurs d'écran (max 500 caractères).",
- "The ID of the original Pin if this is a saved/repinned Pin.": "L'ID de la broche originale si c'est une broche enregistrée/repérée.",
- "The sponsor account ID for paid partnership content. Available only to select users in closed beta.": "L'ID du compte du sponsor pour le contenu du partenariat payant. Disponible uniquement pour sélectionner les utilisateurs en bêta fermée.",
- "Select one or more options": "Sélectionnez une ou plusieurs options",
- "A private note for this Pin that only you can see.": "Une note privée pour cette broche que vous seul pouvez voir.",
- "Set to true to create an ad-only Pin that can be easily removed.": "Réglez sur vrai pour créer une épingle publicitaire qui peut être facilement supprimée.",
- "The name of the board (max 180 characters).": "Le nom du tableau (max 180 caractères).",
- "Optional description for your board.": "Description facultative pour votre tableau.",
- "Board privacy setting (auto-set to \"PROTECTED\" for ad-only boards).": "Réglage de la confidentialité de la carte (auto-réglé sur \"PROTECTED\" pour les cartes ad-only).",
- "Create an ad-only board that can only store promotional Pins. Note: Board name will become \"Ad-only Pins\" and privacy will be set to \"PROTECTED\".": "Créer un tableau réservé aux publicités qui ne peut stocker que les épingles promotionnelles. Remarque : Le nom du tableau deviendra des épingles publicitaires uniquement et la confidentialité sera réglée sur \"PROTECTED\".",
- "The search term to find boards (required).": "Le terme de recherche pour trouver des tableaux (obligatoire).",
- "Pagination bookmark from previous response.": "Signet de pagination de la réponse précédente.",
- "Search terms for pin titles, descriptions, or tags. You can also search using comma-separated pin IDs.": "Rechercher des termes pour les titres, les descriptions ou les étiquettes. Vous pouvez également effectuer une recherche en utilisant des identifiants d'épingles séparés par des virgules.",
- "Bookmark token from previous search results for pagination.": "Marquer le jeton des résultats de recherche précédents pour la pagination.",
- "Maximum number of pins to return (useful for large result sets).": "Nombre maximum de pins à retourner (utile pour les grands jeux de résultats).",
- "The new name of the board (max 180 characters). Leave empty to keep current name.": "Le nouveau nom du tableau (max 180 caractères). Laisser vide pour conserver le nom courant.",
- "The new description of the board (max 500 characters). Leave empty to keep current description.": "La nouvelle description du tableau (max 500 caractères). Laisser vide pour conserver la description actuelle.",
- "Update board privacy setting. Leave empty to keep current setting.": "Mettre à jour le paramètre de confidentialité du forum. Laisser vide pour conserver le paramètre actuel.",
+ "Max Results": "Nombre maximum de résultats",
"Image URL": "URL de l'image",
"Base64 Image": "Image Base64",
- "Video URL": "URL de la vidéo",
"Public": "Publique",
"Protected": "Protégé",
"Secret": "Secrète",
@@ -71,16 +43,9 @@
"Fires when a new board is created in the account.": "Tire quand un nouveau tableau est créé dans le compte.",
"Triggers when a user gains a new follower.": "Déclenche lorsqu'un utilisateur gagne un nouvel abonné.",
"Fires when a new Pin is added to a specific board.": "Tire quand une nouvelle broche est ajoutée à une carte spécifique.",
- "Board Privacy Filter": "Filtre de confidentialité du tableau",
"Page Size": "Nombre d'élément",
- "Pin Types to Watch": "Épingler les types à surveiller",
- "Filter boards by privacy setting (optional).": "Filtrer les tableaux par paramètre de confidentialité (facultatif).",
- "Number of boards to fetch per page (1-250, default: 25).": "Nombre de tableaux à récupérer par page (1-250, par défaut: 25).",
- "Filter by specific pin types. Leave empty to watch all types.": "Filtrer par types d'épingles spécifiques. Laisser vide pour regarder tous les types.",
- "All Boards": "Toutes les planches",
- "Public Only": "Publique uniquement",
- "Protected Only": "Protégé uniquement",
- "Secret Only": "Secret uniquement",
+ "Pin Types": "Épingler les types à surveiller",
+ "All": "Toutes les planches",
"Public and Secret": "Public et secret",
"Regular Pins": "Épingles régulières",
"Video Pins": "Épingles vidéo",
diff --git a/packages/pieces/community/pinterest/src/i18n/ja.json b/packages/pieces/community/pinterest/src/i18n/ja.json
index 0cb7a80325e..72cf5971f07 100644
--- a/packages/pieces/community/pinterest/src/i18n/ja.json
+++ b/packages/pieces/community/pinterest/src/i18n/ja.json
@@ -1,67 +1,39 @@
{
- "Connect your Pinterest Business Account": "Pinterest ビジネスアカウントに接続",
"Create Pin": "ピンを作成",
"Create Board": "ボードを作成",
"Delete Pin": "ピンを削除",
"Find Board by Name": "名前でボードを検索",
- "Find Pin by Title/Keyword": "タイトル/キーワードでピンを検索",
+ "Find Pin by Keyword": "タイトル/キーワードでピンを検索",
"Update Board": "ボードを更新",
- "Upload an image or video to create a new Pin on a board.": "ボードに新しいピンを作成するには、画像またはビデオをアップロードします。",
"Create a new Pinterest board for organizing Pins.": "新しい Pinterest ボードを作成してピンを整理します。",
"Permanently delete a specific Pin.": "特定のピンを完全に削除します。",
"Search for boards by name using Pinterest's search API.": "Pinterestの検索APIを使用してボードを名前で検索します。",
"Search for Pins using title, description, or keywords.": "タイトル、説明、キーワードを使用してピンを検索します。",
"Update a board's name, description, or privacy settings.": "ボードの名前、説明、またはプライバシー設定を更新します。",
- "Ad account Id": "広告アカウントID",
- "Board Id": "ボード ID",
- "Board Section Id": "ボードセクションID",
+ "Ad Account": "広告アカウントID",
+ "Board": "ボード ID",
+ "Board Section": "ボードセクションID",
"Title": "タイトル",
"Description": "説明",
- "Media Source Type": "メディアソースタイプ",
- "Media URL": "メディア URL",
+ "Media Type": "メディアソースタイプ",
+ "Media": "メディア URL",
"Destination Link": "リンク先先",
"Dominant Color": "支配的な色",
"Alt Text": "代替テキスト",
"Parent Pin ID": "親ピンID",
"Sponsor ID": "スポンサーID",
- "Product Tags": "商品タグ",
+ "Product Tag Pins": "商品タグ",
"Note": "メモ",
- "Is Removable": "取り外し可能",
+ "Removable": "取り外し可能",
"Board Name": "ボード名",
"Privacy": "プライバシー",
- "Ads Only Board": "広告のみ ボード",
- "pin Id": "ピン ID",
+ "Ads-Only Board": "広告のみ ボード",
+ "Pin": "ピン ID",
"Search Query": "検索クエリ",
"Bookmark": "ブックマーク",
- "Pagination Bookmark": "ページングのブックマーク",
- "Maximum Results": "最大結果",
- "The title of the Pin (max 100 characters).": "ピンのタイトル (最大 100 文字)",
- "The description of the Pin (max 800 characters).": "ピンの説明 (最大 800 文字)。",
- "The type of media source for the Pin.": "ピンのメディアソースのタイプ。",
- "The URL of the image or video to upload. Must be a valid URL.": "アップロードする画像または動画のURL。有効なURLである必要があります。",
- "The destination URL that the Pin will link to when clicked.": "ピンがクリックされたときにリンクするリンク先URL。",
- "The dominant color of the Pin as a hex color code (e.g., \"#6E7874\").": "16進カラーコードとしてのピンの支配的な色(例:\"#6E7874\")。",
- "Alternative text for accessibility and screen readers (max 500 characters).": "アクセシビリティとスクリーンリーダーの代替テキスト(最大 500 文字)。",
- "The ID of the original Pin if this is a saved/repinned Pin.": "保存済み/反復されたピンの場合、元のピンの ID です。",
- "The sponsor account ID for paid partnership content. Available only to select users in closed beta.": "有料パートナーシップコンテンツのスポンサーアカウントID。クローズドベータでのユーザーのみ利用できます。",
- "Select one or more options": "1つ以上のオプションを選択してください",
- "A private note for this Pin that only you can see.": "あなただけが見ることができるこのピンのプライベートノート。",
- "Set to true to create an ad-only Pin that can be easily removed.": "簡単に削除できる広告のみのピンを作成するには、true に設定します。",
- "The name of the board (max 180 characters).": "ボードの名前 (最大 180 文字)。",
- "Optional description for your board.": "あなたのボードの任意の説明。",
- "Board privacy setting (auto-set to \"PROTECTED\" for ad-only boards).": "ボードのプライバシー設定 (広告専用ボードの「保護」に自動設定)。",
- "Create an ad-only board that can only store promotional Pins. Note: Board name will become \"Ad-only Pins\" and privacy will be set to \"PROTECTED\".": "プロモーションピンのみを格納できるアドオン専用ボードを作成します。注:ボード名は「アドオン専用ピン」になり、プライバシーは「保護」に設定されます。",
- "The search term to find boards (required).": "ボードを検索するための検索語(必須)。",
- "Pagination bookmark from previous response.": "以前の応答からのページネーションブックマーク。",
- "Search terms for pin titles, descriptions, or tags. You can also search using comma-separated pin IDs.": "ピンのタイトル、説明、タグを検索します。カンマ区切りのピンIDを使用して検索することもできます。",
- "Bookmark token from previous search results for pagination.": "ページネーション用に以前の検索結果のブックマークトークン。",
- "Maximum number of pins to return (useful for large result sets).": "リターンする最大ピン数(大きな結果セットに便利)。",
- "The new name of the board (max 180 characters). Leave empty to keep current name.": "ボードの新しい名前 (最大 180 文字) 。現在の名前を保持するには空白のままにします。",
- "The new description of the board (max 500 characters). Leave empty to keep current description.": "ボードの新しい説明(最大500文字)。現在の説明を維持するには空のままにしてください。",
- "Update board privacy setting. Leave empty to keep current setting.": "ボードのプライバシー設定を更新します。空のままにすると現在の設定を維持します。",
+ "Max Results": "最大結果",
"Image URL": "画像URL",
"Base64 Image": "Base64 画像",
- "Video URL": "動画の URL",
"Public": "公開",
"Protected": "保護",
"Secret": "シークレット",
@@ -71,16 +43,9 @@
"Fires when a new board is created in the account.": "アカウントに新しいボードが作成されたときに発火します。",
"Triggers when a user gains a new follower.": "ユーザーが新しいフォロワーを獲得したときにトリガーします。",
"Fires when a new Pin is added to a specific board.": "新しいピンが特定のボードに追加されたときに発生します。",
- "Board Privacy Filter": "ボードプライバシーフィルタ",
"Page Size": "ページサイズ",
- "Pin Types to Watch": "ウォッチにピンタイプ",
- "Filter boards by privacy setting (optional).": "プライバシー設定でボードを絞り込みます (オプション)。",
- "Number of boards to fetch per page (1-250, default: 25).": "ページごとにフェッチするボードの数(1-250、デフォルト:25)",
- "Filter by specific pin types. Leave empty to watch all types.": "特定のピンタイプでフィルタします。すべてのタイプを見るには空のままにします。",
- "All Boards": "すべてのボード",
- "Public Only": "公開のみ",
- "Protected Only": "保護されたのみ",
- "Secret Only": "シークレットのみ",
+ "Pin Types": "ウォッチにピンタイプ",
+ "All": "すべてのボード",
"Public and Secret": "公開と秘密",
"Regular Pins": "レギュラーピン",
"Video Pins": "ビデオピン",
diff --git a/packages/pieces/community/pinterest/src/i18n/nl.json b/packages/pieces/community/pinterest/src/i18n/nl.json
index 9cf013a07fb..5c3f7d44775 100644
--- a/packages/pieces/community/pinterest/src/i18n/nl.json
+++ b/packages/pieces/community/pinterest/src/i18n/nl.json
@@ -1,67 +1,39 @@
{
- "Connect your Pinterest Business Account": "Verbind uw Pinterest Business Account",
"Create Pin": "Pincode maken",
"Create Board": "Creëer bord",
"Delete Pin": "Verwijder PIN",
"Find Board by Name": "Zoek bord op naam",
- "Find Pin by Title/Keyword": "Zoek PIN op Titel/Sleutelwoord",
+ "Find Pin by Keyword": "Zoek PIN op Titel/Sleutelwoord",
"Update Board": "Bord bijwerken",
- "Upload an image or video to create a new Pin on a board.": "Upload een afbeelding of video om een nieuwe pin op een bord te maken.",
"Create a new Pinterest board for organizing Pins.": "Maak een nieuw Pinterest board voor het organiseren van Pins.",
"Permanently delete a specific Pin.": "Een specifieke pin permanent verwijderen.",
"Search for boards by name using Pinterest's search API.": "Zoek boards op naam met behulp van Pinterest's zoekAPI.",
"Search for Pins using title, description, or keywords.": "Zoek naar pinnen met titel, beschrijving of trefwoorden.",
"Update a board's name, description, or privacy settings.": "Werk de naam van een bord of privacy instellingen bij.",
- "Ad account Id": "Advertentie account-ID",
- "Board Id": "Bord ID",
- "Board Section Id": "Sectie-ID Bord",
+ "Ad Account": "Advertentie account-ID",
+ "Board": "Bord ID",
+ "Board Section": "Sectie-ID Bord",
"Title": "Aanspreektitel",
"Description": "Beschrijving",
- "Media Source Type": "Media Source Type",
- "Media URL": "Media URL",
+ "Media Type": "Media Source Type",
+ "Media": "Media URL",
"Destination Link": "Bestemming Link",
"Dominant Color": "Dominante Kleur",
"Alt Text": "Alternatieve tekst",
"Parent Pin ID": "Bovenliggende pin ID",
"Sponsor ID": "Sponsor ID",
- "Product Tags": "Product tags",
+ "Product Tag Pins": "Product tags",
"Note": "Notitie",
- "Is Removable": "Is verwijderbaar",
+ "Removable": "Is verwijderbaar",
"Board Name": "Naam bord",
"Privacy": "Privacy",
- "Ads Only Board": "Alleen advertenties",
- "pin Id": "pin ID",
+ "Ads-Only Board": "Alleen advertenties",
+ "Pin": "pin ID",
"Search Query": "Zoek query",
"Bookmark": "Bladwijzer",
- "Pagination Bookmark": "Paginering Bookmark",
- "Maximum Results": "Maximaal aantal resultaten",
- "The title of the Pin (max 100 characters).": "De titel van de pin (max 100 tekens).",
- "The description of the Pin (max 800 characters).": "De beschrijving van de pin (max 800 tekens).",
- "The type of media source for the Pin.": "Het mediabron voor de Pin.",
- "The URL of the image or video to upload. Must be a valid URL.": "De URL van de afbeelding of video om te uploaden. Moet een geldige URL zijn.",
- "The destination URL that the Pin will link to when clicked.": "De doel-URL waarnaar de PIN linkt wanneer geklikt wordt.",
- "The dominant color of the Pin as a hex color code (e.g., \"#6E7874\").": "De dominante kleur van de pincode als hex kleurcode (bijv. \"#6E7874\").",
- "Alternative text for accessibility and screen readers (max 500 characters).": "Alternatieve tekst voor toegankelijkheid en schermlezers (max 500 tekens).",
- "The ID of the original Pin if this is a saved/repinned Pin.": "Het ID van de originele PIN als dit een opgeslagen/gerepareerde PIN is.",
- "The sponsor account ID for paid partnership content. Available only to select users in closed beta.": "De sponsor account ID voor betaalde partnerschap inhoud. Alleen beschikbaar voor gebruikers in gesloten beta.",
- "Select one or more options": "Selecteer een of meer opties",
- "A private note for this Pin that only you can see.": "Een privénotitie voor deze pin die alleen u kunt zien.",
- "Set to true to create an ad-only Pin that can be easily removed.": "Zet op true om een alleen-kladblok te maken die gemakkelijk kan worden verwijderd.",
- "The name of the board (max 180 characters).": "De naam van het bord (max 180 tekens).",
- "Optional description for your board.": "Optionele beschrijving voor jouw bord.",
- "Board privacy setting (auto-set to \"PROTECTED\" for ad-only boards).": "Bord privacy-instelling (automatisch ingesteld op \"PROTECTED\" voor reclameborden).",
- "Create an ad-only board that can only store promotional Pins. Note: Board name will become \"Ad-only Pins\" and privacy will be set to \"PROTECTED\".": "Creëer een enkel advertentiebord dat alleen promotionele pinnen kan opslaan. Opmerking: Bordentnaam wordt \"Ad-only Pins\" en privacy wordt ingesteld op \"PROTECTED\".",
- "The search term to find boards (required).": "De zoekterm om boards te vinden (vereist).",
- "Pagination bookmark from previous response.": "Paginering bladwijzer van het vorige antwoord.",
- "Search terms for pin titles, descriptions, or tags. You can also search using comma-separated pin IDs.": "Zoektermen voor pin titels, beschrijvingen of tags. U kunt ook zoeken met behulp van komma-gescheiden pin IDs.",
- "Bookmark token from previous search results for pagination.": "Bladwijzer token uit vorige zoekresultaten voor paginering.",
- "Maximum number of pins to return (useful for large result sets).": "Maximum aantal te retourneren pinnen (nuttig voor grote resultaatsets).",
- "The new name of the board (max 180 characters). Leave empty to keep current name.": "De nieuwe naam van het bord (max 180 tekens). Laat leeg om de huidige naam te bewaren.",
- "The new description of the board (max 500 characters). Leave empty to keep current description.": "De nieuwe beschrijving van het bord (max 500 tekens). Laat leeg om de huidige beschrijving te behouden.",
- "Update board privacy setting. Leave empty to keep current setting.": "Update board privacy instelling. Laat leeg om de huidige instelling te behouden.",
+ "Max Results": "Maximaal aantal resultaten",
"Image URL": "Afbeelding URL",
"Base64 Image": "Base64 afbeelding",
- "Video URL": "Video URL",
"Public": "Openbaar",
"Protected": "Beschermd",
"Secret": "Geheim",
@@ -71,16 +43,9 @@
"Fires when a new board is created in the account.": "Schiet wanneer een nieuw bord wordt aangemaakt in het account.",
"Triggers when a user gains a new follower.": "Triggert wanneer een gebruiker een nieuwe volger krijgt.",
"Fires when a new Pin is added to a specific board.": "Vuurt wanneer een nieuwe pin is toegevoegd aan een specifiek bord.",
- "Board Privacy Filter": "Bord privacyfilter",
"Page Size": "Paginagrootte",
- "Pin Types to Watch": "Typ typen om te bekijken",
- "Filter boards by privacy setting (optional).": "Filter boards op privacy-instelling (optioneel).",
- "Number of boards to fetch per page (1-250, default: 25).": "Aantal boards dat per pagina moet worden opgehaald (1-250, standaard: 25).",
- "Filter by specific pin types. Leave empty to watch all types.": "Filter op specifieke pintypes. Laat leeg om alle typen te bekijken.",
- "All Boards": "Alle boards",
- "Public Only": "Alleen openbaar",
- "Protected Only": "Alleen beschermd",
- "Secret Only": "Alleen geheim",
+ "Pin Types": "Typ typen om te bekijken",
+ "All": "Alle boards",
"Public and Secret": "Openbaar en geheim",
"Regular Pins": "Normale pinnen",
"Video Pins": "Video pinnen",
diff --git a/packages/pieces/community/pinterest/src/i18n/pt.json b/packages/pieces/community/pinterest/src/i18n/pt.json
index 3f657b8dbaa..a415805e83a 100644
--- a/packages/pieces/community/pinterest/src/i18n/pt.json
+++ b/packages/pieces/community/pinterest/src/i18n/pt.json
@@ -1,67 +1,39 @@
{
- "Connect your Pinterest Business Account": "Conecte sua conta empresarial do Pinterest",
"Create Pin": "Criar PIN",
"Create Board": "Criar Board",
"Delete Pin": "Excluir Pin",
"Find Board by Name": "Encontrar Board por Nome",
- "Find Pin by Title/Keyword": "Encontre o Pin por Título/Palavra-chave",
+ "Find Pin by Keyword": "Encontre o Pin por Título/Palavra-chave",
"Update Board": "Atualizar Board",
- "Upload an image or video to create a new Pin on a board.": "Enviar uma imagem ou vídeo para criar um novo pin na lousa.",
"Create a new Pinterest board for organizing Pins.": "Criar um novo quadro do Pinterest para organizar Pins.",
"Permanently delete a specific Pin.": "Exclua permanentemente um pin específico.",
"Search for boards by name using Pinterest's search API.": "Busca por boards por nome usando a API de busca do Pinterest.",
"Search for Pins using title, description, or keywords.": "Pesquise por Pins usando título, descrição ou palavras-chave.",
"Update a board's name, description, or privacy settings.": "Atualizar o nome, descrição ou configurações de privacidade de um fórum.",
- "Ad account Id": "ID da conta de anúncio",
- "Board Id": "ID do fórum",
- "Board Section Id": "ID da seção Board",
+ "Ad Account": "ID da conta de anúncio",
+ "Board": "ID do fórum",
+ "Board Section": "ID da seção Board",
"Title": "Título",
"Description": "Descrição",
- "Media Source Type": "Tipo de Fonte de Mídia",
- "Media URL": "URL da Mídia",
+ "Media Type": "Tipo de Fonte de Mídia",
+ "Media": "URL da Mídia",
"Destination Link": "Link de destino",
"Dominant Color": "Cor do Dominante",
"Alt Text": "Texto Alternativo",
"Parent Pin ID": "ID Pin Pai",
"Sponsor ID": "ID do Patrocinador",
- "Product Tags": "Tags de Produto",
+ "Product Tag Pins": "Tags de Produto",
"Note": "Observação",
- "Is Removable": "É removível",
+ "Removable": "É removível",
"Board Name": "Nome do quadro",
"Privacy": "Privacidade",
- "Ads Only Board": "Área de anúncios",
- "pin Id": "ID do pin",
+ "Ads-Only Board": "Área de anúncios",
+ "Pin": "ID do pin",
"Search Query": "Consulta de Pesquisa",
"Bookmark": "Favorito",
- "Pagination Bookmark": "Marcador de Paginação",
- "Maximum Results": "Resultados máximos",
- "The title of the Pin (max 100 characters).": "O título do Pin (máx. 100 caracteres).",
- "The description of the Pin (max 800 characters).": "A descrição do Pin (máx. 800 caracteres).",
- "The type of media source for the Pin.": "O tipo de fonte de mídia para o Pin.",
- "The URL of the image or video to upload. Must be a valid URL.": "A URL da imagem ou vídeo para upload. Deve ser uma URL válida.",
- "The destination URL that the Pin will link to when clicked.": "A URL de destino que o Pin irá vincular quando clicado.",
- "The dominant color of the Pin as a hex color code (e.g., \"#6E7874\").": "A cor dominante do Pin como um código de cores hexadecimal (ex: \"#6E7874\").",
- "Alternative text for accessibility and screen readers (max 500 characters).": "Texto alternativo para leitores de tela e acessibilidade (máximo de 500 caracteres).",
- "The ID of the original Pin if this is a saved/repinned Pin.": "O ID do Pin original se isto é um Pin salvo/refixado.",
- "The sponsor account ID for paid partnership content. Available only to select users in closed beta.": "O ID de conta de patrocinador para conteúdo pago de parceria. Disponível apenas para selecionar usuários em beta fechado.",
- "Select one or more options": "Selecione uma ou mais opções",
- "A private note for this Pin that only you can see.": "Uma nota privada para este Pin que só você pode ver.",
- "Set to true to create an ad-only Pin that can be easily removed.": "Defina como verdadeiro para criar um Pin com apenas anúncios que pode ser facilmente removido.",
- "The name of the board (max 180 characters).": "O nome do board (máximo de 180 caracteres).",
- "Optional description for your board.": "Descrição opcional para seu fórum.",
- "Board privacy setting (auto-set to \"PROTECTED\" for ad-only boards).": "Configurações de privacidade do fórum (auto-definir como \"PROTECTAD\" para quadros somente anúncios).",
- "Create an ad-only board that can only store promotional Pins. Note: Board name will become \"Ad-only Pins\" and privacy will be set to \"PROTECTED\".": "Crie um board somente-anúncio que só pode armazenar Pins promocionais. Nota: O nome do Board se tornará \"Pins com apenas publicidade\" e a privacidade será definida como \"PROTECTADA\".",
- "The search term to find boards (required).": "O termo da pesquisa para encontrar quadros (obrigatório).",
- "Pagination bookmark from previous response.": "Marcador de paginação da resposta anterior.",
- "Search terms for pin titles, descriptions, or tags. You can also search using comma-separated pin IDs.": "Termos de pesquisa para pin títulos, descrições ou tags. Você também pode procurar usando IDs de pin separados por vírgula.",
- "Bookmark token from previous search results for pagination.": "Token de marcador dos resultados de pesquisa anteriores para paginação.",
- "Maximum number of pins to return (useful for large result sets).": "Número máximo de pinos a retornar (útil para grandes conjuntos de resultados).",
- "The new name of the board (max 180 characters). Leave empty to keep current name.": "O novo nome do board (máximo de 180 caracteres). Deixe em branco para manter o nome atual.",
- "The new description of the board (max 500 characters). Leave empty to keep current description.": "A nova descrição do board (máx. 500 caracteres). Deixe em branco para manter a descrição atual.",
- "Update board privacy setting. Leave empty to keep current setting.": "Atualize a configuração de privacidade do fórum. Deixe em branco para manter a configuração atual.",
+ "Max Results": "Resultados máximos",
"Image URL": "URL da imagem",
"Base64 Image": "Imagem Base64",
- "Video URL": "URL do vídeo",
"Public": "Público",
"Protected": "Protegido",
"Secret": "Segredo",
@@ -71,16 +43,9 @@
"Fires when a new board is created in the account.": "aciona quando um novo quadro é criado na conta.",
"Triggers when a user gains a new follower.": "Dispara quando um usuário ganha um novo seguidor.",
"Fires when a new Pin is added to a specific board.": "Lança quando um novo Pin é adicionado a um quadro específico.",
- "Board Privacy Filter": "Board Filtro de Privacidade",
"Page Size": "Tamanho da página",
- "Pin Types to Watch": "Fixar Tipos para Assistir",
- "Filter boards by privacy setting (optional).": "Filtrar quadros por configuração de privacidade (opcional).",
- "Number of boards to fetch per page (1-250, default: 25).": "Número de boards para buscar por página (1-250, padrão: 25).",
- "Filter by specific pin types. Leave empty to watch all types.": "Filtrar por tipos de pin específicos. Deixe em branco para assistir a todos os tipos.",
- "All Boards": "Todas as Seções",
- "Public Only": "Apenas Público",
- "Protected Only": "Somente Protegido",
- "Secret Only": "Apenas Segredo",
+ "Pin Types": "Fixar Tipos para Assistir",
+ "All": "Todas as Seções",
"Public and Secret": "Público e Segredo",
"Regular Pins": "Pins regulares",
"Video Pins": "Pins de vídeo",
diff --git a/packages/pieces/community/pinterest/src/i18n/translation.json b/packages/pieces/community/pinterest/src/i18n/translation.json
index 4d4021e15f7..856bb53e38e 100644
--- a/packages/pieces/community/pinterest/src/i18n/translation.json
+++ b/packages/pieces/community/pinterest/src/i18n/translation.json
@@ -1,67 +1,65 @@
{
- "Connect your Pinterest Business Account": "Connect your Pinterest Business Account",
+ "\nConnect a Pinterest **business** account.\n\n1. Log in to [Pinterest Developers](https://developers.pinterest.com/apps/) and create an app.\n2. In the app settings, add the Redirect URL shown below to the allowed redirect URIs.\n3. New apps start with trial access: Pins and boards created through the API stay visible only to you until Pinterest grants standard access.\n": "\nConnect a Pinterest **business** account.\n\n1. Log in to [Pinterest Developers](https://developers.pinterest.com/apps/) and create an app.\n2. In the app settings, add the Redirect URL shown below to the allowed redirect URIs.\n3. New apps start with trial access: Pins and boards created through the API stay visible only to you until Pinterest grants standard access.\n",
"Create Pin": "Create Pin",
"Create Board": "Create Board",
"Delete Pin": "Delete Pin",
"Find Board by Name": "Find Board by Name",
- "Find Pin by Title/Keyword": "Find Pin by Title/Keyword",
+ "Find Pin by Keyword": "Find Pin by Keyword",
"Update Board": "Update Board",
- "Upload an image or video to create a new Pin on a board.": "Upload an image or video to create a new Pin on a board.",
+ "Create a Pin on a board from an image URL or base64 image.": "Create a Pin on a board from an image URL or base64 image.",
"Create a new Pinterest board for organizing Pins.": "Create a new Pinterest board for organizing Pins.",
"Permanently delete a specific Pin.": "Permanently delete a specific Pin.",
"Search for boards by name using Pinterest's search API.": "Search for boards by name using Pinterest's search API.",
"Search for Pins using title, description, or keywords.": "Search for Pins using title, description, or keywords.",
"Update a board's name, description, or privacy settings.": "Update a board's name, description, or privacy settings.",
- "Ad account Id": "Ad account Id",
- "Board Id": "Board Id",
- "Board Section Id": "Board Section Id",
+ "Ad Account": "Ad Account",
+ "Board": "Board",
+ "Board Section": "Board Section",
"Title": "Title",
"Description": "Description",
- "Media Source Type": "Media Source Type",
- "Media URL": "Media URL",
+ "Media Type": "Media Type",
+ "Media": "Media",
"Destination Link": "Destination Link",
"Dominant Color": "Dominant Color",
"Alt Text": "Alt Text",
"Parent Pin ID": "Parent Pin ID",
"Sponsor ID": "Sponsor ID",
- "Product Tags": "Product Tags",
+ "Product Tag Pins": "Product Tag Pins",
"Note": "Note",
- "Is Removable": "Is Removable",
+ "Removable": "Removable",
"Board Name": "Board Name",
"Privacy": "Privacy",
- "Ads Only Board": "Ads Only Board",
- "pin Id": "pin Id",
+ "Ads-Only Board": "Ads-Only Board",
+ "Pin": "Pin",
"Search Query": "Search Query",
"Bookmark": "Bookmark",
- "Pagination Bookmark": "Pagination Bookmark",
- "Maximum Results": "Maximum Results",
- "The title of the Pin (max 100 characters).": "The title of the Pin (max 100 characters).",
- "The description of the Pin (max 800 characters).": "The description of the Pin (max 800 characters).",
- "The type of media source for the Pin.": "The type of media source for the Pin.",
- "The URL of the image or video to upload. Must be a valid URL.": "The URL of the image or video to upload. Must be a valid URL.",
- "The destination URL that the Pin will link to when clicked.": "The destination URL that the Pin will link to when clicked.",
- "The dominant color of the Pin as a hex color code (e.g., \"#6E7874\").": "The dominant color of the Pin as a hex color code (e.g., \"#6E7874\").",
- "Alternative text for accessibility and screen readers (max 500 characters).": "Alternative text for accessibility and screen readers (max 500 characters).",
- "The ID of the original Pin if this is a saved/repinned Pin.": "The ID of the original Pin if this is a saved/repinned Pin.",
- "The sponsor account ID for paid partnership content. Available only to select users in closed beta.": "The sponsor account ID for paid partnership content. Available only to select users in closed beta.",
- "Select one or more options": "Select one or more options",
- "A private note for this Pin that only you can see.": "A private note for this Pin that only you can see.",
- "Set to true to create an ad-only Pin that can be easily removed.": "Set to true to create an ad-only Pin that can be easily removed.",
- "The name of the board (max 180 characters).": "The name of the board (max 180 characters).",
- "Optional description for your board.": "Optional description for your board.",
- "Board privacy setting (auto-set to \"PROTECTED\" for ad-only boards).": "Board privacy setting (auto-set to \"PROTECTED\" for ad-only boards).",
- "Create an ad-only board that can only store promotional Pins. Note: Board name will become \"Ad-only Pins\" and privacy will be set to \"PROTECTED\".": "Create an ad-only board that can only store promotional Pins. Note: Board name will become \"Ad-only Pins\" and privacy will be set to \"PROTECTED\".",
- "The search term to find boards (required).": "The search term to find boards (required).",
- "Pagination bookmark from previous response.": "Pagination bookmark from previous response.",
- "Search terms for pin titles, descriptions, or tags. You can also search using comma-separated pin IDs.": "Search terms for pin titles, descriptions, or tags. You can also search using comma-separated pin IDs.",
- "Bookmark token from previous search results for pagination.": "Bookmark token from previous search results for pagination.",
- "Maximum number of pins to return (useful for large result sets).": "Maximum number of pins to return (useful for large result sets).",
- "The new name of the board (max 180 characters). Leave empty to keep current name.": "The new name of the board (max 180 characters). Leave empty to keep current name.",
- "The new description of the board (max 500 characters). Leave empty to keep current description.": "The new description of the board (max 500 characters). Leave empty to keep current description.",
- "Update board privacy setting. Leave empty to keep current setting.": "Update board privacy setting. Leave empty to keep current setting.",
+ "Max Results": "Max Results",
+ "Only for ads accounts. Leave empty to use your own account.": "Only for ads accounts. Leave empty to use your own account.",
+ "Leave empty to save the Pin to the board itself.": "Leave empty to save the Pin to the board itself.",
+ "Up to 100 characters.": "Up to 100 characters.",
+ "Up to 800 characters.": "Up to 800 characters.",
+ "Public image URL, or base64 data for the Base64 type.": "Public image URL, or base64 data for the Base64 type.",
+ "Opens when someone clicks the Pin.": "Opens when someone clicks the Pin.",
+ "Hex color shown while the image loads.": "Hex color shown while the image loads.",
+ "Describes the image for screen readers. Up to 500 characters.": "Describes the image for screen readers. Up to 500 characters.",
+ "ID of the Pin this one was saved from.": "ID of the Pin this one was saved from.",
+ "Partner account for paid partnership Pins. Closed beta only.": "Partner account for paid partnership Pins. Closed beta only.",
+ "Pins whose products to tag. Needs product tagging access.": "Pins whose products to tag. Needs product tagging access.",
+ "Private note only you can see.": "Private note only you can see.",
+ "Marks an ad-only Pin that can be removed later.": "Marks an ad-only Pin that can be removed later.",
+ "Up to 180 characters.": "Up to 180 characters.",
+ "Up to 500 characters.": "Up to 500 characters.",
+ "Pinterest names it \"Ad-only Pins\" and makes it protected.": "Pinterest names it \"Ad-only Pins\" and makes it protected.",
+ "Words in the board name.": "Words in the board name.",
+ "Bookmark from a previous run to fetch the next page.": "Bookmark from a previous run to fetch the next page.",
+ "Words in the title, description or tags, or comma-separated Pin IDs.": "Words in the title, description or tags, or comma-separated Pin IDs.",
+ "Bookmark from a previous run to continue where it stopped.": "Bookmark from a previous run to continue where it stopped.",
+ "Never returns more than this many Pins.": "Never returns more than this many Pins.",
+ "Leave empty to keep the current name.": "Leave empty to keep the current name.",
+ "Leave empty to keep the current description.": "Leave empty to keep the current description.",
+ "Leave empty to keep the current setting.": "Leave empty to keep the current setting.",
"Image URL": "Image URL",
"Base64 Image": "Base64 Image",
- "Video URL": "Video URL",
"Public": "Public",
"Protected": "Protected",
"Secret": "Secret",
@@ -71,16 +69,12 @@
"Fires when a new board is created in the account.": "Fires when a new board is created in the account.",
"Triggers when a user gains a new follower.": "Triggers when a user gains a new follower.",
"Fires when a new Pin is added to a specific board.": "Fires when a new Pin is added to a specific board.",
- "Board Privacy Filter": "Board Privacy Filter",
"Page Size": "Page Size",
- "Pin Types to Watch": "Pin Types to Watch",
- "Filter boards by privacy setting (optional).": "Filter boards by privacy setting (optional).",
- "Number of boards to fetch per page (1-250, default: 25).": "Number of boards to fetch per page (1-250, default: 25).",
- "Filter by specific pin types. Leave empty to watch all types.": "Filter by specific pin types. Leave empty to watch all types.",
- "All Boards": "All Boards",
- "Public Only": "Public Only",
- "Protected Only": "Protected Only",
- "Secret Only": "Secret Only",
+ "Pin Types": "Pin Types",
+ "Only boards with this privacy fire the trigger.": "Only boards with this privacy fire the trigger.",
+ "Boards fetched per request.": "Boards fetched per request.",
+ "Leave empty to watch every type of Pin.": "Leave empty to watch every type of Pin.",
+ "All": "All",
"Public and Secret": "Public and Secret",
"Regular Pins": "Regular Pins",
"Video Pins": "Video Pins",
diff --git a/packages/pieces/community/pinterest/src/i18n/zh.json b/packages/pieces/community/pinterest/src/i18n/zh.json
index 01a75ef055a..f27bb2b1b44 100644
--- a/packages/pieces/community/pinterest/src/i18n/zh.json
+++ b/packages/pieces/community/pinterest/src/i18n/zh.json
@@ -1,67 +1,39 @@
{
- "Connect your Pinterest Business Account": "Connect your Pinterest Business Account",
"Create Pin": "Create Pin",
"Create Board": "Create Board",
"Delete Pin": "Delete Pin",
"Find Board by Name": "Find Board by Name",
- "Find Pin by Title/Keyword": "Find Pin by Title/Keyword",
+ "Find Pin by Keyword": "Find Pin by Title/Keyword",
"Update Board": "Update Board",
- "Upload an image or video to create a new Pin on a board.": "Upload an image or video to create a new Pin on a board.",
"Create a new Pinterest board for organizing Pins.": "Create a new Pinterest board for organizing Pins.",
"Permanently delete a specific Pin.": "Permanently delete a specific Pin.",
"Search for boards by name using Pinterest's search API.": "Search for boards by name using Pinterest's search API.",
"Search for Pins using title, description, or keywords.": "Search for Pins using title, description, or keywords.",
"Update a board's name, description, or privacy settings.": "Update a board's name, description, or privacy settings.",
- "Ad account Id": "Ad account Id",
- "Board Id": "Board Id",
- "Board Section Id": "Board Section Id",
+ "Ad Account": "Ad account Id",
+ "Board": "Board Id",
+ "Board Section": "Board Section Id",
"Title": "标题",
"Description": "描述",
- "Media Source Type": "Media Source Type",
- "Media URL": "Media URL",
+ "Media Type": "Media Source Type",
+ "Media": "Media URL",
"Destination Link": "Destination Link",
"Dominant Color": "Dominant Color",
"Alt Text": "Alt Text",
"Parent Pin ID": "Parent Pin ID",
"Sponsor ID": "Sponsor ID",
- "Product Tags": "Product Tags",
+ "Product Tag Pins": "Product Tags",
"Note": "说明",
- "Is Removable": "Is Removable",
+ "Removable": "Is Removable",
"Board Name": "Board Name",
"Privacy": "Privacy",
- "Ads Only Board": "Ads Only Board",
- "pin Id": "pin Id",
+ "Ads-Only Board": "Ads Only Board",
+ "Pin": "pin Id",
"Search Query": "Search Query",
"Bookmark": "Bookmark",
- "Pagination Bookmark": "Pagination Bookmark",
- "Maximum Results": "Maximum Results",
- "The title of the Pin (max 100 characters).": "The title of the Pin (max 100 characters).",
- "The description of the Pin (max 800 characters).": "The description of the Pin (max 800 characters).",
- "The type of media source for the Pin.": "The type of media source for the Pin.",
- "The URL of the image or video to upload. Must be a valid URL.": "The URL of the image or video to upload. Must be a valid URL.",
- "The destination URL that the Pin will link to when clicked.": "The destination URL that the Pin will link to when clicked.",
- "The dominant color of the Pin as a hex color code (e.g., \"#6E7874\").": "The dominant color of the Pin as a hex color code (e.g., \"#6E7874\").",
- "Alternative text for accessibility and screen readers (max 500 characters).": "Alternative text for accessibility and screen readers (max 500 characters).",
- "The ID of the original Pin if this is a saved/repinned Pin.": "The ID of the original Pin if this is a saved/repinned Pin.",
- "The sponsor account ID for paid partnership content. Available only to select users in closed beta.": "The sponsor account ID for paid partnership content. Available only to select users in closed beta.",
- "Select one or more options": "Select one or more options",
- "A private note for this Pin that only you can see.": "A private note for this Pin that only you can see.",
- "Set to true to create an ad-only Pin that can be easily removed.": "Set to true to create an ad-only Pin that can be easily removed.",
- "The name of the board (max 180 characters).": "The name of the board (max 180 characters).",
- "Optional description for your board.": "Optional description for your board.",
- "Board privacy setting (auto-set to \"PROTECTED\" for ad-only boards).": "Board privacy setting (auto-set to \"PROTECTED\" for ad-only boards).",
- "Create an ad-only board that can only store promotional Pins. Note: Board name will become \"Ad-only Pins\" and privacy will be set to \"PROTECTED\".": "Create an ad-only board that can only store promotional Pins. Note: Board name will become \"Ad-only Pins\" and privacy will be set to \"PROTECTED\".",
- "The search term to find boards (required).": "The search term to find boards (required).",
- "Pagination bookmark from previous response.": "Pagination bookmark from previous response.",
- "Search terms for pin titles, descriptions, or tags. You can also search using comma-separated pin IDs.": "Search terms for pin titles, descriptions, or tags. You can also search using comma-separated pin IDs.",
- "Bookmark token from previous search results for pagination.": "Bookmark token from previous search results for pagination.",
- "Maximum number of pins to return (useful for large result sets).": "Maximum number of pins to return (useful for large result sets).",
- "The new name of the board (max 180 characters). Leave empty to keep current name.": "The new name of the board (max 180 characters). Leave empty to keep current name.",
- "The new description of the board (max 500 characters). Leave empty to keep current description.": "The new description of the board (max 500 characters). Leave empty to keep current description.",
- "Update board privacy setting. Leave empty to keep current setting.": "Update board privacy setting. Leave empty to keep current setting.",
+ "Max Results": "Maximum Results",
"Image URL": "Image URL",
"Base64 Image": "Base64 Image",
- "Video URL": "Video URL",
"Public": "Public",
"Protected": "Protected",
"Secret": "Secret",
@@ -71,16 +43,9 @@
"Fires when a new board is created in the account.": "Fires when a new board is created in the account.",
"Triggers when a user gains a new follower.": "Triggers when a user gains a new follower.",
"Fires when a new Pin is added to a specific board.": "Fires when a new Pin is added to a specific board.",
- "Board Privacy Filter": "Board Privacy Filter",
"Page Size": "Page Size",
- "Pin Types to Watch": "Pin Types to Watch",
- "Filter boards by privacy setting (optional).": "Filter boards by privacy setting (optional).",
- "Number of boards to fetch per page (1-250, default: 25).": "Number of boards to fetch per page (1-250, default: 25).",
- "Filter by specific pin types. Leave empty to watch all types.": "Filter by specific pin types. Leave empty to watch all types.",
- "All Boards": "All Boards",
- "Public Only": "Public Only",
- "Protected Only": "Protected Only",
- "Secret Only": "Secret Only",
+ "Pin Types": "Pin Types to Watch",
+ "All": "All Boards",
"Public and Secret": "Public and Secret",
"Regular Pins": "Regular Pins",
"Video Pins": "Video Pins",
diff --git a/packages/pieces/community/pinterest/src/index.ts b/packages/pieces/community/pinterest/src/index.ts
index d6db4a9d514..73b0601ea5f 100644
--- a/packages/pieces/community/pinterest/src/index.ts
+++ b/packages/pieces/community/pinterest/src/index.ts
@@ -1,4 +1,4 @@
-import { createPiece } from '@activepieces/pieces-framework';
+import { createPiece, PieceCategory } from '@activepieces/pieces-framework';
import { pinterestAuth } from './lib/common/auth';
import { createPin } from './lib/actions/create-pin';
import { createBoard } from './lib/actions/create-board';
@@ -13,9 +13,10 @@ import { newPinOnBoard } from './lib/triggers/new-pin-on-board';
export const pinterest = createPiece({
displayName: 'Pinterest',
auth: pinterestAuth,
- minimumSupportedRelease: '0.36.1',
+ minimumSupportedRelease: '0.88.2',
logoUrl: 'https://cdn.activepieces.com/pieces/pinterest.png',
- authors: ['Sanket6652'],
+ categories: [PieceCategory.MARKETING],
+ authors: ['Sanket6652', 'Talaljaber'],
actions: [
createPin,
createBoard,
diff --git a/packages/pieces/community/pinterest/src/lib/actions/create-board.ts b/packages/pieces/community/pinterest/src/lib/actions/create-board.ts
index a0e22d87639..624d4ee9914 100644
--- a/packages/pieces/community/pinterest/src/lib/actions/create-board.ts
+++ b/packages/pieces/community/pinterest/src/lib/actions/create-board.ts
@@ -1,7 +1,6 @@
import {
createAction,
Property,
- OAuth2PropertyValue,
} from '@activepieces/pieces-framework';
import { makeRequest } from '../common';
import { pinterestAuth } from '../common/auth';
@@ -27,39 +26,51 @@ export const createBoard = createAction({
name: Property.ShortText({
displayName: 'Board Name',
required: true,
- description: 'The name of the board (max 180 characters).',
+ description: 'Up to 180 characters.',
+ placeholder: 'e.g. Summer Recipes',
}),
description: Property.LongText({
displayName: 'Description',
required: false,
- description: 'Optional description for your board.',
+ description: 'Up to 500 characters.',
}),
privacy: Property.StaticDropdown({
displayName: 'Privacy',
required: false,
defaultValue: 'PUBLIC',
+ display: 'cards',
options: {
options: [
- { label: 'Public', value: 'PUBLIC' },
- { label: 'Protected', value: 'PROTECTED' },
- { label: 'Secret', value: 'SECRET' },
+ {
+ label: 'Public',
+ value: 'PUBLIC',
+ description: 'Visible to all',
+ },
+ {
+ label: 'Protected',
+ value: 'PROTECTED',
+ description: 'Ads only',
+ },
+ {
+ label: 'Secret',
+ value: 'SECRET',
+ description: 'Only you',
+ },
],
},
- description:
- 'Board privacy setting (auto-set to "PROTECTED" for ad-only boards).',
}),
is_ads_only: Property.Checkbox({
- displayName: 'Ads Only Board',
+ displayName: 'Ads-Only Board',
description:
- 'Create an ad-only board that can only store promotional Pins. Note: Board name will become "Ad-only Pins" and privacy will be set to "PROTECTED".',
+ 'Pinterest names it "Ad-only Pins" and makes it protected.',
defaultValue: false,
required: false,
+ advanced: true,
}),
},
async run({ auth, propsValue }) {
const { ad_account_id, name, description, privacy, is_ads_only } =
propsValue;
- // Validation
if (name && name.length > 180) {
throw new Error('Board name must be 180 characters or less');
}
diff --git a/packages/pieces/community/pinterest/src/lib/actions/create-pin.ts b/packages/pieces/community/pinterest/src/lib/actions/create-pin.ts
index 7e5315562a9..00d1666c341 100644
--- a/packages/pieces/community/pinterest/src/lib/actions/create-pin.ts
+++ b/packages/pieces/community/pinterest/src/lib/actions/create-pin.ts
@@ -1,7 +1,6 @@
import {
createAction,
Property,
- OAuth2PropertyValue,
} from '@activepieces/pieces-framework';
import { makeRequest } from '../common';
import { pinterestAuth } from '../common/auth';
@@ -20,13 +19,35 @@ export const createPin = createAction({
classification: 'WRITE',
outputSchema: createPinActionOutputSchema,
displayName: 'Create Pin',
- description: 'Upload an image or video to create a new Pin on a board.',
+ description: 'Create a Pin on a board from an image URL or base64 image.',
audience: 'both',
aiMetadata: {
description:
'Creates a Pin on a Pinterest board by uploading media from a hosted image/video URL (or base64 image). Use to publish visual content to a board the user owns. Requires a valid board_id and a media source; each call creates a new Pin, so it is not idempotent.',
idempotent: false,
},
+ propertyGroups: [
+ {
+ key: 'destination',
+ display: 'section',
+ label: 'Save To',
+ icon: 'inbox',
+ props: ['board_id', 'board_section_id'],
+ },
+ {
+ key: 'content',
+ display: 'section',
+ label: 'Pin',
+ icon: 'file',
+ props: [
+ 'title',
+ 'description',
+ 'media_source_type',
+ 'media_url',
+ 'link',
+ ],
+ },
+ ],
props: {
ad_account_id: adAccountIdDropdown,
board_id: boardIdDropdown,
@@ -34,73 +55,89 @@ export const createPin = createAction({
title: Property.ShortText({
displayName: 'Title',
required: true,
- description: 'The title of the Pin (max 100 characters).',
+ description: 'Up to 100 characters.',
+ placeholder: 'e.g. 10 easy summer salads',
}),
description: Property.LongText({
displayName: 'Description',
required: false,
- description: 'The description of the Pin (max 800 characters).',
+ description: 'Up to 800 characters.',
}),
media_source_type: Property.StaticDropdown({
- displayName: 'Media Source Type',
+ displayName: 'Media Type',
required: true,
- description: 'The type of media source for the Pin.',
+ defaultValue: 'image_url',
+ display: 'cards',
options: {
options: [
- { label: 'Image URL', value: 'image_url' },
- { label: 'Base64 Image', value: 'image_base64' },
- { label: 'Video URL', value: 'video_url' },
+ {
+ label: 'Image URL',
+ value: 'image_url',
+ description: 'JPG or PNG link',
+ icon: 'file',
+ },
+ {
+ label: 'Base64 Image',
+ value: 'image_base64',
+ description: 'Encoded data',
+ icon: 'code',
+ },
],
},
}),
media_url: Property.ShortText({
- displayName: 'Media URL',
+ displayName: 'Media',
required: true,
- description:
- 'The URL of the image or video to upload. Must be a valid URL.',
+ description: 'Public image URL, or base64 data for the Base64 type.',
+ placeholder: 'https://example.com/photo.jpg',
}),
link: Property.ShortText({
displayName: 'Destination Link',
required: false,
- description:
- 'The destination URL that the Pin will link to when clicked.',
+ description: 'Opens when someone clicks the Pin.',
+ placeholder: 'https://example.com',
}),
dominant_color: Property.ShortText({
displayName: 'Dominant Color',
- description:
- 'The dominant color of the Pin as a hex color code (e.g., "#6E7874").',
+ description: 'Hex color shown while the image loads.',
+ placeholder: '#6E7874',
required: false,
+ advanced: true,
}),
alt_text: Property.ShortText({
displayName: 'Alt Text',
description:
- 'Alternative text for accessibility and screen readers (max 500 characters).',
+ 'Describes the image for screen readers. Up to 500 characters.',
required: false,
+ advanced: true,
}),
parent_pin_id: Property.ShortText({
displayName: 'Parent Pin ID',
- description:
- 'The ID of the original Pin if this is a saved/repinned Pin.',
+ description: 'ID of the Pin this one was saved from.',
+ placeholder: '1234567890123456789',
required: false,
+ advanced: true,
}),
sponsor_id: Property.ShortText({
displayName: 'Sponsor ID',
description:
- 'The sponsor account ID for paid partnership content. Available only to select users in closed beta.',
+ 'Partner account for paid partnership Pins. Closed beta only.',
required: false,
+ advanced: true,
}),
product_tags: pinIdMultiSelectDropdown,
note: Property.ShortText({
displayName: 'Note',
- description: 'A private note for this Pin that only you can see.',
+ description: 'Private note only you can see.',
required: false,
+ advanced: true,
}),
is_removable: Property.Checkbox({
- displayName: 'Is Removable',
- description:
- 'Set to true to create an ad-only Pin that can be easily removed.',
+ displayName: 'Removable',
+ description: 'Marks an ad-only Pin that can be removed later.',
required: false,
defaultValue: false,
+ advanced: true,
}),
},
async run({ auth, propsValue }) {
@@ -122,7 +159,15 @@ export const createPin = createAction({
sponsor_id,
} = propsValue;
- // Validation
+ if (
+ media_source_type !== 'image_url' &&
+ media_source_type !== 'image_base64'
+ ) {
+ throw new Error(
+ 'Video Pins are not supported by this action. Choose Image URL or Base64 Image.'
+ );
+ }
+
if (title && title.length > 100) {
throw new Error('Title must be 100 characters or less');
}
@@ -135,14 +180,14 @@ export const createPin = createAction({
throw new Error('Alt text must be 500 characters or less');
}
- // URL validation for media_url
- try {
- new URL(media_url);
- } catch {
- throw new Error('Please enter a valid URL for Image/Video URL');
+ if (media_source_type !== 'image_base64') {
+ try {
+ new URL(media_url);
+ } catch {
+ throw new Error('Please enter a valid URL in the Media field');
+ }
}
- // URL validation for link (if provided)
if (link) {
try {
new URL(link);
@@ -151,7 +196,6 @@ export const createPin = createAction({
}
}
- // Hex color validation for dominant_color (if provided)
if (dominant_color) {
const hexColorRegex = /^#[0-9A-Fa-f]{6}$/;
if (!hexColorRegex.test(dominant_color)) {
@@ -161,17 +205,15 @@ export const createPin = createAction({
}
}
- // Build request body according to Pinterest API spec
const body: any = {
board_id,
title,
- media_source: {
- source_type: media_source_type,
- url: media_url,
- },
+ media_source: buildMediaSource({
+ mediaSourceType: media_source_type,
+ mediaUrl: media_url,
+ }),
};
- // Add optional fields only if they have values
if (board_section_id) body.board_section_id = board_section_id;
if (description) body.description = description;
if (link) body.link = link;
@@ -182,7 +224,6 @@ export const createPin = createAction({
if (sponsor_id) body.sponsor_id = sponsor_id;
if (typeof is_removable === 'boolean') body.is_removable = is_removable;
- // Handle product_tags array
if (
product_tags &&
Array.isArray(product_tags) &&
@@ -191,7 +232,6 @@ export const createPin = createAction({
body.product_tags = product_tags;
}
- // Build API path
let path = '/pins';
if (ad_account_id) {
path = `/pins?ad_account_id=${encodeURIComponent(ad_account_id)}`;
@@ -205,3 +245,61 @@ export const createPin = createAction({
);
},
});
+
+function buildMediaSource({
+ mediaSourceType,
+ mediaUrl,
+}: {
+ mediaSourceType: string;
+ mediaUrl: string;
+}): Record<string, string> {
+ if (mediaSourceType !== 'image_base64') {
+ return { source_type: mediaSourceType, url: mediaUrl };
+ }
+
+ const trimmed = mediaUrl.trim();
+ const dataUri = /^data:([^;,]*)((?:;[^;,]*)*),/.exec(trimmed);
+ const isBase64Uri =
+ dataUri !== null &&
+ dataUri[2].split(';').some((param) => param.toLowerCase() === 'base64');
+
+ if (dataUri && !isBase64Uri) {
+ throw new Error(
+ 'Media data URI must be base64 encoded (data:image/png;base64,...)'
+ );
+ }
+
+ const data = (dataUri ? trimmed.slice(dataUri[0].length) : trimmed)
+ .replace(/\s+/g, '')
+ .replace(/-/g, '+')
+ .replace(/_/g, '/');
+ if (!BASE64_PATTERN.test(data)) {
+ throw new Error('Media must be valid base64 when the type is Base64 Image');
+ }
+
+ const declaredType =
+ dataUri && dataUri[1].length > 0 ? dataUri[1].toLowerCase() : undefined;
+ const contentType = declaredType ?? detectImageContentType(data);
+
+ if (!contentType || !SUPPORTED_IMAGE_TYPES.has(contentType)) {
+ throw new Error(
+ 'Media must be a JPEG or PNG image, as a data URI or raw base64'
+ );
+ }
+
+ return {
+ source_type: 'image_base64',
+ content_type: contentType,
+ data,
+ };
+}
+
+function detectImageContentType(base64: string): string | undefined {
+ const signature = base64.slice(0, 8);
+ if (signature.startsWith('/9j/')) return 'image/jpeg';
+ if (signature.startsWith('iVBORw0K')) return 'image/png';
+ return undefined;
+}
+
+const SUPPORTED_IMAGE_TYPES = new Set(['image/jpeg', 'image/png']);
+const BASE64_PATTERN = /^[A-Za-z0-9+/]+={0,2}$/;
diff --git a/packages/pieces/community/pinterest/src/lib/actions/delete-pin.ts b/packages/pieces/community/pinterest/src/lib/actions/delete-pin.ts
index 52457062b64..cc379f2c5f8 100644
--- a/packages/pieces/community/pinterest/src/lib/actions/delete-pin.ts
+++ b/packages/pieces/community/pinterest/src/lib/actions/delete-pin.ts
@@ -1,7 +1,5 @@
import {
createAction,
- Property,
- OAuth2PropertyValue,
} from '@activepieces/pieces-framework';
import { makeRequest } from '../common';
import { pinterestAuth } from '../common/auth';
@@ -31,7 +29,9 @@ export const deletePin = createAction({
let path = `/pins/${pin_id}`;
if (ad_account_id) {
- path = `/pins/${pin_id}?ad_account_id=${ad_account_id}`;
+ path = `/pins/${pin_id}?ad_account_id=${encodeURIComponent(
+ ad_account_id
+ )}`;
}
await makeRequest(getAccessTokenOrThrow(auth), HttpMethod.DELETE, path);
diff --git a/packages/pieces/community/pinterest/src/lib/actions/find-board-by-name.ts b/packages/pieces/community/pinterest/src/lib/actions/find-board-by-name.ts
index 36e29e0b8f5..b85eec12afd 100644
--- a/packages/pieces/community/pinterest/src/lib/actions/find-board-by-name.ts
+++ b/packages/pieces/community/pinterest/src/lib/actions/find-board-by-name.ts
@@ -1,7 +1,6 @@
import {
createAction,
Property,
- OAuth2PropertyValue,
} from '@activepieces/pieces-framework';
import { makeRequest } from '../common';
import { pinterestAuth } from '../common/auth';
@@ -26,19 +25,20 @@ export const findBoardByName = createAction({
query: Property.ShortText({
displayName: 'Search Query',
required: true,
- description: 'The search term to find boards (required).',
+ description: 'Words in the board name.',
+ placeholder: 'e.g. recipes',
}),
ad_account_id: adAccountIdDropdown,
bookmark: Property.ShortText({
displayName: 'Bookmark',
required: false,
- description: 'Pagination bookmark from previous response.',
+ description: 'Bookmark from a previous run to fetch the next page.',
+ advanced: true,
}),
},
async run({ auth, propsValue }) {
const { query, ad_account_id, bookmark } = propsValue;
- // Build query parameters
const searchParams = new URLSearchParams();
searchParams.append('query', query);
diff --git a/packages/pieces/community/pinterest/src/lib/actions/find-pin.ts b/packages/pieces/community/pinterest/src/lib/actions/find-pin.ts
index e76c44b4e18..4555d7c590e 100644
--- a/packages/pieces/community/pinterest/src/lib/actions/find-pin.ts
+++ b/packages/pieces/community/pinterest/src/lib/actions/find-pin.ts
@@ -1,9 +1,5 @@
-import {
- createAction,
- Property,
- OAuth2PropertyValue,
-} from '@activepieces/pieces-framework';
-import { makeRequest } from '../common';
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { isRecord, makeRequest } from '../common';
import { pinterestAuth } from '../common/auth';
import { HttpMethod, getAccessTokenOrThrow } from '@activepieces/pieces-common';
import { adAccountIdDropdown } from '../common/props';
@@ -14,12 +10,12 @@ export const findPin = createAction({
name: 'findPin',
classification: 'SEARCH',
outputSchema: findPinActionOutputSchema,
- displayName: 'Find Pin by Title/Keyword',
+ displayName: 'Find Pin by Keyword',
description: 'Search for Pins using title, description, or keywords.',
audience: 'both',
aiMetadata: {
description:
- "Searches the authenticated account's Pins by keywords matched against title, description, or tags (comma-separated pin IDs also work). Use to locate existing Pins or resolve a pin_id before deleting or referencing one. Read-only and idempotent; supports a max-results cap and pagination via a bookmark token.",
+ "Searches the authenticated account's Pins by keywords matched against title, description, or tags (comma-separated pin IDs also work). Use to locate existing Pins or resolve a pin_id before deleting or referencing one. Read-only and idempotent; it returns at most max_results Pins, and the next batch is fetched by passing the returned bookmark back as bookmark.",
idempotent: true,
},
props: {
@@ -28,66 +24,164 @@ export const findPin = createAction({
displayName: 'Search Query',
required: true,
description:
- 'Search terms for pin titles, descriptions, or tags. You can also search using comma-separated pin IDs.',
+ 'Words in the title, description or tags, or comma-separated Pin IDs.',
+ placeholder: 'e.g. summer salad',
}),
bookmark: Property.ShortText({
- displayName: 'Pagination Bookmark',
+ displayName: 'Bookmark',
required: false,
- description:
- 'Bookmark token from previous search results for pagination.',
+ description: 'Bookmark from a previous run to continue where it stopped.',
+ advanced: true,
}),
max_results: Property.Number({
- displayName: 'Maximum Results',
+ displayName: 'Max Results',
required: false,
- description:
- 'Maximum number of pins to return (useful for large result sets).',
+ description: 'Never returns more than this many Pins.',
defaultValue: 25,
+ display: 'stepper',
+ min: 1,
+ max: 250,
+ step: 1,
}),
},
async run({ auth, propsValue }) {
const { query, bookmark, ad_account_id, max_results } = propsValue;
+ const limit = Math.min(
+ 250,
+ Math.max(1, Math.floor(max_results ?? DEFAULT_MAX_RESULTS))
+ );
+ const cursor = decodeCursor(bookmark);
+ const accessToken = getAccessTokenOrThrow(auth);
- // Build query parameters
- const params = new URLSearchParams();
- params.append('query', query);
-
- if (bookmark) {
- params.append('bookmark', bookmark);
- }
+ let items: unknown[] = [];
+ let pageBookmark: string | null = cursor.bookmark;
+ let requestedBookmark: string | null = cursor.bookmark;
+ let nextBookmark: string | undefined = undefined;
+ let lastPageStart = 0;
+ let lastPageSkipped = 0;
- if (ad_account_id) {
- params.append('ad_account_id', ad_account_id);
- }
-
- const path = `/search/pins?${params.toString()}`;
+ for (let page = 0; page < MAX_SEARCH_PAGES; page++) {
+ const params = new URLSearchParams();
+ params.append('query', query);
+ if (pageBookmark !== null) {
+ params.append('bookmark', pageBookmark);
+ }
+ if (ad_account_id) {
+ params.append('ad_account_id', ad_account_id);
+ }
- try {
- const response = await makeRequest(
- getAccessTokenOrThrow(auth),
+ const response: unknown = await makeRequest(
+ accessToken,
HttpMethod.GET,
- path
+ `/search/pins?${params.toString()}`
);
- // Apply max_results limit if specified
- let items = response.items || [];
- if (max_results && items.length > max_results) {
- items = items.slice(0, max_results);
+ if (!isRecord(response) || !Array.isArray(response['items'])) {
+ throw new Error(
+ 'Pinterest returned an unexpected response for the Pin search'
+ );
}
- return {
- items,
- bookmark: response.bookmark,
- total_results: items.length,
- query_used: query,
- has_more: !!response.bookmark,
- };
- } catch (error: any) {
- if (error.response?.status === 404) {
- throw new Error('No pins found matching your search criteria.');
+ const rawItems: unknown[] = response['items'];
+
+ if (page === 0 && cursor.skip > rawItems.length) {
+ throw new Error(
+ 'Bookmark does not match this search. Start again without a bookmark.'
+ );
}
- throw new Error(
- `Failed to search pins: ${error.message || 'Unknown error'}`
- );
+
+ const skipped = page === 0 ? cursor.skip : 0;
+ const responseBookmark = response['bookmark'];
+
+ requestedBookmark = pageBookmark;
+ lastPageStart = items.length;
+ lastPageSkipped = skipped;
+ items = [...items, ...rawItems.slice(skipped)];
+ nextBookmark =
+ typeof responseBookmark === 'string' && responseBookmark.length > 0
+ ? responseBookmark
+ : undefined;
+
+ if (!nextBookmark || items.length >= limit || rawItems.length === 0) {
+ break;
+ }
+ pageBookmark = nextBookmark;
}
+
+ const cutInsidePage = items.length > limit;
+ const limitedItems = cutInsidePage ? items.slice(0, limit) : items;
+
+ return {
+ items: limitedItems,
+ bookmark: cutInsidePage
+ ? encodeCursor({
+ bookmark: requestedBookmark,
+ skip: lastPageSkipped + (limit - lastPageStart),
+ })
+ : nextBookmark,
+ total_results: limitedItems.length,
+ query_used: query,
+ has_more: cutInsidePage || !!nextBookmark,
+ };
},
});
+
+function encodeCursor({
+ bookmark,
+ skip,
+}: {
+ bookmark: string | null;
+ skip: number;
+}): string {
+ const payload = JSON.stringify({ b: bookmark, s: skip });
+ return `${CURSOR_PREFIX}${Buffer.from(payload, 'utf8').toString('base64url')}`;
+}
+
+function decodeCursor(value: string | undefined): {
+ bookmark: string | null;
+ skip: number;
+} {
+ if (!value) {
+ return { bookmark: null, skip: 0 };
+ }
+
+ if (!value.startsWith(CURSOR_PREFIX)) {
+ return { bookmark: value, skip: 0 };
+ }
+
+ const decoded = parseCursorPayload(value.slice(CURSOR_PREFIX.length));
+
+ if (!isRecord(decoded)) {
+ throw new Error(INVALID_CURSOR_MESSAGE);
+ }
+
+ const cursorBookmark = decoded['b'];
+ const cursorSkip = decoded['s'];
+
+ if (cursorBookmark !== null && typeof cursorBookmark !== 'string') {
+ throw new Error(INVALID_CURSOR_MESSAGE);
+ }
+
+ if (
+ typeof cursorSkip !== 'number' ||
+ !Number.isInteger(cursorSkip) ||
+ cursorSkip < 0
+ ) {
+ throw new Error(INVALID_CURSOR_MESSAGE);
+ }
+
+ return { bookmark: cursorBookmark, skip: cursorSkip };
+}
+
+function parseCursorPayload(encoded: string): unknown {
+ try {
+ return JSON.parse(Buffer.from(encoded, 'base64url').toString('utf8'));
+ } catch {
+ throw new Error(INVALID_CURSOR_MESSAGE);
+ }
+}
+
+const DEFAULT_MAX_RESULTS = 25;
+const MAX_SEARCH_PAGES = 10;
+const CURSOR_PREFIX = 'apc1.';
+const INVALID_CURSOR_MESSAGE = 'Bookmark is not a valid Find Pin bookmark';
diff --git a/packages/pieces/community/pinterest/src/lib/actions/update-board.ts b/packages/pieces/community/pinterest/src/lib/actions/update-board.ts
index 57d63d366be..e11285bcf85 100644
--- a/packages/pieces/community/pinterest/src/lib/actions/update-board.ts
+++ b/packages/pieces/community/pinterest/src/lib/actions/update-board.ts
@@ -1,8 +1,4 @@
-import {
- createAction,
- Property,
- OAuth2PropertyValue,
-} from '@activepieces/pieces-framework';
+import { createAction, Property } from '@activepieces/pieces-framework';
import { makeRequest } from '../common';
import { pinterestAuth } from '../common/auth';
import { HttpMethod, getAccessTokenOrThrow } from '@activepieces/pieces-common';
@@ -28,40 +24,47 @@ export const updateBoard = createAction({
name: Property.ShortText({
displayName: 'Board Name',
required: false,
- description:
- 'The new name of the board (max 180 characters). Leave empty to keep current name.',
+ description: 'Leave empty to keep the current name.',
+ placeholder: 'e.g. Summer Recipes',
}),
description: Property.LongText({
displayName: 'Description',
required: false,
- description:
- 'The new description of the board (max 500 characters). Leave empty to keep current description.',
+ description: 'Leave empty to keep the current description.',
}),
privacy: Property.StaticDropdown({
displayName: 'Privacy',
required: false,
+ display: 'cards',
options: {
options: [
- { label: 'Public', value: 'PUBLIC' },
- { label: 'Protected', value: 'PROTECTED' },
- { label: 'Secret', value: 'SECRET' },
+ {
+ label: 'Public',
+ value: 'PUBLIC',
+ description: 'Visible to all',
+ },
+ {
+ label: 'Secret',
+ value: 'SECRET',
+ description: 'Only you',
+ },
],
},
- description:
- 'Update board privacy setting. Leave empty to keep current setting.',
+ description: 'Leave empty to keep the current setting.',
}),
},
async run({ auth, propsValue }) {
const { board_id, name, description, privacy, ad_account_id } = propsValue;
- // Validation - at least one field must be provided for update
- if (!name && description === undefined && !privacy) {
+ const trimmedName = name?.trim();
+ const trimmedDescription = description?.trim();
+
+ if (!trimmedName && !trimmedDescription && !privacy) {
throw new Error(
'At least one field (name, description, or privacy) must be provided to update the board.'
);
}
- // Validation for field lengths
if (name && name.length > 180) {
throw new Error('Board name must be 180 characters or less');
}
@@ -70,19 +73,17 @@ export const updateBoard = createAction({
throw new Error('Board description must be 500 characters or less');
}
- // Build request body with only the fields being updated
const body: any = {};
- if (name && name.trim()) {
- body.name = name.trim();
+ if (trimmedName) {
+ body.name = trimmedName;
}
- if (description !== undefined) {
- body.description = description;
+ if (trimmedDescription) {
+ body.description = trimmedDescription;
}
if (privacy) {
body.privacy = privacy;
}
- // Build path with query parameter if ad_account_id is provided
let path = `/boards/${board_id}`;
if (ad_account_id) {
path = `/boards/${board_id}?ad_account_id=${encodeURIComponent(
diff --git a/packages/pieces/community/pinterest/src/lib/common/auth.ts b/packages/pieces/community/pinterest/src/lib/common/auth.ts
index e9027c1f90e..ceea24dd8d8 100644
--- a/packages/pieces/community/pinterest/src/lib/common/auth.ts
+++ b/packages/pieces/community/pinterest/src/lib/common/auth.ts
@@ -3,8 +3,16 @@ import {
OAuth2AuthorizationMethod,
} from '@activepieces/pieces-framework';
+const authGuide = `
+Connect a Pinterest **business** account.
+
+1. Log in to [Pinterest Developers](https://developers.pinterest.com/apps/) and create an app.
+2. In the app settings, add the Redirect URL shown below to the allowed redirect URIs.
+3. New apps start with trial access: Pins and boards created through the API stay visible only to you until Pinterest grants standard access.
+`;
+
export const pinterestAuth = PieceAuth.OAuth2({
- description: 'Connect your Pinterest Business Account',
+ description: authGuide,
authUrl: 'https://www.pinterest.com/oauth/',
tokenUrl: 'https://api.pinterest.com/v5/oauth/token',
required: true,
diff --git a/packages/pieces/community/pinterest/src/lib/common/index.ts b/packages/pieces/community/pinterest/src/lib/common/index.ts
index e7568287328..7db185cdd31 100644
--- a/packages/pieces/community/pinterest/src/lib/common/index.ts
+++ b/packages/pieces/community/pinterest/src/lib/common/index.ts
@@ -102,3 +102,98 @@ export async function makeRequest(
);
}
}
+
+export async function fetchAllPages({
+ accessToken,
+ path,
+ maxPages = 2,
+ pageSize = 250,
+}: {
+ accessToken: string;
+ path: string;
+ maxPages?: number;
+ pageSize?: number | null;
+}): Promise<{ items: unknown[]; truncated: boolean }> {
+ let items: unknown[] = [];
+ let bookmark: string | undefined = undefined;
+ let truncated = false;
+
+ for (let page = 0; page < maxPages; page++) {
+ const query = [
+ ...(pageSize === null ? [] : [`page_size=${pageSize}`]),
+ ...(isNonEmptyString(bookmark)
+ ? [`bookmark=${encodeURIComponent(bookmark)}`]
+ : []),
+ ];
+ const response: unknown = await makeRequest(
+ accessToken,
+ HttpMethod.GET,
+ appendQuery({ path, query })
+ );
+
+ if (!isRecord(response)) {
+ break;
+ }
+
+ const pageItems = response['items'];
+ items = Array.isArray(pageItems) ? [...items, ...pageItems] : items;
+
+ const nextBookmark = response['bookmark'];
+
+ if (!isNonEmptyString(nextBookmark) || nextBookmark === bookmark) {
+ break;
+ }
+
+ bookmark = nextBookmark;
+ truncated = page === maxPages - 1;
+ }
+
+ return { items: dedupeById(items), truncated };
+}
+
+export function isRecord(value: unknown): value is Record<string, unknown> {
+ return typeof value === 'object' && value !== null && !Array.isArray(value);
+}
+
+export function isNonEmptyString(value: unknown): value is string {
+ return typeof value === 'string' && value.length > 0;
+}
+
+function appendQuery({
+ path,
+ query,
+}: {
+ path: string;
+ query: string[];
+}): string {
+ if (query.length === 0) {
+ return path;
+ }
+
+ const separator = path.includes('?') ? '&' : '?';
+
+ return `${path}${separator}${query.join('&')}`;
+}
+
+function dedupeById(items: unknown[]): unknown[] {
+ const seenIds = new Set<string>();
+
+ return items.filter((item) => {
+ if (!isRecord(item)) {
+ return true;
+ }
+
+ const id = item['id'];
+
+ if (!isNonEmptyString(id)) {
+ return true;
+ }
+
+ if (seenIds.has(id)) {
+ return false;
+ }
+
+ seenIds.add(id);
+ return true;
+ });
+}
diff --git a/packages/pieces/community/pinterest/src/lib/common/props.ts b/packages/pieces/community/pinterest/src/lib/common/props.ts
index 532d4e6233e..21f7c783010 100644
--- a/packages/pieces/community/pinterest/src/lib/common/props.ts
+++ b/packages/pieces/community/pinterest/src/lib/common/props.ts
@@ -1,18 +1,20 @@
import {
DropdownOption,
+ DropdownState,
Property,
OAuth2PropertyValue,
} from '@activepieces/pieces-framework';
-import { makeRequest } from '.';
-import { HttpMethod, getAccessTokenOrThrow } from '@activepieces/pieces-common';
+import { fetchAllPages, isNonEmptyString, isRecord } from '.';
+import { getAccessTokenOrThrow } from '@activepieces/pieces-common';
import { pinterestAuth } from './auth';
export const boardIdDropdown = Property.Dropdown({
auth: pinterestAuth,
- displayName: 'Board Id',
+ displayName: 'Board',
required: true,
- refreshers: ['ad_account_id'],
- options: async ({ auth, ad_account_id }) => {
+ refreshers: ['auth', 'ad_account_id'],
+ refreshOnSearch: true,
+ options: async ({ auth, ad_account_id }, ctx) => {
if (!auth) {
return {
disabled: true,
@@ -21,30 +23,44 @@ export const boardIdDropdown = Property.Dropdown({
};
}
- try {
- const url = new URL('/boards', 'https://api.pinterest.com/v5');
- if (ad_account_id) {
- url.searchParams.append('ad_account_id', ad_account_id as string);
- }
+ const search = ctx.searchValue?.trim() ?? '';
+ try {
const accessToken = getAccessTokenOrThrow(auth as OAuth2PropertyValue);
- const boards = await makeRequest(
- accessToken,
- HttpMethod.GET,
- url.pathname + url.search
- );
+ const adAccountId = toAdAccountId(ad_account_id);
+ const boards =
+ search.length > 0
+ ? await fetchAllPages({
+ accessToken,
+ path: buildSearchPath({
+ resource: 'boards',
+ search,
+ adAccountId,
+ }),
+ pageSize: null,
+ })
+ : await fetchAllPages({
+ accessToken,
+ path:
+ adAccountId.length > 0
+ ? `/boards?ad_account_id=${encodeURIComponent(adAccountId)}`
+ : '/boards',
+ });
- const options: DropdownOption<string>[] = boards.items.map(
- (board: any) => ({
- label: board.name,
- value: board.id,
- })
- );
+ const options = toNamedOptions(boards.items);
- return {
- disabled: false,
+ return toDropdownState({
options,
- };
+ truncated: boards.truncated,
+ emptyPlaceholder:
+ search.length > 0
+ ? `No boards match "${search}".`
+ : 'No boards found. Create one in Pinterest first.',
+ truncatedPlaceholder:
+ search.length > 0
+ ? `Showing the first ${options.length} matches. Refine your search.`
+ : `Showing the first ${options.length} boards. Type to search.`,
+ });
} catch (error) {
return {
disabled: true,
@@ -57,10 +73,11 @@ export const boardIdDropdown = Property.Dropdown({
export const pinIdDropdown = Property.Dropdown({
auth: pinterestAuth,
- displayName: 'pin Id',
+ displayName: 'Pin',
required: true,
- refreshers: ['auth'],
- options: async ({ auth }) => {
+ refreshers: ['auth', 'ad_account_id'],
+ refreshOnSearch: true,
+ options: async ({ auth, ad_account_id }, ctx) => {
if (!auth) {
return {
disabled: true,
@@ -69,19 +86,26 @@ export const pinIdDropdown = Property.Dropdown({
};
}
+ const search = ctx.searchValue?.trim() ?? '';
+
try {
const accessToken = getAccessTokenOrThrow(auth as OAuth2PropertyValue);
- const pins = await makeRequest(accessToken, HttpMethod.GET, '/pins');
-
- const options: DropdownOption<string>[] = pins.items.map((pin: any) => ({
- label: pin.title,
- value: pin.id,
- }));
+ const adAccountId = toAdAccountId(ad_account_id);
+ const pins = await fetchPins({ accessToken, search, adAccountId });
+ const options = toPinOptions(pins.items);
- return {
- disabled: false,
+ return toDropdownState({
options,
- };
+ truncated: pins.truncated,
+ emptyPlaceholder:
+ search.length > 0
+ ? `No Pins match "${search}".`
+ : 'No Pins found. Create one in Pinterest first.',
+ truncatedPlaceholder:
+ search.length > 0
+ ? `Showing the first ${options.length} matches. Refine your search.`
+ : `Showing the first ${options.length} Pins. Type to search.`,
+ });
} catch (error) {
return {
disabled: true,
@@ -94,8 +118,10 @@ export const pinIdDropdown = Property.Dropdown({
export const adAccountIdDropdown = Property.Dropdown({
auth: pinterestAuth,
- displayName: 'Ad account Id',
+ displayName: 'Ad Account',
+ description: 'Only for ads accounts. Leave empty to use your own account.',
required: false,
+ advanced: true,
refreshers: ['auth'],
options: async ({ auth }) => {
if (!auth) {
@@ -108,23 +134,19 @@ export const adAccountIdDropdown = Property.Dropdown({
try {
const accessToken = getAccessTokenOrThrow(auth as OAuth2PropertyValue);
- const adAccounts = await makeRequest(
+ const adAccounts = await fetchAllPages({
accessToken,
- HttpMethod.GET,
- '/ad_accounts'
- );
+ path: '/ad_accounts',
+ maxPages: 10,
+ });
+ const options = toNamedOptions(adAccounts.items);
- const options: DropdownOption<string>[] = adAccounts.items.map(
- (account: any) => ({
- label: account.name,
- value: account.id,
- })
- );
-
- return {
- disabled: false,
+ return toDropdownState({
options,
- };
+ truncated: adAccounts.truncated,
+ emptyPlaceholder: 'No ad accounts found on this Pinterest account.',
+ truncatedPlaceholder: `Showing the first ${options.length} ad accounts. Type to filter.`,
+ });
} catch (error) {
return {
disabled: true,
@@ -137,7 +159,8 @@ export const adAccountIdDropdown = Property.Dropdown({
export const boardSectionIdDropdown = Property.Dropdown({
auth: pinterestAuth,
- displayName: 'Board Section Id',
+ displayName: 'Board Section',
+ description: 'Leave empty to save the Pin to the board itself.',
required: false,
refreshers: ['auth', 'board_id'],
options: async ({ auth, board_id }) => {
@@ -159,23 +182,19 @@ export const boardSectionIdDropdown = Property.Dropdown({
try {
const accessToken = getAccessTokenOrThrow(auth as OAuth2PropertyValue);
- const boardsections = await makeRequest(
+ const boardSections = await fetchAllPages({
accessToken,
- HttpMethod.GET,
- `/boards/${board_id}/sections`
- );
+ path: `/boards/${board_id}/sections`,
+ maxPages: 10,
+ });
+ const options = toNamedOptions(boardSections.items);
- const options: DropdownOption<string>[] = boardsections.items.map(
- (section: any) => ({
- label: section.name,
- value: section.id,
- })
- );
-
- return {
- disabled: false,
+ return toDropdownState({
options,
- };
+ truncated: boardSections.truncated,
+ emptyPlaceholder: 'No sections found on this board.',
+ truncatedPlaceholder: `Showing the first ${options.length} sections. Type to filter.`,
+ });
} catch (error) {
return {
disabled: true,
@@ -188,11 +207,13 @@ export const boardSectionIdDropdown = Property.Dropdown({
export const pinIdMultiSelectDropdown = Property.MultiSelectDropdown({
auth: pinterestAuth,
- displayName: 'Product Tags',
- description: 'Select one or more options',
+ displayName: 'Product Tag Pins',
+ description: 'Pins whose products to tag. Needs product tagging access.',
required: false,
- refreshers: ['auth'],
- options: async ({ auth }) => {
+ advanced: true,
+ refreshers: ['auth', 'ad_account_id'],
+ refreshOnSearch: true,
+ options: async ({ auth, ad_account_id }, ctx) => {
if (!auth) {
return {
disabled: true,
@@ -201,19 +222,26 @@ export const pinIdMultiSelectDropdown = Property.MultiSelectDropdown({
};
}
+ const search = ctx.searchValue?.trim() ?? '';
+
try {
const accessToken = getAccessTokenOrThrow(auth as OAuth2PropertyValue);
- const pins = await makeRequest(accessToken, HttpMethod.GET, '/pins');
+ const adAccountId = toAdAccountId(ad_account_id);
+ const pins = await fetchPins({ accessToken, search, adAccountId });
+ const options = toPinOptions(pins.items);
- const options: DropdownOption<string>[] = pins.items.map((pin: any) => ({
- label: pin.title,
- value: pin.id,
- }));
-
- return {
- disabled: false,
+ return toDropdownState({
options,
- };
+ truncated: pins.truncated,
+ emptyPlaceholder:
+ search.length > 0
+ ? `No Pins match "${search}".`
+ : 'No Pins found. Create one in Pinterest first.',
+ truncatedPlaceholder:
+ search.length > 0
+ ? `Showing the first ${options.length} matches. Refine your search.`
+ : `Showing the first ${options.length} Pins. Type to search.`,
+ });
} catch (error) {
return {
disabled: true,
@@ -223,3 +251,119 @@ export const pinIdMultiSelectDropdown = Property.MultiSelectDropdown({
}
},
});
+
+async function fetchPins({
+ accessToken,
+ search,
+ adAccountId,
+}: {
+ accessToken: string;
+ search: string;
+ adAccountId: string;
+}): Promise<{ items: unknown[]; truncated: boolean }> {
+ if (search.length === 0) {
+ return fetchAllPages({
+ accessToken,
+ path:
+ adAccountId.length > 0
+ ? `/pins?ad_account_id=${encodeURIComponent(adAccountId)}`
+ : '/pins',
+ });
+ }
+
+ return fetchAllPages({
+ accessToken,
+ path: buildSearchPath({ resource: 'pins', search, adAccountId }),
+ pageSize: null,
+ });
+}
+
+function toDropdownState({
+ options,
+ truncated,
+ emptyPlaceholder,
+ truncatedPlaceholder,
+}: {
+ options: DropdownOption<string>[];
+ truncated: boolean;
+ emptyPlaceholder: string;
+ truncatedPlaceholder: string;
+}): DropdownState<string> {
+ if (options.length === 0) {
+ return {
+ disabled: false,
+ options: [],
+ placeholder: emptyPlaceholder,
+ };
+ }
+
+ if (truncated) {
+ return {
+ disabled: false,
+ options,
+ placeholder: truncatedPlaceholder,
+ };
+ }
+
+ return {
+ disabled: false,
+ options,
+ };
+}
+
+function toAdAccountId(value: unknown): string {
+ return isNonEmptyString(value) ? value : '';
+}
+
+function toNamedOptions(items: unknown[]): DropdownOption<string>[] {
+ return items.flatMap((item) => {
+ if (!isRecord(item)) {
+ return [];
+ }
+
+ const id = item['id'];
+ const name = item['name'];
+
+ if (!isNonEmptyString(id)) {
+ return [];
+ }
+
+ return [{ label: isNonEmptyString(name) ? name : id, value: id }];
+ });
+}
+
+function toPinOptions(items: unknown[]): DropdownOption<string>[] {
+ return items.flatMap((item) => {
+ if (!isRecord(item)) {
+ return [];
+ }
+
+ const id = item['id'];
+ const title = item['title'];
+
+ if (!isNonEmptyString(id)) {
+ return [];
+ }
+
+ return [{ label: isNonEmptyString(title) ? title : id, value: id }];
+ });
+}
+
+function buildSearchPath({
+ resource,
+ search,
+ adAccountId,
+}: {
+ resource: 'boards' | 'pins';
+ search: string;
+ adAccountId: string;
+}): string {
+ const adAccountQuery =
+ adAccountId.length > 0
+ ? `&ad_account_id=${encodeURIComponent(adAccountId)}`
+ : '';
+
+ return `/search/${resource}?query=${encodeURIComponent(
+ search
+ )}${adAccountQuery}`;
+}
diff --git a/packages/pieces/community/pinterest/src/lib/output-schemas.ts b/packages/pieces/community/pinterest/src/lib/output-schemas.ts
index 5f7215f05c0..2ec3edbf2ea 100644
--- a/packages/pieces/community/pinterest/src/lib/output-schemas.ts
+++ b/packages/pieces/community/pinterest/src/lib/output-schemas.ts
@@ -111,7 +111,7 @@ export const findPinActionOutputSchema: OutputSchema = {
{
key: 'bookmark',
label: 'Next Page Bookmark',
- description: 'Pass back as "Bookmark" to fetch the next page.',
+ description: 'Pass back as "Bookmark" to continue where these results end.',
},
],
};
diff --git a/packages/pieces/community/pinterest/src/lib/triggers/new-board.ts b/packages/pieces/community/pinterest/src/lib/triggers/new-board.ts
index 6b631afe781..4dde05ea55f 100644
--- a/packages/pieces/community/pinterest/src/lib/triggers/new-board.ts
+++ b/packages/pieces/community/pinterest/src/lib/triggers/new-board.ts
@@ -1,7 +1,6 @@
import {
createTrigger,
TriggerStrategy,
- PiecePropValueSchema,
Property,
OAuth2PropertyValue,
AppConnectionValueForAuthProperty,
@@ -116,23 +115,29 @@ export const newBoard = createTrigger({
props: {
ad_account_id: adAccountIdDropdown,
privacy_filter: Property.StaticDropdown({
- displayName: 'Board Privacy Filter',
+ displayName: 'Privacy',
required: false,
options: {
options: [
- { label: 'All Boards', value: 'ALL' },
- { label: 'Public Only', value: 'PUBLIC' },
- { label: 'Protected Only', value: 'PROTECTED' },
- { label: 'Secret Only', value: 'SECRET' },
+ { label: 'All', value: 'ALL' },
+ { label: 'Public', value: 'PUBLIC' },
+ { label: 'Protected', value: 'PROTECTED' },
+ { label: 'Secret', value: 'SECRET' },
{ label: 'Public and Secret', value: 'PUBLIC_AND_SECRET' },
],
},
- description: 'Filter boards by privacy setting (optional).',
+ description: 'Only boards with this privacy fire the trigger.',
}),
page_size: Property.Number({
displayName: 'Page Size',
required: false,
- description: 'Number of boards to fetch per page (1-250, default: 25).',
+ description: 'Boards fetched per request.',
+ display: 'stepper',
+ min: 1,
+ max: 250,
+ step: 1,
+ defaultValue: 25,
+ advanced: true,
}),
},
sampleData: {
diff --git a/packages/pieces/community/pinterest/src/lib/triggers/new-pin-on-board.ts b/packages/pieces/community/pinterest/src/lib/triggers/new-pin-on-board.ts
index 03261702ab8..aef716c531b 100644
--- a/packages/pieces/community/pinterest/src/lib/triggers/new-pin-on-board.ts
+++ b/packages/pieces/community/pinterest/src/lib/triggers/new-pin-on-board.ts
@@ -143,8 +143,9 @@ export const newPinOnBoard = createTrigger({
board_id: boardIdDropdown,
ad_account_id: adAccountIdDropdown,
creative_types: Property.StaticMultiSelectDropdown({
- displayName: 'Pin Types to Watch',
+ displayName: 'Pin Types',
required: false,
+ advanced: true,
options: {
options: [
{ label: 'Regular Pins', value: 'REGULAR' },
@@ -154,8 +155,7 @@ export const newPinOnBoard = createTrigger({
{ label: 'Idea Pins', value: 'IDEA' },
],
},
- description:
- 'Filter by specific pin types. Leave empty to watch all types.',
+ description: 'Leave empty to watch every type of Pin.',
}),
},
// One Pin per event: the polling items() returns `data: item` from