技能 编程开发 租户管理API抽象层

租户管理API抽象层

v20260825
webiny-api-tenant-manager-catalog
该模块提供了一套全面的API抽象层,用于管理租户的整个生命周期。它集成了创建、更新、启用、禁用和获取租户数据的各个用例,遵循成熟的设计模式,确保开发者能够构建出高度可扩展、模块化和可维护的多租户应用系统。
获取技能
400 次下载
概览

API — Tenant Manager

Tenant management event handlers and use cases.

How to Use

  1. Find the abstraction you need below
  2. You MUST read the source file to get the exact interface and types!
  3. Import: import { Name } from "<importPath>";
  4. See webiny-use-case-pattern or webiny-event-handler-pattern skills 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


信息
分类 编程开发
名称 webiny-api-tenant-manager-catalog
版本 v20260825
大小 2.33KB
更新时间 2026-09-06
语言