Add Activepieces integration for workflow automation

- Add Activepieces fork with SmoothSchedule custom piece
- Create integrations app with Activepieces service layer
- Add embed token endpoint for iframe integration
- Create Automations page with embedded workflow builder
- Add sidebar visibility fix for embed mode
- Add list inactive customers endpoint to Public API
- Include SmoothSchedule triggers: event created/updated/cancelled
- Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
poduck
2025-12-18 22:59:37 -05:00
parent 9848268d34
commit 3aa7199503
16292 changed files with 1284892 additions and 4708 deletions

View File

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

View File

@@ -0,0 +1,7 @@
# pieces-qrcode
This library was generated with [Nx](https://nx.dev).
## Building
Run `nx build pieces-qrcode` to build the library.

View File

@@ -0,0 +1,10 @@
{
"name": "@activepieces/piece-qrcode",
"version": "0.0.8",
"devDependencies": {
"@types/qrcode": "^1.5.5"
},
"dependencies": {
"qrcode": "1.5.4"
}
}

View File

@@ -0,0 +1,65 @@
{
"name": "pieces-qrcode",
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/pieces/community/qrcode/src",
"projectType": "library",
"release": {
"version": {
"currentVersionResolver": "git-tag",
"preserveLocalDependencyProtocols": false,
"manifestRootsToUpdate": [
"dist/{projectRoot}"
]
}
},
"tags": [],
"targets": {
"build": {
"executor": "@nx/js:tsc",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/packages/pieces/community/qrcode",
"tsConfig": "packages/pieces/community/qrcode/tsconfig.lib.json",
"packageJson": "packages/pieces/community/qrcode/package.json",
"main": "packages/pieces/community/qrcode/src/index.ts",
"assets": [
"packages/pieces/community/qrcode/*.md",
{
"input": "packages/pieces/community/qrcode/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/qrcode",
"command": "bun install --no-save --silent"
},
"dependsOn": [
"^build"
]
}
}
}

View File

@@ -0,0 +1,6 @@
{
"QR Code": "QR Code",
"Text to QR Code": "Text to QR Code",
"Convert text to QR code": "Convert text to QR code",
"Content": "Content"
}

View File

@@ -0,0 +1,5 @@
{
"Text to QR Code": "Text zu QR-Code",
"Convert text to QR code": "Text in QR-Code konvertieren",
"Content": "Inhalt"
}

View File

@@ -0,0 +1,5 @@
{
"Text to QR Code": "Texto al código QR",
"Convert text to QR code": "Convertir texto a código QR",
"Content": "Contenido"
}

View File

@@ -0,0 +1,5 @@
{
"Text to QR Code": "Envoyer un SMS au QR Code",
"Convert text to QR code": "Convertir le texte en code QR",
"Content": "Contenus"
}

View File

@@ -0,0 +1,6 @@
{
"QR Code": "QR Code",
"Text to QR Code": "Text to QR Code",
"Convert text to QR code": "Convert text to QR code",
"Content": "Content"
}

View File

@@ -0,0 +1,6 @@
{
"QR Code": "QR Code",
"Text to QR Code": "Text to QR Code",
"Convert text to QR code": "Convert text to QR code",
"Content": "Content"
}

View File

@@ -0,0 +1,5 @@
{
"Text to QR Code": "QRコードにテキスト",
"Convert text to QR code": "テキストをQRコードに変換する",
"Content": "コンテンツ"
}

View File

@@ -0,0 +1,5 @@
{
"Text to QR Code": "Tekst naar QR-Code",
"Convert text to QR code": "Tekst converteren naar QR-code",
"Content": "Inhoud"
}

View File

@@ -0,0 +1,5 @@
{
"Text to QR Code": "Texto para código QR",
"Convert text to QR code": "Converter texto para código QR",
"Content": "Conteúdo"
}

View File

@@ -0,0 +1,6 @@
{
"QR Code": "QR Code",
"Text to QR Code": "Текст в QR-код",
"Convert text to QR code": "Преобразовать текст в QR-код",
"Content": "Содержание"
}

View File

@@ -0,0 +1,5 @@
{
"Text to QR Code": "Text to QR Code",
"Convert text to QR code": "Convert text to QR code",
"Content": "Content"
}

View File

@@ -0,0 +1,6 @@
{
"QR Code": "QR Code",
"Text to QR Code": "Text to QR Code",
"Convert text to QR code": "Convert text to QR code",
"Content": "Content"
}

View File

@@ -0,0 +1,5 @@
{
"Text to QR Code": "Text to QR Code",
"Convert text to QR code": "Convert text to QR code",
"Content": "Content"
}

View File

@@ -0,0 +1,18 @@
import { createPiece, PieceAuth } from "@activepieces/pieces-framework";
import { PieceCategory } from '@activepieces/shared';
import { outputQrcodeAction } from './lib/actions/output-qrcode-action'
export const qrcode = createPiece({
displayName: 'QR Code',
auth: PieceAuth.None(),
minimumSupportedRelease: '0.30.0',
logoUrl: "https://cdn.activepieces.com/pieces/qrcode.png",
categories: [PieceCategory.CORE],
authors: ['Meng-Yuan Huang'],
actions: [
outputQrcodeAction,
],
triggers: [],
});

View File

@@ -0,0 +1,24 @@
import { createAction, Property } from '@activepieces/pieces-framework';
import { toBuffer } from 'qrcode';
export const outputQrcodeAction = createAction({
name: 'text_to_qrcode',
displayName: 'Text to QR Code',
description: 'Convert text to QR code',
props: {
text: Property.LongText({
displayName: 'Content',
required: true,
}),
},
async run(context) {
const { text } = context.propsValue;
const qrcodeBuffer = await toBuffer(text);
return await context.files.write({
fileName: 'qr-code.png',
data: qrcodeBuffer,
});
},
});

View File

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

View File

@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "../../../../dist/out-tsc",
"declaration": true,
"types": ["node"]
},
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
}