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:48

Parameters:

actionKey: string

__namedParameters: object

NameType
actionaction
inputsobject
performfunction

Optional hooks: ComponentHooks

Returns: ServerAction


Const convertComponent

convertComponentTPublic, TKey›(__namedParameters: object): ServerComponent

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

Type parameters:

TPublic: boolean

TKey: string

Parameters:

__namedParameters: object

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

Returns: ServerComponent


Const convertConnection

convertConnection(__namedParameters: object): ServerConnection

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

Parameters:

__namedParameters: object

NameType
connectionconnection | connection | connection
inputsobject | object | object

Returns: ServerConnection


Const convertDataSource

convertDataSource(dataSourceKey: string, __namedParameters: object, hooks?: ComponentHooks): ServerDataSource

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

Parameters:

dataSourceKey: string

__namedParameters: object

NameType
dataSourcedataSource
inputsobject
performfunction

Optional hooks: ComponentHooks

Returns: ServerDataSource


Const convertInput

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

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

Parameters:

key: string

__namedParameters: object

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

Returns: ServerInput


Const convertTrigger

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

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

Parameters:

triggerKey: string

__namedParameters: object

NameType
inputsobject
onInstanceDeleteundefined | function
onInstanceDeployundefined | function
performfunction
triggertrigger

Optional hooks: ComponentHooks

Returns: ServerTrigger