WHAT YOU'LL LEARN
  • What use cases are available in webiny/api/tenancy?
  • Which event handlers can you implement?
  • How to import and use each exported item?

Overview
anchor

This page documents everything exported from webiny/api/tenancy. Import any of the items below directly from this path in your Webiny extensions.

Use Cases

Event Handlers

Services

Use Cases
anchor

CreateTenantRepository
anchor

Use Case Abstraction — imported from webiny/api/tenancy

Interface CreateTenantRepository.Interface:

Repository

Types:

CreateTenantUseCase
anchor

Use Case Abstraction — imported from webiny/api/tenancy

Interface CreateTenantUseCase.Interface:

Use Case

Types:

DeleteTenantRepository
anchor

Use Case Abstraction — imported from webiny/api/tenancy

Interface DeleteTenantRepository.Interface:

Types:

DeleteTenantUseCase
anchor

Use Case Abstraction — imported from webiny/api/tenancy

Interface DeleteTenantUseCase.Interface:

Types:

GetTenantByIdUseCase
anchor

Use Case Abstraction — imported from webiny/api/tenancy

Interface GetTenantByIdUseCase.Interface:

Types:

InstallTenantUseCase
anchor

Use Case Abstraction — imported from webiny/api/tenancy

Interface InstallTenantUseCase.Interface:

Use Case Abstraction

Types:

UpdateTenantRepository
anchor

Use Case Abstraction — imported from webiny/api/tenancy

Interface UpdateTenantRepository.Interface:

Types:

UpdateTenantUseCase
anchor

Use Case Abstraction — imported from webiny/api/tenancy

Interface UpdateTenantUseCase.Interface:

Types:

Event Handlers
anchor

TenantAfterCreateEventHandler
anchor

Event Handler Abstraction — imported from webiny/api/tenancy

Interface TenantAfterCreateEventHandler.Interface:

Types:

TenantAfterDeleteEventHandler
anchor

Event Handler Abstraction — imported from webiny/api/tenancy

Interface TenantAfterDeleteEventHandler.Interface:

Types:

TenantAfterUpdateEventHandler
anchor

Event Handler Abstraction — imported from webiny/api/tenancy

Interface TenantAfterUpdateEventHandler.Interface:

Types:

TenantBeforeCreateEventHandler
anchor

Event Handler Abstraction — imported from webiny/api/tenancy

Interface TenantBeforeCreateEventHandler.Interface:

Types:

TenantBeforeDeleteEventHandler
anchor

Event Handler Abstraction — imported from webiny/api/tenancy

Interface TenantBeforeDeleteEventHandler.Interface:

Types:

TenantBeforeUpdateEventHandler
anchor

Event Handler Abstraction — imported from webiny/api/tenancy

Interface TenantBeforeUpdateEventHandler.Interface:

Types:

TenantInstalledEventHandler
anchor

Event Handler Abstraction — imported from webiny/api/tenancy

Interface TenantInstalledEventHandler.Interface:

Types:

Services
anchor

AppInstaller
anchor

Abstraction — imported from webiny/api/tenancy

Interface AppInstaller.Interface:

App Installer Abstraction

MethodDescription
readonly alwaysRun?: boolean()
readonly appName: string()
readonly dependsOn: string[]()
install()Perform the installation
If this succeeds, uninstall() MUST be able to revert it
uninstall()Revert the installation
Called if any subsequent installer fails

Types:

TenantContext
anchor

Abstraction — imported from webiny/api/tenancy

Interface TenantContext.Interface:

Types: