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-backblaze
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
|
||||
## Running lint
|
||||
|
||||
Run `nx lint pieces-backblaze` to execute the lint via [ESLint](https://eslint.org/).
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "@activepieces/piece-backblaze",
|
||||
"version": "0.0.6"
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "pieces-backblaze",
|
||||
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "packages/pieces/community/backblaze/src",
|
||||
"projectType": "library",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nx/js:tsc",
|
||||
"outputs": [
|
||||
"{options.outputPath}"
|
||||
],
|
||||
"options": {
|
||||
"outputPath": "dist/packages/pieces/community/backblaze",
|
||||
"tsConfig": "packages/pieces/community/backblaze/tsconfig.lib.json",
|
||||
"packageJson": "packages/pieces/community/backblaze/package.json",
|
||||
"main": "packages/pieces/community/backblaze/src/index.ts",
|
||||
"assets": [
|
||||
"packages/pieces/community/backblaze/*.md",
|
||||
{
|
||||
"input": "packages/pieces/community/backblaze/src/i18n",
|
||||
"output": "./src/i18n",
|
||||
"glob": "**/!(i18n.json)"
|
||||
}
|
||||
],
|
||||
"buildableProjectDepsInPackageJsonType": "dependencies",
|
||||
"updateBuildableProjectDepsInPackageJson": true
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build",
|
||||
"prebuild"
|
||||
]
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nx/eslint:lint",
|
||||
"outputs": [
|
||||
"{options.outputFile}"
|
||||
]
|
||||
},
|
||||
"prebuild": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"cwd": "packages/pieces/community/backblaze",
|
||||
"command": "bun install --no-save --silent"
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"Scalable storage in the cloud": "Skalierbarer Speicher in der Cloud",
|
||||
"Access Key ID": "Zugangsschlüssel ID",
|
||||
"Secret Access Key": "Geheimer Zugangsschlüssel",
|
||||
"Bucket": "Eimer",
|
||||
"Endpoint": "Endpoint",
|
||||
"Region": "Region",
|
||||
"Default": "Standard",
|
||||
"US East (N. Virginia) [us-east-1]": "US Ost (N. Virginia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "US Ost (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "US West (N. Kalifornien) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "US West (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "Afrika (Cape Town) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Asien-Pazifik (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asien-Pazifik (Osaka-Lokal) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Asien Pazifik (Seoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Asien-Pazifik (Singapur) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Asien-Pazifik (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europa (Frankfurt) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europa (Irland) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europa (London) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europa (Mailand) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europa (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Naher Osten (Bahrain) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "Südamerika (Sa<unk> o Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europa (Spanien) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Asien Pazifik (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Asien Pazifik (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (Peking) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "China (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europa (Zürich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Naher Osten (UAE) [me-central-1]",
|
||||
"\nThis piece allows you to upload files to BackBlaze Bucket compatible services.\n\nBackBlaze Settings:\nRegions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: leave blank\n": "\nDieses Stück erlaubt es dir, Dateien zu BackBlaze Bucket kompatiblen Diensten hochzuladen.\n\nBackBlaze Einstellungen:\nRegionen: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: Lassen Sie leer\n",
|
||||
"Upload File": "Datei hochladen",
|
||||
"Read File": "Datei lesen",
|
||||
"Upload an File to bucket.": "Datei hochladen.",
|
||||
"Read a file from Backblaze bucket to use it in other steps.": "Lese eine Datei aus dem Backblaze Bucket um sie in anderen Schritten zu verwenden.",
|
||||
"File": "Datei",
|
||||
"File Name": "Dateiname",
|
||||
"ACL": "ACL",
|
||||
"Type": "Typ",
|
||||
"Key": "Schlüssel",
|
||||
"my-file-name (no extension). write full path if you want to store in the directories or sub-directories.": "my-file-name (keine Erweiterung). Schreiben Sie den vollständigen Pfad, wenn Sie in den Verzeichnissen oder Unterverzeichnissen speichern möchten.",
|
||||
"The key of the file to read. include extension if file has any extension.": "Der Schlüssel der zu lesenden Datei. Füge die Erweiterung hinzu, wenn die Datei irgendeine Erweiterung hat.",
|
||||
"private": "privat",
|
||||
"public-read": "öffentlich lesen",
|
||||
"public-read-write": "öffentlich-lesen-schreiben",
|
||||
"authenticated-read": "authentifiziertes Lesen",
|
||||
"aws-exec-read": "aws-exec-read",
|
||||
"bucket-owner-read": "bucket-besitzer-lesen",
|
||||
"bucket-owner-full-control": "bucket-Eigentümer-vollständige Kontrolle",
|
||||
"image/png": "image/png",
|
||||
"image/jpeg": "bild/jpeg",
|
||||
"image/gif": "image/gif",
|
||||
"audio/mpeg": "audio-/mpeg",
|
||||
"audio/wav": "audio-/wav",
|
||||
"video/mp4": "video/mp4",
|
||||
"application/pdf": "anwendung/pdf",
|
||||
"application/msword": "anwendung/msword",
|
||||
"text/plain": "text/schlicht",
|
||||
"application/json": "anwendung/json",
|
||||
"New File": "Neue Datei",
|
||||
"Trigger when a new file is uploaded.": "Auslösen wenn eine neue Datei hochgeladen wird.",
|
||||
"Folder Path": "Ordnerpfad"
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"Scalable storage in the cloud": "Almacenamiento escalable en la nube",
|
||||
"Access Key ID": "Clave de acceso ID",
|
||||
"Secret Access Key": "Clave de acceso secreta",
|
||||
"Bucket": "Cubo",
|
||||
"Endpoint": "Endpoint",
|
||||
"Region": "Región",
|
||||
"Default": "Por defecto",
|
||||
"US East (N. Virginia) [us-east-1]": "EEUU Este (N. Virginia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "EEUU Este (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "EEUU Oeste (N. California) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "Oeste de EEUU (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "África (Ciudad del Cabo) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Asia Pacific (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asia Pacífico (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Asia-Pacífico (Seoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Asia Pacífico (Singapore) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Asia Pacífico (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europa (mañana) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europa (mañana) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europa (Londres) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europa (Milán) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europa (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Oriente Medio (Bahrein) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "América del Sur (Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europa (España) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Asia Pacífico (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Asia Pacífico (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (poniendo) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "China (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europa (Zúrich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Oriente Medio (EAU) [me-central-1]",
|
||||
"\nThis piece allows you to upload files to BackBlaze Bucket compatible services.\n\nBackBlaze Settings:\nRegions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: leave blank\n": "\nThis piece allows you to upload files to BackBlaze Bucket compatible services.\n\nBackBlaze Settings:\nRegions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: leave blank\n",
|
||||
"Upload File": "Subir archivo",
|
||||
"Read File": "Leer archivo",
|
||||
"Upload an File to bucket.": "Subir un archivo a bucket.",
|
||||
"Read a file from Backblaze bucket to use it in other steps.": "Lee un archivo de Backblaze bucket para usarlo en otros pasos.",
|
||||
"File": "Archivo",
|
||||
"File Name": "Nombre del archivo",
|
||||
"ACL": "ACL",
|
||||
"Type": "Tipo",
|
||||
"Key": "Clave",
|
||||
"my-file-name (no extension). write full path if you want to store in the directories or sub-directories.": "my-file-name (sin extensión). Escriba la ruta completa si desea guardar en los directorios o subdirectorios.",
|
||||
"The key of the file to read. include extension if file has any extension.": "La clave del archivo a leer. Incluye extensión si el archivo tiene alguna extensión.",
|
||||
"private": "privado",
|
||||
"public-read": "pública-leído",
|
||||
"public-read-write": "pública-lectura-escritura",
|
||||
"authenticated-read": "leído autenticado",
|
||||
"aws-exec-read": "aws-exec-read",
|
||||
"bucket-owner-read": "lectura-dueño de cubo",
|
||||
"bucket-owner-full-control": "dueño del cubo - control completo",
|
||||
"image/png": "image/png",
|
||||
"image/jpeg": "imagen/jpeg",
|
||||
"image/gif": "image/gif",
|
||||
"audio/mpeg": "audio/mpeg",
|
||||
"audio/wav": "audio/wav",
|
||||
"video/mp4": "vídeo/mp4",
|
||||
"application/pdf": "aplicación/pdf",
|
||||
"application/msword": "aplicación/msword",
|
||||
"text/plain": "texto/plano",
|
||||
"application/json": "aplicación/json",
|
||||
"New File": "Nuevo archivo",
|
||||
"Trigger when a new file is uploaded.": "Activar cuando se sube un nuevo archivo.",
|
||||
"Folder Path": "Ruta de la carpeta"
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"Scalable storage in the cloud": "Stockage évolutif dans le cloud",
|
||||
"Access Key ID": "ID de la clé d'accès",
|
||||
"Secret Access Key": "Clé secrète d'accès",
|
||||
"Bucket": "Seau",
|
||||
"Endpoint": "Endpoint",
|
||||
"Region": "Région",
|
||||
"Default": "Par défaut",
|
||||
"US East (N. Virginia) [us-east-1]": "US East (N. Virginie) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "US East (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "US West (N. California) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "US West (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "Afrique (Cape Ville) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Asie-Pacifique (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asie-Pacifique (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Asie-Pacifique (Séoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Asie-Pacifique (Singapore) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Asie-Pacifique (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europe (Francfort) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europe (Irlande) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europe (London) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europe (Milan) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europe (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Moyen Orient (Bahrain) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "Amérique du Sud (Sa<unk> o Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europe (Espagne) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Asie-Pacifique (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Asie Pacifique (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "Chine (Beijing) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "Chine (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europe (Zurich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Moyen Orient (UAE) [me-central-1]",
|
||||
"\nThis piece allows you to upload files to BackBlaze Bucket compatible services.\n\nBackBlaze Settings:\nRegions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: leave blank\n": "\nCette pièce vous permet de télécharger des fichiers vers des services compatibles avec Bucket BackBlaze.\n\nParamètres BackBlaze :\nRégions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nPoint de terminaison : laisser vide\n",
|
||||
"Upload File": "Charger un fichier",
|
||||
"Read File": "Lire le fichier",
|
||||
"Upload an File to bucket.": "Télécharger un fichier dans un compartiment.",
|
||||
"Read a file from Backblaze bucket to use it in other steps.": "Lisez un fichier depuis un bucket Backblaze pour l'utiliser dans d'autres étapes.",
|
||||
"File": "Ficher",
|
||||
"File Name": "Nom du fichier",
|
||||
"ACL": "ACL",
|
||||
"Type": "Type de texte",
|
||||
"Key": "Clés",
|
||||
"my-file-name (no extension). write full path if you want to store in the directories or sub-directories.": "mon-fichier-nom (pas d'extension). Écrire le chemin complet si vous voulez stocker dans les répertoires ou sous-répertoires.",
|
||||
"The key of the file to read. include extension if file has any extension.": "La clé du fichier à lire. inclure l'extension si le fichier a une extension.",
|
||||
"private": "privé",
|
||||
"public-read": "lu en public",
|
||||
"public-read-write": "lecture-écriture publique",
|
||||
"authenticated-read": "authentifié-lu",
|
||||
"aws-exec-read": "aws-exec-read",
|
||||
"bucket-owner-read": "bucket-owner-read",
|
||||
"bucket-owner-full-control": "bucket-owner-full-control",
|
||||
"image/png": "image/png",
|
||||
"image/jpeg": "image/jpeg",
|
||||
"image/gif": "image/gif",
|
||||
"audio/mpeg": "audio/mpeg",
|
||||
"audio/wav": "audio/wav",
|
||||
"video/mp4": "vidéo/mp4",
|
||||
"application/pdf": "application/pdf",
|
||||
"application/msword": "application/msword",
|
||||
"text/plain": "texte/brut",
|
||||
"application/json": "application/json",
|
||||
"New File": "Nouveau fichier",
|
||||
"Trigger when a new file is uploaded.": "Déclencher quand un nouveau fichier est téléchargé.",
|
||||
"Folder Path": "Chemin du dossier"
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"Scalable storage in the cloud": "クラウド内のスケーラブルなストレージ",
|
||||
"Access Key ID": "アクセスキーID",
|
||||
"Secret Access Key": "シークレットアクセスキー",
|
||||
"Bucket": "バケツ入りバケツ",
|
||||
"Endpoint": "Endpoint",
|
||||
"Region": "地域",
|
||||
"Default": "デフォルト",
|
||||
"US East (N. Virginia) [us-east-1]": "US East (バージニア州北部) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "US East (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "US West (N. California) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "アメリカ西部(オレゴン) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "アフリカ (ケープタウン) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "アジア太平洋(香港) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asia Pacific (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "アジア太平洋(ソウル) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "アジア太平洋(シンガポール) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "アジア太平洋(シドニー) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europe (Frankfurt) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "ヨーロッパ (アイルランド) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "ヨーロッパ (ロンドン) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "ヨーロッパ (ミラノ) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "ヨーロッパ (パリ) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "中東(バーレーン) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "南アメリカ (Safingo Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "ヨーロッパ (スペイン) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "アジア太平洋(ハイデラバード) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "アジア太平洋(Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "中国 (北京) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "中国 (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "ヨーロッパ (チューリッヒ) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "中東(UAE) [me-central-1]",
|
||||
"\nThis piece allows you to upload files to BackBlaze Bucket compatible services.\n\nBackBlaze Settings:\nRegions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: leave blank\n": "\nこの作品では、BackBlaze Bucket互換のサービスにファイルをアップロードできます。\n\nBackBlaze設定:\n地域: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nエンドポイント: 空白の\n",
|
||||
"Upload File": "ファイルをアップロード",
|
||||
"Read File": "ファイルの読み取り",
|
||||
"Upload an File to bucket.": "Bucket にファイルをアップロードします。",
|
||||
"Read a file from Backblaze bucket to use it in other steps.": "他のステップで使用するには、Backblazeバケットからファイルを読み込みます。",
|
||||
"File": "ファイル",
|
||||
"File Name": "ファイル名",
|
||||
"ACL": "ACL",
|
||||
"Type": "タイプ",
|
||||
"Key": "キー",
|
||||
"my-file-name (no extension). write full path if you want to store in the directories or sub-directories.": "my-file-name (拡張子なし) ディレクトリまたはサブディレクトリに格納する場合は、フルパスを記述します。",
|
||||
"The key of the file to read. include extension if file has any extension.": "読み込むファイルのキー。fileに任意の拡張子がある場合、include 拡張子。",
|
||||
"private": "非公開",
|
||||
"public-read": "public-read",
|
||||
"public-read-write": "public-read-write",
|
||||
"authenticated-read": "認証された読み取り",
|
||||
"aws-exec-read": "aws-exec-read",
|
||||
"bucket-owner-read": "Bucket-owner-read",
|
||||
"bucket-owner-full-control": "Bucket-owner-full control",
|
||||
"image/png": "image/png",
|
||||
"image/jpeg": "image/jpeg",
|
||||
"image/gif": "image/gif",
|
||||
"audio/mpeg": "audio/mpeg",
|
||||
"audio/wav": "audio/wav",
|
||||
"video/mp4": "video/mp4",
|
||||
"application/pdf": "application/pdf",
|
||||
"application/msword": "application/msword",
|
||||
"text/plain": "text/plain",
|
||||
"application/json": "application/json",
|
||||
"New File": "新規ファイル",
|
||||
"Trigger when a new file is uploaded.": "新しいファイルがアップロードされたときにトリガーします。",
|
||||
"Folder Path": "フォルダパス"
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"Scalable storage in the cloud": "Schaalbare opslag in de cloud",
|
||||
"Access Key ID": "Toegangssleutel ID",
|
||||
"Secret Access Key": "Geheime toegangssleutel",
|
||||
"Bucket": "Emmer",
|
||||
"Endpoint": "Endpoint",
|
||||
"Region": "Regio",
|
||||
"Default": "Standaard",
|
||||
"US East (N. Virginia) [us-east-1]": "VS Oost (N. Virginia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "VS Oost (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "VS West (N. Californië) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "VS West (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "Afrika (Cape Town) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Azië Pacific (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Azië Pacific (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Azië Pacific (Seoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Azië Pacific (Singapore) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Azië Pacific (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europa (Frankfurt) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europa (Ireland) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europa (London) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europa (Milan) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europa (Parijs) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Midden Oosten (Bahrain) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "Zuid-Amerika (Saľo Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europa (Spanje) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Azië Pacific (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Azië Pacific (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (Beijing) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "China (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europa (Zurich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Midden Oosten (AAE) [me-central-1]",
|
||||
"\nThis piece allows you to upload files to BackBlaze Bucket compatible services.\n\nBackBlaze Settings:\nRegions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: leave blank\n": "\nDit stuk maakt het mogelijk om bestanden te uploaden naar compatibele diensten van de BackBlaze Bucket.\n\nBackBlaze Settings:\nregio's: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatibele -api\nEindpunt: laat leeg\n",
|
||||
"Upload File": "Bestand uploaden",
|
||||
"Read File": "Bestand lezen",
|
||||
"Upload an File to bucket.": "Upload een bestand naar bucket.",
|
||||
"Read a file from Backblaze bucket to use it in other steps.": "Lees een bestand van Backblaze bucket om het in andere stappen te gebruiken.",
|
||||
"File": "Bestand",
|
||||
"File Name": "File Name",
|
||||
"ACL": "ACL",
|
||||
"Type": "Type",
|
||||
"Key": "Sleutel",
|
||||
"my-file-name (no extension). write full path if you want to store in the directories or sub-directories.": "mijn-bestandsnaam (geen extensie). Schrijf het volledige pad als u in de mappen of sub-mappen wilt opslaan.",
|
||||
"The key of the file to read. include extension if file has any extension.": "De sleutel van het bestand om te lezen. Extensie als het bestand een extensie heeft.",
|
||||
"private": "Privé",
|
||||
"public-read": "publiek-gelezen",
|
||||
"public-read-write": "publiek-lezen-schrijven",
|
||||
"authenticated-read": "geverifieerd",
|
||||
"aws-exec-read": "aws-exec-read",
|
||||
"bucket-owner-read": "bucket-eigenaar-gelezen",
|
||||
"bucket-owner-full-control": "bucket-eigenaar-volledige controle",
|
||||
"image/png": "image/png",
|
||||
"image/jpeg": "afbeelding/jpeg",
|
||||
"image/gif": "image/gif",
|
||||
"audio/mpeg": "audio/mpeg",
|
||||
"audio/wav": "audio/wav",
|
||||
"video/mp4": "video/mp4",
|
||||
"application/pdf": "applicatie/pdf",
|
||||
"application/msword": "applicatie/msword",
|
||||
"text/plain": "tekst/gewoon",
|
||||
"application/json": "applicatie/json",
|
||||
"New File": "Nieuw bestand",
|
||||
"Trigger when a new file is uploaded.": "Trigger wanneer een nieuw bestand wordt geüpload.",
|
||||
"Folder Path": "Map pad"
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"Scalable storage in the cloud": "Armazenamento escalável na nuvem",
|
||||
"Access Key ID": "Chave ID de acesso",
|
||||
"Secret Access Key": "Chave de Acesso Secreta",
|
||||
"Bucket": "Balde",
|
||||
"Endpoint": "Endpoint",
|
||||
"Region": "Região",
|
||||
"Default": "Padrão",
|
||||
"US East (N. Virginia) [us-east-1]": "Leste dos EUA (N. Virgínia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "Leste dos EUA (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "Oeste dos EUA (N. Califórnia) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "Oeste dos EUA (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "África (Cidade do Macaco) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Ásia Pacífico (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Ásia Pacífico (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Ásia Pacífico (Seul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Ásia Pacífico (Singapura) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Ásia Pacífico (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europa (Frankfurt) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europa (Irlanda) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europa (Londres) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europa (Milão) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europa (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Oriente Médio (Bahre) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "América do Sul (Sa├o Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europa (Espanha) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Ásia Pacífico (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Ásia Pacífico (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (Pequim) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "China (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europa (Zurich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Oriente Médio (AUE) [me-central-1]",
|
||||
"\nThis piece allows you to upload files to BackBlaze Bucket compatible services.\n\nBackBlaze Settings:\nRegions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: leave blank\n": "O módulo autoriza você a enviar arquivos para o BackBlaze Bucket com serviços compatíveis.\n\nConfigurações BackBlaze:\nRegiões: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: Deixe em branco.",
|
||||
"Upload File": "Enviar Arquivo",
|
||||
"Read File": "Arquivo de leitura",
|
||||
"Upload an File to bucket.": "Enviar um arquivo para o bucket.",
|
||||
"Read a file from Backblaze bucket to use it in other steps.": "Leia um arquivo do grupo do Backblaze para usá-lo em outras etapas.",
|
||||
"File": "Arquivo",
|
||||
"File Name": "Nome do arquivo",
|
||||
"ACL": "PTL",
|
||||
"Type": "tipo",
|
||||
"Key": "Chave",
|
||||
"my-file-name (no extension). write full path if you want to store in the directories or sub-directories.": "meu-nome-arquivo (sem extensão). Escreva o caminho completo se você quiser armazenar nos diretórios ou subdiretórios.",
|
||||
"The key of the file to read. include extension if file has any extension.": "A chave do arquivo a ser lido. Inclua extensão se o arquivo tiver alguma extensão.",
|
||||
"private": "privada",
|
||||
"public-read": "leitura-pública",
|
||||
"public-read-write": "leitura-escrita",
|
||||
"authenticated-read": "lido-autenticado",
|
||||
"aws-exec-read": "aws-exec-read",
|
||||
"bucket-owner-read": "lecionar-proprietário-do-quadro",
|
||||
"bucket-owner-full-control": "dono-do-do-em-controle completo",
|
||||
"image/png": "image/png",
|
||||
"image/jpeg": "imagens/jpeg",
|
||||
"image/gif": "image/gif",
|
||||
"audio/mpeg": "áudio/mpeg",
|
||||
"audio/wav": "áudio/wav",
|
||||
"video/mp4": "vídeo/mp4",
|
||||
"application/pdf": "aplicativo/df",
|
||||
"application/msword": "aplicação/msword",
|
||||
"text/plain": "texto/simples",
|
||||
"application/json": "aplicativo/json",
|
||||
"New File": "Novo arquivo",
|
||||
"Trigger when a new file is uploaded.": "Dispara quando um novo arquivo é carregado.",
|
||||
"Folder Path": "Caminho da pasta"
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"Backblaze": "Заднее пламя",
|
||||
"Scalable storage in the cloud": "Масштабируемое хранилище в облаке",
|
||||
"Access Key ID": "ID ключа доступа",
|
||||
"Secret Access Key": "Ключ секретного доступа",
|
||||
"Bucket": "Ведро",
|
||||
"Endpoint": "Endpoint",
|
||||
"Region": "Регион",
|
||||
"Default": "По умолчанию",
|
||||
"US East (N. Virginia) [us-east-1]": "US East (N. Virginia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "US East (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "US West (N. California) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "US West (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "Africa (Cape Town) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Asia Pacific (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asia Pacific (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Asia Pacific (Seoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Asia Pacific (Singapore) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Asia Pacific (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Европа (Франкфурт) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Европа (Ирландия) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Европа (Лондон) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Европа (Милан) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europe (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Middle East (Bahrain) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "South America (São Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Европа (Испания) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Asia Pacific (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Asia Pacific (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (Beijing) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "Китай (Нинксия) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Европа (Цюрих) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Middle East (UAE) [me-central-1]",
|
||||
"\nThis piece allows you to upload files to BackBlaze Bucket compatible services.\n\nBackBlaze Settings:\nRegions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: leave blank\n": "\nЭта часть позволяет вам загружать файлы в сервисы совместимые с BackBlaze.\n\nBackBlaze:\nОбласти: https://www.backblaze.com/apidocs/introduction-to-s3 compatitive api\nEndpoint: оставьте пустым\n",
|
||||
"Upload File": "Загрузить файл",
|
||||
"Read File": "Читать файл",
|
||||
"Upload an File to bucket.": "Загрузить файл на корзину.",
|
||||
"Read a file from Backblaze bucket to use it in other steps.": "Прочитайте файл из корзины Backblaze, чтобы использовать его в других шагах.",
|
||||
"File": "Файл",
|
||||
"File Name": "Имя файла",
|
||||
"ACL": "ACL",
|
||||
"Type": "Тип",
|
||||
"Key": "Спецификация",
|
||||
"my-file-name (no extension). write full path if you want to store in the directories or sub-directories.": "Имя my-file-файла (без расширения). записать полный путь, если вы хотите сохранить в каталогах или подкаталогах.",
|
||||
"The key of the file to read. include extension if file has any extension.": "Ключ файла для чтения. Включите расширение, если файл имеет расширение.",
|
||||
"private": "приватный",
|
||||
"public-read": "публичное чтение",
|
||||
"public-read-write": "публичное чтение",
|
||||
"authenticated-read": "прочтение аутентификации",
|
||||
"aws-exec-read": "aws-exec-read",
|
||||
"bucket-owner-read": "прочитано владельцем контейнера",
|
||||
"bucket-owner-full-control": "полноправное управление ведром-владельцем",
|
||||
"image/png": "image/png",
|
||||
"image/jpeg": "изображение/jpeg",
|
||||
"image/gif": "image/gif",
|
||||
"audio/mpeg": "аудио/мпег",
|
||||
"audio/wav": "аудио/вав",
|
||||
"video/mp4": "видео/mp4",
|
||||
"application/pdf": "приложение/pdf",
|
||||
"application/msword": "приложение/msword",
|
||||
"text/plain": "текст/простой",
|
||||
"application/json": "приложение/json",
|
||||
"New File": "Новый файл",
|
||||
"Trigger when a new file is uploaded.": "Срабатывать при загрузке нового файла.",
|
||||
"Folder Path": "Путь к папке"
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"Scalable storage in the cloud": "Scalable storage in the cloud",
|
||||
"Access Key ID": "Access Key ID",
|
||||
"Secret Access Key": "Secret Access Key",
|
||||
"Bucket": "Bucket",
|
||||
"Endpoint": "Endpoint",
|
||||
"Region": "Region",
|
||||
"Default": "Default",
|
||||
"US East (N. Virginia) [us-east-1]": "US East (N. Virginia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "US East (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "US West (N. California) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "US West (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "Africa (Cape Town) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Asia Pacific (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asia Pacific (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Asia Pacific (Seoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Asia Pacific (Singapore) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Asia Pacific (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europe (Frankfurt) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europe (Ireland) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europe (London) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europe (Milan) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europe (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Middle East (Bahrain) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "South America (São Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europe (Spain) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Asia Pacific (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Asia Pacific (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (Beijing) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "China (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europe (Zurich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Middle East (UAE) [me-central-1]",
|
||||
"\nThis piece allows you to upload files to BackBlaze Bucket compatible services.\n\nBackBlaze Settings:\nRegions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: leave blank\n": "\nThis piece allows you to upload files to BackBlaze Bucket compatible services.\n\nBackBlaze Settings:\nRegions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: leave blank\n",
|
||||
"Upload File": "Upload File",
|
||||
"Read File": "Read File",
|
||||
"Upload an File to bucket.": "Upload an File to bucket.",
|
||||
"Read a file from Backblaze bucket to use it in other steps.": "Read a file from Backblaze bucket to use it in other steps.",
|
||||
"File": "File",
|
||||
"File Name": "File Name",
|
||||
"ACL": "ACL",
|
||||
"Type": "Type",
|
||||
"Key": "Key",
|
||||
"my-file-name (no extension). write full path if you want to store in the directories or sub-directories.": "my-file-name (no extension). write full path if you want to store in the directories or sub-directories.",
|
||||
"The key of the file to read. include extension if file has any extension.": "The key of the file to read. include extension if file has any extension.",
|
||||
"private": "private",
|
||||
"public-read": "public-read",
|
||||
"public-read-write": "public-read-write",
|
||||
"authenticated-read": "authenticated-read",
|
||||
"aws-exec-read": "aws-exec-read",
|
||||
"bucket-owner-read": "bucket-owner-read",
|
||||
"bucket-owner-full-control": "bucket-owner-full-control",
|
||||
"image/png": "image/png",
|
||||
"image/jpeg": "image/jpeg",
|
||||
"image/gif": "image/gif",
|
||||
"audio/mpeg": "audio/mpeg",
|
||||
"audio/wav": "audio/wav",
|
||||
"video/mp4": "video/mp4",
|
||||
"application/pdf": "application/pdf",
|
||||
"application/msword": "application/msword",
|
||||
"text/plain": "text/plain",
|
||||
"application/json": "application/json",
|
||||
"New File": "New File",
|
||||
"Trigger when a new file is uploaded.": "Trigger when a new file is uploaded.",
|
||||
"Folder Path": "Folder Path"
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"Backblaze": "Backblaze",
|
||||
"Scalable storage in the cloud": "Scalable storage in the cloud",
|
||||
"Access Key ID": "Access Key ID",
|
||||
"Secret Access Key": "Secret Access Key",
|
||||
"Bucket": "Bucket",
|
||||
"Endpoint": "Endpoint",
|
||||
"Region": "Region",
|
||||
"Default": "Default",
|
||||
"US East (N. Virginia) [us-east-1]": "US East (N. Virginia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "US East (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "US West (N. California) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "US West (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "Africa (Cape Town) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Asia Pacific (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asia Pacific (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Asia Pacific (Seoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Asia Pacific (Singapore) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Asia Pacific (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europe (Frankfurt) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europe (Ireland) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europe (London) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europe (Milan) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europe (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Middle East (Bahrain) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "South America (São Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europe (Spain) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Asia Pacific (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Asia Pacific (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (Beijing) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "China (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europe (Zurich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Middle East (UAE) [me-central-1]",
|
||||
"\nThis piece allows you to upload files to BackBlaze Bucket compatible services.\n\nBackBlaze Settings:\nRegions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: leave blank\n": "\nThis piece allows you to upload files to BackBlaze Bucket compatible services.\n\nBackBlaze Settings:\nRegions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: leave blank\n",
|
||||
"Upload File": "Upload File",
|
||||
"Read File": "Read File",
|
||||
"Upload an File to bucket.": "Upload an File to bucket.",
|
||||
"Read a file from Backblaze bucket to use it in other steps.": "Read a file from Backblaze bucket to use it in other steps.",
|
||||
"File": "File",
|
||||
"File Name": "File Name",
|
||||
"ACL": "ACL",
|
||||
"Type": "Type",
|
||||
"Key": "Key",
|
||||
"my-file-name (no extension). write full path if you want to store in the directories or sub-directories.": "my-file-name (no extension). write full path if you want to store in the directories or sub-directories.",
|
||||
"The key of the file to read. include extension if file has any extension.": "The key of the file to read. include extension if file has any extension.",
|
||||
"private": "private",
|
||||
"public-read": "public-read",
|
||||
"public-read-write": "public-read-write",
|
||||
"authenticated-read": "authenticated-read",
|
||||
"aws-exec-read": "aws-exec-read",
|
||||
"bucket-owner-read": "bucket-owner-read",
|
||||
"bucket-owner-full-control": "bucket-owner-full-control",
|
||||
"image/png": "image/png",
|
||||
"image/jpeg": "image/jpeg",
|
||||
"image/gif": "image/gif",
|
||||
"audio/mpeg": "audio/mpeg",
|
||||
"audio/wav": "audio/wav",
|
||||
"video/mp4": "video/mp4",
|
||||
"application/pdf": "application/pdf",
|
||||
"application/msword": "application/msword",
|
||||
"text/plain": "text/plain",
|
||||
"application/json": "application/json",
|
||||
"New File": "New File",
|
||||
"Trigger when a new file is uploaded.": "Trigger when a new file is uploaded.",
|
||||
"Folder Path": "Folder Path"
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"Scalable storage in the cloud": "Scalable storage in the cloud",
|
||||
"Access Key ID": "Access Key ID",
|
||||
"Secret Access Key": "Secret Access Key",
|
||||
"Bucket": "Bucket",
|
||||
"Endpoint": "Endpoint",
|
||||
"Region": "Region",
|
||||
"Default": "Default",
|
||||
"US East (N. Virginia) [us-east-1]": "US East (N. Virginia) [us-east-1]",
|
||||
"US East (Ohio) [us-east-2]": "US East (Ohio) [us-east-2]",
|
||||
"US West (N. California) [us-west-1]": "US West (N. California) [us-west-1]",
|
||||
"US West (Oregon) [us-west-2]": "US West (Oregon) [us-west-2]",
|
||||
"Africa (Cape Town) [af-south-1]": "Africa (Cape Town) [af-south-1]",
|
||||
"Asia Pacific (Hong Kong) [ap-east-1]": "Asia Pacific (Hong Kong) [ap-east-1]",
|
||||
"Asia Pacific (Mumbai) [ap-south-1]": "Asia Pacific (Mumbai) [ap-south-1]",
|
||||
"Asia Pacific (Osaka-Local) [ap-northeast-3]": "Asia Pacific (Osaka-Local) [ap-northeast-3]",
|
||||
"Asia Pacific (Seoul) [ap-northeast-2]": "Asia Pacific (Seoul) [ap-northeast-2]",
|
||||
"Asia Pacific (Singapore) [ap-southeast-1]": "Asia Pacific (Singapore) [ap-southeast-1]",
|
||||
"Asia Pacific (Sydney) [ap-southeast-2]": "Asia Pacific (Sydney) [ap-southeast-2]",
|
||||
"Asia Pacific (Tokyo) [ap-northeast-1]": "Asia Pacific (Tokyo) [ap-northeast-1]",
|
||||
"Canada (Central) [ca-central-1]": "Canada (Central) [ca-central-1]",
|
||||
"Europe (Frankfurt) [eu-central-1]": "Europe (Frankfurt) [eu-central-1]",
|
||||
"Europe (Ireland) [eu-west-1]": "Europe (Ireland) [eu-west-1]",
|
||||
"Europe (London) [eu-west-2]": "Europe (London) [eu-west-2]",
|
||||
"Europe (Milan) [eu-south-1]": "Europe (Milan) [eu-south-1]",
|
||||
"Europe (Paris) [eu-west-3]": "Europe (Paris) [eu-west-3]",
|
||||
"Europe (Stockholm) [eu-north-1]": "Europe (Stockholm) [eu-north-1]",
|
||||
"Middle East (Bahrain) [me-south-1]": "Middle East (Bahrain) [me-south-1]",
|
||||
"South America (São Paulo) [sa-east-1]": "South America (São Paulo) [sa-east-1]",
|
||||
"Europe (Spain) [eu-south-2]": "Europe (Spain) [eu-south-2]",
|
||||
"Asia Pacific (Hyderabad) [ap-south-2]": "Asia Pacific (Hyderabad) [ap-south-2]",
|
||||
"Asia Pacific (Jakarta) [ap-southeast-3]": "Asia Pacific (Jakarta) [ap-southeast-3]",
|
||||
"Asia Pacific (Melbourne) [ap-southeast-4]": "Asia Pacific (Melbourne) [ap-southeast-4]",
|
||||
"China (Beijing) [cn-north-1]": "China (Beijing) [cn-north-1]",
|
||||
"China (Ningxia) [cn-northwest-1]": "China (Ningxia) [cn-northwest-1]",
|
||||
"Europe (Zurich) [eu-central-2]": "Europe (Zurich) [eu-central-2]",
|
||||
"Middle East (UAE) [me-central-1]": "Middle East (UAE) [me-central-1]",
|
||||
"\nThis piece allows you to upload files to BackBlaze Bucket compatible services.\n\nBackBlaze Settings:\nRegions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: leave blank\n": "\nThis piece allows you to upload files to BackBlaze Bucket compatible services.\n\nBackBlaze Settings:\nRegions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api\nEndpoint: leave blank\n",
|
||||
"Upload File": "Upload File",
|
||||
"Read File": "Read File",
|
||||
"Upload an File to bucket.": "Upload an File to bucket.",
|
||||
"Read a file from Backblaze bucket to use it in other steps.": "Read a file from Backblaze bucket to use it in other steps.",
|
||||
"File": "文件",
|
||||
"File Name": "File Name",
|
||||
"ACL": "ACL",
|
||||
"Type": "类型",
|
||||
"Key": "关键字",
|
||||
"my-file-name (no extension). write full path if you want to store in the directories or sub-directories.": "my-file-name (no extension). write full path if you want to store in the directories or sub-directories.",
|
||||
"The key of the file to read. include extension if file has any extension.": "The key of the file to read. include extension if file has any extension.",
|
||||
"private": "private",
|
||||
"public-read": "public-read",
|
||||
"public-read-write": "public-read-write",
|
||||
"authenticated-read": "authenticated-read",
|
||||
"aws-exec-read": "aws-exec-read",
|
||||
"bucket-owner-read": "bucket-owner-read",
|
||||
"bucket-owner-full-control": "bucket-owner-full-control",
|
||||
"image/png": "image/png",
|
||||
"image/jpeg": "image/jpeg",
|
||||
"image/gif": "image/gif",
|
||||
"audio/mpeg": "audio/mpeg",
|
||||
"audio/wav": "audio/wav",
|
||||
"video/mp4": "video/mp4",
|
||||
"application/pdf": "application/pdf",
|
||||
"application/msword": "application/msword",
|
||||
"text/plain": "text/plain",
|
||||
"application/json": "application/json",
|
||||
"New File": "New File",
|
||||
"Trigger when a new file is uploaded.": "Trigger when a new file is uploaded.",
|
||||
"Folder Path": "Folder Path"
|
||||
}
|
||||
@@ -0,0 +1,198 @@
|
||||
import {
|
||||
PieceAuth,
|
||||
Property,
|
||||
createPiece,
|
||||
} from '@activepieces/pieces-framework';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { readBackBlazeFileAction } from './lib/actions/read-file';
|
||||
import { backBlazes3UploadFileAction } from './lib/actions/upload-file';
|
||||
import { createBackBlazeS3 } from './lib/common';
|
||||
import { newBackBlazeFileTrigger } from './lib/triggers/new-file';
|
||||
|
||||
const description = `
|
||||
This piece allows you to upload files to BackBlaze Bucket compatible services.
|
||||
|
||||
BackBlaze Settings:
|
||||
Regions: https://www.backblaze.com/apidocs/introduction-to-the-s3-compatible-api
|
||||
Endpoint: leave blank
|
||||
`;
|
||||
|
||||
export const backBlazeS3Auth = PieceAuth.CustomAuth({
|
||||
description: description,
|
||||
props: {
|
||||
accessKeyId: Property.ShortText({
|
||||
displayName: 'Access Key ID',
|
||||
required: true,
|
||||
}),
|
||||
secretAccessKey: PieceAuth.SecretText({
|
||||
displayName: 'Secret Access Key',
|
||||
required: true,
|
||||
}),
|
||||
bucket: Property.ShortText({
|
||||
displayName: 'Bucket',
|
||||
required: true,
|
||||
}),
|
||||
endpoint: Property.ShortText({
|
||||
displayName: 'Endpoint',
|
||||
required: false,
|
||||
}),
|
||||
region: Property.StaticDropdown({
|
||||
displayName: 'Region',
|
||||
options: {
|
||||
options: [
|
||||
{
|
||||
label: 'Default',
|
||||
value: 'us-east-1',
|
||||
},
|
||||
{
|
||||
label: 'US East (N. Virginia) [us-east-1]',
|
||||
value: 'us-east-1',
|
||||
},
|
||||
{
|
||||
label: 'US East (Ohio) [us-east-2]',
|
||||
value: 'us-east-2',
|
||||
},
|
||||
{
|
||||
label: 'US West (N. California) [us-west-1]',
|
||||
value: 'us-west-1',
|
||||
},
|
||||
{
|
||||
label: 'US West (Oregon) [us-west-2]',
|
||||
value: 'us-west-2',
|
||||
},
|
||||
{
|
||||
label: 'Africa (Cape Town) [af-south-1]',
|
||||
value: 'af-south-1',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Hong Kong) [ap-east-1]',
|
||||
value: 'ap-east-1',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Mumbai) [ap-south-1]',
|
||||
value: 'ap-south-1',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Osaka-Local) [ap-northeast-3]',
|
||||
value: 'ap-northeast-3',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Seoul) [ap-northeast-2]',
|
||||
value: 'ap-northeast-2',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Singapore) [ap-southeast-1]',
|
||||
value: 'ap-southeast-1',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Sydney) [ap-southeast-2]',
|
||||
value: 'ap-southeast-2',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Tokyo) [ap-northeast-1]',
|
||||
value: 'ap-northeast-1',
|
||||
},
|
||||
{
|
||||
label: 'Canada (Central) [ca-central-1]',
|
||||
value: 'ca-central-1',
|
||||
},
|
||||
{
|
||||
label: 'Europe (Frankfurt) [eu-central-1]',
|
||||
value: 'eu-central-1',
|
||||
},
|
||||
{
|
||||
label: 'Europe (Ireland) [eu-west-1]',
|
||||
value: 'eu-west-1',
|
||||
},
|
||||
{
|
||||
label: 'Europe (London) [eu-west-2]',
|
||||
value: 'eu-west-2',
|
||||
},
|
||||
{
|
||||
label: 'Europe (Milan) [eu-south-1]',
|
||||
value: 'eu-south-1',
|
||||
},
|
||||
{
|
||||
label: 'Europe (Paris) [eu-west-3]',
|
||||
value: 'eu-west-3',
|
||||
},
|
||||
{
|
||||
label: 'Europe (Stockholm) [eu-north-1]',
|
||||
value: 'eu-north-1',
|
||||
},
|
||||
{
|
||||
label: 'Middle East (Bahrain) [me-south-1]',
|
||||
value: 'me-south-1',
|
||||
},
|
||||
{
|
||||
label: 'South America (São Paulo) [sa-east-1]',
|
||||
value: 'sa-east-1',
|
||||
},
|
||||
{
|
||||
label: 'Europe (Spain) [eu-south-2]',
|
||||
value: 'eu-south-2',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Hyderabad) [ap-south-2]',
|
||||
value: 'ap-south-2',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Jakarta) [ap-southeast-3]',
|
||||
value: 'ap-southeast-3',
|
||||
},
|
||||
{
|
||||
label: 'Asia Pacific (Melbourne) [ap-southeast-4]',
|
||||
value: 'ap-southeast-4',
|
||||
},
|
||||
{
|
||||
label: 'China (Beijing) [cn-north-1]',
|
||||
value: 'cn-north-1',
|
||||
},
|
||||
{
|
||||
label: 'China (Ningxia) [cn-northwest-1]',
|
||||
value: 'cn-northwest-1',
|
||||
},
|
||||
{
|
||||
label: 'Europe (Zurich) [eu-central-2]',
|
||||
value: 'eu-central-2',
|
||||
},
|
||||
{
|
||||
label: 'Middle East (UAE) [me-central-1]',
|
||||
value: 'me-central-1',
|
||||
},
|
||||
],
|
||||
},
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
validate: async ({ auth }) => {
|
||||
const s3 = createBackBlazeS3(auth);
|
||||
try {
|
||||
await s3.listObjectsV2({
|
||||
Bucket: auth.bucket,
|
||||
MaxKeys: 1,
|
||||
});
|
||||
return {
|
||||
valid: true,
|
||||
};
|
||||
} catch (e) {
|
||||
return {
|
||||
valid: false,
|
||||
error: (e as Error)?.message,
|
||||
};
|
||||
}
|
||||
},
|
||||
required: true,
|
||||
});
|
||||
|
||||
export const backblaze = createPiece({
|
||||
displayName: 'Backblaze',
|
||||
description: 'Scalable storage in the cloud',
|
||||
logoUrl: 'https://cdn.activepieces.com/pieces/backblaze.png',
|
||||
minimumSupportedRelease: '0.30.0',
|
||||
authors: ["nhnansari","kishanprmr"],
|
||||
categories: [PieceCategory.DEVELOPER_TOOLS],
|
||||
auth: backBlazeS3Auth,
|
||||
actions: [backBlazes3UploadFileAction, readBackBlazeFileAction],
|
||||
triggers: [newBackBlazeFileTrigger],
|
||||
});
|
||||
@@ -0,0 +1,35 @@
|
||||
import { Property, createAction } from '@activepieces/pieces-framework';
|
||||
import { backBlazeS3Auth } from '../..';
|
||||
import { createBackBlazeS3 } from '../common';
|
||||
|
||||
export const readBackBlazeFileAction = createAction({
|
||||
auth: backBlazeS3Auth,
|
||||
name: 'read-backblaze-file',
|
||||
displayName: 'Read File',
|
||||
description: 'Read a file from Backblaze bucket to use it in other steps.',
|
||||
props: {
|
||||
key: Property.ShortText({
|
||||
displayName: 'Key',
|
||||
description: 'The key of the file to read. include extension if file has any extension.',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
async run(context) {
|
||||
const { bucket } = context.auth.props;
|
||||
const { key } = context.propsValue;
|
||||
const s3 = createBackBlazeS3(context.auth.props);
|
||||
|
||||
const file = await s3.getObject({
|
||||
Bucket: bucket,
|
||||
Key: key,
|
||||
});
|
||||
const base64 = await file.Body?.transformToString('base64');
|
||||
if (!base64) {
|
||||
throw new Error(`Could not read file ${key} from bucket`);
|
||||
}
|
||||
return await context.files.write({
|
||||
fileName: key,
|
||||
data: Buffer.from(base64, 'base64'),
|
||||
});
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,137 @@
|
||||
import { Property, createAction } from '@activepieces/pieces-framework';
|
||||
import { backBlazeS3Auth } from '../..';
|
||||
import { createBackBlazeS3 } from '../common';
|
||||
import { ObjectCannedACL } from '@aws-sdk/client-s3';
|
||||
|
||||
export const backBlazes3UploadFileAction = createAction({
|
||||
auth: backBlazeS3Auth,
|
||||
name: 'upload-backblaze-file',
|
||||
displayName: 'Upload File',
|
||||
description: 'Upload an File to bucket.',
|
||||
props: {
|
||||
file: Property.File({
|
||||
displayName: 'File',
|
||||
required: true,
|
||||
}),
|
||||
fileName: Property.ShortText({
|
||||
displayName: 'File Name',
|
||||
required: false,
|
||||
description: 'my-file-name (no extension). write full path if you want to store in the directories or sub-directories.',
|
||||
}),
|
||||
acl: Property.StaticDropdown({
|
||||
displayName: 'ACL',
|
||||
required: false,
|
||||
options: {
|
||||
options: [
|
||||
{
|
||||
label: 'private',
|
||||
value: 'private',
|
||||
},
|
||||
{
|
||||
label: 'public-read',
|
||||
value: 'public-read',
|
||||
},
|
||||
{
|
||||
label: 'public-read-write',
|
||||
value: 'public-read-write',
|
||||
},
|
||||
{
|
||||
label: 'authenticated-read',
|
||||
value: 'authenticated-read',
|
||||
},
|
||||
{
|
||||
label: 'aws-exec-read',
|
||||
value: 'aws-exec-read',
|
||||
},
|
||||
{
|
||||
label: 'bucket-owner-read',
|
||||
value: 'bucket-owner-read',
|
||||
},
|
||||
{
|
||||
label: 'bucket-owner-full-control',
|
||||
value: 'bucket-owner-full-control',
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
type: Property.StaticDropdown({
|
||||
displayName: 'Type',
|
||||
required: true,
|
||||
options: {
|
||||
options: [
|
||||
{
|
||||
label: 'image/png',
|
||||
value: 'image/png',
|
||||
},
|
||||
{
|
||||
label: 'image/jpeg',
|
||||
value: 'image/jpeg',
|
||||
},
|
||||
{
|
||||
label: 'image/gif',
|
||||
value: 'image/gif',
|
||||
},
|
||||
{
|
||||
label: 'audio/mpeg',
|
||||
value: 'audio/mpeg',
|
||||
},
|
||||
{
|
||||
label: 'audio/wav',
|
||||
value: 'audio/wav',
|
||||
},
|
||||
{
|
||||
label: 'video/mp4',
|
||||
value: 'video/mp4',
|
||||
},
|
||||
{
|
||||
label: 'application/pdf',
|
||||
value: 'application/pdf',
|
||||
},
|
||||
{
|
||||
label: 'application/msword',
|
||||
value: 'application/msword',
|
||||
},
|
||||
{
|
||||
label: 'text/plain',
|
||||
value: 'text/plain',
|
||||
},
|
||||
{
|
||||
label: 'application/json',
|
||||
value: 'application/json',
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
},
|
||||
async run(context) {
|
||||
const { bucket } = context.auth.props;
|
||||
const { file, fileName, acl, type } = context.propsValue;
|
||||
|
||||
const s3 = createBackBlazeS3(context.auth.props);
|
||||
|
||||
const contentType = type;
|
||||
const [_, ext] = contentType.split('/');
|
||||
const extension = '.' + ext;
|
||||
|
||||
const generatedName = new Date().toISOString() + Date.now() + extension;
|
||||
|
||||
const finalFileName = fileName ? fileName + extension : generatedName;
|
||||
|
||||
const uploadResponse = await s3.putObject({
|
||||
Bucket: bucket,
|
||||
Key: finalFileName,
|
||||
ACL: acl as ObjectCannedACL | undefined,
|
||||
ContentType: contentType,
|
||||
Body: file.data,
|
||||
});
|
||||
|
||||
const endpoint = context.auth.props.endpoint ? context.auth.props.endpoint :"";
|
||||
const cleanEndpoint = endpoint.replace("https://","")
|
||||
const url = `https://${bucket}.${cleanEndpoint}/${finalFileName}`
|
||||
return {
|
||||
fileName: finalFileName,
|
||||
etag: uploadResponse.ETag,
|
||||
url: url,
|
||||
};
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,21 @@
|
||||
import { isNil } from '@activepieces/shared';
|
||||
import { S3 } from '@aws-sdk/client-s3';
|
||||
|
||||
export function createBackBlazeS3(auth: {
|
||||
accessKeyId: string;
|
||||
secretAccessKey: string;
|
||||
region: string | undefined;
|
||||
endpoint: string | undefined;
|
||||
}) {
|
||||
const s3 = new S3({
|
||||
credentials: {
|
||||
accessKeyId: auth.accessKeyId,
|
||||
secretAccessKey: auth.secretAccessKey,
|
||||
},
|
||||
forcePathStyle: auth.endpoint ? true : undefined,
|
||||
region: auth.region,
|
||||
endpoint:
|
||||
auth.endpoint === '' || isNil(auth.endpoint) ? undefined : auth.endpoint,
|
||||
});
|
||||
return s3;
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
import {
|
||||
AppConnectionValueForAuthProperty,
|
||||
PiecePropValueSchema,
|
||||
Property,
|
||||
createTrigger,
|
||||
} from '@activepieces/pieces-framework';
|
||||
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
||||
import {
|
||||
DedupeStrategy,
|
||||
Polling,
|
||||
pollingHelper,
|
||||
} from '@activepieces/pieces-common';
|
||||
|
||||
import { backBlazeS3Auth } from '../..';
|
||||
import { createBackBlazeS3 } from '../common';
|
||||
|
||||
const polling: Polling<
|
||||
AppConnectionValueForAuthProperty<typeof backBlazeS3Auth>,
|
||||
{ folderPath?: string }
|
||||
> = {
|
||||
strategy: DedupeStrategy.LAST_ITEM,
|
||||
items: async ({ auth, lastItemId, propsValue }) => {
|
||||
const s3 = createBackBlazeS3(auth.props);
|
||||
const params: any = {
|
||||
Bucket: auth.props.bucket,
|
||||
MaxKeys: 100,
|
||||
StartAfter: lastItemId,
|
||||
};
|
||||
if (propsValue.folderPath)
|
||||
params.Prefix = `${
|
||||
propsValue.folderPath.endsWith('/')
|
||||
? propsValue.folderPath.slice(0, -1)
|
||||
: propsValue.folderPath
|
||||
}`;
|
||||
|
||||
const currentValues = (await s3.listObjectsV2(params)).Contents ?? [];
|
||||
const items = (currentValues as any[]).map((item: { Key: string }) => ({
|
||||
id: item.Key,
|
||||
data: item,
|
||||
}));
|
||||
return items;
|
||||
},
|
||||
};
|
||||
|
||||
export const newBackBlazeFileTrigger = createTrigger({
|
||||
auth: backBlazeS3Auth,
|
||||
name: 'new_backblaze_file',
|
||||
displayName: 'New File',
|
||||
description: 'Trigger when a new file is uploaded.',
|
||||
props: {
|
||||
folderPath: Property.ShortText({
|
||||
displayName: 'Folder Path',
|
||||
required: false,
|
||||
}),
|
||||
},
|
||||
type: TriggerStrategy.POLLING,
|
||||
onEnable: async (context) => {
|
||||
await pollingHelper.onEnable(polling, {
|
||||
auth: context.auth,
|
||||
store: context.store,
|
||||
propsValue: context.propsValue,
|
||||
});
|
||||
},
|
||||
onDisable: async (context) => {
|
||||
await pollingHelper.onDisable(polling, {
|
||||
auth: context.auth,
|
||||
store: context.store,
|
||||
propsValue: context.propsValue,
|
||||
});
|
||||
},
|
||||
run: async (context) => {
|
||||
return await pollingHelper.poll(polling, {
|
||||
auth: context.auth,
|
||||
store: context.store,
|
||||
propsValue: context.propsValue,
|
||||
files: context.files,
|
||||
});
|
||||
},
|
||||
test: async (context) => {
|
||||
return await pollingHelper.test(polling, {
|
||||
auth: context.auth,
|
||||
store: context.store,
|
||||
propsValue: context.propsValue,
|
||||
files: context.files,
|
||||
});
|
||||
},
|
||||
|
||||
sampleData: {
|
||||
Key: 'myfolder/100-3.png',
|
||||
LastModified: '2023-08-04T13:51:26.000Z',
|
||||
ETag: '"e9f16cce12352322272525f5af65a2e"',
|
||||
Size: 40239,
|
||||
StorageClass: 'STANDARD',
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"extends": "../../../../tsconfig.base.json",
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
}
|
||||
],
|
||||
"compilerOptions": {
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"outDir": "../../../../dist/out-tsc",
|
||||
"declaration": true,
|
||||
"types": ["node"]
|
||||
},
|
||||
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
Reference in New Issue
Block a user