Options
All
  • Public
  • Public/Protected
  • All
Menu

All the data passed to an effect or precondition within the logOut action on the session model.

Hierarchy

  • AmbientContext
    • LogOutSessionActionContext

Index

Properties

api: Client

An instance of the API client for Simple Blog Example.

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 Simple Blog Example configuration values

connections: AppConnections

A map of connection name to instantiated connection objects for Simple Blog Example

logger: FastifyLoggerInstance

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

model: NotYetTyped

The model of the record this action is operating on

params: {}

Type declaration

  • [key: string]: string | number | boolean | object | bigint | undefined
record: GadgetRecord<{ __typename: "Session"; createdAt: Date; id: string; roles: Role[]; state: string | {}; updatedAt: Date; userId: null | string }>

The Session 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