Skip to main content

lightyear

Home > @runlightyear/lightyear

lightyear package

Classes

ClassDescription
AppWebhookConnector
AuthConnectorDocs for AuthConnector
BaseConnectorThe Base for all connectors.
GraphQLConnector

GraphQL Connector

The base for making calls to GraphQL APIs

HttpProxyResponseError
OAuthConnector

OAuth2 Connector

Creates the input to the 3 essential OAuth tasks:

1. Generates a url to request an access token 2. Converts the oauth callback parameters into the https call to request an access token 3. Provides the https params to refresh an access token

RestConnector

Rest Connector

The base for making calls to REST APIs

Functions

FunctionDescription
defineAction(props)Define an Action
defineAuthorizer(props)
defineCustomApp(props)(BETA) Define a Custom App
defineOAuth(props)
defineWebhook(props)Define a Webhook
getDeployList()
isFunction(val)
isHttpProxyResponseError(error)
setSecret(name, value)Set a secret on the current action or webhook.
setSubscriptionExpiresAt(value)
setVariable(name, value)Set a variable on the current action or webhook.

Variables

VariableDescription
dayjsUtc
SKIPPEDThis can be thrown inside a RunFunc to end execution and mark the run as Skipped.
sleep