webiny-api-tenant-manager-catalog
GitHub提供租户管理相关的API抽象与用例,涵盖创建、更新、启用、禁用及查询租户等功能,支持扩展租户模型,辅助开发者实现多租户业务逻辑。
Trigger Scenarios
Install
npx skills add webiny/webiny-js --skill webiny-api-tenant-manager-catalog -g -y
SKILL.md
Frontmatter
{
"name": "webiny-api-tenant-manager-catalog",
"description": "API — Tenant Manager — 9 abstractions. Tenant management event handlers and use cases."
}
API — Tenant Manager
Tenant management event handlers and use cases.
How to Use
- Find the abstraction you need below
- You MUST read the source file to get the exact interface and types!
- Import:
import { Name } from "<importPath>"; - See
webiny-use-case-patternorwebiny-event-handler-patternskills for implementation patterns
Abstractions
Name: CreateAndInstallTenantUseCase
Import: import { CreateAndInstallTenantUseCase } from "webiny/api/tenant-manager"
Source: @webiny/tenant-manager/api/features/CreateAndInstallTenant/abstractions.ts
Name: CreateTenantUseCase
Import: import { CreateTenantUseCase } from "webiny/api/tenant-manager"
Source: @webiny/tenant-manager/api/features/CreateTenant/abstractions.ts
Name: DisableTenantUseCase
Import: import { DisableTenantUseCase } from "webiny/api/tenant-manager"
Source: @webiny/tenant-manager/api/features/DisableTenant/abstractions.ts
Name: EnableTenantUseCase
Import: import { EnableTenantUseCase } from "webiny/api/tenant-manager"
Source: @webiny/tenant-manager/api/features/EnableTenant/abstractions.ts
Name: GetCurrentTenantUseCase
Import: import { GetCurrentTenantUseCase } from "webiny/api/tenant-manager"
Source: @webiny/tenant-manager/api/features/GetCurrentTenant/abstractions.ts
Name: GetTenantByIdUseCase
Import: import { GetTenantByIdUseCase } from "webiny/api/tenant-manager"
Source: @webiny/tenant-manager/api/features/GetTenantById/abstractions.ts
Name: TenantExtensions
Kind: type
Import: import type { TenantExtensions } from "webiny/api/tenant-manager"
Source: @webiny/tenant-manager/shared/Tenant.ts
Name: TenantModelExtension
Import: import { TenantModelExtension } from "webiny/api/tenant-manager"
Source: @webiny/tenant-manager/api/domain/TenantModelExtension.ts
Description: Extend the tenant content model with custom fields.
Name: UpdateTenantUseCase
Import: import { UpdateTenantUseCase } from "webiny/api/tenant-manager"
Source: @webiny/tenant-manager/api/features/UpdateTenant/abstractions.ts
Version History
- 80eb1c5 Current 2026-08-20 10:09


