@useparagon/core
Last updated
Last updated
Use CronStep
to start the workflow on a periodic schedule.
Inputs
Parameter | Type | Description |
---|---|---|
| string* | The cron expression of the schedule for this trigger, from seconds to weeks.
Example: |
| string | The timezone to use for the cron expression, expressed as an IANA timezone string. Defaults to |
Outputs
The CronStep does not produce any usable output.
Use EndpointStep
to trigger this workflow via an HTTP request.
Inputs
Parameter | Type | Description |
---|---|---|
| boolean* | If true, this Request trigger will accept any type of request.
If false, this Request trigger will require |
| HeaderValidation[] | An array of validations to use on the headers for requests to this Request trigger. This can be used to validate the presence of required headers to inbound requests.
Example:
|
| BodyValidation[] | An array of validations to use on body fields for requests to this Request trigger. This can be used to validate the presence or type of data in the body of inbound requests.
Example:
|
| ParamValidation[] | An array of validations to use on the URL parameters for requests to this Request trigger. This can be used to validate the presence of required parameters to inbound requests.
Example:
|
Outputs
Access the output of a Request trigger with requestTrigger.output.request
. The below fields are fields of the .request
property.
Field | Type | Description |
---|---|---|
| object | An object of the HTTP headers received in the request.
Access these properties in lowercased format, e.g. |
| any | An object or string of the HTTP body received in the request.
The |
| object | An object of the URL parameters received in the request. |
| FileValue | undefined | If the HTTP body refers to a file, the file contents will be available as a |
Use EventStep
to trigger this workflow with an App Event.
Inputs
To construct an App Event Trigger, first import your App Event into the Workflow:
Then, pass this import to the constructor of EventStep
:
Because App Events can be shared across different workflows and integrations, they are required to be defined in the src/events
folder of your Paragraph project.
Outputs
Access the output of an App Event trigger with appEventTrigger.output
. The output will match the schema of the App Event that this trigger uses.
Use IntegrationEnabledStep
to trigger this workflow when a user enables the integration.
Inputs
This trigger does not use any parameters.
Outputs
The IntegrationEnabledStep does not produce any usable output.
A Conditional branching step to allow for control flow in Workflows.
Inputs
Parameter | Type | Description |
---|---|---|
| ConditionalInput* | The condition to evaluate for determining whether or not to proceed into the "true" or "false" branch beneath this step. Learn more about defining ConditionalInputs: Conditional logic |
Outputs
Parameter | Type | Description |
---|---|---|
|
| The branch that was chosen when this ConditionalStep was evaluated. |
A step to pause the workflow for a fixed amount of time.
Inputs
Parameter | Type | Description |
---|---|---|
| number* | How long to pause the workflow for, measured by the |
|
| The unit of time to use when delaying the workflow. Defaults to |
Outputs
The DelayStep does not produce any usable output.
A step to map over a set (array) of data in parallel, for e.g. data transformation or batch uploads.
Inputs
Parameter | Type | Description |
---|---|---|
| any[] | A set of data to iterate over in the Fan Out. |
Outputs
Access one instance of a Fan Out step with fanOutStep.output.instance
. This can only be used by steps that are in this Fan Out's branch (see: Fan out branches).
Field | Type | Description |
---|---|---|
| any | An item of the |
A JavaScript function step.
Inputs
Parameter | Type | Description |
---|---|---|
| Function* | The function to run.
This function must have the signature
|
| object* | Parameters from other step outputs to inject into the function. |
Outputs
Access the result of an Function step with functionStep.output.result
.
Field | Type | Description |
---|---|---|
| any | The return result of |
A step to send a custom request to the integration's API, without needing to provide auth details.
Inputs
Parameter | Type | Description |
---|---|---|
|
| The HTTP method to use for this API request.
If you select |
| string* | The relative path of the API request, with respect to the base URL provided by the integration. Specifying a full URL is also supported. |
|
| Select the type of request body that should be sent.
Paragon will automatically encode the payload and set the correct |
| object | string | | An object or string representing the request body to be sent. If using Request Step Pagination, you can specify a function that returns the body of the request with respect to the Page Token. |
| object | | An object of the HTTP headers sent in the request. Integration Request Steps will automatically include the user's authentication details for the request. |
| object | | An object of the URL parameters sent in the request. Parameters can be specified in either here or the |
|
| If using Request Step Pagination, you can define the options used in this function.
Use the |
Outputs
Access the output of an Integration Request step with requestStep.output.response
.
Field | Type | Description |
---|---|---|
| object | An object of the HTTP headers received in the response. |
| any | An object or string of the HTTP body received in the response. |
| number | The HTTP status code of the response. |
A step to send an HTTP request from a workflow.
Inputs
Parameter | Type | Description |
---|---|---|
|
| The HTTP method to use for this API request.
If you select |
| string* | The full URL of the HTTP request to send. |
|
| Select the type of request body that should be sent.
Paragon will automatically encode the payload and set the correct |
| object | string | An object or string representing the request body to be sent. |
| object | An object of the HTTP headers sent in the request. |
| object | An object of the URL parameters sent in the request. Parameters can be specified in either here or the |
| AuthorizationConfig | Choose between Basic authentication, Bearer token authentication, and OAuth 2.0 Client Credentials for handling the authorization of this request. Example: |
Outputs
Access the output of a Request step with requestStep.output.response
.
Field | Type | Description |
---|---|---|
| object | An object of the HTTP headers received in the response. |
| any | An object or string of the HTTP body received in the response. |
| number | The HTTP status code of the response. |
A step (for use in Request-triggered workflows only) to send an HTTP response from a workflow.
Inputs
Parameter | Type | Description |
---|---|---|
|
| The type of Response to send to the HTTP Request that triggered the workflow. Choose between a JSON-encoded response or a raw File type. |
|
| If using a JSON |
|
| The status code to send in the Response to the HTTP Request that triggered the workflow. |