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,24 @@
|
||||
import { createAction } from '@activepieces/pieces-framework';
|
||||
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
|
||||
import { fliqrAuth } from '../../index';
|
||||
import { fliqrConfig } from '../common/models';
|
||||
|
||||
|
||||
export const getFliqrAccountDetails = createAction({
|
||||
// auth: check https://www.activepieces.com/docs/developers/piece-reference/authentication,
|
||||
name: 'get_fliqr_account_details',
|
||||
auth: fliqrAuth,
|
||||
displayName: 'Get Business Account details',
|
||||
description: 'Get basic account details of business',
|
||||
props: {},
|
||||
async run(context) {
|
||||
const res = await httpClient.sendRequest<string[]>({
|
||||
method: HttpMethod.GET,
|
||||
url: `${fliqrConfig.baseUrl}/accounts/me`,
|
||||
headers: {
|
||||
[fliqrConfig.accessTokenHeaderKey]: context.auth.secret_text,
|
||||
},
|
||||
});
|
||||
return res.body;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,23 @@
|
||||
import { httpClient, HttpMethod } from '@activepieces/pieces-common';
|
||||
import { createAction } from '@activepieces/pieces-framework';
|
||||
import { fliqrConfig } from '../common/models';
|
||||
import { fliqrAuth } from '../../index';
|
||||
|
||||
export const getFliqrAccountFlows = createAction({
|
||||
// auth: check https://www.activepieces.com/docs/developers/piece-reference/authentication,
|
||||
name: 'get_fliqr_account_flows',
|
||||
auth: fliqrAuth,
|
||||
displayName: 'Get Account Flows',
|
||||
description: 'Get all flows from the account',
|
||||
props: {},
|
||||
async run(context) {
|
||||
const res = await httpClient.sendRequest<string[]>({
|
||||
method: HttpMethod.GET,
|
||||
url: `${fliqrConfig.baseUrl}/accounts/flows`,
|
||||
headers: {
|
||||
[fliqrConfig.accessTokenHeaderKey]: context.auth.secret_text,
|
||||
}
|
||||
});
|
||||
return res.body;
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
export const fliqrConfig = {
|
||||
baseUrl: 'https://app.fliqr.ai/api',
|
||||
accessTokenHeaderKey: 'X-ACCESS-TOKEN',
|
||||
};
|
||||
Reference in New Issue
Block a user