UNPKG

skailan-core

Version:

Servicio de autenticación y multitenancy para Skailan.

36 lines • 1.08 kB
import { PrismaClient } from "@prisma/client"; /** * Utility functions for common operations across packages */ /** * Validates if a string is a valid UUID */ export declare const isValidUUID: (uuid: string) => boolean; /** * Generates a safe organization slug from a name */ export declare const generateOrganizationSlug: (name: string) => string; /** * Validates organization slug format */ export declare const isValidOrganizationSlug: (slug: string) => boolean; /** * Creates a tenant Prisma client with custom configuration */ export declare const createTenantPrismaClient: (organizationSlug: string, options?: { log?: boolean; datasourceUrl?: string; }) => PrismaClient; /** * Validates email format */ export declare const isValidEmail: (email: string) => boolean; /** * Sanitizes user input for safe database operations */ export declare const sanitizeInput: (input: string) => string; /** * Generates a random string for tokens or IDs */ export declare const generateRandomString: (length?: number) => string; //# sourceMappingURL=commonUtils.d.ts.map