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:
poduck
2025-12-18 22:59:37 -05:00
parent 9848268d34
commit 3aa7199503
16292 changed files with 1284892 additions and 4708 deletions

View File

@@ -0,0 +1,18 @@
{
"extends": ["../../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}

View File

@@ -0,0 +1,7 @@
# pieces-mindee
This library was generated with [Nx](https://nx.dev).
## Running lint
Run `nx lint pieces-mindee` to execute the lint via [ESLint](https://eslint.org/).

View File

@@ -0,0 +1,4 @@
{
"name": "@activepieces/piece-mindee",
"version": "0.1.12"
}

View File

@@ -0,0 +1,51 @@
{
"name": "pieces-mindee",
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/pieces/community/mindee/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nx/js:tsc",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/packages/pieces/community/mindee",
"tsConfig": "packages/pieces/community/mindee/tsconfig.lib.json",
"packageJson": "packages/pieces/community/mindee/package.json",
"main": "packages/pieces/community/mindee/src/index.ts",
"assets": [
"packages/pieces/community/mindee/*.md",
{
"input": "packages/pieces/community/mindee/src/i18n",
"output": "./src/i18n",
"glob": "**/!(i18n.json)"
}
],
"buildableProjectDepsInPackageJsonType": "dependencies",
"updateBuildableProjectDepsInPackageJson": true
},
"dependsOn": [
"^build",
"prebuild"
]
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": [
"{options.outputFile}"
]
},
"prebuild": {
"executor": "nx:run-commands",
"options": {
"cwd": "packages/pieces/community/mindee",
"command": "bun install --no-save --silent"
},
"dependsOn": [
"^build"
]
}
},
"tags": []
}

View File

@@ -0,0 +1,35 @@
{
"Document automation API": "Dokumenten-Automatisierungs-API",
"\n #### To obtain access your Api Key\n 1. Sign up and log in to Mindee\n 2. Go to [API Key page](https://platform.mindee.com/api-keys)\n 3. Copy the Key and paste below.\n ": "\n #### Um Zugriff auf Ihren Api Key\n zu erhalten. Melden Sie sich an und melden Sie sich bei Mindee\n 2 an. Gehe zu [API Key page](https://platform.mindee.com/api-keys)\n 3. Kopiere den Schlüssel und füge ihn unten ein.\n ",
"Extract Document": "Dokument extrahieren",
"Custom API Call": "Eigener API-Aufruf",
"Parse details of a document using OCR.": "Analysieren Sie Details eines Dokuments unter Verwendung von OCR.",
"Make a custom API call to a specific endpoint": "Einen benutzerdefinierten API-Aufruf an einen bestimmten Endpunkt machen",
"Account Name": "Kontoname",
"API Name": "API-Name",
"File URL": "Datei-URL",
"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)",
"Refers to your username or organization name with which you signed up with.": "Bezieht sich auf Ihren Benutzernamen oder Ihren Organisationsnamen, mit dem Sie sich angemeldet haben.",
"Refers to the name of the API your are using.": "Bezieht sich auf den Namen der API, die Sie verwenden.",
"Remote file URL or Base64 string. We currently support .pdf (slower), .jpg, .png, .webp, .tiff and .heic formats": "Remote-Datei-URL oder Base64-Zeichenkette. Zur Zeit unterstützen wir .pdf (langsamer), .jpg, .png, .webp, .tiff und .heic Formate",
"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..",
"Bank Account Details OCR": "Bankkonto-Details OCR",
"Receipt OCR": "Quittung OCR",
"Passport OCR": "Reisepass OCR",
"Invoice OCR": "Rechnung OCR",
"Proof of Address OCR": "Adressnachweis OCR",
"Financial Documents OCR": "Finanzdokumente OCR",
"GET": "ERHALTEN",
"POST": "POST",
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "LÖSCHEN",
"HEAD": "HEAD"
}

View File

