Skip to main content

lightyear

Home > @runlightyear/lightyear

lightyear package

Classes

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

GraphQL Connector

The base for making calls to GraphQL APIs

HttpProxyResponseError
ModelSynchronizer
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)
defineCrmCollection(props)
defineCustomApp(props)(BETA) Define a Custom App
defineOAuth(props)
defineSyncAction(props)
defineSyncIntegration(props)
defineWebhook(props)Define a Webhook
deleteObject(props)
detectHardDeletes(props)
finishSync(props)
getDelta(props)
getDeployList()
getModels(props)
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.
upsertObject(props)
upsertObjectBatch(props)

Variables

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