Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

4.2 KB
Raw Blame
// SPDX-License-Identifier: LicenseRef-Carbon-Commercial
// Carbon Enterprise file, licensed only under the Carbon Commercial License
// (packages/ee/LICENSE). Not AGPL. Running, modifying, or copying it beyond those terms requires a commercial license.

import type { SVGProps } from "react";
import { z } from "zod";
import { defineIntegration } from "../fns";

export const Radan = defineIntegration({
  name: "Radan",
  id: "radan",
  active: true,
  category: "Nesting",
  logo: Logo,
  description:
    "Radan is a CAD CAM software for sheet metal fabrication. This integration allows Radan to pull and push data to Carbon.",
  shortDescription: "Sync data from Carbon to Radan.",
  setupInstructions: SetupInstructions,
  images: [],

  settings: [
    {
      name: "processes",
      label: "Processes",
      type: "processes",
      required: true,
      value: []
    }
  ],
  schema: z.object({
    processes: z
      .array(z.string().min(1, { message: "Process is required" }))
      .min(1, { message: "Processes are required" })
      .optional()
  })
});

function SetupInstructions({ companyId }: { companyId: string }) {
  return (
    <>
      <p className="text-sm text-muted-foreground">
        Select the processes that you want to sync to Radan.
      </p>
    </>
  );
}

export function Logo(props: SVGProps<SVGSVGElement>) {
  return (
    <svg
      xmlns="http://www.w3.org/2000/svg"
      {...props}
      version="1.1"
      viewBox="0 0 592.17 166.51"
    >
      <polygon
        fill="currentColor"
        points="222.49 50.54 222.49 76.12 195.66 76.12 195.66 50.54 183.75 50.54 183.75 115.97 195.66 115.97 195.66 87.47 222.49 87.47 222.49 115.97 234.41 115.97 234.41 50.54 222.49 50.54"
      />
      <polygon
        fill="currentColor"
        points="245.65 115.97 245.65 50.54 290.3 50.54 290.3 61.33 257.53 61.33 257.53 76.59 286.15 76.59 286.15 87.28 257.53 87.28 257.53 105.17 290.3 105.17 290.3 115.97 245.65 115.97"
      />
      <polygon
        fill="currentColor"
        points="339.48 115.97 324.82 92.17 310.15 115.97 297.34 115.97 317.9 82.65 297.5 50.54 310.51 50.54 325.17 73.44 339.41 50.54 352.32 50.54 332.2 82.75 352.58 115.97 339.48 115.97"
      />
      <path
        fill="currentColor"
        d="M383.61,65.13l-9.31,27.61h18.63l-9.32-27.61h0ZM400.88,115.97l-4.25-12.52h-26.02l-4.21,12.52h-11.98l22.97-65.42h12.98l22.97,65.42h-12.45Z"
      />
      <path
        fill="currentColor"
        d="M514,64.49c-2.59-2.76-6.6-4.32-10.38-4.32s-7.75,1.56-10.32,4.32c-4.51,4.72-4.71,12.84-4.71,18.84s.19,14.03,4.71,18.72c2.57,2.76,6.56,4.34,10.32,4.34s7.77-1.56,10.38-4.34c4.51-4.71,4.71-12.72,4.71-18.72s-.19-14.12-4.71-18.84h0ZM522.44,109.78c-4.95,4.99-11.81,7.38-18.8,7.38s-13.8-2.41-18.8-7.38c-7.1-7.1-8.31-15.76-8.31-26.47s1.21-19.47,8.31-26.58c5-4.99,11.82-7.38,18.8-7.38s13.85,2.41,18.8,7.38c7.1,7.1,8.31,15.87,8.31,26.58s-1.2,19.37-8.31,26.47Z"
      />
      <polygon
        fill="currentColor"
        points="579.92 115.97 551.59 71.03 551.59 115.97 539.88 115.97 539.88 50.54 552.51 50.54 580.46 94.83 580.46 50.54 592.17 50.54 592.17 115.97 579.92 115.97"
      />
      <path
        fill="currentColor"
        d="M468.33,80.09v12.55c0,14.81-10.72,24.52-25.45,24.52-10.27,0-18.46-3.73-23.56-12.98-3.53-6.53-4.27-13.63-4.27-20.93,0-9.98,1.1-18.85,8.49-26.26,5.02-5.02,12.38-7.64,19.44-7.64,11.09,0,19.88,5.48,23.57,14.52l-10.34,5.96c-.6-2.01-1.64-3.97-3.19-5.62-2.69-2.89-6-4.18-10.13-4.18-5.81,0-11,3.13-13.36,8.45-2.1,4.74-2.41,9.66-2.41,14.78,0,6.14.8,14.51,5.18,19.06,2.97,3.25,7.63,4.17,10.59,4.17,4.13,0,7.35-1.28,10.05-4.17,2.59-2.78,3.77-6.41,3.87-9.65.02-.86,0-1.77,0-2.69h-15.57v-9.88h27.1-.01Z"
      />
      <path
        fill="currentColor"
        d="M140.9,40.63c-15.06,8.7-65.56,37.83-65.56,37.83h0V2.81c0-2.15-2.32-3.5-4.19-2.42C56.82,8.65,10.12,35.58,1.43,40.59c-.88.52-1.4,1.4-1.4,2.42v80.48c0,1.55,1.27,2.79,2.79,2.79h44.82c2.75,4.73,17.78,30.73,22.48,38.83.76,1.34,2.48,1.78,3.8,1.02,11.54-6.64,60.82-35.09,69.75-40.25.88-.52,1.4-1.4,1.4-2.42V43.02c0-2.15-2.31-3.5-4.19-2.42v.02ZM5.61,120.74V53.47l38.81,67.27H5.61ZM69.76,153.33L6.65,44.08,69.76,7.67v145.66ZM75.34,158.91v-32.61h56.54s-56.54,32.61-56.54,32.61ZM139.5,120.71h-64.16v-35.81l64.16-37.02v72.84Z"
      />
    </svg>
  );
}