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:

Types:

Usage:

extensions/MyImpl.ts

CreateTenantUseCase
anchor

Use Case Abstraction — imported from webiny/api/tenancy

Interface CreateTenantUseCase.Interface:

Types:

Usage:

extensions/MyImpl.ts

DeleteTenantRepository
anchor

Use Case Abstraction — imported from webiny/api/tenancy

Interface DeleteTenantRepository.Interface:

Types:

Usage:

extensions/MyImpl.ts

DeleteTenantUseCase
anchor

Use Case Abstraction — imported from webiny/api/tenancy

Interface DeleteTenantUseCase.Interface:

Types:

Usage:

extensions/MyImpl.ts

GetTenantByIdUseCase
anchor

Use Case Abstraction — imported from webiny/api/tenancy

Interface GetTenantByIdUseCase.Interface:

Types:

Usage:

extensions/MyImpl.ts

InstallTenantUseCase
anchor

Use Case Abstraction — imported from webiny/api/tenancy

Interface InstallTenantUseCase.Interface:

Types:

Usage:

extensions/MyImpl.ts

UpdateTenantRepository
anchor

Use Case Abstraction — imported from webiny/api/tenancy

Interface UpdateTenantRepository.Interface:

Types:

Usage:

extensions/MyImpl.ts

UpdateTenantUseCase
anchor

Use Case Abstraction — imported from webiny/api/tenancy

Interface UpdateTenantUseCase.Interface:

Types:

Usage:

extensions/MyImpl.ts

Event Handlers
anchor

TenantAfterCreateEventHandler
anchor

Event Handler Abstraction — imported from webiny/api/tenancy

Interface TenantAfterCreateEventHandler.Interface:

Types:

Usage:

extensions/MyHandler.ts

TenantAfterDeleteEventHandler
anchor

Event Handler Abstraction — imported from webiny/api/tenancy

Interface TenantAfterDeleteEventHandler.Interface:

Types:

Usage:

extensions/MyHandler.ts

TenantAfterUpdateEventHandler
anchor

Event Handler Abstraction — imported from webiny/api/tenancy

Interface TenantAfterUpdateEventHandler.Interface:

Types:

Usage:

extensions/MyHandler.ts

TenantBeforeCreateEventHandler
anchor

Event Handler Abstraction — imported from webiny/api/tenancy

Interface TenantBeforeCreateEventHandler.Interface:

Types:

Usage:

extensions/MyHandler.ts

TenantBeforeDeleteEventHandler
anchor

Event Handler Abstraction — imported from webiny/api/tenancy

Interface TenantBeforeDeleteEventHandler.Interface:

Types:

Usage:

extensions/MyHandler.ts

TenantBeforeUpdateEventHandler
anchor

Event Handler Abstraction — imported from webiny/api/tenancy

Interface TenantBeforeUpdateEventHandler.Interface:

Types:

Usage:

extensions/MyHandler.ts

TenantInstalledEventHandler
anchor

Event Handler Abstraction — imported from webiny/api/tenancy

Interface TenantInstalledEventHandler.Interface:

Types:

Usage:

extensions/MyHandler.ts

Services
anchor

AppInstaller
anchor

Abstraction — imported from webiny/api/tenancy

Interface AppInstaller.Interface:

Types:

Usage:

extensions/MyImpl.ts

TenantContext
anchor

Abstraction — imported from webiny/api/tenancy

Interface TenantContext.Interface:

Types:

Usage:

extensions/MyImpl.ts