import { PrimaryKey } from '../common'; import { Tenant } from './tenant.entities'; import type { StatsResult } from '../stats'; export declare class TenantService { /** * @param userId * @param body * @param firstModelPayload 用来新建需要绑定的核心模型数据 */ static registerTenant(userId: PrimaryKey, body: Partial, firstModelPayload?: object): Promise; static populateTenantForEntitiesWithNoTenant(): Promise; static populateTenantForEntitiesWithOldTenant(): Promise; /** * 没有填写 tenant 的时候, * 1.尝试通过 {@see TenantConfig.firstModelBind} 来获取 tenant 信息。 * 2.🤔 如果没有绑定模型,应该指定 tenant,而 admin 端的管理用户也需要通过手动填写 tenant 来过滤下拉数据 * @param entity * @deprecated {@see populateTenantForEntitiesWithOldTenant} */ static populate(entity: E): Promise; }