UNPKG

@zingage/postgres-multi-tenant-ids

Version:

PostgreSQL IDs for secure multi-tenant applications

8 lines 497 B
import { type UUIDV4, type UUIDV8 } from "../helpers/utils.js"; import type { TenantId, TenantShortId } from "../index.js"; export declare function makeTenantId(): TenantId; export declare function uuidV4ToTenantId(uuidV4: UUIDV4): TenantId; export declare function getTenantShortIdFromFullId(id: TenantId): TenantShortId; export declare function isTenantId(id: UUIDV8): id is TenantId; export declare function stringIsTenantId(id: string): id is TenantId; //# sourceMappingURL=tenant-ids.d.ts.map