AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(instagram-business): ui improvement (#16600)
Talal Jaber6498ec0178cf
diff --git a/bun.lock b/bun.lockindex c2f25627a22..4db659db7ca 100644--- a/bun.lock+++ b/bun.lock@@ -4664,7 +4664,7 @@},"packages/pieces/community/instagram-business": {"name": "@activepieces/piece-instagram-business",- "version": "1.0.2",+ "version": "1.1.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/community/instagram-business/package.json b/packages/pieces/community/instagram-business/package.jsonindex 7128fbb4fff..2827dc1c914 100644--- a/packages/pieces/community/instagram-business/package.json+++ b/packages/pieces/community/instagram-business/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-instagram-business",- "version": "1.0.2",+ "version": "1.1.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","scripts": {diff --git a/packages/pieces/community/instagram-business/src/i18n/de.json b/packages/pieces/community/instagram-business/src/i18n/de.jsonindex be964feae94..3fe17d6b557 100644--- a/packages/pieces/community/instagram-business/src/i18n/de.json+++ b/packages/pieces/community/instagram-business/src/i18n/de.json@@ -59,14 +59,14 @@"Photo": "Foto","Caption": "Überschrift","Video": "Video",- "Photo URL": "Photo URL",- "Video URL": "Video URL",- "Items": "Items",+ "Photo URL": "Foto-URL",+ "Video URL": "Video-URL",+ "Items": "Elemente","Metrics": "Metriken",- "Period": "Period",+ "Period": "Zeitraum","Limit": "Limit","Cursor": "Cursor",- "Media ID": "Media ID",+ "Media ID": "Medien-ID","Carousel Media ID": "Carousel Media ID","Comments Enabled": "Comments Enabled","Comment ID": "Kommentar-ID",@@ -74,8 +74,8 @@"Comment": "Kommentar","Reply": "Reply","Hidden": "Hidden",- "Conversation ID": "Conversation ID",- "Recipient ID": "Recipient ID",+ "Conversation ID": "Unterhaltungs-ID",+ "Recipient ID": "Empfänger-ID","Message": "Nachricht","Media Type": "Medientyp","Media URL": "Medien-URL",@@ -91,15 +91,53 @@"Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).": "Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).","The id of a post whose media type is CAROUSEL_ALBUM.": "The id of a post whose media type is CAROUSEL_ALBUM.","Maximum number of comments to return (default 25).": "Maximum number of comments to return (default 25).",- "On hides the comment, off makes it visible again.": "On hides the comment, off makes it visible again.",+ "On hides the comment, off makes it visible again.": "An blendet den Kommentar aus, aus macht ihn wieder sichtbar.","From List Conversations.": "From List Conversations.","The Instagram-scoped user id of the person to message.": "The Instagram-scoped user id of the person to message.","Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.": "Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.","The comment whose author should receive the direct message.": "The comment whose author should receive the direct message.","Day": "Tag","Week": "Woche",- "28 Days": "28 Days",- "Lifetime": "Lifetime",+ "28 Days": "28 Tage",+ "Lifetime": "Gesamtzeitraum","Image": "Bild",- "Audio": "Audio"+ "Audio": "Audio",+ "Reply to Comment": "Auf Kommentar antworten",+ "Publish a JPG photo to your Instagram feed.": "Ein JPG-Foto in Ihrem Instagram-Feed veröffentlichen.",+ "Publish a video to your Instagram account as a reel.": "Ein Video als Reel in Ihrem Instagram-Konto veröffentlichen.",+ "Publish a photo or video story that disappears after 24 hours.": "Eine Foto- oder Video-Story veröffentlichen, die nach 24 Stunden verschwindet.",+ "Read reach, likes and comments metrics for one post.": "Metriken zu Reichweite, Likes und Kommentaren für einen Beitrag abrufen.",+ "Facebook Page": "Facebook-Seite",+ "Markdown": "Markdown",+ "Max Results": "Maximale Ergebnisse",+ "Allow Comments": "Kommentare erlauben",+ "Text": "Text",+ "Hide Comment": "Kommentar ausblenden",+ "Uses the Instagram account linked to this Page.": "Verwendet das mit dieser Seite verknüpfte Instagram-Konto.",+ "Public link to a JPG image.": "Öffentlicher Link zu einem JPG-Bild.",+ "Up to 2,200 characters, including hashtags and mentions.": "Bis zu 2.200 Zeichen, einschließlich Hashtags und Erwähnungen.",+ "Public link to the video, up to 1 GB and 15 minutes long.": "Öffentlicher Link zum Video, bis zu 1 GB und 15 Minuten lang.",+ "Fill in Photo URL or Video URL, not both.": "Füllen Sie Foto-URL oder Video-URL aus, nicht beide.",+ "Public link to the video.": "Öffentlicher Link zum Video.",+ "2 to 10 photos or videos, in the order they appear.": "2 bis 10 Fotos oder Videos, in der Reihenfolge ihrer Anzeige.",+ "For example reach or profile_views. Empty reads reach.": "Zum Beispiel reach oder profile_views. Leer liest reach.",+ "The time window each metric covers.": "Der Zeitraum, den jede Metrik abdeckt.",+ "Posts to return per run, up to 100.": "Beiträge pro Ausführung, bis zu 100.",+ "The Next Cursor from an earlier run, to get the next results.": "Der Next Cursor aus einer früheren Ausführung, um die nächsten Ergebnisse abzurufen.",+ "The id from List Media or a publish step.": "Die ID aus List Media oder einem Veröffentlichungsschritt.",+ "For example reach or saved. Empty uses defaults for the post type.": "Zum Beispiel reach oder saved. Leer nutzt die Standardwerte für den Beitragstyp.",+ "The id of a carousel post, from List Media.": "Die ID eines Karussell-Beitrags, aus List Media.",+ "Deleted posts can't be restored.": "Gelöschte Beiträge können nicht wiederhergestellt werden.",+ "On lets people comment, off turns comments off.": "An erlaubt Kommentare, aus deaktiviert sie.",+ "Comments to return per run, up to 100.": "Kommentare pro Ausführung, bis zu 100.",+ "The id from List Comments or another comment step.": "Die ID aus List Comments oder einem anderen Kommentarschritt.",+ "The comment whose replies to list, from List Comments.": "Der Kommentar, dessen Antworten aufgelistet werden, aus List Comments.",+ "Deleted comments can't be restored.": "Gelöschte Kommentare können nicht wiederhergestellt werden.",+ "Conversations to return per run, up to 100.": "Unterhaltungen pro Ausführung, bis zu 100.",+ "The id from List Conversations.": "Die ID aus List Conversations.",+ "Instagram only delivers to people who messaged you in the last 24 hours.": "Instagram stellt nur an Personen zu, die Ihnen in den letzten 24 Stunden geschrieben haben.",+ "Their Instagram-scoped id, from List Conversations or List Messages.": "Die Instagram-bezogene ID der Person, aus List Conversations oder List Messages.",+ "Public link to the file, from a plain static host.": "Öffentlicher Link zur Datei, von einem einfachen statischen Host.",+ "You can send one private reply per comment, within 7 days of it.": "Pro Kommentar ist eine private Antwort möglich, innerhalb von 7 Tagen.",+ "The comment whose author gets the message.": "Der Kommentar, dessen Verfasser die Nachricht erhält."}\ No newline at end of filediff --git a/packages/pieces/community/instagram-business/src/i18n/es.json b/packages/pieces/community/instagram-business/src/i18n/es.jsonindex 429471f5c13..e87e97d3c31 100644--- a/packages/pieces/community/instagram-business/src/i18n/es.json+++ b/packages/pieces/community/instagram-business/src/i18n/es.json@@ -59,14 +59,14 @@"Photo": "Foto","Caption": "Leyenda","Video": "Vídeo",- "Photo URL": "Photo URL",- "Video URL": "Video URL",+ "Photo URL": "URL de la foto",+ "Video URL": "URL del vídeo","Items": "Elementos","Metrics": "Métricas",- "Period": "Period",+ "Period": "Periodo","Limit": "Límite","Cursor": "Cursor",- "Media ID": "Media ID",+ "Media ID": "ID de medio","Carousel Media ID": "Carousel Media ID","Comments Enabled": "Comments Enabled","Comment ID": "Comentario ID",@@ -74,8 +74,8 @@"Comment": "Comentario","Reply": "Reply","Hidden": "Hidden",- "Conversation ID": "Conversation ID",- "Recipient ID": "Recipient ID",+ "Conversation ID": "ID de la conversación",+ "Recipient ID": "ID del destinatario","Message": "Mensaje","Media Type": "Tipo de medio","Media URL": "URL de medios",@@ -91,15 +91,53 @@"Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).": "Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).","The id of a post whose media type is CAROUSEL_ALBUM.": "The id of a post whose media type is CAROUSEL_ALBUM.","Maximum number of comments to return (default 25).": "Maximum number of comments to return (default 25).",- "On hides the comment, off makes it visible again.": "On hides the comment, off makes it visible again.",+ "On hides the comment, off makes it visible again.": "Activado oculta el comentario, desactivado lo vuelve a mostrar.","From List Conversations.": "From List Conversations.","The Instagram-scoped user id of the person to message.": "The Instagram-scoped user id of the person to message.","Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.": "Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.","The comment whose author should receive the direct message.": "The comment whose author should receive the direct message.","Day": "Día","Week": "Semana",- "28 Days": "28 Days",- "Lifetime": "Lifetime",+ "28 Days": "28 días",+ "Lifetime": "Todo el periodo","Image": "Imagen",- "Audio": "Audio"+ "Audio": "Audio",+ "Reply to Comment": "Responder a comentario",+ "Publish a JPG photo to your Instagram feed.": "Publica una foto JPG en tu feed de Instagram.",+ "Publish a video to your Instagram account as a reel.": "Publica un vídeo en tu cuenta de Instagram como reel.",+ "Publish a photo or video story that disappears after 24 hours.": "Publica una historia de foto o vídeo que desaparece a las 24 horas.",+ "Read reach, likes and comments metrics for one post.": "Lee métricas de alcance, me gusta y comentarios de una publicación.",+ "Facebook Page": "Página de Facebook",+ "Markdown": "Markdown",+ "Max Results": "Máximo de resultados",+ "Allow Comments": "Permitir comentarios",+ "Text": "Texto",+ "Hide Comment": "Ocultar comentario",+ "Uses the Instagram account linked to this Page.": "Usa la cuenta de Instagram vinculada a esta página.",+ "Public link to a JPG image.": "Enlace público a una imagen JPG.",+ "Up to 2,200 characters, including hashtags and mentions.": "Hasta 2.200 caracteres, incluidos hashtags y menciones.",+ "Public link to the video, up to 1 GB and 15 minutes long.": "Enlace público al vídeo, de hasta 1 GB y 15 minutos.",+ "Fill in Photo URL or Video URL, not both.": "Rellena URL de la foto o URL del vídeo, no ambas.",+ "Public link to the video.": "Enlace público al vídeo.",+ "2 to 10 photos or videos, in the order they appear.": "De 2 a 10 fotos o vídeos, en el orden en que aparecen.",+ "For example reach or profile_views. Empty reads reach.": "Por ejemplo reach o profile_views. Vacío lee reach.",+ "The time window each metric covers.": "El periodo que cubre cada métrica.",+ "Posts to return per run, up to 100.": "Publicaciones a devolver por ejecución, hasta 100.",+ "The Next Cursor from an earlier run, to get the next results.": "El Next Cursor de una ejecución anterior, para obtener los siguientes resultados.",+ "The id from List Media or a publish step.": "El id de List Media o de un paso de publicación.",+ "For example reach or saved. Empty uses defaults for the post type.": "Por ejemplo reach o saved. Vacío usa los valores predeterminados del tipo de publicación.",+ "The id of a carousel post, from List Media.": "El id de una publicación de carrusel, de List Media.",+ "Deleted posts can't be restored.": "Las publicaciones eliminadas no se pueden restaurar.",+ "On lets people comment, off turns comments off.": "Activado permite comentar, desactivado desactiva los comentarios.",+ "Comments to return per run, up to 100.": "Comentarios a devolver por ejecución, hasta 100.",+ "The id from List Comments or another comment step.": "El id de List Comments o de otro paso de comentarios.",+ "The comment whose replies to list, from List Comments.": "El comentario cuyas respuestas se listan, de List Comments.",+ "Deleted comments can't be restored.": "Los comentarios eliminados no se pueden restaurar.",+ "Conversations to return per run, up to 100.": "Conversaciones a devolver por ejecución, hasta 100.",+ "The id from List Conversations.": "El id de List Conversations.",+ "Instagram only delivers to people who messaged you in the last 24 hours.": "Instagram solo entrega mensajes a personas que te escribieron en las últimas 24 horas.",+ "Their Instagram-scoped id, from List Conversations or List Messages.": "Su id de ámbito de Instagram, de List Conversations o List Messages.",+ "Public link to the file, from a plain static host.": "Enlace público al archivo, desde un alojamiento estático simple.",+ "You can send one private reply per comment, within 7 days of it.": "Puedes enviar una respuesta privada por comentario, dentro de los 7 días.",+ "The comment whose author gets the message.": "El comentario cuyo autor recibe el mensaje."}\ No newline at end of filediff --git a/packages/pieces/community/instagram-business/src/i18n/fr.json b/packages/pieces/community/instagram-business/src/i18n/fr.jsonindex 783d8b782c4..a80ece45147 100644--- a/packages/pieces/community/instagram-business/src/i18n/fr.json+++ b/packages/pieces/community/instagram-business/src/i18n/fr.json@@ -63,10 +63,10 @@"Video URL": "URL de la vidéo","Items": "Éléments","Metrics": "Métriques",- "Period": "Period",+ "Period": "Période","Limit": "Limite","Cursor": "Curseur",- "Media ID": "Media ID",+ "Media ID": "ID du média","Carousel Media ID": "Carousel Media ID","Comments Enabled": "Comments Enabled","Comment ID": "ID du commentaire",@@ -91,15 +91,53 @@"Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).": "Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).","The id of a post whose media type is CAROUSEL_ALBUM.": "The id of a post whose media type is CAROUSEL_ALBUM.","Maximum number of comments to return (default 25).": "Maximum number of comments to return (default 25).",- "On hides the comment, off makes it visible again.": "On hides the comment, off makes it visible again.",+ "On hides the comment, off makes it visible again.": "Activé masque le commentaire, désactivé le rend à nouveau visible.","From List Conversations.": "From List Conversations.","The Instagram-scoped user id of the person to message.": "The Instagram-scoped user id of the person to message.","Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.": "Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.","The comment whose author should receive the direct message.": "The comment whose author should receive the direct message.","Day": "Jour","Week": "Semaine",- "28 Days": "28 Days",- "Lifetime": "Lifetime",+ "28 Days": "28 jours",+ "Lifetime": "Toute la durée","Image": "Image",- "Audio": "Audio"+ "Audio": "Audio",+ "Reply to Comment": "Répondre à un commentaire",+ "Publish a JPG photo to your Instagram feed.": "Publiez une photo JPG dans votre fil Instagram.",+ "Publish a video to your Instagram account as a reel.": "Publiez une vidéo sur votre compte Instagram sous forme de reel.",+ "Publish a photo or video story that disappears after 24 hours.": "Publiez une story photo ou vidéo qui disparaît après 24 heures.",+ "Read reach, likes and comments metrics for one post.": "Lisez les métriques de portée, de j'aime et de commentaires d'une publication.",+ "Facebook Page": "Page Facebook",+ "Markdown": "Markdown",+ "Max Results": "Résultats maximum",+ "Allow Comments": "Autoriser les commentaires",+ "Text": "Texte",+ "Hide Comment": "Masquer le commentaire",+ "Uses the Instagram account linked to this Page.": "Utilise le compte Instagram lié à cette Page.",+ "Public link to a JPG image.": "Lien public vers une image JPG.",+ "Up to 2,200 characters, including hashtags and mentions.": "Jusqu'à 2 200 caractères, hashtags et mentions compris.",+ "Public link to the video, up to 1 GB and 15 minutes long.": "Lien public vers la vidéo, jusqu'à 1 Go et 15 minutes.",+ "Fill in Photo URL or Video URL, not both.": "Remplissez URL de la photo ou URL de la vidéo, pas les deux.",+ "Public link to the video.": "Lien public vers la vidéo.",+ "2 to 10 photos or videos, in the order they appear.": "De 2 à 10 photos ou vidéos, dans leur ordre d'affichage.",+ "For example reach or profile_views. Empty reads reach.": "Par exemple reach ou profile_views. Vide lit reach.",+ "The time window each metric covers.": "La période couverte par chaque métrique.",+ "Posts to return per run, up to 100.": "Publications à renvoyer par exécution, jusqu'à 100.",+ "The Next Cursor from an earlier run, to get the next results.": "Le Next Cursor d'une exécution précédente, pour obtenir les résultats suivants.",+ "The id from List Media or a publish step.": "L'id issu de List Media ou d'une étape de publication.",+ "For example reach or saved. Empty uses defaults for the post type.": "Par exemple reach ou saved. Vide utilise les valeurs par défaut du type de publication.",+ "The id of a carousel post, from List Media.": "L'id d'une publication carrousel, issu de List Media.",+ "Deleted posts can't be restored.": "Les publications supprimées ne peuvent pas être restaurées.",+ "On lets people comment, off turns comments off.": "Activé autorise les commentaires, désactivé les désactive.",+ "Comments to return per run, up to 100.": "Commentaires à renvoyer par exécution, jusqu'à 100.",+ "The id from List Comments or another comment step.": "L'id issu de List Comments ou d'une autre étape de commentaire.",+ "The comment whose replies to list, from List Comments.": "Le commentaire dont lister les réponses, issu de List Comments.",+ "Deleted comments can't be restored.": "Les commentaires supprimés ne peuvent pas être restaurés.",+ "Conversations to return per run, up to 100.": "Conversations à renvoyer par exécution, jusqu'à 100.",+ "The id from List Conversations.": "L'id issu de List Conversations.",+ "Instagram only delivers to people who messaged you in the last 24 hours.": "Instagram ne livre qu'aux personnes qui vous ont écrit au cours des dernières 24 heures.",+ "Their Instagram-scoped id, from List Conversations or List Messages.": "Son id propre à Instagram, issu de List Conversations ou List Messages.",+ "Public link to the file, from a plain static host.": "Lien public vers le fichier, depuis un hébergement statique simple.",+ "You can send one private reply per comment, within 7 days of it.": "Vous pouvez envoyer une réponse privée par commentaire, dans les 7 jours.",+ "The comment whose author gets the message.": "Le commentaire dont l'auteur reçoit le message."}\ No newline at end of filediff --git a/packages/pieces/community/instagram-business/src/i18n/ja.json b/packages/pieces/community/instagram-business/src/i18n/ja.jsonindex 3c76d05ab04..b3f188f9d3e 100644--- a/packages/pieces/community/instagram-business/src/i18n/ja.json+++ b/packages/pieces/community/instagram-business/src/i18n/ja.json@@ -59,14 +59,14 @@"Photo": "写真","Caption": "図表番号","Video": "ビデオ",- "Photo URL": "Photo URL",- "Video URL": "Video URL",- "Items": "Items",+ "Photo URL": "写真 URL",+ "Video URL": "動画 URL",+ "Items": "アイテム","Metrics": "メトリック",- "Period": "Period",+ "Period": "期間","Limit": "取得件数","Cursor": "続きの位置",- "Media ID": "Media ID",+ "Media ID": "メディア ID","Carousel Media ID": "Carousel Media ID","Comments Enabled": "Comments Enabled","Comment ID": "コメント ID",@@ -74,8 +74,8 @@"Comment": "コメント","Reply": "Reply","Hidden": "Hidden",- "Conversation ID": "Conversation ID",- "Recipient ID": "Recipient ID",+ "Conversation ID": "会話 ID",+ "Recipient ID": "受信者 ID","Message": "メッセージ","Media Type": "メディアタイプ","Media URL": "メディア URL",@@ -91,15 +91,53 @@"Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).": "Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).","The id of a post whose media type is CAROUSEL_ALBUM.": "The id of a post whose media type is CAROUSEL_ALBUM.","Maximum number of comments to return (default 25).": "Maximum number of comments to return (default 25).",- "On hides the comment, off makes it visible again.": "On hides the comment, off makes it visible again.",+ "On hides the comment, off makes it visible again.": "オンでコメントを非表示、オフで再表示します。","From List Conversations.": "From List Conversations.","The Instagram-scoped user id of the person to message.": "The Instagram-scoped user id of the person to message.","Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.": "Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.","The comment whose author should receive the direct message.": "The comment whose author should receive the direct message.","Day": "日","Week": "週",- "28 Days": "28 Days",- "Lifetime": "Lifetime",+ "28 Days": "28 日間",+ "Lifetime": "全期間","Image": "画像",- "Audio": "オーディオ"+ "Audio": "オーディオ",+ "Reply to Comment": "コメントに返信",+ "Publish a JPG photo to your Instagram feed.": "JPG 写真を Instagram のフィードに公開します。",+ "Publish a video to your Instagram account as a reel.": "動画をリールとして Instagram アカウントに公開します。",+ "Publish a photo or video story that disappears after 24 hours.": "24 時間後に消える写真または動画のストーリーを公開します。",+ "Read reach, likes and comments metrics for one post.": "1 件の投稿のリーチ、いいね、コメントのメトリックを取得します。",+ "Facebook Page": "Facebook ページ",+ "Markdown": "Markdown",+ "Max Results": "最大件数",+ "Allow Comments": "コメントを許可",+ "Text": "テキスト",+ "Hide Comment": "コメントを非表示",+ "Uses the Instagram account linked to this Page.": "このページにリンクされた Instagram アカウントを使用します。",+ "Public link to a JPG image.": "JPG 画像の公開リンク。",+ "Up to 2,200 characters, including hashtags and mentions.": "ハッシュタグとメンションを含めて最大 2,200 文字。",+ "Public link to the video, up to 1 GB and 15 minutes long.": "動画の公開リンク。最大 1 GB、15 分まで。",+ "Fill in Photo URL or Video URL, not both.": "写真 URL か動画 URL のどちらか一方だけを入力してください。",+ "Public link to the video.": "動画の公開リンク。",+ "2 to 10 photos or videos, in the order they appear.": "表示順に並べた 2〜10 件の写真または動画。",+ "For example reach or profile_views. Empty reads reach.": "例: reach や profile_views。空欄の場合は reach を取得します。",+ "The time window each metric covers.": "各メトリックの対象期間。",+ "Posts to return per run, up to 100.": "1 回の実行で返す投稿数。最大 100。",+ "The Next Cursor from an earlier run, to get the next results.": "前回の実行の Next Cursor。続きの結果を取得します。",+ "The id from List Media or a publish step.": "List Media または公開ステップで得た ID。",+ "For example reach or saved. Empty uses defaults for the post type.": "例: reach や saved。空欄の場合は投稿タイプの既定値を使います。",+ "The id of a carousel post, from List Media.": "List Media で得たカルーセル投稿の ID。",+ "Deleted posts can't be restored.": "削除した投稿は復元できません。",+ "On lets people comment, off turns comments off.": "オンでコメントを許可、オフでコメントをオフにします。",+ "Comments to return per run, up to 100.": "1 回の実行で返すコメント数。最大 100。",+ "The id from List Comments or another comment step.": "List Comments または他のコメントステップで得た ID。",+ "The comment whose replies to list, from List Comments.": "返信を一覧表示するコメント。List Comments で取得します。",+ "Deleted comments can't be restored.": "削除したコメントは復元できません。",+ "Conversations to return per run, up to 100.": "1 回の実行で返す会話数。最大 100。",+ "The id from List Conversations.": "List Conversations で得た ID。",+ "Instagram only delivers to people who messaged you in the last 24 hours.": "Instagram は過去 24 時間以内にメッセージをくれた人にのみ配信します。",+ "Their Instagram-scoped id, from List Conversations or List Messages.": "相手の Instagram スコープ ID。List Conversations または List Messages で取得します。",+ "Public link to the file, from a plain static host.": "ファイルの公開リンク。シンプルな静的ホストのものを使ってください。",+ "You can send one private reply per comment, within 7 days of it.": "プライベート返信はコメントごとに 1 回、7 日以内に送信できます。",+ "The comment whose author gets the message.": "メッセージを受け取る投稿者のコメント。"}\ No newline at end of filediff --git a/packages/pieces/community/instagram-business/src/i18n/nl.json b/packages/pieces/community/instagram-business/src/i18n/nl.jsonindex f6e48e5ac3e..897a9dee141 100644--- a/packages/pieces/community/instagram-business/src/i18n/nl.json+++ b/packages/pieces/community/instagram-business/src/i18n/nl.json@@ -59,14 +59,14 @@"Photo": "Foto","Caption": "Onderschrift","Video": "Video",- "Photo URL": "Photo URL",- "Video URL": "Video URL",+ "Photo URL": "Foto-URL",+ "Video URL": "Video-URL","Items": "Artikelen","Metrics": "Statistieken",- "Period": "Period",+ "Period": "Periode","Limit": "Limiet","Cursor": "Cursor",- "Media ID": "Media ID",+ "Media ID": "Media-ID","Carousel Media ID": "Carousel Media ID","Comments Enabled": "Comments Enabled","Comment ID": "Commentaar ID",@@ -74,11 +74,11 @@"Comment": "Opmerking","Reply": "Reply","Hidden": "Hidden",- "Conversation ID": "Conversation ID",- "Recipient ID": "Recipient ID",+ "Conversation ID": "Gesprek-ID",+ "Recipient ID": "Ontvanger-ID","Message": "bericht","Media Type": "Media type",- "Media URL": "Media URL",+ "Media URL": "Media-URL","A URL we can access for the photo (JPG only)": "Een URL die we toegang hebben tot de foto (alleen JPG)","A URL we can access for the video (Limit: 1GB or 15 minutes)": "Een URL die we kunnen gebruiken voor de video (limiet: 1GB of 15 minuten)","Public URL of a JPG image. Leave empty when publishing a video story.": "Public URL of a JPG image. Leave empty when publishing a video story.",@@ -91,15 +91,53 @@"Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).": "Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).","The id of a post whose media type is CAROUSEL_ALBUM.": "The id of a post whose media type is CAROUSEL_ALBUM.","Maximum number of comments to return (default 25).": "Maximum number of comments to return (default 25).",- "On hides the comment, off makes it visible again.": "On hides the comment, off makes it visible again.",+ "On hides the comment, off makes it visible again.": "Aan verbergt de opmerking, uit maakt haar weer zichtbaar.","From List Conversations.": "From List Conversations.","The Instagram-scoped user id of the person to message.": "The Instagram-scoped user id of the person to message.","Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.": "Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.","The comment whose author should receive the direct message.": "The comment whose author should receive the direct message.","Day": "dag","Week": "week",- "28 Days": "28 Days",- "Lifetime": "Lifetime",+ "28 Days": "28 dagen",+ "Lifetime": "Hele periode","Image": "Afbeelding",- "Audio": "Geluid"+ "Audio": "Geluid",+ "Reply to Comment": "Op opmerking reageren",+ "Publish a JPG photo to your Instagram feed.": "Publiceer een JPG-foto in je Instagram-feed.",+ "Publish a video to your Instagram account as a reel.": "Publiceer een video als reel op je Instagram-account.",+ "Publish a photo or video story that disappears after 24 hours.": "Publiceer een foto- of videostory die na 24 uur verdwijnt.",+ "Read reach, likes and comments metrics for one post.": "Lees statistieken over bereik, likes en opmerkingen van één bericht.",+ "Facebook Page": "Facebook-pagina",+ "Markdown": "Markdown",+ "Max Results": "Maximaal aantal resultaten",+ "Allow Comments": "Opmerkingen toestaan",+ "Text": "Tekst",+ "Hide Comment": "Opmerking verbergen",+ "Uses the Instagram account linked to this Page.": "Gebruikt het Instagram-account dat aan deze pagina is gekoppeld.",+ "Public link to a JPG image.": "Openbare link naar een JPG-afbeelding.",+ "Up to 2,200 characters, including hashtags and mentions.": "Maximaal 2.200 tekens, inclusief hashtags en vermeldingen.",+ "Public link to the video, up to 1 GB and 15 minutes long.": "Openbare link naar de video, maximaal 1 GB en 15 minuten lang.",+ "Fill in Photo URL or Video URL, not both.": "Vul Foto-URL of Video-URL in, niet allebei.",+ "Public link to the video.": "Openbare link naar de video.",+ "2 to 10 photos or videos, in the order they appear.": "2 tot 10 foto's of video's, in de volgorde waarin ze verschijnen.",+ "For example reach or profile_views. Empty reads reach.": "Bijvoorbeeld reach of profile_views. Leeg leest reach.",+ "The time window each metric covers.": "De periode die elke statistiek beslaat.",+ "Posts to return per run, up to 100.": "Berichten per run, maximaal 100.",+ "The Next Cursor from an earlier run, to get the next results.": "De Next Cursor van een eerdere run, om de volgende resultaten op te halen.",+ "The id from List Media or a publish step.": "De id uit List Media of een publicatiestap.",+ "For example reach or saved. Empty uses defaults for the post type.": "Bijvoorbeeld reach of saved. Leeg gebruikt de standaardwaarden voor het berichttype.",+ "The id of a carousel post, from List Media.": "De id van een carrouselbericht, uit List Media.",+ "Deleted posts can't be restored.": "Verwijderde berichten kunnen niet worden hersteld.",+ "On lets people comment, off turns comments off.": "Aan staat opmerkingen toe, uit zet opmerkingen uit.",+ "Comments to return per run, up to 100.": "Opmerkingen per run, maximaal 100.",+ "The id from List Comments or another comment step.": "De id uit List Comments of een andere opmerkingenstap.",+ "The comment whose replies to list, from List Comments.": "De opmerking waarvan de reacties worden opgehaald, uit List Comments.",+ "Deleted comments can't be restored.": "Verwijderde opmerkingen kunnen niet worden hersteld.",+ "Conversations to return per run, up to 100.": "Gesprekken per run, maximaal 100.",+ "The id from List Conversations.": "De id uit List Conversations.",+ "Instagram only delivers to people who messaged you in the last 24 hours.": "Instagram bezorgt alleen bij mensen die je in de afgelopen 24 uur een bericht hebben gestuurd.",+ "Their Instagram-scoped id, from List Conversations or List Messages.": "Hun Instagram-specifieke id, uit List Conversations of List Messages.",+ "Public link to the file, from a plain static host.": "Openbare link naar het bestand, van een eenvoudige statische host.",+ "You can send one private reply per comment, within 7 days of it.": "Je kunt één privéantwoord per opmerking sturen, binnen 7 dagen.",+ "The comment whose author gets the message.": "De opmerking waarvan de auteur het bericht ontvangt."}\ No newline at end of filediff --git a/packages/pieces/community/instagram-business/src/i18n/pt.json b/packages/pieces/community/instagram-business/src/i18n/pt.jsonindex 647b3ae441b..eb9b4408bc5 100644--- a/packages/pieces/community/instagram-business/src/i18n/pt.json+++ b/packages/pieces/community/instagram-business/src/i18n/pt.json@@ -59,14 +59,14 @@"Photo": "Fotografia","Caption": "Legenda","Video": "Vídeo",- "Photo URL": "Photo URL",- "Video URL": "Video URL",+ "Photo URL": "URL da foto",+ "Video URL": "URL do vídeo","Items": "Itens","Metrics": "Métricas",- "Period": "Period",+ "Period": "Período","Limit": "Limitar","Cursor": "Cursor",- "Media ID": "Media ID",+ "Media ID": "ID da mídia","Carousel Media ID": "Carousel Media ID","Comments Enabled": "Comments Enabled","Comment ID": "ID do comentário",@@ -74,8 +74,8 @@"Comment": "Comentar","Reply": "Reply","Hidden": "Hidden",- "Conversation ID": "Conversation ID",- "Recipient ID": "Recipient ID",+ "Conversation ID": "ID da conversa",+ "Recipient ID": "ID do destinatário","Message": "mensagem","Media Type": "Tipo de mídia","Media URL": "URL da Mídia",@@ -91,15 +91,53 @@"Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).": "Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).","The id of a post whose media type is CAROUSEL_ALBUM.": "The id of a post whose media type is CAROUSEL_ALBUM.","Maximum number of comments to return (default 25).": "Maximum number of comments to return (default 25).",- "On hides the comment, off makes it visible again.": "On hides the comment, off makes it visible again.",+ "On hides the comment, off makes it visible again.": "Ligado oculta o comentário, desligado o torna visível novamente.","From List Conversations.": "From List Conversations.","The Instagram-scoped user id of the person to message.": "The Instagram-scoped user id of the person to message.","Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.": "Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.","The comment whose author should receive the direct message.": "The comment whose author should receive the direct message.","Day": "dia","Week": "semana",- "28 Days": "28 Days",- "Lifetime": "Lifetime",+ "28 Days": "28 dias",+ "Lifetime": "Todo o período","Image": "Imagem:",- "Audio": "Áudio"+ "Audio": "Áudio",+ "Reply to Comment": "Responder ao comentário",+ "Publish a JPG photo to your Instagram feed.": "Publique uma foto JPG no seu feed do Instagram.",+ "Publish a video to your Instagram account as a reel.": "Publique um vídeo na sua conta do Instagram como reel.",+ "Publish a photo or video story that disappears after 24 hours.": "Publique um story de foto ou vídeo que desaparece após 24 horas.",+ "Read reach, likes and comments metrics for one post.": "Leia métricas de alcance, curtidas e comentários de uma publicação.",+ "Facebook Page": "Página do Facebook",+ "Markdown": "Markdown",+ "Max Results": "Máximo de resultados",+ "Allow Comments": "Permitir comentários",+ "Text": "Texto",+ "Hide Comment": "Ocultar comentário",+ "Uses the Instagram account linked to this Page.": "Usa a conta do Instagram vinculada a esta Página.",+ "Public link to a JPG image.": "Link público para uma imagem JPG.",+ "Up to 2,200 characters, including hashtags and mentions.": "Até 2.200 caracteres, incluindo hashtags e menções.",+ "Public link to the video, up to 1 GB and 15 minutes long.": "Link público para o vídeo, até 1 GB e 15 minutos.",+ "Fill in Photo URL or Video URL, not both.": "Preencha URL da foto ou URL do vídeo, não ambos.",+ "Public link to the video.": "Link público para o vídeo.",+ "2 to 10 photos or videos, in the order they appear.": "De 2 a 10 fotos ou vídeos, na ordem em que aparecem.",+ "For example reach or profile_views. Empty reads reach.": "Por exemplo reach ou profile_views. Vazio lê reach.",+ "The time window each metric covers.": "O período que cada métrica abrange.",+ "Posts to return per run, up to 100.": "Publicações a retornar por execução, até 100.",+ "The Next Cursor from an earlier run, to get the next results.": "O Next Cursor de uma execução anterior, para obter os próximos resultados.",+ "The id from List Media or a publish step.": "O id de List Media ou de uma etapa de publicação.",+ "For example reach or saved. Empty uses defaults for the post type.": "Por exemplo reach ou saved. Vazio usa os padrões do tipo de publicação.",+ "The id of a carousel post, from List Media.": "O id de uma publicação em carrossel, de List Media.",+ "Deleted posts can't be restored.": "Publicações excluídas não podem ser restauradas.",+ "On lets people comment, off turns comments off.": "Ligado permite comentários, desligado desativa os comentários.",+ "Comments to return per run, up to 100.": "Comentários a retornar por execução, até 100.",+ "The id from List Comments or another comment step.": "O id de List Comments ou de outra etapa de comentário.",+ "The comment whose replies to list, from List Comments.": "O comentário cujas respostas serão listadas, de List Comments.",+ "Deleted comments can't be restored.": "Comentários excluídos não podem ser restaurados.",+ "Conversations to return per run, up to 100.": "Conversas a retornar por execução, até 100.",+ "The id from List Conversations.": "O id de List Conversations.",+ "Instagram only delivers to people who messaged you in the last 24 hours.": "O Instagram só entrega para pessoas que enviaram mensagem a você nas últimas 24 horas.",+ "Their Instagram-scoped id, from List Conversations or List Messages.": "O id da pessoa no escopo do Instagram, de List Conversations ou List Messages.",+ "Public link to the file, from a plain static host.": "Link público para o arquivo, de uma hospedagem estática simples.",+ "You can send one private reply per comment, within 7 days of it.": "Você pode enviar uma resposta privada por comentário, em até 7 dias.",+ "The comment whose author gets the message.": "O comentário cujo autor recebe a mensagem."}\ No newline at end of filediff --git a/packages/pieces/community/instagram-business/src/i18n/translation.json b/packages/pieces/community/instagram-business/src/i18n/translation.jsonindex fa1e4165967..a47ddd893e3 100644--- a/packages/pieces/community/instagram-business/src/i18n/translation.json+++ b/packages/pieces/community/instagram-business/src/i18n/translation.json@@ -20,7 +20,7 @@"Get Comment": "Get Comment","List Comment Replies": "List Comment Replies","Create Comment": "Create Comment",- "Reply To Comment": "Reply To Comment",+ "Reply to Comment": "Reply to Comment","Hide or Unhide Comment": "Hide or Unhide Comment","Delete Comment": "Delete Comment","List Conversations": "List Conversations",@@ -28,16 +28,16 @@"Send Message": "Send Message","Send Media Message": "Send Media Message","Send Private Reply": "Send Private Reply",- "Upload a photo to an Instagram Professional Account": "Upload a photo to an Instagram Professional Account",- "Upload a reel to an Instagram Professional Account": "Upload a reel to an Instagram Professional Account",- "Publish a photo or video story to an Instagram professional account.": "Publish a photo or video story to an Instagram professional account.",+ "Publish a JPG photo to your Instagram feed.": "Publish a JPG photo to your Instagram feed.",+ "Publish a video to your Instagram account as a reel.": "Publish a video to your Instagram account as a reel.",+ "Publish a photo or video story that disappears after 24 hours.": "Publish a photo or video story that disappears after 24 hours.","Publish a carousel album of up to 10 photos or videos.": "Publish a carousel album of up to 10 photos or videos.","Read the profile of the connected Instagram professional account.": "Read the profile of the connected Instagram professional account.","Read reach, views and interaction metrics for the account.": "Read reach, views and interaction metrics for the account.","Check how many posts the account has published in the last 24 hours.": "Check how many posts the account has published in the last 24 hours.","List posts published by the connected Instagram account.": "List posts published by the connected Instagram account.","Read a single Instagram post by its id.": "Read a single Instagram post by its id.",- "Read reach, likes and comment metrics for one post.": "Read reach, likes and comment metrics for one post.",+ "Read reach, likes and comments metrics for one post.": "Read reach, likes and comments metrics for one post.","List the individual items inside a carousel album post.": "List the individual items inside a carousel album post.","List the stories currently live on the connected Instagram account.": "List the stories currently live on the connected Instagram account.","List posts by other accounts that tagged this account.": "List posts by other accounts that tagged this account.",@@ -55,51 +55,58 @@"Send a direct message to an Instagram user.": "Send a direct message to an Instagram user.","Send an image, video or audio file as a direct message.": "Send an image, video or audio file as a direct message.","Reply privately by direct message to someone who commented.": "Reply privately by direct message to someone who commented.",- "Page": "Page",- "Photo": "Photo",- "Caption": "Caption",- "Video": "Video",+ "Facebook Page": "Facebook Page","Photo URL": "Photo URL",+ "Caption": "Caption","Video URL": "Video URL",+ "Markdown": "Markdown","Items": "Items","Metrics": "Metrics","Period": "Period",- "Limit": "Limit",+ "Max Results": "Max Results","Cursor": "Cursor","Media ID": "Media ID",- "Carousel Media ID": "Carousel Media ID",- "Comments Enabled": "Comments Enabled",+ "Allow Comments": "Allow Comments","Comment ID": "Comment ID",- "Parent Comment ID": "Parent Comment ID",- "Comment": "Comment",- "Reply": "Reply",- "Hidden": "Hidden",+ "Text": "Text",+ "Hide Comment": "Hide Comment","Conversation ID": "Conversation ID","Recipient ID": "Recipient ID",- "Message": "Message","Media Type": "Media Type","Media URL": "Media URL",- "A URL we can access for the photo (JPG only)": "A URL we can access for the photo (JPG only)",- "A URL we can access for the video (Limit: 1GB or 15 minutes)": "A URL we can access for the video (Limit: 1GB or 15 minutes)",- "Public URL of a JPG image. Leave empty when publishing a video story.": "Public URL of a JPG image. Leave empty when publishing a video story.",- "Public URL of a video. Leave empty when publishing a photo story.": "Public URL of a video. Leave empty when publishing a photo story.",- "Between 2 and 10 photos or videos, in the order they should appear.": "Between 2 and 10 photos or videos, in the order they should appear.",- "Metric names, for example reach or profile_views. Defaults to reach.": "Metric names, for example reach or profile_views. Defaults to reach.",- "Maximum number of posts to return (default 25).": "Maximum number of posts to return (default 25).",- "Next Cursor from a previous run, to fetch the following page.": "Next Cursor from a previous run, to fetch the following page.",- "The id of the post, as returned by List Media or a publish action.": "The id of the post, as returned by List Media or a publish action.",- "Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).": "Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).",- "The id of a post whose media type is CAROUSEL_ALBUM.": "The id of a post whose media type is CAROUSEL_ALBUM.",- "Maximum number of comments to return (default 25).": "Maximum number of comments to return (default 25).",+ "Uses the Instagram account linked to this Page.": "Uses the Instagram account linked to this Page.",+ "Public link to a JPG image.": "Public link to a JPG image.",+ "Up to 2,200 characters, including hashtags and mentions.": "Up to 2,200 characters, including hashtags and mentions.",+ "Public link to the video, up to 1 GB and 15 minutes long.": "Public link to the video, up to 1 GB and 15 minutes long.",+ "Fill in Photo URL or Video URL, not both.": "Fill in Photo URL or Video URL, not both.",+ "Public link to the video.": "Public link to the video.",+ "2 to 10 photos or videos, in the order they appear.": "2 to 10 photos or videos, in the order they appear.",+ "For example reach or profile_views. Empty reads reach.": "For example reach or profile_views. Empty reads reach.",+ "The time window each metric covers.": "The time window each metric covers.",+ "Posts to return per run, up to 100.": "Posts to return per run, up to 100.",+ "The Next Cursor from an earlier run, to get the next results.": "The Next Cursor from an earlier run, to get the next results.",+ "The id from List Media or a publish step.": "The id from List Media or a publish step.",+ "For example reach or saved. Empty uses defaults for the post type.": "For example reach or saved. Empty uses defaults for the post type.",+ "The id of a carousel post, from List Media.": "The id of a carousel post, from List Media.",+ "Deleted posts can't be restored.": "Deleted posts can't be restored.",+ "On lets people comment, off turns comments off.": "On lets people comment, off turns comments off.",+ "Comments to return per run, up to 100.": "Comments to return per run, up to 100.",+ "The id from List Comments or another comment step.": "The id from List Comments or another comment step.",+ "The comment whose replies to list, from List Comments.": "The comment whose replies to list, from List Comments.","On hides the comment, off makes it visible again.": "On hides the comment, off makes it visible again.",- "From List Conversations.": "From List Conversations.",- "The Instagram-scoped user id of the person to message.": "The Instagram-scoped user id of the person to message.",- "Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.": "Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.",- "The comment whose author should receive the direct message.": "The comment whose author should receive the direct message.",+ "Deleted comments can't be restored.": "Deleted comments can't be restored.",+ "Conversations to return per run, up to 100.": "Conversations to return per run, up to 100.",+ "The id from List Conversations.": "The id from List Conversations.",+ "Instagram only delivers to people who messaged you in the last 24 hours.": "Instagram only delivers to people who messaged you in the last 24 hours.",+ "Their Instagram-scoped id, from List Conversations or List Messages.": "Their Instagram-scoped id, from List Conversations or List Messages.",+ "Public link to the file, from a plain static host.": "Public link to the file, from a plain static host.",+ "You can send one private reply per comment, within 7 days of it.": "You can send one private reply per comment, within 7 days of it.",+ "The comment whose author gets the message.": "The comment whose author gets the message.","Day": "Day","Week": "Week","28 Days": "28 Days","Lifetime": "Lifetime","Image": "Image",+ "Video": "Video","Audio": "Audio"}\ No newline at end of filediff --git a/packages/pieces/community/instagram-business/src/i18n/zh.json b/packages/pieces/community/instagram-business/src/i18n/zh.jsonindex 23487110ac7..c7c260ca795 100644--- a/packages/pieces/community/instagram-business/src/i18n/zh.json+++ b/packages/pieces/community/instagram-business/src/i18n/zh.json@@ -57,28 +57,28 @@"Reply privately by direct message to someone who commented.": "Reply privately by direct message to someone who commented.","Page": "Page","Photo": "Photo",- "Caption": "Caption",- "Video": "Video",- "Photo URL": "Photo URL",- "Video URL": "Video URL",+ "Caption": "说明文字",+ "Video": "视频",+ "Photo URL": "照片 URL",+ "Video URL": "视频 URL","Items": "项目","Metrics": "指标",- "Period": "Period",+ "Period": "时间范围","Limit": "Limit",- "Cursor": "Cursor",- "Media ID": "Media ID",+ "Cursor": "游标",+ "Media ID": "媒体 ID","Carousel Media ID": "Carousel Media ID","Comments Enabled": "Comments Enabled",- "Comment ID": "Comment ID",+ "Comment ID": "评论 ID","Parent Comment ID": "Parent Comment ID","Comment": "Comment","Reply": "Reply","Hidden": "Hidden",- "Conversation ID": "Conversation ID",- "Recipient ID": "Recipient ID",+ "Conversation ID": "会话 ID",+ "Recipient ID": "收件人 ID","Message": "Message",- "Media Type": "Media Type",- "Media URL": "Media URL",+ "Media Type": "媒体类型",+ "Media URL": "媒体 URL","A URL we can access for the photo (JPG only)": "A URL we can access for the photo (JPG only)","A URL we can access for the video (Limit: 1GB or 15 minutes)": "A URL we can access for the video (Limit: 1GB or 15 minutes)","Public URL of a JPG image. Leave empty when publishing a video story.": "Public URL of a JPG image. Leave empty when publishing a video story.",@@ -91,15 +91,53 @@"Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).": "Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).","The id of a post whose media type is CAROUSEL_ALBUM.": "The id of a post whose media type is CAROUSEL_ALBUM.","Maximum number of comments to return (default 25).": "Maximum number of comments to return (default 25).",- "On hides the comment, off makes it visible again.": "On hides the comment, off makes it visible again.",+ "On hides the comment, off makes it visible again.": "开启隐藏评论,关闭则重新显示。","From List Conversations.": "From List Conversations.","The Instagram-scoped user id of the person to message.": "The Instagram-scoped user id of the person to message.","Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.": "Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.","The comment whose author should receive the direct message.": "The comment whose author should receive the direct message.",- "Day": "Day",- "Week": "Week",- "28 Days": "28 Days",- "Lifetime": "Lifetime",- "Image": "Image",- "Audio": "Audio"+ "Day": "天",+ "Week": "周",+ "28 Days": "28 天",+ "Lifetime": "全部时间",+ "Image": "图片",+ "Audio": "音频",+ "Reply to Comment": "回复评论",+ "Publish a JPG photo to your Instagram feed.": "将 JPG 照片发布到你的 Instagram 动态。",+ "Publish a video to your Instagram account as a reel.": "将视频作为 Reels 发布到你的 Instagram 账号。",+ "Publish a photo or video story that disappears after 24 hours.": "发布一条 24 小时后消失的照片或视频快拍。",+ "Read reach, likes and comments metrics for one post.": "读取单个帖子的覆盖人数、点赞和评论指标。",+ "Facebook Page": "Facebook 主页",+ "Markdown": "Markdown",+ "Max Results": "最大结果数",+ "Allow Comments": "允许评论",+ "Text": "文本",+ "Hide Comment": "隐藏评论",+ "Uses the Instagram account linked to this Page.": "使用与此主页关联的 Instagram 账号。",+ "Public link to a JPG image.": "JPG 图片的公开链接。",+ "Up to 2,200 characters, including hashtags and mentions.": "最多 2,200 个字符,包括话题标签和提及。",+ "Public link to the video, up to 1 GB and 15 minutes long.": "视频的公开链接,最大 1 GB、时长 15 分钟。",+ "Fill in Photo URL or Video URL, not both.": "填写照片 URL 或视频 URL,不要同时填写。",+ "Public link to the video.": "视频的公开链接。",+ "2 to 10 photos or videos, in the order they appear.": "2 到 10 张照片或视频,按显示顺序排列。",+ "For example reach or profile_views. Empty reads reach.": "例如 reach 或 profile_views。留空则读取 reach。",+ "The time window each metric covers.": "每项指标覆盖的时间范围。",+ "Posts to return per run, up to 100.": "每次运行返回的帖子数,最多 100。",+ "The Next Cursor from an earlier run, to get the next results.": "上一次运行的 Next Cursor,用于获取后续结果。",+ "The id from List Media or a publish step.": "来自 List Media 或发布步骤的 ID。",+ "For example reach or saved. Empty uses defaults for the post type.": "例如 reach 或 saved。留空则使用该帖子类型的默认值。",+ "The id of a carousel post, from List Media.": "轮播帖子的 ID,来自 List Media。",+ "Deleted posts can't be restored.": "已删除的帖子无法恢复。",+ "On lets people comment, off turns comments off.": "开启允许评论,关闭则关闭评论。",+ "Comments to return per run, up to 100.": "每次运行返回的评论数,最多 100。",+ "The id from List Comments or another comment step.": "来自 List Comments 或其他评论步骤的 ID。",+ "The comment whose replies to list, from List Comments.": "要列出其回复的评论,来自 List Comments。",+ "Deleted comments can't be restored.": "已删除的评论无法恢复。",+ "Conversations to return per run, up to 100.": "每次运行返回的会话数,最多 100。",+ "The id from List Conversations.": "来自 List Conversations 的 ID。",+ "Instagram only delivers to people who messaged you in the last 24 hours.": "Instagram 只会向过去 24 小时内给你发过消息的人投递。",+ "Their Instagram-scoped id, from List Conversations or List Messages.": "对方的 Instagram 范围 ID,来自 List Conversations 或 List Messages。",+ "Public link to the file, from a plain static host.": "文件的公开链接,请使用简单的静态托管。",+ "You can send one private reply per comment, within 7 days of it.": "每条评论只能发送一次私信回复,且须在 7 天内。",+ "The comment whose author gets the message.": "其作者将收到消息的评论。"}\ No newline at end of filediff --git a/packages/pieces/community/instagram-business/src/index.ts b/packages/pieces/community/instagram-business/src/index.tsindex 6ed54aea01d..0a208f9d54b 100644--- a/packages/pieces/community/instagram-business/src/index.ts+++ b/packages/pieces/community/instagram-business/src/index.ts@@ -32,7 +32,7 @@ import { instagramCommon } from './lib/common';export const instagramBusiness = createPiece({displayName: 'Instagram for Business',description: 'Grow your business on Instagram',- minimumSupportedRelease: '0.87.0',+ minimumSupportedRelease: '0.88.2',logoUrl: 'https://cdn.activepieces.com/pieces/instagram.png',categories: [PieceCategory.BUSINESS_INTELLIGENCE],authors: ["kishanprmr","MoShizzle","abuaboud"],diff --git a/packages/pieces/community/instagram-business/src/lib/actions/account/get-account-insights.ts b/packages/pieces/community/instagram-business/src/lib/actions/account/get-account-insights.tsindex 565fbc89a23..6ee36337044 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/account/get-account-insights.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/account/get-account-insights.ts@@ -17,15 +17,21 @@ export const getAccountInsights = createAction({'Reads account-level Instagram metrics such as reach, profile views and accounts engaged, over a chosen period. Metrics cover professional accounts only and lag real time by a few hours, so a very recent post may not be reflected yet. Read-only and idempotent.',idempotent: true,},+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'insights', display: 'section', label: 'Insights', icon: 'filter', props: ['period', 'metrics'] },+ ],props: {page: instagramCommon.page,metrics: Property.Array({displayName: 'Metrics',- description: 'Metric names, for example reach or profile_views. Defaults to reach.',+ description: 'For example reach or profile_views. Empty reads reach.',required: false,+ defaultValue: [],}),period: Property.StaticDropdown({displayName: 'Period',+ description: 'The time window each metric covers.',required: false,defaultValue: 'day',options: {diff --git a/packages/pieces/community/instagram-business/src/lib/actions/comments/create-comment.ts b/packages/pieces/community/instagram-business/src/lib/actions/comments/create-comment.tsindex 074e44c21ae..9c672e3ff09 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/comments/create-comment.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/comments/create-comment.ts@@ -14,13 +14,27 @@ export const createComment = createAction({audience: 'both',aiMetadata: {description:- 'Posts a new top-level comment on one of the connected account\u2019s own Instagram posts. To answer an existing comment use Reply To Comment instead, which threads the response. Not idempotent — each call posts another comment.',+ 'Posts a new top-level comment on one of the connected account\u2019s own Instagram posts. To answer an existing comment use Reply to Comment instead, which threads the response. Not idempotent — each call posts another comment.',idempotent: false,},+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'media', display: 'section', label: 'Post to comment on', icon: 'file', props: ['media_id'] },+ { key: 'comment', display: 'section', label: 'Comment', icon: 'text', props: ['message'] },+ ],props: {page: instagramCommon.page,- media_id: Property.ShortText({ displayName: 'Media ID', required: true }),- message: Property.LongText({ displayName: 'Comment', required: true }),+ media_id: Property.ShortText({+ displayName: 'Media ID',+ description: 'The id from List Media or a publish step.',+ required: true,+ placeholder: '17895695668004550',+ }),+ message: Property.LongText({+ displayName: 'Text',+ required: true,+ placeholder: 'Thanks for all the love on this one!',+ }),},async run({ propsValue }) {const page: FacebookPageDropdown = propsValue.page;diff --git a/packages/pieces/community/instagram-business/src/lib/actions/comments/delete-comment.ts b/packages/pieces/community/instagram-business/src/lib/actions/comments/delete-comment.tsindex 313038bc1fd..4ece966c8b1 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/comments/delete-comment.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/comments/delete-comment.ts@@ -1,5 +1,5 @@import { HttpMethod } from '@activepieces/pieces-common';-import { createAction, Property } from '@activepieces/pieces-framework';+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';import { identifierResultOutputSchema } from '../../output-schemas';import { instagramCommon, FacebookPageDropdown } from '../../common';@@ -14,12 +14,25 @@ export const deleteComment = createAction({audience: 'both',aiMetadata: {description:- 'Permanently deletes one Instagram comment by its id. This cannot be undone, and only comments on the connected account\u2019s own media can be deleted. To silence a comment reversibly, use Hide Comment instead. Not idempotent — deleting an already deleted comment fails.',+ 'Permanently deletes one Instagram comment by its id. This cannot be undone, and only comments on the connected account\u2019s own media can be deleted. To silence a comment reversibly, use Hide or Unhide Comment instead. Not idempotent — deleting an already deleted comment fails.',idempotent: false,},+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'comment', display: 'section', label: 'Comment to delete', icon: 'trash', props: ['comment_id', 'delete_info'] },+ ],props: {page: instagramCommon.page,- comment_id: Property.ShortText({ displayName: 'Comment ID', required: true }),+ comment_id: Property.ShortText({+ displayName: 'Comment ID',+ description: 'The id from List Comments or another comment step.',+ required: true,+ placeholder: '17858893269000001',+ }),+ delete_info: Property.MarkDown({+ value: "Deleted comments can't be restored.",+ variant: MarkdownVariant.INFO,+ }),},async run({ propsValue }) {const page: FacebookPageDropdown = propsValue.page;diff --git a/packages/pieces/community/instagram-business/src/lib/actions/comments/get-comment.ts b/packages/pieces/community/instagram-business/src/lib/actions/comments/get-comment.tsindex f6196ebf684..0883c218055 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/comments/get-comment.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/comments/get-comment.ts@@ -14,14 +14,20 @@ export const getComment = createAction({audience: 'both',aiMetadata: {description:- 'Reads one Instagram comment by its id, returning its text, author, timestamp, like count, hidden state and the media it belongs to. Use it after a New Comment trigger or List Comments. Read-only and idempotent.',+ 'Reads one Instagram comment by its id, returning its text, author, timestamp, like count, hidden state and the media it belongs to. Use it after List Comments or List Comment Replies. Read-only and idempotent.',idempotent: true,},+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'comment', display: 'section', label: 'Comment to read', icon: 'reply', props: ['comment_id'] },+ ],props: {page: instagramCommon.page,comment_id: Property.ShortText({displayName: 'Comment ID',+ description: 'The id from List Comments or another comment step.',required: true,+ placeholder: '17858893269000001',}),},async run({ propsValue }) {diff --git a/packages/pieces/community/instagram-business/src/lib/actions/comments/list-comment-replies.ts b/packages/pieces/community/instagram-business/src/lib/actions/comments/list-comment-replies.tsindex 16c82d3b31b..4f79c0a3a43 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/comments/list-comment-replies.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/comments/list-comment-replies.ts@@ -17,11 +17,17 @@ export const listCommentReplies = createAction({'Lists the replies made to one Instagram comment, given the parent comment id. A comment with no replies returns an empty list. Read-only and idempotent.',idempotent: true,},+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'comment', display: 'section', label: 'Parent comment', icon: 'reply', props: ['comment_id'] },+ ],props: {page: instagramCommon.page,comment_id: Property.ShortText({- displayName: 'Parent Comment ID',+ displayName: 'Comment ID',+ description: 'The comment whose replies to list, from List Comments.',required: true,+ placeholder: '17858893269000001',}),},async run({ propsValue }) {diff --git a/packages/pieces/community/instagram-business/src/lib/actions/comments/list-media-comments.ts b/packages/pieces/community/instagram-business/src/lib/actions/comments/list-media-comments.tsindex be25de568d7..18a55b38ba8 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/comments/list-media-comments.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/comments/list-media-comments.ts@@ -17,16 +17,24 @@ export const listMediaComments = createAction({'Lists the top-level comments on one Instagram post, with author, text, timestamp, like count and whether the comment is hidden. Replies are not included — use List Comment Replies for those. Read-only and idempotent.',idempotent: true,},+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'media', display: 'section', label: 'Post', icon: 'file', props: ['media_id'] },+ { key: 'results', display: 'section', label: 'Results', icon: 'sliders', props: ['limit'] },+ ],props: {page: instagramCommon.page,media_id: Property.ShortText({displayName: 'Media ID',+ description: 'The id from List Media or a publish step.',required: true,+ placeholder: '17895695668004550',}),limit: Property.Number({- displayName: 'Limit',- description: 'Maximum number of comments to return (default 25).',+ displayName: 'Max Results',+ description: 'Comments to return per run, up to 100.',required: false,+ defaultValue: 25,}),cursor: instagramCommon.cursor,},diff --git a/packages/pieces/community/instagram-business/src/lib/actions/comments/reply-to-comment.ts b/packages/pieces/community/instagram-business/src/lib/actions/comments/reply-to-comment.tsindex a29f129f0b4..e95a3bf6924 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/comments/reply-to-comment.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/comments/reply-to-comment.ts@@ -9,7 +9,7 @@ export const replyToComment = createAction({outputSchema: commentCreatedOutputSchema,name: 'reply_to_comment',classification: 'WRITE',- displayName: 'Reply To Comment',+ displayName: 'Reply to Comment',description: 'Reply to a comment on one of your Instagram posts.',audience: 'both',aiMetadata: {@@ -17,10 +17,24 @@ export const replyToComment = createAction({'Replies to an existing Instagram comment, threading the response underneath it. Instagram supports only one level of threading, so replying to a reply attaches the response to the same parent. Not idempotent — each call posts another reply.',idempotent: false,},+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'comment', display: 'section', label: 'Comment to reply to', icon: 'reply', props: ['comment_id'] },+ { key: 'reply', display: 'section', label: 'Reply', icon: 'text', props: ['message'] },+ ],props: {page: instagramCommon.page,- comment_id: Property.ShortText({ displayName: 'Comment ID', required: true }),- message: Property.LongText({ displayName: 'Reply', required: true }),+ comment_id: Property.ShortText({+ displayName: 'Comment ID',+ description: 'The id from List Comments or another comment step.',+ required: true,+ placeholder: '17858893269000001',+ }),+ message: Property.LongText({+ displayName: 'Text',+ required: true,+ placeholder: 'Thanks, glad you like it!',+ }),},async run({ propsValue }) {const page: FacebookPageDropdown = propsValue.page;diff --git a/packages/pieces/community/instagram-business/src/lib/actions/comments/set-comment-visibility.ts b/packages/pieces/community/instagram-business/src/lib/actions/comments/set-comment-visibility.tsindex c0ce820084d..e0fd553012d 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/comments/set-comment-visibility.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/comments/set-comment-visibility.ts@@ -14,16 +14,25 @@ export const setCommentVisibility = createAction({audience: 'both',aiMetadata: {description:- 'Hides an Instagram comment from everyone except its author, or unhides a previously hidden one, controlled by the Hidden toggle. Unlike Delete Comment this is reversible and the comment is not destroyed. Idempotent — setting the same state twice leaves the comment unchanged.',+ 'Hides an Instagram comment from everyone except its author, or unhides a previously hidden one, controlled by the Hide Comment toggle. Unlike Delete Comment this is reversible and the comment is not destroyed. Idempotent — setting the same state twice leaves the comment unchanged.',idempotent: true,},+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'comment', display: 'section', label: 'Comment', icon: 'reply', props: ['comment_id', 'hidden'] },+ ],props: {page: instagramCommon.page,- comment_id: Property.ShortText({ displayName: 'Comment ID', required: true }),+ comment_id: Property.ShortText({+ displayName: 'Comment ID',+ description: 'The id from List Comments or another comment step.',+ required: true,+ placeholder: '17858893269000001',+ }),hidden: Property.Checkbox({- displayName: 'Hidden',+ displayName: 'Hide Comment',description: 'On hides the comment, off makes it visible again.',- required: true,+ required: false,defaultValue: true,}),},@@ -34,7 +43,7 @@ export const setCommentVisibility = createAction({method: HttpMethod.POST,resourceUri: `/${propsValue.comment_id}`,accessToken: page.accessToken,- body: { hide: propsValue.hidden },+ body: { hide: propsValue.hidden ?? true },});return { success: result.success ?? true, id: propsValue.comment_id };diff --git a/packages/pieces/community/instagram-business/src/lib/actions/media/delete-media.ts b/packages/pieces/community/instagram-business/src/lib/actions/media/delete-media.tsindex aaddfb33794..34ac2e53cf4 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/media/delete-media.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/media/delete-media.ts@@ -1,5 +1,5 @@import { HttpMethod } from '@activepieces/pieces-common';-import { createAction, Property } from '@activepieces/pieces-framework';+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';import { identifierResultOutputSchema } from '../../output-schemas';import { instagramCommon, FacebookPageDropdown } from '../../common';@@ -17,9 +17,34 @@ export const deleteMedia = createAction({'Permanently deletes one Instagram post, story, reel or whole carousel album belonging to the connected account. Individual items inside a carousel cannot be deleted, only the album as a whole, and the deletion cannot be undone. Not idempotent, since deleting an already deleted post fails.',idempotent: false,},+ propertyGroups: [+ {+ key: 'account',+ display: 'section',+ label: 'Account',+ icon: 'user',+ props: ['page'],+ },+ {+ key: 'media',+ display: 'section',+ label: 'Post to delete',+ icon: 'trash',+ props: ['media_id', 'delete_info'],+ },+ ],props: {page: instagramCommon.page,- media_id: Property.ShortText({ displayName: 'Media ID', required: true }),+ media_id: Property.ShortText({+ displayName: 'Media ID',+ description: 'The id from List Media or a publish step.',+ placeholder: '17895695668004550',+ required: true,+ }),+ delete_info: Property.MarkDown({+ value: "Deleted posts can't be restored.",+ variant: MarkdownVariant.INFO,+ }),},async run({ propsValue }) {const page: FacebookPageDropdown = propsValue.page;diff --git a/packages/pieces/community/instagram-business/src/lib/actions/media/get-media-insights.ts b/packages/pieces/community/instagram-business/src/lib/actions/media/get-media-insights.tsindex 2302f3b8056..cfab5b2bd0b 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/media/get-media-insights.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/media/get-media-insights.ts@@ -10,20 +10,42 @@ export const getMediaInsights = createAction({name: 'get_media_insights',classification: 'READ',displayName: 'Get Media Insights',- description: 'Read reach, likes and comment metrics for one post.',+ description: 'Read reach, likes and comments metrics for one post.',audience: 'both',aiMetadata: {description:'Reads per-post Instagram metrics such as reach, likes, comments, saves and shares for one media id. Available metrics differ by media type, since reels and stories expose different ones from feed images, and an unsupported metric returns an error naming it. Read-only and idempotent.',idempotent: true,},+ propertyGroups: [+ {+ key: 'account',+ display: 'section',+ label: 'Account',+ icon: 'user',+ props: ['page'],+ },+ {+ key: 'media',+ display: 'section',+ label: 'Post',+ icon: 'file',+ props: ['media_id', 'metrics'],+ },+ ],props: {page: instagramCommon.page,- media_id: Property.ShortText({ displayName: 'Media ID', required: true }),+ media_id: Property.ShortText({+ displayName: 'Media ID',+ description: 'The id from List Media or a publish step.',+ placeholder: '17895695668004550',+ required: true,+ }),metrics: Property.Array({displayName: 'Metrics',- description: 'Metric names. Defaults to reach, likes and comments (reach, replies and shares for stories).',+ description: 'For example reach or saved. Empty uses defaults for the post type.',required: false,+ defaultValue: [],}),},async run({ propsValue }) {diff --git a/packages/pieces/community/instagram-business/src/lib/actions/media/get-media.ts b/packages/pieces/community/instagram-business/src/lib/actions/media/get-media.tsindex 44be2724489..fdeb64a13ce 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/media/get-media.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/media/get-media.ts@@ -17,11 +17,28 @@ export const getMedia = createAction({'Reads one Instagram post, reel or album by its media id, returning caption, permalink, media type, media URL, timestamp and engagement counts. Use it after List Media, or when a trigger or earlier step supplied a media id. Read-only and idempotent.',idempotent: true,},+ propertyGroups: [+ {+ key: 'account',+ display: 'section',+ label: 'Account',+ icon: 'user',+ props: ['page'],+ },+ {+ key: 'media',+ display: 'section',+ label: 'Post to read',+ icon: 'file',+ props: ['media_id'],+ },+ ],props: {page: instagramCommon.page,media_id: Property.ShortText({displayName: 'Media ID',- description: 'The id of the post, as returned by List Media or a publish action.',+ description: 'The id from List Media or a publish step.',+ placeholder: '17895695668004550',required: true,}),},diff --git a/packages/pieces/community/instagram-business/src/lib/actions/media/list-carousel-children.ts b/packages/pieces/community/instagram-business/src/lib/actions/media/list-carousel-children.tsindex 9d2087bd31f..df8a501dee3 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/media/list-carousel-children.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/media/list-carousel-children.ts@@ -17,11 +17,28 @@ export const listCarouselChildren = createAction({'Lists the individual photos and videos inside one Instagram carousel album, given the album media id. Only works on media whose media_type is CAROUSEL_ALBUM; other posts return an empty list. Read-only and idempotent.',idempotent: true,},+ propertyGroups: [+ {+ key: 'account',+ display: 'section',+ label: 'Account',+ icon: 'user',+ props: ['page'],+ },+ {+ key: 'media',+ display: 'section',+ label: 'Carousel',+ icon: 'file',+ props: ['media_id'],+ },+ ],props: {page: instagramCommon.page,media_id: Property.ShortText({- displayName: 'Carousel Media ID',- description: 'The id of a post whose media type is CAROUSEL_ALBUM.',+ displayName: 'Media ID',+ description: 'The id of a carousel post, from List Media.',+ placeholder: '17895695668004550',required: true,}),},diff --git a/packages/pieces/community/instagram-business/src/lib/actions/media/list-media.ts b/packages/pieces/community/instagram-business/src/lib/actions/media/list-media.tsindex 8530c67be10..8ff0d23c6be 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/media/list-media.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/media/list-media.ts@@ -17,12 +17,29 @@ export const listMedia = createAction({'Lists the media (posts, reels and albums) published by the connected Instagram professional account, newest first, with caption, permalink, media type and engagement counts. Use it to find a recent post or its id before reading or commenting on it. Stories are not included — use List Stories for those. Read-only and idempotent.',idempotent: true,},+ propertyGroups: [+ {+ key: 'account',+ display: 'section',+ label: 'Account',+ icon: 'user',+ props: ['page'],+ },+ {+ key: 'results',+ display: 'section',+ label: 'Results',+ icon: 'sliders',+ props: ['limit'],+ },+ ],props: {page: instagramCommon.page,limit: Property.Number({- displayName: 'Limit',- description: 'Maximum number of posts to return (default 25).',+ displayName: 'Max Results',+ description: 'Posts to return per run, up to 100.',required: false,+ defaultValue: 25,}),cursor: instagramCommon.cursor,},diff --git a/packages/pieces/community/instagram-business/src/lib/actions/media/list-tagged-media.ts b/packages/pieces/community/instagram-business/src/lib/actions/media/list-tagged-media.tsindex f5654ec3b8c..7c7ef8acd69 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/media/list-tagged-media.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/media/list-tagged-media.ts@@ -17,9 +17,30 @@ export const listTaggedMedia = createAction({'Lists posts published by other Instagram accounts in which the connected account was tagged. These belong to other people, so they cannot be edited or deleted, and the list is useful for monitoring brand mentions. Read-only and idempotent.',idempotent: true,},+ propertyGroups: [+ {+ key: 'account',+ display: 'section',+ label: 'Account',+ icon: 'user',+ props: ['page'],+ },+ {+ key: 'results',+ display: 'section',+ label: 'Results',+ icon: 'sliders',+ props: ['limit'],+ },+ ],props: {page: instagramCommon.page,- limit: Property.Number({ displayName: 'Limit', required: false }),+ limit: Property.Number({+ displayName: 'Max Results',+ description: 'Posts to return per run, up to 100.',+ required: false,+ defaultValue: 25,+ }),cursor: instagramCommon.cursor,},async run({ propsValue }) {diff --git a/packages/pieces/community/instagram-business/src/lib/actions/media/set-media-comments-enabled.ts b/packages/pieces/community/instagram-business/src/lib/actions/media/set-media-comments-enabled.tsindex ca8e681a104..9922a92c165 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/media/set-media-comments-enabled.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/media/set-media-comments-enabled.ts@@ -17,12 +17,34 @@ export const setMediaCommentsEnabled = createAction({'Turns commenting on or off for one Instagram post belonging to the connected account. Disabling hides the existing comments from public view and blocks new ones, and re-enabling restores them. Idempotent, since setting the same state twice leaves the post unchanged.',idempotent: true,},+ propertyGroups: [+ {+ key: 'account',+ display: 'section',+ label: 'Account',+ icon: 'user',+ props: ['page'],+ },+ {+ key: 'media',+ display: 'section',+ label: 'Post',+ icon: 'file',+ props: ['media_id', 'enabled'],+ },+ ],props: {page: instagramCommon.page,- media_id: Property.ShortText({ displayName: 'Media ID', required: true }),- enabled: Property.Checkbox({- displayName: 'Comments Enabled',+ media_id: Property.ShortText({+ displayName: 'Media ID',+ description: 'The id from List Media or a publish step.',+ placeholder: '17895695668004550',required: true,+ }),+ enabled: Property.Checkbox({+ displayName: 'Allow Comments',+ description: 'On lets people comment, off turns comments off.',+ required: false,defaultValue: true,}),},@@ -33,7 +55,7 @@ export const setMediaCommentsEnabled = createAction({method: HttpMethod.POST,resourceUri: `/${propsValue.media_id}`,accessToken: page.accessToken,- body: { comment_enabled: propsValue.enabled },+ body: { comment_enabled: propsValue.enabled ?? true },});return { success: result.success ?? true, id: propsValue.media_id };diff --git a/packages/pieces/community/instagram-business/src/lib/actions/messaging/list-conversations.ts b/packages/pieces/community/instagram-business/src/lib/actions/messaging/list-conversations.tsindex cb890769f0c..f0cf1c14a2e 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/messaging/list-conversations.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/messaging/list-conversations.ts@@ -17,9 +17,18 @@ export const listConversations = createAction({'Lists the Instagram direct message threads belonging to the connected professional account, newest activity first, with the participants and the time of the last message. Use it to find a conversation id before reading or replying to a thread. Read-only and idempotent.',idempotent: true,},+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'results', display: 'section', label: 'Results', icon: 'sliders', props: ['limit'] },+ ],props: {page: instagramCommon.page,- limit: Property.Number({ displayName: 'Limit', required: false }),+ limit: Property.Number({+ displayName: 'Max Results',+ description: 'Conversations to return per run, up to 100.',+ required: false,+ defaultValue: 25,+ }),cursor: instagramCommon.cursor,},async run({ propsValue }) {diff --git a/packages/pieces/community/instagram-business/src/lib/actions/messaging/list-messages.ts b/packages/pieces/community/instagram-business/src/lib/actions/messaging/list-messages.tsindex a977e28bdb3..1a738de0e58 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/messaging/list-messages.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/messaging/list-messages.ts@@ -17,11 +17,15 @@ export const listMessages = createAction({'Reads the messages inside one Instagram direct message thread, given a conversation id from List Conversations, with sender, recipient, text and timestamp for each. Instagram returns only the most recent messages of a thread rather than its full history. Read-only and idempotent.',idempotent: true,},+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'conversation', display: 'section', label: 'Thread', icon: 'inbox', props: ['conversation_id'] },+ ],props: {page: instagramCommon.page,conversation_id: Property.ShortText({displayName: 'Conversation ID',- description: 'From List Conversations.',+ description: 'The id from List Conversations.',required: true,}),},diff --git a/packages/pieces/community/instagram-business/src/lib/actions/messaging/send-media-message.ts b/packages/pieces/community/instagram-business/src/lib/actions/messaging/send-media-message.tsindex 877766cb401..a39abf7a79e 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/messaging/send-media-message.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/messaging/send-media-message.ts@@ -1,5 +1,5 @@import { HttpMethod } from '@activepieces/pieces-common';-import { createAction, Property } from '@activepieces/pieces-framework';+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';import { sendMessageOutputSchema } from '../../output-schemas';import { instagramCommon, FacebookPageDropdown } from '../../common';@@ -17,15 +17,26 @@ export const sendMediaMessage = createAction({'Sends an image, video or audio file as an Instagram direct message, given a publicly reachable URL and the recipient Instagram-scoped user id. The same 24 hour reply window applies as for a text message. Not idempotent, since each call sends another message.',idempotent: false,},+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'recipient', display: 'section', label: 'Send to', icon: 'send', props: ['window_info', 'recipient_id'] },+ { key: 'file', display: 'section', label: 'Attachment', icon: 'paperclip', props: ['media_type', 'url'] },+ ],props: {page: instagramCommon.page,+ window_info: Property.MarkDown({+ value: 'Instagram only delivers to people who messaged you in the last 24 hours.',+ variant: MarkdownVariant.INFO,+ }),recipient_id: Property.ShortText({displayName: 'Recipient ID',+ description: 'Their Instagram-scoped id, from List Conversations or List Messages.',required: true,}),media_type: Property.StaticDropdown({displayName: 'Media Type',required: true,+ display: 'cards',defaultValue: 'image',options: {options: [@@ -37,7 +48,8 @@ export const sendMediaMessage = createAction({}),url: Property.ShortText({displayName: 'Media URL',- description: 'Publicly reachable URL of the file. Instagram fetches it server side and rejects some hosts with an upload error, so prefer a plain static file URL.',+ description: 'Public link to the file, from a plain static host.',+ placeholder: 'https://example.com/photo.jpg',required: true,}),},diff --git a/packages/pieces/community/instagram-business/src/lib/actions/messaging/send-message.ts b/packages/pieces/community/instagram-business/src/lib/actions/messaging/send-message.tsindex a79eba461b4..e38e3314b93 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/messaging/send-message.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/messaging/send-message.ts@@ -1,5 +1,5 @@import { HttpMethod } from '@activepieces/pieces-common';-import { createAction, Property } from '@activepieces/pieces-framework';+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';import { sendMessageOutputSchema } from '../../output-schemas';import { instagramCommon, FacebookPageDropdown } from '../../common';@@ -14,17 +14,30 @@ export const sendMessage = createAction({audience: 'both',aiMetadata: {description:- 'Sends a text direct message to one Instagram user, addressed by their Instagram-scoped user id as supplied by a New Message trigger or List Conversations. Instagram only allows a reply within 24 hours of that user last messaging the account, so an older thread is rejected. Not idempotent, since each call sends another message.',+ 'Sends a text direct message to one Instagram user, addressed by their Instagram-scoped user id as supplied by List Conversations or List Messages. Instagram only allows a reply within 24 hours of that user last messaging the account, so an older thread is rejected. Not idempotent, since each call sends another message.',idempotent: false,},+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'recipient', display: 'section', label: 'Send to', icon: 'send', props: ['window_info', 'recipient_id'] },+ { key: 'message', display: 'section', label: 'Message', icon: 'text', props: ['text'] },+ ],props: {page: instagramCommon.page,+ window_info: Property.MarkDown({+ value: 'Instagram only delivers to people who messaged you in the last 24 hours.',+ variant: MarkdownVariant.INFO,+ }),recipient_id: Property.ShortText({displayName: 'Recipient ID',- description: 'The Instagram-scoped user id of the person to message.',+ description: 'Their Instagram-scoped id, from List Conversations or List Messages.',+ required: true,+ }),+ text: Property.LongText({+ displayName: 'Text',+ placeholder: 'Thanks for reaching out! How can we help?',required: true,}),- text: Property.LongText({ displayName: 'Message', required: true }),},async run({ propsValue }) {const page: FacebookPageDropdown = propsValue.page;diff --git a/packages/pieces/community/instagram-business/src/lib/actions/messaging/send-private-reply.ts b/packages/pieces/community/instagram-business/src/lib/actions/messaging/send-private-reply.tsindex 0a9641ac79b..39c4c918471 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/messaging/send-private-reply.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/messaging/send-private-reply.ts@@ -1,5 +1,5 @@import { HttpMethod } from '@activepieces/pieces-common';-import { createAction, Property } from '@activepieces/pieces-framework';+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';import { sendMessageOutputSchema } from '../../output-schemas';import { instagramCommon, FacebookPageDropdown } from '../../common';@@ -17,14 +17,28 @@ export const sendPrivateReply = createAction({'Sends a direct message to the author of a comment, given the comment id rather than a user id, which is how Instagram supports the comment-to-DM pattern. Allowed once per comment and only within 7 days of it, and unlike Send Message it does not need an existing conversation. Not idempotent, and a second private reply to the same comment is rejected.',idempotent: false,},+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'comment', display: 'section', label: 'Reply to', icon: 'reply', props: ['reply_info', 'comment_id'] },+ { key: 'message', display: 'section', label: 'Message', icon: 'text', props: ['text'] },+ ],props: {page: instagramCommon.page,+ reply_info: Property.MarkDown({+ value: 'You can send one private reply per comment, within 7 days of it.',+ variant: MarkdownVariant.INFO,+ }),comment_id: Property.ShortText({displayName: 'Comment ID',- description: 'The comment whose author should receive the direct message.',+ description: 'The comment whose author gets the message.',+ placeholder: '17858893269000001',+ required: true,+ }),+ text: Property.LongText({+ displayName: 'Text',+ placeholder: 'Thanks for your comment! Here are the details.',required: true,}),- text: Property.LongText({ displayName: 'Message', required: true }),},async run({ propsValue }) {const page: FacebookPageDropdown = propsValue.page;diff --git a/packages/pieces/community/instagram-business/src/lib/actions/publishing/publish-carousel.ts b/packages/pieces/community/instagram-business/src/lib/actions/publishing/publish-carousel.tsindex 2b2dabb0532..8bb6d1946e7 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/publishing/publish-carousel.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/publishing/publish-carousel.ts@@ -22,21 +22,26 @@ export const publishCarousel = createAction({'Publishes a single Instagram carousel album containing between 2 and 10 photos or videos, given their public URLs, with an optional caption. Every item is uploaded first and processed in parallel, with up to five minutes for the items and two more for the album. A carousel counts as one post against the 100-per-24-hours publishing quota. Not idempotent — each call publishes a new album.',idempotent: false,},+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'post', display: 'section', label: 'Post', icon: 'file', props: ['items', 'caption'] },+ ],props: {page: instagramCommon.page,items: Property.Array({displayName: 'Items',- description: 'Between 2 and 10 photos or videos, in the order they should appear.',+ description: '2 to 10 photos or videos, in the order they appear.',required: true,properties: {url: Property.ShortText({displayName: 'Media URL',- description: 'Public URL of the photo (JPG) or video.',+ description: 'Public link to a JPG photo or a video.',+ placeholder: 'https://example.com/photo.jpg',required: true,}),is_video: Property.Checkbox({displayName: 'Is Video',- description: 'Turn on when this item is a video rather than a photo.',+ description: 'Turn on for a video, leave off for a photo.',required: false,defaultValue: false,}),diff --git a/packages/pieces/community/instagram-business/src/lib/actions/publishing/publish-story.ts b/packages/pieces/community/instagram-business/src/lib/actions/publishing/publish-story.tsindex 76594700467..3ddc3be6838 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/publishing/publish-story.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/publishing/publish-story.ts@@ -1,4 +1,8 @@-import { createAction, Property } from '@activepieces/pieces-framework';+import {+ createAction,+ MarkdownVariant,+ Property,+} from '@activepieces/pieces-framework';import { publishedMediaOutputSchema } from '../../output-schemas';import { instagramCommon, FacebookPageDropdown } from '../../common';@@ -9,23 +13,33 @@ export const publishStory = createAction({name: 'publish_story',classification: 'WRITE',displayName: 'Publish Story',- description: 'Publish a photo or video story to an Instagram professional account.',+ description: 'Publish a photo or video story that disappears after 24 hours.',audience: 'both',aiMetadata: {description:- 'Publishes one photo or video as an Instagram story, which expires after 24 hours. Supply exactly one of Photo URL or Video URL, and the media must be reachable at a public URL. Use Publish Photo or Publish Reel instead for permanent feed posts. Not idempotent — each call publishes a new story.',+ 'Publishes one photo or video as an Instagram story, which expires after 24 hours. Supply exactly one of Photo URL or Video URL, and the media must be reachable at a public URL. Use Upload Photo or Upload Reel instead for permanent feed posts. Not idempotent — each call publishes a new story.',idempotent: false,},+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'story', display: 'section', label: 'Story', icon: 'file', props: ['story_info', 'photo', 'video'] },+ ],props: {page: instagramCommon.page,+ story_info: Property.MarkDown({+ value: 'Fill in Photo URL or Video URL, not both.',+ variant: MarkdownVariant.INFO,+ }),photo: Property.ShortText({displayName: 'Photo URL',- description: 'Public URL of a JPG image. Leave empty when publishing a video story.',+ description: 'Public link to a JPG image.',+ placeholder: 'https://example.com/photo.jpg',required: false,}),video: Property.ShortText({displayName: 'Video URL',- description: 'Public URL of a video. Leave empty when publishing a photo story.',+ description: 'Public link to the video.',+ placeholder: 'https://example.com/story.mp4',required: false,}),},diff --git a/packages/pieces/community/instagram-business/src/lib/actions/publishing/upload-photo.ts b/packages/pieces/community/instagram-business/src/lib/actions/publishing/upload-photo.tsindex 98188bad3cb..2aaf5c256f4 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/publishing/upload-photo.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/publishing/upload-photo.ts@@ -9,9 +9,13 @@ export const uploadPhoto = createAction({name: 'upload_photo',classification: 'WRITE',displayName: 'Upload Photo',- description: 'Upload a photo to an Instagram Professional Account',+ description: 'Publish a JPG photo to your Instagram feed.',audience: 'both',aiMetadata: { description: 'Publishes a single photo post to an Instagram Professional (Business/Creator) account linked to a selected Facebook Page, with an optional caption. Use to post a new image to Instagram; the photo must be supplied as a publicly accessible JPG URL. Not idempotent — each call creates and publishes a new post.', idempotent: false },+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'post', display: 'section', label: 'Post', icon: 'file', props: ['photo', 'caption'] },+ ],props: {page: instagramCommon.page,photo: instagramCommon.photo,diff --git a/packages/pieces/community/instagram-business/src/lib/actions/publishing/upload-reel.ts b/packages/pieces/community/instagram-business/src/lib/actions/publishing/upload-reel.tsindex 4b96bd49ae7..516f821f878 100644--- a/packages/pieces/community/instagram-business/src/lib/actions/publishing/upload-reel.ts+++ b/packages/pieces/community/instagram-business/src/lib/actions/publishing/upload-reel.ts@@ -9,9 +9,13 @@ export const uploadReel = createAction({name: 'upload_reel',classification: 'WRITE',displayName: 'Upload Reel',- description: 'Upload a reel to an Instagram Professional Account',+ description: 'Publish a video to your Instagram account as a reel.',audience: 'both',aiMetadata: { description: 'Publishes a video reel to an Instagram Professional (Business/Creator) account linked to a selected Facebook Page, with an optional caption; it waits for the video to finish processing before publishing. Use to post a new reel to Instagram; the video must be a publicly accessible URL (max 1GB or 15 minutes). Not idempotent — each call creates and publishes a new post.', idempotent: false },+ propertyGroups: [+ { key: 'account', display: 'section', label: 'Account', icon: 'user', props: ['page'] },+ { key: 'reel', display: 'section', label: 'Reel', icon: 'file', props: ['video', 'caption'] },+ ],props: {page: instagramCommon.page,video: instagramCommon.video,diff --git a/packages/pieces/community/instagram-business/src/lib/common/index.ts b/packages/pieces/community/instagram-business/src/lib/common/index.tsindex 22204c181cd..cd90a51e1e5 100644--- a/packages/pieces/community/instagram-business/src/lib/common/index.ts+++ b/packages/pieces/community/instagram-business/src/lib/common/index.ts@@ -87,14 +87,34 @@ async function graphRequest<T>({}async function getPages(accessToken: string): Promise<FacebookPage[]> {- const response = await graphRequest<{ data?: FacebookPage[] }>({+ return getPagesFrom({ accessToken, after: undefined });+}++async function getPagesFrom({+ accessToken,+ after,+}: GetPagesFromParams): Promise<FacebookPage[]> {+ const response = await graphRequest<{+ data?: FacebookPage[];+ paging?: GraphPaging;+ }>({method: HttpMethod.GET,resourceUri: '/me/accounts',accessToken,- query: { fields: 'id,name,access_token,instagram_business_account' },+ query: {+ fields: 'id,name,access_token,instagram_business_account{id,username}',+ limit: 100,+ after,+ },});- return response.data ?? [];+ const pages = response.data ?? [];+ const nextAfter = nextCursor(response.paging);+ if (!nextAfter || nextAfter === after) {+ return pages;+ }++ return [...pages, ...(await getPagesFrom({ accessToken, after: nextAfter }))];}async function createContainer({@@ -234,7 +254,8 @@ export const instagramCommon = {page: Property.Dropdown<FacebookPageDropdown, true, typeof instagramBusinessAuth>({auth: instagramBusinessAuth,- displayName: 'Page',+ displayName: 'Facebook Page',+ description: 'Uses the Instagram account linked to this Page.',required: true,refreshers: [],options: async ({ auth }) => {@@ -242,7 +263,7 @@ export const instagramCommon = {return {disabled: true,options: [],- placeholder: 'Connect your account',+ placeholder: 'Connect your account first',};}@@ -251,7 +272,9 @@ export const instagramCommon = {const options = pages.filter((page) => page.instagram_business_account !== undefined).map((page) => ({- label: page.name,+ label: page.instagram_business_account.username+ ? `${page.name} (@${page.instagram_business_account.username})`+ : page.name,value: {id: page.instagram_business_account.id,pageId: page.id,@@ -263,38 +286,42 @@ export const instagramCommon = {return {disabled: true,options: [],- placeholder:- 'No Facebook Page with a linked Instagram professional account was found',+ placeholder: 'No Page with a linked Instagram account',};}return {options,- placeholder: 'Choose a page',+ placeholder: 'Select a Facebook Page',};},}),caption: Property.LongText({displayName: 'Caption',+ description: 'Up to 2,200 characters, including hashtags and mentions.',+ placeholder: 'Summer collection is live! #newarrivals',required: false,}),cursor: Property.ShortText({displayName: 'Cursor',- description: 'Next Cursor from a previous run, to fetch the following page.',+ description: 'The Next Cursor from an earlier run, to get the next results.',required: false,+ advanced: true,}),photo: Property.ShortText({- displayName: 'Photo',- description: 'A URL we can access for the photo (JPG only)',+ displayName: 'Photo URL',+ description: 'Public link to a JPG image.',+ placeholder: 'https://example.com/photo.jpg',required: true,}),video: Property.ShortText({- displayName: 'Video',- description: 'A URL we can access for the video (Limit: 1GB or 15 minutes)',+ displayName: 'Video URL',+ description: 'Public link to the video, up to 1 GB and 15 minutes long.',+ placeholder: 'https://example.com/reel.mp4',required: true,}),};@@ -338,6 +365,7 @@ export type FacebookPage = {access_token: string;instagram_business_account: {id: string;+ username?: string;};};@@ -359,6 +387,11 @@ type GraphRequestParams = {body?: unknown;};+type GetPagesFromParams = {+ accessToken: string;+ after: string | undefined;+};+type PublishMediaParams = {page: FacebookPageDropdown;body: Record<string, unknown>;diff --git a/packages/pieces/community/instagram-business/test/get-pages.test.ts b/packages/pieces/community/instagram-business/test/get-pages.test.tsnew file mode 100644index 00000000000..9dc0e13f0c4--- /dev/null+++ b/packages/pieces/community/instagram-business/test/get-pages.test.ts@@ -0,0 +1,105 @@+import { afterEach, describe, expect, test, vi } from 'vitest';+import { instagramCommon } from '../src/lib/common';++function stubPages(respond: (after: string | null) => FakeBody): URL[] {+ const seen: URL[] = [];+ vi.stubGlobal(+ 'fetch',+ vi.fn(async (input: string | URL | Request) => {+ const url = new URL(input instanceof Request ? input.url : String(input));+ seen.push(url);+ return new Response(JSON.stringify(respond(url.searchParams.get('after'))), {+ status: 200,+ headers: { 'content-type': 'application/json' },+ });+ })+ );+ return seen;+}++function page(id: string): FakePage {+ return {+ id,+ name: `Page ${id}`,+ access_token: `token-${id}`,+ instagram_business_account: { id: `ig-${id}`, username: `user${id}` },+ };+}++afterEach(() => {+ vi.unstubAllGlobals();+});++describe('instagram-business getPages', () => {+ test('requests /me/accounts with the username field and a page size of 100', async () => {+ const seen = stubPages(() => ({ data: [page('1')] }));+ await instagramCommon.getPages('TKN');+ expect(seen).toHaveLength(1);+ expect(`${seen[0].origin}${seen[0].pathname}`).toBe(+ 'https://graph.facebook.com/v23.0/me/accounts'+ );+ expect(seen[0].searchParams.get('fields')).toBe(+ 'id,name,access_token,instagram_business_account{id,username}'+ );+ expect(seen[0].searchParams.get('limit')).toBe('100');+ expect(seen[0].searchParams.has('after')).toBe(false);+ });++ test('follows the after cursor and combines every page in order', async () => {+ const seen = stubPages((after) => {+ if (after === null) {+ return {+ data: [page('1'), page('2')],+ paging: { cursors: { after: 'A' }, next: 'https://graph.facebook.com/next-a' },+ };+ }+ if (after === 'A') {+ return {+ data: [page('3')],+ paging: { cursors: { after: 'B' }, next: 'https://graph.facebook.com/next-b' },+ };+ }+ return { data: [page('4')], paging: { cursors: { after: 'C' } } };+ });+ const pages = await instagramCommon.getPages('TKN');+ expect(pages.map((p) => p.id)).toEqual(['1', '2', '3', '4']);+ expect(seen.map((u) => u.searchParams.get('after'))).toEqual([null, 'A', 'B']);+ });++ test('stops on the last page when paging.next is missing', async () => {+ const seen = stubPages(() => ({+ data: [page('1')],+ paging: { cursors: { after: 'A' } },+ }));+ const pages = await instagramCommon.getPages('TKN');+ expect(pages.map((p) => p.id)).toEqual(['1']);+ expect(seen).toHaveLength(1);+ });++ test('stops when Graph repeats the cursor it was given', async () => {+ const seen = stubPages(() => ({+ data: [page('1')],+ paging: { cursors: { after: 'A' }, next: 'https://graph.facebook.com/next-a' },+ }));+ const pages = await instagramCommon.getPages('TKN');+ expect(pages.map((p) => p.id)).toEqual(['1', '1']);+ expect(seen.map((u) => u.searchParams.get('after'))).toEqual([null, 'A']);+ });++ test('returns an empty list when Graph returns no data', async () => {+ stubPages(() => ({}));+ expect(await instagramCommon.getPages('TKN')).toEqual([]);+ });+});++type FakePage = {+ id: string;+ name: string;+ access_token: string;+ instagram_business_account: { id: string; username: string };+};++type FakeBody = {+ data?: FakePage[];+ paging?: { cursors?: { after?: string }; next?: string };+};