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,18 @@
|
||||
{
|
||||
"extends": ["../../../../.eslintrc.json"],
|
||||
"ignorePatterns": ["!**/*"],
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": ["*.ts", "*.tsx"],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": ["*.js", "*.jsx"],
|
||||
"rules": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# pieces-apitemplate-io
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
|
||||
## Building
|
||||
|
||||
Run `nx build pieces-apitemplate-io` to build the library.
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "@activepieces/piece-apitemplate-io",
|
||||
"version": "0.0.7",
|
||||
"type": "commonjs",
|
||||
"main": "./src/index.js",
|
||||
"types": "./src/index.d.ts",
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"name": "pieces-apitemplate-io",
|
||||
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "packages/pieces/community/apitemplate-io/src",
|
||||
"projectType": "library",
|
||||
"release": {
|
||||
"version": {
|
||||
"manifestRootsToUpdate": [
|
||||
"dist/{projectRoot}"
|
||||
],
|
||||
"currentVersionResolver": "git-tag",
|
||||
"fallbackCurrentVersionResolver": "disk"
|
||||
}
|
||||
},
|
||||
"tags": [],
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nx/js:tsc",
|
||||
"outputs": [
|
||||
"{options.outputPath}"
|
||||
],
|
||||
"options": {
|
||||
"outputPath": "dist/packages/pieces/community/apitemplate-io",
|
||||
"tsConfig": "packages/pieces/community/apitemplate-io/tsconfig.lib.json",
|
||||
"packageJson": "packages/pieces/community/apitemplate-io/package.json",
|
||||
"main": "packages/pieces/community/apitemplate-io/src/index.ts",
|
||||
"assets": [
|
||||
"packages/pieces/community/apitemplate-io/*.md",
|
||||
{
|
||||
"input": "packages/pieces/community/apitemplate-io/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/apitemplate-io",
|
||||
"command": "bun install --no-save --silent"
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"Region": "Region",
|
||||
"API Key": "API-Schlüssel",
|
||||
"Select your preferred API region for better performance": "Wählen Sie Ihre bevorzugte API-Region für eine bessere Leistung",
|
||||
"Your APITemplate.io API key": "Ihr APITemplate.io API-Schlüssel",
|
||||
"Default (Singapore)": "Standard (Singapore)",
|
||||
"Europe (Frankfurt)": "Europa (Frankfurt)",
|
||||
"US East (N. Virginia)": "US-Osten (N. Virginia)",
|
||||
"Australia (Sydney)": "Australien (Sydney)",
|
||||
"Alternative - Default (Singapore)": "Alternative - Standard (Singapore)",
|
||||
"Alternative - Europe (Frankfurt)": "Alternative - Europa (Frankfurt)",
|
||||
"Alternative - US East (N. Virginia)": "Alternative - US East (N. Virginia)",
|
||||
"\nTo obtain your API key:\n1. Go to https://app.apitemplate.io/.\n2. Navigate to API Integration section.\n3. Copy your API key.\n\nSelect the region closest to your location for better performance.\n": "\nUm Ihren API-Schlüssel zu erhalten:\n1. Gehe zu https://app.apitemplate.io/.\n2. Navigiere zur API-Integration.\n3. Kopieren Sie Ihren API-Schlüssel.\n\nWählen Sie die Region aus, die Ihrem Standort am nächsten ist, um die Leistung zu verbessern.\n",
|
||||
"Create Image": "Bild erstellen",
|
||||
"Create PDF From HTML": "PDF aus HTML erstellen",
|
||||
"Create PDF From URL": "PDF von URL erstellen",
|
||||
"Create PDF": "PDF erstellen",
|
||||
"Delete Object": "Objekt löschen",
|
||||
"Get Account Information": "Kontoinformationen abrufen",
|
||||
"List Objects": "Listen-Objekte",
|
||||
"Custom API Call": "Eigener API-Aufruf",
|
||||
"Creates an image from a template with provided data.": "Erstellt ein Bild aus einer Vorlage mit den angegebenen Daten.",
|
||||
"Creates a PDF from HTML.": "Erstellt ein PDF aus HTML.",
|
||||
"Creates a PDF from a webpage URL.": "Erstellt ein PDF von einer Webseiten-URL.",
|
||||
"Creates a PDF from a template with provided data.": "Erstellt ein PDF aus einer Vorlage mit den bereitgestellten Daten.",
|
||||
"Deletes a generated PDF or image by its transaction reference or object ID.": "Löscht eine generierte PDF oder ein Bild durch die Transaktionsreferenz oder Objekt-ID.",
|
||||
"Retrieves account information including usage statistics and account details.": "Ruft Kontoinformationen einschließlich Nutzungsstatistiken und Kontodetails ab.",
|
||||
"Retrieves a list of generated PDFs and images with optional filtering": "Ruft eine Liste der generierten PDFs und Bilder mit optionaler Filterung ab",
|
||||
"Make a custom API call to a specific endpoint": "Einen benutzerdefinierten API-Aufruf an einen bestimmten Endpunkt machen",
|
||||
"Template ID": "Template-ID",
|
||||
"Template Data": "Vorlagendaten",
|
||||
"Generation Delay (ms)": "Generationsverzögerung (ms)",
|
||||
"External Reference ID": "Externe Referenz-ID",
|
||||
"HTML Content": "HTML-Inhalt",
|
||||
"CSS Styles": "CSS Styles",
|
||||
"Data for Templating": "Daten für Templates",
|
||||
"Expiration (minutes)": "Ablauf (Minuten)",
|
||||
"Page Size": "Einträge pro Seite",
|
||||
"Page Orientation": "Seitenausrichtung",
|
||||
"Margin Top (mm)": "Abstand oben (mm)",
|
||||
"Margin Bottom (mm)": "Rand unten (mm)",
|
||||
"Margin Left (mm)": "Rand links (mm)",
|
||||
"Margin Right (mm)": "Rand rechts (mm)",
|
||||
"Print Background": "Hintergrund drucken",
|
||||
"Header Font Size": "Header Font Size",
|
||||
"Display Header/Footer": "Header/Fußzeile anzeigen",
|
||||
"Custom Header HTML": "Eigener Header HTML",
|
||||
"Custom Footer HTML": "Eigener Footer HTML",
|
||||
"Scale": "Maßstab",
|
||||
"Wait Timeout (ms)": "Wartezeit (ms)",
|
||||
"URL": "URL",
|
||||
"Wait for Selector": "Warte auf Auswahl",
|
||||
"Viewport Width": "Viewport-Breite",
|
||||
"Viewport Height": "Viewport Höhe",
|
||||
"Full Page": "Vollseite",
|
||||
"Transaction Reference": "Transaktionsreferenz",
|
||||
"Limit": "Limit",
|
||||
"Offset": "Versatz",
|
||||
"Date From": "Datum ab",
|
||||
"Date To": "Datum bis",
|
||||
"Meta Filter": "Meta-Filter",
|
||||
"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)",
|
||||
"JSON data with overrides array to populate the template. Format: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.": "JSON-Daten mit überschreibt Array, um die Vorlage zu füllen. Format: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.",
|
||||
"Delay in milliseconds before PDF generation": "Verzögerung von Millisekunden vor der PDF-Generierung",
|
||||
"Specify an external reference ID for your own reference": "Geben Sie eine externe Referenz-ID für Ihre eigene Referenz an",
|
||||
"The HTML content to convert to PDF. Can include CSS styles and external resources.": "Der HTML-Inhalt zum Konvertieren in PDF. Kann CSS-Stile und externe Ressourcen enthalten.",
|
||||
"Optional CSS styles to apply to the HTML content. Can include inline styles or external stylesheets.": "Optionale CSS-Styles für den HTML-Inhalt. Kann Inline-Styles oder externe Stylesheets enthalten.",
|
||||
"Optional JSON data to use for templating the HTML content. Can include variables and dynamic content.": "Optionale JSON-Daten zur Vorlage des HTML-Inhalts. Kann Variablen und dynamische Inhalte enthalten.",
|
||||
"Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.": "Ablauf der generierten PDF in Minuten. Verwenden Sie 0 um dauerhaft zu speichern, oder 1-10080 Minuten (7 Tage), um Ablaufdatum anzugeben.",
|
||||
"PDF page size format": "PDF-Seitengrößenformat",
|
||||
"PDF page orientation": "PDF-Seitenausrichtung",
|
||||
"Top margin in millimeters": "Oberer Abstand in Millimetern",
|
||||
"Bottom margin in millimeters": "Unterer Rand in Millimetern",
|
||||
"Left margin in millimeters": "Linker Rand in Millimetern",
|
||||
"Right margin in millimeters": "Rechter Abstand in Millimetern",
|
||||
"Whether to print background graphics and colors": "Ob Hintergrundgrafiken und Farben gedruckt werden sollen",
|
||||
"Font size for header (e.g., \"9px\")": "Schriftgröße für Kopfzeile (z. B. \"9px\")",
|
||||
"Whether to display header and footer": "Zeigt Kopf- und Fußzeile an",
|
||||
"Custom HTML content for header": "Eigener HTML-Inhalt für Kopfzeile",
|
||||
"Custom HTML content for footer": "Eigener HTML-Inhalt für Fußzeile",
|
||||
"Scale factor for the PDF (0.1 to 2.0)": "Skalierungsfaktor für das PDF (0.1 bis 2.0)",
|
||||
"Time to wait before generating PDF (in milliseconds)": "Wartezeit, bevor PDF generiert wird (in Millisekunden)",
|
||||
"The URL of the webpage to convert to PDF": "Die URL der zu konvertierenden Webseite",
|
||||
"Time to wait for page to load before generating PDF (in milliseconds)": "Wartezeit bis Seite geladen wird, bevor PDF generiert wird (in Millisekunden)",
|
||||
"CSS selector to wait for before generating PDF (e.g., \".content-loaded\")": "CSS-Selektor, auf den gewartet wird, bevor PDF generiert wird (z.B. \".content loaded\")",
|
||||
"Browser viewport width in pixels (default: 1920)": "Breite des Browser-Viewport in Pixeln (Standard: 1920)",
|
||||
"Browser viewport height in pixels (default: 1080)": "Höhe des Browser-Viewport in Pixeln (Standard: 1080)",
|
||||
"Capture the full scrollable page": "Erfassen Sie die vollständige scrollbare Seite",
|
||||
"Select a transaction reference to filter objects.": "Wählen Sie eine Transaktionsreferenz aus, um Objekte zu filtern.",
|
||||
"Maximum number of objects to return (default: 300, max: 300)": "Maximale Anzahl der zurückzugebenden Objekte (Standard: 300, max: 300)",
|
||||
"Number of objects to skip for pagination (default: 0)": "Anzahl zu überspringender Objekte (Standard: 0)",
|
||||
"Filter objects by template ID (optional)": "Objekte nach Template-ID filtern (optional)",
|
||||
"Filter by specific transaction reference (optional)": "Nach einer bestimmten Transaktionsreferenz filtern (optional)",
|
||||
"Start date for filtering (YYYY-MM-DD format, optional)": "Startdatum für die Filterung (JJJJJ-MM-TT Format, optional)",
|
||||
"End date for filtering (YYYY-MM-DD format, optional)": "Enddatum für die Filterung (JJJJ-MM-TT Format, optional)",
|
||||
"Filter by external reference ID (meta field)": "Nach externer Referenz-ID filtern (Meta-Feld)",
|
||||
"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..",
|
||||
"A4": "A4",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"Letter": "Brief",
|
||||
"Legal": "Rechtlich",
|
||||
"Tabloid": "Tabloid",
|
||||
"Portrait": "Hochformat",
|
||||
"Landscape": "Querformat",
|
||||
"GET": "ERHALTEN",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "LÖSCHEN",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"Region": "Región",
|
||||
"API Key": "Clave API",
|
||||
"Select your preferred API region for better performance": "Seleccione su región API preferida para un mejor rendimiento",
|
||||
"Your APITemplate.io API key": "Su clave API APITemplate.io",
|
||||
"Default (Singapore)": "Por defecto (Singapore)",
|
||||
"Europe (Frankfurt)": "Europa (<28>)",
|
||||
"US East (N. Virginia)": "EEUU Este (N. Virginia)",
|
||||
"Australia (Sydney)": "Australia (Sydney)",
|
||||
"Alternative - Default (Singapore)": "Alternativo - Predeterminado (Singapore)",
|
||||
"Alternative - Europe (Frankfurt)": "Alternativo - Europa (named@@0)",
|
||||
"Alternative - US East (N. Virginia)": "Alternativo - EEUU Este (N. Virginia)",
|
||||
"\nTo obtain your API key:\n1. Go to https://app.apitemplate.io/.\n2. Navigate to API Integration section.\n3. Copy your API key.\n\nSelect the region closest to your location for better performance.\n": "\nTo obtain your API key:\n1. Go to https://app.apitemplate.io/.\n2. Navigate to API Integration section.\n3. Copy your API key.\n\nSelect the region closest to your location for better performance.\n",
|
||||
"Create Image": "Crear imagen",
|
||||
"Create PDF From HTML": "Crear PDF desde HTML",
|
||||
"Create PDF From URL": "Crear PDF desde URL",
|
||||
"Create PDF": "Crear PDF",
|
||||
"Delete Object": "Eliminar objeto",
|
||||
"Get Account Information": "Obtener información de la cuenta",
|
||||
"List Objects": "Lista de objetos",
|
||||
"Custom API Call": "Llamada API personalizada",
|
||||
"Creates an image from a template with provided data.": "Crea una imagen desde una plantilla con los datos proporcionados.",
|
||||
"Creates a PDF from HTML.": "Crea un PDF desde HTML.",
|
||||
"Creates a PDF from a webpage URL.": "Crea un PDF desde una URL de página web.",
|
||||
"Creates a PDF from a template with provided data.": "Crea un PDF desde una plantilla con los datos proporcionados.",
|
||||
"Deletes a generated PDF or image by its transaction reference or object ID.": "Elimina un PDF o imagen generado por su referencia de transacción u objeto ID.",
|
||||
"Retrieves account information including usage statistics and account details.": "Recuperar información de la cuenta, incluyendo estadísticas de uso y detalles de la cuenta.",
|
||||
"Retrieves a list of generated PDFs and images with optional filtering": "Recuperar una lista de PDFs e imágenes generadas con filtrado opcional",
|
||||
"Make a custom API call to a specific endpoint": "Hacer una llamada API personalizada a un extremo específico",
|
||||
"Template ID": "ID de plantilla",
|
||||
"Template Data": "Datos de plantilla",
|
||||
"Generation Delay (ms)": "Retraso de generación (ms)",
|
||||
"External Reference ID": "ID de referencia externa",
|
||||
"HTML Content": "Contenido HTML",
|
||||
"CSS Styles": "CSS Styles",
|
||||
"Data for Templating": "Datos de Plantilla",
|
||||
"Expiration (minutes)": "Caducidad (minutos)",
|
||||
"Page Size": "Tamaño de página",
|
||||
"Page Orientation": "Orientación de página",
|
||||
"Margin Top (mm)": "Margen superior (mm)",
|
||||
"Margin Bottom (mm)": "Margen Inferior (mm)",
|
||||
"Margin Left (mm)": "Margen izquierdo (mm)",
|
||||
"Margin Right (mm)": "Margen Derecha (mm)",
|
||||
"Print Background": "Imprimir fondo",
|
||||
"Header Font Size": "Header Font Size",
|
||||
"Display Header/Footer": "Mostrar cabeza/pie de página",
|
||||
"Custom Header HTML": "HTML cabecera personalizada",
|
||||
"Custom Footer HTML": "HTML del pie de página personalizado",
|
||||
"Scale": "Escala",
|
||||
"Wait Timeout (ms)": "Esperar tiempo agotado (ms)",
|
||||
"URL": "URL",
|
||||
"Wait for Selector": "Esperar al Selector",
|
||||
"Viewport Width": "Ancho de vista",
|
||||
"Viewport Height": "Vista Altura",
|
||||
"Full Page": "Página completa",
|
||||
"Transaction Reference": "Referencia de la transacción",
|
||||
"Limit": "Límite",
|
||||
"Offset": "Desplazamiento",
|
||||
"Date From": "Fecha de",
|
||||
"Date To": "Fecha hasta",
|
||||
"Meta Filter": "Meta Filtro",
|
||||
"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)",
|
||||
"JSON data with overrides array to populate the template. Format: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.": "Datos JSON con matriz de sobreescritura para rellenar la plantilla. Formato: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.",
|
||||
"Delay in milliseconds before PDF generation": "Retraso en milisegundos antes de la generación de PDF",
|
||||
"Specify an external reference ID for your own reference": "Especifique un ID de referencia externa para su propia referencia",
|
||||
"The HTML content to convert to PDF. Can include CSS styles and external resources.": "El contenido HTML para convertir a PDF. Puede incluir estilos CSS y recursos externos.",
|
||||
"Optional CSS styles to apply to the HTML content. Can include inline styles or external stylesheets.": "Estilos CSS opcionales para aplicar al contenido HTML. Puede incluir estilos en línea o hojas de estilo externas.",
|
||||
"Optional JSON data to use for templating the HTML content. Can include variables and dynamic content.": "Datos JSON opcionales a usar para plantillas del contenido HTML. Puede incluir variables y contenido dinámico.",
|
||||
"Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.": "Expiración del PDF generado en minutos. Utilice 0 para almacenar permanentemente, o 1-10080 minutos (7 días) para especificar la caducidad.",
|
||||
"PDF page size format": "Formato de tamaño de página PDF",
|
||||
"PDF page orientation": "Orientación de la página PDF",
|
||||
"Top margin in millimeters": "Margen superior en milímetros",
|
||||
"Bottom margin in millimeters": "Margen inicial en milímetros",
|
||||
"Left margin in millimeters": "Margen izquierdo en milímetros",
|
||||
"Right margin in millimeters": "Margen derecho en milímetros",
|
||||
"Whether to print background graphics and colors": "Imprimir gráficos de fondo y colores",
|
||||
"Font size for header (e.g., \"9px\")": "Tamaño de fuente para la cabecera (por ej., \"9px\")",
|
||||
"Whether to display header and footer": "Mostrar cabecera y pie de página",
|
||||
"Custom HTML content for header": "Contenido HTML personalizado para el encabezado",
|
||||
"Custom HTML content for footer": "Contenido HTML personalizado para pie de página",
|
||||
"Scale factor for the PDF (0.1 to 2.0)": "Factor de escala para el PDF (0.1 a 2.0)",
|
||||
"Time to wait before generating PDF (in milliseconds)": "Tiempo de espera antes de generar PDF (en milisegundos)",
|
||||
"The URL of the webpage to convert to PDF": "La URL de la página web para convertir a PDF",
|
||||
"Time to wait for page to load before generating PDF (in milliseconds)": "Tiempo de espera para cargar la página antes de generar PDF (en milisegundos)",
|
||||
"CSS selector to wait for before generating PDF (e.g., \".content-loaded\")": "Selector CSS a esperar antes de generar PDF (por ejemplo, \".content-loaded\")",
|
||||
"Browser viewport width in pixels (default: 1920)": "Ancho de la vista del navegador en píxeles (por defecto: 1920)",
|
||||
"Browser viewport height in pixels (default: 1080)": "Altura de la vista del navegador en píxeles (por defecto: 1080)",
|
||||
"Capture the full scrollable page": "Capturar la página desplegable",
|
||||
"Select a transaction reference to filter objects.": "Seleccione una referencia de transacción para filtrar objetos.",
|
||||
"Maximum number of objects to return (default: 300, max: 300)": "Número máximo de objetos a devolver (por defecto: 300, máximo: 300)",
|
||||
"Number of objects to skip for pagination (default: 0)": "Número de objetos a omitir para la paginación (por defecto: 0)",
|
||||
"Filter objects by template ID (optional)": "Filtrar objetos por ID de plantilla (opcional)",
|
||||
"Filter by specific transaction reference (optional)": "Filtrar por referencia de transacción específica (opcional)",
|
||||
"Start date for filtering (YYYY-MM-DD format, optional)": "Fecha de inicio para el filtrado (formato AAA-MM-DD, opcional)",
|
||||
"End date for filtering (YYYY-MM-DD format, optional)": "Fecha de fin del filtrado (formato AAA-MM-DD, opcional)",
|
||||
"Filter by external reference ID (meta field)": "Filtrar por ID de referencia externa (meta campo)",
|
||||
"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.",
|
||||
"A4": "R4",
|
||||
"A3": "R3",
|
||||
"A5": "R5",
|
||||
"Letter": "Letra",
|
||||
"Legal": "Legal",
|
||||
"Tabloid": "Tabloide",
|
||||
"Portrait": "Retrato",
|
||||
"Landscape": "Paisaje",
|
||||
"GET": "RECOGER",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "BORRAR",
|
||||
"HEAD": "LIMPIO"
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"Region": "Région",
|
||||
"API Key": "Clé API",
|
||||
"Select your preferred API region for better performance": "Sélectionnez votre région API préférée pour de meilleures performances",
|
||||
"Your APITemplate.io API key": "Votre clé API APITemplate.io",
|
||||
"Default (Singapore)": "Par défaut (Singapore)",
|
||||
"Europe (Frankfurt)": "L'Europe (Francfort)",
|
||||
"US East (N. Virginia)": "US East (N. Virginie)",
|
||||
"Australia (Sydney)": "Australie (Sydney)",
|
||||
"Alternative - Default (Singapore)": "Alternative - Défaut (Singapore)",
|
||||
"Alternative - Europe (Frankfurt)": "Alternative - Europe (Francfort)",
|
||||
"Alternative - US East (N. Virginia)": "Alternative - US East (N. Virginie)",
|
||||
"\nTo obtain your API key:\n1. Go to https://app.apitemplate.io/.\n2. Navigate to API Integration section.\n3. Copy your API key.\n\nSelect the region closest to your location for better performance.\n": "\nTo obtain your API key:\n1. Go to https://app.apitemplate.io/.\n2. Navigate to API Integration section.\n3. Copy your API key.\n\nSelect the region closest to your location for better performance.\n",
|
||||
"Create Image": "Créer une image",
|
||||
"Create PDF From HTML": "Créer un PDF à partir du HTML",
|
||||
"Create PDF From URL": "Créer un PDF à partir d'une URL",
|
||||
"Create PDF": "Créer un PDF",
|
||||
"Delete Object": "Supprimer l'objet",
|
||||
"Get Account Information": "Obtenir les informations du compte",
|
||||
"List Objects": "Lister les objets",
|
||||
"Custom API Call": "Appel d'API personnalisé",
|
||||
"Creates an image from a template with provided data.": "Crée une image à partir d'un modèle avec les données fournies.",
|
||||
"Creates a PDF from HTML.": "Crée un PDF à partir du HTML.",
|
||||
"Creates a PDF from a webpage URL.": "Crée un PDF à partir d'une URL de page web.",
|
||||
"Creates a PDF from a template with provided data.": "Crée un PDF à partir d'un modèle avec les données fournies.",
|
||||
"Deletes a generated PDF or image by its transaction reference or object ID.": "Supprime un PDF ou une image généré par sa référence de transaction ou son ID d'objet.",
|
||||
"Retrieves account information including usage statistics and account details.": "Récupère les informations du compte y compris les statistiques d'utilisation et les détails du compte.",
|
||||
"Retrieves a list of generated PDFs and images with optional filtering": "Récupère une liste de PDFs générés et d'images avec filtrage facultatif",
|
||||
"Make a custom API call to a specific endpoint": "Passer un appel API personnalisé à un endpoint spécifique",
|
||||
"Template ID": "ID du modèle",
|
||||
"Template Data": "Données du modèle",
|
||||
"Generation Delay (ms)": "Délai de génération (ms)",
|
||||
"External Reference ID": "ID de référence externe",
|
||||
"HTML Content": "Contenu HTML",
|
||||
"CSS Styles": "CSS Styles",
|
||||
"Data for Templating": "Données pour le modèle",
|
||||
"Expiration (minutes)": "Expiration (minutes)",
|
||||
"Page Size": "Nombre d'élément",
|
||||
"Page Orientation": "Orientation de la page",
|
||||
"Margin Top (mm)": "Marge Haut (mm)",
|
||||
"Margin Bottom (mm)": "Marge inférieure (mm)",
|
||||
"Margin Left (mm)": "Marge gauche (mm)",
|
||||
"Margin Right (mm)": "Marge droite (mm)",
|
||||
"Print Background": "Imprimer l'arrière-plan",
|
||||
"Header Font Size": "Header Font Size",
|
||||
"Display Header/Footer": "Afficher en-tête/pied de page",
|
||||
"Custom Header HTML": "En-tête personnalisé HTML",
|
||||
"Custom Footer HTML": "Pied de page HTML personnalisé",
|
||||
"Scale": "Échelle",
|
||||
"Wait Timeout (ms)": "Délai d'attente (ms)",
|
||||
"URL": "URL",
|
||||
"Wait for Selector": "Attendre le sélecteur",
|
||||
"Viewport Width": "Largeur de la fenêtre",
|
||||
"Viewport Height": "Hauteur de la fenêtre d'affichage",
|
||||
"Full Page": "Page complète",
|
||||
"Transaction Reference": "Référence de la transaction",
|
||||
"Limit": "Limite",
|
||||
"Offset": "Décalage",
|
||||
"Date From": "Date de début",
|
||||
"Date To": "Date de fin",
|
||||
"Meta Filter": "Filtre Meta",
|
||||
"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'expiration (en secondes)",
|
||||
"JSON data with overrides array to populate the template. Format: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.": "Les données JSON avec un tableau surchargeant le modèle. Format: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.",
|
||||
"Delay in milliseconds before PDF generation": "Délai en millisecondes avant la génération de PDF",
|
||||
"Specify an external reference ID for your own reference": "Spécifiez un ID de référence externe pour votre propre référence",
|
||||
"The HTML content to convert to PDF. Can include CSS styles and external resources.": "Le contenu HTML à convertir en PDF. Peut inclure les styles CSS et les ressources externes.",
|
||||
"Optional CSS styles to apply to the HTML content. Can include inline styles or external stylesheets.": "Style CSS optionnel à appliquer au contenu HTML. Peut inclure des styles inline ou des feuilles de style externes.",
|
||||
"Optional JSON data to use for templating the HTML content. Can include variables and dynamic content.": "Données JSON optionnelles à utiliser pour modéliser le contenu HTML. Peut inclure des variables et du contenu dynamique.",
|
||||
"Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.": "Expiration du PDF généré en minutes. Utilisez 0 pour stocker de manière permanente, ou 1-10080 minutes (7 jours) pour spécifier l'expiration.",
|
||||
"PDF page size format": "Format de la taille de la page PDF",
|
||||
"PDF page orientation": "Orientation de la page PDF",
|
||||
"Top margin in millimeters": "Marge supérieure en millimètres",
|
||||
"Bottom margin in millimeters": "Marge inférieure en millimètres",
|
||||
"Left margin in millimeters": "Marge gauche en millimètres",
|
||||
"Right margin in millimeters": "Marge droite en millimètres",
|
||||
"Whether to print background graphics and colors": "Imprimer ou non les graphismes et couleurs d'arrière-plan",
|
||||
"Font size for header (e.g., \"9px\")": "Taille de la police pour l'en-tête (par exemple, \"9px\")",
|
||||
"Whether to display header and footer": "Afficher/Masquer l'en-tête et le pied de page",
|
||||
"Custom HTML content for header": "Contenu HTML personnalisé pour l'en-tête",
|
||||
"Custom HTML content for footer": "Contenu HTML personnalisé pour le pied de page",
|
||||
"Scale factor for the PDF (0.1 to 2.0)": "Facteur d'échelle pour le PDF (0.1 à 2.0)",
|
||||
"Time to wait before generating PDF (in milliseconds)": "Temps d'attente avant de générer le PDF (en millisecondes)",
|
||||
"The URL of the webpage to convert to PDF": "L'URL de la page Web à convertir en PDF",
|
||||
"Time to wait for page to load before generating PDF (in milliseconds)": "Temps d'attente avant le chargement de la page avant de générer le PDF (en millisecondes)",
|
||||
"CSS selector to wait for before generating PDF (e.g., \".content-loaded\")": "Sélecteur CSS à attendre avant de générer des PDF (par exemple, \".content-chargé\")",
|
||||
"Browser viewport width in pixels (default: 1920)": "Largeur de la fenêtre du navigateur en pixels (par défaut: 1920)",
|
||||
"Browser viewport height in pixels (default: 1080)": "Hauteur de la fenêtre du navigateur en pixels (par défaut: 1080)",
|
||||
"Capture the full scrollable page": "Capturer la page défilante complète",
|
||||
"Select a transaction reference to filter objects.": "Sélectionnez une référence de transaction pour filtrer les objets.",
|
||||
"Maximum number of objects to return (default: 300, max: 300)": "Nombre maximum d'objets à retourner (par défaut: 300, max: 300)",
|
||||
"Number of objects to skip for pagination (default: 0)": "Nombre d'objets à ignorer pour la pagination (par défaut: 0)",
|
||||
"Filter objects by template ID (optional)": "Filtrer les objets par ID de modèle (facultatif)",
|
||||
"Filter by specific transaction reference (optional)": "Filtrer par référence de transaction spécifique (facultatif)",
|
||||
"Start date for filtering (YYYY-MM-DD format, optional)": "Date de début pour le filtrage (format AAAA-MM-JJ, optionnel)",
|
||||
"End date for filtering (YYYY-MM-DD format, optional)": "Date de fin de filtrage (format AAAA-MM-JJ, optionnel)",
|
||||
"Filter by external reference ID (meta field)": "Filtrer par ID de référence externe (champ meta)",
|
||||
"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 PDF, les images, etc.",
|
||||
"A4": "A4",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"Letter": "Lettre",
|
||||
"Legal": "Mentions légales",
|
||||
"Tabloid": "Tabloïde",
|
||||
"Portrait": "Portrait",
|
||||
"Landscape": "Paysage",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"Region": "地域",
|
||||
"API Key": "API キー",
|
||||
"Select your preferred API region for better performance": "パフォーマンスを向上させるために、ご希望の API リージョンを選択してください",
|
||||
"Your APITemplate.io API key": "APITemplate.io APIキー",
|
||||
"Default (Singapore)": "デフォルト (シンガポール)",
|
||||
"Europe (Frankfurt)": "ヨーロッパ (フランクフルト)",
|
||||
"US East (N. Virginia)": "US East (バージニア州)",
|
||||
"Australia (Sydney)": "オーストラリア (シドニー)",
|
||||
"Alternative - Default (Singapore)": "Alternative - デフォルト (シンガポール)",
|
||||
"Alternative - Europe (Frankfurt)": "Alternative - Europe(フランクフルト)",
|
||||
"Alternative - US East (N. Virginia)": "代替 - 米国東部(バージニア州)",
|
||||
"\nTo obtain your API key:\n1. Go to https://app.apitemplate.io/.\n2. Navigate to API Integration section.\n3. Copy your API key.\n\nSelect the region closest to your location for better performance.\n": "\nAPIキーを取得するには:\n1. https://app.apitemplate.io/.\n2. API統合セクションに移動します。\n3. APIキーをコピーします。\n\nパフォーマンスを向上させるために、あなたの場所に最も近い地域を選択します。\n",
|
||||
"Create Image": "画像を作成",
|
||||
"Create PDF From HTML": "HTMLからPDFを作成",
|
||||
"Create PDF From URL": "URLからPDFを作成",
|
||||
"Create PDF": "PDFを作成",
|
||||
"Delete Object": "オブジェクトを削除",
|
||||
"Get Account Information": "アカウント情報を取得",
|
||||
"List Objects": "オブジェクトの一覧",
|
||||
"Custom API Call": "カスタムAPI通話",
|
||||
"Creates an image from a template with provided data.": "指定されたデータでテンプレートから画像を作成します。",
|
||||
"Creates a PDF from HTML.": "HTML から PDF を作成します。",
|
||||
"Creates a PDF from a webpage URL.": "Web ページの URL から PDF を作成します。",
|
||||
"Creates a PDF from a template with provided data.": "指定されたデータを含むテンプレートからPDFを作成します。",
|
||||
"Deletes a generated PDF or image by its transaction reference or object ID.": "トランザクション参照またはオブジェクト ID によって生成された PDF または画像を削除します。",
|
||||
"Retrieves account information including usage statistics and account details.": "使用状況の統計とアカウントの詳細を含むアカウント情報を取得します。",
|
||||
"Retrieves a list of generated PDFs and images with optional filtering": "オプションのフィルタリングで生成されたPDFと画像のリストを取得します",
|
||||
"Make a custom API call to a specific endpoint": "特定のエンドポイントへのカスタム API コールを実行します。",
|
||||
"Template ID": "テンプレートID",
|
||||
"Template Data": "テンプレートデータ",
|
||||
"Generation Delay (ms)": "生成遅延 (ミリ秒)",
|
||||
"External Reference ID": "外部参照ID",
|
||||
"HTML Content": "HTML コンテンツ",
|
||||
"CSS Styles": "CSS Styles",
|
||||
"Data for Templating": "テンプレートのデータ",
|
||||
"Expiration (minutes)": "有効期限 (分)",
|
||||
"Page Size": "ページサイズ",
|
||||
"Page Orientation": "ページの向き",
|
||||
"Margin Top (mm)": "マージントップ(mm)",
|
||||
"Margin Bottom (mm)": "下部証拠金 (mm)",
|
||||
"Margin Left (mm)": "左マージン(mm)",
|
||||
"Margin Right (mm)": "右マージン(mm)",
|
||||
"Print Background": "背景を印刷",
|
||||
"Header Font Size": "Header Font Size",
|
||||
"Display Header/Footer": "ヘッダー/フッター",
|
||||
"Custom Header HTML": "カスタムヘッダーHTML",
|
||||
"Custom Footer HTML": "カスタムフッターHTML",
|
||||
"Scale": "拡大縮小",
|
||||
"Wait Timeout (ms)": "待機タイムアウト (ms)",
|
||||
"URL": "URL",
|
||||
"Wait for Selector": "セレクターを待つ",
|
||||
"Viewport Width": "ビューポートの幅",
|
||||
"Viewport Height": "ビューポートの高さ",
|
||||
"Full Page": "全ページ",
|
||||
"Transaction Reference": "取引の参照",
|
||||
"Limit": "制限",
|
||||
"Offset": "オフセット",
|
||||
"Date From": "開始日",
|
||||
"Date To": "終了日",
|
||||
"Meta Filter": "メタフィルタ",
|
||||
"Method": "方法",
|
||||
"Headers": "ヘッダー",
|
||||
"Query Parameters": "クエリパラメータ",
|
||||
"Body": "本文",
|
||||
"Response is Binary ?": "応答はバイナリですか?",
|
||||
"No Error on Failure": "失敗時にエラーはありません",
|
||||
"Timeout (in seconds)": "タイムアウト(秒)",
|
||||
"JSON data with overrides array to populate the template. Format: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.": "テンプレートを追加するための配列をオーバーライドするJSONデータ。フォーマット: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.",
|
||||
"Delay in milliseconds before PDF generation": "PDF生成までの遅延時間",
|
||||
"Specify an external reference ID for your own reference": "外部参照IDを指定してください",
|
||||
"The HTML content to convert to PDF. Can include CSS styles and external resources.": "PDFに変換するHTMLコンテンツ。CSSスタイルと外部リソースを含めることができます。",
|
||||
"Optional CSS styles to apply to the HTML content. Can include inline styles or external stylesheets.": "HTML コンテンツに適用する任意の CSS スタイル。インラインスタイルまたは外部スタイルシートを含めることができます。",
|
||||
"Optional JSON data to use for templating the HTML content. Can include variables and dynamic content.": "HTMLコンテンツのテンプレートに使用する任意のJSONデータ。変数と動的コンテンツを含めることができます。",
|
||||
"Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.": "生成されたPDFの有効期限を分単位で指定します。0を指定すると永久保存、または1-10080分(7日)を指定します。",
|
||||
"PDF page size format": "PDF ページサイズフォーマット",
|
||||
"PDF page orientation": "PDF ページの向き",
|
||||
"Top margin in millimeters": "ミリメートル単位の上マージン数",
|
||||
"Bottom margin in millimeters": "下マージン(ミリメートル単位)",
|
||||
"Left margin in millimeters": "ミリメートル単位の左マージン。",
|
||||
"Right margin in millimeters": "ミリメートル単位の右マージンです。",
|
||||
"Whether to print background graphics and colors": "背景画像と色を印刷するかどうか",
|
||||
"Font size for header (e.g., \"9px\")": "ヘッダのフォントサイズ(例:\"9px\")",
|
||||
"Whether to display header and footer": "ヘッダーとフッターを表示する",
|
||||
"Custom HTML content for header": "ヘッダーのHTMLコンテンツ",
|
||||
"Custom HTML content for footer": "フッター用のカスタムHTMLコンテンツ",
|
||||
"Scale factor for the PDF (0.1 to 2.0)": "PDFのスケール係数 (0.1 から 2.0)",
|
||||
"Time to wait before generating PDF (in milliseconds)": "PDF生成までの待機時間 (ミリ秒)",
|
||||
"The URL of the webpage to convert to PDF": "PDFに変換するウェブページのURL",
|
||||
"Time to wait for page to load before generating PDF (in milliseconds)": "PDFを生成する前にページの読み込みを待つ時間 (ミリ秒)",
|
||||
"CSS selector to wait for before generating PDF (e.g., \".content-loaded\")": "PDFを生成する前に待機するCSSセレクタ(例:\".content-loaded\")",
|
||||
"Browser viewport width in pixels (default: 1920)": "ブラウザービューポートの幅(ピクセル単位)(デフォルト:1920)",
|
||||
"Browser viewport height in pixels (default: 1080)": "ブラウザのビューポートの高さ(デフォルト:1080)",
|
||||
"Capture the full scrollable page": "スクロール可能な全ページをキャプチャする",
|
||||
"Select a transaction reference to filter objects.": "フィルタオブジェクトのトランザクション参照を選択します。",
|
||||
"Maximum number of objects to return (default: 300, max: 300)": "返すオブジェクトの最大数(デフォルト:300、最大:300)",
|
||||
"Number of objects to skip for pagination (default: 0)": "ページネーションをスキップするオブジェクトの数 (デフォルト: 0)",
|
||||
"Filter objects by template ID (optional)": "テンプレート ID でオブジェクトを絞り込みます (オプション)",
|
||||
"Filter by specific transaction reference (optional)": "特定のトランザクション参照でフィルター (オプション)",
|
||||
"Start date for filtering (YYYY-MM-DD format, optional)": "フィルタの開始日 (YYYY-MM-DD形式、任意)",
|
||||
"End date for filtering (YYYY-MM-DD format, optional)": "フィルタリングの終了日 (YYYY-MM-DD形式、任意)",
|
||||
"Filter by external reference ID (meta field)": "外部参照IDでフィルター (メタフィールド)",
|
||||
"Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
|
||||
"Enable for files like PDFs, images, etc..": "PDF、画像などのファイルを有効にします。",
|
||||
"A4": "A4",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"Letter": "手紙",
|
||||
"Legal": "Legal",
|
||||
"Tabloid": "タブロイド",
|
||||
"Portrait": "縦向き",
|
||||
"Landscape": "ランドスケープ",
|
||||
"GET": "取得",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "削除",
|
||||
"HEAD": "頭"
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"Region": "Regio",
|
||||
"API Key": "API Sleutel",
|
||||
"Select your preferred API region for better performance": "Selecteer uw gewenste API-regio voor betere prestaties",
|
||||
"Your APITemplate.io API key": "Uw APITemplate.io API-sleutel",
|
||||
"Default (Singapore)": "Standaard (Singapore)",
|
||||
"Europe (Frankfurt)": "Europa (Frankfurt)",
|
||||
"US East (N. Virginia)": "VS Oost (N. Virginia)",
|
||||
"Australia (Sydney)": "Australië (Sydney)",
|
||||
"Alternative - Default (Singapore)": "Alternatief - Standaard (Singapore)",
|
||||
"Alternative - Europe (Frankfurt)": "Alternatief - Europa (Frankfurt)",
|
||||
"Alternative - US East (N. Virginia)": "Alternatief - US Oost (N. Virginia)",
|
||||
"\nTo obtain your API key:\n1. Go to https://app.apitemplate.io/.\n2. Navigate to API Integration section.\n3. Copy your API key.\n\nSelect the region closest to your location for better performance.\n": "\nOm je API-sleutel te verkrijgen:\n1. Ga naar https://app.apitemplate.io/.\n2. Navigeer naar de API integratie sectie.\n3. Kopieer uw API-sleutel.\n\nSelecteer de regio die het dichtst bij uw locatie staat voor betere prestaties.\n",
|
||||
"Create Image": "Afbeelding aanmaken",
|
||||
"Create PDF From HTML": "PDF maken van HTML",
|
||||
"Create PDF From URL": "PDF maken vanaf URL",
|
||||
"Create PDF": "PDF maken",
|
||||
"Delete Object": "Object verwijderen",
|
||||
"Get Account Information": "Accountgegevens ophalen",
|
||||
"List Objects": "Toon objecten",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Creates an image from a template with provided data.": "Maakt een afbeelding van een sjabloon met verstrekte gegevens.",
|
||||
"Creates a PDF from HTML.": "Maakt een PDF van HTML.",
|
||||
"Creates a PDF from a webpage URL.": "Maakt een PDF van een webpagina-URL.",
|
||||
"Creates a PDF from a template with provided data.": "Maakt een PDF van een template met verstrekte gegevens.",
|
||||
"Deletes a generated PDF or image by its transaction reference or object ID.": "Verwijdert een gegenereerde PDF of afbeelding met de transactiereferentie of object ID.",
|
||||
"Retrieves account information including usage statistics and account details.": "Ophalen van accountinformatie inclusief gebruiksstatistieken en accountgegevens.",
|
||||
"Retrieves a list of generated PDFs and images with optional filtering": "Ophalen van een lijst met gegenereerde PDF's en afbeeldingen met optionele filtering",
|
||||
"Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
|
||||
"Template ID": "Sjabloon ID",
|
||||
"Template Data": "Sjabloon gegevens",
|
||||
"Generation Delay (ms)": "Generatie Vertraging (ms)",
|
||||
"External Reference ID": "Externe referentie ID",
|
||||
"HTML Content": "HTML inhoud",
|
||||
"CSS Styles": "CSS Styles",
|
||||
"Data for Templating": "Data voor Templating",
|
||||
"Expiration (minutes)": "Vervaldatum (minuten)",
|
||||
"Page Size": "Paginagrootte",
|
||||
"Page Orientation": "Pagina oriëntatie",
|
||||
"Margin Top (mm)": "Marge boven (mm)",
|
||||
"Margin Bottom (mm)": "Marge onderkant (mm)",
|
||||
"Margin Left (mm)": "Rand links (mm)",
|
||||
"Margin Right (mm)": "Marge rechts (mm)",
|
||||
"Print Background": "Achtergrond afdrukken",
|
||||
"Header Font Size": "Header Font Size",
|
||||
"Display Header/Footer": "Kop- en voettekst weergeven",
|
||||
"Custom Header HTML": "Aangepaste koptekst HTML",
|
||||
"Custom Footer HTML": "Aangepaste voettekst HTML",
|
||||
"Scale": "Schaal",
|
||||
"Wait Timeout (ms)": "Wacht time-out (ms)",
|
||||
"URL": "URL",
|
||||
"Wait for Selector": "Wacht op selector",
|
||||
"Viewport Width": "Weergave breedte",
|
||||
"Viewport Height": "Viewport hoogte",
|
||||
"Full Page": "Volledige pagina",
|
||||
"Transaction Reference": "Transactie referentie",
|
||||
"Limit": "Limiet",
|
||||
"Offset": "Verschuiving",
|
||||
"Date From": "Datum vanaf",
|
||||
"Date To": "Datum tot",
|
||||
"Meta Filter": "Meta filter",
|
||||
"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)",
|
||||
"JSON data with overrides array to populate the template. Format: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.": "JSON-gegevens met overrides array om het sjabloon te vullen. Formaat: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}}.",
|
||||
"Delay in milliseconds before PDF generation": "Vertraging in milliseconden voor PDF-generatie",
|
||||
"Specify an external reference ID for your own reference": "Geef een extern referentie-ID op voor uw eigen referentie",
|
||||
"The HTML content to convert to PDF. Can include CSS styles and external resources.": "De HTML-inhoud om te converteren naar PDF. Kan CSS-stijlen en externe bronnen bevatten.",
|
||||
"Optional CSS styles to apply to the HTML content. Can include inline styles or external stylesheets.": "Optionele CSS stijlen om toe te passen op de HTML inhoud. Kan inline stijlen of externe stylesheets bevatten.",
|
||||
"Optional JSON data to use for templating the HTML content. Can include variables and dynamic content.": "Optionele JSON-gegevens om de HTML-inhoud te templen. Kan variabelen en dynamische inhoud bevatten.",
|
||||
"Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.": "Vervaldatum van de gegenereerde PDF in minuten. Gebruik 0 om permanent op te slaan, of 1-10080 minuten (7 dagen) om de vervaldatum op te geven.",
|
||||
"PDF page size format": "PDF paginagrootte formaat",
|
||||
"PDF page orientation": "PDF pagina oriëntatie",
|
||||
"Top margin in millimeters": "Hoogste marge in millimeters",
|
||||
"Bottom margin in millimeters": "Onderste marge in millimeters",
|
||||
"Left margin in millimeters": "Linker marge in millimeters",
|
||||
"Right margin in millimeters": "Rechter marge in millimeters",
|
||||
"Whether to print background graphics and colors": "Afdrukken van achtergrond afbeeldingen en kleuren",
|
||||
"Font size for header (e.g., \"9px\")": "Tekengrootte voor header (bijv. \"9px\")",
|
||||
"Whether to display header and footer": "Of de voettekst en koptekst getoond worden",
|
||||
"Custom HTML content for header": "Aangepaste HTML-inhoud voor koptekst",
|
||||
"Custom HTML content for footer": "Aangepaste HTML-inhoud voor voettekst",
|
||||
"Scale factor for the PDF (0.1 to 2.0)": "Schaalfactor voor de PDF (0.1 tot 2.0)",
|
||||
"Time to wait before generating PDF (in milliseconds)": "Wachttijd voordat PDF wordt gegenereerd (in milliseconden)",
|
||||
"The URL of the webpage to convert to PDF": "De URL van de webpagina om te converteren naar PDF",
|
||||
"Time to wait for page to load before generating PDF (in milliseconds)": "Tijd om te wachten tot de pagina te laden voordat de PDF wordt gegenereerd (in milliseconden)",
|
||||
"CSS selector to wait for before generating PDF (e.g., \".content-loaded\")": "CSS-selector die wacht voor het genereren van PDF (bijv. \".content-loaded\")",
|
||||
"Browser viewport width in pixels (default: 1920)": "Browserviewport breedte in pixels (standaard: 1920)",
|
||||
"Browser viewport height in pixels (default: 1080)": "Browser viewport hoogte in pixels (standaard: 1080)",
|
||||
"Capture the full scrollable page": "Sla de volledige scrollbare pagina op",
|
||||
"Select a transaction reference to filter objects.": "Selecteer een transactiereferentie om objecten te filteren.",
|
||||
"Maximum number of objects to return (default: 300, max: 300)": "Maximum aantal te retourneren objecten (standaard: 300, max: 300)",
|
||||
"Number of objects to skip for pagination (default: 0)": "Aantal objecten om over te slaan voor paginering (standaard: 0)",
|
||||
"Filter objects by template ID (optional)": "Objecten filteren op template ID (optioneel)",
|
||||
"Filter by specific transaction reference (optional)": "Filter op specifieke transactie referentie (optioneel)",
|
||||
"Start date for filtering (YYYY-MM-DD format, optional)": "Startdatum voor het filteren (JJJJ-MM-DD formaat, optioneel)",
|
||||
"End date for filtering (YYYY-MM-DD format, optional)": "Einddatum voor het filteren (JJJJ-MM-DD formaat, optioneel)",
|
||||
"Filter by external reference ID (meta field)": "Filter op extern referentie-ID (meta veld)",
|
||||
"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..",
|
||||
"A4": "A4",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"Letter": "Brief",
|
||||
"Legal": "Juridisch",
|
||||
"Tabloid": "Tabloïd",
|
||||
"Portrait": "Staand",
|
||||
"Landscape": "Liggend",
|
||||
"GET": "KRIJG",
|
||||
"POST": "POSTE",
|
||||
"PATCH": "BEKIJK",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "VERWIJDEREN",
|
||||
"HEAD": "HOOFD"
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"Region": "Região",
|
||||
"API Key": "Chave de API",
|
||||
"Select your preferred API region for better performance": "Selecione a região da API preferida para um melhor desempenho",
|
||||
"Your APITemplate.io API key": "Sua chave de API APIT",
|
||||
"Default (Singapore)": "Padrão (Singapore)",
|
||||
"Europe (Frankfurt)": "Europa (Frankfurt)",
|
||||
"US East (N. Virginia)": "Leste dos EUA (N. Virgínia)",
|
||||
"Australia (Sydney)": "Austrália (Sydney)",
|
||||
"Alternative - Default (Singapore)": "Alternativo - Padrão (Singapore)",
|
||||
"Alternative - Europe (Frankfurt)": "Alternativa - Europa (Frankfurt)",
|
||||
"Alternative - US East (N. Virginia)": "Alternativo - Leste dos EUA (N. Virgínia)",
|
||||
"\nTo obtain your API key:\n1. Go to https://app.apitemplate.io/.\n2. Navigate to API Integration section.\n3. Copy your API key.\n\nSelect the region closest to your location for better performance.\n": "\nPara obter a sua chave de API:\n1. Acesse https://app.apitemplate.io/.\n2. Navegue até a seção de Integração API.\n3. Copie sua chave de API.\n\nSelecione a região mais próxima de seu local para um melhor desempenho.\n",
|
||||
"Create Image": "Criar imagem",
|
||||
"Create PDF From HTML": "Criar PDF de HTML",
|
||||
"Create PDF From URL": "Criar PDF de URL",
|
||||
"Create PDF": "Criar PDF",
|
||||
"Delete Object": "Excluir Objeto",
|
||||
"Get Account Information": "Obter informações da conta",
|
||||
"List Objects": "Lista de Objetos",
|
||||
"Custom API Call": "Chamada de API personalizada",
|
||||
"Creates an image from a template with provided data.": "Cria uma imagem a partir de um modelo com dados fornecidos.",
|
||||
"Creates a PDF from HTML.": "Cria um PDF do HTML.",
|
||||
"Creates a PDF from a webpage URL.": "Cria um PDF de uma URL da página.",
|
||||
"Creates a PDF from a template with provided data.": "Cria um PDF a partir de um modelo com dados fornecidos.",
|
||||
"Deletes a generated PDF or image by its transaction reference or object ID.": "Deleta um PDF ou imagem gerado por sua referência de transação ou ID do objeto.",
|
||||
"Retrieves account information including usage statistics and account details.": "Obtém informações da conta incluindo estatísticas de uso e detalhes da conta.",
|
||||
"Retrieves a list of generated PDFs and images with optional filtering": "Recupera uma lista de PDFs gerados e imagens com filtragem opcional",
|
||||
"Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
|
||||
"Template ID": "ID do modelo",
|
||||
"Template Data": "Dados do modelo",
|
||||
"Generation Delay (ms)": "Atraso de geração (ms)",
|
||||
"External Reference ID": "Referência externa de ID",
|
||||
"HTML Content": "Conteúdo HTML",
|
||||
"CSS Styles": "CSS Styles",
|
||||
"Data for Templating": "Dados para modelo",
|
||||
"Expiration (minutes)": "Expiração (minutos)",
|
||||
"Page Size": "Tamanho da página",
|
||||
"Page Orientation": "Orientação da página",
|
||||
"Margin Top (mm)": "Margem Superior (mm)",
|
||||
"Margin Bottom (mm)": "Margem inferior (mm)",
|
||||
"Margin Left (mm)": "Margem esquerda (mm)",
|
||||
"Margin Right (mm)": "Margem direita (mm)",
|
||||
"Print Background": "Fundo de Impressão",
|
||||
"Header Font Size": "Header Font Size",
|
||||
"Display Header/Footer": "Mostrar Cabeçalho/Rodapé",
|
||||
"Custom Header HTML": "HTML de cabeçalho personalizado",
|
||||
"Custom Footer HTML": "HTML de rodapé personalizado",
|
||||
"Scale": "Escala",
|
||||
"Wait Timeout (ms)": "Tempo limite de espera (ms)",
|
||||
"URL": "URL:",
|
||||
"Wait for Selector": "Aguardar o Seletor",
|
||||
"Viewport Width": "Largura da vista",
|
||||
"Viewport Height": "Altura da vista",
|
||||
"Full Page": "Página inteira",
|
||||
"Transaction Reference": "Referência de transação",
|
||||
"Limit": "Limitar",
|
||||
"Offset": "Deslocamento",
|
||||
"Date From": "Data de origem",
|
||||
"Date To": "Data Final",
|
||||
"Meta Filter": "Filtro de Meta",
|
||||
"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)",
|
||||
"JSON data with overrides array to populate the template. Format: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.": "Dados JSON com matriz de substituições para preencher o template. Formato: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.",
|
||||
"Delay in milliseconds before PDF generation": "Atraso em milissegundos antes da geração de PDF",
|
||||
"Specify an external reference ID for your own reference": "Especifique um ID de referência externo para sua própria referência",
|
||||
"The HTML content to convert to PDF. Can include CSS styles and external resources.": "O conteúdo HTML para converter em PDF. Pode incluir estilos CSS e recursos externos.",
|
||||
"Optional CSS styles to apply to the HTML content. Can include inline styles or external stylesheets.": "Estilos CSS opcionais para aplicar ao conteúdo HTML. Pode incluir estilos embutidos ou folhas de estilo externas.",
|
||||
"Optional JSON data to use for templating the HTML content. Can include variables and dynamic content.": "Dados JSON opcionais a serem usados para template do conteúdo HTML. Pode incluir variáveis e conteúdo dinâmico.",
|
||||
"Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.": "Expiração do PDF gerado em minutos. Use 0 para armazenar permanentemente, ou 1-10080 minutos (7 dias) para especificar a expiração.",
|
||||
"PDF page size format": "Formato de tamanho da página PDF",
|
||||
"PDF page orientation": "Orientação da página PDF",
|
||||
"Top margin in millimeters": "Margem superior em milímetros",
|
||||
"Bottom margin in millimeters": "Margem inferior em milímetros",
|
||||
"Left margin in millimeters": "Margem esquerda em milímetros",
|
||||
"Right margin in millimeters": "Margem direita em milímetros",
|
||||
"Whether to print background graphics and colors": "Imprimir gráficos e cores de fundo",
|
||||
"Font size for header (e.g., \"9px\")": "Tamanho da fonte para cabeçalho (ex.: \"9px\")",
|
||||
"Whether to display header and footer": "Exibir cabeçalho e rodapé",
|
||||
"Custom HTML content for header": "Conteúdo HTML personalizado para o cabeçalho",
|
||||
"Custom HTML content for footer": "Conteúdo HTML personalizado para o rodapé",
|
||||
"Scale factor for the PDF (0.1 to 2.0)": "Fator de escala para PDF (0.1 a 2.0)",
|
||||
"Time to wait before generating PDF (in milliseconds)": "Tempo de espera antes de gerar o PDF (em milissegundos)",
|
||||
"The URL of the webpage to convert to PDF": "A URL da página da Web para converter em PDF",
|
||||
"Time to wait for page to load before generating PDF (in milliseconds)": "Tempo de espera que a página carregue antes de gerar o PDF (em milissegundos)",
|
||||
"CSS selector to wait for before generating PDF (e.g., \".content-loaded\")": "Seletor CSS a esperar antes de gerar PDF (por exemplo, \".content-loaded\")",
|
||||
"Browser viewport width in pixels (default: 1920)": "Largura de visualização do navegador em pixels (padrão: 1920)",
|
||||
"Browser viewport height in pixels (default: 1080)": "Altura da visualização do navegador em pixels (padrão: 1080)",
|
||||
"Capture the full scrollable page": "Capturar a página completa",
|
||||
"Select a transaction reference to filter objects.": "Selecione uma transação de referência para filtrar objetos.",
|
||||
"Maximum number of objects to return (default: 300, max: 300)": "Número máximo de objetos a retornar (padrão: 300, máximo: 300)",
|
||||
"Number of objects to skip for pagination (default: 0)": "Número de objetos a ignorar para paginação (padrão: 0)",
|
||||
"Filter objects by template ID (optional)": "Filtrar objetos por ID de modelo (opcional)",
|
||||
"Filter by specific transaction reference (optional)": "Filtrar por referência de transação específica (opcional)",
|
||||
"Start date for filtering (YYYY-MM-DD format, optional)": "Data de início para filtragem (AAAA-MM-DD formato, opcional)",
|
||||
"End date for filtering (YYYY-MM-DD format, optional)": "Data final para filtragem (AAAA-MM-DD formato, opcional)",
|
||||
"Filter by external reference ID (meta field)": "Filtrar por ID de referência externo (campo meta)",
|
||||
"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..",
|
||||
"A4": "A4",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"Letter": "Letra",
|
||||
"Legal": "Informações",
|
||||
"Tabloid": "Tablóide",
|
||||
"Portrait": "Retrato",
|
||||
"Landscape": "Paisagem",
|
||||
"GET": "OBTER",
|
||||
"POST": "POSTAR",
|
||||
"PATCH": "COMPRAR",
|
||||
"PUT": "COLOCAR",
|
||||
"DELETE": "EXCLUIR",
|
||||
"HEAD": "CABEÇA"
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"APITemplate.io": "APITemplate.io",
|
||||
"Region": "Регион",
|
||||
"API Key": "Ключ API",
|
||||
"Select your preferred API region for better performance": "Выберите регион API для лучшей производительности",
|
||||
"Your APITemplate.io API key": "Ваш APITemplate.io API ключ",
|
||||
"Default (Singapore)": "По умолчанию (Сингапур)",
|
||||
"Europe (Frankfurt)": "Европа (Франкфурт)",
|
||||
"US East (N. Virginia)": "US East (N. Virginia)",
|
||||
"Australia (Sydney)": "Австралия (Сиднее)",
|
||||
"Alternative - Default (Singapore)": "Альтернативный - по умолчанию (Сингапур)",
|
||||
"Alternative - Europe (Frankfurt)": "Альтернатива - Европа (Франкфурт)",
|
||||
"Alternative - US East (N. Virginia)": "Альтернатива - Восток США (Новая Вирджиния)",
|
||||
"\nTo obtain your API key:\n1. Go to https://app.apitemplate.io/.\n2. Navigate to API Integration section.\n3. Copy your API key.\n\nSelect the region closest to your location for better performance.\n": "\nДля получения ключа API:\n1. Перейдите на https://app.apitemplate.io/.\n2. Перейдите в раздел API Integration секции.\n3. Скопируйте ключ API.\n\nВыберите регион, ближайший к вашему местоположению, для лучшей производительности.\n",
|
||||
"Create Image": "Создать изображение",
|
||||
"Create PDF From HTML": "Создать PDF из HTML",
|
||||
"Create PDF From URL": "Создать PDF из URL",
|
||||
"Create PDF": "Создать PDF",
|
||||
"Delete Object": "Удалить объект",
|
||||
"Get Account Information": "Получить информацию об учетной записи",
|
||||
"List Objects": "Список объектов",
|
||||
"Custom API Call": "Пользовательский вызов API",
|
||||
"Creates an image from a template with provided data.": "Создает изображение из шаблона с предоставленными данными.",
|
||||
"Creates a PDF from HTML.": "Создает PDF из HTML.",
|
||||
"Creates a PDF from a webpage URL.": "Создает PDF из URL веб-страницы.",
|
||||
"Creates a PDF from a template with provided data.": "Создает PDF из шаблона с предоставленными данными.",
|
||||
"Deletes a generated PDF or image by its transaction reference or object ID.": "Удаляет сгенерированный PDF или изображение по ссылке транзакции или ID объекта.",
|
||||
"Retrieves account information including usage statistics and account details.": "Извлекает информацию об аккаунте, включая статистику использования и данные учетной записи.",
|
||||
"Retrieves a list of generated PDFs and images with optional filtering": "Извлекает список сгенерированных PDF документов и изображений с опциональной фильтрацией",
|
||||
"Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
|
||||
"Template ID": "ID шаблона",
|
||||
"Template Data": "Данные шаблона",
|
||||
"Generation Delay (ms)": "Задержка генерации (мс)",
|
||||
"External Reference ID": "Внешняя ссылка ID",
|
||||
"HTML Content": "Содержимое HTML",
|
||||
"CSS Styles": "CSS Styles",
|
||||
"Data for Templating": "Данные для шаблонов",
|
||||
"Expiration (minutes)": "Срок действия (минут)",
|
||||
"Page Size": "Размер страницы",
|
||||
"Page Orientation": "Ориентация страницы",
|
||||
"Margin Top (mm)": "Отступ сверху (мм)",
|
||||
"Margin Bottom (mm)": "Отступ снизу (мм)",
|
||||
"Margin Left (mm)": "Отступ слева (мм)",
|
||||
"Margin Right (mm)": "Правый край (мм)",
|
||||
"Print Background": "Печать фона",
|
||||
"Header Font Size": "Header Font Size",
|
||||
"Display Header/Footer": "Отображать верхний колонтитул",
|
||||
"Custom Header HTML": "Пользовательские заголовки HTML",
|
||||
"Custom Footer HTML": "HTML-код футера",
|
||||
"Scale": "Масштаб",
|
||||
"Wait Timeout (ms)": "Время ожидания (мс)",
|
||||
"URL": "URL",
|
||||
"Wait for Selector": "Дождитесь выбора",
|
||||
"Viewport Width": "Ширина вида",
|
||||
"Viewport Height": "Высота видового поля",
|
||||
"Full Page": "Полная страница",
|
||||
"Transaction Reference": "Ссылка на транзакцию",
|
||||
"Limit": "Лимит",
|
||||
"Offset": "Смещение",
|
||||
"Date From": "Дата От",
|
||||
"Date To": "Дата до",
|
||||
"Meta Filter": "Мета-фильтр",
|
||||
"Method": "Метод",
|
||||
"Headers": "Заголовки",
|
||||
"Query Parameters": "Параметры запроса",
|
||||
"Body": "Тело",
|
||||
"No Error on Failure": "Нет ошибок при ошибке",
|
||||
"Timeout (in seconds)": "Таймаут (в секундах)",
|
||||
"JSON data with overrides array to populate the template. Format: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.": "JSON данные с переопределением массива для заполнения шаблона. Формат: {\"Переопределить\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.",
|
||||
"Delay in milliseconds before PDF generation": "Задержка в миллисекундах до генерации PDF",
|
||||
"Specify an external reference ID for your own reference": "Укажите внешний идентификатор ссылки для вашей собственной ссылки",
|
||||
"The HTML content to convert to PDF. Can include CSS styles and external resources.": "Контент HTML для преобразования в PDF. Может включать стили CSS и внешние ресурсы.",
|
||||
"Optional CSS styles to apply to the HTML content. Can include inline styles or external stylesheets.": "Необязательные CSS стили для применения к HTML-содержимому. Может включать встроенные стили или внешние стили.",
|
||||
"Optional JSON data to use for templating the HTML content. Can include variables and dynamic content.": "Необязательные данные JSON, используемые для шаблона HTML содержимого. Может включать переменные и динамическое содержимое.",
|
||||
"Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.": "Срок действия сгенерированного PDF за считанные минуты. Используйте 0 для хранения навсегда, или 1-10080 минут (7 дней) для указания срока действия.",
|
||||
"PDF page size format": "Размер страницы PDF",
|
||||
"PDF page orientation": "Ориентация страницы PDF",
|
||||
"Top margin in millimeters": "Верхнее поле в миллиметрах",
|
||||
"Bottom margin in millimeters": "Нижнее поле в миллиметрах",
|
||||
"Left margin in millimeters": "Левое поле в миллиметрах",
|
||||
"Right margin in millimeters": "Правое поле в миллиметрах",
|
||||
"Whether to print background graphics and colors": "Напечатать ли фоновую графику и цвета",
|
||||
"Font size for header (e.g., \"9px\")": "Размер шрифта заголовка (например, \"9px\")",
|
||||
"Whether to display header and footer": "Показывать ли заголовок и нижний колонтитул",
|
||||
"Custom HTML content for header": "Пользовательский HTML контент для заголовка",
|
||||
"Custom HTML content for footer": "Пользовательский HTML контент для футера",
|
||||
"Scale factor for the PDF (0.1 to 2.0)": "Коэффициент масштаба для PDF (0,1-2.0)",
|
||||
"Time to wait before generating PDF (in milliseconds)": "Время ожидания перед созданием PDF (в миллисекундах)",
|
||||
"The URL of the webpage to convert to PDF": "URL веб-страницы для преобразования в PDF",
|
||||
"Time to wait for page to load before generating PDF (in milliseconds)": "Время ожидания загрузки страницы перед генерацией PDF (в миллисекундах)",
|
||||
"CSS selector to wait for before generating PDF (e.g., \".content-loaded\")": "CSS селектор подождет перед генерацией PDF (например, \".content-загружен\")",
|
||||
"Browser viewport width in pixels (default: 1920)": "Ширина просмотра браузера в пикселях (по умолчанию: 1920)",
|
||||
"Browser viewport height in pixels (default: 1080)": "Высота просмотра браузера в пикселях (по умолчанию: 1080)",
|
||||
"Capture the full scrollable page": "Захват полной прокручиваемой страницы",
|
||||
"Select a transaction reference to filter objects.": "Выберите ссылку на транзакцию для фильтрации объектов.",
|
||||
"Maximum number of objects to return (default: 300, max: 300)": "Максимальное количество возвращаемых объектов (по умолчанию: 300, макс: 300)",
|
||||
"Number of objects to skip for pagination (default: 0)": "Количество пропущенных объектов для пагинации (по умолчанию: 0)",
|
||||
"Filter objects by template ID (optional)": "Фильтровать объекты по ID шаблона (необязательно)",
|
||||
"Filter by specific transaction reference (optional)": "Фильтр по конкретной ссылке транзакции (опционально)",
|
||||
"Start date for filtering (YYYY-MM-DD format, optional)": "Дата начала фильтрации (формат YYYY-MM-DD, необязательно)",
|
||||
"End date for filtering (YYYY-MM-DD format, optional)": "Дата окончания фильтрации (формат YYYY-MM-DD, необязательно)",
|
||||
"Filter by external reference ID (meta field)": "Фильтр по внешнему идентификатору ссылки (meta поле)",
|
||||
"Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
|
||||
"A4": "A4",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"Letter": "Буква",
|
||||
"Legal": "Юридическая информация",
|
||||
"Tabloid": "Таблоид",
|
||||
"Portrait": "Портрет",
|
||||
"Landscape": "Горизонтальный",
|
||||
"GET": "ПОЛУЧИТЬ",
|
||||
"POST": "ПОСТ",
|
||||
"PATCH": "ПАТЧ",
|
||||
"PUT": "ПОКУПИТЬ",
|
||||
"DELETE": "УДАЛИТЬ",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"Region": "Region",
|
||||
"API Key": "API Key",
|
||||
"Select your preferred API region for better performance": "Select your preferred API region for better performance",
|
||||
"Your APITemplate.io API key": "Your APITemplate.io API key",
|
||||
"Default (Singapore)": "Default (Singapore)",
|
||||
"Europe (Frankfurt)": "Europe (Frankfurt)",
|
||||
"US East (N. Virginia)": "US East (N. Virginia)",
|
||||
"Australia (Sydney)": "Australia (Sydney)",
|
||||
"Alternative - Default (Singapore)": "Alternative - Default (Singapore)",
|
||||
"Alternative - Europe (Frankfurt)": "Alternative - Europe (Frankfurt)",
|
||||
"Alternative - US East (N. Virginia)": "Alternative - US East (N. Virginia)",
|
||||
"\nTo obtain your API key:\n1. Go to https://app.apitemplate.io/.\n2. Navigate to API Integration section.\n3. Copy your API key.\n\nSelect the region closest to your location for better performance.\n": "\nTo obtain your API key:\n1. Go to https://app.apitemplate.io/.\n2. Navigate to API Integration section.\n3. Copy your API key.\n\nSelect the region closest to your location for better performance.\n",
|
||||
"Create Image": "Create Image",
|
||||
"Create PDF From HTML": "Create PDF From HTML",
|
||||
"Create PDF From URL": "Create PDF From URL",
|
||||
"Create PDF": "Create PDF",
|
||||
"Delete Object": "Delete Object",
|
||||
"Get Account Information": "Get Account Information",
|
||||
"List Objects": "List Objects",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Creates an image from a template with provided data.": "Creates an image from a template with provided data.",
|
||||
"Creates a PDF from HTML.": "Creates a PDF from HTML.",
|
||||
"Creates a PDF from a webpage URL.": "Creates a PDF from a webpage URL.",
|
||||
"Creates a PDF from a template with provided data.": "Creates a PDF from a template with provided data.",
|
||||
"Deletes a generated PDF or image by its transaction reference or object ID.": "Deletes a generated PDF or image by its transaction reference or object ID.",
|
||||
"Retrieves account information including usage statistics and account details.": "Retrieves account information including usage statistics and account details.",
|
||||
"Retrieves a list of generated PDFs and images with optional filtering": "Retrieves a list of generated PDFs and images with optional filtering",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Template ID": "Template ID",
|
||||
"Template Data": "Template Data",
|
||||
"Generation Delay (ms)": "Generation Delay (ms)",
|
||||
"External Reference ID": "External Reference ID",
|
||||
"HTML Content": "HTML Content",
|
||||
"CSS Styles": "CSS Styles",
|
||||
"Data for Templating": "Data for Templating",
|
||||
"Expiration (minutes)": "Expiration (minutes)",
|
||||
"Page Size": "Page Size",
|
||||
"Page Orientation": "Page Orientation",
|
||||
"Margin Top (mm)": "Margin Top (mm)",
|
||||
"Margin Bottom (mm)": "Margin Bottom (mm)",
|
||||
"Margin Left (mm)": "Margin Left (mm)",
|
||||
"Margin Right (mm)": "Margin Right (mm)",
|
||||
"Print Background": "Print Background",
|
||||
"Header Font Size": "Header Font Size",
|
||||
"Display Header/Footer": "Display Header/Footer",
|
||||
"Custom Header HTML": "Custom Header HTML",
|
||||
"Custom Footer HTML": "Custom Footer HTML",
|
||||
"Scale": "Scale",
|
||||
"Wait Timeout (ms)": "Wait Timeout (ms)",
|
||||
"URL": "URL",
|
||||
"Wait for Selector": "Wait for Selector",
|
||||
"Viewport Width": "Viewport Width",
|
||||
"Viewport Height": "Viewport Height",
|
||||
"Full Page": "Full Page",
|
||||
"Transaction Reference": "Transaction Reference",
|
||||
"Limit": "Limit",
|
||||
"Offset": "Offset",
|
||||
"Date From": "Date From",
|
||||
"Date To": "Date To",
|
||||
"Meta Filter": "Meta Filter",
|
||||
"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)",
|
||||
"JSON data with overrides array to populate the template. Format: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.": "JSON data with overrides array to populate the template. Format: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.",
|
||||
"Delay in milliseconds before PDF generation": "Delay in milliseconds before PDF generation",
|
||||
"Specify an external reference ID for your own reference": "Specify an external reference ID for your own reference",
|
||||
"The HTML content to convert to PDF. Can include CSS styles and external resources.": "The HTML content to convert to PDF. Can include CSS styles and external resources.",
|
||||
"Optional CSS styles to apply to the HTML content. Can include inline styles or external stylesheets.": "Optional CSS styles to apply to the HTML content. Can include inline styles or external stylesheets.",
|
||||
"Optional JSON data to use for templating the HTML content. Can include variables and dynamic content.": "Optional JSON data to use for templating the HTML content. Can include variables and dynamic content.",
|
||||
"Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.": "Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.",
|
||||
"PDF page size format": "PDF page size format",
|
||||
"PDF page orientation": "PDF page orientation",
|
||||
"Top margin in millimeters": "Top margin in millimeters",
|
||||
"Bottom margin in millimeters": "Bottom margin in millimeters",
|
||||
"Left margin in millimeters": "Left margin in millimeters",
|
||||
"Right margin in millimeters": "Right margin in millimeters",
|
||||
"Whether to print background graphics and colors": "Whether to print background graphics and colors",
|
||||
"Font size for header (e.g., \"9px\")": "Font size for header (e.g., \"9px\")",
|
||||
"Whether to display header and footer": "Whether to display header and footer",
|
||||
"Custom HTML content for header": "Custom HTML content for header",
|
||||
"Custom HTML content for footer": "Custom HTML content for footer",
|
||||
"Scale factor for the PDF (0.1 to 2.0)": "Scale factor for the PDF (0.1 to 2.0)",
|
||||
"Time to wait before generating PDF (in milliseconds)": "Time to wait before generating PDF (in milliseconds)",
|
||||
"The URL of the webpage to convert to PDF": "The URL of the webpage to convert to PDF",
|
||||
"Time to wait for page to load before generating PDF (in milliseconds)": "Time to wait for page to load before generating PDF (in milliseconds)",
|
||||
"CSS selector to wait for before generating PDF (e.g., \".content-loaded\")": "CSS selector to wait for before generating PDF (e.g., \".content-loaded\")",
|
||||
"Browser viewport width in pixels (default: 1920)": "Browser viewport width in pixels (default: 1920)",
|
||||
"Browser viewport height in pixels (default: 1080)": "Browser viewport height in pixels (default: 1080)",
|
||||
"Capture the full scrollable page": "Capture the full scrollable page",
|
||||
"Select a transaction reference to filter objects.": "Select a transaction reference to filter objects.",
|
||||
"Maximum number of objects to return (default: 300, max: 300)": "Maximum number of objects to return (default: 300, max: 300)",
|
||||
"Number of objects to skip for pagination (default: 0)": "Number of objects to skip for pagination (default: 0)",
|
||||
"Filter objects by template ID (optional)": "Filter objects by template ID (optional)",
|
||||
"Filter by specific transaction reference (optional)": "Filter by specific transaction reference (optional)",
|
||||
"Start date for filtering (YYYY-MM-DD format, optional)": "Start date for filtering (YYYY-MM-DD format, optional)",
|
||||
"End date for filtering (YYYY-MM-DD format, optional)": "End date for filtering (YYYY-MM-DD format, optional)",
|
||||
"Filter by external reference ID (meta field)": "Filter by external reference ID (meta field)",
|
||||
"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..",
|
||||
"A4": "A4",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"Letter": "Letter",
|
||||
"Legal": "Legal",
|
||||
"Tabloid": "Tabloid",
|
||||
"Portrait": "Portrait",
|
||||
"Landscape": "Landscape",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
{
|
||||
"APITemplate.io": "APITemplate.io",
|
||||
"Region": "Region",
|
||||
"API Key": "API Key",
|
||||
"Select your preferred API region for better performance": "Select your preferred API region for better performance",
|
||||
"Your APITemplate.io API key": "Your APITemplate.io API key",
|
||||
"Default (Singapore)": "Default (Singapore)",
|
||||
"Europe (Frankfurt)": "Europe (Frankfurt)",
|
||||
"US East (N. Virginia)": "US East (N. Virginia)",
|
||||
"Australia (Sydney)": "Australia (Sydney)",
|
||||
"Alternative - Default (Singapore)": "Alternative - Default (Singapore)",
|
||||
"Alternative - Europe (Frankfurt)": "Alternative - Europe (Frankfurt)",
|
||||
"Alternative - US East (N. Virginia)": "Alternative - US East (N. Virginia)",
|
||||
"\nTo obtain your API key:\n1. Go to https://app.apitemplate.io/.\n2. Navigate to API Integration section.\n3. Copy your API key.\n\nSelect the region closest to your location for better performance.\n": "\nTo obtain your API key:\n1. Go to https://app.apitemplate.io/.\n2. Navigate to API Integration section.\n3. Copy your API key.\n\nSelect the region closest to your location for better performance.\n",
|
||||
"Create Image": "Create Image",
|
||||
"Create PDF From HTML": "Create PDF From HTML",
|
||||
"Create PDF From URL": "Create PDF From URL",
|
||||
"Create PDF": "Create PDF",
|
||||
"Delete Object": "Delete Object",
|
||||
"Get Account Information": "Get Account Information",
|
||||
"List Objects": "List Objects",
|
||||
"Custom API Call": "Custom API Call",
|
||||
"Creates an image from a template with provided data.": "Creates an image from a template with provided data.",
|
||||
"Creates a PDF from HTML.": "Creates a PDF from HTML.",
|
||||
"Creates a PDF from a webpage URL.": "Creates a PDF from a webpage URL.",
|
||||
"Creates a PDF from a template with provided data.": "Creates a PDF from a template with provided data.",
|
||||
"Deletes a generated PDF or image by its transaction reference or object ID.": "Deletes a generated PDF or image by its transaction reference or object ID.",
|
||||
"Retrieves account information including usage statistics and account details.": "Retrieves account information including usage statistics and account details.",
|
||||
"Retrieves a list of generated PDFs and images with optional filtering": "Retrieves a list of generated PDFs and images with optional filtering",
|
||||
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
||||
"Template ID": "Template ID",
|
||||
"Template Data": "Template Data",
|
||||
"Generation Delay (ms)": "Generation Delay (ms)",
|
||||
"External Reference ID": "External Reference ID",
|
||||
"HTML Content": "HTML Content",
|
||||
"CSS Styles": "CSS Styles",
|
||||
"Data for Templating": "Data for Templating",
|
||||
"Expiration (minutes)": "Expiration (minutes)",
|
||||
"Page Size": "Phân trang",
|
||||
"Page Orientation": "Page Orientation",
|
||||
"Margin Top (mm)": "Margin Top (mm)",
|
||||
"Margin Bottom (mm)": "Margin Bottom (mm)",
|
||||
"Margin Left (mm)": "Margin Left (mm)",
|
||||
"Margin Right (mm)": "Margin Right (mm)",
|
||||
"Print Background": "Print Background",
|
||||
"Header Font Size": "Header Font Size",
|
||||
"Display Header/Footer": "Display Header/Footer",
|
||||
"Custom Header HTML": "Custom Header HTML",
|
||||
"Custom Footer HTML": "Custom Footer HTML",
|
||||
"Scale": "Scale",
|
||||
"Wait Timeout (ms)": "Wait Timeout (ms)",
|
||||
"URL": "URL",
|
||||
"Wait for Selector": "Wait for Selector",
|
||||
"Viewport Width": "Viewport Width",
|
||||
"Viewport Height": "Viewport Height",
|
||||
"Full Page": "Full Page",
|
||||
"Transaction Reference": "Transaction Reference",
|
||||
"Limit": "Limit",
|
||||
"Offset": "Offset",
|
||||
"Date From": "Date From",
|
||||
"Date To": "Date To",
|
||||
"Meta Filter": "Meta Filter",
|
||||
"Method": "Method",
|
||||
"Headers": "Headers",
|
||||
"Query Parameters": "Query Parameters",
|
||||
"Body": "Body",
|
||||
"No Error on Failure": "No Error on Failure",
|
||||
"Timeout (in seconds)": "Timeout (in seconds)",
|
||||
"JSON data with overrides array to populate the template. Format: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.": "JSON data with overrides array to populate the template. Format: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.",
|
||||
"Delay in milliseconds before PDF generation": "Delay in milliseconds before PDF generation",
|
||||
"Specify an external reference ID for your own reference": "Specify an external reference ID for your own reference",
|
||||
"The HTML content to convert to PDF. Can include CSS styles and external resources.": "The HTML content to convert to PDF. Can include CSS styles and external resources.",
|
||||
"Optional CSS styles to apply to the HTML content. Can include inline styles or external stylesheets.": "Optional CSS styles to apply to the HTML content. Can include inline styles or external stylesheets.",
|
||||
"Optional JSON data to use for templating the HTML content. Can include variables and dynamic content.": "Optional JSON data to use for templating the HTML content. Can include variables and dynamic content.",
|
||||
"Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.": "Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.",
|
||||
"PDF page size format": "PDF page size format",
|
||||
"PDF page orientation": "PDF page orientation",
|
||||
"Top margin in millimeters": "Top margin in millimeters",
|
||||
"Bottom margin in millimeters": "Bottom margin in millimeters",
|
||||
"Left margin in millimeters": "Left margin in millimeters",
|
||||
"Right margin in millimeters": "Right margin in millimeters",
|
||||
"Whether to print background graphics and colors": "Whether to print background graphics and colors",
|
||||
"Font size for header (e.g., \"9px\")": "Font size for header (e.g., \"9px\")",
|
||||
"Whether to display header and footer": "Whether to display header and footer",
|
||||
"Custom HTML content for header": "Custom HTML content for header",
|
||||
"Custom HTML content for footer": "Custom HTML content for footer",
|
||||
"Scale factor for the PDF (0.1 to 2.0)": "Scale factor for the PDF (0.1 to 2.0)",
|
||||
"Time to wait before generating PDF (in milliseconds)": "Time to wait before generating PDF (in milliseconds)",
|
||||
"The URL of the webpage to convert to PDF": "The URL of the webpage to convert to PDF",
|
||||
"Time to wait for page to load before generating PDF (in milliseconds)": "Time to wait for page to load before generating PDF (in milliseconds)",
|
||||
"CSS selector to wait for before generating PDF (e.g., \".content-loaded\")": "CSS selector to wait for before generating PDF (e.g., \".content-loaded\")",
|
||||
"Browser viewport width in pixels (default: 1920)": "Browser viewport width in pixels (default: 1920)",
|
||||
"Browser viewport height in pixels (default: 1080)": "Browser viewport height in pixels (default: 1080)",
|
||||
"Capture the full scrollable page": "Capture the full scrollable page",
|
||||
"Select a transaction reference to filter objects.": "Select a transaction reference to filter objects.",
|
||||
"Maximum number of objects to return (default: 300, max: 300)": "Maximum number of objects to return (default: 300, max: 300)",
|
||||
"Number of objects to skip for pagination (default: 0)": "Number of objects to skip for pagination (default: 0)",
|
||||
"Filter objects by template ID (optional)": "Filter objects by template ID (optional)",
|
||||
"Filter by specific transaction reference (optional)": "Filter by specific transaction reference (optional)",
|
||||
"Start date for filtering (YYYY-MM-DD format, optional)": "Start date for filtering (YYYY-MM-DD format, optional)",
|
||||
"End date for filtering (YYYY-MM-DD format, optional)": "End date for filtering (YYYY-MM-DD format, optional)",
|
||||
"Filter by external reference ID (meta field)": "Filter by external reference ID (meta field)",
|
||||
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
||||
"A4": "A4",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"Letter": "Letter",
|
||||
"Legal": "Legal",
|
||||
"Tabloid": "Tabloid",
|
||||
"Portrait": "Portrait",
|
||||
"Landscape": "Landscape",
|
||||
"GET": "GET",
|
||||
"POST": "POST",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "PUT",
|
||||
"DELETE": "DELETE",
|
||||
"HEAD": "HEAD"
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
{
|
||||
"Region": "Region",
|
||||
"API Key": "API 密钥",
|
||||
"Select your preferred API region for better performance": "Select your preferred API region for better performance",
|
||||
"Your APITemplate.io API key": "Your APITemplate.io API key",
|
||||
"Default (Singapore)": "Default (Singapore)",
|
||||
"Europe (Frankfurt)": "Europe (Frankfurt)",
|
||||
"US East (N. Virginia)": "US East (N. Virginia)",
|
||||
"Australia (Sydney)": "Australia (Sydney)",
|
||||
"Alternative - Default (Singapore)": "Alternative - Default (Singapore)",
|
||||
"Alternative - Europe (Frankfurt)": "Alternative - Europe (Frankfurt)",
|
||||
"Alternative - US East (N. Virginia)": "Alternative - US East (N. Virginia)",
|
||||
"\nTo obtain your API key:\n1. Go to https://app.apitemplate.io/.\n2. Navigate to API Integration section.\n3. Copy your API key.\n\nSelect the region closest to your location for better performance.\n": "\nTo obtain your API key:\n1. Go to https://app.apitemplate.io/.\n2. Navigate to API Integration section.\n3. Copy your API key.\n\nSelect the region closest to your location for better performance.\n",
|
||||
"Create Image": "Create Image",
|
||||
"Create PDF From HTML": "Create PDF From HTML",
|
||||
"Create PDF From URL": "Create PDF From URL",
|
||||
"Create PDF": "Create PDF",
|
||||
"Delete Object": "Delete Object",
|
||||
"Get Account Information": "Get Account Information",
|
||||
"List Objects": "List Objects",
|
||||
"Custom API Call": "自定义 API 呼叫",
|
||||
"Creates an image from a template with provided data.": "Creates an image from a template with provided data.",
|
||||
"Creates a PDF from HTML.": "Creates a PDF from HTML.",
|
||||
"Creates a PDF from a webpage URL.": "Creates a PDF from a webpage URL.",
|
||||
"Creates a PDF from a template with provided data.": "Creates a PDF from a template with provided data.",
|
||||
"Deletes a generated PDF or image by its transaction reference or object ID.": "Deletes a generated PDF or image by its transaction reference or object ID.",
|
||||
"Retrieves account information including usage statistics and account details.": "Retrieves account information including usage statistics and account details.",
|
||||
"Retrieves a list of generated PDFs and images with optional filtering": "Retrieves a list of generated PDFs and images with optional filtering",
|
||||
"Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
|
||||
"Template ID": "Template ID",
|
||||
"Template Data": "Template Data",
|
||||
"Generation Delay (ms)": "Generation Delay (ms)",
|
||||
"External Reference ID": "External Reference ID",
|
||||
"HTML Content": "HTML Content",
|
||||
"CSS Styles": "CSS Styles",
|
||||
"Data for Templating": "Data for Templating",
|
||||
"Expiration (minutes)": "Expiration (minutes)",
|
||||
"Page Size": "Page Size",
|
||||
"Page Orientation": "Page Orientation",
|
||||
"Margin Top (mm)": "Margin Top (mm)",
|
||||
"Margin Bottom (mm)": "Margin Bottom (mm)",
|
||||
"Margin Left (mm)": "Margin Left (mm)",
|
||||
"Margin Right (mm)": "Margin Right (mm)",
|
||||
"Print Background": "Print Background",
|
||||
"Header Font Size": "Header Font Size",
|
||||
"Display Header/Footer": "Display Header/Footer",
|
||||
"Custom Header HTML": "Custom Header HTML",
|
||||
"Custom Footer HTML": "Custom Footer HTML",
|
||||
"Scale": "Scale",
|
||||
"Wait Timeout (ms)": "Wait Timeout (ms)",
|
||||
"URL": "URL",
|
||||
"Wait for Selector": "Wait for Selector",
|
||||
"Viewport Width": "Viewport Width",
|
||||
"Viewport Height": "Viewport Height",
|
||||
"Full Page": "Full Page",
|
||||
"Transaction Reference": "Transaction Reference",
|
||||
"Limit": "Limit",
|
||||
"Offset": "Offset",
|
||||
"Date From": "Date From",
|
||||
"Date To": "Date To",
|
||||
"Meta Filter": "Meta Filter",
|
||||
"Method": "方法",
|
||||
"Headers": "信头",
|
||||
"Query Parameters": "查询参数",
|
||||
"Body": "正文内容",
|
||||
"Response is Binary ?": "Response is Binary ?",
|
||||
"No Error on Failure": "失败时没有错误",
|
||||
"Timeout (in seconds)": "超时(秒)",
|
||||
"JSON data with overrides array to populate the template. Format: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.": "JSON data with overrides array to populate the template. Format: {\"overrides\": [{\"name\": \"object_name\", \"property\": \"value\"}]}.",
|
||||
"Delay in milliseconds before PDF generation": "Delay in milliseconds before PDF generation",
|
||||
"Specify an external reference ID for your own reference": "Specify an external reference ID for your own reference",
|
||||
"The HTML content to convert to PDF. Can include CSS styles and external resources.": "The HTML content to convert to PDF. Can include CSS styles and external resources.",
|
||||
"Optional CSS styles to apply to the HTML content. Can include inline styles or external stylesheets.": "Optional CSS styles to apply to the HTML content. Can include inline styles or external stylesheets.",
|
||||
"Optional JSON data to use for templating the HTML content. Can include variables and dynamic content.": "Optional JSON data to use for templating the HTML content. Can include variables and dynamic content.",
|
||||
"Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.": "Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.",
|
||||
"PDF page size format": "PDF page size format",
|
||||
"PDF page orientation": "PDF page orientation",
|
||||
"Top margin in millimeters": "Top margin in millimeters",
|
||||
"Bottom margin in millimeters": "Bottom margin in millimeters",
|
||||
"Left margin in millimeters": "Left margin in millimeters",
|
||||
"Right margin in millimeters": "Right margin in millimeters",
|
||||
"Whether to print background graphics and colors": "Whether to print background graphics and colors",
|
||||
"Font size for header (e.g., \"9px\")": "Font size for header (e.g., \"9px\")",
|
||||
"Whether to display header and footer": "Whether to display header and footer",
|
||||
"Custom HTML content for header": "Custom HTML content for header",
|
||||
"Custom HTML content for footer": "Custom HTML content for footer",
|
||||
"Scale factor for the PDF (0.1 to 2.0)": "Scale factor for the PDF (0.1 to 2.0)",
|
||||
"Time to wait before generating PDF (in milliseconds)": "Time to wait before generating PDF (in milliseconds)",
|
||||
"The URL of the webpage to convert to PDF": "The URL of the webpage to convert to PDF",
|
||||
"Time to wait for page to load before generating PDF (in milliseconds)": "Time to wait for page to load before generating PDF (in milliseconds)",
|
||||
"CSS selector to wait for before generating PDF (e.g., \".content-loaded\")": "CSS selector to wait for before generating PDF (e.g., \".content-loaded\")",
|
||||
"Browser viewport width in pixels (default: 1920)": "Browser viewport width in pixels (default: 1920)",
|
||||
"Browser viewport height in pixels (default: 1080)": "Browser viewport height in pixels (default: 1080)",
|
||||
"Capture the full scrollable page": "Capture the full scrollable page",
|
||||
"Select a transaction reference to filter objects.": "Select a transaction reference to filter objects.",
|
||||
"Maximum number of objects to return (default: 300, max: 300)": "Maximum number of objects to return (default: 300, max: 300)",
|
||||
"Number of objects to skip for pagination (default: 0)": "Number of objects to skip for pagination (default: 0)",
|
||||
"Filter objects by template ID (optional)": "Filter objects by template ID (optional)",
|
||||
"Filter by specific transaction reference (optional)": "Filter by specific transaction reference (optional)",
|
||||
"Start date for filtering (YYYY-MM-DD format, optional)": "Start date for filtering (YYYY-MM-DD format, optional)",
|
||||
"End date for filtering (YYYY-MM-DD format, optional)": "End date for filtering (YYYY-MM-DD format, optional)",
|
||||
"Filter by external reference ID (meta field)": "Filter by external reference ID (meta field)",
|
||||
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
|
||||
"Enable for files like PDFs, images, etc..": "Enable for files like PDFs, images, etc..",
|
||||
"A4": "A4",
|
||||
"A3": "A3",
|
||||
"A5": "A5",
|
||||
"Letter": "Letter",
|
||||
"Legal": "Legal",
|
||||
"Tabloid": "Tabloid",
|
||||
"Portrait": "Portrait",
|
||||
"Landscape": "Landscape",
|
||||
"GET": "获取",
|
||||
"POST": "帖子",
|
||||
"PATCH": "PATCH",
|
||||
"PUT": "弹出",
|
||||
"DELETE": "删除",
|
||||
"HEAD": "黑色"
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
import { createPiece } from '@activepieces/pieces-framework';
|
||||
import { ApitemplateAuth } from './lib/common/auth';
|
||||
import { createImage } from './lib/actions/create-image';
|
||||
import { createPdf } from './lib/actions/create-pdf';
|
||||
import { getAccountInformation } from './lib/actions/get-account-information';
|
||||
import { deleteObject } from './lib/actions/delete-object';
|
||||
import { listObjects } from './lib/actions/list-objects';
|
||||
import { createPdfFromHtml } from './lib/actions/create-pdf-from-html';
|
||||
import { createPdfFromUrl } from './lib/actions/create-pdf-from-url';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { createCustomApiCallAction } from '@activepieces/pieces-common';
|
||||
import { ApitemplateAuthConfig, ApitemplateRegion, getRegionalBaseUrl } from './lib/common/client';
|
||||
|
||||
export const apitemplateIo = createPiece({
|
||||
displayName: 'APITemplate.io',
|
||||
auth: ApitemplateAuth,
|
||||
minimumSupportedRelease: '0.36.1',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/apitemplate-io.png',
|
||||
categories: [PieceCategory.CONTENT_AND_FILES, PieceCategory.PRODUCTIVITY],
|
||||
authors: ['Sanket6652'],
|
||||
actions: [
|
||||
createImage,
|
||||
createPdfFromHtml,
|
||||
createPdfFromUrl,
|
||||
createPdf,
|
||||
deleteObject,
|
||||
getAccountInformation,
|
||||
listObjects,
|
||||
createCustomApiCallAction({
|
||||
auth: ApitemplateAuth,
|
||||
baseUrl: (auth) => {
|
||||
const authConfig = auth?.props;
|
||||
if (!authConfig) {
|
||||
return '';
|
||||
}
|
||||
return getRegionalBaseUrl(authConfig.region as ApitemplateRegion);
|
||||
},
|
||||
authMapping: async (auth) => {
|
||||
const authConfig = auth.props;
|
||||
return {
|
||||
'X-API-KEY': authConfig.apiKey,
|
||||
};
|
||||
},
|
||||
}),
|
||||
],
|
||||
triggers: [],
|
||||
});
|
||||
@@ -0,0 +1,65 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { ApitemplateAuth } from '../common/auth';
|
||||
import { ApitemplateAuthConfig, ApitemplateRegion, makeRequest } from '../common/client';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
import { templateIdDropdown } from '../common/props';
|
||||
|
||||
export const createImage = createAction({
|
||||
auth: ApitemplateAuth,
|
||||
name: 'createImage',
|
||||
displayName: 'Create Image',
|
||||
description: 'Creates an image from a template with provided data.',
|
||||
props: {
|
||||
templateId: templateIdDropdown,
|
||||
data: Property.Json({
|
||||
displayName: 'Template Data',
|
||||
description:
|
||||
'JSON data with overrides array to populate the template. Format: {"overrides": [{"name": "object_name", "property": "value"}]}.',
|
||||
required: true,
|
||||
}),
|
||||
generationDelay: Property.Number({
|
||||
displayName: 'Generation Delay (ms)',
|
||||
description: 'Delay in milliseconds before PDF generation',
|
||||
required: false,
|
||||
}),
|
||||
meta: Property.ShortText({
|
||||
displayName: 'External Reference ID',
|
||||
description: 'Specify an external reference ID for your own reference',
|
||||
required: false,
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const authConfig = auth.props;
|
||||
const {
|
||||
templateId,
|
||||
data,
|
||||
generationDelay,
|
||||
meta,
|
||||
} = propsValue;
|
||||
|
||||
// Build query parameters
|
||||
const queryParams = new URLSearchParams();
|
||||
queryParams.append('template_id', templateId);
|
||||
|
||||
if (generationDelay) {
|
||||
queryParams.append('generation_delay', generationDelay.toString());
|
||||
}
|
||||
|
||||
if (meta) {
|
||||
queryParams.append('meta', meta);
|
||||
}
|
||||
|
||||
const endpoint = `/create-image?${queryParams.toString()}`;
|
||||
|
||||
const response = await makeRequest(
|
||||
authConfig.apiKey,
|
||||
HttpMethod.POST,
|
||||
endpoint,
|
||||
data,
|
||||
undefined,
|
||||
authConfig.region as ApitemplateRegion
|
||||
);
|
||||
|
||||
return response;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,253 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { ApitemplateAuth } from '../common/auth';
|
||||
import { ApitemplateAuthConfig, ApitemplateRegion, makeRequest } from '../common/client';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const createPdfFromHtml = createAction({
|
||||
auth: ApitemplateAuth,
|
||||
name: 'createPdfFromHtml',
|
||||
displayName: 'Create PDF From HTML',
|
||||
description: 'Creates a PDF from HTML.',
|
||||
props: {
|
||||
html: Property.LongText({
|
||||
displayName: 'HTML Content',
|
||||
description: 'The HTML content to convert to PDF. Can include CSS styles and external resources.',
|
||||
required: true,
|
||||
}),
|
||||
css: Property.LongText({
|
||||
displayName: 'CSS Styles',
|
||||
description: 'Optional CSS styles to apply to the HTML content. Can include inline styles or external stylesheets.',
|
||||
required: false,
|
||||
}),
|
||||
data: Property.Json({
|
||||
displayName: 'Data for Templating',
|
||||
description: 'Optional JSON data to use for templating the HTML content. Can include variables and dynamic content.',
|
||||
required: false,
|
||||
}),
|
||||
expiration: Property.Number({
|
||||
displayName: 'Expiration (minutes)',
|
||||
description: 'Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.',
|
||||
required: false,
|
||||
}),
|
||||
pageSize: Property.StaticDropdown({
|
||||
displayName: 'Page Size',
|
||||
description: 'PDF page size format',
|
||||
required: false,
|
||||
defaultValue: 'A4',
|
||||
options: {
|
||||
options: [
|
||||
{ label: 'A4', value: 'A4' },
|
||||
{ label: 'A3', value: 'A3' },
|
||||
{ label: 'A5', value: 'A5' },
|
||||
{ label: 'Letter', value: 'Letter' },
|
||||
{ label: 'Legal', value: 'Legal' },
|
||||
{ label: 'Tabloid', value: 'Tabloid' },
|
||||
],
|
||||
},
|
||||
}),
|
||||
orientation: Property.StaticDropdown({
|
||||
displayName: 'Page Orientation',
|
||||
description: 'PDF page orientation',
|
||||
required: false,
|
||||
defaultValue: 'portrait',
|
||||
options: {
|
||||
options: [
|
||||
{ label: 'Portrait', value: 'portrait' },
|
||||
{ label: 'Landscape', value: 'landscape' },
|
||||
],
|
||||
},
|
||||
}),
|
||||
marginTop: Property.Number({
|
||||
displayName: 'Margin Top (mm)',
|
||||
description: 'Top margin in millimeters',
|
||||
required: false,
|
||||
}),
|
||||
marginBottom: Property.Number({
|
||||
displayName: 'Margin Bottom (mm)',
|
||||
description: 'Bottom margin in millimeters',
|
||||
required: false,
|
||||
}),
|
||||
marginLeft: Property.Number({
|
||||
displayName: 'Margin Left (mm)',
|
||||
description: 'Left margin in millimeters',
|
||||
required: false,
|
||||
}),
|
||||
marginRight: Property.Number({
|
||||
displayName: 'Margin Right (mm)',
|
||||
description: 'Right margin in millimeters',
|
||||
required: false,
|
||||
}),
|
||||
printBackground: Property.Checkbox({
|
||||
displayName: 'Print Background',
|
||||
description: 'Whether to print background graphics and colors',
|
||||
required: false,
|
||||
defaultValue: true,
|
||||
}),
|
||||
headerFontSize: Property.ShortText({
|
||||
displayName: 'Header Font Size',
|
||||
description: 'Font size for header (e.g., "9px")',
|
||||
required: false,
|
||||
}),
|
||||
displayHeaderFooter: Property.Checkbox({
|
||||
displayName: 'Display Header/Footer',
|
||||
description: 'Whether to display header and footer',
|
||||
required: false,
|
||||
defaultValue: false,
|
||||
}),
|
||||
customHeader: Property.LongText({
|
||||
displayName: 'Custom Header HTML',
|
||||
description: 'Custom HTML content for header',
|
||||
required: false,
|
||||
}),
|
||||
customFooter: Property.LongText({
|
||||
displayName: 'Custom Footer HTML',
|
||||
description: 'Custom HTML content for footer',
|
||||
required: false,
|
||||
}),
|
||||
scale: Property.Number({
|
||||
displayName: 'Scale',
|
||||
description: 'Scale factor for the PDF (0.1 to 2.0)',
|
||||
required: false,
|
||||
}),
|
||||
waitForTimeout: Property.Number({
|
||||
displayName: 'Wait Timeout (ms)',
|
||||
description: 'Time to wait before generating PDF (in milliseconds)',
|
||||
required: false,
|
||||
}),
|
||||
meta: Property.ShortText({
|
||||
displayName: 'External Reference ID',
|
||||
description: 'Specify an external reference ID for your own reference',
|
||||
required: false,
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const authConfig = auth.props;
|
||||
const {
|
||||
html,
|
||||
css,
|
||||
data,
|
||||
expiration,
|
||||
pageSize,
|
||||
orientation,
|
||||
marginTop,
|
||||
marginBottom,
|
||||
marginLeft,
|
||||
marginRight,
|
||||
printBackground,
|
||||
headerFontSize,
|
||||
displayHeaderFooter,
|
||||
customHeader,
|
||||
customFooter,
|
||||
scale,
|
||||
waitForTimeout,
|
||||
meta,
|
||||
} = propsValue;
|
||||
|
||||
// Build query parameters according to API docs
|
||||
const queryParams = new URLSearchParams();
|
||||
|
||||
if (expiration !== undefined && expiration !== 0) {
|
||||
queryParams.append('expiration', expiration.toString());
|
||||
}
|
||||
|
||||
if (meta) {
|
||||
queryParams.append('meta', meta);
|
||||
}
|
||||
|
||||
const endpoint = `/create-pdf-from-html${queryParams.toString() ? `?${queryParams.toString()}` : ''}`;
|
||||
|
||||
// Build settings object
|
||||
const settings: any = {};
|
||||
|
||||
if (pageSize && pageSize !== 'A4') {
|
||||
settings.paper_size = pageSize;
|
||||
}
|
||||
|
||||
if (orientation) {
|
||||
settings.orientation = orientation === 'landscape' ? '1' : '0';
|
||||
}
|
||||
|
||||
if (marginTop !== undefined) {
|
||||
settings.margin_top = marginTop.toString();
|
||||
}
|
||||
|
||||
if (marginBottom !== undefined) {
|
||||
settings.margin_bottom = marginBottom.toString();
|
||||
}
|
||||
|
||||
if (marginLeft !== undefined) {
|
||||
settings.margin_left = marginLeft.toString();
|
||||
}
|
||||
|
||||
if (marginRight !== undefined) {
|
||||
settings.margin_right = marginRight.toString();
|
||||
}
|
||||
|
||||
if (printBackground !== undefined) {
|
||||
settings.print_background = printBackground ? '1' : '0';
|
||||
}
|
||||
|
||||
if (headerFontSize) {
|
||||
settings.header_font_size = headerFontSize;
|
||||
}
|
||||
|
||||
if (displayHeaderFooter !== undefined) {
|
||||
settings.displayHeaderFooter = displayHeaderFooter;
|
||||
}
|
||||
|
||||
if (customHeader) {
|
||||
settings.custom_header = customHeader;
|
||||
}
|
||||
|
||||
if (customFooter) {
|
||||
settings.custom_footer = customFooter;
|
||||
}
|
||||
|
||||
if (scale !== undefined) {
|
||||
settings.scale = scale.toString();
|
||||
}
|
||||
|
||||
if (waitForTimeout !== undefined) {
|
||||
settings.wait_for_timeout = waitForTimeout.toString();
|
||||
}
|
||||
|
||||
// Build request body
|
||||
const requestBody: any = {
|
||||
body: html,
|
||||
};
|
||||
|
||||
if (css) {
|
||||
requestBody.css = css;
|
||||
}
|
||||
|
||||
if (data) {
|
||||
requestBody.data = data;
|
||||
}
|
||||
|
||||
if (Object.keys(settings).length > 0) {
|
||||
requestBody.settings = settings;
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await makeRequest(
|
||||
authConfig.apiKey,
|
||||
HttpMethod.POST,
|
||||
endpoint,
|
||||
requestBody,
|
||||
undefined,
|
||||
authConfig.region as ApitemplateRegion
|
||||
);
|
||||
|
||||
return response;
|
||||
} catch (error: any) {
|
||||
|
||||
if (error.message.includes('502') && authConfig.region !== 'default') {
|
||||
throw new Error(
|
||||
`${error.message}\n\nThe ${authConfig.region} region appears to be experiencing issues. ` +
|
||||
`Consider switching to the 'default' region in your authentication settings or try again later.`
|
||||
);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,277 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { ApitemplateAuth } from '../common/auth';
|
||||
import { ApitemplateRegion, makeRequest } from '../common/client';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const createPdfFromUrl = createAction({
|
||||
auth: ApitemplateAuth,
|
||||
name: 'createPdfFromUrl',
|
||||
displayName: 'Create PDF From URL',
|
||||
description: 'Creates a PDF from a webpage URL.',
|
||||
props: {
|
||||
url: Property.ShortText({
|
||||
displayName: 'URL',
|
||||
description: 'The URL of the webpage to convert to PDF',
|
||||
required: true,
|
||||
}),
|
||||
expiration: Property.Number({
|
||||
displayName: 'Expiration (minutes)',
|
||||
description: 'Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.',
|
||||
required: false,
|
||||
}),
|
||||
pageSize: Property.StaticDropdown({
|
||||
displayName: 'Page Size',
|
||||
description: 'PDF page size format',
|
||||
required: false,
|
||||
defaultValue: 'A4',
|
||||
options: {
|
||||
options: [
|
||||
{ label: 'A4', value: 'A4' },
|
||||
{ label: 'A3', value: 'A3' },
|
||||
{ label: 'A5', value: 'A5' },
|
||||
{ label: 'Letter', value: 'Letter' },
|
||||
{ label: 'Legal', value: 'Legal' },
|
||||
{ label: 'Tabloid', value: 'Tabloid' },
|
||||
],
|
||||
},
|
||||
}),
|
||||
orientation: Property.StaticDropdown({
|
||||
displayName: 'Page Orientation',
|
||||
description: 'PDF page orientation',
|
||||
required: false,
|
||||
defaultValue: 'portrait',
|
||||
options: {
|
||||
options: [
|
||||
{ label: 'Portrait', value: 'portrait' },
|
||||
{ label: 'Landscape', value: 'landscape' },
|
||||
],
|
||||
},
|
||||
}),
|
||||
marginTop: Property.Number({
|
||||
displayName: 'Margin Top (mm)',
|
||||
description: 'Top margin in millimeters',
|
||||
required: false,
|
||||
}),
|
||||
marginBottom: Property.Number({
|
||||
displayName: 'Margin Bottom (mm)',
|
||||
description: 'Bottom margin in millimeters',
|
||||
required: false,
|
||||
}),
|
||||
marginLeft: Property.Number({
|
||||
displayName: 'Margin Left (mm)',
|
||||
description: 'Left margin in millimeters',
|
||||
required: false,
|
||||
}),
|
||||
marginRight: Property.Number({
|
||||
displayName: 'Margin Right (mm)',
|
||||
description: 'Right margin in millimeters',
|
||||
required: false,
|
||||
}),
|
||||
printBackground: Property.Checkbox({
|
||||
displayName: 'Print Background',
|
||||
description: 'Whether to print background graphics and colors',
|
||||
required: false,
|
||||
defaultValue: true,
|
||||
}),
|
||||
headerFontSize: Property.ShortText({
|
||||
displayName: 'Header Font Size',
|
||||
description: 'Font size for header (e.g., "9px")',
|
||||
required: false,
|
||||
}),
|
||||
displayHeaderFooter: Property.Checkbox({
|
||||
displayName: 'Display Header/Footer',
|
||||
description: 'Whether to display header and footer',
|
||||
required: false,
|
||||
defaultValue: false,
|
||||
}),
|
||||
customHeader: Property.LongText({
|
||||
displayName: 'Custom Header HTML',
|
||||
description: 'Custom HTML content for header',
|
||||
required: false,
|
||||
}),
|
||||
customFooter: Property.LongText({
|
||||
displayName: 'Custom Footer HTML',
|
||||
description: 'Custom HTML content for footer',
|
||||
required: false,
|
||||
}),
|
||||
scale: Property.Number({
|
||||
displayName: 'Scale',
|
||||
description: 'Scale factor for the PDF (0.1 to 2.0)',
|
||||
required: false,
|
||||
}),
|
||||
waitForTimeout: Property.Number({
|
||||
displayName: 'Wait Timeout (ms)',
|
||||
description: 'Time to wait for page to load before generating PDF (in milliseconds)',
|
||||
required: false,
|
||||
}),
|
||||
waitForSelector: Property.ShortText({
|
||||
displayName: 'Wait for Selector',
|
||||
description: 'CSS selector to wait for before generating PDF (e.g., ".content-loaded")',
|
||||
required: false,
|
||||
}),
|
||||
viewportWidth: Property.Number({
|
||||
displayName: 'Viewport Width',
|
||||
description: 'Browser viewport width in pixels (default: 1920)',
|
||||
required: false,
|
||||
defaultValue: 1920,
|
||||
}),
|
||||
viewportHeight: Property.Number({
|
||||
displayName: 'Viewport Height',
|
||||
description: 'Browser viewport height in pixels (default: 1080)',
|
||||
required: false,
|
||||
defaultValue: 1080,
|
||||
}),
|
||||
fullPage: Property.Checkbox({
|
||||
displayName: 'Full Page',
|
||||
description: 'Capture the full scrollable page',
|
||||
required: false,
|
||||
defaultValue: true,
|
||||
}),
|
||||
meta: Property.ShortText({
|
||||
displayName: 'External Reference ID',
|
||||
description: 'Specify an external reference ID for your own reference',
|
||||
required: false,
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const authConfig = auth.props;
|
||||
const {
|
||||
url,
|
||||
expiration,
|
||||
pageSize,
|
||||
orientation,
|
||||
marginTop,
|
||||
marginBottom,
|
||||
marginLeft,
|
||||
marginRight,
|
||||
printBackground,
|
||||
headerFontSize,
|
||||
displayHeaderFooter,
|
||||
customHeader,
|
||||
customFooter,
|
||||
scale,
|
||||
waitForTimeout,
|
||||
waitForSelector,
|
||||
viewportWidth,
|
||||
viewportHeight,
|
||||
fullPage,
|
||||
meta,
|
||||
} = propsValue;
|
||||
|
||||
// Build query parameters for basic options
|
||||
const queryParams = new URLSearchParams();
|
||||
|
||||
|
||||
if (expiration !== undefined && expiration !== 0) {
|
||||
queryParams.append('expiration', expiration.toString());
|
||||
}
|
||||
|
||||
if (meta) {
|
||||
queryParams.append('meta', meta);
|
||||
}
|
||||
|
||||
const endpoint = `/create-pdf-from-url${queryParams.toString() ? `?${queryParams.toString()}` : ''}`;
|
||||
|
||||
// Build settings object for page configuration
|
||||
const settings: any = {};
|
||||
|
||||
if (pageSize && pageSize !== 'A4') {
|
||||
settings.paper_size = pageSize;
|
||||
}
|
||||
|
||||
if (orientation) {
|
||||
settings.orientation = orientation === 'landscape' ? '1' : '0';
|
||||
}
|
||||
|
||||
if (marginTop !== undefined) {
|
||||
settings.margin_top = marginTop.toString();
|
||||
}
|
||||
|
||||
if (marginBottom !== undefined) {
|
||||
settings.margin_bottom = marginBottom.toString();
|
||||
}
|
||||
|
||||
if (marginLeft !== undefined) {
|
||||
settings.margin_left = marginLeft.toString();
|
||||
}
|
||||
|
||||
if (marginRight !== undefined) {
|
||||
settings.margin_right = marginRight.toString();
|
||||
}
|
||||
|
||||
if (printBackground !== undefined) {
|
||||
settings.print_background = printBackground ? '1' : '0';
|
||||
}
|
||||
|
||||
if (headerFontSize) {
|
||||
settings.header_font_size = headerFontSize;
|
||||
}
|
||||
|
||||
if (displayHeaderFooter !== undefined) {
|
||||
settings.displayHeaderFooter = displayHeaderFooter;
|
||||
}
|
||||
|
||||
if (customHeader) {
|
||||
settings.custom_header = customHeader;
|
||||
}
|
||||
|
||||
if (customFooter) {
|
||||
settings.custom_footer = customFooter;
|
||||
}
|
||||
|
||||
if (scale !== undefined) {
|
||||
settings.scale = scale.toString();
|
||||
}
|
||||
|
||||
if (waitForTimeout !== undefined) {
|
||||
settings.wait_for_timeout = waitForTimeout.toString();
|
||||
}
|
||||
|
||||
if (waitForSelector) {
|
||||
settings.wait_for_selector = waitForSelector;
|
||||
}
|
||||
|
||||
if (viewportWidth !== undefined && viewportWidth !== 1920) {
|
||||
settings.viewport_width = viewportWidth.toString();
|
||||
}
|
||||
|
||||
if (viewportHeight !== undefined && viewportHeight !== 1080) {
|
||||
settings.viewport_height = viewportHeight.toString();
|
||||
}
|
||||
|
||||
if (fullPage !== undefined) {
|
||||
settings.full_page = fullPage ? '1' : '0';
|
||||
}
|
||||
|
||||
// Build request body
|
||||
const requestBody: any = {
|
||||
url: url,
|
||||
};
|
||||
|
||||
if (Object.keys(settings).length > 0) {
|
||||
requestBody.settings = settings;
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await makeRequest(
|
||||
authConfig.apiKey,
|
||||
HttpMethod.POST,
|
||||
endpoint,
|
||||
requestBody,
|
||||
undefined,
|
||||
authConfig.region as ApitemplateRegion
|
||||
);
|
||||
|
||||
return response;
|
||||
} catch (error: any) {
|
||||
|
||||
if (error.message.includes('502') && authConfig.region !== 'default') {
|
||||
throw new Error(
|
||||
`${error.message}\n\nThe ${authConfig.region} region appears to be experiencing issues. ` +
|
||||
`Consider switching to the 'default' region in your authentication settings or try again later.`
|
||||
);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,87 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { ApitemplateAuth } from '../common/auth';
|
||||
import { ApitemplateRegion, makeRequest } from '../common/client';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
import { templateIdDropdown } from '../common/props';
|
||||
|
||||
export const createPdf = createAction({
|
||||
auth: ApitemplateAuth,
|
||||
name: 'createPdf',
|
||||
displayName: 'Create PDF',
|
||||
description: 'Creates a PDF from a template with provided data.',
|
||||
props: {
|
||||
templateId: templateIdDropdown,
|
||||
data: Property.Json({
|
||||
displayName: 'Template Data',
|
||||
description:
|
||||
'JSON data with overrides array to populate the template. Format: {"overrides": [{"name": "object_name", "property": "value"}]}.',
|
||||
required: true,
|
||||
}),
|
||||
expiration: Property.Number({
|
||||
displayName: 'Expiration (minutes)',
|
||||
description:
|
||||
'Expiration of the generated PDF in minutes. Use 0 to store permanently, or 1-10080 minutes (7 days) to specify expiration.',
|
||||
required: false,
|
||||
defaultValue: 0,
|
||||
}),
|
||||
generationDelay: Property.Number({
|
||||
displayName: 'Generation Delay (ms)',
|
||||
description: 'Delay in milliseconds before PDF generation',
|
||||
required: false,
|
||||
}),
|
||||
meta: Property.ShortText({
|
||||
displayName: 'External Reference ID',
|
||||
description: 'Specify an external reference ID for your own reference',
|
||||
required: false,
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const authConfig = auth.props;
|
||||
const {
|
||||
templateId,
|
||||
data,
|
||||
expiration,
|
||||
generationDelay,
|
||||
meta,
|
||||
} = propsValue;
|
||||
|
||||
// Build query parameters according to API docs
|
||||
const queryParams = new URLSearchParams();
|
||||
queryParams.append('template_id', templateId);
|
||||
|
||||
if (expiration !== undefined && expiration !== 0) {
|
||||
queryParams.append('expiration', expiration.toString());
|
||||
}
|
||||
|
||||
if (generationDelay) {
|
||||
queryParams.append('generation_delay', generationDelay.toString());
|
||||
}
|
||||
|
||||
if (meta) {
|
||||
queryParams.append('meta', meta);
|
||||
}
|
||||
|
||||
const endpoint = `/create-pdf?${queryParams.toString()}`;
|
||||
|
||||
try {
|
||||
const response = await makeRequest(
|
||||
authConfig.apiKey,
|
||||
HttpMethod.POST,
|
||||
endpoint,
|
||||
data,
|
||||
undefined,
|
||||
authConfig.region as ApitemplateRegion
|
||||
);
|
||||
|
||||
return response;
|
||||
} catch (error: any) {
|
||||
if (error.message.includes('502') && authConfig.region !== 'default') {
|
||||
throw new Error(
|
||||
`${error.message}\n\nThe ${authConfig.region} region appears to be experiencing issues. ` +
|
||||
`Consider switching to the 'default' region in your authentication settings or try again later.`
|
||||
);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,47 @@
|
||||
import { createAction } from '@activepieces/pieces-framework';
|
||||
import { ApitemplateAuth } from '../common/auth';
|
||||
import { ApitemplateRegion, makeRequest } from '../common/client';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
import { transactionRefDropdown } from '../common/props';
|
||||
|
||||
export const deleteObject = createAction({
|
||||
auth: ApitemplateAuth,
|
||||
name: 'deleteObject',
|
||||
displayName: 'Delete Object',
|
||||
description: 'Deletes a generated PDF or image by its transaction reference or object ID.',
|
||||
props: {
|
||||
transactionRef: transactionRefDropdown,
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const authConfig = auth.props;
|
||||
const { transactionRef } = propsValue;
|
||||
|
||||
// Build query parameters according to API docs
|
||||
const queryParams = new URLSearchParams();
|
||||
queryParams.append('transaction_ref', transactionRef);
|
||||
|
||||
const endpoint = `/delete-object?${queryParams.toString()}`;
|
||||
|
||||
try {
|
||||
const response = await makeRequest(
|
||||
authConfig.apiKey,
|
||||
HttpMethod.GET,
|
||||
endpoint,
|
||||
undefined,
|
||||
undefined,
|
||||
authConfig.region as ApitemplateRegion
|
||||
);
|
||||
|
||||
return response;
|
||||
} catch (error: any) {
|
||||
|
||||
if (error.message.includes('502') && authConfig.region !== 'default') {
|
||||
throw new Error(
|
||||
`${error.message}\n\nThe ${authConfig.region} region appears to be experiencing issues. ` +
|
||||
`Consider switching to the 'default' region in your authentication settings or try again later.`
|
||||
);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,39 @@
|
||||
import { createAction } from '@activepieces/pieces-framework';
|
||||
import { ApitemplateAuth } from '../common/auth';
|
||||
import { ApitemplateRegion, makeRequest } from '../common/client';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const getAccountInformation = createAction({
|
||||
auth: ApitemplateAuth,
|
||||
name: 'getAccountInformation',
|
||||
displayName: 'Get Account Information',
|
||||
description: 'Retrieves account information including usage statistics and account details.',
|
||||
props: {},
|
||||
async run({ auth }) {
|
||||
const authConfig = auth.props;
|
||||
|
||||
const endpoint = '/account-information';
|
||||
|
||||
try {
|
||||
const response = await makeRequest(
|
||||
authConfig.apiKey,
|
||||
HttpMethod.GET,
|
||||
endpoint,
|
||||
undefined,
|
||||
undefined,
|
||||
authConfig.region as ApitemplateRegion
|
||||
);
|
||||
|
||||
return response;
|
||||
} catch (error: any) {
|
||||
|
||||
if (error.message.includes('502') && authConfig.region !== 'default') {
|
||||
throw new Error(
|
||||
`${error.message}\n\nThe ${authConfig.region} region appears to be experiencing issues. ` +
|
||||
`Consider switching to the 'default' region in your authentication settings or try again later.`
|
||||
);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,121 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
import { ApitemplateAuth } from '../common/auth';
|
||||
import { ApitemplateRegion, makeRequest } from '../common/client';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const listObjects = createAction({
|
||||
auth: ApitemplateAuth,
|
||||
name: 'listObjects',
|
||||
displayName: 'List Objects',
|
||||
description:
|
||||
'Retrieves a list of generated PDFs and images with optional filtering',
|
||||
props: {
|
||||
limit: Property.Number({
|
||||
displayName: 'Limit',
|
||||
description:
|
||||
'Maximum number of objects to return (default: 300, max: 300)',
|
||||
required: false,
|
||||
defaultValue: 300,
|
||||
}),
|
||||
offset: Property.Number({
|
||||
displayName: 'Offset',
|
||||
description: 'Number of objects to skip for pagination (default: 0)',
|
||||
required: false,
|
||||
defaultValue: 0,
|
||||
}),
|
||||
templateId: Property.ShortText({
|
||||
displayName: 'Template ID',
|
||||
description: 'Filter objects by template ID (optional)',
|
||||
required: false,
|
||||
}),
|
||||
transactionRef: Property.ShortText({
|
||||
displayName: 'Transaction Reference',
|
||||
description: 'Filter by specific transaction reference (optional)',
|
||||
required: false,
|
||||
}),
|
||||
dateFrom: Property.ShortText({
|
||||
displayName: 'Date From',
|
||||
description: 'Start date for filtering (YYYY-MM-DD format, optional)',
|
||||
required: false,
|
||||
}),
|
||||
dateTo: Property.ShortText({
|
||||
displayName: 'Date To',
|
||||
description: 'End date for filtering (YYYY-MM-DD format, optional)',
|
||||
required: false,
|
||||
}),
|
||||
meta: Property.ShortText({
|
||||
displayName: 'Meta Filter',
|
||||
description: 'Filter by external reference ID (meta field)',
|
||||
required: false,
|
||||
}),
|
||||
},
|
||||
async run({ auth, propsValue }) {
|
||||
const authConfig = auth.props;
|
||||
const {
|
||||
limit,
|
||||
offset,
|
||||
templateId,
|
||||
transactionRef,
|
||||
dateFrom,
|
||||
dateTo,
|
||||
meta,
|
||||
} = propsValue;
|
||||
|
||||
// Build query parameters according to API docs
|
||||
const queryParams = new URLSearchParams();
|
||||
|
||||
if (limit !== undefined && limit !== 300) {
|
||||
queryParams.append('limit', Math.min(limit, 300).toString());
|
||||
}
|
||||
|
||||
if (offset !== undefined && offset !== 0) {
|
||||
queryParams.append('offset', offset.toString());
|
||||
}
|
||||
|
||||
if (templateId) {
|
||||
queryParams.append('template_id', templateId);
|
||||
}
|
||||
|
||||
if (transactionRef) {
|
||||
queryParams.append('transaction_ref', transactionRef);
|
||||
}
|
||||
|
||||
if (dateFrom) {
|
||||
queryParams.append('date_from', dateFrom);
|
||||
}
|
||||
|
||||
if (dateTo) {
|
||||
queryParams.append('date_to', dateTo);
|
||||
}
|
||||
|
||||
if (meta) {
|
||||
queryParams.append('meta', meta);
|
||||
}
|
||||
|
||||
const endpoint = `/list-objects${
|
||||
queryParams.toString() ? `?${queryParams.toString()}` : ''
|
||||
}`;
|
||||
|
||||
try {
|
||||
const response = await makeRequest(
|
||||
authConfig.apiKey,
|
||||
HttpMethod.GET,
|
||||
endpoint,
|
||||
undefined,
|
||||
undefined,
|
||||
authConfig.region as ApitemplateRegion
|
||||
);
|
||||
|
||||
return response;
|
||||
} catch (error: any) {
|
||||
|
||||
if (error.message.includes('502') && authConfig.region !== 'default') {
|
||||
throw new Error(
|
||||
`${error.message}\n\nThe ${authConfig.region} region appears to be experiencing issues. ` +
|
||||
`Consider switching to the 'default' region in your authentication settings or try again later.`
|
||||
);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,72 @@
|
||||
import { PieceAuth, Property } from '@activepieces/pieces-framework';
|
||||
import { makeRequest, ApitemplateAuthConfig } from './client';
|
||||
import { regionDropdown } from './props';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
|
||||
export const ApitemplateAuth = PieceAuth.CustomAuth({
|
||||
description: `
|
||||
To obtain your API key:
|
||||
1. Go to https://app.apitemplate.io/.
|
||||
2. Navigate to API Integration section.
|
||||
3. Copy your API key.
|
||||
|
||||
Select the region closest to your location for better performance.
|
||||
`,
|
||||
props: {
|
||||
region: regionDropdown,
|
||||
apiKey: Property.ShortText({
|
||||
displayName: 'API Key',
|
||||
description: 'Your APITemplate.io API key',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
required: true,
|
||||
validate: async ({ auth }) => {
|
||||
if (!auth?.apiKey) {
|
||||
return {
|
||||
valid: false,
|
||||
error: 'API Key is required',
|
||||
};
|
||||
}
|
||||
|
||||
if (!auth?.region) {
|
||||
return {
|
||||
valid: false,
|
||||
error: 'Region selection is required',
|
||||
};
|
||||
}
|
||||
|
||||
// Type-safe auth casting
|
||||
const authConfig = auth as ApitemplateAuthConfig;
|
||||
|
||||
try {
|
||||
const response = await makeRequest(
|
||||
authConfig.apiKey,
|
||||
HttpMethod.GET,
|
||||
'/account-information',
|
||||
undefined,
|
||||
undefined,
|
||||
authConfig.region
|
||||
);
|
||||
|
||||
// Check if we got a valid response
|
||||
if (response && response.status === 'success') {
|
||||
return {
|
||||
valid: true,
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
valid: false,
|
||||
error: 'Invalid API response. Please check your credentials.',
|
||||
};
|
||||
} catch (error: any) {
|
||||
return {
|
||||
valid: false,
|
||||
error: `Authentication failed: ${
|
||||
error.message || 'Invalid API Key or region configuration'
|
||||
}`,
|
||||
};
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,165 @@
|
||||
import { HttpMethod, httpClient } from '@activepieces/pieces-common';
|
||||
|
||||
export const APITEMPLATE_REGIONS = {
|
||||
default: 'https://rest.apitemplate.io',
|
||||
europe: 'https://rest-de.apitemplate.io',
|
||||
us: 'https://rest-us.apitemplate.io',
|
||||
australia: 'https://rest-au.apitemplate.io',
|
||||
'alt-default': 'https://rest-alt.apitemplate.io',
|
||||
'alt-europe': 'https://rest-alt-de.apitemplate.io',
|
||||
'alt-us': 'https://rest-alt-us.apitemplate.io',
|
||||
} as const;
|
||||
|
||||
export type ApitemplateRegion = keyof typeof APITEMPLATE_REGIONS;
|
||||
|
||||
// Interface for authentication object
|
||||
export interface ApitemplateAuthConfig {
|
||||
apiKey: string;
|
||||
region: ApitemplateRegion;
|
||||
}
|
||||
|
||||
|
||||
export const BASE_URL = APITEMPLATE_REGIONS.default;
|
||||
|
||||
export function getRegionalBaseUrl(region?: ApitemplateRegion): string {
|
||||
return APITEMPLATE_REGIONS[region || 'default'];
|
||||
}
|
||||
|
||||
// Helper function to get alternative regions for fallback
|
||||
function getAlternativeRegions(
|
||||
currentRegion?: ApitemplateRegion
|
||||
): ApitemplateRegion[] {
|
||||
const alternatives: ApitemplateRegion[] = [];
|
||||
|
||||
switch (currentRegion) {
|
||||
case 'default':
|
||||
alternatives.push('alt-default', 'us', 'australia', 'europe');
|
||||
break;
|
||||
case 'europe':
|
||||
alternatives.push('alt-europe', 'default', 'us', 'australia');
|
||||
break;
|
||||
case 'us':
|
||||
alternatives.push('alt-us', 'default', 'australia', 'europe');
|
||||
break;
|
||||
case 'australia':
|
||||
alternatives.push('default', 'us', 'europe');
|
||||
break;
|
||||
case 'alt-default':
|
||||
alternatives.push('default', 'us', 'australia');
|
||||
break;
|
||||
case 'alt-europe':
|
||||
alternatives.push('europe', 'default', 'us');
|
||||
break;
|
||||
case 'alt-us':
|
||||
alternatives.push('us', 'default', 'australia');
|
||||
break;
|
||||
default:
|
||||
alternatives.push('default', 'us', 'australia', 'europe');
|
||||
}
|
||||
|
||||
return alternatives;
|
||||
}
|
||||
|
||||
export async function makeRequest(
|
||||
apiKey: string,
|
||||
method: HttpMethod,
|
||||
path: string,
|
||||
body?: unknown,
|
||||
headers?: Record<string, string> | string,
|
||||
region?: ApitemplateRegion
|
||||
) {
|
||||
const baseUrl = getRegionalBaseUrl(region);
|
||||
|
||||
try {
|
||||
const response = await httpClient.sendRequest({
|
||||
method,
|
||||
url: `${baseUrl}/v2${path}`,
|
||||
headers: {
|
||||
'X-API-KEY': apiKey,
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body,
|
||||
});
|
||||
|
||||
return response.body;
|
||||
} catch (error: any) {
|
||||
// Handle APITemplate.io specific error format
|
||||
// if (error.response?.body && typeof error.response.body === 'object') {
|
||||
// const errorBody = error.response.body as ApitemplateErrorResponse;
|
||||
// if (errorBody.status === 'error' && errorBody.message) {
|
||||
// throw new Error(`APITemplate.io Error: ${errorBody.message}`);
|
||||
// }
|
||||
// }
|
||||
|
||||
// Handle HTTP status errors
|
||||
if (error.response?.status) {
|
||||
const statusCode = error.response.status;
|
||||
const regionInfo = region ? ` (${region} region)` : '';
|
||||
|
||||
switch (statusCode) {
|
||||
case 401:
|
||||
throw new Error(
|
||||
'APITemplate.io Error: Invalid API key or unauthorized access'
|
||||
);
|
||||
case 403:
|
||||
throw new Error(
|
||||
'APITemplate.io Error: Access forbidden - check your API permissions'
|
||||
);
|
||||
case 404:
|
||||
throw new Error(
|
||||
'APITemplate.io Error: Resource not found - check your template ID'
|
||||
);
|
||||
case 429:
|
||||
throw new Error(
|
||||
'APITemplate.io Error: Rate limit exceeded - please try again later'
|
||||
);
|
||||
case 500:
|
||||
throw new Error(
|
||||
`APITemplate.io Error: Internal server error - please try again later${regionInfo}`
|
||||
);
|
||||
case 502:
|
||||
case 503:
|
||||
case 504:
|
||||
{
|
||||
|
||||
const alternatives = getAlternativeRegions(region);
|
||||
const suggestionText =
|
||||
alternatives.length > 0
|
||||
? `\n\nSuggested alternatives: Try switching to one of these regions: ${alternatives
|
||||
.slice(0, 3)
|
||||
.join(', ')}`
|
||||
: '';
|
||||
|
||||
throw new Error(
|
||||
`APITemplate.io Error: Service unavailable${regionInfo}. ` +
|
||||
`The ${
|
||||
region || 'default'
|
||||
} region server is temporarily down.${suggestionText}`
|
||||
);}
|
||||
default:
|
||||
throw new Error(
|
||||
`APITemplate.io Error: HTTP ${statusCode}${regionInfo} - ${
|
||||
error.message || 'Unknown error'
|
||||
}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Handle network or other errors
|
||||
if (error.code === 'ENOTFOUND' || error.code === 'ECONNREFUSED') {
|
||||
const alternatives = getAlternativeRegions(region);
|
||||
const suggestionText =
|
||||
alternatives.length > 0
|
||||
? `\n\nSuggested alternatives: Try switching to one of these regions: ${alternatives
|
||||
.slice(0, 3)
|
||||
.join(', ')}`
|
||||
: '';
|
||||
|
||||
throw new Error(
|
||||
`APITemplate.io Error: Network connectivity issue with ${
|
||||
region || 'default'
|
||||
} region.${suggestionText}`
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
import { Property } from '@activepieces/pieces-framework';
|
||||
import {
|
||||
ApitemplateAuthConfig,
|
||||
ApitemplateRegion,
|
||||
makeRequest,
|
||||
} from './client';
|
||||
import { HttpMethod } from '@activepieces/pieces-common';
|
||||
import { ApitemplateAuth } from './auth';
|
||||
|
||||
export const regionDropdown = Property.StaticDropdown({
|
||||
displayName: 'Region',
|
||||
description: 'Select your preferred API region for better performance',
|
||||
required: true,
|
||||
defaultValue: 'default',
|
||||
options: {
|
||||
options: [
|
||||
{
|
||||
label: 'Default (Singapore)',
|
||||
value: 'default',
|
||||
},
|
||||
{
|
||||
label: 'Europe (Frankfurt)',
|
||||
value: 'europe',
|
||||
},
|
||||
{
|
||||
label: 'US East (N. Virginia)',
|
||||
value: 'us',
|
||||
},
|
||||
{
|
||||
label: 'Australia (Sydney)',
|
||||
value: 'australia',
|
||||
},
|
||||
{
|
||||
label: 'Alternative - Default (Singapore)',
|
||||
value: 'alt-default',
|
||||
},
|
||||
{
|
||||
label: 'Alternative - Europe (Frankfurt)',
|
||||
value: 'alt-europe',
|
||||
},
|
||||
{
|
||||
label: 'Alternative - US East (N. Virginia)',
|
||||
value: 'alt-us',
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
|
||||
export const templateIdDropdown = Property.Dropdown({
|
||||
auth: ApitemplateAuth,
|
||||
displayName: 'Template ID',
|
||||
required: true,
|
||||
refreshers: ['auth'],
|
||||
options: async ({ auth }) => {
|
||||
if (!auth) {
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'Please connect your account first',
|
||||
};
|
||||
}
|
||||
|
||||
const authConfig = auth.props;
|
||||
|
||||
if (!authConfig.apiKey || !authConfig.region) {
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'Please complete authentication setup.',
|
||||
};
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await makeRequest(
|
||||
authConfig.apiKey,
|
||||
HttpMethod.GET,
|
||||
'/list-templates',
|
||||
undefined,
|
||||
undefined,
|
||||
authConfig.region as ApitemplateRegion
|
||||
);
|
||||
|
||||
// Handle the specific APITemplate.io response structure
|
||||
const templates = response?.templates || [];
|
||||
|
||||
if (!Array.isArray(templates) || templates.length === 0) {
|
||||
return {
|
||||
disabled: false,
|
||||
options: [],
|
||||
placeholder: 'No templates found',
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
disabled: false,
|
||||
options: templates.map((template: any) => ({
|
||||
label: `${template.name} (${template.format}) - ${template.status}`,
|
||||
value: template.template_id,
|
||||
})),
|
||||
};
|
||||
} catch (error) {
|
||||
console.error('Error loading templates:', error);
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'Error loading templates',
|
||||
};
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
export const transactionRefDropdown = Property.Dropdown({
|
||||
auth: ApitemplateAuth,
|
||||
displayName: 'Transaction Reference',
|
||||
description: 'Select a transaction reference to filter objects.',
|
||||
required: false,
|
||||
refreshers: ['auth'],
|
||||
options: async ({ auth }) => {
|
||||
if (!auth) {
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'Please connect your account first',
|
||||
};
|
||||
}
|
||||
|
||||
const authConfig = auth.props;
|
||||
|
||||
if (!authConfig.apiKey || !authConfig.region) {
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'Please complete authentication setup',
|
||||
};
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await makeRequest(
|
||||
authConfig.apiKey,
|
||||
HttpMethod.GET,
|
||||
'/list-objects',
|
||||
undefined,
|
||||
undefined,
|
||||
authConfig.region as ApitemplateRegion
|
||||
);
|
||||
|
||||
// Handle the specific APITemplate.io response structure
|
||||
const objects = response?.objects || [];
|
||||
|
||||
if (!Array.isArray(objects) || objects.length === 0) {
|
||||
return {
|
||||
disabled: false,
|
||||
options: [],
|
||||
placeholder: 'No objects found',
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
disabled: false,
|
||||
options: objects.map((obj: any) => ({
|
||||
label: obj.transaction_ref || 'Unknown Transaction Ref',
|
||||
value: obj.transaction_ref || '',
|
||||
})),
|
||||
};
|
||||
} catch (error) {
|
||||
console.error('Error loading transaction references:', error);
|
||||
return {
|
||||
disabled: true,
|
||||
options: [],
|
||||
placeholder: 'Error loading transaction references',
|
||||
};
|
||||
}
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"extends": "../../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"importHelpers": true,
|
||||
"noImplicitOverride": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noPropertyAccessFromIndexSignature": true
|
||||
},
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../../../dist/out-tsc",
|
||||
"declaration": true,
|
||||
"types": ["node"]
|
||||
},
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user