Spaces:
Runtime error
Runtime error
Commit History
-
feat(short-url): Added Trim Kutt URL shortener integration with CRUD operations
Akshar23252ed6bf1 -
feat(short-url): implement Shlink URL shortener integration with CRUD operations
Akshar23252f0bbdc
-
✨ feat(super-admin-2fa): introduce two-factor authentication
Akshar2325- implement comprehensive two-factor authentication (2fa) for super admins - extend db schema with models for 2fa methods, recovery codes, and trusted devices - add core modules and services for managing all 2fa related entities - integrate 2fa checks, pending token generation, and trusted device logic - provide api endpoints for enabling, sending, and verifying email and totp codes - enable management of recovery codes and trusted devices for enhanced security - update email service to support sending 2fa verification codes 📦 build(deps): add 2fa related dependencies - install crypto-js for secret encryption - install nanoid for unique id generation - install otplib for totp authenticator functionality - install qrcode for qr code generation 🔧 chore(messages): update common and 2fa related messages - add 'invalid_2fa_token' to common error messages - define specific success and error messages for all super admin 2fa features 📝 docs(super-admin-auth): add 2fa authentication flow …add3ead
-
✨ feat(new-minio-storage): implement hls video processing and management
Akshar2325- introduce new api endpoints for hls video upload, deletion, and status retrieval - create `startVideoProcessing` to initiate async hls conversion and minio upload - implement `processVideoToHLS` to orchestrate conversion, minio storage, and database updates - add `deleteProcessedVideo` to remove hls files from minio and update database record - provide `getUploadStatus` to query hls conversion progress and details ♻️ refactor(hls-conversion): decouple service from storage and database - remove direct `uploadCoreService` dependency from `hlsConversionService` - eliminate status updates and error handling related to database from service - clarify `hlsConversionService` role as a pure video-to-hls converter - delegate database and storage interactions to orchestrating services ♻️ refactor(upload-model): generalize upload model for hls storage - remove google drive specific fields from `Upload` prisma model - update `hlsFolderId` comment to reflect generic folder storageb876bc7 -
feat(google-drive-upload): add Google Drive integration for file uploads and HLS conversion
Akshar2325- Introduced Upload model in Prisma schema for managing file uploads. - Implemented UploadCoreService for handling upload operations. - Created HlsConversionService for converting videos to HLS format. - Added GoogleDriveService for uploading files to Google Drive with OAuth2 support. - Developed GoogleDriveController for handling file upload and deletion requests. - Configured Google Drive settings in environment variables. - Enhanced package dependencies with ffmpeg and Google APIs.ffebaa3
-
feat(user): add profile management and enhance session tracking
Akshar2325【profile】 - introduce a new profile module with endpoints for getting and updating user data - create `UpdateProfileDto` for validating profile update requests - implement service to handle profile and interest updates 【session】 - add city, state, latitude, and longitude to the `UserSession` model - update auth service to capture and store detailed geo-location data refactor(module): simplify module structure and exports - remove unused export from `SuperAdminModule` - integrate new `ProfileModule` into the main `UserModule`405ccd5 -
fix(auth): improve robustness of user signup and email flow
Akshar2325- 【auth】make welcome email sending non-blocking to prevent signup failures - 【email】enhance error handling for email API to manage non-json responses feat(email): add detailed logging for traceability - log email payloads, raw API responses, and success/error states - improves debugging capabilities for email delivery issues refactor(db): remove unused clientId field from UserSession - clean up the prisma schema by removing the obsolete `clientId` columnfcc750f -
feat(auth): implement multi-step user registration flow
Akshar2325- Rework the user sign-up process into a secure, 5-step flow to ensure user verification and profile completeness before activation. 【Flow】 - Introduce a 5-step registration process: - 1. Initial registration (email, password, name) - 2. Email verification via OTP - 3. Phone number registration - 4. Phone verification via OTP - 5. Profile completion (interests, bio) & account activation 【Database】 - Enhance `User` model with new profile fields and detailed statuses - Add `UserOtp` model to manage OTP generation, verification, and expiry - Add `UserInterest` model to capture user genre preferences - Introduce new enums for `USER_STATUS`, `OTP_TYPE`, and `OTP_PURPOSE` 【API】 - Implement new controller endpoints for each step of the flow - Restrict login access to users who have completed the entire process 【Integrations】 - Add `EmailModule` to send transactional emails (OTP, Welcome) via Brevo - Add `SmsModule` to send verification codes via Authkey SMS service 【Core】 - C…db3d93b
-
feat(db): add core models for video streaming platform
Akshar2325- 【Models】Introduce schemas for Movies, Series, Seasons, Episodes, and related video, genre, and tag tables. - 【User Interaction】Add models for Comments, Likes, Ratings, Playlists, and Watch History to support user engagement. - 【Enums】Define new enums for content, upload, session, and notification types to standardize states across the application. refactor(schema): standardize primary keys and relations - 【Primary Keys】Migrate all primary key default values from cuid() to uuid() for industry-standard identifiers. - 【Data Integrity】Implement onDelete: Cascade on relations to ensure automatic cleanup of orphaned records. - 【Enums】Consolidate session status into a single unified enum for consistency across user and admin models. chore(db): improve timestamp precision - 【Timestamps】Specify millisecond precision (@db.Timestamp(3)) for all DateTime fields to enhance data accuracy.d189be0 -
✨ feat(admin): introduce super admin models and authentication
Akshar2325- 【db】add `SuperAdmin`, `SuperAdminSession`, `SuperAdminCredential` models - 【core】create dedicated core services for new super admin entities - 【auth】implement a separate authentication module for super admins - 【auth】add jwt strategy, guard, and auth endpoints for super admin - 【shared】introduce `GetSuperAdmin` decorator and session types ♻️ refactor(auth): restructure modules and user authentication - 【app】replace generic `AuthModule` with `UserModule` and `SuperAdminModule` - 【auth】relocate user auth logic into a dedicated `modules/user/auth` - 【db】move password from `User` model to `UserCredential` for separation - 【repo】enhance base repository with `upsert` and auto soft-delete filter ✨ feat(query): implement advanced multi-criteria search - 【query】add `multi_search` capability to base query service - 【query】support `contains` and `equals` search types - 【query】implement dynamic relationship detection for accurate filtering 🔧 chore(project): update depen…f3abb0d -
📦 build(deps): upgrade project dependencies
Akshar2325- upgrade various packages to their latest patch and minor versions - migrate from yarn.lock to package-lock.json for consistent dependency management - add dotenv as a direct dependency ♻️ refactor(prisma): upgrade to prisma v7 - introduce prisma.config.ts for explicit CLI configuration - update PrismaService to use @prisma/adapter-pg for PostgreSQL connection - remove direct database URL configuration from schema.prisma - upgrade @prisma/client, prisma, and pg to v7.0.13f1a51c
-
feat(auth): implement user authentication module with JWT support
Akshar2325- Created UserCredential and UserSession core modules and services for handling user credentials and sessions. - Developed AuthService for user registration, login, and token management. - Added DTOs for login, registration, and token refresh functionalities. - Implemented JWT strategy and guard for securing routes. - Set up Swagger documentation for API endpoints. - Introduced common utilities for password hashing and client information retrieval. - Established Prisma base repository for database interactions. - Added error handling and messaging for user-related operations. - Configured application entry point with necessary middleware and global pipes.4acc19f