Skip to main content

serverTypes/convert

@prismatic-io/spectral"serverTypes/convert"

Index#

Functions#

Functions#

Const convertAction#

convertAction(actionKey: string, __namedParameters: object, hooks?: ComponentHooks): ServerAction

Defined in packages/spectral/src/serverTypes/convert.ts:46

Parameters:

actionKey: string

__namedParameters: object

NameType
actionaction
inputsobject
performfunction

Optional hooks: ComponentHooks

Returns: ServerAction


Const convertComponent#

convertComponentTPublic›(__namedParameters: object): ServerComponent

Defined in packages/spectral/src/serverTypes/convert.ts:104

Type parameters:

TPublic: boolean

Parameters:

__namedParameters: object

NameTypeDefault
actionsobject-
connections(DefaultConnectionDefinition | OAuth2AuthorizationCodeConnectionDefinition | OAuth2ClientCredentialConnectionDefinition)[][]
definitionobject-
hooksundefined | ComponentHooks-
triggersobject-

Returns: ServerComponent


Const convertConnection#

convertConnection(__namedParameters: object): ServerConnection

Defined in packages/spectral/src/serverTypes/convert.ts:90

Parameters:

__namedParameters: object

NameType
connectionconnection | connection | connection
inputsobject | object | object

Returns: ServerConnection


Const convertInput#

convertInput(key: string, __namedParameters: object): ServerInput

Defined in packages/spectral/src/serverTypes/convert.ts:20

Parameters:

key: string

__namedParameters: object

NameType
collectionundefined | "valuelist" | "keyvaluelist"
defaultValueunknown
labelstring | object
restrest | rest | rest | rest | rest | rest | rest | rest
type"string" | "boolean" | "data" | "text" | "password" | "code" | "conditional" | "connection"

Returns: ServerInput


Const convertTrigger#

convertTrigger(triggerKey: string, __namedParameters: object, hooks?: ComponentHooks): ServerTrigger

Defined in packages/spectral/src/serverTypes/convert.ts:70

Parameters:

triggerKey: string

__namedParameters: object

NameType
inputsobject
performfunction
triggertrigger

Optional hooks: ComponentHooks

Returns: ServerTrigger