UNPKG

@prismatic-io/spectral

Version:

Utility library for building Prismatic connectors and code-native integrations

11 lines (10 loc) 988 B
import { IntegrationDefinition, ConfigVar, Flow, ComponentRegistry, CollectionType } from "../types"; import { Component as ServerComponent } from "."; import { RequiredConfigVariable as ServerRequiredConfigVariable } from "./integration"; export declare const convertIntegration: (definition: IntegrationDefinition) => ServerComponent; /** Converts a Flow into the structure necessary for YAML generation. */ export declare const convertFlow: (flow: Flow, componentRegistry: ComponentRegistry, referenceKey: string) => Record<string, unknown>; /** Converts an input value to the expected server type by its collection type. */ export declare const convertInputValue: (value: unknown, collectionType: CollectionType | undefined) => unknown; /** Converts a Config Var into the structure necessary for YAML generation. */ export declare const convertConfigVar: (key: string, configVar: ConfigVar, referenceKey: string, componentRegistry: ComponentRegistry) => ServerRequiredConfigVariable;