@@ -0,0 +1,35 @@
{
"Document automation API": "API de automatización de documentos",
"\n #### To obtain access your Api Key\n 1. Sign up and log in to Mindee\n 2. Go to [API Key page](https://platform.mindee.com/api-keys)\n 3. Copy the Key and paste below.\n ": "\n #### Para obtener acceso a tu llave Api\n 1. Regístrate e inicia sesión en Mindee\n 2. Ve a [API Key page](https://platform.mindee.com/api-keys)\n 3. Copia la clave y pega debajo.\n ",
"Extract Document": "Extraer documento",
"Custom API Call": "Llamada API personalizada",
"Parse details of a document using OCR.": "Analizar detalles de un documento usando OCR.",
"Make a custom API call to a specific endpoint": "Hacer una llamada API personalizada a un extremo específico",
"Account Name": "Nombre de cuenta",
"API Name": "Nombre API",
"File URL": "URL del archivo",
"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)",
"Refers to your username or organization name with which you signed up with.": "Se refiere a su nombre de usuario u organización con el que se registró.",
"Refers to the name of the API your are using.": "Se refiere al nombre de la API que está usando.",
"Remote file URL or Base64 string. We currently support .pdf (slower), .jpg, .png, .webp, .tiff and .heic formats": "URL de archivo remoto o cadena Base64. Actualmente soportamos formatos .pdf (slower), .jpg, .png, .webp, .tiff y .heic",
"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.",
"Bank Account Details OCR": "Información de la cuenta bancaria OCR",
"Receipt OCR": "Recibo OCR",
"Passport OCR": "Pasaporte OCR",
"Invoice OCR": "Factura OCR",
"Proof of Address OCR": "Prueba de dirección OCR",
"Financial Documents OCR": "Documentos financieros OCR",
"GET": "RECOGER",
"POST": "POST",
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "BORRAR",
"HEAD": "LIMPIO"
}

View File

@@ -0,0 +1,35 @@
{
"Document automation API": "API d'automatisation de documents",
"\n #### To obtain access your Api Key\n 1. Sign up and log in to Mindee\n 2. Go to [API Key page](https://platform.mindee.com/api-keys)\n 3. Copy the Key and paste below.\n ": "\n #### Pour accéder à votre clé Api\n 1. Inscrivez-vous et connectez-vous à Mindee\n 2. Allez sur la [page de la clé API](https://platform.mindee.com/api-keys)\n 3. Copiez la clé et collez ci-dessous.\n ",
"Extract Document": "Extraire le document",
"Custom API Call": "Appel API personnalisé",
"Parse details of a document using OCR.": "Analyser les détails d'un document en utilisant OCR.",
"Make a custom API call to a specific endpoint": "Passez un appel API personnalisé à un point de terminaison spécifique",
"Account Name": "Nom du compte",
"API Name": "Nom de l'API",
"File URL": "URL du fichier",
"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)",
"Refers to your username or organization name with which you signed up with.": "Se rapporte à votre nom d'utilisateur ou de l'organisation avec laquelle vous vous êtes inscrit.",
"Refers to the name of the API your are using.": "Se réfère au nom de l'API que vous utilisez.",
"Remote file URL or Base64 string. We currently support .pdf (slower), .jpg, .png, .webp, .tiff and .heic formats": "URL de fichier distant ou chaîne de caractères Base64. Nous supportons actuellement les formats .pdf (plus lent), .jpg, .png, .webp, .tiff et .heic",
"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.",
"Bank Account Details OCR": "Coordonnées bancaires OCR",
"Receipt OCR": "Reçu OCR",
"Passport OCR": "Passeport OCR",
"Invoice OCR": "OCR de la facture",
"Proof of Address OCR": "Justificatif de domicile OCR",
"Financial Documents OCR": "Documents financiers OCR",
"GET": "OBTENIR",
"POST": "POSTER",
"PATCH": "PATCH",
"PUT": "EFFACER",
"DELETE": "SUPPRIMER",
"HEAD": "TÊTE"
}

View File

