Add Activepieces integration for workflow automation
- Add Activepieces fork with SmoothSchedule custom piece - Create integrations app with Activepieces service layer - Add embed token endpoint for iframe integration - Create Automations page with embedded workflow builder - Add sidebar visibility fix for embed mode - Add list inactive customers endpoint to Public API - Include SmoothSchedule triggers: event created/updated/cancelled - Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"extends": [
|
||||
"../../../../.eslintrc.base.json"
|
||||
],
|
||||
"ignorePatterns": [
|
||||
"!**/*"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
"*.ts",
|
||||
"*.tsx",
|
||||
"*.js",
|
||||
"*.jsx"
|
||||
],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"*.ts",
|
||||
"*.tsx"
|
||||
],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"*.js",
|
||||
"*.jsx"
|
||||
],
|
||||
"rules": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# pieces-mem
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
|
||||
## Building
|
||||
|
||||
Run `nx build pieces-mem` to build the library.
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "@activepieces/piece-mem",
|
||||
"version": "0.0.9"
|
||||
}
|
||||
65
activepieces-fork/packages/pieces/community/mem/project.json
Normal file
65
activepieces-fork/packages/pieces/community/mem/project.json
Normal file
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"name": "pieces-mem",
|
||||
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "packages/pieces/community/mem/src",
|
||||
"projectType": "library",
|
||||
"release": {
|
||||
"version": {
|
||||
"currentVersionResolver": "git-tag",
|
||||
"preserveLocalDependencyProtocols": false,
|
||||
"manifestRootsToUpdate": [
|
||||
"dist/{projectRoot}"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tags": [],
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nx/js:tsc",
|
||||
"outputs": [
|
||||
"{options.outputPath}"
|
||||
],
|
||||
"options": {
|
||||
"outputPath": "dist/packages/pieces/community/mem",
|
||||
"tsConfig": "packages/pieces/community/mem/tsconfig.lib.json",
|
||||
"packageJson": "packages/pieces/community/mem/package.json",
|
||||
"main": "packages/pieces/community/mem/src/index.ts",
|
||||
"assets": [
|
||||
"packages/pieces/community/mem/*.md",
|
||||
{
|
||||
"input": "packages/pieces/community/mem/src/i18n",
|
||||
"output": "./src/i18n",
|
||||
"glob": "**/!(i18n.json)"
|
||||
}
|
||||
],
|
||||
"buildableProjectDepsInPackageJsonType": "dependencies",
|
||||
"updateBuildableProjectDepsInPackageJson": true
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build",
|
||||
"prebuild"
|
||||
]
|
||||
},
|
||||
"nx-release-publish": {
|
||||
"options": {
|
||||
"packageRoot": "dist/{projectRoot}"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nx/eslint:lint",
|
||||
"outputs": [
|
||||
"{options.outputFile}"
|
||||
]
|
||||
},
|
||||
"prebuild": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"cwd": "packages/pieces/community/mem",
|
||||
"command": "bun install --no-save --silent"
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"Capture and organize your thoughts using Mem.ai": "Erfasse und organisiere deine Gedanken mit Mem.ai",
|
||||
"You can obtain your API key by navigating to **Integrations→ API**.": "Sie können Ihren API-Schlüssel über **Integrations→ API** erhalten.",
|
||||
"Create Mem": "Mem erstellen",
|
||||
"Create Note": "Notiz erstellen",
|
||||
"Delete Note": "Notiz löschen",
|
||||
"Custom API Call": "Eigener API-Aufruf",
|
||||
"Save any content to Mem.ai for intelligent processing and future reference.": "Speichern Sie alle Inhalte in Mem.ai für intelligente Verarbeitung und zukünftige Referenzen.",
|
||||
"Log a plain-text Markdown note into Mem, optionally with formatting, templates, collections, and timestamps.": "Loggen Sie eine Klartext Markdown Notiz in Mem, optional mit Formatierungen, Vorlagen, Sammlungen und Zeitstempeln.",
|
||||
"Delete a note in Mem by its ID.": "Lösche eine Notiz in Mem durch seine ID.",
|
||||
"Make a custom API call to a specific endpoint": "Einen benutzerdefinierten API-Aufruf an einen bestimmten Endpunkt machen",
|
||||
"Input": "Eingabe",
|
||||
"Instructions": "Anleitungen",
|
||||
"Context": "Kontext",
|
||||
"Content": "Inhalt",
|
||||
"Note ID": "Notiz-ID",
|
||||
"Add to Collections": "Zu Sammlungen hinzufügen",
|
||||
"Method": "Methode",
|
||||
"Headers": "Kopfzeilen",
|
||||
"Query Parameters": "Abfrageparameter",
|
||||
"Body": "Körper",
|
||||
"Response is Binary ?": "Antwort ist binär?",
|
||||
"No Error on Failure": "Kein Fehler bei Fehler",
|
||||
"Timeout (in seconds)": "Timeout (in Sekunden)",
|
||||
"Raw content you want to remember - HTML, emails, transcripts, or simple notes.": "Roher Inhalt, den Sie sich merken möchten - HTML, E-Mails, Transkripte oder einfache Notizen.",
|
||||
"Optional guidance on how you want this content processed or remembered.": "Optionale Anleitung, wie Sie diesen Inhalt verarbeitet oder gespeichert haben möchten.",
|
||||
"Additional background information to relate this to your existing knowledge.": "Zusätzliche Hintergrundinformationen, um dies mit Ihrem vorhandenen Wissen in Verbindung zu bringen.",
|
||||
"Markdown-formatted content. First line is treated as the note title.": "Markdown-formatierter Inhalt. Die erste Zeile wird als Notiztitel behandelt.",
|
||||
"Optional UUID to assign to the note.": "Optionale UUID, die der Notiz zugewiesen wird.",
|
||||
"Collection titles or IDs to assign this note to. New collections will be created if they don’t exist.": "Sammlungstitel oder IDs, denen diese Notiz zugewiesen werden soll, werden neue Sammlungen erstellt, wenn sie nicht existieren.",
|
||||
"The ID of the note to delete.": "Die ID der Notiz zu löschen.",
|
||||
"Authorization headers are injected automatically from your connection.": "Autorisierungs-Header werden automatisch von Ihrer Verbindung injiziert.",
|
||||
"Enable for files like PDFs, images, etc..": "Aktivieren für Dateien wie PDFs, Bilder, etc..",
|
||||
"GET": "ERHALTEN",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "LÖSCHEN",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"Capture and organize your thoughts using Mem.ai": "Capture y organice sus pensamientos usando Mem.ai",
|
||||
"You can obtain your API key by navigating to **Integrations→ API**.": "Puedes obtener tu clave de API navegando a **Integracions→ API**.",
|
||||
"Create Mem": "Crear Mem",
|
||||
"Create Note": "Crear nota",
|
||||
"Delete Note": "Eliminar nota",
|
||||
"Custom API Call": "Llamada API personalizada",
|
||||
"Save any content to Mem.ai for intelligent processing and future reference.": "Guardar cualquier contenido en Mem.ai para procesamiento inteligente y referencia futura.",
|
||||
"Log a plain-text Markdown note into Mem, optionally with formatting, templates, collections, and timestamps.": "Registra una nota de Markdown de texto plano en Mem, opcionalmente con formatos, plantillas, colecciones y marcas de tiempo.",
|
||||
"Delete a note in Mem by its ID.": "Elimina una nota en Mem por su ID.",
|
||||
"Make a custom API call to a specific endpoint": "Hacer una llamada API personalizada a un extremo específico",
|
||||
"Input": "Input",
|
||||
"Instructions": "Instrucciones",
|
||||
"Context": "Contexto",
|
||||
"Content": "Contenido",
|
||||
"Note ID": "Nota ID",
|
||||
"Add to Collections": "Añadir a colecciones",
|
||||
"Method": "Método",
|
||||
"Headers": "Encabezados",
|
||||
"Query Parameters": "Parámetros de consulta",
|
||||
"Body": "Cuerpo",
|
||||
"Response is Binary ?": "¿Respuesta es binaria?",
|
||||
"No Error on Failure": "No hay ningún error en fallo",
|
||||
"Timeout (in seconds)": "Tiempo de espera (en segundos)",
|
||||
"Raw content you want to remember - HTML, emails, transcripts, or simple notes.": "Contenido sin formato que desea recordar - HTML, correos electrónicos, transcripciones o notas simples.",
|
||||
"Optional guidance on how you want this content processed or remembered.": "Guía opcional sobre cómo quieres que este contenido sea procesado o recordado.",
|
||||
"Additional background information to relate this to your existing knowledge.": "Información adicional de fondo para relacionar esto con sus conocimientos existentes.",
|
||||
"Markdown-formatted content. First line is treated as the note title.": "Contenido con formato Markdown. La primera línea se trata como el título de la nota.",
|
||||
"Optional UUID to assign to the note.": "UUID opcional para asignar a la nota.",
|
||||
"Collection titles or IDs to assign this note to. New collections will be created if they don’t exist.": "Títulos de colección o IDs a los que asignar esta nota. Se crearán nuevas colecciones si no existen.",
|
||||
"The ID of the note to delete.": "El ID de la nota a eliminar.",
|
||||
"Authorization headers are injected automatically from your connection.": "Las cabeceras de autorización se inyectan automáticamente desde tu conexión.",
|
||||
"Enable for files like PDFs, images, etc..": "Activar para archivos como PDFs, imágenes, etc.",
|
||||
"GET": "RECOGER",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "BORRAR",
|
||||
"HEAD": "LIMPIO"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"Capture and organize your thoughts using Mem.ai": "Capturez et organisez vos pensées en utilisant Mem.ai",
|
||||
"You can obtain your API key by navigating to **Integrations→ API**.": "Vous pouvez obtenir votre clé API en accédant à **Intégrations→ API**.",
|
||||
"Create Mem": "Créer Mém",
|
||||
"Create Note": "Créer une note",
|
||||
"Delete Note": "Supprimer la note",
|
||||
"Custom API Call": "Appel API personnalisé",
|
||||
"Save any content to Mem.ai for intelligent processing and future reference.": "Enregistrez n'importe quel contenu dans Mem.ai pour un traitement intelligent et une référence future.",
|
||||
"Log a plain-text Markdown note into Mem, optionally with formatting, templates, collections, and timestamps.": "Enregistrez une note Markdown en texte brut dans Mem, éventuellement avec mise en forme, modèles, collections et horodatages.",
|
||||
"Delete a note in Mem by its ID.": "Supprimer une note dans Mem par son ID.",
|
||||
"Make a custom API call to a specific endpoint": "Passez un appel API personnalisé à un point de terminaison spécifique",
|
||||
"Input": "Entrée",
|
||||
"Instructions": "Instructions",
|
||||
"Context": "Contexte",
|
||||
"Content": "Contenus",
|
||||
"Note ID": "ID de la note",
|
||||
"Add to Collections": "Ajouter aux collections",
|
||||
"Method": "Méthode",
|
||||
"Headers": "En-têtes",
|
||||
"Query Parameters": "Paramètres de requête",
|
||||
"Body": "Corps",
|
||||
"Response is Binary ?": "La réponse est Binaire ?",
|
||||
"No Error on Failure": "Aucune erreur en cas d'échec",
|
||||
"Timeout (in seconds)": "Délai d'attente (en secondes)",
|
||||
"Raw content you want to remember - HTML, emails, transcripts, or simple notes.": "Contenu brut dont vous voulez vous souvenir - HTML, e-mails, transcriptions ou notes simples.",
|
||||
"Optional guidance on how you want this content processed or remembered.": "Orientation facultative sur la façon dont vous voulez que ce contenu soit traité ou mémorisé.",
|
||||
"Additional background information to relate this to your existing knowledge.": "Des informations de base supplémentaires pour le relier à vos connaissances existantes.",
|
||||
"Markdown-formatted content. First line is treated as the note title.": "Contenu formaté pour Markdown. La première ligne est traitée comme le titre de la note.",
|
||||
"Optional UUID to assign to the note.": "UUID facultatif à assigner à la note.",
|
||||
"Collection titles or IDs to assign this note to. New collections will be created if they don’t exist.": "Titres de la collection ou identifiants à assigner à cette note. De nouvelles collections seront créées si elles n'existent pas.",
|
||||
"The ID of the note to delete.": "L'ID de la note à supprimer.",
|
||||
"Authorization headers are injected automatically from your connection.": "Les en-têtes d'autorisation sont injectés automatiquement à partir de votre connexion.",
|
||||
"Enable for files like PDFs, images, etc..": "Activer pour les fichiers comme les PDFs, les images, etc.",
|
||||
"GET": "OBTENIR",
|
||||
"POST": "POSTER",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "EFFACER",
|
||||
"DELETE": "SUPPRIMER",
|
||||
"HEAD": "TÊTE"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"Capture and organize your thoughts using Mem.ai": "Mem.aiを使用してあなたの考えをキャプチャして整理します",
|
||||
"You can obtain your API key by navigating to **Integrations→ API**.": "**インテグレーション→ API** に移動して API キーを取得できます。",
|
||||
"Create Mem": "Mem を作成",
|
||||
"Create Note": "ノートを作成",
|
||||
"Delete Note": "メモを削除",
|
||||
"Custom API Call": "カスタムAPI通話",
|
||||
"Save any content to Mem.ai for intelligent processing and future reference.": "インテリジェントな処理と今後の参照のために任意のコンテンツをMem.aiに保存します。",
|
||||
"Log a plain-text Markdown note into Mem, optionally with formatting, templates, collections, and timestamps.": "書式設定、テンプレート、コレクション、タイムスタンプを使用して、プレーンテキストのMarkdownノートをMemに記録します。",
|
||||
"Delete a note in Mem by its ID.": "ID で Mem 内のメモを削除します。",
|
||||
"Make a custom API call to a specific endpoint": "特定のエンドポイントへのカスタム API コールを実行します。",
|
||||
"Input": "Input",
|
||||
"Instructions": "説明",
|
||||
"Context": "コンテキスト",
|
||||
"Content": "コンテンツ",
|
||||
"Note ID": "メモID",
|
||||
"Add to Collections": "コレクションに追加",
|
||||
"Method": "方法",
|
||||
"Headers": "ヘッダー",
|
||||
"Query Parameters": "クエリパラメータ",
|
||||
"Body": "本文",
|
||||
"Response is Binary ?": "応答はバイナリですか?",
|
||||
"No Error on Failure": "失敗時にエラーはありません",
|
||||
"Timeout (in seconds)": "タイムアウト(秒)",
|
||||
"Raw content you want to remember - HTML, emails, transcripts, or simple notes.": "覚えておきたい生のコンテンツ - HTML、電子メール、トランスクリプト、またはシンプルなノート。",
|
||||
"Optional guidance on how you want this content processed or remembered.": "このコンテンツを処理または記憶する方法に関する任意のガイダンス。",
|
||||
"Additional background information to relate this to your existing knowledge.": "これを既存の知識に関連付けるための追加の背景情報。",
|
||||
"Markdown-formatted content. First line is treated as the note title.": "Markdown形式のコンテンツ。最初の行はノートタイトルとして扱われます。",
|
||||
"Optional UUID to assign to the note.": "ノートに割り当てるオプションの UUID",
|
||||
"Collection titles or IDs to assign this note to. New collections will be created if they don’t exist.": "このメモに割り当てるコレクションのタイトルまたはID。存在しない場合、新しいコレクションが作成されます。",
|
||||
"The ID of the note to delete.": "削除するノートのID。",
|
||||
"Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
|
||||
"Enable for files like PDFs, images, etc..": "PDF、画像などのファイルを有効にします。",
|
||||
"GET": "取得",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "削除",
|
||||
"HEAD": "頭"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"Capture and organize your thoughts using Mem.ai": "Neem je gedachten op en organiseer ze met Mem.ai",
|
||||
"You can obtain your API key by navigating to **Integrations→ API**.": "Je kunt je API-sleutel verkrijgen door naar **Integrations→ API** te navigeren.",
|
||||
"Create Mem": "Maak Geheugen",
|
||||
"Create Note": "Notitie aanmaken",
|
||||
"Delete Note": "Notitie verwijderen",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Save any content to Mem.ai for intelligent processing and future reference.": "Sla inhoud op in Mem.ai voor intelligente verwerking en toekomstige referentie.",
|
||||
"Log a plain-text Markdown note into Mem, optionally with formatting, templates, collections, and timestamps.": "Log een platte-tekst Markdown notitie in het geheugen, optioneel met opmaak, templates, collecties en tijdstempels.",
|
||||
"Delete a note in Mem by its ID.": "Verwijder een notitie in de muis door het ID ervan.",
|
||||
"Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
|
||||
"Input": "Input",
|
||||
"Instructions": "Instructies",
|
||||
"Context": "Context",
|
||||
"Content": "Inhoud",
|
||||
"Note ID": "Notitie ID",
|
||||
"Add to Collections": "Toevoegen aan Collecties",
|
||||
"Method": "Methode",
|
||||
"Headers": "Kopteksten",
|
||||
"Query Parameters": "Query parameters",
|
||||
"Body": "Lichaam",
|
||||
"Response is Binary ?": "Antwoord is binair?",
|
||||
"No Error on Failure": "Geen fout bij fout",
|
||||
"Timeout (in seconds)": "Time-out (in seconden)",
|
||||
"Raw content you want to remember - HTML, emails, transcripts, or simple notes.": "Ruwe inhoud die je wilt onthouden - HTML, e-mails, afschrijvingen of eenvoudige notities.",
|
||||
"Optional guidance on how you want this content processed or remembered.": "Optionele begeleiding over hoe u deze inhoud wilt verwerken of onthouden.",
|
||||
"Additional background information to relate this to your existing knowledge.": "Aanvullende achtergrondinformatie om dit te koppelen aan uw bestaande kennis.",
|
||||
"Markdown-formatted content. First line is treated as the note title.": "Inhoud met markdown-indeling. De eerste regel wordt behandeld als de notitie titel.",
|
||||
"Optional UUID to assign to the note.": "Optionele UUID om toe te wijzen aan de notitie.",
|
||||
"Collection titles or IDs to assign this note to. New collections will be created if they don’t exist.": "Titels of ID's om deze notitie aan toe te wijzen. Nieuwe collecties worden gemaakt als ze niet bestaan.",
|
||||
"The ID of the note to delete.": "Het ID van de notitie om te verwijderen.",
|
||||
"Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
|
||||
"Enable for files like PDFs, images, etc..": "Inschakelen voor bestanden zoals PDF's, afbeeldingen etc..",
|
||||
"GET": "KRIJG",
|
||||
"POST": "POSTE",
|
||||
"PATCH": "BEKIJK",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "VERWIJDEREN",
|
||||
"HEAD": "HOOFD"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"Capture and organize your thoughts using Mem.ai": "Capture e organize seus pensamentos usando Mem.ai",
|
||||
"You can obtain your API key by navigating to **Integrations→ API**.": "Você pode obter sua chave de API navegando para **Integrações→ API**.",
|
||||
"Create Mem": "Criar Masculino",
|
||||
"Create Note": "Criar Nota",
|
||||
"Delete Note": "Excluir Nota",
|
||||
"Custom API Call": "Chamada de API personalizada",
|
||||
"Save any content to Mem.ai for intelligent processing and future reference.": "Salve qualquer conteúdo em Mem.ai para processamento inteligente e referência futura.",
|
||||
"Log a plain-text Markdown note into Mem, optionally with formatting, templates, collections, and timestamps.": "Registrar uma nota Markdown em texto simples, opcionalmente com formatação, modelos, coleções e carimbos de tempo.",
|
||||
"Delete a note in Mem by its ID.": "Excluir uma nota no Mem por seu ID.",
|
||||
"Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
|
||||
"Input": "Entrada",
|
||||
"Instructions": "Instruções",
|
||||
"Context": "Contexto",
|
||||
"Content": "Conteúdo",
|
||||
"Note ID": "ID da nota",
|
||||
"Add to Collections": "Adicionar às coleções",
|
||||
"Method": "Método",
|
||||
"Headers": "Cabeçalhos",
|
||||
"Query Parameters": "Parâmetros da consulta",
|
||||
"Body": "Conteúdo",
|
||||
"Response is Binary ?": "A resposta é binária ?",
|
||||
"No Error on Failure": "Nenhum erro no Failure",
|
||||
"Timeout (in seconds)": "Tempo limite (em segundos)",
|
||||
"Raw content you want to remember - HTML, emails, transcripts, or simple notes.": "Conteúdo bruto que você quer lembrar - HTML, e-mails, transcrições ou notas simples.",
|
||||
"Optional guidance on how you want this content processed or remembered.": "Orientação opcional sobre como você quer este conteúdo processado ou lembrado.",
|
||||
"Additional background information to relate this to your existing knowledge.": "Informações adicionais sobre o fundo para relacionar isto com o seu conhecimento existente.",
|
||||
"Markdown-formatted content. First line is treated as the note title.": "Conteúdo formatado em Markdown. A primeira linha é tratada como título da nota.",
|
||||
"Optional UUID to assign to the note.": "UUID opcional para atribuir à nota.",
|
||||
"Collection titles or IDs to assign this note to. New collections will be created if they don’t exist.": "Títulos da coleção ou IDs para atribuir esta nota. Novas coleções serão criadas se não existirem.",
|
||||
"The ID of the note to delete.": "A ID da nota a excluir.",
|
||||
"Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
|
||||
"Enable for files like PDFs, images, etc..": "Habilitar para arquivos como PDFs, imagens, etc..",
|
||||
"GET": "OBTER",
|
||||
"POST": "POSTAR",
|
||||
"PATCH": "COMPRAR",
|
||||
"PUT": "COLOCAR",
|
||||
"DELETE": "EXCLUIR",
|
||||
"HEAD": "CABEÇA"
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"Mem": "Mem",
|
||||
"Capture and organize your thoughts using Mem.ai": "Создавайте и организуйте свои мысли с помощью Mem.ai",
|
||||
"You can obtain your API key by navigating to **Integrations→ API**.": "Вы можете получить ключ API, перейдя по ссылке **Интеграции→ API**.",
|
||||
"Create Mem": "Создать мем",
|
||||
"Create Note": "Создать заметку",
|
||||
"Delete Note": "Удалить заметку",
|
||||
"Custom API Call": "Пользовательский вызов API",
|
||||
"Save any content to Mem.ai for intelligent processing and future reference.": "Сохраните любой контент в Mem.ai для интеллектуальной обработки и будущих ссылок.",
|
||||
"Log a plain-text Markdown note into Mem, optionally with formatting, templates, collections, and timestamps.": "Записывать заметку Markdown в формате Mem, при необходимости с форматированием, шаблонами, коллекциями и метками времени.",
|
||||
"Delete a note in Mem by its ID.": "Исключить в Меме примечание по его ID.",
|
||||
"Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
|
||||
"Input": "Input",
|
||||
"Instructions": "Инструкции",
|
||||
"Context": "Контекст",
|
||||
"Content": "Содержание",
|
||||
"Note ID": "ID заметки",
|
||||
"Add to Collections": "Добавить в подборки",
|
||||
"Method": "Метод",
|
||||
"Headers": "Заголовки",
|
||||
"Query Parameters": "Параметры запроса",
|
||||
"Body": "Тело",
|
||||
"No Error on Failure": "Нет ошибок при ошибке",
|
||||
"Timeout (in seconds)": "Таймаут (в секундах)",
|
||||
"Raw content you want to remember - HTML, emails, transcripts, or simple notes.": "Сырье контента, который вы хотите запомнить - HTML, письма, субтитры или простые заметки.",
|
||||
"Optional guidance on how you want this content processed or remembered.": "Дополнительное руководство о том, как вы хотите этот контент обрабатывается или запоминается.",
|
||||
"Additional background information to relate this to your existing knowledge.": "Дополнительная справочная информация для связи с вашими существующими знаниями.",
|
||||
"Markdown-formatted content. First line is treated as the note title.": "Содержимое в формате Markdown-формата. Первая строка рассматривается как заголовок заметки.",
|
||||
"Optional UUID to assign to the note.": "Необязательный UUID для назначения к заметке.",
|
||||
"Collection titles or IDs to assign this note to. New collections will be created if they don’t exist.": "Названия или ID коллекции для назначения этой заметки. Если они не существуют, то будут созданы новые коллекции.",
|
||||
"The ID of the note to delete.": "ID заметки для удаления.",
|
||||
"Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
|
||||
"GET": "ПОЛУЧИТЬ",
|
||||
"POST": "ПОСТ",
|
||||
"PATCH": "ПАТЧ",
|
||||
"PUT": "ПОКУПИТЬ",
|
||||
"DELETE": "УДАЛИТЬ",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"Capture and organize your thoughts using Mem.ai": "Capture and organize your thoughts using Mem.ai",
|
||||
"You can obtain your API key by navigating to **Integrations→ API**.": "You can obtain your API key by navigating to **Integrations→ API**.",
|
||||
"Create Mem": "Create Mem",
|
||||
"Create Note": "Create Note",
|
||||
"Delete Note": "Delete Note",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Save any content to Mem.ai for intelligent processing and future reference.": "Save any content to Mem.ai for intelligent processing and future reference.",
|
||||
"Log a plain-text Markdown note into Mem, optionally with formatting, templates, collections, and timestamps.": "Log a plain-text Markdown note into Mem, optionally with formatting, templates, collections, and timestamps.",
|
||||
"Delete a note in Mem by its ID.": "Delete a note in Mem by its ID.",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Input": "Input",
|
||||
"Instructions": "Instructions",
|
||||
"Context": "Context",
|
||||
"Content": "Content",
|
||||
"Note ID": "Note ID",
|
||||
"Add to Collections": "Add to Collections",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"Response is Binary ?": "Response is Binary ?",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"Raw content you want to remember - HTML, emails, transcripts, or simple notes.": "Raw content you want to remember - HTML, emails, transcripts, or simple notes.",
|
||||
"Optional guidance on how you want this content processed or remembered.": "Optional guidance on how you want this content processed or remembered.",
|
||||
"Additional background information to relate this to your existing knowledge.": "Additional background information to relate this to your existing knowledge.",
|
||||
"Markdown-formatted content. First line is treated as the note title.": "Markdown-formatted content. First line is treated as the note title.",
|
||||
"Optional UUID to assign to the note.": "Optional UUID to assign to the note.",
|
||||
"Collection titles or IDs to assign this note to. New collections will be created if they don’t exist.": "Collection titles or IDs to assign this note to. New collections will be created if they don’t exist.",
|
||||
"The ID of the note to delete.": "The ID of the note to delete.",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"Mem": "Mem",
|
||||
"Capture and organize your thoughts using Mem.ai": "Capture and organize your thoughts using Mem.ai",
|
||||
"You can obtain your API key by navigating to **Integrations→ API**.": "You can obtain your API key by navigating to **Integrations→ API**.",
|
||||
"Create Mem": "Create Mem",
|
||||
"Create Note": "Create Note",
|
||||
"Delete Note": "Delete Note",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Save any content to Mem.ai for intelligent processing and future reference.": "Save any content to Mem.ai for intelligent processing and future reference.",
|
||||
"Log a plain-text Markdown note into Mem, optionally with formatting, templates, collections, and timestamps.": "Log a plain-text Markdown note into Mem, optionally with formatting, templates, collections, and timestamps.",
|
||||
"Delete a note in Mem by its ID.": "Delete a note in Mem by its ID.",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Input": "Input",
|
||||
"Instructions": "Instructions",
|
||||
"Context": "Context",
|
||||
"Content": "Content",
|
||||
"Note ID": "Note ID",
|
||||
"Add to Collections": "Add to Collections",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"Raw content you want to remember - HTML, emails, transcripts, or simple notes.": "Raw content you want to remember - HTML, emails, transcripts, or simple notes.",
|
||||
"Optional guidance on how you want this content processed or remembered.": "Optional guidance on how you want this content processed or remembered.",
|
||||
"Additional background information to relate this to your existing knowledge.": "Additional background information to relate this to your existing knowledge.",
|
||||
"Markdown-formatted content. First line is treated as the note title.": "Markdown-formatted content. First line is treated as the note title.",
|
||||
"Optional UUID to assign to the note.": "Optional UUID to assign to the note.",
|
||||
"Collection titles or IDs to assign this note to. New collections will be created if they don’t exist.": "Collection titles or IDs to assign this note to. New collections will be created if they don’t exist.",
|
||||
"The ID of the note to delete.": "The ID of the note to delete.",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"Capture and organize your thoughts using Mem.ai": "Capture and organize your thoughts using Mem.ai",
|
||||
"You can obtain your API key by navigating to **Integrations→ API**.": "You can obtain your API key by navigating to **Integrations→ API**.",
|
||||
"Create Mem": "Create Mem",
|
||||
"Create Note": "Create Note",
|
||||
"Delete Note": "Delete Note",
|
||||
"Custom API Call": "自定义 API 呼叫",
|
||||
"Save any content to Mem.ai for intelligent processing and future reference.": "Save any content to Mem.ai for intelligent processing and future reference.",
|
||||
"Log a plain-text Markdown note into Mem, optionally with formatting, templates, collections, and timestamps.": "Log a plain-text Markdown note into Mem, optionally with formatting, templates, collections, and timestamps.",
|
||||
"Delete a note in Mem by its ID.": "Delete a note in Mem by its ID.",
|
||||
"Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
|
||||
"Input": "Input",
|
||||
"Instructions": "Instructions",
|
||||
"Context": "Context",
|
||||
"Content": "Content",
|
||||
"Note ID": "Note ID",
|
||||
"Add to Collections": "Add to Collections",
|
||||
"Method": "方法",
|
||||
"Headers": "信头",
|
||||
"Query Parameters": "查询参数",
|
||||
"Body": "正文内容",
|
||||
"Response is Binary ?": "Response is Binary ?",
|
||||
"No Error on Failure": "失败时没有错误",
|
||||
"Timeout (in seconds)": "超时(秒)",
|
||||
"Raw content you want to remember - HTML, emails, transcripts, or simple notes.": "Raw content you want to remember - HTML, emails, transcripts, or simple notes.",
|
||||
"Optional guidance on how you want this content processed or remembered.": "Optional guidance on how you want this content processed or remembered.",
|
||||
"Additional background information to relate this to your existing knowledge.": "Additional background information to relate this to your existing knowledge.",
|
||||
"Markdown-formatted content. First line is treated as the note title.": "Markdown-formatted content. First line is treated as the note title.",
|
||||
"Optional UUID to assign to the note.": "Optional UUID to assign to the note.",
|
||||
"Collection titles or IDs to assign this note to. New collections will be created if they don’t exist.": "Collection titles or IDs to assign this note to. New collections will be created if they don’t exist.",
|
||||
"The ID of the note to delete.": "The ID of the note to delete.",
|
||||
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
|
||||
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
||||
"GET": "获取",
|
||||
"POST": "帖子",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "弹出",
|
||||
"DELETE": "删除",
|
||||
"HEAD": "黑色"
|
||||
}
|
||||
36
activepieces-fork/packages/pieces/community/mem/src/index.ts
Normal file
36
activepieces-fork/packages/pieces/community/mem/src/index.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
||||
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { createMemAction } from './lib/actions/create-mem';
|
||||
import { createNoteAction } from './lib/actions/create-note';
|
||||
import { deleteNoteAction } from './lib/actions/delete-note';
|
||||
|
||||
export const memAuth = PieceAuth.SecretText({
|
||||
displayName: 'API Key',
|
||||
required: true,
|
||||
description: `You can obtain your API key by navigating to **Integrations→ API**.`,
|
||||
});
|
||||
|
||||
export const mem = createPiece({
|
||||
displayName: 'Mem',
|
||||
description: 'Capture and organize your thoughts using Mem.ai',
|
||||
auth: memAuth,
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/mem.png',
|
||||
authors: ['krushnarout', 'kishanprmr'],
|
||||
categories: [PieceCategory.PRODUCTIVITY],
|
||||
actions: [
|
||||
createMemAction,
|
||||
createNoteAction,
|
||||
deleteNoteAction,
|
||||
createCustomApiCallAction({
|
||||
auth: memAuth,
|
||||
baseUrl: () => 'https://api.mem.ai/v2',
|
||||
authMapping: async (auth) => {
|
||||
return {
|
||||
Authorization: `Bearer ${auth}`,
|
||||
};
|
||||
},
|
||||
}),
|
||||
],
|
||||
triggers: [],
|
||||
});
|
||||
@@ -0,0 +1,47 @@
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { memAuth } from '../../index';
|
||||
import { makeRequest } from '../common';
|
||||
|
||||
export const createMemAction = createAction({
|
||||
auth: memAuth,
|
||||
name: 'create_mem',
|
||||
displayName: 'Create Mem',
|
||||
description: 'Save any content to Mem.ai for intelligent processing and future reference.',
|
||||
props: {
|
||||
input: Property.LongText({
|
||||
displayName: 'Input',
|
||||
required: true,
|
||||
description: 'Raw content you want to remember - HTML, emails, transcripts, or simple notes.',
|
||||
}),
|
||||
instructions: Property.LongText({
|
||||
displayName: 'Instructions',
|
||||
required: false,
|
||||
description: 'Optional guidance on how you want this content processed or remembered.',
|
||||
}),
|
||||
context: Property.LongText({
|
||||
displayName: 'Context',
|
||||
required: false,
|
||||
description: 'Additional background information to relate this to your existing knowledge.',
|
||||
}),
|
||||
},
|
||||
async run(context) {
|
||||
const { input, instructions, context: contextInfo } = context.propsValue;
|
||||
const apiKey = context.auth.secret_text;
|
||||
|
||||
const body = {
|
||||
input,
|
||||
...(instructions ? { instructions } : {}),
|
||||
...(contextInfo ? { context: contextInfo } : {}),
|
||||
};
|
||||
|
||||
const result = await makeRequest(
|
||||
apiKey,
|
||||
HttpMethod.POST,
|
||||
`/mem-it`,
|
||||
body
|
||||
);
|
||||
|
||||
return result;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,52 @@
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { memAuth } from '../../index';
|
||||
import { makeRequest } from '../common';
|
||||
|
||||
export const createNoteAction = createAction({
|
||||
auth: memAuth,
|
||||
name: 'create_note',
|
||||
displayName: 'Create Note',
|
||||
description: 'Log a plain-text Markdown note into Mem, optionally with formatting, templates, collections, and timestamps.',
|
||||
props: {
|
||||
content: Property.LongText({
|
||||
displayName: 'Content',
|
||||
required: true,
|
||||
description: 'Markdown-formatted content. First line is treated as the note title.',
|
||||
}),
|
||||
id: Property.ShortText({
|
||||
displayName: 'Note ID',
|
||||
required: false,
|
||||
description: 'Optional UUID to assign to the note.',
|
||||
}),
|
||||
add_to_collections: Property.Array({
|
||||
displayName: 'Add to Collections',
|
||||
required: false,
|
||||
description: 'Collection titles or IDs to assign this note to. New collections will be created if they don’t exist.',
|
||||
}),
|
||||
},
|
||||
async run(context) {
|
||||
const {
|
||||
content,
|
||||
id,
|
||||
add_to_collections,
|
||||
} = context.propsValue;
|
||||
|
||||
const apiKey = context.auth.secret_text;
|
||||
|
||||
const body: Record<string, unknown> = {
|
||||
content,
|
||||
...(id ? { id } : {}),
|
||||
...(add_to_collections ? { add_to_collections } : {}),
|
||||
};
|
||||
|
||||
const result = await makeRequest(
|
||||
apiKey,
|
||||
HttpMethod.POST,
|
||||
'/notes',
|
||||
body
|
||||
);
|
||||
|
||||
return result;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,30 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
import { makeRequest } from '../common';
|
||||
import { memAuth } from '../../index';
|
||||
|
||||
export const deleteNoteAction = createAction({
|
||||
auth: memAuth,
|
||||
name: 'delete_note',
|
||||
displayName: 'Delete Note',
|
||||
description: 'Delete a note in Mem by its ID.',
|
||||
props: {
|
||||
note_id: Property.ShortText({
|
||||
displayName: 'Note ID',
|
||||
required: true,
|
||||
description: 'The ID of the note to delete.',
|
||||
}),
|
||||
},
|
||||
async run(context) {
|
||||
const { note_id } = context.propsValue;
|
||||
const apiKey = context.auth.secret_text;
|
||||
|
||||
const result = await makeRequest(
|
||||
apiKey,
|
||||
HttpMethod.DELETE,
|
||||
`/notes/${note_id}`
|
||||
);
|
||||
|
||||
return result;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,22 @@
|
||||
import { HttpMethod, httpClient } from '@activepieces/pieces-common';
|
||||
|
||||
export async function makeRequest(
|
||||
apiKey: string,
|
||||
method: HttpMethod,
|
||||
path: string,
|
||||
body?: unknown
|
||||
) {
|
||||
const url = `https://api.mem.ai/v2${path}`;
|
||||
|
||||
const response = await httpClient.sendRequest({
|
||||
method,
|
||||
url,
|
||||
headers: {
|
||||
Authorization: `Bearer ${apiKey}`,
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body,
|
||||
});
|
||||
|
||||
return response.body;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"extends": "../../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"noImplicitOverride": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noPropertyAccessFromIndexSignature": true
|
||||
},
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"outDir": "../../../../dist/out-tsc",
|
||||
"declaration": true,
|
||||
"types": ["node"]
|
||||
},
|
||||
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user