Add Activepieces integration for workflow automation
- Add Activepieces fork with SmoothSchedule custom piece - Create integrations app with Activepieces service layer - Add embed token endpoint for iframe integration - Create Automations page with embedded workflow builder - Add sidebar visibility fix for embed mode - Add list inactive customers endpoint to Public API - Include SmoothSchedule triggers: event created/updated/cancelled - Include SmoothSchedule actions: create/update/cancel events, list resources/services/customers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"extends": [
|
||||
"../../../../.eslintrc.json"
|
||||
],
|
||||
"ignorePatterns": [
|
||||
"!**/*"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
"*.ts",
|
||||
"*.tsx",
|
||||
"*.js",
|
||||
"*.jsx"
|
||||
],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"*.ts",
|
||||
"*.tsx"
|
||||
],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"*.js",
|
||||
"*.jsx"
|
||||
],
|
||||
"rules": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# pieces-json
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
|
||||
## Building
|
||||
|
||||
Run `nx build pieces-json` to build the library.
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "@activepieces/piece-json",
|
||||
"version": "0.0.9"
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"name": "pieces-json",
|
||||
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
|
||||
"sourceRoot": "packages/pieces/community/json/src",
|
||||
"projectType": "library",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nx/js:tsc",
|
||||
"outputs": [
|
||||
"{options.outputPath}"
|
||||
],
|
||||
"options": {
|
||||
"outputPath": "dist/packages/pieces/community/json",
|
||||
"tsConfig": "packages/pieces/community/json/tsconfig.lib.json",
|
||||
"packageJson": "packages/pieces/community/json/package.json",
|
||||
"main": "packages/pieces/community/json/src/index.ts",
|
||||
"assets": [
|
||||
"packages/pieces/community/json/*.md",
|
||||
{
|
||||
"input": "packages/pieces/community/json/src/i18n",
|
||||
"output": "./src/i18n",
|
||||
"glob": "**/!(i18n.json)"
|
||||
}
|
||||
],
|
||||
"buildableProjectDepsInPackageJsonType": "dependencies",
|
||||
"updateBuildableProjectDepsInPackageJson": true
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build",
|
||||
"prebuild"
|
||||
]
|
||||
},
|
||||
"publish": {
|
||||
"command": "node tools/scripts/publish.mjs pieces-json {args.ver} {args.tag}",
|
||||
"dependsOn": [
|
||||
"build"
|
||||
]
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nx/eslint:lint",
|
||||
"outputs": [
|
||||
"{options.outputFile}"
|
||||
],
|
||||
"options": {
|
||||
"lintFilePatterns": [
|
||||
"packages/pieces/community/json/**/*.ts"
|
||||
]
|
||||
}
|
||||
},
|
||||
"prebuild": {
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"cwd": "packages/pieces/community/json",
|
||||
"command": "bun install --no-save --silent"
|
||||
},
|
||||
"dependsOn": [
|
||||
"^build"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"JSON": "JSON",
|
||||
"Convert JSON to text and vice versa": "Convert JSON to text and vice versa",
|
||||
"Convert Json to Text": "Convert Json to Text",
|
||||
"Convert Text to Json": "Convert Text to Json",
|
||||
"Text": "Text"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"Convert JSON to text and vice versa": "JSON in Text und umgekehrt umwandeln",
|
||||
"Convert Json to Text": "Json in Text umwandeln",
|
||||
"Convert Text to Json": "Text in Json konvertieren",
|
||||
"Stringifies JSON.": "Stringifies JSON.",
|
||||
"Parses text into JSON.": "Analysiert Text in JSON.",
|
||||
"JSON": "JSON",
|
||||
"Text": "Text"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"Convert JSON to text and vice versa": "Convierte JSON a texto y viceversa",
|
||||
"Convert Json to Text": "Convertir Json a Texto",
|
||||
"Convert Text to Json": "Convertir texto a Json",
|
||||
"Stringifies JSON.": "Cadena JSON.",
|
||||
"Parses text into JSON.": "Analiza el texto en JSON.",
|
||||
"JSON": "JSON",
|
||||
"Text": "Texto"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"Convert JSON to text and vice versa": "Convertir JSON en texte et vice versa",
|
||||
"Convert Json to Text": "Convertir Json en texte",
|
||||
"Convert Text to Json": "Convertir le texte en Json",
|
||||
"Stringifies JSON.": "Stringifies JSON.",
|
||||
"Parses text into JSON.": "Analyse du texte en JSON.",
|
||||
"JSON": "JSON",
|
||||
"Text": "Texte du texte"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"JSON": "JSON",
|
||||
"Convert JSON to text and vice versa": "Convert JSON to text and vice versa",
|
||||
"Convert Json to Text": "Convert Json to Text",
|
||||
"Convert Text to Json": "Convert Text to Json",
|
||||
"Text": "Text"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"JSON": "JSON",
|
||||
"Convert JSON to text and vice versa": "Convert JSON to text and vice versa",
|
||||
"Convert Json to Text": "Convert Json to Text",
|
||||
"Convert Text to Json": "Convert Text to Json",
|
||||
"Text": "Text"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"Convert JSON to text and vice versa": "JSONをテキストに、そしてその逆に変換する",
|
||||
"Convert Json to Text": "Jsonをテキストに変換する",
|
||||
"Convert Text to Json": "テキストをJsonに変換する",
|
||||
"Stringifies JSON.": "JSON を文字列化します。",
|
||||
"Parses text into JSON.": "テキストを JSON に解析します。",
|
||||
"JSON": "JSON",
|
||||
"Text": "テキスト"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"Convert JSON to text and vice versa": "JSON converteren naar tekst en vice versa",
|
||||
"Convert Json to Text": "Json converteren naar tekst",
|
||||
"Convert Text to Json": "Tekst converteren naar Json",
|
||||
"Stringifies JSON.": "Stringificeert JSON.",
|
||||
"Parses text into JSON.": "Parseert tekst in JSON.",
|
||||
"JSON": "JSON",
|
||||
"Text": "Tekstveld"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"Convert JSON to text and vice versa": "Converter JSON em texto e vice-versa",
|
||||
"Convert Json to Text": "Converter Json para texto",
|
||||
"Convert Text to Json": "Converter texto para Json",
|
||||
"Stringifies JSON.": "Stringifica JSON.",
|
||||
"Parses text into JSON.": "Analisa texto em JSON.",
|
||||
"JSON": "JSON",
|
||||
"Text": "texto"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"JSON": "JSON",
|
||||
"Convert JSON to text and vice versa": "Преобразовать JSON в текст и наоборот",
|
||||
"Convert Json to Text": "Конвертировать Json в текст",
|
||||
"Convert Text to Json": "Преобразовать текст в Json",
|
||||
"Text": "Текст"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"Convert JSON to text and vice versa": "Convert JSON to text and vice versa",
|
||||
"Convert Json to Text": "Convert Json to Text",
|
||||
"Convert Text to Json": "Convert Text to Json",
|
||||
"Stringifies JSON.": "Stringifies JSON.",
|
||||
"Parses text into JSON.": "Parses text into JSON.",
|
||||
"JSON": "JSON",
|
||||
"Text": "Text"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"JSON": "JSON",
|
||||
"Convert JSON to text and vice versa": "Convert JSON to text and vice versa",
|
||||
"Convert Json to Text": "Convert Json to Text",
|
||||
"Convert Text to Json": "Convert Text to Json",
|
||||
"Text": "Text"
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"Convert JSON to text and vice versa": "Convert JSON to text and vice versa",
|
||||
"Convert Json to Text": "Convert Json to Text",
|
||||
"Convert Text to Json": "Convert Text to Json",
|
||||
"Stringifies JSON.": "Stringifies JSON.",
|
||||
"Parses text into JSON.": "Parses text into JSON.",
|
||||
"JSON": "JSON",
|
||||
"Text": "文本"
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
import { createPiece, PieceAuth } from "@activepieces/pieces-framework";
|
||||
import { convertTextToJson } from "./lib/actions/convert-text-to-json";
|
||||
import { convertJsonToText } from "./lib/actions/convert-json-to-text";
|
||||
|
||||
export const jsonAuth = PieceAuth.SecretText({
|
||||
displayName: 'API Key',
|
||||
required: true,
|
||||
description: 'Please use **test-key** as value for API Key',
|
||||
});
|
||||
|
||||
export const json = createPiece({
|
||||
displayName: "JSON",
|
||||
description: "Convert JSON to text and vice versa",
|
||||
auth: PieceAuth.None(),
|
||||
minimumSupportedRelease: '0.30.0',
|
||||
logoUrl: "https://cdn.activepieces.com/pieces/json.svg",
|
||||
authors: ["leenmashni","abuaboud"],
|
||||
actions: [convertJsonToText, convertTextToJson],
|
||||
triggers: [],
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
|
||||
export const convertJsonToText = createAction({
|
||||
name: 'convert_json_to_text',
|
||||
displayName: 'Convert Json to Text',
|
||||
description: 'Stringifies JSON.',
|
||||
props: {
|
||||
json: Property.Json({
|
||||
displayName: 'JSON',
|
||||
defaultValue: {},
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
async run(context) {
|
||||
const { json } = context.propsValue;
|
||||
const result = JSON.stringify(json)
|
||||
return result
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
import { createAction, Property } from '@activepieces/pieces-framework';
|
||||
|
||||
export const convertTextToJson = createAction({
|
||||
name: 'convert_text_to_json',
|
||||
displayName: 'Convert Text to Json',
|
||||
description: 'Parses text into JSON.',
|
||||
props: {
|
||||
text: Property.LongText({
|
||||
displayName: 'Text',
|
||||
defaultValue: '',
|
||||
required: true,
|
||||
}),
|
||||
},
|
||||
async run(context) {
|
||||
const { text } = context.propsValue;
|
||||
const result = JSON.parse(text)
|
||||
return result
|
||||
},
|
||||
});
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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