@@ -0,0 +1,35 @@
{
"Document automation API": "ドキュメント自動化API",
"\n #### To obtain access your Api Key\n 1. Sign up and log in to Mindee\n 2. Go to [API Key page](https://platform.mindee.com/api-keys)\n 3. Copy the Key and paste below.\n ": "\n #### To obtain access your Api Key\n 1. Sign up and log in to Mindee\n 2. Go to [API Key page](https://platform.mindee.com/api-keys)\n 3. Copy the Key and paste below.\n ",
"Extract Document": "ドキュメントの抽出",
"Custom API Call": "カスタムAPI通話",
"Parse details of a document using OCR.": "OCRを使用してドキュメントの詳細を解析します。",
"Make a custom API call to a specific endpoint": "特定のエンドポイントへのカスタム API コールを実行します。",
"Account Name": "口座名",
"API Name": "API 名",
"File URL": "ファイル URL",
"Method": "方法",
"Headers": "ヘッダー",
"Query Parameters": "クエリパラメータ",
"Body": "本文",
"Response is Binary ?": "応答はバイナリですか?",
"No Error on Failure": "失敗時にエラーはありません",
"Timeout (in seconds)": "タイムアウト(秒)",
"Refers to your username or organization name with which you signed up with.": "サインアップしたユーザー名または組織名を参照します。",
"Refers to the name of the API your are using.": "使用している API の名前を参照します。",
"Remote file URL or Base64 string. We currently support .pdf (slower), .jpg, .png, .webp, .tiff and .heic formats": "リモートファイルの URL または Base64 文字列。現在、.pdf (遅く)、.jpg、.png、.webp、.tiff および .heic フォーマットに対応しています。",
"Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
"Enable for files like PDFs, images, etc..": "PDF、画像などのファイルを有効にします。",
"Bank Account Details OCR": "銀行口座詳細 OCR",
"Receipt OCR": "領収書OCR",
"Passport OCR": "パスポートOCR",
"Invoice OCR": "請求書OCR",
"Proof of Address OCR": "住所証明OCR",
"Financial Documents OCR": "財務文書 OCR",
"GET": "取得",
"POST": "POST",
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "削除",
"HEAD": "頭"
}

View File

@@ -0,0 +1,35 @@
{
"Document automation API": "Automatisering van documenten API",
"\n #### To obtain access your Api Key\n 1. Sign up and log in to Mindee\n 2. Go to [API Key page](https://platform.mindee.com/api-keys)\n 3. Copy the Key and paste below.\n ": "\n #### Om toegang te krijgen tot je Api Key\n 1. Registreer en log in bij Mindee\n 2. Ga naar [API Key page] (https://platform.mindee.com/api-keys)\n 3. Kopieer de Key en plak hieronder.\n ",
"Extract Document": "Document uitpakken",
"Custom API Call": "Custom API Call",
"Parse details of a document using OCR.": "Parse details van een document met behulp van OCR.",
"Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
"Account Name": "Klant naam",
"API Name": "API naam",
"File URL": "Bestand URL",
"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)",
"Refers to your username or organization name with which you signed up with.": "Verwijst naar je gebruikersnaam of organisatienaam waarmee je je hebt aangemeld.",
"Refers to the name of the API your are using.": "Refereert naar de naam van de API die je gebruikt.",
"Remote file URL or Base64 string. We currently support .pdf (slower), .jpg, .png, .webp, .tiff and .heic formats": "Externe bestand URL of Base64 string. We ondersteunen momenteel .pdf (langzamer), .jpg, .png, .webp, .tiff en .heic formats",
"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..",
"Bank Account Details OCR": "Bank accountgegevens OCR",
"Receipt OCR": "Ontvangstbewijs OCR",
"Passport OCR": "Paspoort OCR",
"Invoice OCR": "Factuur Doorsturen",
"Proof of Address OCR": "Bewijs van adres OCR",
"Financial Documents OCR": "Financiële documenten OCR",
"GET": "KRIJG",
"POST": "POSTE",
"PATCH": "BEKIJK",
"PUT": "PUT",
"DELETE": "VERWIJDEREN",
"HEAD": "HOOFD"
}

View File

