MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / toResponse

Function toResponse

packages/core/api/src/handlers/integrations.ts:9–19  ·  view source on GitHub ↗
(i: Integration)

Source from the content-addressed store, hash-verified

7import { capture } from "@executor-js/api";
8
9const toResponse = (i: Integration) => ({
10 slug: i.slug,
11 name: i.name,
12 description: i.description,
13 kind: i.kind,
14 canRemove: i.canRemove,
15 canRefresh: i.canRefresh,
16 authMethods: i.authMethods,
17 ...(i.displayUrl ? { displayUrl: i.displayUrl } : {}),
18 ...(i.family ? { family: i.family } : {}),
19});
20
21export const IntegrationsHandlers = HttpApiBuilder.group(ExecutorApi, "integrations", (handlers) =>
22 handlers

Callers 1

integrations.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected