component function creates a component object that can be imported into the Prismatic API. A component bundles related actions, triggers, data sources, and connections under a unique key.
Function signature
Parameters
An object describing the component. See fields below.
ComponentDefinition fields
A unique programmatic identifier for this component. Used in URLs and API references.
Whether this component is available to all organizations (
true) or only your own (false). Only Prismatic-managed public components may set this to true. Defaults to false.Controls how the component appears in the Prismatic UI.
A map of action keys to their definitions. See
action.A map of trigger keys to their definitions. See
trigger and pollingTrigger.A map of data source keys to their definitions. See
dataSource.An array of connection definitions. See
connection, oauth2Connection, and onPremConnection.Optional lifecycle hooks for the component.
URL for this component’s documentation page. Required when
public is true — must be https://prismatic.io/docs/components/{key}/. Optional for private components.Return type
Returns a converted component object shaped for the Prismatic API. This value should be the default export of your component’s entry point.Example
Related
action— Define an action within a componenttrigger— Define a trigger within a componentpollingTrigger— Define a polling triggerdataSource— Define a data sourceconnection— Define a connection