@@ -0,0 +1,35 @@
{
"Document automation API": "API de automação de documentos",
"\n #### To obtain access your Api Key\n 1. Sign up and log in to Mindee\n 2. Go to [API Key page](https://platform.mindee.com/api-keys)\n 3. Copy the Key and paste below.\n ": "\n #### Para obter acesso à sua Chave de Api\n 1. Cadastre-se e faça login no Mindee\n 2. Vá para [Página da chave de API](https://platform.mindee.com/api-keys)\n 3. Copie a chave e cole abaixo.\n ",
"Extract Document": "Extrair documento",
"Custom API Call": "Chamada de API personalizada",
"Parse details of a document using OCR.": "Analisar detalhes de um documento usando o OCR.",
"Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
"Account Name": "Nome da Conta",
"API Name": "Nome da API",
"File URL": "URL do Arquivo",
"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)",
"Refers to your username or organization name with which you signed up with.": "Refere-se ao seu nome de usuário ou organização com o qual você se inscreveu.",
"Refers to the name of the API your are using.": "Refere-se ao nome da API que você está usando.",
"Remote file URL or Base64 string. We currently support .pdf (slower), .jpg, .png, .webp, .tiff and .heic formats": "URL do arquivo remoto ou string Base64. Atualmente suportamos formatos .pdf (slower), .jpg, .png, .webp, .tiff e .heic",
"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..",
"Bank Account Details OCR": "OCR Detalhes da Conta Bancária",
"Receipt OCR": "Recibo OCR",
"Passport OCR": "Passaporte OCR",
"Invoice OCR": "Fatura OCR",
"Proof of Address OCR": "Comprovante de Endereço OCR",
"Financial Documents OCR": "Documentos financeiros OCR",
"GET": "OBTER",
"POST": "POSTAR",
"PATCH": "COMPRAR",
"PUT": "COLOCAR",
"DELETE": "EXCLUIR",
"HEAD": "CABEÇA"
}

View File

@@ -0,0 +1,34 @@
{
"Mindee": "Mindee",
"Document automation API": "API автоматизации документов",
"\n #### To obtain access your Api Key\n 1. Sign up and log in to Mindee\n 2. Go to [API Key page](https://platform.mindee.com/api-keys)\n 3. Copy the Key and paste below.\n ": "\n #### To obtain access your Api Key\n 1. Sign up and log in to Mindee\n 2. Go to [API Key page](https://platform.mindee.com/api-keys)\n 3. Copy the Key and paste below.\n ",
"Extract Document": "Извлечь документ",
"Custom API Call": "Пользовательский вызов API",
"Parse details of a document using OCR.": "Обработка деталей документа с помощью OCR.",
"Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
"Account Name": "Имя аккаунта",
"API Name": "Имя API",
"File URL": "URL файла",
"Method": "Метод",
"Headers": "Заголовки",
"Query Parameters": "Параметры запроса",
"Body": "Тело",
"No Error on Failure": "Нет ошибок при ошибке",
"Timeout (in seconds)": "Таймаут (в секундах)",
"Refers to your username or organization name with which you signed up with.": "Ссылается на имя пользователя или организацию, с которой вы зарегистрировались.",
"Refers to the name of the API your are using.": "Ссылка на имя API, которое вы используете.",
"Remote file URL or Base64 string. We currently support .pdf (slower), .jpg, .png, .webp, .tiff and .heic formats": "URL удаленного файла или строка Base64. В настоящее время мы поддерживаем .pdf (медленнее), .jpg, .png, .webp, .tiff и .heic форматы",
"Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
"Bank Account Details OCR": "ОКР реквизитов банковского счета",
"Receipt OCR": "Распознавание чека",
"Passport OCR": "ОКВАРЕНИЕ Паспорта",
"Invoice OCR": "OCR счета",
"Proof of Address OCR": "OCR адреса",
"Financial Documents OCR": "ОКР финансовых документов",
"GET": "ПОЛУЧИТЬ",
"POST": "ПОСТ",
"PATCH": "ПАТЧ",
"PUT": "ПОКУПИТЬ",
"DELETE": "УДАЛИТЬ",
"HEAD": "HEAD"
}

View File

@@ -0,0 +1,35 @@
{
"Document automation API": "Document automation API",
"\n #### To obtain access your Api Key\n 1. Sign up and log in to Mindee\n 2. Go to [API Key page](https://platform.mindee.com/api-keys)\n 3. Copy the Key and paste below.\n ": "\n #### To obtain access your Api Key\n 1. Sign up and log in to Mindee\n 2. Go to [API Key page](https://platform.mindee.com/api-keys)\n 3. Copy the Key and paste below.\n ",
"Extract Document": "Extract Document",
"Custom API Call": "Custom API Call",
"Parse details of a document using OCR.": "Parse details of a document using OCR.",
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
"Account Name": "Account Name",
"API Name": "API Name",
"File URL": "File URL",
"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)",
"Refers to your username or organization name with which you signed up with.": "Refers to your username or organization name with which you signed up with.",
"Refers to the name of the API your are using.": "Refers to the name of the API your are using.",
"Remote file URL or Base64 string. We currently support .pdf (slower), .jpg, .png, .webp, .tiff and .heic formats": "Remote file URL or Base64 string. We currently support .pdf (slower), .jpg, .png, .webp, .tiff and .heic formats",
"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..",
"Bank Account Details OCR": "Bank Account Details OCR",
"Receipt OCR": "Receipt OCR",
"Passport OCR": "Passport OCR",
"Invoice OCR": "Invoice OCR",
"Proof of Address OCR": "Proof of Address OCR",
"Financial Documents OCR": "Financial Documents OCR",
"GET": "GET",
"POST": "POST",
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "DELETE",
"HEAD": "HEAD"
}

