Class ZibriPluginAbstract

A bundle of providers, controllers, cronJobs, bodyParsers and authStrategies.

Hierarchy (View Summary)

Constructors

Properties

authStrategies: AuthStrategies = []

The auth strategies to register.

If nothing is provided, the Zibri default jwt auth strategy will be used.

bodyParsers: Newable<BodyParserInterface>[] = []

The body parsers to register.

If nothing is provided, the Zibri default parsers will be used.

controllers: Newable<unknown>[] = []

The controllers to register in the app.

cronJobs: Newable<CronJob>[] = []

The cron jobs to register in the app.

providers: DiProvider<unknown>[] = []

The DI providers to register/override.

Methods

  • Validates that the plugin can work correctly. This should check that all entities exist, all required providers exist etc.

    It's called after the initialization of the app, so that data sources etc. Should all be available.

    Parameters

    Returns void | Promise<void>