import { createPiece } from "@activepieces/pieces-framework";
import { PieceCategory } from '@activepieces/pieces-framework';
import { clicdataAuth } from "./lib/common/auth";
import { insertRow, refreshTable } from "./lib/actions";

export const clicdata = createPiece({
  displayName: "Clicdata",
  auth: clicdataAuth,
  minimumSupportedRelease: '0.36.1',
  description: "ClicData enables True Performance with an end-to-end data analytics platform: connect, transform, automate, visualize and share data from 300+ sources.",
  logoUrl: "https://cdn.activepieces.com/pieces/clicdata.png",
  categories: [PieceCategory.BUSINESS_INTELLIGENCE],
  authors: ["onyedikachi-david"],
  actions: [insertRow, refreshTable],
  triggers: [],
});