View File

@@ -0,0 +1,34 @@
{
"Mindee": "Mindee",
"Document automation API": "Document automation API",
"\n #### To obtain access your Api Key\n 1. Sign up and log in to Mindee\n 2. Go to [API Key page](https://platform.mindee.com/api-keys)\n 3. Copy the Key and paste below.\n ": "\n #### To obtain access your Api Key\n 1. Sign up and log in to Mindee\n 2. Go to [API Key page](https://platform.mindee.com/api-keys)\n 3. Copy the Key and paste below.\n ",
"Extract Document": "Extract Document",
"Custom API Call": "Custom API Call",
"Parse details of a document using OCR.": "Parse details of a document using OCR.",
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
"Account Name": "Account Name",
"API Name": "API Name",
"File URL": "File URL",
"Method": "Method",
"Headers": "Headers",
"Query Parameters": "Query Parameters",
"Body": "Body",
"No Error on Failure": "No Error on Failure",
"Timeout (in seconds)": "Timeout (in seconds)",
"Refers to your username or organization name with which you signed up with.": "Refers to your username or organization name with which you signed up with.",
"Refers to the name of the API your are using.": "Refers to the name of the API your are using.",
"Remote file URL or Base64 string. We currently support .pdf (slower), .jpg, .png, .webp, .tiff and .heic formats": "Remote file URL or Base64 string. We currently support .pdf (slower), .jpg, .png, .webp, .tiff and .heic formats",
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
"Bank Account Details OCR": "Bank Account Details OCR",
"Receipt OCR": "Receipt OCR",
"Passport OCR": "Passport OCR",
"Invoice OCR": "Invoice OCR",
"Proof of Address OCR": "Proof of Address OCR",
"Financial Documents OCR": "Financial Documents OCR",
"GET": "GET",
"POST": "POST",
"PATCH": "PATCH",
"PUT": "PUT",
"DELETE": "DELETE",
"HEAD": "HEAD"
}

View File

@@ -0,0 +1,35 @@
{
"Document automation API": "Document automation API",
"\n #### To obtain access your Api Key\n 1. Sign up and log in to Mindee\n 2. Go to [API Key page](https://platform.mindee.com/api-keys)\n 3. Copy the Key and paste below.\n ": "\n #### To obtain access your Api Key\n 1. Sign up and log in to Mindee\n 2. Go to [API Key page](https://platform.mindee.com/api-keys)\n 3. Copy the Key and paste below.\n ",
"Extract Document": "Extract Document",
"Custom API Call": "自定义 API 呼叫",
"Parse details of a document using OCR.": "Parse details of a document using OCR.",
"Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
"Account Name": "Account Name",
"API Name": "API Name",
"File URL": "File URL",
"Method": "方法",
"Headers": "信头",
"Query Parameters": "查询参数",
"Body": "正文内容",
"Response is Binary ?": "Response is Binary ?",
"No Error on Failure": "失败时没有错误",
"Timeout (in seconds)": "超时(秒)",
"Refers to your username or organization name with which you signed up with.": "Refers to your username or organization name with which you signed up with.",
"Refers to the name of the API your are using.": "Refers to the name of the API your are using.",
"Remote file URL or Base64 string. We currently support .pdf (slower), .jpg, .png, .webp, .tiff and .heic formats": "Remote file URL or Base64 string. We currently support .pdf (slower), .jpg, .png, .webp, .tiff and .heic formats",
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
"Bank Account Details OCR": "Bank Account Details OCR",
"Receipt OCR": "Receipt OCR",
"Passport OCR": "Passport OCR",
"Invoice OCR": "Invoice OCR",
"Proof of Address OCR": "Proof of Address OCR",
"Financial Documents OCR": "Financial Documents OCR",
"GET": "获取",
"POST": "帖子",
"PATCH": "PATCH",
"PUT": "弹出",
"DELETE": "删除",
"HEAD": "黑色"
}

