@dolittle/sdk.execution
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
35 lines • 1.04 kB
TypeScript
import { Guid } from '@dolittle/rudiments';
import { ConceptAs } from '@dolittle/concepts';
/**
* Defines the types that can be converted to a {@link TenantId}.
*/
export declare type TenantIdLike = string | Guid | TenantId;
/**
* Represents the unique identifier of a tenant.
*/
export declare class TenantId extends ConceptAs<Guid, '@dolittle/sdk.execution.TenantId'> {
/**
* Initialises a new instance of the {@link TenantId} class.
* @param {Guid} id - The tenant id.
*/
constructor(id: Guid);
/**
* Gets the unknown tenant.
*/
static unknown: TenantId;
/**
* Gets the system tenant.
*/
static system: TenantId;
/**
* Gets the development tenant.
*/
static development: TenantId;
/**
* Creates a {@link TenantId} from a {@link TenantIdLike}.
* @param {TenantIdLike} id - The tenant id.
* @returns {TenantId} The created tenant id concept.
*/
static from(id: TenantIdLike): TenantId;
}
//# sourceMappingURL=TenantId.d.ts.map