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

Function rowToIntegration

packages/core/sdk/src/executor.ts:523–540  ·  view source on GitHub ↗
(
  row: IntegrationRow,
  authMethods: readonly AuthMethodDescriptor[] = [],
  display?: IntegrationDisplayDescriptor,
)

Source from the content-addressed store, hash-verified

521};
522
523const rowToIntegration = (
524 row: IntegrationRow,
525 authMethods: readonly AuthMethodDescriptor[] = [],
526 display?: IntegrationDisplayDescriptor,
527): Integration => ({
528 slug: IntegrationSlug.make(row.slug),
529 // Pre-split rows have no `name`; their description WAS the display name.
530 name: row.name ?? row.description ?? row.slug,
531 // `description` is now nullable (cleared where it only held a duplicated
532 // title); present it as "" so the public Integration type stays a string.
533 description: row.description ?? "",
534 kind: row.plugin_id,
535 canRemove: Boolean(row.can_remove),
536 canRefresh: Boolean(row.can_refresh),
537 authMethods,
538 ...(display?.url ? { displayUrl: display.url } : {}),
539 ...(display?.family ? { family: display.family } : {}),
540});
541
542const rowToIntegrationRecord = (
543 row: IntegrationRow,

Callers 4

rowToIntegrationRecordFunction · 0.85
integrationsListFunction · 0.85
integrationsGetFunction · 0.85
produceConnectionToolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected