Introduces the `PageModule` to provide full CRUD capabilities for pages within spaces.
Key features include:
- API endpoints for creating, retrieving, updating, and soft-deleting pages.
- Support for hierarchical page structures with validation to prevent circular references.
- A mechanism to generate and manage temporary access tokens, allowing controlled public access to specific pages or entire spaces.
- Integration with database repositories and comprehensive Swagger documentation for all new endpoints and DTOs.
- Ensures proper authorization and validation for all page and token operations.
Integrates the Drizzle ORM schema into the database service, enabling type-safe queries across all entities.
Establishes the foundation for a repository pattern by providing and exporting specialized repository classes within the database module. This separates concerns, moving specific entity operations out of the core database service.
Removes example Drizzle usage from the database service, focusing its responsibility on connection management and providing the configured Drizzle client.
Establishes the initial database schema using Drizzle ORM, replacing the prior placeholder. This migration introduces core entities like users, spaces, pages, access tokens, and their permissions, complete with relationships and constraints.
Updates the authentication flow by securing the sign-in endpoint with JWT validation and extracting user details directly from the token via a new custom parameter decorator, improving user context handling.
Integrates a new `Page` module, laying the groundwork for future page management capabilities.
Integrates Drizzle ORM to provide a type-safe and modern solution for PostgreSQL database interactions. Establishes Infisical as the central secret management system, ensuring sensitive database credentials and other environment variables are securely loaded dynamically based on the active environment.
Includes a PowerShell script to standardize environment setup for Drizzle CLI operations, fetching secrets from Infisical and local configuration files. New npm scripts `drizzle:push` and `drizzle:pull` are added to streamline database schema migrations.
Sets up an initial database module with a `DatabaseService` and a sample `users` schema to demonstrate Drizzle's functionality and integration with Infisical secrets.
Introduces a new `ImageModule` to handle image uploads, utilizing Minio for object storage and NATS for triggering asynchronous derivative generation workflows.
Enhances the NATS client with improved connection reliability, graceful shutdown, and a simplified `publish` method for outgoing messages.
Refines JWT verification for Microsoft Entra ID, including robust JWKS handling, better type safety for claims, and improved error logging to ensure secure authentication.
Updates Swagger documentation with the API server URL and Bearer (OpenID Connect) authentication scheme for better discoverability and easier client integration.
Enables global CORS to allow cross-origin requests to the API.
Adds `minio`, `temporal-polyfill`, and `@types/multer` dependencies to support these new functionalities.