Commit Graph

41 Commits

Author SHA1 Message Date
0a1b42f908 feat: update refund ticket handling and enhance service schemas
- Removed the taskRefundTicket method from CronService to streamline scheduling logic.
- Updated PayosService to include MessageContextType for chat messages, improving message context handling.
- Enhanced RefundTicketSchema with additional fields for requester and improved error handling for unauthorized access.
- Implemented logic to update order and schedule statuses upon refund ticket approval, ensuring proper state management.
- Modified ServiceSchema to utilize createManyAndReturn for message creation, enhancing notification efficiency.

These changes improve the handling of refund tickets and enhance the overall functionality of the service schemas, ensuring better user experience and state management.
2024-12-13 19:35:23 +07:00
2eb2919965 feat: enhance PersonalMilestone and Service schemas with new functionalities
- Added a new mutation to update personal milestones and change schedule status to IN_PROGRESS in PersonalMilestoneSchema.
- Refactored service notification logic to send messages to moderators upon service approval in ServiceSchema, improving communication flow.
- Cleaned up commented-out code for better readability and maintainability.

These changes enhance the GraphQL API by improving milestone management and service notification processes, ensuring better user experience and state management.
2024-12-13 19:08:15 +07:00
68353d8985 feat: implement AI suggestion 2024-12-12 21:22:50 +07:00
092a15753b feat: enhance notification system and role-based access across schemas
- Updated MessageSchema to include context-aware filtering for notifications, allowing retrieval based on recipientId for NOTIFICATION and SYSTEM contexts.
- Enhanced RefundTicketSchema to notify moderators upon refund requests, improving communication and response times.
- Modified ResumeSchema to send notifications to mentors and center owners when a new resume is submitted, ensuring timely updates.
- Improved ServiceSchema to notify center owners and mentors about service approvals, enhancing user engagement and awareness.
- Implemented role-based access control checks across schemas to ensure only authorized users can perform specific actions, enhancing security and user experience.
2024-12-09 19:38:36 +07:00
45dca51990 chore: update biome configuration and enhance error handling in schema files
- Enabled useIgnoreFile in biome.json for better file management.
- Updated various correctness and style rules in biome.json to enforce stricter coding standards.
- Added new biome lint command in package.json for improved code quality checks.
- Refactored error handling in multiple schema files to use consistent error throwing patterns, enhancing readability and maintainability.
- Improved user authentication checks across various schemas to ensure proper access control.
2024-12-08 21:01:26 +07:00
10e20092ab chore: update configuration and improve schema imports
- Updated biome.json to include "graphql.d.ts" in the ignored files list.
- Updated subproject commit reference in epess-database to the latest version.
- Removed unused script from package.json and streamlined module file extensions in tsconfig.json.
- Consolidated exclude patterns in tsconfig.build.json for clarity.
- Refactored imports across multiple schema files for consistency and improved readability.
- Enhanced various schema files by ensuring proper import order and removing redundant code.
- Improved error handling and data integrity checks in several service and schema files.
2024-12-08 20:49:52 +07:00
bb88d6ed00 feat: enhance QuizSchema and related schemas with new fields and relations
- Updated QuizSchema to expose correctAnswer as a field with a resolver, improving data retrieval for quizzes.
- Introduced new object types for correctAnswer, allowing for flexible data structures (StringType and StringListType).
- Modified createQuiz mutation to automatically associate the current user as centerMentorId, enhancing data integrity.
- Added personalMilestone relation to ScheduleSchema, linking schedules to personal milestones for better tracking.
- Included quiz relation in ServiceSchema, establishing a connection between services and their associated quizzes.
- Updated Prisma types to reflect the new relationships and fields, ensuring consistency across the application.
2024-12-07 18:18:33 +07:00
429c6f9073 chore: remove Milestone module and update related schemas
- Deleted the MilestoneModule and its associated schema to streamline the codebase.
- Updated QuizSchema to replace scheduleId with serviceId, enhancing the relationship structure.
- Removed references to Milestone in ServiceSchema, improving clarity and focus on relevant entities.
- Updated Prisma types to reflect the removal of Milestone, ensuring data integrity across the application.
2024-12-07 15:33:28 +07:00
eb05610b23 refactor: streamline import statements in GraphQL service and ServiceSchema
- Consolidated import paths in graphql.service.ts and service.schema.ts to use relative paths for improved organization and consistency.
- Enhanced code readability by reducing unnecessary line breaks in import statements.
2024-12-05 22:51:48 +07:00
de46499288 feat: add notification messaging for service approval and rejection in ServiceSchema
- Implemented user notification system by creating messages in the database when a service is approved or rejected.
- Utilized the new Message and PubSubEvent classes to handle notifications effectively.
- Enhanced user experience by informing users of service status changes through direct messages.
2024-12-05 22:41:25 +07:00
37b0086b4d feat: update file output paths and add feedback tracking to service schema
- Modified file output paths in LiveKitRoomService to utilize the BUCKET_NAME environment variable for dynamic S3 storage.
- Introduced a new `feedbacked` field in ServiceSchema to track whether a user has provided feedback for a service, enhancing user interaction capabilities.
- Cleaned up the ServiceFeedback schema by refining the resolve function for better clarity and consistency.
2024-12-05 22:11:40 +07:00
2581ca396f Refactor Category and Center schemas to improve field descriptions and code clarity; update email templates for consistency in messaging. Add Redis service to CenterSchema for session management. Bump epess-database subproject commit reference to indicate changes. Clean up logging in ClerkService and ServiceSchema. 2024-11-27 01:09:13 +07:00
c9435a6e04 Enhance ServiceSchema by adding commission and descriptions for approve and adminNote arguments. Implement default commission logic when service is approved without a specified commission. 2024-11-27 00:41:54 +07:00
c9f03f251d update commission validate 2024-11-26 21:30:26 +07:00
8eec1bed55 update commission 2024-11-21 22:05:22 +07:00
d7c7f8a782 update something can update 2024-11-08 17:27:09 +07:00
56ba2808c8 day len server theo loi Khoi noi, toi xin tuyen bo mien tru trach nhiem 2024-11-05 15:02:53 +07:00
a09785ec71 update preview date 2024-10-30 17:56:19 +07:00
152bb50da8 refactor source code 2024-10-29 17:42:54 +07:00
9423a36eeb add context subscription 2024-10-29 02:21:18 +07:00
34cea2ccd3 implement redis cache for context 2024-10-29 00:56:23 +07:00
f787d0c194 9h sang tao code tiep 2024-10-28 02:56:36 +07:00
eec9fcfeff push code ne 2024-10-28 01:08:13 +07:00
734d7e5f89 update order and service 2024-10-27 17:02:04 +07:00
1a7b5a5fb6 add invite staff 2024-10-27 16:48:56 +07:00
cb6a210308 add ApproveOrRejectService 2024-10-27 15:41:41 +07:00
2369275237 expose is active in service 2024-10-27 14:10:18 +07:00
9e0e97a560 refactor schema to match database schema 2024-10-27 13:12:24 +07:00
7e25e8d96b merge change from db 2024-10-25 14:49:16 +07:00
2872ac69ef update service status 2024-10-23 15:43:50 +07:00
338cb84ac9 big gift 2024-10-20 19:29:54 +07:00
e76d77dadd fix upload 2024-10-18 15:02:06 +07:00
1523642b9d update schema due to majority database change 2024-10-18 01:50:26 +07:00
8817f961a8 update pagination 2024-10-17 19:06:51 +07:00
d01fae4788 return properly actual file name 2024-10-17 17:25:02 +07:00
f9967ac5bd refactor and update get url logic 2024-10-17 17:02:03 +07:00
5c56e79d63 phong bat 2024-10-17 15:15:08 +07:00
59923b02cb push code push code 2024-10-17 15:02:25 +07:00
7d7765c70f run eslint 2024-10-15 20:05:54 +07:00
80743b0973 update fields 2024-10-15 02:39:06 +07:00
0e3aa751ce Fixing file name casing 2024-10-12 23:15:06 +07:00