View File

@@ -0,0 +1,37 @@
import { createCustomApiCallAction } from '@activepieces/pieces-common';
import { PieceAuth, createPiece } from '@activepieces/pieces-framework';
import { PieceCategory } from '@activepieces/shared';
import { mindeePredictDocumentAction } from './lib/actions/predict-document';
export const mindeeAuth = PieceAuth.SecretText({
displayName: 'Api Key',
description: `
#### To obtain access your Api Key
1. Sign up and log in to Mindee
2. Go to [API Key page](https://platform.mindee.com/api-keys)
3. Copy the Key and paste below.
`,
required: true,
});
export const mindee = createPiece({
displayName: 'Mindee',
description: 'Document automation API',
minimumSupportedRelease: '0.30.0',
logoUrl: 'https://cdn.activepieces.com/pieces/mindee.png',
categories: [PieceCategory.COMMUNICATION],
authors: ["kanarelo","kishanprmr","MoShizzle","khaledmashaly","abuaboud"],
auth: mindeeAuth,
actions: [
mindeePredictDocumentAction,
createCustomApiCallAction({
baseUrl: () => 'https://api.mindee.net/v1',
auth: mindeeAuth,
authMapping: async (auth) => ({
Authorization: `Token ${auth.secret_text}`,
}),
}),
],
triggers: [],
});

View File

@@ -0,0 +1,82 @@
import { createAction, Property } from '@activepieces/pieces-framework';
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
import { createReadStream } from 'fs';
import FormData from 'form-data';
import { mindeeAuth } from '../..';
export const mindeePredictDocumentAction = createAction({
auth: mindeeAuth,
name: 'mindee_predict_document',
displayName: 'Extract Document',
description: 'Parse details of a document using OCR.',
props: {
account_name: Property.ShortText({
displayName: 'Account Name',
description:
'Refers to your username or organization name with which you signed up with.',
required: true,
defaultValue: 'mindee',
}),
api_name: Property.StaticDropdown({
displayName: 'API Name',
description: 'Refers to the name of the API your are using.',
required: true,
defaultValue: 'full',
options: {
disabled: false,
options: [
{
value: 'bank_account_details/v1',
label: 'Bank Account Details OCR',
},
{ value: 'expense_reports/v4', label: 'Receipt OCR' },
{ value: 'passport/v1', label: 'Passport OCR' },
{ value: 'invoices/v3', label: 'Invoice OCR' },
{ value: 'proof_of_address/v1', label: 'Proof of Address OCR' },
{ value: 'financial_document/v1', label: 'Financial Documents OCR' },
],
},
}),
file: Property.LongText({
displayName: 'File URL',
description:
'Remote file URL or Base64 string. We currently support .pdf (slower), .jpg, .png, .webp, .tiff and .heic formats',
required: true,
}),
},
run: async ({ auth, propsValue: { api_name, account_name, file } }) => {
let headers,
body = {};
try {
const form = new FormData();
if (['https:', 'http:'].includes(new URL(file).protocol))
form.append('document', await getRemoteFile(file));
else form.append('document', createReadStream(file));
body = form;
headers = { ...form.getHeaders() };
} catch (_) {
body = { document: file };
headers = { 'Content-Type': 'application/json' };
}
const response = await httpClient.sendRequest({
method: HttpMethod.POST,
url: `https://api.mindee.net/v1/products/${account_name}/${api_name}/predict`,
headers: {
Authorization: `Token ${auth.secret_text}`,
...headers,
},
body: body,
});
return response.body;
},
});
async function getRemoteFile(url: string): Promise<ArrayBuffer> {
const response = await fetch(url);
return await response.arrayBuffer();
}

View File

@@ -0,0 +1,16 @@
{
"extends": "../../../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
],
"compilerOptions": {
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
}
}

View File

@@ -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"]
}