Options
All
  • Public
  • Public/Protected
  • All
Menu

An action context type for use in actions that can run on any model.

Hierarchy

  • AmbientContext
    • AnyActionContext

Index

Properties

api: Client

An instance of the API client for blog.

Note: This client is authorized using a superuser internal api token and has permission to invoke any action in the system using normal API mutations or the Internal API.

All blog configuration values

connections: AppConnections

A map of connection name to instantiated connection objects for blog

logger: FastifyLoggerInstance

A high performance structured logger which writes logs to the Logs Viewer in the Gadget Editor.

record: any

The record this action is operating on.

request?: RequestData

The details of the request that is invoking this unit of work, if it was invoked by a request.

Note: Request details are not always present, like during a background connection sync, a background job, or an action retry.

scope: ActionExecutionScope

An object passed between all preconditions and effects of an action execution at the `scope` property. Useful for transferring data between effects.

session?: Session

The current request's session, if it has one. Requests made by browsers are given sessions, but requests made using Gadget API Keys are not.

sessionID?: string

The current request's session ID, if it has one. Requests made by browsers are given sessions, but requests made using Gadget API Keys are not.

Generated using TypeDoc