(i: Integration)
| 7 | import { capture } from "@executor-js/api"; |
| 8 | |
| 9 | const 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 | |
| 21 | export const IntegrationsHandlers = HttpApiBuilder.group(ExecutorApi, "integrations", (handlers) => |
| 22 | handlers |